pagepilot-visual-editor 1.0.24 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks-internal/block-iframe/src/index.d.ts +6 -0
- package/dist/blocks-internal/block-list/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-stepper/src/index.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FormsPickerSidebarPanel.d.ts +1 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +4 -1
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateApplyHelpers.d.ts +22 -4
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/GroupBlockPreview.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ItemsArrayRepeatSection.d.ts +14 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ScalarDataReferencePanel.d.ts +24 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ScalarFieldRow.d.ts +12 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupList.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariablesPanelContext.d.ts +10 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/dataReferenceUtils.d.ts +24 -6
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/index.d.ts +8 -1
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/repeatRowActions.d.ts +27 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/styles.d.ts +20 -0
- package/dist/editor-sample/App/InspectorDrawer/components/DateFieldControls.d.ts +12 -0
- package/dist/editor-sample/App/InspectorDrawer/components/DateTimeFieldControls.d.ts +14 -0
- package/dist/editor-sample/App/InspectorDrawer/components/TimeFieldControls.d.ts +12 -0
- package/dist/editor-sample/App/shared/editor.styles.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/Table/TableImportDialog.styles.d.ts +4 -4
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +14 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/blockMenuStyles.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +3 -4
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarCommands.d.ts +17 -1
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/popovers/ResponsiveFontSizePopover.d.ts +43 -0
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/types.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +93 -2
- package/dist/editor-sample/documents/blocks/helpers/responsiveFontSizeCss.d.ts +72 -0
- package/dist/editor-sample/documents/blocks/helpers/variableBinding.d.ts +5 -0
- package/dist/editor-sample/documents/editor/core.d.ts +23 -2
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +3 -3
- package/dist/email-builder-core/blocks/FormsPicker/FormsPropsSchema.d.ts +1 -0
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +14 -0
- package/dist/email-builder-core/renderers/pageScripts.d.ts +1 -0
- package/dist/email-builder-core/utils/substituteTemplateVars.d.ts +32 -0
- package/dist/host-stubs/modules/_hostListShim.d.ts +1 -1
- package/dist/host-stubs/modules/forms/formsService.d.ts +2 -1
- package/dist/host-stubs/modules/forms/useFormsList.d.ts +12 -0
- package/dist/host-stubs/view/shared/common/InfoTooltip.d.ts +19 -0
- package/dist/host-stubs/view/shared/timeZones.d.ts +4 -0
- package/dist/{index-DC6qaxfh.cjs → index-BNqa-SV3.cjs} +317 -288
- package/dist/{index-QDgGEZCN.js → index-C4zNSWXe.js} +1 -1
- package/dist/{index-DUfdBPwm.cjs → index-Cu-dtp0Q.cjs} +1 -1
- package/dist/{index-n8k3yknQ.js → index-Dk7bp7l0.js} +30882 -27652
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -12
- package/dist/render-core/apiDataSource.d.ts +50 -0
- package/dist/render-core/dateFormats.d.ts +67 -0
- package/dist/render-core/templateBaking.d.ts +105 -2
- package/dist/render.cjs +178 -155
- package/dist/render.d.ts +2 -2
- package/dist/render.js +6364 -5686
- package/dist/renderToStaticHtml.d.ts +58 -3
- package/dist/{xlsx-pI-7Dj2H.cjs → xlsx-C6JQXDb3.cjs} +1 -1
- package/dist/{xlsx-rO__5tF8.js → xlsx-Cd1etxFW.js} +1 -1
- package/package.json +1 -1
package/dist/render.cjs
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
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(
|
|
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 (${
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),Vs=require("react-dom/server"),F=require("react");var kr;function R(e,t,n){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const u=i.prototype,c=Object.keys(u);for(let p=0;p<c.length;p++){const d=c[p];d in l||(l[d]=u[d].bind(l))}}const a=(n==null?void 0:n.Parent)??Object;class r extends a{}Object.defineProperty(r,"name",{value:e});function i(l){var s;const u=n!=null&&n.Parent?new r:this;o(u,l),(s=u._zod).deferred??(s.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:o}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>{var s,u;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(u=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Dt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ll extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(kr=globalThis).__zod_globalConfig??(kr.__zod_globalConfig={});const qa=globalThis.__zod_globalConfig;function ct(e){return qa}function sl(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 ra(e,t){return typeof t=="bigint"?t.toString():t}function so(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Va(e){return e==null}function Ya(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Ys(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 $r=Symbol("evaluating");function te(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==$r)return o===void 0&&(o=$r,o=n()),o},set(a){Object.defineProperty(e,t,{value:a})},configurable:!0})}function At(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 _r(e){return JSON.stringify(e)}function Ks(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const cl="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function pn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Js=so(()=>{var e;if(qa.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 Gt(e){if(pn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(pn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ul(e){return Gt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Xs=new Set(["string","number","symbol"]);function Ut(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vt(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 Qs(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const ec={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 tc(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 r=bt(e._zod.def,{get shape(){const i={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=n.shape[l])}return At(this,"shape",i),i},checks:[]});return vt(e,r)}function nc(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 r=bt(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete i[l]}return At(this,"shape",i),i},checks:[]});return vt(e,r)}function oc(e,t){if(!Gt(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(r,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const a=bt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return At(this,"shape",r),r}});return vt(e,a)}function ac(e,t){if(!Gt(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 At(this,"shape",o),o}});return vt(e,n)}function rc(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 a={...e._zod.def.shape,...t._zod.def.shape};return At(this,"shape",a),a},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return vt(e,n)}function ic(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 i=bt(t._zod.def,{get shape(){const l=t._zod.def.shape,s={...l};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(s[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(const u in l)s[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return At(this,"shape",s),s},checks:[]});return vt(t,i)}function lc(e,t,n){const o=bt(t._zod.def,{get shape(){const a=t._zod.def.shape,r={...a};if(n)for(const i in n){if(!(i in r))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(r[i]=new e({type:"nonoptional",innerType:a[i]}))}else for(const i in a)r[i]=new e({type:"nonoptional",innerType:a[i]});return At(this,"shape",r),r}});return vt(t,o)}function zt(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 sc(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 En(e){return typeof e=="string"?e:e==null?void 0:e.message}function ut(e,t,n){var s,u,c,p,d,h;const o=e.message?e.message:En((c=(u=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:u.error)==null?void 0:c.call(u,e))??En((p=t==null?void 0:t.error)==null?void 0:p.call(t,e))??En((d=n.customError)==null?void 0:d.call(n,e))??En((h=n.localeError)==null?void 0:h.call(n,e))??"Invalid input",{inst:a,continue:r,input:i,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=i),l}function Ka(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function mn(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const dl=(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,ra,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},hl=R("$ZodError",dl),fl=R("$ZodError",dl,{Parent:Error});function cc(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 uc(e,t=n=>n.message){const n={_errors:[]},o=(a,r=[])=>{for(const i of a.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>o({issues:l},[...r,...i.path]));else if(i.code==="invalid_key")o({issues:i.issues},[...r,...i.path]);else if(i.code==="invalid_element")o({issues:i.issues},[...r,...i.path]);else{const l=[...r,...i.path];if(l.length===0)n._errors.push(t(i));else{let s=n,u=0;for(;u<l.length;){const c=l[u];u===l.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}}};return o(e),n}const Ja=e=>(t,n,o,a)=>{const r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Dt;if(i.issues.length){const l=new((a==null?void 0:a.Err)??e)(i.issues.map(s=>ut(s,r,ct())));throw cl(l,a==null?void 0:a.callee),l}return i.value},Xa=e=>async(t,n,o,a)=>{const r=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new((a==null?void 0:a.Err)??e)(i.issues.map(s=>ut(s,r,ct())));throw cl(l,a==null?void 0:a.callee),l}return i.value},co=e=>(t,n,o)=>{const a=o?{...o,async:!1}:{async:!1},r=t._zod.run({value:n,issues:[]},a);if(r instanceof Promise)throw new Dt;return r.issues.length?{success:!1,error:new(e??hl)(r.issues.map(i=>ut(i,a,ct())))}:{success:!0,data:r.value}},dc=co(fl),uo=e=>async(t,n,o)=>{const a=o?{...o,async:!0}:{async:!0};let r=t._zod.run({value:n,issues:[]},a);return r instanceof Promise&&(r=await r),r.issues.length?{success:!1,error:new e(r.issues.map(i=>ut(i,a,ct())))}:{success:!0,data:r.value}},hc=uo(fl),fc=e=>(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return Ja(e)(t,n,a)},pc=e=>(t,n,o)=>Ja(e)(t,n,o),mc=e=>async(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return Xa(e)(t,n,a)},gc=e=>async(t,n,o)=>Xa(e)(t,n,o),bc=e=>(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return co(e)(t,n,a)},vc=e=>(t,n,o)=>co(e)(t,n,o),xc=e=>async(t,n,o)=>{const a=o?{...o,direction:"backward"}:{direction:"backward"};return uo(e)(t,n,a)},Sc=e=>async(t,n,o)=>uo(e)(t,n,o),wc=/^[cC][0-9a-z]{6,}$/,kc=/^[0-9a-z]+$/,$c=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,_c=/^[0-9a-vA-V]{20}$/,Cc=/^[A-Za-z0-9]{27}$/,Ac=/^[a-zA-Z0-9_-]{21}$/,yc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Nc=/^([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})$/,Cr=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)$/,Ec=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Rc="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ic(){return new RegExp(Rc,"u")}const Tc=/^(?:(?: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])$/,Mc=/^(([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}|:))$/,Pc=/^((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])$/,Oc=/^(([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])$/,Lc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,pl=/^[A-Za-z0-9_-]*$/,zc=/^https?$/,jc=/^\+[1-9]\d{6,14}$/,ml="(?:(?:\\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])))",Bc=new RegExp(`^${ml}$`);function gl(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 Dc(e){return new RegExp(`^${gl(e)}$`)}function Fc(e){const t=gl({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(`^${ml}T(?:${o})$`)}const Hc=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}$`)},Gc=/^-?\d+$/,bl=/^-?\d+(?:\.\d+)?$/,Uc=/^(?:true|false)$/i,Zc=/^[^A-Z]*$/,Wc=/^[^a-z]*$/,je=R("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),vl={number:"number",bigint:"bigint",object:"date"},xl=R("$ZodCheckLessThan",(e,t)=>{je.init(e,t);const n=vl[typeof t.value];e._zod.onattach.push(o=>{const a=o._zod.bag,r=(t.inclusive?a.maximum:a.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<r&&(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})}}),Sl=R("$ZodCheckGreaterThan",(e,t)=>{je.init(e,t);const n=vl[typeof t.value];e._zod.onattach.push(o=>{const a=o._zod.bag,r=(t.inclusive?a.minimum:a.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>r&&(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})}}),qc=R("$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):Ys(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})}}),Vc=R("$ZodCheckNumberFormat",(e,t)=>{var i;je.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),o=n?"int":"number",[a,r]=ec[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=a,s.maximum=r,n&&(s.pattern=Gc)}),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>r&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),Yc=R("$ZodCheckMaxLength",(e,t)=>{var n;je.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!Va(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 i=Ka(a);o.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),Kc=R("$ZodCheckMinLength",(e,t)=>{var n;je.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!Va(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 i=Ka(a);o.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:a,inst:e,continue:!t.abort})}}),Jc=R("$ZodCheckLengthEquals",(e,t)=>{var n;je.init(e,t),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!Va(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,r=a.length;if(r===t.length)return;const i=Ka(a),l=r>t.length;o.issues.push({origin:i,...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})}}),ho=R("$ZodCheckStringFormat",(e,t)=>{var n,o;je.init(e,t),e._zod.onattach.push(a=>{const r=a._zod.bag;r.format=t.format,t.pattern&&(r.patterns??(r.patterns=new Set),r.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=()=>{})}),Xc=R("$ZodCheckRegex",(e,t)=>{ho.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Qc=R("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Zc),ho.init(e,t)}),eu=R("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Wc),ho.init(e,t)}),tu=R("$ZodCheckIncludes",(e,t)=>{je.init(e,t);const n=Ut(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(a=>{const r=a._zod.bag;r.patterns??(r.patterns=new Set),r.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})}}),nu=R("$ZodCheckStartsWith",(e,t)=>{je.init(e,t);const n=new RegExp(`^${Ut(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})}}),ou=R("$ZodCheckEndsWith",(e,t)=>{je.init(e,t);const n=new RegExp(`.*${Ut(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})}}),au=R("$ZodCheckOverwrite",(e,t)=>{je.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class ru{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(i=>i),a=Math.min(...o.map(i=>i.length-i.trimStart().length)),r=o.map(i=>i.slice(a)).map(i=>" ".repeat(this.indent*2)+i);for(const i of r)this.content.push(i)}compile(){const t=Function,n=this==null?void 0:this.args,a=[...((this==null?void 0:this.content)??[""]).map(r=>` ${r}`)];return new t(...n,a.join(`
|
|
3
|
+
`))}}const iu={major:4,minor:4,patch:3},de=R("$ZodType",(e,t)=>{var a;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=iu;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const r of o)for(const i of r._zod.onattach)i(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 r=(l,s,u)=>{let c=zt(l),p;for(const d of s){if(d._zod.def.when){if(sc(l)||!d._zod.def.when(l))continue}else if(c)continue;const h=l.issues.length,m=d._zod.check(l);if(m instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Dt;if(p||m instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await m,l.issues.length!==h&&(c||(c=zt(l,h)))});else{if(l.issues.length===h)continue;c||(c=zt(l,h))}}return p?p.then(()=>l):l},i=(l,s,u)=>{if(zt(l))return l.aborted=!0,l;const c=r(s,o,u);if(c instanceof Promise){if(u.async===!1)throw new Dt;return c.then(p=>e._zod.parse(p,u))}return e._zod.parse(c,u)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const c=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(p=>i(p,l,s)):i(c,l,s)}const u=e._zod.parse(l,s);if(u instanceof Promise){if(s.async===!1)throw new Dt;return u.then(c=>r(c,o,s))}return r(u,o,s)}}te(e,"~standard",()=>({validate:r=>{var i;try{const l=dc(e,r);return l.success?{value:l.data}:{issues:(i=l.error)==null?void 0:i.issues}}catch{return hc(e,r).then(s=>{var u;return s.success?{value:s.data}:{issues:(u=s.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),Qa=R("$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()??Hc(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}}),ge=R("$ZodStringFormat",(e,t)=>{ho.init(e,t),Qa.init(e,t)}),lu=R("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Nc),ge.init(e,t)}),su=R("$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=Cr(o))}else t.pattern??(t.pattern=Cr());ge.init(e,t)}),cu=R("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ec),ge.init(e,t)}),uu=R("$ZodURL",(e,t)=>{ge.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)===zc.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 r=new URL(a);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.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(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.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=r.href:n.value=a;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),du=R("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Ic()),ge.init(e,t)}),hu=R("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Ac),ge.init(e,t)}),fu=R("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=wc),ge.init(e,t)}),pu=R("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=kc),ge.init(e,t)}),mu=R("$ZodULID",(e,t)=>{t.pattern??(t.pattern=$c),ge.init(e,t)}),gu=R("$ZodXID",(e,t)=>{t.pattern??(t.pattern=_c),ge.init(e,t)}),bu=R("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Cc),ge.init(e,t)}),vu=R("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Fc(t)),ge.init(e,t)}),xu=R("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Bc),ge.init(e,t)}),Su=R("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Dc(t)),ge.init(e,t)}),wu=R("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=yc),ge.init(e,t)}),ku=R("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Tc),ge.init(e,t),e._zod.bag.format="ipv4"}),$u=R("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Mc),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})}}}),_u=R("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Pc),ge.init(e,t)}),Cu=R("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Oc),ge.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[a,r]=o;if(!r)throw new Error;const i=Number(r);if(`${i}`!==r)throw new Error;if(i<0||i>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 wl(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Au=R("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Lc),ge.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{wl(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function yu(e){if(!pl.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return wl(n)}const Nu=R("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=pl),ge.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{yu(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Eu=R("$ZodE164",(e,t)=>{t.pattern??(t.pattern=jc),ge.init(e,t)});function Ru(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 Iu=R("$ZodJWT",(e,t)=>{ge.init(e,t),e._zod.check=n=>{Ru(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),kl=R("$ZodNumber",(e,t)=>{de.init(e,t),e._zod.pattern=e._zod.bag.pattern??bl,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 r=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,...r?{received:r}:{}}),n}}),Tu=R("$ZodNumberFormat",(e,t)=>{Vc.init(e,t),kl.init(e,t)}),Mu=R("$ZodBoolean",(e,t)=>{de.init(e,t),e._zod.pattern=Uc,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}}),Pu=R("$ZodAny",(e,t)=>{de.init(e,t),e._zod.parse=n=>n}),Ou=R("$ZodUnknown",(e,t)=>{de.init(e,t),e._zod.parse=n=>n}),Lu=R("$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 Ar(e,t,n){e.issues.length&&t.issues.push(...mt(n,e.issues)),t.value[n]=e.value}const zu=R("$ZodArray",(e,t)=>{de.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 r=[];for(let i=0;i<a.length;i++){const l=a[i],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?r.push(s.then(u=>Ar(u,n,i))):Ar(s,n,i)}return r.length?Promise.all(r).then(()=>n):n}});function qn(e,t,n,o,a,r){const i=n in o;if(e.issues.length){if(a&&r&&!i)return;t.issues.push(...mt(n,e.issues))}if(!i&&!a){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?i&&(t.value[n]=void 0):t.value[n]=e.value}function $l(e){var o,a,r,i;const t=Object.keys(e.shape);for(const l of t)if(!((i=(r=(a=(o=e.shape)==null?void 0:o[l])==null?void 0:a._zod)==null?void 0:r.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=Qs(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function _l(e,t,n,o,a,r){const i=[],l=a.keySet,s=a.catchall._zod,u=s.def.type,c=s.optin==="optional",p=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(u==="never"){i.push(d);continue}const h=s.run({value:t[d],issues:[]},o);h instanceof Promise?e.push(h.then(m=>qn(m,n,d,t,c,p))):qn(h,n,d,t,c,p)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:r}),e.length?Promise.all(e).then(()=>n):n}const ju=R("$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=so(()=>$l(t));te(e._zod,"propValues",()=>{const l=t.shape,s={};for(const u in l){const c=l[u]._zod;if(c.values){s[u]??(s[u]=new Set);for(const p of c.values)s[u].add(p)}}return s});const a=pn,r=t.catchall;let i;e._zod.parse=(l,s)=>{i??(i=o.value);const u=l.value;if(!a(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const c=[],p=i.shape;for(const d of i.keys){const h=p[d],m=h._zod.optin==="optional",b=h._zod.optout==="optional",v=h._zod.run({value:u[d],issues:[]},s);v instanceof Promise?c.push(v.then(w=>qn(w,l,d,u,m,b))):qn(v,l,d,u,m,b)}return r?_l(c,u,l,s,o.value,e):c.length?Promise.all(c).then(()=>l):l}}),Bu=R("$ZodObjectJIT",(e,t)=>{ju.init(e,t);const n=e._zod.parse,o=so(()=>$l(t)),a=d=>{var $,S;const h=new ru(["shape","payload","ctx"]),m=o.value,b=_=>{const y=_r(_);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};h.write("const input = payload.value;");const v=Object.create(null);let w=0;for(const _ of m.keys)v[_]=`key_${w++}`;h.write("const newResult = {};");for(const _ of m.keys){const y=v[_],A=_r(_),N=d[_],E=(($=N==null?void 0:N._zod)==null?void 0:$.optin)==="optional",T=((S=N==null?void 0:N._zod)==null?void 0:S.optout)==="optional";h.write(`const ${y} = ${b(_)};`),E&&T?h.write(`
|
|
4
|
+
if (${y}.issues.length) {
|
|
5
5
|
if (${A} in input) {
|
|
6
|
-
payload.issues = payload.issues.concat(${
|
|
6
|
+
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
7
7
|
...iss,
|
|
8
8
|
path: iss.path ? [${A}, ...iss.path] : [${A}]
|
|
9
9
|
})));
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
if (${
|
|
13
|
+
if (${y}.value === undefined) {
|
|
14
14
|
if (${A} in input) {
|
|
15
15
|
newResult[${A}] = undefined;
|
|
16
16
|
}
|
|
17
17
|
} else {
|
|
18
|
-
newResult[${A}] = ${
|
|
18
|
+
newResult[${A}] = ${y}.value;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
`):
|
|
22
|
-
if (${
|
|
23
|
-
payload.issues = payload.issues.concat(${
|
|
21
|
+
`):E?h.write(`
|
|
22
|
+
if (${y}.issues.length) {
|
|
23
|
+
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
24
24
|
...iss,
|
|
25
25
|
path: iss.path ? [${A}, ...iss.path] : [${A}]
|
|
26
26
|
})));
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
if (${
|
|
29
|
+
if (${y}.value === undefined) {
|
|
30
30
|
if (${A} in input) {
|
|
31
31
|
newResult[${A}] = undefined;
|
|
32
32
|
}
|
|
33
33
|
} else {
|
|
34
|
-
newResult[${A}] = ${
|
|
34
|
+
newResult[${A}] = ${y}.value;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
`):h.write(`
|
|
38
|
-
const ${
|
|
39
|
-
if (${
|
|
40
|
-
payload.issues = payload.issues.concat(${
|
|
38
|
+
const ${y}_present = ${A} in input;
|
|
39
|
+
if (${y}.issues.length) {
|
|
40
|
+
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
41
41
|
...iss,
|
|
42
42
|
path: iss.path ? [${A}, ...iss.path] : [${A}]
|
|
43
43
|
})));
|
|
44
44
|
}
|
|
45
|
-
if (!${
|
|
45
|
+
if (!${y}_present && !${y}.issues.length) {
|
|
46
46
|
payload.issues.push({
|
|
47
47
|
code: "invalid_type",
|
|
48
48
|
expected: "nonoptional",
|
|
@@ -51,38 +51,38 @@
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
if (${
|
|
55
|
-
if (${
|
|
54
|
+
if (${y}_present) {
|
|
55
|
+
if (${y}.value === undefined) {
|
|
56
56
|
newResult[${A}] = undefined;
|
|
57
57
|
} else {
|
|
58
|
-
newResult[${A}] = ${
|
|
58
|
+
newResult[${A}] = ${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>
|
|
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
|
-
${
|
|
67
|
-
${Oe} { .${n} img, .${n} > div { transform: ${oe(
|
|
68
|
-
`.trim():null,
|
|
69
|
-
${
|
|
70
|
-
${Oe} { .${n} img { width: ${h}${
|
|
71
|
-
`.trim():null,
|
|
72
|
-
${
|
|
73
|
-
${Oe} { .${n} img { height: ${
|
|
74
|
-
`.trim():null,
|
|
75
|
-
.${n} picture { display: inline-block; transition: transform ${
|
|
76
|
-
.${n}:hover picture { transform: scale(${
|
|
77
|
-
`.trim():null,
|
|
78
|
-
`)||null,
|
|
79
|
-
${
|
|
80
|
-
${Oe} { .${
|
|
81
|
-
`.trim(),
|
|
82
|
-
${
|
|
83
|
-
${Oe} { .${n} video, .${n} iframe { ${b(
|
|
84
|
-
`.trim(),
|
|
85
|
-
`)}const
|
|
62
|
+
`)}h.write("payload.value = newResult;"),h.write("return payload;");const x=h.compile();return(_,y)=>x(d,_,y)};let r;const i=pn,l=!qa.jitless,u=l&&Js.value,c=t.catchall;let p;e._zod.parse=(d,h)=>{p??(p=o.value);const m=d.value;return i(m)?l&&u&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(r||(r=a(t.shape)),d=r(d,h),c?_l([],m,d,h,p,e):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d)}});function yr(e,t,n,o){for(const r of e)if(r.issues.length===0)return t.value=r.value,t;const a=e.filter(r=>!zt(r));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(r=>r.issues.map(i=>ut(i,o,ct())))}),t)}const Cl=R("$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(a=>a._zod.pattern);return new RegExp(`^(${o.map(a=>Ya(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 r=!1;const i=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},a);if(s instanceof Promise)i.push(s),r=!0;else{if(s.issues.length===0)return s;i.push(s)}}return r?Promise.all(i).then(l=>yr(l,o,e,a)):yr(i,o,e,a)}}),Du=R("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Cl.init(e,t);const n=e._zod.parse;te(e._zod,"propValues",()=>{const a={};for(const r of t.options){const i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(const[l,s]of Object.entries(i)){a[l]||(a[l]=new Set);for(const u of s)a[l].add(u)}}return a});const o=so(()=>{var i;const a=t.options,r=new Map;for(const l of a){const s=(i=l._zod.propValues)==null?void 0:i[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const u of s){if(r.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);r.set(u,l)}}return r});e._zod.parse=(a,r)=>{const i=a.value;if(!pn(i))return a.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),a;const l=o.value.get(i==null?void 0:i[t.discriminator]);return l?l._zod.run(a,r):t.unionFallback||r.direction==="backward"?n(a,r):(a.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:i,path:[t.discriminator],inst:e}),a)}}),Fu=R("$ZodIntersection",(e,t)=>{de.init(e,t),e._zod.parse=(n,o)=>{const a=n.value,r=t.left._zod.run({value:a,issues:[]},o),i=t.right._zod.run({value:a,issues:[]},o);return r instanceof Promise||i instanceof Promise?Promise.all([r,i]).then(([s,u])=>Nr(n,s,u)):Nr(n,r,i)}});function ia(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(Gt(e)&&Gt(t)){const n=Object.keys(t),o=Object.keys(e).filter(r=>n.indexOf(r)!==-1),a={...e,...t};for(const r of o){const i=ia(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};a[r]=i.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],r=t[o],i=ia(a,r);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Nr(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 r=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(r.length&&a&&e.issues.push({...a,keys:r}),zt(e))return e;const i=ia(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const Hu=R("$ZodTuple",(e,t)=>{de.init(e,t);const n=t.items;e._zod.parse=(o,a)=>{const r=o.value;if(!Array.isArray(r))return o.issues.push({input:r,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const i=[],l=Er(n,"optin"),s=Er(n,"optout");if(!t.rest){if(r.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:r,inst:e,origin:"array"}),o;r.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:r,inst:e,origin:"array"})}const u=new Array(n.length);for(let c=0;c<n.length;c++){const p=n[c]._zod.run({value:r[c],issues:[]},a);p instanceof Promise?i.push(p.then(d=>{u[c]=d})):u[c]=p}if(t.rest){let c=n.length-1;const p=r.slice(n.length);for(const d of p){c++;const h=t.rest._zod.run({value:d,issues:[]},a);h instanceof Promise?i.push(h.then(m=>Rr(m,o,c))):Rr(h,o,c)}}return i.length?Promise.all(i).then(()=>Ir(u,o,n,r,s)):Ir(u,o,n,r,s)}});function Er(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function Rr(e,t,n){e.issues.length&&t.issues.push(...mt(n,e.issues)),t.value[n]=e.value}function Ir(e,t,n,o,a){for(let r=0;r<n.length;r++){const i=e[r],l=r<o.length;if(i.issues.length){if(!l&&r>=a){t.value.length=r;break}t.issues.push(...mt(r,i.issues))}t.value[r]=i.value}for(let r=t.value.length-1;r>=o.length&&(n[r]._zod.optout==="optional"&&t.value[r]===void 0);r--)t.value.length=r;return t}const Gu=R("$ZodRecord",(e,t)=>{de.init(e,t),e._zod.parse=(n,o)=>{const a=n.value;if(!Gt(a))return n.issues.push({expected:"record",code:"invalid_type",input:a,inst:e}),n;const r=[],i=t.keyType._zod.values;if(i){n.value={};const l=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);const c=t.keyType._zod.run({value:u,issues:[]},o);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(h=>ut(h,o,ct())),input:u,path:[u],inst:e});continue}const p=c.value,d=t.valueType._zod.run({value:a[u],issues:[]},o);d instanceof Promise?r.push(d.then(h=>{h.issues.length&&n.issues.push(...mt(u,h.issues)),n.value[p]=h.value})):(d.issues.length&&n.issues.push(...mt(u,d.issues)),n.value[p]=d.value)}let s;for(const u in a)l.has(u)||(s=s??[],s.push(u));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"&&bl.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=>ut(p,o,ct())),input:l,path:[l],inst:e});continue}const c=t.valueType._zod.run({value:a[l],issues:[]},o);c instanceof Promise?r.push(c.then(p=>{p.issues.length&&n.issues.push(...mt(l,p.issues)),n.value[s.value]=p.value})):(c.issues.length&&n.issues.push(...mt(l,c.issues)),n.value[s.value]=c.value)}}return r.length?Promise.all(r).then(()=>n):n}}),Uu=R("$ZodEnum",(e,t)=>{de.init(e,t);const n=sl(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(a=>Xs.has(typeof a)).map(a=>typeof a=="string"?Ut(a):a.toString()).join("|")})$`),e._zod.parse=(a,r)=>{const i=a.value;return o.has(i)||a.issues.push({code:"invalid_value",values:n,input:i,inst:e}),a}}),Zu=R("$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"?Ut(o):o?Ut(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,a)=>{const r=o.value;return n.has(r)||o.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),o}}),Wu=R("$ZodTransform",(e,t)=>{de.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ll(e.constructor.name);const a=t.transform(n.value,n);if(o.async)return(a instanceof Promise?a:Promise.resolve(a)).then(i=>(n.value=i,n.fallback=!0,n));if(a instanceof Promise)throw new Dt;return n.value=a,n.fallback=!0,n}});function Tr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Al=R("$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(`^(${Ya(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const a=n.value,r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>Tr(i,a)):Tr(r,a)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),qu=R("$ZodExactOptional",(e,t)=>{Al.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)}),Vu=R("$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(`^(${Ya(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)}),Yu=R("$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 a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>Mr(r,t)):Mr(a,t)}});function Mr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Ku=R("$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))}),Ju=R("$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 a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>Pr(r,e)):Pr(a,e)}});function Pr(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 Xu=R("$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 a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(r=>(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)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(r=>ut(r,o,ct()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),yl=R("$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 r=t.out._zod.run(n,o);return r instanceof Promise?r.then(i=>Rn(i,t.in,o)):Rn(r,t.in,o)}const a=t.in._zod.run(n,o);return a instanceof Promise?a.then(r=>Rn(r,t.out,o)):Rn(a,t.out,o)}});function Rn(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 Qu=R("$ZodPreprocess",(e,t)=>{yl.init(e,t)}),ed=R("$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 a=t.innerType._zod.run(n,o);return a instanceof Promise?a.then(Or):Or(a)}});function Or(e){return e.value=Object.freeze(e.value),e}const td=R("$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)}),nd=R("$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,a=t.fn(o);if(a instanceof Promise)return a.then(r=>Lr(r,n,o,e));Lr(a,n,o,e)}});function Lr(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(mn(a))}}var zr;class od{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 ad(){return new od}(zr=globalThis).__zod_globalRegistry??(zr.__zod_globalRegistry=ad());const un=globalThis.__zod_globalRegistry;function rd(e,t){return new e({type:"string",...B(t)})}function id(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...B(t)})}function jr(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...B(t)})}function ld(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...B(t)})}function sd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...B(t)})}function cd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...B(t)})}function ud(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...B(t)})}function dd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...B(t)})}function hd(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...B(t)})}function fd(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...B(t)})}function pd(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...B(t)})}function md(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...B(t)})}function gd(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...B(t)})}function bd(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...B(t)})}function vd(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...B(t)})}function xd(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...B(t)})}function Sd(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...B(t)})}function wd(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...B(t)})}function kd(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...B(t)})}function $d(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...B(t)})}function _d(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...B(t)})}function Cd(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...B(t)})}function Ad(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...B(t)})}function yd(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...B(t)})}function Nd(e,t){return new e({type:"string",format:"date",check:"string_format",...B(t)})}function Ed(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...B(t)})}function Rd(e,t){return new e({type:"string",format:"duration",check:"string_format",...B(t)})}function Id(e,t){return new e({type:"number",checks:[],...B(t)})}function Td(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...B(t)})}function Md(e,t){return new e({type:"boolean",...B(t)})}function Pd(e){return new e({type:"any"})}function Od(e){return new e({type:"unknown"})}function Ld(e,t){return new e({type:"never",...B(t)})}function Br(e,t){return new xl({check:"less_than",...B(t),value:e,inclusive:!1})}function xo(e,t){return new xl({check:"less_than",...B(t),value:e,inclusive:!0})}function Dr(e,t){return new Sl({check:"greater_than",...B(t),value:e,inclusive:!1})}function So(e,t){return new Sl({check:"greater_than",...B(t),value:e,inclusive:!0})}function Fr(e,t){return new qc({check:"multiple_of",...B(t),value:e})}function Nl(e,t){return new Yc({check:"max_length",...B(t),maximum:e})}function Vn(e,t){return new Kc({check:"min_length",...B(t),minimum:e})}function El(e,t){return new Jc({check:"length_equals",...B(t),length:e})}function zd(e,t){return new Xc({check:"string_format",format:"regex",...B(t),pattern:e})}function jd(e){return new Qc({check:"string_format",format:"lowercase",...B(e)})}function Bd(e){return new eu({check:"string_format",format:"uppercase",...B(e)})}function Dd(e,t){return new tu({check:"string_format",format:"includes",...B(t),includes:e})}function Fd(e,t){return new nu({check:"string_format",format:"starts_with",...B(t),prefix:e})}function Hd(e,t){return new ou({check:"string_format",format:"ends_with",...B(t),suffix:e})}function Vt(e){return new au({check:"overwrite",tx:e})}function Gd(e){return Vt(t=>t.normalize(e))}function Ud(){return Vt(e=>e.trim())}function Zd(){return Vt(e=>e.toLowerCase())}function Wd(){return Vt(e=>e.toUpperCase())}function qd(){return Vt(e=>Ks(e))}function Vd(e,t,n){return new e({type:"array",element:t,...B(n)})}function Yd(e,t,n){return new e({type:"custom",check:"custom",fn:t,...B(n)})}function Kd(e,t){const n=Jd(o=>(o.addIssue=a=>{if(typeof a=="string")o.issues.push(mn(a,o.value,n._zod.def));else{const r=a;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=o.value),r.inst??(r.inst=n),r.continue??(r.continue=!n._zod.def.abort),o.issues.push(mn(r))}},e(o.value,o)),t);return n}function Jd(e,t){const n=new je({check:"custom",...B(t)});return n._zod.check=e,n}function Rl(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)??un,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 c,p;var o;const a=e._zod.def,r=t.seen.get(e);if(r)return r.count++,n.schemaPath.includes(e)&&(r.cycle=n.path),r.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const l=(p=(c=e._zod).toJSONSchema)==null?void 0:p.call(c);if(l)i.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{const m=i.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&&(i.ref||(i.ref=h),be(h,t,d),t.seen.get(h).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&Pe(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((o=i.schema).default??(o.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Il(e,t){var i,l,s,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const c of e.seen.entries()){const p=(i=e.metadataRegistry.get(c[0]))==null?void 0:i.id;if(p){const d=o.get(p);if(d&&d!==c[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,c[0])}}const a=c=>{var b;const p=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const v=(b=e.external.registry.get(c[0]))==null?void 0:b.id,w=e.external.uri??($=>$);if(v)return{ref:w(v)};const x=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=x,{defId:x,ref:`${w("__shared")}#/${p}/${x}`}}if(c[1]===n)return{ref:"#"};const h=`#/${p}/`,m=c[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:h+m}},r=c=>{if(c[1].schema.$ref)return;const p=c[1],{ref:d,defId:h}=a(c);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 c of e.seen.entries()){const p=c[1];if(p.cycle)throw new Error(`Cycle detected: #/${(l=p.cycle)==null?void 0:l.join("/")}/<root>
|
|
63
|
+
|
|
64
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const p=c[1];if(t===c[0]){r(c);continue}if(e.external){const h=(s=e.external.registry.get(c[0]))==null?void 0:s.id;if(t!==c[0]&&h){r(c);continue}}if((u=e.metadataRegistry.get(c[0]))==null?void 0:u.id){r(c);continue}if(p.cycle){r(c);continue}if(p.count>1&&e.reused==="ref"){r(c);continue}}}function Tl(e,t){var l,s,u,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const 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 w=e.seen.get(b),x=w.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(x)):Object.assign(h,x),Object.assign(h,m),p._zod.parent===b)for(const S in h)S==="$ref"||S==="allOf"||S in m||delete h[S];if(x.$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 v=p._zod.parent;if(v&&v!==b){o(v);const w=e.seen.get(v);if(w!=null&&w.schema.$ref&&(h.$ref=w.schema.$ref,w.def))for(const x in h)x==="$ref"||x==="allOf"||x in w.def&&JSON.stringify(h[x])===JSON.stringify(w.def[x])&&delete h[x]}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 r=(u=e.metadataRegistry.get(t))==null?void 0:u.id;r!==void 0&&a.id===r&&delete a.id;const i=((c=e.external)==null?void 0:c.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,i[d.defId]=d.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?a.$defs=i:a.definitions=i);try{const p=JSON.parse(JSON.stringify(a));return Object.defineProperty(p,"~standard",{value:{...t["~standard"],jsonSchema:{input:Yn(t,"input",e.processors),output:Yn(t,"output",e.processors)}},enumerable:!1,writable:!1}),p}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 a in o.shape)if(Pe(o.shape[a],n))return!0;return!1}if(o.type==="union"){for(const a of o.options)if(Pe(a,n))return!0;return!1}if(o.type==="tuple"){for(const a of o.items)if(Pe(a,n))return!0;return!!(o.rest&&Pe(o.rest,n))}return!1}const Xd=(e,t={})=>n=>{const o=Rl({...n,processors:t});return be(e,o),Il(o,e),Tl(o,e)},Yn=(e,t,n={})=>o=>{const{libraryOptions:a,target:r}=o??{},i=Rl({...a??{},target:r,io:t,processors:n});return be(e,i),Il(i,e),Tl(i,e)},Qd={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},eh=(e,t,n,o)=>{const a=n;a.type="string";const{minimum:r,maximum:i,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof r=="number"&&(a.minLength=r),typeof i=="number"&&(a.maxLength=i),l&&(a.format=Qd[l]??l,a.format===""&&delete a.format,l==="time"&&delete a.format),u&&(a.contentEncoding=u),s&&s.size>0){const c=[...s];c.length===1?a.pattern=c[0].source:c.length>1&&(a.allOf=[...c.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},th=(e,t,n,o)=>{const a=n,{minimum:r,maximum:i,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?a.type="integer":a.type="number";const p=typeof c=="number"&&c>=(r??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),h=t.target==="draft-04"||t.target==="openapi-3.0";p?h?(a.minimum=c,a.exclusiveMinimum=!0):a.exclusiveMinimum=c:typeof r=="number"&&(a.minimum=r),d?h?(a.maximum=u,a.exclusiveMaximum=!0):a.exclusiveMaximum=u:typeof i=="number"&&(a.maximum=i),typeof s=="number"&&(a.multipleOf=s)},nh=(e,t,n,o)=>{n.type="boolean"},oh=(e,t,n,o)=>{n.not={}},ah=(e,t,n,o)=>{},rh=(e,t,n,o)=>{},ih=(e,t,n,o)=>{const a=e._zod.def,r=sl(a.entries);r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),n.enum=r},lh=(e,t,n,o)=>{const a=e._zod.def,r=[];for(const i of a.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");r.push(Number(i))}else r.push(i);if(r.length!==0)if(r.length===1){const i=r[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else r.every(i=>typeof i=="number")&&(n.type="number"),r.every(i=>typeof i=="string")&&(n.type="string"),r.every(i=>typeof i=="boolean")&&(n.type="boolean"),r.every(i=>i===null)&&(n.type="null"),n.enum=r},sh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ch=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},uh=(e,t,n,o)=>{const a=n,r=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(a.minItems=i),typeof l=="number"&&(a.maxItems=l),a.type="array",a.items=be(r.element,t,{...o,path:[...o.path,"items"]})},dh=(e,t,n,o)=>{var u;const a=n,r=e._zod.def;a.type="object",a.properties={};const i=r.shape;for(const c in i)a.properties[c]=be(i[c],t,{...o,path:[...o.path,"properties",c]});const l=new Set(Object.keys(i)),s=new Set([...l].filter(c=>{const p=r.shape[c]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));s.size>0&&(a.required=Array.from(s)),((u=r.catchall)==null?void 0:u._zod.def.type)==="never"?a.additionalProperties=!1:r.catchall?r.catchall&&(a.additionalProperties=be(r.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(a.additionalProperties=!1)},hh=(e,t,n,o)=>{const a=e._zod.def,r=a.inclusive===!1,i=a.options.map((l,s)=>be(l,t,{...o,path:[...o.path,r?"oneOf":"anyOf",s]}));r?n.oneOf=i:n.anyOf=i},fh=(e,t,n,o)=>{const a=e._zod.def,r=be(a.left,t,{...o,path:[...o.path,"allOf",0]}),i=be(a.right,t,{...o,path:[...o.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(r)?r.allOf:[r],...l(i)?i.allOf:[i]];n.allOf=s},ph=(e,t,n,o)=>{const a=n,r=e._zod.def;a.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=r.items.map((d,h)=>be(d,t,{...o,path:[...o.path,i,h]})),u=r.rest?be(r.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[r.items.length]:[]]}):null;t.target==="draft-2020-12"?(a.prefixItems=s,u&&(a.items=u)):t.target==="openapi-3.0"?(a.items={anyOf:s},u&&a.items.anyOf.push(u),a.minItems=s.length,u||(a.maxItems=s.length)):(a.items=s,u&&(a.additionalItems=u));const{minimum:c,maximum:p}=e._zod.bag;typeof c=="number"&&(a.minItems=c),typeof p=="number"&&(a.maxItems=p)},mh=(e,t,n,o)=>{const a=n,r=e._zod.def;a.type="object";const i=r.keyType,l=i._zod.bag,s=l==null?void 0:l.patterns;if(r.mode==="loose"&&s&&s.size>0){const c=be(r.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});a.patternProperties={};for(const p of s)a.patternProperties[p.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(a.propertyNames=be(r.keyType,t,{...o,path:[...o.path,"propertyNames"]})),a.additionalProperties=be(r.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const u=i._zod.values;if(u){const c=[...u].filter(p=>typeof p=="string"||typeof p=="number");c.length>0&&(a.required=c)}},gh=(e,t,n,o)=>{const a=e._zod.def,r=be(a.innerType,t,o),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=a.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},bh=(e,t,n,o)=>{const a=e._zod.def;be(a.innerType,t,o);const r=t.seen.get(e);r.ref=a.innerType},vh=(e,t,n,o)=>{const a=e._zod.def;be(a.innerType,t,o);const r=t.seen.get(e);r.ref=a.innerType,n.default=JSON.parse(JSON.stringify(a.defaultValue))},xh=(e,t,n,o)=>{const a=e._zod.def;be(a.innerType,t,o);const r=t.seen.get(e);r.ref=a.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(a.defaultValue)))},Sh=(e,t,n,o)=>{const a=e._zod.def;be(a.innerType,t,o);const r=t.seen.get(e);r.ref=a.innerType;let i;try{i=a.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},wh=(e,t,n,o)=>{const a=e._zod.def,r=a.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?r?a.out:a.in:a.out;be(i,t,o);const l=t.seen.get(e);l.ref=i},kh=(e,t,n,o)=>{const a=e._zod.def;be(a.innerType,t,o);const r=t.seen.get(e);r.ref=a.innerType,n.readOnly=!0},Ml=(e,t,n,o)=>{const a=e._zod.def;be(a.innerType,t,o);const r=t.seen.get(e);r.ref=a.innerType},$h=(e,t,n,o)=>{const a=e._zod.innerType;be(a,t,o);const r=t.seen.get(e);r.ref=a},_h=R("ZodISODateTime",(e,t)=>{vu.init(e,t),ve.init(e,t)});function Ch(e){return yd(_h,e)}const Ah=R("ZodISODate",(e,t)=>{xu.init(e,t),ve.init(e,t)});function yh(e){return Nd(Ah,e)}const Nh=R("ZodISOTime",(e,t)=>{Su.init(e,t),ve.init(e,t)});function Eh(e){return Ed(Nh,e)}const Rh=R("ZodISODuration",(e,t)=>{wu.init(e,t),ve.init(e,t)});function Ih(e){return Rd(Rh,e)}const Th=(e,t)=>{hl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>uc(e,n)},flatten:{value:n=>cc(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ra,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ra,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ge=R("ZodError",Th,{Parent:Error}),Mh=Ja(Ge),Ph=Xa(Ge),Oh=co(Ge),Lh=uo(Ge),zh=fc(Ge),jh=pc(Ge),Bh=mc(Ge),Dh=gc(Ge),Fh=bc(Ge),Hh=vc(Ge),Gh=xc(Ge),Uh=Sc(Ge),Hr=new WeakMap;function kn(e,t,n){const o=Object.getPrototypeOf(e);let a=Hr.get(o);if(a||(a=new Set,Hr.set(o,a)),!a.has(t)){a.add(t);for(const r in n){const i=n[r];Object.defineProperty(o,r,{configurable:!0,enumerable:!1,get(){const l=i.bind(this);return Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,r,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const he=R("ZodType",(e,t)=>(de.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Yn(e,"input"),output:Yn(e,"output")}}),e.toJSONSchema=Xd(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>Mh(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Oh(e,n,o),e.parseAsync=async(n,o)=>Ph(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>Lh(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>zh(e,n,o),e.decode=(n,o)=>jh(e,n,o),e.encodeAsync=async(n,o)=>Bh(e,n,o),e.decodeAsync=async(n,o)=>Dh(e,n,o),e.safeEncode=(n,o)=>Fh(e,n,o),e.safeDecode=(n,o)=>Hh(e,n,o),e.safeEncodeAsync=async(n,o)=>Gh(e,n,o),e.safeDecodeAsync=async(n,o)=>Uh(e,n,o),kn(e,"ZodType",{check(...n){const o=this.def;return this.clone(bt(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 vt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Ff(n,o))},superRefine(n,o){return this.check(Hf(n,o))},overwrite(n){return this.check(Vt(n))},optional(){return qr(this)},exactOptional(){return Af(this)},nullable(){return Vr(this)},nullish(){return qr(Vr(this))},nonoptional(n){return Tf(this,n)},array(){return X(this)},or(n){return D([this,n])},and(n){return wf(this,n)},transform(n){return Yr(this,jl(n))},default(n){return Ef(this,n)},prefault(n){return If(this,n)},catch(n){return Pf(this,n)},pipe(n){return Yr(this,n)},readonly(){return zf(this)},describe(n){const o=this.clone();return un.add(o,{description:n}),o},meta(...n){if(n.length===0)return un.get(this);const o=this.clone();return un.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=un.get(e))==null?void 0:n.description},configurable:!0}),e)),Pl=R("_ZodString",(e,t)=>{Qa.init(e,t),he.init(e,t),e._zod.processJSONSchema=(o,a,r)=>eh(e,o,a);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,kn(e,"_ZodString",{regex(...o){return this.check(zd(...o))},includes(...o){return this.check(Dd(...o))},startsWith(...o){return this.check(Fd(...o))},endsWith(...o){return this.check(Hd(...o))},min(...o){return this.check(Vn(...o))},max(...o){return this.check(Nl(...o))},length(...o){return this.check(El(...o))},nonempty(...o){return this.check(Vn(1,...o))},lowercase(o){return this.check(jd(o))},uppercase(o){return this.check(Bd(o))},trim(){return this.check(Ud())},normalize(...o){return this.check(Gd(...o))},toLowerCase(){return this.check(Zd())},toUpperCase(){return this.check(Wd())},slugify(){return this.check(qd())}})}),Zh=R("ZodString",(e,t)=>{Qa.init(e,t),Pl.init(e,t),e.email=n=>e.check(id(Wh,n)),e.url=n=>e.check(dd(qh,n)),e.jwt=n=>e.check(Ad(cf,n)),e.emoji=n=>e.check(hd(Vh,n)),e.guid=n=>e.check(jr(Gr,n)),e.uuid=n=>e.check(ld(In,n)),e.uuidv4=n=>e.check(sd(In,n)),e.uuidv6=n=>e.check(cd(In,n)),e.uuidv7=n=>e.check(ud(In,n)),e.nanoid=n=>e.check(fd(Yh,n)),e.guid=n=>e.check(jr(Gr,n)),e.cuid=n=>e.check(pd(Kh,n)),e.cuid2=n=>e.check(md(Jh,n)),e.ulid=n=>e.check(gd(Xh,n)),e.base64=n=>e.check($d(rf,n)),e.base64url=n=>e.check(_d(lf,n)),e.xid=n=>e.check(bd(Qh,n)),e.ksuid=n=>e.check(vd(ef,n)),e.ipv4=n=>e.check(xd(tf,n)),e.ipv6=n=>e.check(Sd(nf,n)),e.cidrv4=n=>e.check(wd(of,n)),e.cidrv6=n=>e.check(kd(af,n)),e.e164=n=>e.check(Cd(sf,n)),e.datetime=n=>e.check(Ch(n)),e.date=n=>e.check(yh(n)),e.time=n=>e.check(Eh(n)),e.duration=n=>e.check(Ih(n))});function k(e){return rd(Zh,e)}const ve=R("ZodStringFormat",(e,t)=>{ge.init(e,t),Pl.init(e,t)}),Wh=R("ZodEmail",(e,t)=>{cu.init(e,t),ve.init(e,t)}),Gr=R("ZodGUID",(e,t)=>{lu.init(e,t),ve.init(e,t)}),In=R("ZodUUID",(e,t)=>{su.init(e,t),ve.init(e,t)}),qh=R("ZodURL",(e,t)=>{uu.init(e,t),ve.init(e,t)}),Vh=R("ZodEmoji",(e,t)=>{du.init(e,t),ve.init(e,t)}),Yh=R("ZodNanoID",(e,t)=>{hu.init(e,t),ve.init(e,t)}),Kh=R("ZodCUID",(e,t)=>{fu.init(e,t),ve.init(e,t)}),Jh=R("ZodCUID2",(e,t)=>{pu.init(e,t),ve.init(e,t)}),Xh=R("ZodULID",(e,t)=>{mu.init(e,t),ve.init(e,t)}),Qh=R("ZodXID",(e,t)=>{gu.init(e,t),ve.init(e,t)}),ef=R("ZodKSUID",(e,t)=>{bu.init(e,t),ve.init(e,t)}),tf=R("ZodIPv4",(e,t)=>{ku.init(e,t),ve.init(e,t)}),nf=R("ZodIPv6",(e,t)=>{$u.init(e,t),ve.init(e,t)}),of=R("ZodCIDRv4",(e,t)=>{_u.init(e,t),ve.init(e,t)}),af=R("ZodCIDRv6",(e,t)=>{Cu.init(e,t),ve.init(e,t)}),rf=R("ZodBase64",(e,t)=>{Au.init(e,t),ve.init(e,t)}),lf=R("ZodBase64URL",(e,t)=>{Nu.init(e,t),ve.init(e,t)}),sf=R("ZodE164",(e,t)=>{Eu.init(e,t),ve.init(e,t)}),cf=R("ZodJWT",(e,t)=>{Iu.init(e,t),ve.init(e,t)}),Ol=R("ZodNumber",(e,t)=>{kl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(o,a,r)=>th(e,o,a),kn(e,"ZodNumber",{gt(o,a){return this.check(Dr(o,a))},gte(o,a){return this.check(So(o,a))},min(o,a){return this.check(So(o,a))},lt(o,a){return this.check(Br(o,a))},lte(o,a){return this.check(xo(o,a))},max(o,a){return this.check(xo(o,a))},int(o){return this.check(Ur(o))},safe(o){return this.check(Ur(o))},positive(o){return this.check(Dr(0,o))},nonnegative(o){return this.check(So(0,o))},negative(o){return this.check(Br(0,o))},nonpositive(o){return this.check(xo(0,o))},multipleOf(o,a){return this.check(Fr(o,a))},step(o,a){return this.check(Fr(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 Id(Ol,e)}const uf=R("ZodNumberFormat",(e,t)=>{Tu.init(e,t),Ol.init(e,t)});function Ur(e){return Td(uf,e)}const df=R("ZodBoolean",(e,t)=>{Mu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>nh(e,n,o)});function O(e){return Md(df,e)}const hf=R("ZodAny",(e,t)=>{Pu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ah()});function gn(){return Pd(hf)}const ff=R("ZodUnknown",(e,t)=>{Ou.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>rh()});function Zr(){return Od(ff)}const pf=R("ZodNever",(e,t)=>{Lu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>oh(e,n,o)});function mf(e){return Ld(pf,e)}const gf=R("ZodArray",(e,t)=>{zu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>uh(e,n,o,a),e.element=t.element,kn(e,"ZodArray",{min(n,o){return this.check(Vn(n,o))},nonempty(n){return this.check(Vn(1,n))},max(n,o){return this.check(Nl(n,o))},length(n,o){return this.check(El(n,o))},unwrap(){return this.element}})});function X(e,t){return Vd(gf,e,t)}const bf=R("ZodObject",(e,t)=>{Bu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>dh(e,n,o,a),te(e,"shape",()=>t.shape),kn(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:Zr()})},loose(){return this.clone({...this._zod.def,catchall:Zr()})},strict(){return this.clone({...this._zod.def,catchall:mf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return oc(this,n)},safeExtend(n){return ac(this,n)},merge(n){return rc(this,n)},pick(n){return tc(this,n)},omit(n){return nc(this,n)},partial(...n){return ic(Bl,this,n[0])},required(...n){return lc(Dl,this,n[0])}})});function C(e,t){const n={type:"object",shape:e??{},...B(t)};return new bf(n)}const Ll=R("ZodUnion",(e,t)=>{Cl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>hh(e,n,o,a),e.options=t.options});function D(e,t){return new Ll({type:"union",options:e,...B(t)})}const vf=R("ZodDiscriminatedUnion",(e,t)=>{Ll.init(e,t),Du.init(e,t)});function xf(e,t,n){return new vf({type:"union",options:t,discriminator:e,...B(n)})}const Sf=R("ZodIntersection",(e,t)=>{Fu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>fh(e,n,o,a)});function wf(e,t){return new Sf({type:"intersection",left:e,right:t})}const kf=R("ZodTuple",(e,t)=>{Hu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ph(e,n,o,a),e.rest=n=>e.clone({...e._zod.def,rest:n})});function zl(e,t,n){const o=t instanceof de,a=o?n:t,r=o?t:null;return new kf({type:"tuple",items:e,rest:r,...B(a)})}const Wr=R("ZodRecord",(e,t)=>{Gu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>mh(e,n,o,a),e.keyType=t.keyType,e.valueType=t.valueType});function Zt(e,t,n){return!t||!t._zod?new Wr({type:"record",keyType:k(),valueType:e,...B(t)}):new Wr({type:"record",keyType:e,valueType:t,...B(n)})}const la=R("ZodEnum",(e,t)=>{Uu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(o,a,r)=>ih(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 r={};for(const i of o)if(n.has(i))r[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new la({...t,checks:[],...B(a),entries:r})},e.exclude=(o,a)=>{const r={...t.entries};for(const i of o)if(n.has(i))delete r[i];else throw new Error(`Key ${i} not found in enum`);return new la({...t,checks:[],...B(a),entries:r})}});function I(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new la({type:"enum",entries:n,...B(t)})}const $f=R("ZodLiteral",(e,t)=>{Zu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>lh(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 $f({type:"literal",values:Array.isArray(e)?e:[e],...B(t)})}const _f=R("ZodTransform",(e,t)=>{Wu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>ch(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new ll(e.constructor.name);n.addIssue=r=>{if(typeof r=="string")n.issues.push(mn(r,n.value,t));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(mn(i))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(r=>(n.value=r,n.fallback=!0,n)):(n.value=a,n.fallback=!0,n)}});function jl(e){return new _f({type:"transform",transform:e})}const Bl=R("ZodOptional",(e,t)=>{Al.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ml(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function qr(e){return new Bl({type:"optional",innerType:e})}const Cf=R("ZodExactOptional",(e,t)=>{qu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Ml(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Af(e){return new Cf({type:"optional",innerType:e})}const yf=R("ZodNullable",(e,t)=>{Vu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>gh(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Vr(e){return new yf({type:"nullable",innerType:e})}const Nf=R("ZodDefault",(e,t)=>{Yu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>vh(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ef(e,t){return new Nf({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():ul(t)}})}const Rf=R("ZodPrefault",(e,t)=>{Ku.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>xh(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function If(e,t){return new Rf({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():ul(t)}})}const Dl=R("ZodNonOptional",(e,t)=>{Ju.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>bh(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function Tf(e,t){return new Dl({type:"nonoptional",innerType:e,...B(t)})}const Mf=R("ZodCatch",(e,t)=>{Xu.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>Sh(e,n,o,a),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Pf(e,t){return new Mf({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Fl=R("ZodPipe",(e,t)=>{yl.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>wh(e,n,o,a),e.in=t.in,e.out=t.out});function Yr(e,t){return new Fl({type:"pipe",in:e,out:t})}const Of=R("ZodPreprocess",(e,t)=>{Fl.init(e,t),Qu.init(e,t)}),Lf=R("ZodReadonly",(e,t)=>{ed.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>kh(e,n,o,a),e.unwrap=()=>e._zod.def.innerType});function zf(e){return new Lf({type:"readonly",innerType:e})}const jf=R("ZodLazy",(e,t)=>{td.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>$h(e,n,o,a),e.unwrap=()=>e._zod.def.getter()});function Bf(e){return new jf({type:"lazy",getter:e})}const Df=R("ZodCustom",(e,t)=>{nd.init(e,t),he.init(e,t),e._zod.processJSONSchema=(n,o,a)=>sh(e,n)});function Ff(e,t={}){return Yd(Df,e,t)}function Hf(e,t){return Kd(e,t)}function Hl(e,t){return new Of({type:"pipe",in:jl(e),out:t})}var Gf=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Uf=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Kr=C({style:C({textAlign:I(["left","center","right"]).optional().nullable(),padding:Gf}).optional().nullable(),props:C({size:f().gt(0).optional().nullable(),shape:I(["circle","square","rounded"]).optional().nullable(),imageUrl:k().optional().nullable(),alt:k().optional().nullable()}).optional().nullable()});function Zf(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var Tn={size:64,imageUrl:"",alt:"",shape:"square"};function Jr({style:e,props:t}){var n,o,a,r,i;const l=(n=t==null?void 0:t.size)!=null?n:Tn.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:Tn.imageUrl,u=(a=t==null?void 0:t.alt)!=null?a:Tn.alt,c=(r=t==null?void 0:t.shape)!=null?r:Tn.shape,p={textAlign:(i=e==null?void 0:e.textAlign)!=null?i:void 0,padding:Uf(e==null?void 0:e.padding)};return F.createElement("div",{style:p},F.createElement("img",{alt:u,src:s,height:l,width:l,style:{outline:"none",border:"none",textDecoration:"none",objectFit:"cover",height:l,width:l,maxWidth:"100%",display:"inline-block",verticalAlign:"middle",textAlign:"center",borderRadius:Zf(c,l)}}))}const $n=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:O().optional().nullable()}).optional().nullable(),Wf=Kr.extend({props:Kr.shape.props.unwrap().unwrap().extend({decorative:O().optional().nullable(),animation:$n}).optional().nullable()}),dn={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},er=Object.values(dn);function Gl(){return"desktop"}const Ue=1024,Le=640,nt=`@media (max-width: ${Ue}px)`,Oe=`@media (max-width: ${Le}px)`,yt=`@media (min-width: ${Le+1}px) and (max-width: ${Ue}px)`,fo=C({color:k().optional().nullable(),offsetX:f().default(0),offsetY:f().default(0),blur:f().default(0),spread:f().default(0),inset:O().default(!1)}).partial().optional().nullable();function qf(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 po(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:a=0,spread:r=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${o}px ${a}px ${r}px ${qf(t)}`}}const Be=C({tablet:Zt(k(),gn()).optional().nullable(),mobile:Zt(k(),gn()).optional().nullable()}).optional().nullable(),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:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Yf=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"})})},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 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Jf=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"})})},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:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Qf=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"})})},ep=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"})})},tp=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"})})},np=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"})})},op=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"})})},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:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},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:"M7 13L12 18L17 13M7 6L12 11L17 6",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:"M15 18L9 12L15 6",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:"M18 17L13 12L18 7M11 17L6 12L11 7",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:"M9 18L15 12L9 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:"M6 17L11 12L6 7M13 17L18 12L13 7",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:"M18 15L12 9L6 15",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 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(Vf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return g.jsx(Xf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return g.jsx(op,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return g.jsx(Qf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return g.jsx(Yf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return g.jsx(Kf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return g.jsx(Jf,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return g.jsx(ep,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return g.jsx(tp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return g.jsx(np,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return g.jsx(ip,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return g.jsx(sp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return g.jsx(up,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return g.jsx(ap,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return g.jsx(lp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return g.jsx(cp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return g.jsx(dp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return g.jsx(rp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const bn="data-ahd-var",Ul=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,hp=/[&<>"']/g,fp={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ft(e){return e.replace(hp,t=>fp[t])}function Zl(e){return!e||e.indexOf("{{")===-1?e:e.replace(Ul,(t,n,o,a)=>{if(n)return n;const r=Ft(a);return`<span ${bn}="${r}">{{${a}}}</span>`})}function Wl(e){return!e||e.indexOf("{{")===-1?e:Ft(e).replace(Ul,(t,n,o,a)=>{if(n)return n;const r=Ft(a);return`<span ${bn}="${r}">{{${a}}}</span>`})}const pp=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function mp(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(pp,(a,r)=>{const i=o.get(r);return i!==null?encodeURIComponent(i):a})}function gp(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),o=e.querySelectorAll(`[${bn}]`);for(let a=0;a<o.length;a++){const r=o[a],i=n.get(r.getAttribute(bn)||"");i!==null&&(r.textContent=i)}}const sa="data-ahd-date",ql="data-ahd-date-format";function ca(e,t){const n=Ft(e),o=t??"",a=Ft(o),r=Vl(o)||`{{${n}}}`;return`<span ${bn}="${n}" ${sa}="${a}" ${ql}="relative">${Ft(r)}</span>`}function Vl(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const o=864e5,a=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),r=Math.round((a(n)-a(t))/o);if(r===0)return"Today";if(r===1)return"Tomorrow";if(r===-1)return"Yesterday";if(r>=-6&&r<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const i=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function bp(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${sa}][${ql}="relative"]`);for(let o=0;o<n.length;o++){const a=n[o],r=a.getAttribute(sa)||"",i=Vl(r,t);i&&(a.textContent=i)}}const vp=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 wo(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 xp=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Sp=k().regex(/^rgba?\([^\)]+\)$/i),wp=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),kp=re("transparent"),Mt=D([xp,Sp,wp,kp]).nullable().optional(),$p=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),_p=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Cp=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Ap=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),yp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Np=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ep=C({style:C({backgroundColor:Mt,fontSize:f().min(0).optional().nullable(),fontFamily:vp,fontWeight:I(["bold","normal",...er]).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),buttonTextAlign:I(["left","center","right"]).optional().nullable(),padding:$p,margin:_p}).optional().nullable(),props:C({buttonBackground:Mt,hoverBackground:Mt,hoverTextColor:Mt,borderRadius:Ap,borderWidth:Cp,borderColor:Mt,buttonTextColor:Mt,fullWidth:O().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:k().optional().nullable(),url:k().optional().nullable(),action:I(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:O().optional().nullable(),customAction:k().optional().nullable(),actionPayload:Zt(k(),gn()).optional().nullable(),iconEnabled:O().optional().nullable(),iconName:k().optional().nullable(),iconAlignment:I(["left","right"]).optional().nullable(),ariaLabel:k().optional().nullable(),goToStep:k().optional().nullable(),postMessageEvent:k().optional().nullable(),animation:$n,boxShadow:fo}).optional().nullable(),responsive:Be});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 xe={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 Rp({style:e,props:t}){const o=`bh-${F.useId().replace(/:/g,"")}`,a=(t==null?void 0:t.text)??xe.text,r=typeof a=="string"&&a.indexOf("{{")!==-1,i=(me,ze)=>r?g.jsx("span",{style:me,"data-action":ze,dangerouslySetInnerHTML:{__html:Wl(a)}}):g.jsx("span",{style:me,"data-action":ze,children:a}),l=(t==null?void 0:t.url)??xe.url,s=mp(l),u=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,c=(t==null?void 0:t.fullWidth)??xe.fullWidth,p=(t==null?void 0:t.widthType)??xe.widthType,d=(t==null?void 0:t.width)??xe.width,h=(t==null?void 0:t.widthUnit)??xe.widthUnit,m=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,v=m??d,w=b??v,x=(t==null?void 0:t.widthTypeTablet)??p,$=(t==null?void 0:t.widthTypeMobile)??x,S=(t==null?void 0:t.size)??xe.size,_=(t==null?void 0:t.sizeTablet)??S,y=(t==null?void 0:t.sizeMobile)??_,A=p,N=d,E=(t==null?void 0:t.buttonTextColor)??xe.buttonTextColor,T=(t==null?void 0:t.buttonBackground)??xe.buttonBackground,M=(t==null?void 0:t.iconEnabled)??xe.iconEnabled,P=(t==null?void 0:t.iconName)??xe.iconName,z=(t==null?void 0:t.iconAlignment)??xe.iconAlignment,H=(t==null?void 0:t.ariaLabel)??null,Z=typeof a=="string"&&a.trim().length>0,j=H&&H.trim().length>0?H:!Z&&M&&P?P:void 0,V=(t==null?void 0:t.action)??xe.action,Y=(t==null?void 0:t.openInNewTab)??xe.openInNewTab,G=((t==null?void 0:t.customAction)??xe.customAction)||V,oe=(t==null?void 0:t.actionPayload)??xe.actionPayload,le=(t==null?void 0:t.goToStep)??xe.goToStep,se=(t==null?void 0:t.postMessageEvent)??xe.postMessageEvent,ce=oe||(G==="goToStep"?{goToStep:le||""}:null)||(G==="postMessageEvent"?{postMessageEvent:se||""}:null),Re=ce?JSON.stringify(ce):void 0,Ce=(t==null?void 0:t.borderRadius)??xe.borderRadius,W=(t==null?void 0:t.borderWidth)??xe.borderWidth,L=(t==null?void 0:t.borderColor)??xe.borderColor,U=(t==null?void 0:t.boxShadow)??xe.boxShadow,q=po(U),J=(t==null?void 0:t.hoverBackground)??null,Ae=(t==null?void 0:t.hoverTextColor)??null,Q=Xr(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 bo=Math.max(0,(me.topLeft||0)-ze),vo=Math.max(0,(me.topRight||0)-ze),It=Math.max(0,(me.bottomRight||0)-ze),Tt=Math.max(0,(me.bottomLeft||0)-ze);return`${bo}px ${vo}px ${It}px ${Tt}px`},$e=L&&(L.includes("linear-gradient")||L.includes("radial-gradient")||L.includes("repeating-linear-gradient")),Ne=W&&((W.top??0)>0||(W.right??0)>0||(W.bottom??0)>0||(W.left??0)>0),ae={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},Se=(()=>{if(c)return"100%";switch(A){case"fill":return"100%";case"fixed":return`${N}${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"||!Ne?{border:"none"}:$e?{borderTop:`${ae.top}px solid transparent`,borderRight:`${ae.right}px solid transparent`,borderBottom:`${ae.bottom}px solid transparent`,borderLeft:`${ae.left}px solid transparent`,borderImage:`${L} `,borderRadius:"0px"}:{borderTop:`${ae.top}px solid ${L}`,borderRight:`${ae.right}px solid ${L}`,borderBottom:`${ae.bottom}px solid ${L}`,borderLeft:`${ae.left}px solid ${L}`},we=T&&(T.includes("linear-gradient")||T.includes("radial-gradient")||T.includes("repeating-linear-gradient")),Ee=E&&(E.includes("linear-gradient")||E.includes("radial-gradient")||E.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:yp(e==null?void 0:e.padding),margin:Np(e==null?void 0:e.margin)},rt=pe(),it=Ee?{backgroundImage:E,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:E||void 0},dt=Ee?"transparent":we?void 0:T,Jt=Ee?void 0:we?T:void 0,Ie=(e==null?void 0:e.fontSize)??16,Rt=`${Ie}px`,Xt={fontSize:Rt,fontFamily:wo(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??dn.REGULAR,backgroundColor:dt,backgroundImage:Jt,borderRadius:$e?"0px":ye(Ce),...rt,...$e&&Ne?{}:q,display:Se==="100%"?"block":"inline-block",width:Se,padding:`${Q[0]}px ${Q[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:ne,lineHeight:"normal"},Nn=$e&&Ne?g.jsx("div",{style:{display:Se==="100%"?"block":"inline-block",padding:`${ae.top}px ${ae.right}px ${ae.bottom}px ${ae.left}px`,background:L,borderRadius:ye(Ce),width:Se,boxSizing:"border-box",...q},children:g.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:ue(Ce,Math.max(ae.top,ae.right,ae.bottom,ae.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??dn.REGULAR,fontFamily:wo(e==null?void 0:e.fontFamily),backgroundImage:Jt??(we?T:"#fffff"),backgroundColor:dt??(we?"#ffffff":T),textAlign:De,textDecoration:"none",fontSize:Rt,padding:`${Q[0]}px ${Q[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":G,"data-action-payload":Re,"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:[M&&P&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(P,{strokeColor:Ee?void 0:E,fontSize:Ie})}):null,i({...it,pointerEvents:"none"},G),M&&P&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(P,{strokeColor:Ee?void 0:E,fontSize:Ie})}):null]})}):g.jsxs("button",{style:{cursor:"pointer",...rt,...q,borderRadius:ye(Ce),width:Se,fontWeight:(e==null?void 0:e.fontWeight)??dn.REGULAR,fontFamily:wo(e==null?void 0:e.fontFamily),backgroundColor:dt??(we?"":T),backgroundImage:Jt??(we?T:""),textAlign:De,textDecoration:"none",fontSize:Rt,padding:`${Q[0]}px ${Q[1]}px`,boxSizing:"border-box",lineHeight:"normal"},"data-action":G,"data-action-payload":Re,"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:[M&&P&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(P,{strokeColor:Ee?void 0:E,fontSize:Ie})}):null,i({...it,pointerEvents:"none"},G),M&&P&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},"data-action":G,children:ft(P,{strokeColor:Ee?void 0:E,fontSize:Ie})}):null]}),wt=[];J&&wt.push(`background-color: ${J} !important; background-image: none !important;`),Ae&&wt.push(`color: ${Ae} !important;`);const kt=wt.length>0?`#${o} a:hover, #${o} button:hover { ${wt.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,Qt=(me,ze,bo,vo)=>{const It=[],Tt=c||ze==="fill"?"100%":ze==="fixed"?`${bo}${h}`:"auto";It.push(`width: ${Tt} !important;`,"max-width: 100% !important;"),It.push(`display: ${Tt==="100%"?"block":"inline-block"} !important;`);const[wr,qs]=Xr(vo);return It.push(`padding: ${wr}px ${qs}px !important;`),`${me} { #${o} a, #${o} button { ${It.join(" ")} } #${o} > div { width: ${Tt} !important; max-width: 100% !important; display: ${Tt==="100%"?"block":"inline-block"} !important; } }`},ee=x!==p||_!==S||x==="fixed"&&v!==d,ie=$!==p||y!==S||$==="fixed"&&w!==d,Te=ee||ie?[ee?Qt(nt,x,v,_):"",ie?Qt(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}),Te&&g.jsx("style",{children:Te}),Nn]});const ht=$e&&Ne?g.jsx("div",{style:{display:Se==="100%"?"block":"inline-block",padding:`${ae.top}px ${ae.right}px ${ae.bottom}px ${ae.left}px`,background:L,borderRadius:ye(Ce),width:Se,boxSizing:"border-box",...q},children:g.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Xt,border:"none",borderRadius:ue(Ce,Math.max(ae.top,ae.right,ae.bottom,ae.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:[M&&P&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(P,{strokeColor:Ee?void 0:E,fontSize:Ie})}):null,i({...it,pointerEvents:"none"}),M&&P&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(P,{strokeColor:Ee?void 0:E,fontSize:Ie})}):null]})}):g.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Xt,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:[M&&P&&z==="left"?g.jsx("span",{style:{marginRight:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(P,{strokeColor:Ee?void 0:E,fontSize:Ie})}):null,i({...it,pointerEvents:"none"}),M&&P&&z==="right"?g.jsx("span",{style:{marginLeft:4,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"},children:ft(P,{strokeColor:Ee?void 0:E,fontSize:Ie})}):null]});return g.jsxs("div",{id:o,className:"button-block",style:Ve,children:[kt&&g.jsx("style",{children:kt}),Te&&g.jsx("style",{children:Te}),ht]})}const Ip=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Tp=k().regex(/^rgba?\([^\)]+\)$/i),Mp=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Pp=re("transparent"),Qr=D([Ip,Tp,Mp,Pp]).nullable().optional(),Op=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Lp=C({top:f(),bottom:f(),right:f(),left:f()}).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=C({style:C({backgroundColor:Qr,padding:Op,margin:Lp}).optional().nullable(),props:C({lineColor:Qr,lineHeight:f().optional().nullable()}).optional().nullable()}),ei={lineHeight:1,lineColor:"#333333"};function Dp({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??ei.lineHeight,o=(t==null?void 0:t.lineColor)??ei.lineColor,a={padding:zp(e==null?void 0:e.padding),margin:jp(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 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=re("transparent"),ko=D([Fp,Hp,Gp,Up]).nullable().optional(),Zp=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Wp=C({top:f(),bottom:f(),right:f(),left:f()}).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=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 Kp(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 Jp=C({props:C({text:k().optional().nullable(),level:I(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:I(["text","link"]).optional().nullable(),url:k().optional().nullable(),openInNewTab:O().optional().nullable()}).optional().nullable(),style:C({color:ko,textColor:ko,backgroundColor:ko,fontFamily:Yp,fontSize:f().optional().nullable(),lineClamp:f().int().gte(0).optional().nullable(),fontWeight:I(["bold","normal",...er]).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:Zp,margin:Wp}).optional().nullable()}),en={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function Xp({props:e,style:t}){const n=(e==null?void 0:e.level)??en.level,o=(e==null?void 0:e.text)??en.text,a=typeof o=="string"&&o.indexOf("{{")!==-1,r=(e==null?void 0:e.linkType)??en.linkType,i=(e==null?void 0:e.url)??en.url,l=(e==null?void 0:e.openInNewTab)??en.openInNewTab,s=r==="link"&&i,u=(t==null?void 0:t.fontSize)??Qp(n),c=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),p=c&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(c),d=(t==null?void 0:t.textDecoration)??"none",h=p&&(d==="underline"||d==="underline line-through"),m=p&&(d==="line-through"||d==="underline line-through"),b=t==null?void 0:t.lineClamp,v=!!(b&&b>0),w=v?{display:"-webkit-box",WebkitLineClamp:b,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},x={fontWeight:(t==null?void 0:t.fontWeight)??dn.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:p?"none":d,margin:0,fontFamily:Kp(t==null?void 0:t.fontFamily),fontSize:u,...w},$=p?{lineHeight:"normal ",backgroundImage:c,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...v?{}:{display:"inline-block"},...h?{paddingBottom:"0.08em"}:{}}:{color:c??void 0},S={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:c??void 0,pointerEvents:"none"},_={...S,bottom:0},y={...S,top:"50%",transform:"translateY(-50%)"},A=(t==null?void 0:t.backgroundColor)??void 0,N=typeof A=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(A),E={padding:qp(t==null?void 0:t.padding),margin:Vp(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",...N?{backgroundImage:A,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:A}},T=n,M=g.jsx(T,{className:"heading-block",style:x,children:g.jsxs("span",{style:$,children:[a?g.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:Wl(o)}}):o,h?g.jsx("span",{style:_}):null,m?g.jsx("span",{style:y}):null]})});return g.jsx("div",{className:"heading-block-wrapper",style:E,children:s?g.jsx("a",{href:i,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!p&&c?c:void 0},children:M}):M})}function Qp(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 Yl="comm",Kl="rule",Jl="decl",em="@import",tm="@namespace",nm="@keyframes",om="@layer",am=Math.abs,hn=String.fromCharCode;function Xl(e){return e.trim()}function ua(e,t,n){return e.replace(t,n)}function Ht(e,t){return e.charCodeAt(t)|0}function Wt(e,t,n){return e.slice(t,n)}function tt(e){return e.length}function rm(e){return e.length}function Mn(e,t){return t.push(e),e}var mo=1,qt=1,Ql=0,He=0,_e=0,Yt="";function tr(e,t,n,o,a,r,i,l){return{value:e,root:t,parent:n,type:o,props:a,children:r,line:mo,column:qt,length:i,return:"",siblings:l}}function im(){return _e}function lm(){return _e=He>0?Ht(Yt,--He):0,qt--,_e===10&&(qt=1,mo--),_e}function Je(){return _e=He<Ql?Ht(Yt,He++):0,qt++,_e===10&&(qt=1,mo++),_e}function gt(){return Ht(Yt,He)}function Dn(){return He}function go(e,t){return Wt(Yt,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 sm(e){return mo=qt=1,Ql=tt(Yt=e),He=0,[]}function cm(e){return Yt="",e}function $o(e){return Xl(go(He-1,da(e===91?e+2:e===40?e+1:e)))}function um(e){for(;(_e=gt())&&_e<33;)Je();return vn(e)>2||vn(_e)>3?"":" "}function dm(e,t){for(;--t&&Je()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return go(e,Dn()+(t<6&>()==32&&Je()==32))}function da(e){for(;Je();)switch(_e){case e:return He;case 34:case 39:e!==34&&e!==39&&da(_e);break;case 40:e===41&&da(e);break;case 92:Je();break}return He}function hm(e,t){for(;Je()&&e+_e!==57;)if(e+_e===84&>()===47)break;return"/*"+go(t,He-1)+"*"+hn(e===47?e:Je())}function fm(e){for(;!vn(gt());)Je();return go(e,He)}function pm(e){return cm(Fn("",null,null,null,[""],e=sm(e),0,[0],e))}function Fn(e,t,n,o,a,r,i,l,s){for(var u=0,c=0,p=i,d=0,h=0,m=0,b=1,v=1,w=1,x=0,$=0,S="",_=a,y=r,A=o,N=S;v;)switch(m=$,$=Je()){case 40:m!=108&&Ht(N,p-1)==58?(x++,N+="("):N+=$o($);break;case 41:x--,N+=")";break;case 34:case 39:case 91:N+=$o($);break;case 9:case 10:case 13:case 32:if(x>0){N+=hn($);break}N+=um(m);break;case 92:N+=dm(Dn()-1,7);continue;case 47:switch(gt()){case 42:case 47:Mn(mm(hm(Je(),Dn()),t,n,s),s),(vn(m||1)==5||vn(gt()||1)==5)&&tt(N)&&Wt(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*b:l[u++]=tt(N)*w;case 125*b:case 59:case 0:if(x>0&&$){N+=hn($);break}switch($){case 0:case 125:v=0;case 59+c:w==-1&&(N=ua(N,/\f/g,"")),h>0&&(tt(N)-p||b===0)&&Mn(h>32?ni(N+";",o,n,p-1,s):ni(ua(N," ","")+";",o,n,p-2,s),s);break;case 59:N+=";";default:if(Mn(A=ti(N,t,n,u,c,a,l,S,_=[],y=[],p,r),r),$===123)if(c===0)Fn(N,t,A,A,_,r,p,l,y);else{switch(d){case 99:if(Ht(N,3)===110)break;case 108:if(Ht(N,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Fn(e,A,A,o&&Mn(ti(e,A,A,0,0,a,l,S,a,_=[],p,y),y),a,y,p,l,o?_:y):Fn(N,A,A,A,[""],y,0,l,y)}}u=c=h=0,b=w=1,S=N="",p=i;break;case 58:p=1+tt(N),h=m;default:if(b<1){if($==123)--b;else if($==125&&b++==0&&lm()==125)continue}switch(N+=hn($),$*b){case 38:w=c>0?1:(N+="\f",-1);break;case 44:if(x>0)break;l[u++]=(tt(N)-1)*w,w=1;break;case 64:gt()===45&&(N+=$o(Je())),d=gt(),c=p=tt(S=N+=fm(Dn())),$++;break;case 45:m===45&&tt(N)==2&&(b=0)}}return r}function ti(e,t,n,o,a,r,i,l,s,u,c,p){for(var d=a-1,h=a===0?r:[""],m=rm(h),b=0,v=0,w=0;b<o;++b)for(var x=0,$=Wt(e,d+1,d=am(v=i[b])),S=e;x<m;++x)(S=Xl(v>0?h[x]+" "+$:ua($,/&\f/g,h[x])))&&(s[w++]=S);return tr(e,t,n,a===0?Kl:l,s,u,c,p)}function mm(e,t,n,o){return tr(e,t,n,Yl,hn(im()),Wt(e,2,-2),0,o)}function ni(e,t,n,o,a){return tr(e,t,n,Jl,Wt(e,0,o),Wt(e,o+1,-1),o,a)}function ha(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function gm(e,t,n,o){switch(e.type){case om:if(e.children.length)break;case em:case tm:case Jl:return e.return=e.return||e.value;case Yl:return"";case nm:return e.return=e.value+"{"+ha(e.children,o)+"}";case Kl:if(!tt(e.value=e.props.join(",")))return""}return tt(n=ha(e.children,o))?e.return=e.value+"{"+n+"}":""}const bm=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),vm=k().regex(/^rgba?\([^\)]+\)$/i),xm=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Sm=re("transparent"),oi=D([bm,vm,xm,Sm]).nullable().optional(),wm=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),km=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),$m=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_m=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Cm=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 Am(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 ym=C({style:C({color:oi,backgroundColor:oi,fontFamily:Cm,fontSize:f().min(0).optional().nullable(),textAlign:I(["left","right","center"]).optional().nullable(),padding:wm,margin:km}).optional().nullable(),props:C({contents:k().optional().nullable()}).optional().nullable()}),Nm=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Em(e,t){let n="";const o=e.replace(Nm,(r,i)=>(n+=i,""));if(!n.trim())return{markup:o,css:""};const a=ha(pm(`[${t}]{${n}}`),gm);return{markup:o,css:a}}function Rm({style:e,props:t}){const n=t==null?void 0:t.contents,[o,a]=F.useState(!1),i=`data-html-scope-${F.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=F.useMemo(()=>n?Em(n,i):{markup:"",css:""},[n,i]),u={color:(e==null?void 0:e.color)??void 0,backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,fontFamily:Am(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:$m(e==null?void 0:e.padding),margin:_m(e==null?void 0:e.margin)},c=F.useRef(null);F.useEffect(()=>{const b=c.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const p=b=>{o||a(!0)},d=()=>{a(!1)},h=`[${i}] pre,[${i}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return g.jsx("div",{ref:c,className:"html-block",style:u,children:g.jsx("style",{dangerouslySetInnerHTML:{__html:h}})});const m=`<style>${h}${s}</style>${Zl(l)}`;return g.jsx("div",{ref:c,className:"html-block",style:u,onClick:p,onBlur:d,tabIndex:0,[i]:"",dangerouslySetInnerHTML:{__html:m}})}const nr=C({enabled:O(),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(),Im=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Tm=k().regex(/^rgba?\([^\)]+\)$/i),Mm=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Pm=re("transparent"),Om=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Lm=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),_o=D([Im,Tm,Mm,Pm]).nullable().optional(),zm=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),jm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Bm(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 Dm(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 Fm=C({style:C({padding:Om,backgroundColor:_o.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:k().optional().nullable(),urlTablet:k().optional().nullable(),urlMobile:k().optional().nullable(),alt:k().optional().nullable(),decorative:O().optional().nullable(),linkHref:k().optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),borderRadius:Lm,borderColor:_o.default(null),borderWidth:zm,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:k().optional().nullable(),iconFillColor:_o.default(null),animation:$n,hoverEffect:nr,boxShadow:fo}).optional().nullable()}),Me={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 Hm=0;function Gm({style:e,props:t}){const n=F.useMemo(()=>`ahd-img-${++Hm}`,[]),o=(e==null?void 0:e.textAlign)??void 0,a=o==="center"?"center":o==="right"?"flex-end":"flex-start",r={padding:jm(e==null?void 0:e.padding),...Bm(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:a,width:"100%",boxSizing:"border-box"},i=(t==null?void 0:t.linkHref)??Me.linkHref,l=(t==null?void 0:t.widthType)??Me.widthType,s=(t==null?void 0:t.width)??Me.width,u=(t==null?void 0:t.widthUnit)??Me.widthUnit,c=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,d=c??s,h=p??d,m=(t==null?void 0:t.height)??Me.height,b=(t==null?void 0:t.heightTablet)??null,v=(t==null?void 0:t.heightMobile)??null,w=b??m,x=v??w,$=m,S=(t==null?void 0:t.url)??Me.url,_=(t==null?void 0:t.urlTablet)??null,y=(t==null?void 0:t.urlMobile)??null,A=!i&&((t==null?void 0:t.decorative)??Me.decorative),N=A?"":(t==null?void 0:t.alt)??Me.alt,E=A?{role:"presentation","aria-hidden":!0}:{},T=(t==null?void 0:t.contentAlignment)??Me.contentAlignment,M=(t==null?void 0:t.borderRadius)??Me.borderRadius,P=(t==null?void 0:t.borderColor)??Me.borderColor,z=(t==null?void 0:t.borderWidth)??Me.borderWidth,H=(t==null?void 0:t.boxShadow)??Me.boxShadow,Z=po(H),j=(t==null?void 0:t.rotation)??Me.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,we=ne%180!==0?1/(Math.abs(Math.cos(pe))+Math.abs(Math.sin(pe))):1;return`rotate(${ne}deg) scale(${we})`},le=j,se=le?{transform:oe(le),transformOrigin:"center"}:{},Re=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=Dm(P,z),W=ne=>typeof ne=="number"?`${ne}px`:`${ne.topLeft}px ${ne.topRight}px ${ne.bottomRight}px ${ne.bottomLeft}px`,L=(ne,pe)=>{const we=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-we)}px`;const Ee=Math.max(0,(ne.topLeft||0)-we),Fe=Math.max(0,(ne.topRight||0)-we),Ve=Math.max(0,(ne.bottomRight||0)-we),rt=Math.max(0,(ne.bottomLeft||0)-we);return`${Ee}px ${Fe}px ${Ve}px ${rt}px`},q=(()=>{switch(l){case"fill":return"100%";case"fixed":return s;case"fit":default:return}})(),J=l==="fixed"?`${s}${u}`:void 0,Ae=S,Q=l==="fixed"?`
|
|
69
|
+
${nt} { .${n} img { width: ${d}${u} !important; max-width: 100% !important; } }
|
|
70
|
+
${Oe} { .${n} img { width: ${h}${u} !important; max-width: 100% !important; } }
|
|
71
|
+
`.trim():null,ye=b!=null||v!=null?`
|
|
72
|
+
${nt} { .${n} img { height: ${w?`${w}px`:"auto"} !important; } }
|
|
73
|
+
${Oe} { .${n} img { height: ${x?`${x}px`:"auto"} !important; } }
|
|
74
|
+
`.trim():null,ue=(t==null?void 0:t.hoverEffect)??Me.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,Ne=[Q,ye,Re,$e].filter(Boolean).join(`
|
|
78
|
+
`)||null,ae=P&&(P.includes("linear-gradient")||P.includes("radial-gradient")||P.includes("repeating-linear-gradient")),St=(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})]}),Se=g.jsxs("picture",{children:[St,g.jsx("img",{alt:N,...E,src:Ae,width:typeof q=="number"&&u==="px"?q:void 0,height:$!==null?$:void 0,style:{width:J??(q==="100%"?"100%":typeof q=="number"?`${q}${u}`:"auto"),height:$?`${$}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:T,display:l==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:M?W(M):void 0}})]}),De=ae?g.jsx("div",{style:{borderRadius:M?W(M):void 0,...Ce,...Z,...se},children:g.jsxs("picture",{children:[St,g.jsx("img",{alt:N,...E,src:Ae,width:typeof q=="number"&&u==="px"?q:void 0,height:$!==null?$:void 0,style:{width:"100%",height:$?`${$}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:T,display:"block",maxWidth:J??(typeof q=="number"?`${q}${u}`:"auto"),boxSizing:"border-box",borderRadius:M?L(M,z):void 0}})]})}):P?g.jsx("div",{style:{borderRadius:M?W(M):void 0,...Ce,...Z,...se},children:Se}):Z.boxShadow?g.jsx("div",{style:{borderRadius:M?W(M):void 0,...Z,...se},children:Se}):F.cloneElement(Se,{children:F.Children.map(Se.props.children,ne=>(ne==null?void 0:ne.type)==="img"?F.cloneElement(ne,{style:{...ne.props.style,...se}}):ne)});return i?g.jsxs("div",{className:`image-block ${n}`,style:r,children:[Ne&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Ne}}),g.jsx("a",{href:i,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:De})]}):g.jsxs("div",{className:`image-block ${n}`,style:r,children:[Ne&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Ne}}),De]})}const Um=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Zm=k().regex(/^rgba?\([^\)]+\)$/i),Wm=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),qm=re("transparent"),tn=D([Um,Zm,Wm,qm]).nullable().optional(),Vm=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Ym=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),Km=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Jm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Xm(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 Qm(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 Co=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,eg=C({style:C({padding:Vm,backgroundColor:tn.default(null),textAlign:I(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({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:I(["_self","_blank"]).optional().nullable(),width:f().positive().optional().nullable(),widthTablet:f().positive().optional().nullable(),widthMobile:f().positive().optional().nullable(),borderRadius:Ym,borderColor:tn.default(null),borderWidth:Km,iconName:k().optional().nullable(),iconNameTablet:k().optional().nullable(),iconNameMobile:k().optional().nullable(),iconFillColor:tn.default(null),iconFillColorTablet:tn.default(null),iconFillColorMobile:tn.default(null),animation:$n,boxShadow:fo}).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 tg=0;function ng({style:e,props:t}){const n=(t==null?void 0:t.url)??Ye.url,o=(t==null?void 0:t.urlTablet)??null,a=(t==null?void 0:t.urlMobile)??null,r=(t==null?void 0:t.showLink)??Ye.showLink,i=(t==null?void 0:t.linkHref)??Ye.linkHref,l=r&&i?i:null,s=(t==null?void 0:t.linkTarget)??Ye.linkTarget,u=!l&&((t==null?void 0:t.decorative)??Ye.decorative),c=u?"":(t==null?void 0:t.alt)??Ye.alt,p=u?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??Ye.width,h=(t==null?void 0:t.widthTablet)??null,m=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??Ye.borderRadius,v=(t==null?void 0:t.borderColor)??Ye.borderColor,w=(t==null?void 0:t.borderWidth)??Ye.borderWidth,x=(t==null?void 0:t.boxShadow)??Ye.boxShadow,$=po(x),S=h??d,_=m??S,y=d,A=n,N=`ahd-logo-${++tg}`,E=`
|
|
79
|
+
${nt} { .${N} img { width: ${S}px !important; max-width: 100% !important; } }
|
|
80
|
+
${Oe} { .${N} img { width: ${_}px !important; max-width: 100% !important; } }
|
|
81
|
+
`.trim(),T={padding:Jm(e==null?void 0:e.padding),...Xm(e==null?void 0:e.backgroundColor),textAlign:(e==null?void 0:e.textAlign)??void 0,lineHeight:0},M={width:`${y}px`,height:"auto",maxWidth:"100%",display:"inline-block",verticalAlign:"top",boxSizing:"border-box",border:"none",outline:"none",textDecoration:"none",borderRadius:b?Co(b):void 0},P=g.jsxs("picture",{children:[a&&g.jsx("source",{media:Oe.replace("@media ",""),srcSet:a}),o&&g.jsx("source",{media:nt.replace("@media ",""),srcSet:o}),g.jsx("img",{alt:c,...p,src:A,width:y,style:M})]}),z=v&&v!=="transparent"?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?Co(b):void 0,...Qm(v,w),...$},children:P}):$.boxShadow?g.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?Co(b):void 0,...$},children:P}):P;return l?g.jsxs("div",{className:`logo-block ${N}`,style:T,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),g.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":u?"Logo":c||"Logo",children:z})]}):g.jsxs("div",{className:`logo-block ${N}`,style:T,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),z]})}const og=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),ag=k().regex(/^rgba?\([^\)]+\)$/i),rg=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ig=re("transparent"),lg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),sg=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),cg=D([og,ag,rg,ig]).nullable().optional(),ug=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),dg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function hg(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 fg(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 pg=C({style:C({padding:lg,backgroundColor:k().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:I(["center","left","right"]).optional().nullable()}).optional().nullable(),props:C({width:D([f(),k()]).optional().nullable(),height:D([f(),k()]).optional().nullable(),widthTablet:D([f(),k()]).optional().nullable(),widthMobile:D([f(),k()]).optional().nullable(),heightTablet:D([f(),k()]).optional().nullable(),heightMobile:D([f(),k()]).optional().nullable(),url:k().optional().nullable(),alt:k().optional().nullable(),linkHref:k().optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable(),name:k().optional().nullable(),borderRadius:sg,borderColor:cg.default(null),borderWidth:ug}).optional().nullable()});function mg(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function gg(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 bg=0;function vg({style:e,props:t}){const n=`ahd-video-${++bg}`,o=(e==null?void 0:e.textAlign)??"left",a={padding:dg(e==null?void 0:e.padding),...hg(e==null?void 0:e.backgroundColor),display:"flex",justifyContent:mg(o),textAlign:o},r=(t==null?void 0:t.width)??"inherit",i=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,u=l??r,c=s??r,p=(t==null?void 0:t.heightTablet)===null?"auto":(t==null?void 0:t.heightTablet)??i,d=(t==null?void 0:t.heightMobile)===null?"auto":(t==null?void 0:t.heightMobile)??i,h=r,m=i,b=P=>P==null?void 0:typeof P=="number"?`${P}px`:P,v=`
|
|
82
|
+
${yt} { .${n} video, .${n} iframe { ${b(u)?`width: ${b(u)} !important;`:""} ${b(p)?`height: ${b(p)} !important;`:""} max-width: 100% !important; } }
|
|
83
|
+
${Oe} { .${n} video, .${n} iframe { ${b(c)?`width: ${b(c)} !important;`:""} ${b(d)?`height: ${b(d)} !important;`:""} max-width: 100% !important; } }
|
|
84
|
+
`.trim(),w=(t==null?void 0:t.linkHref)??null,x=(t==null?void 0:t.borderRadius)??0,$=P=>typeof P=="number"?`${P}px`:`${P.topLeft}px ${P.topRight}px ${P.bottomRight}px ${P.bottomLeft}px`,S=(P,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 P=="number")return`${Math.max(0,P-H)}px`;const Z=Math.max(0,(P.topLeft||0)-H),j=Math.max(0,(P.topRight||0)-H),V=Math.max(0,(P.bottomRight||0)-H),Y=Math.max(0,(P.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,A=fg(_,y),N=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),E=gg(t==null?void 0:t.url),T=E?g.jsx("iframe",{width:h,height:m,src:E,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:$(x)}},E):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:$(x),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),M=N?g.jsx("div",{style:{borderRadius:x?$(x):void 0,...A},children:E?g.jsx("iframe",{width:h,height:m,src:E,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(x,y)}},E):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:S(x,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):_?g.jsx("div",{style:{borderRadius:x?$(x):void 0,...A},children:T}):T;return w?g.jsxs("div",{className:`video-block ${n}`,style:a,children:[v&&g.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),g.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:M})]}):g.jsxs("div",{className:`video-block ${n}`,style:a,children:[v&&g.jsx("style",{dangerouslySetInnerHTML:{__html:v}}),M]})}var xg=C({props:C({height:f().gte(0).optional().nullish()}).optional().nullable()}),Sg={height:16};function wg({props:e}){var t;const n={height:(t=e==null?void 0:e.height)!=null?t:Sg.height};return F.createElement("div",{style:n})}const kg=20;function $g(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)}`,r=[];for(let l=1;l<=n;l++)l>1&&r.push('"."'),r.push(`counter(mll-${l})`);const i=r.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: ${i}; 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: ${i}; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`))}return t.join(`
|
|
85
|
+
`)}const _g=`
|
|
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
|
-
${
|
|
145
|
+
${$g(kg)}
|
|
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
|
-
`,
|
|
179
|
+
`,at=[{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'}],Cg={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]},Ag=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(Cg).map(([e,t])=>`family=${Ag(e,t)}`).join("&")}`;const es=at.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));es.map(e=>e.css);const yg=e=>e.replace(/"/g,'\\"'),Ng=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(at.filter(e=>e.key!=="inherit").map(e=>Ng(e.value)));const ai=at.find(e=>e.key==="INTER");ai&&ai.value;es.map(e=>{const t=yg(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 Hn=[{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}],Eg={P:"Normal",DIV:"Normal",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",BLOCKQUOTE:"Quote",PRE:"Code"};new Set(Object.keys(Eg));const ts="@container ahd-page (min-width: 641px) and (max-width: 1024px)",ns="@container ahd-page (max-width: 640px)";function Rg(){const e=Hn.map(o=>`[data-fs-desktop="${o.px}"]{font-size:${o.px}px}`).join(`
|
|
186
|
+
`),t=Hn.map(o=>`[data-fs-tablet="${o.px}"]{font-size:${o.px}px !important}`).join(`
|
|
187
|
+
`),n=Hn.map(o=>`[data-fs-mobile="${o.px}"]{font-size:${o.px}px !important}`).join(`
|
|
188
|
+
`);return[e,`${yt}{${t}}`,`${ts}{${t}}`,`${Oe}{${n}}`,`${ns}{${n}}`].join(`
|
|
189
|
+
`)}const or=Rg(),Ig=new Set(Hn.map(e=>e.px));function Tg(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)||Ig.has(s)||t[o[1]].add(s)}const a=s=>Array.from(t[s]).map(u=>`[data-fs-${s}="${u}"]{font-size:${u}px${s==="desktop"?"":" !important"}}`).join(`
|
|
190
|
+
`),r=a("desktop"),i=a("tablet"),l=a("mobile");return!r&&!i&&!l?"":[r,i&&`${yt}{${i}}`,i&&`${ts}{${i}}`,l&&`${Oe}{${l}}`,l&&`${ns}{${l}}`].filter(Boolean).join(`
|
|
191
|
+
`)}const ri="ahd-responsive-font-size";function Mg(){if(typeof document>"u"||document.getElementById(ri))return;const e=document.createElement("style");e.id=ri,e.setAttribute("data-ahd-generated","responsive-font-size"),e.textContent=or,document.head.appendChild(e)}Mg();const Pg=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 Og(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 Lg=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),zg=k().regex(/^rgba?\([^\)]+\)$/i),jg=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Bg=re("transparent"),ii=D([Lg,zg,jg,Bg]).nullable().optional(),Dg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Fg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Hg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Gg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ug=C({style:C({color:ii,backgroundColor:ii,fontSize:f().gte(0).optional().nullable(),lineClamp:f().int().gte(0).optional().nullable(),fontFamily:Pg,fontWeight:I(["bold","normal",...er]).optional().nullable(),textAlign:I(["left","center","right"]).optional().nullable(),padding:Dg,margin:Fg}).optional().nullable(),props:C({text:k().optional().nullable(),editorType:I(["summernote","quill"]).optional().nullable()}).optional().nullable()}),Zg={text:""};function Wg({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,r=typeof a=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(a),i={...r?{backgroundImage:a,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{color:a},background:r?void 0:(e==null?void 0:e.backgroundColor)??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:Og(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:Hg(e==null?void 0:e.padding),margin:Gg(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word",...o},l=Zl((t==null?void 0:t.text)??Zg.text);return g.jsxs("div",{className:"text-block",style:i,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
|
-
${
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
194
|
+
${_g}
|
|
195
|
+
${or}
|
|
196
|
+
${Tg(l)}`}),g.jsx("div",{dangerouslySetInnerHTML:{__html:l}})]})}const qg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Vg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Yg=C({style:C({padding:qg,backgroundColor:k().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(),k()]).optional().nullable(),widthMobile:D([f(),k()]).optional().nullable(),heightTablet:D([f(),k()]).optional().nullable(),heightMobile:D([f(),k()]).optional().nullable(),url:k().optional().nullable(),alt:k().optional().nullable(),linkHref:k().optional().nullable(),contentAlignment:I(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let Kg=0;function Jg({style:e,props:t}){const n=`ahd-youtube-url-${++Kg}`,o={padding:Vg(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,r=(t==null?void 0:t.width)??void 0,i=(t==null?void 0:t.height)??void 0,l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,u=(t==null?void 0:t.heightTablet)??null,c=(t==null?void 0:t.heightMobile)??null,p=l??r,d=s??p,h=u??i,m=c??h,b=r,v=i,w=S=>S==null?void 0:typeof S=="number"?`${S}px`:S,x=`
|
|
197
|
+
${nt} { .${n} video { ${w(p)?`width: ${w(p)} !important;`:""} ${w(h)?`height: ${w(h)} !important;`:""} max-width: 100% !important; } }
|
|
198
|
+
${Oe} { .${n} video { ${w(d)?`width: ${w(d)} !important;`:""} ${w(m)?`height: ${w(m)} !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: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:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),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:[x&&g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),$]})}const Xg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Qg=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),eb=C({responsive:Be,style:C({padding:Xg,margin:Qg,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:k().optional().nullable(),width:k().optional().nullable(),height:k().optional().nullable(),title:k().optional().nullable(),allowFullscreen:O().optional().nullable()}).optional().nullable()}),tb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,nb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function ob({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,r=!a||/^\s*(0|0px|100vh)\s*$/i.test(a)?"800px":a,i=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=F.useRef(null),u=(((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),c={padding:tb(e==null?void 0:e.padding),margin:nb(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:`calc(100% - ${u}px)`},p={width:`var(--ahd-iframe-width,${o})`,height:`var(--ahd-iframe-height,${r})`,minHeight:`var(--ahd-iframe-height,${r})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?g.jsx("div",{className:"iframe-block",style:c,children:g.jsx("iframe",{ref:s,src:n,title:i,style:p,allowFullScreen:l})}):g.jsx("div",{className:"iframe-block",style:{...c,backgroundColor:"#F5F5F5",padding:"24px",textAlign:"center",color:"#888",fontSize:"14px"},children:"IFrame — enter a URL in the panel"})}const ab=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),rb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),ib=C({responsive:Be,style:C({padding:ab,margin:rb,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({src:k().optional().nullable(),width:k().optional().nullable(),height:k().optional().nullable(),title:k().optional().nullable(),allowFullscreen:O().optional().nullable()}).optional().nullable()}),lb=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`},sb=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`},cb=({props:e,style:t})=>{var c,p;const{src:n,width:o,height:a,title:r,allowFullscreen:i=!0}=e??{};if(!n)return g.jsx(g.Fragment,{});const l=(((c=t==null?void 0:t.margin)==null?void 0:c.left)??0)+(((p=t==null?void 0:t.margin)==null?void 0:p.right)??0),s=t??{},u={width:l>0?`calc(100% - ${l}px)`:"100%",padding:lb(s.padding),margin:sb(s.margin),textAlign:s.textAlign||void 0};return g.jsx("div",{className:"calendly-block",style:u,children:g.jsx("iframe",{src:n,title:r||"Calendly scheduling",allowFullScreen:i??!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 ub=Object.defineProperty,li=Object.getOwnPropertySymbols,db=Object.prototype.hasOwnProperty,hb=Object.prototype.propertyIsEnumerable,si=(e,t,n)=>t in e?ub(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fb=(e,t)=>{for(var n in t||(t={}))db.call(t,n)&&si(e,n,t[n]);if(li)for(var n of li(t))hb.call(t,n)&&si(e,n,t[n]);return e};function pb(e){return function({type:n,data:o}){const a=e[n].Component;return F.createElement(a,fb({},o))}}function mb(e){const t=Object.keys(e).map(n=>C({type:re(n),data:e[n].schema}));return xf("type",t).transform(n=>n)}const gb=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),bb=k().regex(/^rgba?\([^\)]+\)$/i),vb=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),xb=re("transparent"),Sb=D([gb,bb,vb,xb]).nullable().optional(),wb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),kb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Ao=zl([f().optional().nullish(),f().optional().nullish(),f().optional().nullish(),f().optional().nullish(),f().optional().nullish()]).optional().nullable(),yo=I(["fixed","fill","fit"]).optional().nullable(),$b=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_b=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,os=C({style:C({backgroundColor:Sb,padding:wb,margin:kb}).optional().nullable(),props:C({widthType:yo,widthTypeTablet:yo,widthTypeMobile:yo,fixedWidths:Ao,fixedWidthsTablet:Ao,fixedWidthsMobile:Ao,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()}),Ct={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function ci(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
|
|
202
|
+
${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function ui(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
|
|
193
|
-
`)}function
|
|
194
|
-
@media (max-width: ${
|
|
206
|
+
${e} td + td { margin-top: 0 !important; }`}function di(e,t,n,o,a,r){const i=[];for(let l=0;l<t;l+=1){const s=`${e} td:nth-child(${l+1})`,u=l===0?0:n/2,c=l===t-1?0:n/2,p=[`padding-left: ${u}px !important`,`padding-right: ${c}px !important`];o==="fixed"&&(a==null?void 0:a[l])!=null?p.push(`width: ${a[l]}px !important`):p.push("width: auto !important"),i.push(`${s} { ${p.join("; ")}; }`)}return i.join(`
|
|
207
|
+
`)}function Cb(e,t){const n=`.${e}.columns-container`,o=(a,r)=>!r&&a?`${n} td { vertical-align: ${a} !important; }`:"";return`
|
|
208
|
+
@media (max-width: ${Ue}px) {
|
|
195
209
|
${n} { --columns-gap: ${t.tabletGap}px; }
|
|
196
|
-
${t.tabletVertical?
|
|
197
|
-
${t.tabletVertical?"":
|
|
210
|
+
${t.tabletVertical?ci(n):ui(n)}
|
|
211
|
+
${t.tabletVertical?"":di(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
|
|
198
212
|
${o(t.tabletAlign,t.tabletVertical)}
|
|
199
213
|
}
|
|
200
|
-
@media (max-width: ${
|
|
214
|
+
@media (max-width: ${Le}px) {
|
|
201
215
|
${n} { --columns-gap: ${t.mobileGap}px; }
|
|
202
|
-
${t.mobileVertical?
|
|
203
|
-
${t.mobileVertical?"":
|
|
216
|
+
${t.mobileVertical?ci(n):ui(n)}
|
|
217
|
+
${t.mobileVertical?"":di(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
|
|
204
218
|
${o(t.mobileAlign,t.mobileVertical)}
|
|
205
219
|
}
|
|
206
|
-
`.trim()}let
|
|
207
|
-
`);const
|
|
208
|
-
`)}function
|
|
209
|
-
`),
|
|
220
|
+
`.trim()}let Ab=0;function yb({style:e,columns:t,props:n}){const o=(n==null?void 0:n.widthType)??Ct.widthType,a=(n==null?void 0:n.widthTypeTablet)??o,r=(n==null?void 0:n.widthTypeMobile)??a,i=n==null?void 0:n.fixedWidths,l=(n==null?void 0:n.fixedWidthsTablet)??i,s=(n==null?void 0:n.fixedWidthsMobile)??l,u=(n==null?void 0:n.columnsGap)??Ct.columnsGap,c=(n==null?void 0:n.columnsGapTablet)??u,p=(n==null?void 0:n.columnsGapMobile)??c,d=(n==null?void 0:n.columnsDirection)??Ct.columnsDirection,h=(n==null?void 0:n.columnsDirectionTablet)??d,m=(n==null?void 0:n.columnsDirectionMobile)??h,b=(n==null?void 0:n.contentAlignment)??Ct.contentAlignment,v=(n==null?void 0:n.contentAlignmentTablet)??b,w=(n==null?void 0:n.contentAlignmentMobile)??v,x=(n==null?void 0:n.columnsCount)??Ct.columnsCount,$=o,S=i,_=u,y=d,N={widthType:$,columnsCount:x,columnsGap:_,columnsDirection:y,contentAlignment:b,fixedWidths:S},E=y==="vertical",T=F.useMemo(()=>`ahd-cc-${Ab+=1}`,[]),M=Cb(T,{tabletVertical:h==="vertical",mobileVertical:m==="vertical",columnsCount:x,tabletGap:c,mobileGap:p,tabletWidthType:a,mobileWidthType:r,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:v,mobileAlign:w}),P={background:(e==null?void 0:e.backgroundColor)??void 0,padding:$b(e==null?void 0:e.padding),margin:_b(e==null?void 0:e.margin),"--columns-gap":`${_}px`};return g.jsxs("div",{className:`columns-container ${T}${E?" is-stacked":""}`,style:P,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:M}}),g.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:E||$==="fit"?"auto":"fixed",borderCollapse:"collapse",...E?{display:"block",width:"100%"}:{}},children:g.jsx("tbody",{style:{width:"100%",...E?{display:"block"}:{}},children:g.jsxs("tr",{style:{width:"100%",...E?{display:"block"}:{}},children:[g.jsx(nn,{index:0,props:N,columns:t}),g.jsx(nn,{index:1,props:N,columns:t}),g.jsx(nn,{index:2,props:N,columns:t}),g.jsx(nn,{index:3,props:N,columns:t}),g.jsx(nn,{index:4,props:N,columns:t})]})})})]})}function nn({index:e,props:t,columns:n}){var p;const o=(t==null?void 0:t.columnsCount)??Ct.columnsCount;if(e>=o)return null;const a=t.columnsDirection==="vertical",r=a?0:Nb(e,t),i=a?0:Eb(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)??Ct.contentAlignment,paddingLeft:r?`${r}px`:0,paddingRight:i?`${i}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}:{}},u=(n==null?void 0:n[e])??null,c=t.widthType==="fixed"&&l!=null?l:void 0;return g.jsx("td",{style:s,width:c,children:u})}function Nb(e,{columnsGap:t}){return e===0?0:t/2}function Eb(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const Rb=os.shape.props.unwrap().unwrap().shape,Ib=os.shape.style.unwrap().unwrap().shape,Tb=C({style:C({...Ib,borderRadius:D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),borderColor:k().optional().nullable(),borderWidth:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable(),props:C({...Rb,columns:zl([C({childrenIds:X(k())}),C({childrenIds:X(k())}),C({childrenIds:X(k())})])}).optional().nullable()});function Mb(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Pb({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(ke,{id:h},h))));const{borderRadius:r,borderColor:i,borderWidth:l,...s}=e??{},u={};if(r!=null&&(u.borderRadius=Mb(r)),i){const d=l??{top:1,right:1,bottom:1,left:1};u.borderStyle="solid",u.borderColor=i,u.borderWidth=`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`}u.overflow="hidden";const c=r!=null||!!i,p=g.jsx(yb,{props:o,columns:a,style:s});return c?g.jsx("div",{style:u,children:p}):g.jsx(g.Fragment,{children:p})}const Ob=C({style:C({backgroundColor:k().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:k().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:O().optional().nullable(),desktopLayout:I(["wrap","row"]).optional().nullable(),mobileLayout:I(["wrap","row"]).optional().nullable(),tabletLayout:I(["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(C({childrenIds:X(k())})).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:O().optional().nullable(),repeatableEnabled:O().optional().nullable()}).optional().nullable()});function Lb(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function zb(e){var a,r;const t=e??{},n=(((a=t.margin)==null?void 0:a.left)??0)+(((r=t.margin)==null?void 0:r.right)??0),o={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(o.backgroundColor=t.backgroundColor),t.padding){const i=t.padding;o.padding=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}if(t.margin){const i=t.margin;o.margin=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}if(t.borderRadius!=null&&(o.borderRadius=Lb(t.borderRadius),o.overflow="hidden"),t.borderColor){const i=t.borderWidth??{top:1,right:1,bottom:1,left:1};o.borderStyle="solid",o.borderColor=t.borderColor,o.borderWidth=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}return o}function No(e,t,n){const o=e??{},a=o.desktopLayout??(o.wrap?"wrap":"row"),r=o.tabletLayout??a,i=o.mobileLayout??"wrap",l=o.columnShrink??[],s=o.columnShrinkTablet??l,u=o.columnShrinkMobile??s,c=o.columnsGap??16,p=o.columnsGapTablet??c,d=o.columnsGapMobile??p,h={desktop:{layout:a,shrink:l,gap:c},tablet:{layout:r,shrink:s,gap:p},mobile:{layout:i,shrink:u,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 jb(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 Bb(e,{shrink:t,equalColumns:n}){return t[e]?"shrink":n?"equal":"plain"}function Eo(e,t,n,o){const{layout:a,reverseColumns:r,gap:i}=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: ${i}px; }`,`${l(s)} { flex: 0 0 100%; width: 100%; max-width: 100%; }`].join(`
|
|
221
|
+
`);const c=[`${e} { flex-direction: ${r?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${i}px; }`],p=new Map;for(const d of s){const h=Bb(d,n);p.set(h,[...p.get(h)??[],d])}for(const[d,h]of p)c.push(`${l(h)} { ${jb(d)} max-width: 100%; }`);return c.join(`
|
|
222
|
+
`)}function Db(e,t){const{columnsCount:n,desktop:o,tablet:a,mobile:r}=t,i=`.${e}.flex-columns-block > .fc-row`,l=`${i} > .fc-col`,s=[`${i} { 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
|
+
`),c=[o,a,r].some(d=>d.shrink.some(Boolean))?[o,a,r].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
224
|
`):"",p=(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,
|
|
216
|
-
`)}let
|
|
217
|
-
@media (max-width: ${
|
|
229
|
+
}`;return[s,c,Eo(i,l,o,n),p(Ue,Eo(i,l,a,n)),p(Le,Eo(i,l,r,n))].filter(Boolean).join(`
|
|
230
|
+
`)}let Fb=0;function Hb({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",r=(t==null?void 0:t.columns)??[],i=Array.from({length:n},(c,p)=>r[p]??{childrenIds:[]}),l=F.useMemo(()=>`ahd-fc-${Fb+=1}`,[]),s=Db(l,{columnsCount:n,desktop:No(t,"desktop",n),tablet:No(t,"tablet",n),mobile:No(t,"mobile",n)}),u={alignItems:o,justifyContent:a};return g.jsxs("div",{className:`flex-columns-block ${l}`,style:zb(e),"data-cols":n,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),g.jsx("div",{className:"fc-row",style:u,children:i.map((c,p)=>g.jsx("div",{className:"fc-col",children:c.childrenIds.map(d=>g.jsx(ke,{id:d},d))},p))})]})}const Gb=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Ub=k().regex(/^rgba?\([^\)]+\)$/i),Zb=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Wb=re("transparent"),qb=D([Gb,Ub,Zb,Wb]).nullable().optional(),Vb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Yb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Kb=C({style:C({backgroundColor:qb,padding:Vb,margin:Yb}).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()}),Jb=Kb.shape.props.unwrap().unwrap().shape,Xb=C({backgroundColor:k().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:k().optional().nullable(),borderWidth:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable()}).optional().nullable(),Qb=C({style:Xb,props:C({...Jb,cells:X(C({childrenIds:X(k()),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()}),e0={top:"flex-start",middle:"center",bottom:"flex-end"},t0={left:"flex-start",center:"center",right:"flex-end"};let n0=0;function o0({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,r=(t==null?void 0:t.rowsCount)??2,i=(t==null?void 0:t.columnsGap)??0,l=(t==null?void 0:t.rowsGap)??0,s=(t==null?void 0:t.contentAlignment)??"middle",u=(t==null?void 0:t.horizontalAlignment)??"left",c=(t==null?void 0:t.cells)??[],d=c.some(E=>(E==null?void 0:E.colStart)!=null||(E==null?void 0:E.rowStart)!=null||(E==null?void 0:E.colSpan)!=null||(E==null?void 0:E.rowSpan)!=null)?c.length:n*r,h=F.useMemo(()=>`ahd-grid-${n0+=1}`,[]),m=Array.from({length:d},(E,T)=>c[T]??{childrenIds:[]}),b=e==null?void 0:e.padding,v=e==null?void 0:e.margin,w=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),x=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:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0,width:x,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 E=e.borderWidth??{top:1,right:1,bottom:1,left:1};$.borderStyle="solid",$.borderColor=e.borderColor,$.borderWidth=`${E.top}px ${E.right}px ${E.bottom}px ${E.left}px`}const _={display:"grid",columnGap:`${i}px`,rowGap:`${l}px`,alignItems:e0[s]??"center",justifyContent:t0[u]??"flex-start",width:"100%",boxSizing:"border-box"},y=m.map((E,T)=>{if(E.colStart==null&&E.rowStart==null)return"";const M=[];return E.colStart!=null&&E.colSpan!=null&&M.push(`grid-column: ${E.colStart} / span ${E.colSpan};`),E.rowStart!=null&&E.rowSpan!=null&&M.push(`grid-row: ${E.rowStart} / span ${E.rowSpan};`),M.length===0?"":`.${h}-cell-${T} { ${M.join(" ")} }
|
|
231
|
+
@media (max-width: ${Le}px) { .${h}-cell-${T} { grid-column: auto; grid-row: auto; } }`}).filter(Boolean).join(`
|
|
218
232
|
`),A=`
|
|
219
233
|
.${h} > .grid-block-inner { grid-template-columns: repeat(${n}, minmax(0, 1fr)); }
|
|
220
|
-
@media (max-width: ${
|
|
221
|
-
@media (max-width: ${
|
|
222
|
-
${
|
|
223
|
-
`.trim(),
|
|
224
|
-
${
|
|
225
|
-
${Oe} { .${
|
|
226
|
-
|
|
227
|
-
.${
|
|
228
|
-
|
|
229
|
-
|
|
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=db(ke,it),Ne=cb((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=ub(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:hb((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 gb=C({style:fb.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 bb({style:e,props:t}){const n=(t==null?void 0:t.childrenIds)??[];return g.jsx(mb,{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 vb=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),xb=x().regex(/^rgba?\([^\)]+\)$/i),Sb=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),wb=re("transparent"),Et=D([vb,xb,Sb,wb]).nullable().optional(),kb=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(),_b=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(),$b=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(),Cb=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(),Ab=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(),yb=W(C({id:x(),name:x(),type:x().optional().default("text"),value:x().optional()})).optional().nullable(),Nb=C({formFields:yb,backdropColor:Et.default(null),borderColor:Et.default(null),borderRadius:f().optional().nullable(),canvasColor:Et.default(null),textColor:Et,fontFamily:kb,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:_b,boxShadow:Cb,behaviour:Ab,linkHref:x().optional().default(""),backgroundImage:x().default("").nullable().optional(),backgroundSize:$b,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 Rb(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function Eb(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:${Rb(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${Eb(t.margin)};}`),n.join("")}function Ib(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 Mb="Made with Page Pilot",Tb="https://pagepilot.fabbuilder.com";let Pb=0;function Ob(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 Lb(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 zb(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=zb(t);return{boxShadow:`${r?"inset ":""}${n}px ${o}px ${a}px ${i}px ${l}`}}function jb(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 Bb(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 Db(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function Hb(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=Db(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function Fb({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 Gb({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 Ub(){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:Tb,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:Mb})})}function Zb(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-${Pb+=1}`,[]),$=Ib(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=Lb(e),T=a&&!!((Z=e.boxShadow)!=null&&Z.color)&&!!e.boxShadow.inset,L=a&&!T?Tr(e.boxShadow):{},H=T?Tr(e.boxShadow):{},F=Bb(((J=e.behaviour)==null?void 0:J.position)??"right"),j=c&&!p&&!d&&((Ee=e.behaviour)==null?void 0:Ee.isCaret)!==!1,O=Hb(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:Ob(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(Fb,{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(Gb,{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||"",...jb(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(Ub,{})]})})})})]})]})})]}))}const Wb=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),qb=x().regex(/^rgba?\([^\)]+\)$/i),Vb=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Yb=re("transparent"),$n=D([Wb,qb,Vb,Yb]).nullable().optional(),Kb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Jb=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Xb=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),Qb=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,e0=(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}:{},t0=C({style:C({backgroundColor:$n,textAlign:Xb,padding:Kb,margin:Jb}).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 n0({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:Qb(e==null?void 0:e.padding,i),margin:e0(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 o0=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),a0=x().regex(/^rgba?\([^\)]+\)$/i),r0=re("transparent"),go=D([o0,a0,r0]).nullable().optional(),fl=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),i0=fl,l0=I(["left","center","right"]).optional().nullable(),s0=["disc","circle","square","dash","arrow","check","cross","none"],c0=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Or={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},u0=C({text:x()}),d0=C({style:C({color:go,backgroundColor:go,textAlign:l0,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:i0}).optional().nullable(),props:C({listType:I(["unordered","ordered"]).optional().nullable(),marker:I([...s0,...c0]).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(u0).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"},h0=(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 f0({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?h0(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 p0=x().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),m0=x().regex(/^rgba?\([^\)]+\)$/i),g0=x().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),b0=re("transparent"),v0=D([p0,m0,g0,b0]).nullable().optional(),x0=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Zo=C({style:C({backgroundColor:v0,padding:x0}).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"},S0=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 w0=0;function k0({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:S0(e==null?void 0:e.padding),boxSizing:"border-box",width:"100%"},S=G.useMemo(()=>`ahd-bg-${w0+=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 _0=Zo.shape.props.unwrap().unwrap().shape,$0=C({style:Zo.shape.style,props:C({..._0,childrenIds:W(x()).optional().nullable()}).optional().nullable(),responsive:Zo.shape.responsive});function C0({style:e,props:t}){const{childrenIds:n,...o}=t??{},a=(n??[]).map(i=>g.jsx(ve,{id:i},i));return g.jsx(k0,{style:e,props:o,buttons:a})}const A0=C({titleChildrenIds:W(x()).optional().nullable(),contentChildrenIds:W(x()).optional().nullable()}),y0=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(A0).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 N0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}const Hr=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function R0(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 E0({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=N0(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?R0(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(${a}, minmax(0, 1fr)); } }
|
|
236
|
+
${y}
|
|
237
|
+
`.trim(),N=()=>({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((E,T)=>g.jsx("div",{className:`grid-cell ${h}-cell-${T}`,style:N(),children:E.childrenIds.map(M=>g.jsx(ke,{id:M},M))},T))})]})}const a0=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),r0=k().regex(/^rgba?\([^\)]+\)$/i),i0=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),l0=re("transparent"),hi=Hl(e=>typeof e=="string"?e.trim():e,D([a0,r0,i0,l0]).nullable().optional()),s0=k().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),c0=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(),u0=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),d0=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),h0=D([f(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),f0=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),fi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function as(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function p0(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:as(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function m0(e,t){const n=e&&as(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function g0(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 b0(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),r=Math.max(0,(e.bottomRight||0)-n),i=Math.max(0,(e.bottomLeft||0)-n);return`${o}px ${a}px ${r}px ${i}px`}const v0=C({style:C({backgroundColor:hi,backgroundImage:s0,backgroundSize:c0,backgroundRepeat:I(["repeat","no-repeat"]).optional().nullable(),borderColor:hi,borderRadius:h0,padding:u0,margin:d0,borderWidth:f0,boxShadow:fo}).optional().nullable(),props:C({fullWidth:O().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:O().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:k().optional().nullable(),elementId:k().optional().nullable(),showLink:O().optional().nullable(),linkHref:k().optional().nullable(),linkTarget:I(["_self","_blank"]).optional().nullable(),hoverEffect:nr}).optional().nullable()}),Pt={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let x0=0;function S0({style:e,props:t,children:n}){const o=Gl(),a=(t==null?void 0:t.fullWidth)??Pt.fullWidth,r=(t==null?void 0:t.widthType)??Pt.widthType,i=(t==null?void 0:t.widthTypeTablet)??null,l=(t==null?void 0:t.widthTypeMobile)??null,s=i??r,u=l??s,c=(t==null?void 0:t.width)??Pt.width,p=(t==null?void 0:t.widthUnit)??Pt.widthUnit,d=(t==null?void 0:t.widthTablet)??null,h=(t==null?void 0:t.widthMobile)??null,m=d??c,b=h??m,v=(t==null?void 0:t.height)??null,w=(t==null?void 0:t.heightTablet)??null,x=(t==null?void 0:t.heightMobile)??null,$=w??v,S=x??$,_=(t==null?void 0:t.overflow)===!0,y=(t==null?void 0:t.alignment)??Pt.alignment,A=(t==null?void 0:t.alignmentTablet)??null,N=(t==null?void 0:t.alignmentMobile)??null,E=A??y,T=N??E,M=y,P=(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,Te=!1)=>{if(Te&&a)return"100%";switch(ee){case"fill":return"100%";case"fixed":return`${ie}${p}`;case"fit":default:return"auto"}},le=ee=>((ee==null?void 0:ee.left)??0)+((ee==null?void 0:ee.right)??0),se=(ee,ie,Te)=>{const ht=(ie==null?void 0:ie.top)??0,me=(ie==null?void 0:ie.bottom)??0;if(Te)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 Te=le(ie);return Te<=0?ee:ee==="100%"?`calc(100% - ${Te}px)`:ee},Re=r,Ce=c,W=v,L=oe(Re,Ce,o==="desktop"),U=ce(L,e==null?void 0:e.margin),J=L==="100%"?null:{textAlign:M==="left"?"left":M==="right"?"right":"center"},Ae=(ee,ie,Te)=>oe(ie,Te)==="100%"||ee==="left"?"left":ee==="right"?"right":"center",Q=i!=null||l!=null||d!=null||h!=null||w!=null||x!=null||A!=null||N!=null,ye=(t==null?void 0:t.hoverEffect)??Pt.hoverEffect,ue=!!(ye!=null&&ye.enabled),$e=Q||ue?`ahd-cb-${++x0}`:"",Ne=$e?`${$e}-align`:"",ae=Q?`
|
|
238
|
+
${nt} { .${$e} { width: ${ce(oe(s,m),e==null?void 0:e.margin)} !important; ${$!=null?`height: ${$}px !important;`:""} max-width: 100% !important; } }
|
|
239
|
+
${Oe} { .${$e} { width: ${ce(oe(u,b),e==null?void 0:e.margin)} !important; ${S!=null?`height: ${S}px !important;`:""} max-width: 100% !important; } }
|
|
240
|
+
${nt} { .${Ne} { text-align: ${Ae(E,s,m)} !important; } }
|
|
241
|
+
${Oe} { .${Ne} { text-align: ${Ae(T,u,b)} !important; } }
|
|
242
|
+
`.trim():null,St=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,Se=[ae,St].filter(Boolean).join(`
|
|
246
|
+
`)||null,De=po(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,we=(e==null?void 0:e.borderWidth)??null,Ee=g0(pe,we),Fe=p0((e==null?void 0:e.backgroundColor)??""),Ve=(e==null?void 0:e.backgroundSize)==="none",rt=!Ve&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,Et=m0(e==null?void 0:e.backgroundColor,rt),it=Ve?void 0:(e==null?void 0:e.backgroundSize)??void 0,dt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",Jt=pe&&(pe.includes("linear-gradient")||pe.includes("radial-gradient")||pe.includes("repeating-linear-gradient")),Ie=W!=null,Rt=Ie?{"--ahd-cb-h":`${W}px`}:{},Xt=Ie?" container-block-has-height":"";if(Jt){const ee={...Ee,borderRadius:ne(e==null?void 0:e.borderRadius),width:U,maxWidth:"100%",height:Ie?`${W}px`:void 0,boxSizing:"border-box",...se(M,e==null?void 0:e.margin,L==="100%"),...J?{display:"inline-block"}:{},...De,...Rt},ie={...Fe,backgroundImage:Et,backgroundSize:it,backgroundRepeat:dt,borderRadius:b0((e==null?void 0:e.borderRadius)??0,we),overflow:_?"auto":"hidden",padding:fi(e==null?void 0:e.padding),width:"100%",height:Ie?"100%":void 0,boxSizing:"border-box"},Te=`container-block${_?" container-block-overflow":""}${Xt}${$e?` ${$e}`:""}`,ht=`container-block-inner${_?" container-block-overflow":""}`,me=V?{...ee,...G.style,...J?{display:"inline-block"}:{}}:ee,ze=g.jsx(K,{className:Te,"aria-label":P,id:z,...G,style:me,children:g.jsx("div",{className:ht,style:ie,children:n})});return g.jsxs(g.Fragment,{children:[Se&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Se}}),J?g.jsx("div",{className:Ne,style:J,children:ze}):ze]})}const Nn={...Fe,backgroundImage:Et,backgroundSize:it,backgroundRepeat:dt,...Ee,borderRadius:ne(e==null?void 0:e.borderRadius),padding:fi(e==null?void 0:e.padding),...se(M,e==null?void 0:e.margin,L==="100%"),width:U,maxWidth:"100%",height:Ie?`${W}px`:void 0,overflow:_?"auto":void 0,boxSizing:"border-box",..._?{}:{display:"flow-root"},...J?{display:"inline-block"}:{},...De,...Rt},wt=`container-block${_?" container-block-overflow":""}${Xt}${$e?` ${$e}`:""}`,kt=V?{...Nn,...G.style,...J?{display:"inline-block"}:{}}:Nn;if(!n){const ee=g.jsx(K,{className:wt,"aria-label":P,id:z,...G,style:kt});return g.jsxs(g.Fragment,{children:[Se&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Se}}),J?g.jsx("div",{className:Ne,style:J,children:ee}):ee]})}const Qt=g.jsx(K,{className:wt,"aria-label":P,id:z,...G,style:kt,children:n});return g.jsxs(g.Fragment,{children:[Se&&g.jsx("style",{dangerouslySetInnerHTML:{__html:Se}}),J?g.jsx("div",{className:Ne,style:J,children:Qt}):Qt]})}const w0=C({style:v0.shape.style,responsive:Be,props:C({childrenIds:X(k()).optional().nullable(),fullWidth:O().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:O().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:k().optional().nullable(),elementId:k().optional().nullable(),showLink:O().optional().nullable(),linkHref:k().optional().nullable(),linkTarget:I(["_self","_blank"]).optional().nullable(),animation:$n,hoverEffect:nr}).optional().nullable()});function k0({style:e,props:t}){const n=(t==null?void 0:t.childrenIds)??[];return g.jsx(S0,{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 $0=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),_0=k().regex(/^rgba?\([^\)]+\)$/i),C0=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),A0=re("transparent"),jt=D([$0,_0,C0,A0]).nullable().optional(),y0=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(),N0=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Ro=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),Io=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),E0=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(),R0=C({color:jt,offsetX:f().default(0),offsetY:f().default(0),blur:f().default(0),spread:f().default(0),inset:O().default(!1)}).partial().optional().nullable(),I0=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:O().optional().default(!0),selector:k().optional().default(""),showCloseIcon:O().optional(),iconCloseColor:jt,closeIconPosition:I(["left","center","right"]).optional(),closeIconPaddingTop:f().optional(),closeIconPaddingLeft:f().optional(),closeIconPaddingRight:f().optional(),bannerSubType:k().optional()}).passthrough().optional().nullable(),T0=X(C({id:k(),name:k(),type:k().optional().default("text"),value:k().optional()})).optional().nullable(),M0=C({formFields:T0,backdropColor:jt.default(null),borderColor:jt.default(null),borderRadius:f().optional().nullable(),canvasColor:jt.default(null),textColor:jt,fontFamily:y0,childrenIds:X(k()).optional().nullable(),maxWidth:k().default(""),maxHeight:k().default(""),top:k().default(""),left:k().default(""),padding:Ro,margin:Io,maxWidthTablet:k().optional().nullable(),maxWidthMobile:k().optional().nullable(),maxHeightTablet:k().optional().nullable(),maxHeightMobile:k().optional().nullable(),paddingTablet:Ro,paddingMobile:Ro,marginTablet:Io,marginMobile:Io,borderWidth:N0,boxShadow:R0,behaviour:I0,linkHref:k().optional().default(""),backgroundImage:k().default("").nullable().optional(),backgroundSize:E0,backgroundRepeat:I(["repeat","no-repeat"]).optional().nullable()});function Ot(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function Pn(e,t,n){const o=e??{},a=o[t];if(n==="desktop")return Ot(a)?a:null;const r=o[`${t}Tablet`];if(n==="tablet")return Ot(r)?r:Ot(a)?a:null;const i=o[`${t}Mobile`];return Ot(i)?i:Ot(r)?r:Ot(a)?a:null}function To(e,t){return{maxWidth:Pn(e,"maxWidth",t)??null,maxHeight:Pn(e,"maxHeight",t)??null,padding:Pn(e,"padding",t)??null,margin:Pn(e,"margin",t)??null}}function P0(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function O0(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:${P0(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${O0(t.margin)};}`),n.join("")}function L0(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`},r=To(t,"desktop"),i=Mo(a,{...r,maxWidth:r.maxWidth??n??null}),l=Mo(a,To(t,"tablet")),s=Mo(a,To(t,"mobile")),u=(c,p)=>p?`@media (max-width:${c}px){${p}}@container ahd-page (max-width:${c}px){${p}}`:"";return[i,u(Ue,l),u(Le,s)].filter(Boolean).join("")}const z0="Made with Page Pilot",j0="https://pagepilot.fabbuilder.com";let B0=0;function D0(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 F0(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")),r=o??0,i=s=>typeof s=="number"?`${s}px`:`${s.topLeft}px ${s.topRight}px ${s.bottomRight}px ${s.bottomLeft}px`;if(((n==null?void 0:n.top)??0)+((n==null?void 0:n.right)??0)+((n==null?void 0:n.bottom)??0)+((n==null?void 0:n.left)??0)===0)return{borderRadius:r?i(r):void 0};if(a){const s=e.canvasColor,u=!s||s==="transparent"?"linear-gradient(transparent, transparent)":s.includes("gradient")?s:`linear-gradient(${s}, ${s})`;return{borderStyle:"solid",borderTopWidth:`${(n==null?void 0:n.top)??0}px`,borderRightWidth:`${(n==null?void 0:n.right)??0}px`,borderBottomWidth:`${(n==null?void 0:n.bottom)??0}px`,borderLeftWidth:`${(n==null?void 0:n.left)??0}px`,borderColor:"transparent",backgroundImage:`${u}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:r?i(r):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:r?i(r):void 0}}function H0(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function pi(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:a=0,spread:r=0,inset:i=!1}=e,l=H0(t);return{boxShadow:`${i?"inset ":""}${n}px ${o}px ${a}px ${r}px ${l}`}}function G0(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 U0(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 Z0(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function W0(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=Z0(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function q0({position:e,color:t}){const a="20px",r={position:"absolute",background:t,pointerEvents:"none",zIndex:2},i="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",u="polygon(0 0, 0 100%, 100% 50%)";let c;switch(e){case"top":c={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:i};break;case"top-left":c={top:-8,left:a,width:16,height:8,clipPath:i};break;case"top-right":c={top:-8,right:a,width:16,height:8,clipPath:i};break;case"bottom":c={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":c={bottom:-8,left:a,width:16,height:8,clipPath:l};break;case"bottom-right":c={bottom:-8,right:a,width:16,height:8,clipPath:l};break;case"left":c={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":c={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:u};break;default:return null}return g.jsx("div",{"aria-hidden":!0,style:{...r,...c}})}function V0({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:a}){const r=e||"#262626",i=t??"right",l=typeof n=="number"?n:2,c=i==="left"?{left:typeof o=="number"?o:2}:i==="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,...c,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:r,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 Y0(){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:j0,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:z0})})}function K0(e){var K,G,oe,le,se,ce,Re,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":"",a=n.includes("app-banner"),r=n.includes("demo"),i=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),u=l||s||r,c=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],p=a&&(((K=e.behaviour)==null?void 0:K.bannerSubType)==="floater"||c.includes((G=e.behaviour)==null?void 0:G.position)),d=a&&((oe=e.behaviour)==null?void 0:oe.bannerSubType)==="modal",h=(u||p||d)&&((le=e.behaviour)==null?void 0:le.showCloseIcon)!==!1,b=u&&!0,v=a&&e.linkHref?e.linkHref:null,w=F.useMemo(()=>`ahd-layout-${B0+=1}`,[]),$=L0(w,e,o==="page"||i?"100%":a&&!p?"900px":"320px"),S=(a||r)&&!!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`,N=(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)(_),E=Q=>v?g.jsx("a",{href:v,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:Q}):Q,T=F0(e),M=a&&!!((se=e.boxShadow)!=null&&se.color)&&!!e.boxShadow.inset,P=a&&!M?pi(e.boxShadow):{},z=M?pi(e.boxShadow):{},H=U0(((ce=e.behaviour)==null?void 0:ce.position)??"right"),Z=u&&!p&&!d&&((Re=e.behaviour)==null?void 0:Re.isCaret)!==!1,j=W0(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 E(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:D0(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:[Z&&g.jsx(q0,{position:H,color:j}),g.jsxs("div",{style:{position:"relative",borderRadius:y(_),...N?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...P},children:[M&&g.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:y(_),zIndex:1,...z}}),h&&g.jsx(V0,{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||p?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...G0(e.canvasColor,e.backgroundImage,a?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...T,borderRadius:y(_),overflow:N?"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(Y0,{})]})})})})]})]})})]}))}const J0=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),X0=k().regex(/^rgba?\([^\)]+\)$/i),Q0=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ev=re("transparent"),On=D([J0,X0,Q0,ev]).nullable().optional(),tv=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),nv=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),ov=I(["left","center","right"]).optional().nullable(),Kn={min:1,max:20},Jn={min:4,max:48},rs=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),av=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,rv=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,on=(e,t,n)=>Math.min(Math.max(e,t),n),mi=e=>e?rs(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},iv=C({style:C({backgroundColor:On,textAlign:ov,padding:tv,margin:nv}).optional().nullable(),props:C({stepperType:I(["dots","numeric","both"]).optional().nullable(),totalDots:f().min(Kn.min).max(Kn.max).optional().nullable(),activeIndex:f().min(1).optional().nullable(),activeColor:On,inactiveColor:On,dotSize:f().min(Jn.min).max(Jn.max).optional().nullable(),dotSpacing:f().min(0).max(40).optional().nullable(),numericColor:On,numericFontSize:f().min(8).max(48).optional().nullable(),numericPosition:I(["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 lv({style:e,props:t}){const o=Gl()==="mobile",r=typeof window<"u"&&window.location.pathname.includes("page")&&o,i=on((t==null?void 0:t.totalDots)??Xe.totalDots,Kn.min,Kn.max),l=on((t==null?void 0:t.dotSize)??Xe.dotSize,Jn.min,Jn.max),s=on((t==null?void 0:t.dotSpacing)??Xe.dotSpacing,0,40),u=(t==null?void 0:t.activeIndex)??Xe.activeIndex,c=on(u,1,i),p=(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,m=h==="numeric"||h==="both",b=h==="dots"||h==="both",v=(t==null?void 0:t.numericColor)??Xe.numericColor,w=on((t==null?void 0:t.numericFontSize)??Xe.numericFontSize,8,48),x=(t==null?void 0:t.numericPosition)??Xe.numericPosition,S={...mi((e==null?void 0:e.backgroundColor)??void 0),padding:av(e==null?void 0:e.padding,r),margin:rv(e==null?void 0:e.margin,r),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},_=m&&b&&(x==="above"||x==="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"},A={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},N=`${c}/${i}`,E=rs(v),T={fontSize:`${w}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...E?{backgroundImage:v,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:v??void 0}},M=()=>m?g.jsx("span",{style:T,children:N}):null,P=()=>g.jsx("div",{style:A,"aria-hidden":"true",children:Array.from({length:i}).map((z,H)=>{const Z=H===c-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)",...mi(Z?p: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":c,"aria-valuemin":1,"aria-valuemax":i,"aria-valuetext":`Step ${c} of ${i}`,"aria-label":`Step ${c} of ${i}`,children:g.jsxs("div",{style:y,children:[m&&x==="above"&&M(),m&&x==="left"&&M(),b&&P(),m&&x==="right"&&M(),m&&x==="below"&&M()]})})}const sv=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),cv=k().regex(/^rgba?\([^\)]+\)$/i),uv=re("transparent"),Po=D([sv,cv,uv]).nullable().optional(),is=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),dv=is,hv=I(["left","center","right"]).optional().nullable(),fv=["disc","circle","square","dash","arrow","check","cross","none"],pv=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],gi={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},mv=C({text:k()}),gv=C({style:C({color:Po,backgroundColor:Po,textAlign:hv,fontSize:f().min(8).max(72).optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:D([f(),k()]).optional().nullable(),lineHeight:f().min(1).max(3).optional().nullable(),padding:is,margin:dv}).optional().nullable(),props:C({listType:I(["unordered","ordered"]).optional().nullable(),marker:I([...fv,...pv]).optional().nullable(),numberSuffix:Hl(e=>e===""?void 0:e,I([".",")"]).optional().nullable()),startNumber:f().min(0).max(9999).optional().nullable(),markerColor:Po,markerSize:f().min(8).max(72).optional().nullable(),itemGap:f().min(0).max(64).optional().nullable(),items:X(mv).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"}]},bi=(e,t,n)=>Math.min(Math.max(e,t),n),vi=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,xi=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,r]of t)for(;o>=a;)n+=r,o-=a;return n},Si=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"},bv=(e,t,n,o)=>{const a=n+t;switch(e){case"decimal-zero":return`${String(a).padStart(2,"0")}${o}`;case"lower-alpha":return`${Si(a)}${o}`;case"upper-alpha":return`${Si(a).toUpperCase()}${o}`;case"lower-roman":return`${xi(a).toLowerCase()}${o}`;case"upper-roman":return`${xi(a)}${o}`;case"decimal":default:return`${a}${o}`}};function vv({style:e,props:t}){var v;const o=((t==null?void 0:t.listType)??pt.listType)==="ordered",a=(t==null?void 0:t.marker)??(o?"decimal":pt.marker),r=(t==null?void 0:t.numberSuffix)??pt.numberSuffix,i=(t==null?void 0:t.startNumber)??pt.startNumber,l=(t==null?void 0:t.markerColor)??pt.markerColor,s=bi((t==null?void 0:t.markerSize)??pt.markerSize,8,72),u=bi((t==null?void 0:t.itemGap)??pt.itemGap,0,64),c=(v=t==null?void 0:t.items)!=null&&v.length?t.items:pt.items.map(w=>({...w})),p=(e==null?void 0:e.color)??void 0,d={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:vi(e==null?void 0:e.padding),margin:vi(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=w=>a==="none"?null:o?bv(a,w,i,r):gi[a]??gi.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:c.map((w,x)=>{const $=b(x);return g.jsxs("tr",{children:[a!=="none"&&g.jsx("td",{style:m,children:$}),g.jsx("td",{style:{...h,paddingBottom:x<c.length-1?`${u}px`:0,width:"100%"},children:w.text})]},x)})})})})}const xv=k().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Sv=k().regex(/^rgba?\([^\)]+\)$/i),wv=k().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),kv=re("transparent"),$v=D([xv,Sv,wv,kv]).nullable().optional(),_v=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),fa=C({style:C({backgroundColor:$v,padding:_v}).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:O().optional().nullable(),ariaLabel:k().optional().nullable()}).optional().nullable(),responsive:Be}),Ln={direction:"row",gap:12,alignment:"start",wrap:!0},Xn={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},Cv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function wi(e,t,n,o){const a=e==="row"?Xn[t]:"flex-start",r=e==="column"?Xn[t]:"center";return`flex-direction:${e}!important;justify-content:${a}!important;align-items:${r}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${o}px!important;`}let Av=0;function yv({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??Ln.direction,a=(n==null?void 0:n.directionTablet)??o,r=(n==null?void 0:n.directionMobile)??a,i=(n==null?void 0:n.gap)??Ln.gap,l=(n==null?void 0:n.gapTablet)??i,s=(n==null?void 0:n.gapMobile)??l,u=(n==null?void 0:n.alignment)??Ln.alignment,c=(n==null?void 0:n.alignmentTablet)??u,p=(n==null?void 0:n.alignmentMobile)??c,d=(n==null?void 0:n.wrap)??Ln.wrap,h=(n==null?void 0:n.ariaLabel)??void 0,m=o,b=u,w={display:"flex",flexDirection:m,gap:`${i}px`,justifyContent:m==="row"?Xn[b]:"flex-start",alignItems:m==="column"?Xn[b]:"center",flexWrap:m==="row"&&d?"wrap":"nowrap",background:(e==null?void 0:e.backgroundColor)??void 0,padding:Cv(e==null?void 0:e.padding),boxSizing:"border-box",width:"100%"},x=F.useMemo(()=>`ahd-bg-${Av+=1}`,[]),$=F.useMemo(()=>{const S=`.${x}`;let _="";return(a!==o||c!==u||l!==i)&&(_+=`@media (max-width:${Ue}px){${S}{${wi(a,c,d,l)}}}`),(r!==a||p!==c||s!==l)&&(_+=`@media (max-width:${Le}px){${S}{${wi(r,p,d,s)}}}`),_},[x,o,a,r,u,c,p,i,l,s,d]);return g.jsxs("div",{className:`button-group ${x}`,style:w,role:"group","aria-label":h,children:[$&&g.jsx("style",{dangerouslySetInnerHTML:{__html:$}}),t]})}const Nv=fa.shape.props.unwrap().unwrap().shape,Ev=C({style:fa.shape.style,props:C({...Nv,childrenIds:X(k()).optional().nullable()}).optional().nullable(),responsive:fa.shape.responsive});function Rv({style:e,props:t}){const{childrenIds:n,...o}=t??{},a=(n??[]).map(r=>g.jsx(ke,{id:r},r));return g.jsx(yv,{style:e,props:o,buttons:a})}const Iv=C({titleChildrenIds:X(k()).optional().nullable(),contentChildrenIds:X(k()).optional().nullable()}),Tv=C({responsive:Be,style:C({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),borderRadius:D([f(),k(),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:X(Iv).min(1).max(25).optional().nullable(),iconColor:k().optional().nullable(),iconSize:f().optional().nullable(),defaultOpen:O().optional().nullable(),activeBorderColor:k().optional().nullable()}).optional().nullable()});function Mv(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 ki=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function Pv(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 Ov({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)}`,[]),a=`${o}-content`,r=e==null?void 0:e.padding,i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s=t==null?void 0:t.activeBorderColor,u=e==null?void 0:e.borderColor,c=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},p=`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`,d=Mv(e==null?void 0:e.borderRadius),h=ki(u),m=ki(s),b=h||m,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:d,margin:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),b?(v.padding=p,h?v.background=u:u&&(v.borderStyle="solid",v.borderColor=u,v.borderWidth=p)):u&&(v.borderStyle="solid",v.borderColor=u,v.borderWidth=p);const w={background:(e==null?void 0:e.backgroundColor)??(b?"#ffffff":void 0),borderRadius:b?Pv(d,c):void 0,padding:r?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:void 0,overflow:b&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},x=[];return s&&(m?x.push(`#${o}:checked + .email-accordion-root { background:${s}!important; border-style:none!important; padding:${p}!important; }`):x.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:`
|
|
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
|
-
${
|
|
255
|
+
${x.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:
|
|
242
|
-
.pacc-grid{display:grid;grid-template-columns:${
|
|
243
|
-
.pacc-grid-card{background:${
|
|
244
|
-
${
|
|
257
|
+
`}),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: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:a,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map($=>g.jsx(ke,{id:$},$))})]})})]})}const Lv=C({label:k().optional().nullable(),cardChildrenIds:X(k()).optional().nullable(),detailChildrenIds:X(k()).optional().nullable()}),zv=C({style:C({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:f().optional().nullable(),borderRadius:D([f(),k(),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:O().optional().nullable(),cardBgColor:k().optional().nullable(),cardBorderColor:k().optional().nullable(),cardBorderWidth:f().optional().nullable(),cardBorderRadius:f().optional().nullable(),cardPadding:f().optional().nullable(),cardShadow:k().optional().nullable(),cardTextColor:k().optional().nullable(),cardFontSize:f().optional().nullable(),cardFontFamily:k().optional().nullable(),cardFontWeight:k().optional().nullable(),cardTextAlign:I(["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:f().optional().nullable(),detailBgColor:k().optional().nullable(),detailBorderColor:k().optional().nullable(),detailBorderWidth:f().optional().nullable(),detailBorderRadius:f().optional().nullable(),detailPadding:f().optional().nullable(),detailShadow:k().optional().nullable(),detailGap:f().optional().nullable(),rightCardWidth:f().optional().nullable(),cardListWidth:f().optional().nullable(),panelGap:f().optional().nullable()}).optional().nullable(),props:C({items:X(Lv).min(1).max(10).optional().nullable(),defaultOpenIndex:f().optional().nullable(),accordionEnabled:O().optional().nullable(),detailPosition:I(["bottom","right"]).optional().nullable()}).optional().nullable()});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({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)}`,[]),a=(t==null?void 0:t.accordionEnabled)??!1,r=(t==null?void 0:t.defaultOpenIndex)??null,i=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,u=(e==null?void 0:e.cardBgColor)??"#ffffff",c=(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,w=(e==null?void 0:e.cardFontFamily)??"inherit",x=(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)??u,A=(e==null?void 0:e.activeCardBorderColor)??c,N=(e==null?void 0:e.activeCardShadow)??m,E=(e==null?void 0:e.activeCardTextColor)??b,T=(e==null?void 0:e.arrowColor)??"currentColor",M=(e==null?void 0:e.arrowActiveColor)??T,P=(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:jv(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=v?`${v}px`:"inherit";if(!a){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:${u};border:${p}px solid ${c};border-radius:${d}px;padding:${h}px;box-sizing:border-box;box-shadow:${m};color:${b};font-size:${ce};font-family:${w};font-weight:${x};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:
|
|
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(i==="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:${A};box-shadow:${N};color:${E}}${J} .pacc-item:nth-child(${q+1}) .pacc-arrow{transform:rotate(180deg);color:${M}}${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:${
|
|
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:${
|
|
251
|
-
${
|
|
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:${
|
|
253
|
-
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${
|
|
254
|
-
.pacc-detail{display:none;margin-top:${
|
|
266
|
+
.pacc-card{background:${u};border:${p}px solid ${c};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:${x};box-shadow:${m}}
|
|
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:${T}}
|
|
269
|
+
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${P}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
|
-
${
|
|
257
|
-
`;return g.jsxs("div",{style:
|
|
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===r},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 Re=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:${A};box-shadow:${N};color:${E}}${U} .pacc-item:nth-child(${L+1}) .pacc-arrow{transform:rotate(90deg);color:${M}}${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:${
|
|
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:${
|
|
262
|
-
${
|
|
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:${
|
|
264
|
-
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${
|
|
265
|
-
.pacc-detail{display:none;background:${
|
|
277
|
+
.pacc-card{background:${u};border:${p}px solid ${c};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:${x};box-shadow:${m}}
|
|
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:${T}}
|
|
280
|
+
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${P}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
|
-
${
|
|
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 O0=C({label:x().optional().nullable(),contentChildrenIds:W(x()).optional().nullable()}),L0=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(O0).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'}],z0={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]},j0=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(z0).map(([e,t])=>`family=${j0(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 B0=e=>e.replace(/"/g,'\\"'),D0=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(Xe.filter(e=>e.key!=="inherit").map(e=>D0(e.value)));const Fr=Xe.find(e=>e.key==="INTER");Fr&&Fr.value;pl.map(e=>{const t=B0(e.css);return`
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}
|
|
274
|
-
`);function H0(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function F0(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 G0={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},U0={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 Z0({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:F0(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:H0(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:G0},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+=`${W0}{${bo(j,o,m,S,$,k)}}`),a!==o&&(B+=`${q0}{${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:U0,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 W0=`@media (max-width:${je}px)`,q0=`@media (max-width:${Ae}px)`,V0=C({contentChildrenIds:W(x()).optional().nullable()}),Y0=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(V0).min(1).max(20).optional().nullable()}).optional().nullable()});function K0(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 J0="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",X0="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 Q0({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:K0(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:J0,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:X0,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 ev=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 tv(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function nv(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function ov({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 av({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:tv(e==null?void 0:e.fontFamily),fontSize:nv(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(ov,{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 rv=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),iv=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),lv=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:rv,margin:iv}).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 sv(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function cv(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 uv({pct:e,label:t,trackColor:n,fillColor:o,barHeight:a,barRadius:i,striped:r,animated:l,ariaLabel:s,value:c,max:u}){return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[l&&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":""}${l?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:i,backgroundColor:o,backgroundImage:r||l?"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||l?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&g.jsx("span",{children:t})]})}function dv({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 hv({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 fv({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:sv(e==null?void 0:e.fontFamily),fontSize:cv((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(dv,{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(hv,{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(uv,{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 pv=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()}),mv=40,gv=32,bv=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,vv=e=>Math.max(2,Math.round(1200/e)),xv=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),bl=e=>e==="up"||e==="down",Sv=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 wv(e,t){return{speed:gl(t==null?void 0:t.speed,mv),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??gv,viewportHeight:ml(e==null?void 0:e.viewportHeight,bv)}}function kv(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 _v=(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:${vv(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,$v=(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 Cv({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":Sv(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(!_v(a,v))return"";const k=kv(a,v,o);return`${b}{${r}{${Vr(k)};${$v(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 Av(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function yv(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 Nv({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=xv(t==null?void 0:t.repeat),l=bl(i),s=wv(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,...yv(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:Av(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(()=>Cv({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 Rv=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Ev=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Iv=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:Rv,margin:Ev}).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 Mv(e){return String(Math.max(0,e)).padStart(2,"0")}function Tv({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:Mv(c.value)}),a&&g.jsx("span",{style:{fontSize:11,color:r??"#6b7280",textTransform:"uppercase"},children:c.label})]},c.label))})}function Pv(e){return String(Math.max(0,e)).padStart(2,"0")}const Wo=26,Yr=2*Math.PI*Wo;function Ov({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:Pv(e)})]})}function Lv({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(Ov,{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 zv({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 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=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 Dv({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=Bv(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:jv(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(Tv,{...h}),o==="circularProgress"&&g.jsx(Lv,{...h}),o==="textInline"&&g.jsx(zv,{...h})]})]})}const Hv=I(["left","center","right","space-between"]),Fv=C({contentChildrenIds:W(x()).optional().nullable()}),Gv=C({childrenIds:W(x())}),Uv=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:Hv.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(Fv).min(1).max(50).optional().nullable(),cells:W(Gv).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 Zv(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 Wv(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 qv={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 Vv({style:e,props:t}){const n=qv;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 Yv(e){return Math.max(1,e)}function Kv(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 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 Xv({style:e,props:t}){const n=Vv({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(()=>Wv(l,r),[l,r]),c=Yv(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(()=>Kv(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:Jv(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(${Zv(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 Qv=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 ex(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}function tx(e){if(!e)return;const t=Xe.find(n=>n.key===e);return(t==null?void 0:t.value)??e}let nx=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 ox({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-${++nx}`,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},_=tx(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
|
-
|
|
276
|
-
${
|
|
277
|
-
|
|
278
|
-
.${$} > thead > tr > th { ${An(d)} }
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
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(),ax=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,rx=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,wo=1440,ko=830,ix=({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,${rx(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(),lx=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")}),sx=C({style:C({}).passthrough().optional().nullable(),responsive:Te,props:lx.optional().nullable()}),cx={left:"flex-start",center:"center",right:"flex-end"},ux=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,dx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,hx=e=>e?e.left+e.right:0,fx=(e,t,n=!1,o,a)=>{const i=hx(a);return{backgroundColor:e,width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:ux(o),margin:dx(a),justifyContent:n?"space-between":cx[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}),px=(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"}),mx={position:"relative"},gx=(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}),bx=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),vx=e=>({paddingLeft:e===0?"0":"12px"}),xx={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},Sx=e=>({color:e});function wx(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 kx=(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},_x=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:px(i,d,r),children:e.map((h,m)=>g.jsxs("li",{style:mx,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:gx(l,!!h.menuImage,t,n,o,a,p,h),children:[l&&h.menuImage&&g.jsx("img",{src:h.menuImage,alt:"","aria-hidden":"true",style:bx(s)}),h.name||h.label||""]})}),h.children&&h.children.length>0&&g.jsx("div",{style:vx(d),children:Vo(h.children,t,n,o,a,"vertical",r,l,s,c,u,p,d+1)})]},h.id||m))}),$x=({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=_x(v);if(T)return g.jsx(g.Fragment,{children:Vo(r,h,b,k,S,p,_,N,A,Y,de,oe)});const ee=kx(B,{stickyNav:o,stickyNavTablet:a,stickyNavMobile:i}),Z=wx(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:{...fx(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:xx,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:Sx(h),onClick:Xr(Y),children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]})]})]})},Cx=C({id:x().optional(),label:x().optional(),href:x().optional(),textColor:x().optional().nullable()}),Ax=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),yx=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Nx=C({items:W(Cx).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:Ax,blockMargin:yx}),Rx=C({style:C({}).passthrough().optional().nullable(),responsive:Te,props:Nx.optional().nullable()}),Co={slash:"/",chevron:"›",dot:"•",pipe:"|"};function Ex(e,t){return e==="custom"?t||"›":e&&Co[e]?Co[e]:Co.chevron}function Ix(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 Mx=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,Tx=Sl,Px="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",Ox=({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:Px,fill:t})}),Lx=({color:e,fontSize:t})=>g.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),zx=({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 $=Mx(h),w=Ex(o,a),_=n.length-1,N=G.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),A=l?Ix(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:Tx(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(Ox,{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(Lx,{color:c,fontSize:d}),g.jsx("span",{"aria-hidden":"true",style:{color:p||c},children:w})]})]})})]})},jx=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()}),Bx=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)}`},Dx=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`},Hx=({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:Dx(p.padding),backgroundColor:p.backgroundColor||void 0,borderRadius:p.borderRadius||void 0},h=Bx(`${n}|${o??""}`),m=r||l?`
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
283
|
+
${Re}
|
|
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===r},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 Dv=160,Fv=C({label:k().optional().nullable(),contentChildrenIds:X(k()).optional().nullable()}),Hv=C({responsive:Be,style:C({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([f(),k(),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:k().optional().nullable(),tabActiveBgColor:k().optional().nullable(),tabInactiveTextColor:k().optional().nullable(),tabInactiveBgColor:k().optional().nullable(),tabInactiveBorderColor:k().optional().nullable(),tabInactiveBorderWidth:f().optional().nullable(),tabTextColor:k().optional().nullable(),tabBgColor:k().optional().nullable(),tabBorderRadius:f().optional().nullable(),tabGap:f().optional().nullable(),contentGap:f().optional().nullable(),navBorderColor:k().optional().nullable(),navWidth:f().optional().nullable(),fontSize:D([k(),f()]).optional().nullable(),lineHeight:D([k(),f()]).optional().nullable(),activeFontSize:D([k(),f()]).optional().nullable(),showActiveBorder:O().optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:k().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(),tabsAlign:I(["left","center","right"]).optional().nullable(),dropdown:O().optional().nullable(),dropdownTablet:O().optional().nullable(),dropdownMobile:O().optional().nullable(),activeTabIndex:f().optional().nullable(),stickyNav:O().optional().nullable(),items:X(Fv).min(1).max(20).optional().nullable()}).optional().nullable()});function Gv(e){if(!e)return;const t=at.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Uv(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function $i(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const Zv={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},Wv={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 Qn(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 eo(e,t=!1){const n=t?"!important":"";return ot(e)?`color:transparent${n}`:`color:${e}${n}`}function to(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 pa(e,t,n,o=!1){const a=o?"!important":"";return ot(e)?`border-${n}-style:solid${a};border-${n}-width:${t}${a};border-image-source:${e}${a};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${a}`:`border-${n}-color:${e}${a}`}function qv(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 Lt(e,t,n,o,a,r,i,l){const s=ot(l),u=s?pa(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,c=s?pa(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:${r};width:100%;${u};border-right:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:inline-flex;border-bottom:3px solid transparent;border-left:0;margin-bottom:calc(-1 * ${n});margin-right:0}${e} > .ahd-tabs-panels{width:100%;margin-top:${a};margin-left:0}`;const p=`${i??Dv}px`,d=`var(--ahd-tabs-nav-width,${p})`,h=`width:var(--ahd-tabs-nav-width,${p});max-width:var(--ahd-tabs-nav-width,${p})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${a};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;${c};border-bottom:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${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 Vv(e,t,n,o,a,r,i,l,s,u,c,p,d,h,m,b,v=1){let w="";for(let _=0;_<m;_++){const y=`${e} #${h}-r${_}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${_+1})`;w+=`${y}{${Qn(i,!0)};${eo(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${to(l,!0)}}${y}:hover{${Qn(i,!0)}}`}const x=`${e} > .ahd-tabs-dd-wrap`,$=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${x}:focus-within`,S=s?`${x} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${x}{display:block!important;position:relative!important;width:100%!important}${x} > .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:${a};color:${r};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${x} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+S+`${x} > .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}${x} > .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}${x} > .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;${eo(u??"inherit",!0)};background:${c??"transparent"}!important;box-shadow:${p}!important`+(b?`;border:${v}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${x} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${to(u??"inherit",!0)}}${x} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${x} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${c??"rgba(0,0,0,.05)"}!important}${e} > .ahd-tabs-panels{position:static!important;width:100%!important;margin:${n} 0 0 0!important;grid-column:auto!important}`+w}function Oo(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 Yv({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)??"vertical",i=((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]),u=F.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),c=(e==null?void 0:e.tabActiveColor)??void 0,p=(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,m=(e==null?void 0:e.tabInactiveBorderColor)??void 0,b=(e==null?void 0:e.tabInactiveBorderWidth)??1,v=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",w=(e==null?void 0:e.tabTextColor)??void 0,x=(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",A=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,N="var(--ahd-tabs-tab-gap,"+_+")",E="var(--ahd-tabs-content-gap,"+y+")",T=(e==null?void 0:e.activeFontSize)!=null?$i(e.activeFontSize):void 0,P=((e==null?void 0:e.showActiveBorder)??!0)&&!p?c||"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:Uv(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:Gv(e==null?void 0:e.fontFamily),fontSize:$i(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:`${u}-r${U}`,name:u,className:"ahd-tabs-radio",defaultChecked:U===0,style:Zv},U)),Re=F.useMemo(()=>{const L=`.${u}`,U=c||"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}{${eo(ye)};${Qn(h)};${qv(m,b)};border-radius:${v}}${Ae}{${to(ye)}}`+(i?"":`${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((Ee,Fe)=>{const Ve=`#${u}-r${Fe}:checked`,rt=`${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(P),dt=`${eo(U,!0)};${Qn(p,!0)};box-shadow:none!important`+(it?`;${pa(P,"3px",n==="vertical"?"left":"bottom",!0)}`:`;border-left-color:var(--ahd-tabs-active-border-color,${P})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${P})!important`);ue+=`${rt}{${dt}}`,ue+=`${rt} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${T??"inherit"})!important;${to(U,!0)}}`,i||(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+=Lt(L,n,S,N,E,H,A!=null?String(A):void 0,$??void 0),o!==n&&(ue+=`${Lo}{${Lt(L,o,S,N,E,H,A!=null?String(A):void 0,$??void 0)}}`),a!==o&&(ue+=`${zo}{${Lt(L,a,S,N,E,H,A!=null?String(A):void 0,$??void 0)}}`);const $e=m||$||"#d0d5dd",Ne=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",ae=(e==null?void 0:e.tabBgColor)??"#fff",St=w??"inherit",Se=p??"transparent",De=c??"inherit",ne=m?ot(m)?"none":`inset 0 0 0 ${b}px ${m}`:"none",pe=ot(m)?m:void 0,we=Vv(L,$e,E,Ne,ae,St,Se,De,T,d,h,ne,N,u,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+=we,j||(ue+=`${Lo}{${Oo(L,v)}${Lt(L,o,S,N,E,H,A!=null?String(A):void 0,$??void 0)}}`),!V&&j&&(ue+=`${zo}{${Oo(L,v)}${Lt(L,a,S,N,E,H,A!=null?String(A):void 0,$??void 0)}}`)):(j&&(ue+=`${Lo}{${we}}`),V!==j&&(ue+=`${zo}{${V?we:Oo(L,v)+Lt(L,a,S,N,E,H,A!=null?String(A):void 0,$??void 0)}}`)),ue},[s,u,c,p,v,w,T,P,n,o,a,i,S,$,A,N,E,H,d,h,m,b,Z,j,V,l]),Ce=L=>i?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:L===0?void 0:E}:{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:`${u} ahd-tabs ${W}${l?" ahd-tabs-sticky":""}${i?" ahd-tabs-scroll-sections":""}`,style:se,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Re}}),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:x,...l?{position:"sticky",top:0}:{}},children:s.map((L,U)=>g.jsx("label",{htmlFor:`${u}-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:Wv,children:L.label??`Tab ${U+1}`})},U))})]}),g.jsx("div",{className:"ahd-tabs-panels",children:s.map((L,U)=>g.jsx("div",{id:`${u}-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 Lo=`@media (max-width:${Ue}px)`,zo=`@media (max-width:${Le}px)`,Kv=C({contentChildrenIds:X(k()).optional().nullable()}),Jv=C({style:C({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([f(),k(),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:k().optional().nullable(),arrowBgColor:k().optional().nullable(),arrowBorderColor:k().optional().nullable(),arrowSize:f().min(16).max(80).optional().nullable(),dotColor:k().optional().nullable(),dotActiveColor:k().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:O().optional().nullable(),showDots:O().optional().nullable(),autoplay:O().optional().nullable(),autoplayInterval:f().min(500).max(2e4).optional().nullable(),loop:O().optional().nullable(),transitionMs:f().min(0).max(3e3).optional().nullable(),items:X(Kv).min(1).max(20).optional().nullable()}).optional().nullable()});function Xv(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 Qv="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",ex="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",_i=({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 tx({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)}`,[]),a=Math.max(1,(t==null?void 0:t.slidesPerView)??1),r=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(a,2)),i=Math.max(1,(t==null?void 0:t.slidesPerViewMobile)??1),l=(t==null?void 0:t.showArrows)??!0,s=(t==null?void 0:t.showDots)??!0,u=(t==null?void 0:t.autoplay)??!1,c=(t==null?void 0:t.autoplayInterval)??4e3,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)",w=(e==null?void 0:e.arrowSize)??40,x=(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,A=e==null?void 0:e.margin,N=((A==null?void 0:A.left)??0)+((A==null?void 0:A.right)??0),E={width:N>0?`calc(100% - ${N}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:Xv(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:A?`${A.top}px ${A.right}px ${A.bottom}px ${A.left}px`:void 0},T=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(a)};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(r)}}}@media (max-width:${Le}px){${H} .ahd-carousel-slide{flex-basis:${Z(i)}}}`},[o,h,d,a,r,i,_]),M={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 ${v}`,backgroundColor:b,backgroundImage:"none",color:m,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},P=Math.min(a,r,i),z=Math.max(1,n.length-P+1);return g.jsxs("div",{className:`${o} ahd-carousel`,style:E,"data-per-view":a,"data-per-view-tablet":r,"data-per-view-mobile":i,"data-autoplay":u?"1":"0","data-autoplay-interval":c,"data-loop":p?"1":"0",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:T}}),g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&g.jsx("button",{type:"button",className:"ahd-carousel-prev",style:M,"aria-label":"Previous slide",children:g.jsx(_i,{d:Qv,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:M,"aria-label":"Next slide",children:g.jsx(_i,{d:ex,size:_})})]}),s&&z>1&&g.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":x,"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?$:x,backgroundImage:"none"}},Z))})]})}const nx=C({style:C({starColor:k().optional().nullable(),starEmptyColor:k().optional().nullable(),starSize:f().min(8).max(80).optional().nullable(),starGap:f().min(0).max(40).optional().nullable(),textColor:k().optional().nullable(),fontSize:D([k(),f()]).optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:k().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(),k()]).optional().nullable(),max:D([f(),k()]).optional().nullable(),showValue:O().optional().nullable()}).optional().nullable()}),Ci="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 ox(e){if(!e)return;const t=at.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function ax(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function rx({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:Ci})}),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:Ci})})})]})}function ix({style:e,props:t}){const n=F.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(w,x)=>{if(typeof w=="number")return Number.isFinite(w)?w:x;const $=parseFloat(String(w??""));return Number.isFinite($)?$:x},a=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),r=Math.max(0,Math.min(a,o(t==null?void 0:t.value,0))),i=(t==null?void 0:t.showValue)??!0,l=(e==null?void 0:e.starColor)??"#facc15",s=(e==null?void 0:e.starEmptyColor)??"#e5e7eb",u=(e==null?void 0:e.starSize)??24,c=(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, ${c}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:p,fontFamily:ox(e==null?void 0:e.fontFamily),fontSize:ax(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=w=>{const x=r-w;return x>=1?100:x>=.5?50:x>0?Math.round(x*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, ${c}px)`},children:Array.from({length:a}).map((w,x)=>g.jsx(rx,{fillPct:v(x),size:u,filledColor:l,emptyColor:s},x))}),i&&g.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(r)?r:r.toFixed(1),g.jsxs("span",{style:{opacity:.55},children:["/",a]})]})]})}const lx=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),sx=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),cx=C({style:C({trackColor:k().optional().nullable(),fillColor:k().optional().nullable(),textColor:k().optional().nullable(),fontSize:D([k(),f()]).optional().nullable(),fontFamily:k().optional().nullable(),fontWeight:k().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:lx,margin:sx}).optional().nullable(),props:C({variant:I(["linear","circular","steps"]).optional().nullable(),value:D([f(),k()]).optional().nullable(),max:D([f(),k()]).optional().nullable(),showLabel:O().optional().nullable(),labelFormat:I(["percent","fraction"]).optional().nullable(),steps:f().min(2).max(20).optional().nullable(),striped:O().optional().nullable(),animated:O().optional().nullable()}).optional().nullable()});function ux(e){if(!e)return;const t=at.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function dx(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Ai(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function yi(e,t,n,o){return o==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function hx({pct:e,label:t,trackColor:n,fillColor:o,barHeight:a,barRadius:r,striped:i,animated:l,ariaLabel:s,value:u,max:c}){const p=i&&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":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{width:"100%",height:a,borderRadius:r,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:g.jsx("div",{className:`ahd-progress-fill${i?" ahd-progress-striped":""}${p?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:r,backgroundColor:o,backgroundImage:i?"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)":void 0,backgroundSize:i?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&g.jsx("span",{children:t})]})}function fx({pct:e,label:t,trackColor:n,fillColor:o,size:a,strokeWidth:r,textColor:i,ariaLabel:l,value:s,max:u}){const c=(a-r)/2,p=2*Math.PI*c,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":u,"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:c,fill:"none",stroke:n,strokeWidth:r}),g.jsx("circle",{cx:h,cy:h,r:c,fill:"none",stroke:o,strokeWidth:r,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:i,fontWeight:600},children:t})]})}function px({steps:e,activeIndex:t,trackColor:n,fillColor:o,stepSize:a,stepGap:r,label:i,ariaLabel:l,value:s,max:u}){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":u,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:r},children:Array.from({length:e}).map((c,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))}),i!=null&&g.jsx("span",{children:i})]})}function mx({style:e,props:t}){const n=F.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.variant)??"linear",a=Math.max(1,Ai(t==null?void 0:t.max,100)),r=Math.max(0,Math.min(a,Ai(t==null?void 0:t.value,0))),i=r/a*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",u=l?yi(i,r,a,s):null,c=`Progress: ${yi(i,r,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,w={display:"flex",justifyContent:m==="center"?"center":m==="right"?"flex-end":"flex-start",color:h,fontFamily:ux(e==null?void 0:e.fontFamily),fontSize:dx((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"},x=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),$=Math.round(i/100*x);return g.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:o==="circular"?g.jsx(fx,{pct:i,label:u,trackColor:p,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:h,ariaLabel:c,value:r,max:a}):o==="steps"?g.jsx(px,{steps:x,activeIndex:$,trackColor:p,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:u,ariaLabel:c,value:r,max:a}):g.jsx(hx,{pct:i,label:u,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:c,value:r,max:a})})}const gx=C({responsive:Be,style:C({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),borderRadius:D([f(),k(),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:O().optional().nullable(),repeat:f().min(2).max(6).optional().nullable(),fadeEdges:O().optional().nullable(),verticalAlign:I(["top","middle","bottom"]).optional().nullable(),items:X(C({contentChildrenIds:X(k()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),bx=40,vx=32,xx=200,ls=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,ss=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,Sx=e=>Math.max(2,Math.round(1200/e)),wx=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),cs=e=>e==="up"||e==="down",kx=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",no=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function $x(e,t){return{speed:ss(t==null?void 0:t.speed,bx),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??vx,viewportHeight:ls(e==null?void 0:e.viewportHeight,xx)}}function _x(e,t,n){var a,r,i,l,s;const o=e==null?void 0:e[t];return{speed:ss((a=o==null?void 0:o.props)==null?void 0:a.speed,n.speed),pauseOnHover:((r=o==null?void 0:o.props)==null?void 0:r.pauseOnHover)??n.pauseOnHover,fadeEdges:((i=o==null?void 0:o.props)==null?void 0:i.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:ls((s=o==null?void 0:o.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const Cx=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Ni=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${Sx(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,Ax=(e,t)=>e.fadeEdges?`-webkit-mask-image:${no(t)}!important;mask-image:${no(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function yx({instanceId:e,direction:t,repeat:n,desktop:o,responsive:a,verticalAlign:r}){const i=`.${e}`,l=cs(t),s=l?"column":"row",u=t==="right"||t==="down"?"reverse":"normal",c=l?"flex-start":kx(r),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(!Cx(a,v))return"";const w=_x(a,v,o);return`${b}{${i}{${Ni(w)};${Ax(w,l)}}}`},m=l?`${i} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${i} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${i}{${Ni(o)}}`+m+`${i} .ahd-marquee-track{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);width:${l?"100%":"max-content"};animation:${e}-kf var(--ahd-mq-duration) linear infinite ${u};will-change:transform}${i} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${c}}${i} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${i}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+h(yt,"tablet")+h(Oe,"mobile")+`@media (prefers-reduced-motion: reduce){${i} .ahd-marquee-track{animation:none}}`}function Nx(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(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 Rx({style:e,props:t,responsive:n}){const o=F.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),a=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],r=(t==null?void 0:t.direction)??"left",i=wx(t==null?void 0:t.repeat),l=cs(r),s=$x(e,t),u=e==null?void 0:e.padding,c=e==null?void 0:e.margin,p=((c==null?void 0:c.left)??0)+((c==null?void 0:c.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,...Ex(e==null?void 0:e.borderColor,e==null?void 0:e.borderWidth),borderRadius:Nx(e==null?void 0:e.borderRadius),padding:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:void 0,margin:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:no(l),maskImage:no(l)}:{}},h=(t==null?void 0:t.verticalAlign)??"middle",m=F.useMemo(()=>yx({instanceId:o,direction:r,repeat:i,desktop:s,responsive:n,verticalAlign:h}),[o,r,i,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((w,x)=>g.jsx("div",{className:"ahd-marquee-item",children:(w.contentChildrenIds??[]).map($=>g.jsx(ke,{id:$},$))},x))},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:i}).map((v,w)=>b(w))})})]})}const Ix=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Tx=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),Mx=C({style:C({backgroundColor:k().optional().nullable(),textColor:k().optional().nullable(),accentColor:k().optional().nullable(),numberColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([f(),k(),C({topLeft:f(),topRight:f(),bottomRight:f(),bottomLeft:f()})]).optional().nullable(),padding:Ix,margin:Tx}).optional().nullable(),props:C({layout:I(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:k().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:O().default(!0),expiredBehavior:I(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:k().default("Offer has ended")}).optional().nullable()});function Px(e){return String(Math.max(0,e)).padStart(2,"0")}function Ox({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:r,textColor:i,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(u=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[g.jsx("div",{"data-ahd-timer-unit":u.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:r??"#1f1f1f",color:l??"#ffffff",fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:Px(u.value)}),a&&g.jsx("span",{style:{fontSize:11,color:i??"#6b7280",textTransform:"uppercase"},children:u.label})]},u.label))})}function Lx(e){return String(Math.max(0,e)).padStart(2,"0")}const ma=26,Ei=2*Math.PI*ma;function zx({value:e,max:t,accentColor:n,numberColor:o,unit:a}){const r=t>0?Math.min(1,Math.max(0,e/t)):0,i=Ei*(1-r);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:ma,fill:"none",stroke:"#e5e7eb",strokeWidth:5}),g.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:ma,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:Ei,strokeDashoffset:i,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:Lx(e)})]})}function jx({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:r,textColor:i,numberColor:l}){const s=r??"#7c3aed",u=l??"#1f1f1f",c=[{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:c.map(p=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[g.jsx(zx,{value:p.value,max:p.max,accentColor:s,numberColor:u,unit:p.label.toLowerCase()}),a&&g.jsx("span",{style:{fontSize:11,color:i??"#6b7280",textTransform:"uppercase"},children:p.label})]},p.label))})}function $t(e){return String(Math.max(0,e)).padStart(2,"0")}function Bx({days:e,hours:t,minutes:n,seconds:o,showLabels:a,accentColor:r,textColor:i}){const l=[{key:"days",text:a?`${e}d`:$t(e)},{key:"hours",text:a?`${$t(t)}h`:$t(t)},{key:"minutes",text:a?`${$t(n)}m`:$t(n)},{key:"seconds",text:a?`${$t(o)}s`:$t(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:i??"#1f1f1f"},children:[g.jsx("span",{style:{color:r??"#7c3aed",marginRight:6},children:"Ends in"}),l.map((u,c)=>g.jsxs(F.Fragment,{children:[c>0&&s,g.jsx("span",{"data-ahd-timer-unit":u.key,children:u.text})]},u.key))]})}function Dx(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 Fx(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,r=Math.floor(o/1e3);return{days:Math.floor(r/86400),hours:Math.floor(r%86400/3600),minutes:Math.floor(r%3600/60),seconds:r%60,completed:a}}function Hx({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",a=n.showLabels??!0,r=n.expiredBehavior??"showMessage",i=n.expiredMessage||"Offer has ended",l=Fx(n.targetDate),s=l.completed,u=e==null?void 0:e.padding,c=e==null?void 0:e.margin,p=((c==null?void 0:c.left)??0)+((c==null?void 0:c.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:Dx(e==null?void 0:e.borderRadius),padding:u?`${u.top}px ${u.right}px ${u.bottom}px ${u.left}px`:"16px",margin:c?`${c.top}px ${c.right}px ${c.bottom}px ${c.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&&r==="showMessage",b=s&&r==="hide";return g.jsxs("div",{className:"ahd-timer","data-layout":o,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":r,"data-ahd-timer-expired-message":i,"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:i}),g.jsxs("div",{"data-ahd-timer-body":!0,style:{display:m?"none":void 0},children:[o==="digitalFlip"&&g.jsx(Ox,{...h}),o==="circularProgress"&&g.jsx(jx,{...h}),o==="textInline"&&g.jsx(Bx,{...h})]})]})}const Gx=I(["left","center","right","space-between"]),Ux=C({contentChildrenIds:X(k()).optional().nullable()}),Zx=C({childrenIds:X(k())}),Wx=C({style:C({backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderRadius:D([f(),k(),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:Gx.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: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:f().min(8).max(40).optional().nullable(),fontFamily:k().optional().nullable()}).optional().nullable(),props:C({items:X(Ux).min(1).max(50).optional().nullable(),cells:X(Zx).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: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:f().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()}),ga={columnsCount:2,rowsCount:2};function jo(e,t="desktop"){const n=ga,o=(e==null?void 0:e.columnsCount)??n.columnsCount,a=(e==null?void 0:e.rowsCount)??n.rowsCount,r=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??o:o,i=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(c=>({childrenIds:Array.isArray(c==null?void 0:c.contentChildrenIds)?c.contentChildrenIds:[]})):l=[];const s=Math.max(1,o*a,r*i,l.length),u=Array.from({length:s},(c,p)=>{var d;return{childrenIds:Array.isArray((d=l[p])==null?void 0:d.childrenIds)?l[p].childrenIds:[]}});return{columnsCount:r,rowsCount:i,cells:u}}function Bo(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)??ga.columnsCount,o=(e==null?void 0:e.rowsCount)??ga.rowsCount,a=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,r=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;return Math.max(1,a*r)}function qx(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 Vx(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 Yx={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 Kx({style:e,props:t}){const n=Yx;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 Jx(e){return Math.max(1,e)}function Xx(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,u)=>u+1);const o=[],a=Math.max(1,n-2),r=Math.floor(a/2);let i=Math.max(2,e-r),l=Math.min(t-1,i+a-1);i=Math.max(2,Math.min(i,l-a+1)),o.push(1),i>2&&o.push("ellipsis");for(let s=i;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function Qx(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 e1({style:e,props:t}){const n=Kx({style:e,props:t}),o=jo(t,"desktop"),a=jo(t,"tablet"),r=jo(t,"mobile"),i=Math.max(Bo(t,"desktop"),Bo(t,"tablet"),Bo(t,"mobile")),l=F.useMemo(()=>o.cells.length>=i?o.cells:Array.from({length:i},(A,N)=>o.cells[N]??{childrenIds:[]}),[o.cells,i]),s=F.useMemo(()=>Vx(l,i),[l,i]),u=Jx(s.length),c=(e==null?void 0:e.columnsGap)??n.itemGap,p=(e==null?void 0:e.rowsGap)??n.itemGap,d=F.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),h=F.useMemo(()=>Xx(1,u,n.maxVisiblePages),[u,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),w={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:Qx(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},x=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 A=T=>`grid-template-columns:repeat(${T.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${qx(T.columnsCount,T.rowsCount,i)},auto)`,N=(T,M)=>{const P=Math.min(Math.max(1,M.columnsCount*M.rowsCount),Math.max(1,i));return P>=i?"":`${T} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${P+1}){display:none}`},E=`.${d}`;return`${E} .ahd-pgn-item{display:grid;${A(o)};column-gap:${c}px;row-gap:${p}px}${E} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+N(E,o)+`@media (max-width:${Ue}px){${E} .ahd-pgn-item{${A(a)}}${E} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+N(E,a)+`}@media (max-width:${Le}px){${E} .ahd-pgn-item{${A(r)}}${E} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+N(E,r)+"}"},[d,o,a,r,i,c,p,n.itemGap]),y=(A,N,E)=>g.jsx("button",{type:"button",className:`ahd-pgn-btn ${A}`,"data-ahd-page":E,style:S,"aria-label":N,children:N});return g.jsxs("div",{className:`${d} ahd-pagination`,style:w,"data-total-pages":u,"data-page-param":n.pageParam,"data-sync-url":n.syncUrl?"1":"0","data-explicit-first-page":n.explicitFirstPage?"1":"0","data-scroll-top":n.scrollToTopOnChange?"1":"0","data-max-visible":n.maxVisiblePages,"data-btn-bg":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,N)=>g.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":N,style:N===0?void 0:{display:"none"},children:A.map((E,T)=>g.jsx("div",{className:"ahd-pgn-cell",children:(E.childrenIds??[]).map(M=>g.jsx(ke,{id:M},M))},T))},N))}),(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:x,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((A,N)=>A==="ellipsis"?g.jsx("span",{className:"ahd-pgn-ellipsis",style:{...$,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${N}`):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&&y("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&y("ahd-pgn-last",n.lastLabel,u)]})]})}const t1=C({responsive:Be,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:k().optional().nullable(),color:k().optional().nullable(),backgroundColor:k().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:f().optional().nullable(),cellPadding:f().optional().nullable(),headerBackground:k().optional().nullable(),headerColor:k().optional().nullable(),stripedRowColor:k().optional().nullable(),stripedColColor:k().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: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 ar(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function rr(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function n1(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}function o1(e){if(!e)return;const t=at.find(n=>n.key===e);return(t==null?void 0:t.value)??e}let a1=0;function us(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function zn(e){return e?us(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function Do(e){return e?us(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function r1({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??Ke.rows)),a=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??Ke.columns)),r=(t==null?void 0:t.hasHeader)??Ke.hasHeader,i=(t==null?void 0:t.cells)??[],l=o*a,s=i.length===l?i:Array.from({length:l},(j,V)=>i[V]??""),u=(e==null?void 0:e.borderColor)??Ke.borderColor,c=(e==null?void 0:e.borderWidth)??Ke.borderWidth,p=(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,m=(e==null?void 0:e.color)??Ke.color,b=(e==null?void 0:e.fontSize)??Ke.fontSize,v=(e==null?void 0:e.backgroundColor)??null,w=(e==null?void 0:e.stripedRowColor)===void 0?Ke.stripedRowColor:e.stripedRowColor,x=(e==null?void 0:e.stripedColColor)??null,$=`ahd-table-${++a1}`,S={padding:ar(e==null?void 0:e.padding),margin:rr(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},_=o1(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},A={border:`${c}px solid ${u}`,padding:p,verticalAlign:"top"},N=_?`.${$}, .${$} * { font-family: ${_} !important; }`:"",E=w?`.${$} > tbody > tr:nth-child(even) > td { ${zn(w)} }`:"",T=x?`.${$} > tbody > tr > td:nth-child(even) { ${zn(x)} }`:"",M=`
|
|
285
|
+
.${$} { ${zn(v)} }
|
|
286
|
+
${N}
|
|
287
|
+
.${$} > tbody > tr > td > .ahd-table-cell-text { ${Do(m)} display: block; }
|
|
288
|
+
.${$} > thead > tr > th { ${zn(d)} }
|
|
289
|
+
.${$} > thead > tr > th > .ahd-table-cell-text { ${Do(h)} display: block; }
|
|
290
|
+
.${$} > caption > .ahd-table-cell-text { ${Do(m)} display: block; }
|
|
291
|
+
${E}
|
|
292
|
+
${T}
|
|
293
|
+
`,P=Array.from({length:o},(j,V)=>V),z=Array.from({length:a},(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:M}}),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,r?g.jsx("thead",{children:g.jsx("tr",{children:z.map(j=>g.jsx("th",{scope:"col",style:{...A,fontWeight:600},children:g.jsx("div",{className:"ahd-table-cell-text",children:Z(0,j,s[j]??"",!0)})},j))})}):null,g.jsx("tbody",{children:P.slice(r?1:0).map(j=>g.jsx("tr",{children:z.map(V=>g.jsx("td",{style:A,children:g.jsx("div",{className:"ahd-table-cell-text",children:Z(j,V,s[j*a+V]??"",!1)})},V))},j))})]})]})}const Ri=C({top:f(),bottom:f(),right:f(),left:f()}).optional().nullable(),i1=C({responsive:Be,style:C({padding:Ri,margin:Ri,textAlign:I(["left","center","right"]).optional().nullable()}).optional().nullable(),props:C({demoId:k().default(""),iframeSrc:k().default(""),width:D([f(),k()]).optional().nullable(),height:D([f(),k()]).optional().nullable(),borderRadius:f().optional().nullable(),borderColor:k().optional().nullable(),borderWidth:f().optional().nullable()}).optional().nullable()}),Ii=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,l1=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,Fo=1440,Ho=830,s1=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:a,borderRadius:r,borderColor:i,borderWidth:l}=t??{},s={padding:Ii(e==null?void 0:e.padding),margin:Ii(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 u=(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:u},children:g.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${l1(a,"100%")})`,aspectRatio:`${Fo} / ${Ho}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${r??10}px`,border:i?`${l??1}px solid ${i}`:"none"},children:g.jsx("div",{id:"demoScaler",style:{width:Fo,height:Ho,transformOrigin:"top left"},children:g.jsx("iframe",{src:o,style:{width:Fo,height:Ho,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},ds=Bf(()=>C({id:k().optional(),name:k().optional(),href:k().optional(),menuImage:k().optional(),children:X(ds).optional()})),Go=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),c1=C({menuId:k().default(""),useCustomMenu:O().default(!1),stickyNav:O().default(!1),stickyNavTablet:O().optional().nullable(),stickyNavMobile:O().optional().nullable(),position:I(["left","center","right"]).default("left"),orientation:I(["horizontal","vertical"]).default("horizontal"),menuItems:X(ds).optional().nullable(),startChildrenIds:X(k()).optional().nullable(),endChildrenIds:X(k()).optional().nullable(),layout:I(["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:f().optional().nullable(),submenuIconSize:f().optional().nullable(),submenuPadding:Go,submenuItemPadding:Go,submenuMinWidth:f().optional().nullable(),fontSize:k().default("14px"),fontFamily:k().optional().nullable(),fontWeight:k().default("400"),padding:k().default("8px 16px"),blockPadding:Go,gap:k().default("16px"),showIcons:O().default(!0),iconSize:k().default("24px")}),u1=C({style:C({}).passthrough().optional().nullable(),responsive:Be,props:c1.optional().nullable()}),d1={left:"flex-start",center:"center",right:"flex-end"},h1=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,f1=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,p1=e=>e?e.left+e.right:0,m1=(e,t,n=!1,o,a)=>{const r=p1(a);return{backgroundColor:e,width:`calc(100% - ${r}px)`,display:"flex",alignItems:"center",gap:"16px",padding:h1(o),margin:f1(a),justifyContent:n?"space-between":d1[t]||"flex-start"}},Uo=(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}),g1=(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"}),b1={position:"relative"},v1=(e,t,n,o,a,r,i,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:i||void 0,padding:(l==null?void 0:l.padding)??r,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}),x1=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),S1=e=>({paddingLeft:e===0?"0":"12px"}),w1={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},k1=e=>({color:e});function $1(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(""),r=[`${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(""),i=`(max-width:${Ue}px)`;return a+`@media ${i}{${r}}@container ahd-page ${i}{${r}}`}const _1=(e,t)=>{const n=!!t.stickyNav,o=t.stickyNavTablet??n,a=t.stickyNavMobile??o,r=l=>l?`.ahd-menu-sticky-${e}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:sticky;top:0;z-index:50}`:`.ahd-menu-sticky-${e}{position:static}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:static}`;let i=n?r(!0):"";if(o!==n){const l=`(max-width:${Ue}px)`;i+=`@media ${l}{${r(o)}}`,i+=`@container ahd-page ${l}{${r(o)}}`}if(a!==o){const l=`(max-width:${Le}px)`;i+=`@media ${l}{${r(a)}}`,i+=`@container ahd-page ${l}{${r(a)}}`}return i},C1=e=>{if(!e)return;const t=at.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Ti=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},ba=(e,t,n,o,a,r,i,l,s,u,c,p,d=0)=>!e||e.length===0?null:g.jsx("ul",{id:d===0?c:void 0,className:d===0?"ahd-menu-list":"ahd-menu-sublist",style:g1(r,d,i),children:e.map((h,m)=>g.jsxs("li",{style:b1,children:[g.jsx("label",{htmlFor:u,className:"ahd-menu-item-label",style:{display:"contents"},onClick:b=>b.stopPropagation(),children:g.jsxs("a",{href:h.href||"#",style:v1(l,!!h.menuImage,t,n,o,a,p,h),children:[l&&h.menuImage&&g.jsx("img",{src:h.menuImage,alt:"","aria-hidden":"true",style:x1(s)}),h.name||h.label||""]})}),h.children&&h.children.length>0&&g.jsx("div",{style:S1(d),children:ba(h.children,t,n,o,a,"vertical",i,l,s,u,c,p,d+1)})]},h.id||m))}),A1=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,stickyNavTablet:a,stickyNavMobile:r,menuItems:i,startChildrenIds:l,endChildrenIds:s,layout:u="menu-only",position:c="left",orientation:p="horizontal",backgroundColor:d="transparent",textColor:h="#000000",burgerDropdownBackgroundColor:m,fontSize:b="14px",fontFamily:v,fontWeight:w="400",padding:x="8px 16px",blockPadding:$,blockMargin:S,gap:_="16px",showIcons:y=!0,iconSize:A="24px",borderColor:N,borderWidth:E,borderRadius:T,bare:M}=e??{};if(!(Array.isArray(i)&&i.length>0)||!n&&!t)return g.jsx(g.Fragment,{});const z=u==="logo-menu"||u==="logo-menu-cta",H=u==="menu-cta"||u==="logo-menu-cta",Z=z||H,j=c==="right"?"end":c==="center"?"center":"start",V=F.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),Y=t||V,K=(M==null?void 0:M.toggleId)??`ahd-menu-toggle-${Y}`,G=(M==null?void 0:M.listId)??`ahd-menu-list-${Y}`,oe=C1(v);if(M)return g.jsx(g.Fragment,{children:ba(i,h,b,w,x,p,_,y,A,K,G,oe)});const le=_1(Y,{stickyNav:o,stickyNavTablet:a,stickyNavMobile:r}),se=$1(Y,{dropdownBackground:m??(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":u,style:{...m1(d,c,Z,$,S),...N?{borderStyle:"solid",borderColor:N,borderWidth:E?`${E.top??1}px ${E.right??1}px ${E.bottom??1}px ${E.left??1}px`:"1px"}:{},...T!=null?{borderRadius:typeof T=="number"?`${T}px`:`${(T==null?void 0:T.topLeft)??0}px ${(T==null?void 0:T.topRight)??0}px ${(T==null?void 0:T.bottomRight)??0}px ${(T==null?void 0:T.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:w1,onClick:ce=>ce.stopPropagation()}),g.jsx("label",{htmlFor:K,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Ti(K)}),z&&g.jsx("div",{className:"ahd-menu-start",style:Uo("start"),children:(l??[]).map(ce=>g.jsx(ke,{id:ce},ce))}),g.jsx("div",{className:"ahd-menu-center",style:Uo(j,Z),children:ba(i,h,b,w,x,p,_,y,A,K,G,oe)}),H&&g.jsx("div",{className:"ahd-menu-end",style:Uo("end"),children:(s??[]).map(ce=>g.jsx(ke,{id:ce},ce))}),g.jsxs("label",{htmlFor:K,className:"ahd-menu-burger","aria-hidden":"true",style:k1(h),onClick:Ti(K),children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]})]})]})},y1=C({id:k().optional(),label:k().optional(),href:k().optional(),textColor:k().optional().nullable()}),N1=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),E1=C({top:f(),right:f(),bottom:f(),left:f()}).optional().nullable(),R1=C({items:X(y1).optional().nullable(),separator:I(["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:N1,blockMargin:E1}),I1=C({style:C({}).passthrough().optional().nullable(),responsive:Be,props:R1.optional().nullable()}),Zo={slash:"/",chevron:"›",dot:"•",pipe:"|"};function T1(e,t){return e==="custom"?t||"›":e&&Zo[e]?Zo[e]:Zo.chevron}function M1(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 P1=e=>{if(!e)return;const t=at.find(n=>n.key===e);return(t==null?void 0:t.value)||e},hs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,O1=hs,L1="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",z1=({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:L1,fill:t})}),j1=({color:e,fontSize:t})=>g.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),B1=({props:e,renderLabel:t})=>{const{items:n,separator:o="chevron",customSeparator:a,showHomeIcon:r=!1,homeHref:i="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:u="#595959",currentItemColor:c,separatorColor:p,fontSize:d="14px",fontFamily:h,fontWeight:m="400",gap:b="8px",blockPadding:v,blockMargin:w}=e??{};if(!(Array.isArray(n)&&n.length>0))return g.jsx(g.Fragment,{});const $=P1(h),S=T1(o,a),_=n.length-1,y=F.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),A=l?M1(y):"",N=(E,T,M)=>{const P=(M?c:null)||E.textColor||u,z=!M||s,H={color:P,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:E,index:T,isLast:M,style:H}):z?g.jsx("a",{href:E.href||"#",style:H,"aria-current":M?"page":void 0,children:E.label||""}):g.jsx("span",{style:H,"aria-current":"page",children:E.label||""})};return g.jsxs(g.Fragment,{children:[A&&g.jsx("style",{dangerouslySetInnerHTML:{__html:A}}),g.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${y}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:hs(v),margin:O1(w)},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:[r&&g.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[g.jsx("a",{href:i||"/",style:{display:"flex",color:u},children:g.jsx(z1,{size:parseInt(d,10)||14,color:u})}),g.jsx("span",{"aria-hidden":"true",style:{color:p||u},children:S})]}),n.map((E,T)=>{const M=T===_,P=l&&T!==0&&!M;return g.jsxs("li",{className:P?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[N(E,T,M),!M&&g.jsx("span",{"aria-hidden":"true",style:{color:p||u},children:S})]},E.id||T)}),l&&n.length>2&&g.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[g.jsx(j1,{color:u,fontSize:d}),g.jsx("span",{"aria-hidden":"true",style:{color:p||u},children:S})]})]})})]})},D1=C({style:C({}).passthrough().optional().nullable(),props:C({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:I(["left","center","right"]).default("left")}).optional().nullable()}),F1=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)}`},H1=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`},G1=({props:e,style:t})=>{const{formId:n,iframeSrc:o,width:a,height:r,heightTablet:i,heightMobile:l,autoHeight:s=!1,alignment:u="left",formName:c}=e??{};if(!n||!o)return g.jsx(g.Fragment,{});const p=u==="center"?"center":u==="right"?"flex-end":"flex-start",d=t??{},h={display:"flex",justifyContent:p,width:"100%",padding:H1(d.padding),backgroundColor:d.backgroundColor||void 0,borderRadius:d.borderRadius||void 0},m=F1(`${n}|${o??""}`),b=!s&&(i||l)?`
|
|
295
|
+
${i?`${yt} { #${m} { height: ${i} !important; } }`:""}
|
|
296
|
+
${l?`${Oe} { #${m} { height: ${l} !important; } }`:""}
|
|
297
|
+
`:"",v=s?`
|
|
298
|
+
(function(){
|
|
299
|
+
var el = document.getElementById(${JSON.stringify(m)});
|
|
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:m,src:o,title:c||"Form",style:{width:a||"100%",height:s?"auto":r||"500px",border:"none",display:"block",borderRadius:d.borderRadius||void 0},scrolling:s?"no":void 0,loading:"lazy"})}),v&&g.jsx("script",{dangerouslySetInnerHTML:{__html:v}})]})},U1=C({style:C({}).passthrough().optional().nullable(),props:C({bannerId:k().default(""),bannerName:k().optional().nullable(),contentDocument:Zt(k(),gn()).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()}),Z1=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},W1=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},q1=({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:{...Z1(o),...W1(a)},children:g.jsx(wn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{}):g.jsx(g.Fragment,{})},V1=C({style:C({}).passthrough().optional().nullable(),props:C({faqGroupId:k().default(""),faqGroupName:k().optional().nullable(),contentDocument:Zt(k(),gn()).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()}),Y1=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},K1=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},J1=({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:{...Y1(o),...K1(a)},children:g.jsx(wn,{document:n,rootBlockId:"root"})}):g.jsx(g.Fragment,{})},X1=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:k().optional().nullable(),targetId:k().optional().nullable(),backgroundColor:k().optional().nullable(),textColor:k().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()}),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 Q1=0;function fs({style:e,props:t}){var w,x;const n=((w=t==null?void 0:t.text)==null?void 0:w.trim())||Qe.text,o=((x=t==null?void 0:t.targetId)==null?void 0:x.trim())||Qe.targetId,a=(t==null?void 0:t.backgroundColor)??Qe.backgroundColor,r=(t==null?void 0:t.textColor)??Qe.textColor,i=(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,u=(t==null?void 0:t.paddingY)??Qe.paddingY,c=(t==null?void 0:t.marginX)??Qe.marginX,p=(t==null?void 0:t.marginY)??Qe.marginY,d="always-visible",h=`skip-link-${++Q1}`,m={padding:ar(e==null?void 0:e.padding),margin:rr(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
|
|
288
311
|
display:inline-block;
|
|
289
312
|
background:${a};
|
|
290
|
-
color:${
|
|
291
|
-
font-size:${
|
|
313
|
+
color:${r};
|
|
314
|
+
font-size:${i}px;
|
|
292
315
|
font-weight:600;
|
|
293
316
|
border-radius:${l}px;
|
|
294
|
-
padding:${
|
|
295
|
-
margin:${p}px ${
|
|
317
|
+
padding:${u}px ${s}px;
|
|
318
|
+
margin:${p}px ${c}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
322
|
`,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
|
|
323
|
+
.${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 eS=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:k().optional().nullable(),triggerText:k().optional().nullable(),showLabelText:O().optional().nullable(),triggerBg:k().optional().nullable(),triggerColor:k().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: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"},Wo={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 tS(e){return e&&Wo[e]?Wo[e]:Wo.accessibility}function nS(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${tS(e)}"/></svg>`}const oS={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function aS(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 ps(e){const{containerPos:t}=aS(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
|
|
355
|
+
`.trim()}function ms(e){const t={...oS,...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 & 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>`:"",r=t.hideImages||t.bigCursor?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Other</div><div class="ahd-a11y-row">${[t.hideImages?n("hide-images","Hide images"):"",t.bigCursor?n("big-cursor","Big cursor"):""].filter(Boolean).join("")}</div></div>`:"",i=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=nS(e.icon??"accessibility"),u=n1(e.triggerText,e.showLabelText!==!1,"Accessibility"),c=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
|
|
333
356
|
<div class="ahd-a11y-widget ahd-a11y-${l}">
|
|
334
|
-
<button type="button" class="ahd-a11y-trigger" aria-label="${
|
|
357
|
+
<button type="button" class="ahd-a11y-trigger" aria-label="${c}" aria-expanded="false" aria-controls="ahd-a11y-panel">${s}${u!==null?`<span>${u}</span>`:""}</button>
|
|
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}${
|
|
360
|
+
${o}${a}${r}${i}
|
|
338
361
|
</div>
|
|
339
362
|
</div>
|
|
340
|
-
`.trim()}function
|
|
363
|
+
`.trim()}function gs(){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
|
|
471
|
+
`.trim()}function bs({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??et.renderMode,o=(t==null?void 0:t.position)??et.position,a=(t==null?void 0:t.features)??void 0,r=(t==null?void 0:t.triggerBg)??et.triggerBg,i=(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,u=(t==null?void 0:t.triggerFontSize)??et.triggerFontSize,c=(t==null?void 0:t.triggerBorderRadius)??et.triggerBorderRadius,p=(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,m={padding:ar(e==null?void 0:e.padding),margin:rr(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=ps(b),w=`.ahd-a11y-trigger{background:${r};color:${i};font-size:${u}px;border-radius:${c}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}`,x=ms(b),$=gs();return g.jsxs("div",{className:"accessibility-tools-block",style:m,"data-a11y-instance":"1",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:v+w}}),g.jsx("div",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("script",{dangerouslySetInnerHTML:{__html:$}}),g.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}function rS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var va={exports:{}},xa={exports:{}},Ze={},fe={};fe.__esModule=!0;fe.extend=vs;fe.indexOf=uS;fe.escapeExpression=dS;fe.isEmpty=hS;fe.createFrame=fS;fe.blockParams=pS;fe.appendContextPath=mS;var iS={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},lS=/[&<>"'`=]/g,sS=/[&<>"'`=]/;function cS(e){return iS[e]}function vs(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 ir=Object.prototype.toString;fe.toString=ir;var Sa=function(t){return typeof t=="function"};Sa(/x/)&&(fe.isFunction=Sa=function(e){return typeof e=="function"&&ir.call(e)==="[object Function]"});fe.isFunction=Sa;var xs=Array.isArray||function(e){return e&&typeof e=="object"?ir.call(e)==="[object Array]":!1};fe.isArray=xs;function uS(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1}function dS(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return sS.test(e)?e.replace(lS,cS):e}function hS(e){return!e&&e!==0?!0:!!(xs(e)&&e.length===0)}function fS(e){var t=vs({},e);return t._parent=e,t}function pS(e,t){return e.path=t,e}function mS(e,t){return(e?e+".":"")+t}var wa={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function o(a,r){var i=r&&r.loc,l=void 0,s=void 0,u=void 0,c=void 0;i&&(l=i.start.line,s=i.end.line,u=i.start.column,c=i.end.column,a+=" - "+l+":"+u);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{i&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:u,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=u,this.endColumn=c))}catch{}}o.prototype=new Error,t.default=o,e.exports=t.default})(wa,wa.exports);var We=wa.exports,_n={},ka={exports:{}};(function(e,t){t.__esModule=!0;var n=fe;t.default=function(o){o.registerHelper("blockHelperMissing",function(a,r){var i=r.inverse,l=r.fn;if(a===!0)return l(this);if(a===!1||a==null)return i(this);if(n.isArray(a))return a.length>0?(r.ids&&(r.ids=[r.name]),o.helpers.each(a,r)):i(this);if(r.data&&r.ids){var s=n.createFrame(r.data);s.contextPath=n.appendContextPath(r.data.contextPath,r.name),r={data:s}}return l(a,r)})},e.exports=t.default})(ka,ka.exports);var gS=ka.exports,$a={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var o=fe,a=We,r=n(a);t.default=function(i){i.registerHelper("each",function(l,s){if(!s)throw new r.default("Must pass iterator to #each");var u=s.fn,c=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(S,_,y){h&&(h.key=S,h.index=_,h.first=_===0,h.last=!!y,m&&(h.contextPath=m+S)),d=d+u(l[S],{data:h,blockParams:o.blockParams([l[S],S],[m+S,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 w=[],x=l[Symbol.iterator](),$=x.next();!$.done;$=x.next())w.push($.value);l=w;for(var v=l.length;p<v;p++)b(p,p,p===l.length-1)}else(function(){var S=void 0;Object.keys(l).forEach(function(_){S!==void 0&&b(S,p-1),S=_,p++}),S!==void 0&&b(S,p-1,!0)})();return p===0&&(d=c(this)),d})},e.exports=t.default})($a,$a.exports);var bS=$a.exports,_a={exports:{}};(function(e,t){t.__esModule=!0;function n(r){return r&&r.__esModule?r:{default:r}}var o=We,a=n(o);t.default=function(r){r.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new a.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(_a,_a.exports);var vS=_a.exports,Ca={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var o=fe,a=We,r=n(a);t.default=function(i){i.registerHelper("if",function(l,s){if(arguments.length!=2)throw new r.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)}),i.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new r.default("#unless requires exactly one argument");return i.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(Ca,Ca.exports);var xS=Ca.exports,Aa={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],r=0;r<arguments.length-1;r++)o.push(arguments[r]);var i=1;a.hash.level!=null?i=a.hash.level:a.data&&a.data.level!=null&&(i=a.data.level),o[0]=i,n.log.apply(n,o)})},e.exports=t.default})(Aa,Aa.exports);var SS=Aa.exports,ya={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(o,a,r){return o&&r.lookupProperty(o,a)})},e.exports=t.default})(ya,ya.exports);var wS=ya.exports,Na={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var o=fe,a=We,r=n(a);t.default=function(i){i.registerHelper("with",function(l,s){if(arguments.length!=2)throw new r.default("#with requires exactly one argument");o.isFunction(l)&&(l=l.call(this));var u=s.fn;if(o.isEmpty(l))return s.inverse(this);var c=s.data;return s.data&&s.ids&&(c=o.createFrame(s.data),c.contextPath=o.appendContextPath(s.data.contextPath,s.ids[0])),u(l,{data:c,blockParams:o.blockParams([l],[c&&c.contextPath])})})},e.exports=t.default})(Na,Na.exports);var kS=Na.exports;_n.__esModule=!0;_n.registerDefaultHelpers=zS;_n.moveHelperToHooks=jS;function Nt(e){return e&&e.__esModule?e:{default:e}}var $S=gS,_S=Nt($S),CS=bS,AS=Nt(CS),yS=vS,NS=Nt(yS),ES=xS,RS=Nt(ES),IS=SS,TS=Nt(IS),MS=wS,PS=Nt(MS),OS=kS,LS=Nt(OS);function zS(e){_S.default(e),AS.default(e),NS.default(e),RS.default(e),TS.default(e),PS.default(e),LS.default(e)}function jS(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var lr={},Ea={exports:{}};(function(e,t){t.__esModule=!0;var n=fe;t.default=function(o){o.registerDecorator("inline",function(a,r,i,l){var s=a;return r.partials||(r.partials={},s=function(u,c){var p=i.partials;i.partials=n.extend({},p,r.partials);var d=a(u,c);return i.partials=p,d}),r.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Ea,Ea.exports);var BS=Ea.exports;lr.__esModule=!0;lr.registerDefaultDecorators=GS;function DS(e){return e&&e.__esModule?e:{default:e}}var FS=BS,HS=DS(FS);function GS(e){HS.default(e)}var Ra={exports:{}};(function(e,t){t.__esModule=!0;var n=fe,o={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(r){if(typeof r=="string"){var i=n.indexOf(o.methodMap,r.toLowerCase());i>=0?r=i:r=parseInt(r,10)}return r},log:function(r){if(r=o.lookupLevel(r),typeof console<"u"&&o.lookupLevel(o.level)<=r){var i=o.methodMap[r];console[i]||(i="log");for(var l=arguments.length,s=Array(l>1?l-1:0),u=1;u<l;u++)s[u-1]=arguments[u];console[i].apply(console,s)}}};t.default=o,e.exports=t.default})(Ra,Ra.exports);var Ss=Ra.exports,Kt={};Kt.__esModule=!0;Kt.createProtoAccessControl=qS;Kt.resultIsAllowed=VS;Kt.resetLoggedProperties=KS;function US(e){return e&&e.__esModule?e:{default:e}}var Mi=fe,ZS=Ss,WS=US(ZS),oo=Object.create(null);function qS(e){var t=Object.create(null);t.__proto__=!1,Mi.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,Mi.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function VS(e,t,n){return Pi(typeof e=="function"?t.methods:t.properties,n)}function Pi(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(YS(t),!1)}function YS(e){oo[e]!==!0&&(oo[e]=!0,WS.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
|
|
451
|
-
`),p=0,d=
|
|
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=gS(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 pS(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 mS(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 gS(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]=bS(a,n)})}function bS(e,t){var n=t.lookupProperty;return dS.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=rS,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 vS=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 KS(){Object.keys(oo).forEach(function(e){delete oo[e]})}Ze.__esModule=!0;Ze.HandlebarsEnvironment=Ia;function ws(e){return e&&e.__esModule?e:{default:e}}var _t=fe,JS=We,qo=ws(JS),XS=_n,QS=lr,ew=Ss,ao=ws(ew),tw=Kt,nw="4.7.9";Ze.VERSION=nw;var ow=8;Ze.COMPILER_REVISION=ow;var aw=7;Ze.LAST_COMPATIBLE_COMPILER_REVISION=aw;var rw={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=rw;var Vo="[object Object]";function Ia(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},XS.registerDefaultHelpers(this),QS.registerDefaultDecorators(this)}Ia.prototype={constructor:Ia,logger:ao.default,log:ao.default.log,registerHelper:function(t,n){if(_t.toString.call(t)===Vo){if(n)throw new qo.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)===Vo)_t.extend(this.partials,t);else{if(typeof n>"u")throw new qo.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)===Vo){if(n)throw new qo.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(){tw.resetLoggedProperties()}};var iw=ao.default.log;Ze.log=iw;Ze.createFrame=_t.createFrame;Ze.logger=ao.default;var Ta={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})(Ta,Ta.exports);var lw=Ta.exports,xt={},sr={};sr.__esModule=!0;sr.wrapHelper=sw;function sw(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}xt.__esModule=!0;xt.checkRevision=pw;xt.template=mw;xt.wrapProgram=Gn;xt.resolvePartial=gw;xt.invokePartial=bw;xt.noop=ks;function cw(e){return e&&e.__esModule?e:{default:e}}function uw(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 dw=fe,Bt=uw(dw),hw=We,lt=cw(hw),st=Ze,Oi=_n,fw=sr,Li=Kt;function pw(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],a=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 ("+a+").")}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 mw(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(i,l,s){s.hash&&(l=Bt.extend({},l,s.hash),s.ids&&(s.ids[0]=!0)),i=t.VM.resolvePartial.call(this,i,l,s),s.hooks=this.hooks,s.protoAccessControl=this.protoAccessControl;var u=t.VM.invokePartial.call(this,i,l,s);if(u==null&&t.compile&&(s.partials[s.name]=t.compile(i,e.compilerOptions,t),u=s.partials[s.name](l,s)),u!=null){if(s.indent){for(var c=u.split(`
|
|
474
|
+
`),p=0,d=c.length;p<d&&!(!c[p]&&p+1===d);p++)c[p]=s.indent+c[p];u=c.join(`
|
|
475
|
+
`)}return u}else throw new lt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var a={strict:function(l,s,u){if(!l||!(s in l))throw new lt.default('"'+s+'" not defined in '+l,{loc:u});return a.lookupProperty(l,s)},lookupProperty:function(l,s){var u=l[s];if(u==null||Object.prototype.hasOwnProperty.call(l,s)||Li.resultIsAllowed(u,a.protoAccessControl,s))return u},lookup:function(l,s){for(var u=l.length,c=0;c<u;c++){var p=l[c]&&a.lookupProperty(l[c],s);if(p!=null)return p}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:Bt.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,u,c,p){var d=this.programs[l],h=this.fn(l);return s||p||c||u?d=Gn(this,l,h,s,u,c,p):d||(d=this.programs[l]=Gn(this,l,h)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var u=l||s;return l&&s&&l!==s&&(u=Bt.extend({},s,l)),u},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function r(i){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;r._setup(l),!l.partial&&e.useData&&(s=vw(i,s));var u=void 0,c=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?u=i!=l.depths[0]?[i].concat(l.depths):l.depths:u=[i]);function p(d){return""+e.main(a,d,a.helpers,a.partials,s,c,u)}return p=$s(e.main,p,a,l.depths||[],s,c),p(i,l)}return r.isTop=!0,r._setup=function(i){if(i.partial)a.protoAccessControl=i.protoAccessControl,a.helpers=i.helpers,a.partials=i.partials,a.decorators=i.decorators,a.hooks=i.hooks;else{var l={};zi(l,t.helpers,a),zi(l,i.helpers,a),a.helpers=l,e.usePartial&&(a.partials=a.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(a.decorators=Bt.extend({},t.decorators,i.decorators)),a.hooks={},a.protoAccessControl=Li.createProtoAccessControl(i);var s=i.allowCallsToHelperMissing||n;Oi.moveHelperToHooks(a,"helperMissing",s),Oi.moveHelperToHooks(a,"blockHelperMissing",s)}},r._child=function(i,l,s,u){if(e.useBlockParams&&!s)throw new lt.default("must pass block params");if(e.useDepths&&!u)throw new lt.default("must pass parent depths");return Gn(a,i,e[i],l,0,s,u)},r}function Gn(e,t,n,o,a,r,i){function l(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=i;return i&&s!=i[0]&&!(s===e.nullContext&&i[0]===null)&&(c=[s].concat(i)),n(e,s,e.helpers,e.partials,u.data||o,r&&[u.blockParams].concat(r),c)}return l=$s(n,l,e,i,o,r),l.program=t,l.depth=i?i.length:0,l.blockParams=a||0,l}function gw(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=Un(n.partials,e)):n.name==="@partial-block"?e=Un(n.data,"partial-block"):e=Un(n.partials,n.name),e}function bw(e,t,n){var o=Un(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!==ks&&function(){n.data=st.createFrame(n.data);var r=n.fn;a=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,r(l,s)},r.partials&&(n.partials=Bt.extend({},n.partials,r.partials))}(),e===void 0&&a&&(e=a),e===void 0)throw new lt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function ks(){return""}function Un(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function vw(e,t){return(!t||!("root"in t))&&(t=t?st.createFrame(t):{},t.root=e),t}function $s(e,t,n,o,a,r){if(e.decorator){var i={};t=e.decorator(t,i,n,o&&o[0],a,r,o),Bt.extend(t,i)}return t}function zi(e,t,n){t&&Object.keys(t).forEach(function(o){var a=t[o];e[o]=xw(a,n)})}function xw(e,t){var n=t.lookupProperty;return fw.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var Ma={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})(Ma,Ma.exports);var _s=Ma.exports;(function(e,t){t.__esModule=!0;function n(x){return x&&x.__esModule?x:{default:x}}function o(x){if(x&&x.__esModule)return x;var $={};if(x!=null)for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&($[S]=x[S]);return $.default=x,$}var a=Ze,r=o(a),i=lw,l=n(i),s=We,u=n(s),c=fe,p=o(c),d=xt,h=o(d),m=_s,b=n(m);function v(){var x=new r.HandlebarsEnvironment;return p.extend(x,r),x.SafeString=l.default,x.Exception=u.default,x.Utils=p,x.escapeExpression=p.escapeExpression,x.VM=h,x.template=function($){return h.template($,x)},x}var w=v();w.create=v,b.default(w),w.default=w,t.default=w,e.exports=t.default})(xa,xa.exports);var Sw=xa.exports,Pa={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})(Pa,Pa.exports);var Cs=Pa.exports,Cn={},Oa={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,u,c,p,d,h){var m=d.length-1;switch(p){case 1:return d[m-1];case 2:this.$=c.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:c.stripComment(d[m]),strip:c.stripFlags(d[m],d[m]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[m],value:d[m],loc:c.locInfo(this._$)};break;case 11:this.$=c.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.$=c.prepareBlock(d[m-3],d[m-2],d[m-1],d[m],!1,this._$);break;case 14:this.$=c.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:c.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:c.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:c.stripFlags(d[m-5],d[m])};break;case 18:this.$={strip:c.stripFlags(d[m-1],d[m-1]),program:d[m]};break;case 19:var b=c.prepareBlock(d[m-2],d[m-1],d[m],d[m],!1,this._$),v=c.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:c.stripFlags(d[m-2],d[m])};break;case 22:this.$=c.prepareMustache(d[m-3],d[m-2],d[m-1],d[m-4],c.stripFlags(d[m-4],d[m]),this._$);break;case 23:this.$=c.prepareMustache(d[m-3],d[m-2],d[m-1],d[m-4],c.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:c.stripFlags(d[m-4],d[m]),loc:c.locInfo(this._$)};break;case 25:this.$=c.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:c.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:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[m],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(d[m-2]),value:d[m],loc:c.locInfo(this._$)};break;case 32:this.$=c.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:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[m]),original:Number(d[m]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[m]==="true",original:d[m]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=d[m];break;case 41:this.$=d[m];break;case 42:this.$=c.preparePath(!0,d[m],this._$);break;case 43:this.$=c.preparePath(!1,d[m],this._$);break;case 44:d[m-2].push({part:c.id(d[m]),original:d[m],separator:d[m-1]}),this.$=d[m-2];break;case 45:this.$=[{part:c.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,u=[0],c=[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 w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function x(){var z;return z=s.lexer.lex()||1,typeof z!="number"&&(z=s.symbols_[z]||z),z}for(var $,S,_,y,A={},N,E,T,M;;){if(S=u[u.length-1],this.defaultActions[S]?_=this.defaultActions[S]:(($===null||typeof $>"u")&&($=x()),_=d[S]&&d[S][$]),typeof _>"u"||!_.length||!_[0]){var P="";{M=[];for(N in d[S])this.terminals_[N]&&N>2&&M.push("'"+this.terminals_[N]+"'");this.lexer.showPosition?P="Parse error on line "+(m+1)+`:
|
|
453
476
|
`+this.lexer.showPosition()+`
|
|
454
|
-
Expecting `+
|
|
455
|
-
`+
|
|
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 xS=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 SS=fa.exports,He={};He.__esModule=!0;He.SourceLocation=_S;He.id=$S;He.stripFlags=CS;He.stripComment=AS;He.preparePath=yS;He.prepareMustache=NS;He.prepareRawBlock=RS;He.prepareBlock=ES;He.prepareProgram=IS;He.preparePartialBlock=MS;function wS(e){return e&&e.__esModule?e:{default:e}}var kS=De,za=wS(kS);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 _S(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 $S(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function CS(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function AS(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function yS(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 NS(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 RS(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 ES(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 IS(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 MS(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=HS;function TS(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 PS=xS,ma=Ba(PS),OS=SS,LS=Ba(OS),zS=He,jS=TS(zS),BS=De,Vt=Ba(BS),DS=ue;fn.parser=ma.default;var Tn={};DS.extend(Tn,jS);function Ol(e,t){if(e.type==="Program")return FS(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 HS(e,t){var n=Ol(e,t),o=new LS.default(t);return o.accept(n)}function FS(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(!GS(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 GS(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var pn={};pn.__esModule=!0;pn.Compiler=ba;pn.precompile=qS;pn.compile=VS;function Ll(e){return e&&e.__esModule?e:{default:e}}var US=De,tn=Ll(US),ln=ue,ZS=Tl,Yt=Ll(ZS),WS=[].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:WS.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 qS(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 VS(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 YS(){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=YS(),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 KS(){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=KS().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 JS(){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 XS(){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 QS(){if(fi)return Jt;fi=1;var e=mn(),t=JS(),n=Bl().ArraySet,o=jl(),a=XS().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 e2(){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 t2(){return mi||(mi=1,Kt.SourceMapGenerator=Dl().SourceMapGenerator,Kt.SourceMapConsumer=QS().SourceMapConsumer,Kt.SourceNode=e2().SourceNode),Kt}(function(e,t){t.__esModule=!0;var n=ue,o=void 0;try{var a=t2();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
|
|
477
|
+
Expecting `+M.join(", ")+", got '"+(this.terminals_[$]||$)+"'":P="Parse error on line "+(m+1)+": Unexpected "+($==1?"end of input":"'"+(this.terminals_[$]||$)+"'"),this.parseError(P,{text:this.lexer.match,token:this.terminals_[$]||$,line:this.lexer.yylineno,loc:v,expected:M})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+$);switch(_[0]){case 1:u.push($),c.push(this.lexer.yytext),p.push(this.lexer.yylloc),u.push(_[1]),$=null,b=this.lexer.yyleng,h=this.lexer.yytext,m=this.lexer.yylineno,v=this.lexer.yylloc;break;case 2:if(E=this.productions_[_[1]][1],A.$=c[c.length-E],A._$={first_line:p[p.length-(E||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(E||1)].first_column,last_column:p[p.length-1].last_column},w&&(A._$.range=[p[p.length-(E||1)].range[0],p[p.length-1].range[1]]),y=this.performAction.call(A,h,b,m,this.yy,_[1],c,p),typeof y<"u")return y;E&&(u=u.slice(0,-1*E*2),c=c.slice(0,-1*E),p=p.slice(0,-1*E)),u.push(this.productions_[_[1]][0]),c.push(A.$),p.push(A._$),T=d[u[u.length-2]][u[u.length-1]],u.push(T);break;case 3:return!0}}return!0}},a=function(){var i={EOF:1,parseError:function(s,u){if(this.yy.parser)this.yy.parser.parseError(s,u);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var u=s.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var u=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u-1),this.offset-=u;var 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),c.length-1&&(this.yylineno-=c.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===p.length?this.yylloc.first_column:0)+p[p.length-c.length].length-c[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-u]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),u=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
478
|
+
`+u+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,u,c,p,d;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),m=0;m<h.length&&(c=this._input.match(this.rules[h[m]]),!(c&&(!u||c[0].length>u[0].length)&&(u=c,p=m,!this.options.flex)));m++);return u?(d=u[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],s=this.performAction.call(this,this.yy,this,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.
|
|
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 i.options={},i.performAction=function(s,u,c,p){function d(h,m){return u.yytext=u.yytext.substring(h,u.yyleng-m+h)}switch(c){case 0:if(u.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):u.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),u.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(d(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(u.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return u.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return u.yytext=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return u.yytext=u.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i}();o.lexer=a;function r(){this.yy={}}return r.prototype=o,o.Parser=r,new r}();t.default=n,e.exports=t.default})(Oa,Oa.exports);var ww=Oa.exports,La={exports:{}},za={exports:{}};(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=We,a=n(o);function r(){this.parents=[]}r.prototype={constructor:r,mutating:!1,acceptKey:function(c,p){var d=this.accept(c[p]);if(this.mutating){if(d&&!r.prototype[d.type])throw new a.default('Unexpected node type "'+d.type+'" found when accepting '+p+" on "+c.type);c[p]=d}},acceptRequired:function(c,p){if(this.acceptKey(c,p),!c[p])throw new a.default(c.type+" requires "+p)},acceptArray:function(c){for(var p=0,d=c.length;p<d;p++)this.acceptKey(c,p),c[p]||(c.splice(p,1),p--,d--)},accept:function(c){if(c){if(!this[c.type])throw new a.default("Unknown type: "+c.type,c);this.current&&this.parents.unshift(this.current),this.current=c;var p=this[c.type](c);if(this.current=this.parents.shift(),!this.mutating||p)return p;if(p!==!1)return c}},Program:function(c){this.acceptArray(c.body)},MustacheStatement:i,Decorator:i,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(c){s.call(this,c),this.acceptKey(c,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(c){this.acceptArray(c.pairs)},HashPair:function(c){this.acceptRequired(c,"value")}};function i(u){this.acceptRequired(u,"path"),this.acceptArray(u.params),this.acceptKey(u,"hash")}function l(u){i.call(this,u),this.acceptKey(u,"program"),this.acceptKey(u,"inverse")}function s(u){this.acceptRequired(u,"name"),this.acceptArray(u.params),this.acceptKey(u,"hash")}t.default=r,e.exports=t.default})(za,za.exports);var As=za.exports;(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=As,a=n(o);function r(){var c=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=c}r.prototype=new a.default,r.prototype.Program=function(c){var p=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var h=c.body,m=0,b=h.length;m<b;m++){var v=h[m],w=this.accept(v);if(w){var x=i(h,m,d),$=l(h,m,d),S=w.openStandalone&&x,_=w.closeStandalone&&$,y=w.inlineStandalone&&x&&$;w.close&&s(h,m,!0),w.open&&u(h,m,!0),p&&y&&(s(h,m),u(h,m)&&v.type==="PartialStatement"&&(v.indent=/([ \t]+$)/.exec(h[m-1].original)[1])),p&&S&&(s((v.program||v.inverse).body),u(h,m)),p&&_&&(s(h,m),u((v.inverse||v.program).body))}}return c},r.prototype.BlockStatement=r.prototype.DecoratorBlock=r.prototype.PartialBlockStatement=function(c){this.accept(c.program),this.accept(c.inverse);var p=c.program||c.inverse,d=c.program&&c.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:c.openStrip.open,close:c.closeStrip.close,openStandalone:l(p.body),closeStandalone:i((h||p).body)};if(c.openStrip.close&&s(p.body,null,!0),d){var v=c.inverseStrip;v.open&&u(p.body,null,!0),v.close&&s(h.body,null,!0),c.closeStrip.open&&u(m.body,null,!0),!this.options.ignoreStandalone&&i(p.body)&&l(h.body)&&(u(p.body),s(h.body))}else c.closeStrip.open&&u(p.body,null,!0);return b},r.prototype.Decorator=r.prototype.MustacheStatement=function(c){return c.strip},r.prototype.PartialStatement=r.prototype.CommentStatement=function(c){var p=c.strip||{};return{inlineStandalone:!0,open:p.open,close:p.close}};function i(c,p,d){p===void 0&&(p=c.length);var h=c[p-1],m=c[p-2];if(!h)return d;if(h.type==="ContentStatement")return(m||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(h.original)}function l(c,p,d){p===void 0&&(p=-1);var h=c[p+1],m=c[p+2];if(!h)return d;if(h.type==="ContentStatement")return(m||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(h.original)}function s(c,p,d){var h=c[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 u(c,p,d){var h=c[p==null?c.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=r,e.exports=t.default})(La,La.exports);var kw=La.exports,qe={};qe.__esModule=!0;qe.SourceLocation=Cw;qe.id=Aw;qe.stripFlags=yw;qe.stripComment=Nw;qe.preparePath=Ew;qe.prepareMustache=Rw;qe.prepareRawBlock=Iw;qe.prepareBlock=Tw;qe.prepareProgram=Mw;qe.preparePartialBlock=Pw;function $w(e){return e&&e.__esModule?e:{default:e}}var _w=We,cr=$w(_w);function ur(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new cr.default(e.path.original+" doesn't match "+t,n)}}function Cw(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 Aw(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function yw(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function Nw(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function Ew(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",a=[],r=0,i=0,l=t.length;i<l;i++){var s=t[i].part,u=t[i].original!==s;if(o+=(t[i].separator||"")+s,!u&&(s===".."||s==="."||s==="this")){if(a.length>0)throw new cr.default("Invalid path: "+o,{loc:n});s===".."&&r++}else a.push(s)}return{type:"PathExpression",data:e,depth:r,parts:a,original:o,loc:n}}function Rw(e,t,n,o,a,r){var i=o.charAt(3)||o.charAt(2),l=i!=="{"&&i!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:a,loc:this.locInfo(r)}}function Iw(e,t,n,o){ur(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 Tw(e,t,n,o,a,r){o&&o.path&&ur(e,o);var i=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(i)throw new cr.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:i?"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(r)}}function Mw(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 Pw(e,t,n,o){return ur(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)}}Cn.__esModule=!0;Cn.parseWithoutProcessing=ys;Cn.parse=Gw;function Ow(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 dr(e){return e&&e.__esModule?e:{default:e}}var Lw=ww,ja=dr(Lw),zw=kw,jw=dr(zw),Bw=qe,Dw=Ow(Bw),Fw=We,an=dr(Fw),Hw=fe;Cn.parser=ja.default;var Zn={};Hw.extend(Zn,Dw);function ys(e,t){if(e.type==="Program")return Uw(e),e;ja.default.yy=Zn,Zn.locInfo=function(o){return new Zn.SourceLocation(t&&t.srcName,o)};var n=ja.default.parse(e);return n}function Gw(e,t){var n=ys(e,t),o=new jw.default(t);return o.accept(n)}function Uw(e){Ba(e)}function Ba(e){if(e!=null){if(Array.isArray(e)){e.forEach(Ba);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!Zw(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"&&Ba(e[n])})}}}function Zw(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var An={};An.__esModule=!0;An.Compiler=Da;An.precompile=Yw;An.compile=Kw;function Ns(e){return e&&e.__esModule?e:{default:e}}var Ww=We,fn=Ns(Ww),xn=fe,qw=Cs,rn=Ns(qw),Vw=[].slice;function Da(){}Da.prototype={compiler:Da,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],r=t.opcodes[o];if(a.opcode!==r.opcode||!Es(a.args,r.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=xn.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 fn.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){ji(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 fn.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,r=t.name.type==="SubExpression";r&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var i=t.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",r,a,i),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){ji(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,r=a.parts[0],i=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",r,i)},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),r=t.path,i=r.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",a.length,i);else{if(this.options.knownHelpersOnly)throw new fn.default("You specified knownHelpersOnly, but used the unknown helper "+i,t);r.strict=!0,r.falsy=!0,this.accept(r),this.opcode("invokeHelper",a.length,r.original,rn.default.helpers.simpleId(r))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=rn.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:Vw.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=rn.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),a=!o&&rn.default.helpers.helperExpression(t),r=!o&&(a||n);if(r&&!a){var i=t.path.parts[0],l=this.options;l.knownHelpers[i]?a=!0:l.knownHelpersOnly&&(r=!1)}return a?"helper":r?"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&&!rn.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 r=t.params;return this.pushParams(r),this.opcode("pushProgram",n),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",a),r},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var a=this.options.blockParams[n],r=a&&xn.indexOf(a,t);if(a&&r>=0)return[n,r]}}};function Yw(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new fn.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 Kw(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new fn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=xn.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function a(){var i=n.parse(e,t),l=new n.Compiler().compile(i,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function r(i,l){return o||(o=a()),o.call(this,i,l)}return r._setup=function(i){return o||(o=a()),o._setup(i)},r._child=function(i,l,s,u){return o||(o=a()),o._child(i,l,s,u)},r}function Es(e,t){if(e===t)return!0;if(xn.isArray(e)&&xn.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!Es(e[n],t[n]))return!1;return!0}}function ji(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 Fa={exports:{}},Ha={exports:{}},ln={},Yo={},jn={},Bn={},Bi;function Jw(){if(Bi)return Bn;Bi=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Bn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Bn.decode=function(t){var n=65,o=90,a=97,r=122,i=48,l=57,s=43,u=47,c=26,p=52;return n<=t&&t<=o?t-n:a<=t&&t<=r?t-a+c:i<=t&&t<=l?t-i+p:t==s?62:t==u?63:-1},Bn}var Di;function Rs(){if(Di)return jn;Di=1;var e=Jw(),t=5,n=1<<t,o=n-1,a=n;function r(l){return l<0?(-l<<1)+1:(l<<1)+0}function i(l){var s=(l&1)===1,u=l>>1;return s?-u:u}return jn.encode=function(s){var u="",c,p=r(s);do c=p&o,p>>>=t,p>0&&(c|=a),u+=e.encode(c);while(p>0);return u},jn.decode=function(s,u,c){var p=s.length,d=0,h=0,m,b;do{if(u>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(u++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(u-1));m=!!(b&a),b&=o,d=d+(b<<h),h+=t}while(m);c.value=i(d),c.rest=u},jn}var Ko={},Fi;function yn(){return Fi||(Fi=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 a(S){var _=S.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=a;function r(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=r;function i(S){var _=S,y=a(S);if(y){if(!y.path)return S;_=y.path}for(var A=e.isAbsolute(_),N=_.split(/\/+/),E,T=0,M=N.length-1;M>=0;M--)E=N[M],E==="."?N.splice(M,1):E===".."?T++:T>0&&(E===""?(N.splice(M+1,T),T=0):(N.splice(M,2),T--));return _=N.join("/"),_===""&&(_=A?"/":"."),y?(y.path=_,r(y)):_}e.normalize=i;function l(S,_){S===""&&(S="."),_===""&&(_=".");var y=a(_),A=a(S);if(A&&(S=A.path||"/"),y&&!y.scheme)return A&&(y.scheme=A.scheme),r(y);if(y||_.match(o))return _;if(A&&!A.host&&!A.path)return A.host=_,r(A);var N=_.charAt(0)==="/"?_:i(S.replace(/\/+$/,"")+"/"+_);return A?(A.path=N,r(A)):N}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 A=S.lastIndexOf("/");if(A<0||(S=S.slice(0,A),S.match(/^([^\/]+:\/)?\/*$/)))return _;++y}return Array(y+1).join("../")+_.substr(S.length+1)}e.relative=s;var u=function(){var S=Object.create(null);return!("__proto__"in S)}();function c(S){return S}function p(S){return h(S)?"$"+S:S}e.toSetString=u?c:p;function d(S){return h(S)?S.slice(1):S}e.fromSetString=u?c: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 m(S,_,y){var A=v(S.source,_.source);return A!==0||(A=S.originalLine-_.originalLine,A!==0)||(A=S.originalColumn-_.originalColumn,A!==0||y)||(A=S.generatedColumn-_.generatedColumn,A!==0)||(A=S.generatedLine-_.generatedLine,A!==0)?A:v(S.name,_.name)}e.compareByOriginalPositions=m;function b(S,_,y){var A=S.generatedLine-_.generatedLine;return A!==0||(A=S.generatedColumn-_.generatedColumn,A!==0||y)||(A=v(S.source,_.source),A!==0)||(A=S.originalLine-_.originalLine,A!==0)||(A=S.originalColumn-_.originalColumn,A!==0)?A:v(S.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function v(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=v(S.source,_.source),y!==0)||(y=S.originalLine-_.originalLine,y!==0)||(y=S.originalColumn-_.originalColumn,y!==0)?y:v(S.name,_.name)}e.compareByGeneratedPositionsInflated=w;function x(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=x;function $(S,_,y){if(_=_||"",S&&(S[S.length-1]!=="/"&&_[0]!=="/"&&(S+="/"),_=S+_),y){var A=a(y);if(!A)throw new Error("sourceMapURL could not be parsed");if(A.path){var N=A.path.lastIndexOf("/");N>=0&&(A.path=A.path.substring(0,N+1))}_=l(r(A),_)}return i(_)}e.computeSourceURL=$}(Ko)),Ko}var Jo={},Hi;function Is(){if(Hi)return Jo;Hi=1;var e=yn(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}return o.fromArray=function(r,i){for(var l=new o,s=0,u=r.length;s<u;s++)l.add(r[s],i);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(r,i){var l=n?r:e.toSetString(r),s=n?this.has(r):t.call(this._set,l),u=this._array.length;(!s||i)&&this._array.push(r),s||(n?this._set.set(r,u):this._set[l]=u)},o.prototype.has=function(r){if(n)return this._set.has(r);var i=e.toSetString(r);return t.call(this._set,i)},o.prototype.indexOf=function(r){if(n){var i=this._set.get(r);if(i>=0)return i}else{var l=e.toSetString(r);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+r+'" is not in the set.')},o.prototype.at=function(r){if(r>=0&&r<this._array.length)return this._array[r];throw new Error("No element indexed by "+r)},o.prototype.toArray=function(){return this._array.slice()},Jo.ArraySet=o,Jo}var Xo={},Gi;function Xw(){if(Gi)return Xo;Gi=1;var e=yn();function t(o,a){var r=o.generatedLine,i=a.generatedLine,l=o.generatedColumn,s=a.generatedColumn;return i>r||i==r&&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,r){this._array.forEach(a,r)},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},Xo.MappingList=n,Xo}var Ui;function Ts(){if(Ui)return Yo;Ui=1;var e=Rs(),t=yn(),n=Is().ArraySet,o=Xw().MappingList;function a(r){r||(r={}),this._file=t.getArg(r,"file",null),this._sourceRoot=t.getArg(r,"sourceRoot",null),this._skipValidation=t.getArg(r,"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(i){var l=i.sourceRoot,s=new a({file:i.file,sourceRoot:l});return i.eachMapping(function(u){var c={generated:{line:u.generatedLine,column:u.generatedColumn}};u.source!=null&&(c.source=u.source,l!=null&&(c.source=t.relative(l,c.source)),c.original={line:u.originalLine,column:u.originalColumn},u.name!=null&&(c.name=u.name)),s.addMapping(c)}),i.sources.forEach(function(u){var c=u;l!==null&&(c=t.relative(l,u)),s._sources.has(c)||s._sources.add(c);var p=i.sourceContentFor(u);p!=null&&s.setSourceContent(u,p)}),s},a.prototype.addMapping=function(i){var l=t.getArg(i,"generated"),s=t.getArg(i,"original",null),u=t.getArg(i,"source",null),c=t.getArg(i,"name",null);this._skipValidation||this._validateMapping(l,s,u,c),u!=null&&(u=String(u),this._sources.has(u)||this._sources.add(u)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:u,name:c})},a.prototype.setSourceContent=function(i,l){var s=i;this._sourceRoot!=null&&(s=t.relative(this._sourceRoot,s)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(s)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},a.prototype.applySourceMap=function(i,l,s){var u=l;if(l==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);u=i.file}var c=this._sourceRoot;c!=null&&(u=t.relative(c,u));var p=new n,d=new n;this._mappings.unsortedForEach(function(h){if(h.source===u&&h.originalLine!=null){var m=i.originalPositionFor({line:h.originalLine,column:h.originalColumn});m.source!=null&&(h.source=m.source,s!=null&&(h.source=t.join(s,h.source)),c!=null&&(h.source=t.relative(c,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,i.sources.forEach(function(h){var m=i.sourceContentFor(h);m!=null&&(s!=null&&(h=t.join(s,h)),c!=null&&(h=t.relative(c,h)),this.setSourceContent(h,m))},this)},a.prototype._validateMapping=function(i,l,s,u){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!l&&!s&&!u)){if(i&&"line"in i&&"column"in i&&l&&"line"in l&&"column"in l&&i.line>0&&i.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:i,source:s,original:l,name:u}))}},a.prototype._serializeMappings=function(){for(var i=0,l=1,s=0,u=0,c=0,p=0,d="",h,m,b,v,w=this._mappings.toArray(),x=0,$=w.length;x<$;x++){if(m=w[x],h="",m.generatedLine!==l)for(i=0;m.generatedLine!==l;)h+=";",l++;else if(x>0){if(!t.compareByGeneratedPositionsInflated(m,w[x-1]))continue;h+=","}h+=e.encode(m.generatedColumn-i),i=m.generatedColumn,m.source!=null&&(v=this._sources.indexOf(m.source),h+=e.encode(v-p),p=v,h+=e.encode(m.originalLine-1-u),u=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-c),c=b)),d+=h}return d},a.prototype._generateSourcesContent=function(i,l){return i.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var u=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,u)?this._sourcesContents[u]:null},this)},a.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},Yo.SourceMapGenerator=a,Yo}var sn={},Qo={},Zi;function Qw(){return Zi||(Zi=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,a,r,i,l){var s=Math.floor((o-n)/2)+n,u=i(a,r[s],!0);return u===0?s:u>0?o-s>1?t(s,o,a,r,i,l):l==e.LEAST_UPPER_BOUND?o<r.length?o:-1:s:s-n>1?t(n,s,a,r,i,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,a,r,i){if(a.length===0)return-1;var l=t(-1,a.length,o,a,r,i||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&r(a[l],a[l-1],!0)===0;)--l;return l}}(Qo)),Qo}var ea={},Wi;function e2(){if(Wi)return ea;Wi=1;function e(o,a,r){var i=o[a];o[a]=o[r],o[r]=i}function t(o,a){return Math.round(o+Math.random()*(a-o))}function n(o,a,r,i){if(r<i){var l=t(r,i),s=r-1;e(o,l,i);for(var u=o[i],c=r;c<i;c++)a(o[c],u)<=0&&(s+=1,e(o,s,c));e(o,s+1,c);var p=s+1;n(o,a,r,p-1),n(o,a,p+1,i)}}return ea.quickSort=function(o,a){n(o,a,0,o.length-1)},ea}var qi;function t2(){if(qi)return sn;qi=1;var e=yn(),t=Qw(),n=Is().ArraySet,o=Rs(),a=e2().quickSort;function r(u,c){var p=u;return typeof u=="string"&&(p=e.parseSourceMapInput(u)),p.sections!=null?new s(p,c):new i(p,c)}r.fromSourceMap=function(u,c){return i.fromSourceMap(u,c)},r.prototype._version=3,r.prototype.__generatedMappings=null,Object.defineProperty(r.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),r.prototype.__originalMappings=null,Object.defineProperty(r.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),r.prototype._charIsMappingSeparator=function(c,p){var d=c.charAt(p);return d===";"||d===","},r.prototype._parseMappings=function(c,p){throw new Error("Subclasses must implement _parseMappings")},r.GENERATED_ORDER=1,r.ORIGINAL_ORDER=2,r.GREATEST_LOWER_BOUND=1,r.LEAST_UPPER_BOUND=2,r.prototype.eachMapping=function(c,p,d){var h=p||null,m=d||r.GENERATED_ORDER,b;switch(m){case r.GENERATED_ORDER:b=this._generatedMappings;break;case r.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var v=this.sourceRoot;b.map(function(w){var x=w.source===null?null:this._sources.at(w.source);return x=e.computeSourceURL(v,x,this._sourceMapURL),{source:x,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(c,h)},r.prototype.allGeneratedPositionsFor=function(c){var p=e.getArg(c,"line"),d={source:e.getArg(c,"source"),originalLine:p,originalColumn:e.getArg(c,"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(c.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 w=b.originalColumn;b&&b.originalLine===p&&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[++m]}return h},sn.SourceMapConsumer=r;function i(u,c){var p=u;typeof u=="string"&&(p=e.parseSourceMapInput(u));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),w=e.getArg(p,"mappings"),x=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,$,c)}),this.sourceRoot=b,this.sourcesContent=v,this._mappings=w,this._sourceMapURL=c,this.file=x}i.prototype=Object.create(r.prototype),i.prototype.consumer=r,i.prototype._findSourceIndex=function(u){var c=u;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this._sources.indexOf(c);var p;for(p=0;p<this._absoluteSources.length;++p)if(this._absoluteSources[p]==u)return p;return-1},i.fromSourceMap=function(c,p){var d=Object.create(i.prototype),h=d._names=n.fromArray(c._names.toArray(),!0),m=d._sources=n.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file,d._sourceMapURL=p,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,p)});for(var b=c._mappings.toArray().slice(),v=d.__generatedMappings=[],w=d.__originalMappings=[],x=0,$=b.length;x<$;x++){var S=b[x],_=new l;_.generatedLine=S.generatedLine,_.generatedColumn=S.generatedColumn,S.source&&(_.source=m.indexOf(S.source),_.originalLine=S.originalLine,_.originalColumn=S.originalColumn,S.name&&(_.name=h.indexOf(S.name)),w.push(_)),v.push(_)}return a(d.__originalMappings,e.compareByOriginalPositions),d},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}i.prototype._parseMappings=function(c,p){for(var d=1,h=0,m=0,b=0,v=0,w=0,x=c.length,$=0,S={},_={},y=[],A=[],N,E,T,M,P;$<x;)if(c.charAt($)===";")d++,$++,h=0;else if(c.charAt($)===",")$++;else{for(N=new l,N.generatedLine=d,M=$;M<x&&!this._charIsMappingSeparator(c,M);M++);if(E=c.slice($,M),T=S[E],T)$+=E.length;else{for(T=[];$<M;)o.decode(c,$,_),P=_.value,$=_.rest,T.push(P);if(T.length===2)throw new Error("Found a source, but no line and column");if(T.length===3)throw new Error("Found a source and line, but no column");S[E]=T}N.generatedColumn=h+T[0],h=N.generatedColumn,T.length>1&&(N.source=v+T[1],v+=T[1],N.originalLine=m+T[2],m=N.originalLine,N.originalLine+=1,N.originalColumn=b+T[3],b=N.originalColumn,T.length>4&&(N.name=w+T[4],w+=T[4])),A.push(N),typeof N.originalLine=="number"&&y.push(N)}a(A,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,a(y,e.compareByOriginalPositions),this.__originalMappings=y},i.prototype._findMapping=function(c,p,d,h,m,b){if(c[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(c[h]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[h]);return t.search(c,p,m,b)},i.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var p=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var d=this._generatedMappings[c+1];if(p.generatedLine===d.generatedLine){p.lastGeneratedColumn=d.generatedColumn-1;continue}}p.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(c){var p={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=this._findMapping(p,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",r.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}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},i.prototype.sourceContentFor=function(c,p){if(!this.sourcesContent)return null;var d=this._findSourceIndex(c);if(d>=0)return this.sourcesContent[d];var h=c;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.')},i.prototype.generatedPositionFor=function(c){var p=e.getArg(c,"source");if(p=this._findSourceIndex(p),p<0)return{line:null,column:null,lastColumn:null};var d={source:p,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},h=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",r.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}},sn.BasicSourceMapConsumer=i;function s(u,c){var p=u;typeof u=="string"&&(p=e.parseSourceMapInput(u));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"),w=e.getArg(v,"line"),x=e.getArg(v,"column");if(w<m.line||w===m.line&&x<m.column)throw new Error("Section offsets must be ordered and non-overlapping.");return m=v,{generatedOffset:{generatedLine:w+1,generatedColumn:x+1},consumer:new r(e.getArg(b,"map"),c)}})}return s.prototype=Object.create(r.prototype),s.prototype.constructor=r,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var u=[],c=0;c<this._sections.length;c++)for(var p=0;p<this._sections[c].consumer.sources.length;p++)u.push(this._sections[c].consumer.sources[p]);return u}}),s.prototype.originalPositionFor=function(c){var p={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"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:c.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(c,p){for(var d=0;d<this._sections.length;d++){var h=this._sections[d],m=h.consumer.sourceContentFor(c,!0);if(m)return m}if(p)return null;throw new Error('"'+c+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(c){for(var p=0;p<this._sections.length;p++){var d=this._sections[p];if(d.consumer._findSourceIndex(e.getArg(c,"source"))!==-1){var h=d.consumer.generatedPositionFor(c);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(c,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],w=h.consumer._sources.at(v.source);w=e.computeSourceURL(h.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var x=null;v.name&&(x=h.consumer._names.at(v.name),this._names.add(x),x=this._names.indexOf(x));var $={source:w,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:x};this.__generatedMappings.push($),typeof $.originalLine=="number"&&this.__originalMappings.push($)}a(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),a(this.__originalMappings,e.compareByOriginalPositions)},sn.IndexedSourceMapConsumer=s,sn}var ta={},Vi;function n2(){if(Vi)return ta;Vi=1;var e=Ts().SourceMapGenerator,t=yn(),n=/(\r?\n)/,o=10,a="$$$isSourceNode$$$";function r(i,l,s,u,c){this.children=[],this.sourceContents={},this.line=i??null,this.column=l??null,this.source=s??null,this.name=c??null,this[a]=!0,u!=null&&this.add(u)}return r.fromStringWithSourceMap=function(l,s,u){var c=new r,p=l.split(n),d=0,h=function(){var x=S(),$=S()||"";return x+$;function S(){return d<p.length?p[d++]:void 0}},m=1,b=0,v=null;return s.eachMapping(function(x){if(v!==null)if(m<x.generatedLine)w(v,h()),m++,b=0;else{var $=p[d]||"",S=$.substr(0,x.generatedColumn-b);p[d]=$.substr(x.generatedColumn-b),b=x.generatedColumn,w(v,S),v=x;return}for(;m<x.generatedLine;)c.add(h()),m++;if(b<x.generatedColumn){var $=p[d]||"";c.add($.substr(0,x.generatedColumn)),p[d]=$.substr(x.generatedColumn),b=x.generatedColumn}v=x},this),d<p.length&&(v&&w(v,h()),c.add(p.splice(d).join(""))),s.sources.forEach(function(x){var $=s.sourceContentFor(x);$!=null&&(u!=null&&(x=t.join(u,x)),c.setSourceContent(x,$))}),c;function w(x,$){if(x===null||x.source===void 0)c.add($);else{var S=u?t.join(u,x.source):x.source;c.add(new r(x.originalLine,x.originalColumn,S,$,x.name))}}},r.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},r.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},r.prototype.walk=function(l){for(var s,u=0,c=this.children.length;u<c;u++)s=this.children[u],s[a]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},r.prototype.join=function(l){var s,u,c=this.children.length;if(c>0){for(s=[],u=0;u<c-1;u++)s.push(this.children[u]),s.push(l);s.push(this.children[u]),this.children=s}return this},r.prototype.replaceRight=function(l,s){var u=this.children[this.children.length-1];return u[a]?u.replaceRight(l,s):typeof u=="string"?this.children[this.children.length-1]=u.replace(l,s):this.children.push("".replace(l,s)),this},r.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},r.prototype.walkSourceContents=function(l){for(var s=0,u=this.children.length;s<u;s++)this.children[s][a]&&this.children[s].walkSourceContents(l);for(var c=Object.keys(this.sourceContents),s=0,u=c.length;s<u;s++)l(t.fromSetString(c[s]),this.sourceContents[c[s]])},r.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},r.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},u=new e(l),c=!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)&&u.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,c=!0):c&&(u.addMapping({generated:{line:s.line,column:s.column}}),p=null,c=!1);for(var w=0,x=b.length;w<x;w++)b.charCodeAt(w)===o?(s.line++,s.column=0,w+1===x?(p=null,c=!1):c&&u.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){u.setSourceContent(b,v)}),{code:s.code,map:u}},ta.SourceNode=r,ta}var Yi;function o2(){return Yi||(Yi=1,ln.SourceMapGenerator=Ts().SourceMapGenerator,ln.SourceMapConsumer=t2().SourceMapConsumer,ln.SourceNode=n2().SourceNode),ln}(function(e,t){t.__esModule=!0;var n=fe,o=void 0;try{var a=o2();o=a.SourceNode}catch{}o||(o=function(l,s,u,c){this.src="",c&&this.add(c)},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 r(l,s,u){if(n.isArray(l)){for(var c=[],p=0,d=l.length;p<d;p++)c.push(s.wrap(l[p],u));return c}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function i(l){this.srcFile=l,this.source=[]}i.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,u){this.source.unshift(this.wrap(s,u))},push:function(s,u){this.source.push(this.wrap(s,u))},merge:function(){var s=this.empty();return this.each(function(u){s.add([" ",u,`
|
|
480
|
+
`])}),s},each:function(s){for(var u=0,c=this.source.length;u<c;u++)s(this.source[u])},empty:function(){var s=this.currentLocation||{start:{}};return new o(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var u=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof o?s:(s=r(s,this,u),new o(u.start.line,u.start.column,this.srcFile,s))},functionCall:function(s,u,c){return c=this.generateList(c),this.wrap([s,u?"."+u+"(":"(",c,")"])},quotedString:function(s){return'"'+(s+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(s){var u=this,c=[];Object.keys(s).forEach(function(d){var h=r(s[d],u);h!=="undefined"&&c.push([u.quotedString(d),":",h])});var p=this.generateList(c);return p.prepend("{"),p.add("}"),p},generateList:function(s){for(var u=this.empty(),c=0,p=s.length;c<p;c++)c&&u.add(","),u.add(r(s[c],this));return u},generateArray:function(s){var u=this.generateList(s);return u.prepend("["),u.add("]"),u}},t.default=i,e.exports=t.default})(Ha,Ha.exports);var a2=Ha.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var o=Ze,a=We,r=n(a),i=fe,l=a2,s=n(l);function u(d){this.value=d}function c(){}c.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 i.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 w=h.opcodes,x=void 0,$=void 0,S=void 0,_=void 0;for(S=0,_=w.length;S<_;S++)x=w[S],this.source.currentLocation=x.loc,$=$||x.loc,this[x.opcode].apply(this,x.args);if(this.source.currentLocation=$,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new r.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
481
|
`]),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) {
|
|
459
482
|
`),this.decorators.push(`}
|
|
460
|
-
`),this.decorators=this.decorators.merge()));var
|
|
461
|
-
`,$,"}"])},mergeSource:function(h){var m=this.environment.isSimple,b=!this.forceBuffer,v=void 0,
|
|
483
|
+
`),this.decorators=this.decorators.merge()));var y=this.createFunctionContext(v);if(this.isChild)return y;var A={compiler:this.compilerInfo(),main:y};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var N=this.context,E=N.programs,T=N.decorators;for(S=0,_=E.length;S<_;S++)A[S]=E[S],T[S]&&(A[S+"_d"]=T[S],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 w=0;Object.keys(this.aliases).forEach(function(S){var _=m.aliases[S];_.children&&_.referenceCount>1&&(b+=", alias"+ ++w+"="+S,_.children[0]="alias"+w)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var x=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&x.push("blockParams"),this.useDepths&&x.push("depths");var $=this.mergeSource(b);return h?(x.push($),Function.apply(this,x)):this.source.wrap(["function(",x.join(","),`) {
|
|
484
|
+
`,$,"}"])},mergeSource:function(h){var m=this.environment.isSimple,b=!this.forceBuffer,v=void 0,w=void 0,x=void 0,$=void 0;return this.source.each(function(S){S.appendToBuffer?(x?S.prepend(" + "):x=S,$=S):(x&&(w?x.prepend("buffer += "):v=!0,$.add(";"),x=$=void 0),w=!0,m||(b=!1))}),b?x?(x.prepend("return "),$.add(";")):w||this.source.push('return "";'):(h+=", buffer = "+(v?"":this.initializeBuffer()),x?(x.prepend("return buffer + "),$.add(";")):this.source.push("return buffer;")),h&&this.source.prepend("var "+h.substring(2)+(v?"":`;
|
|
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 o2=va.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}var o=vS,a=n(o),i=Tl,r=n(i),l=fn,s=pn,c=o2,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 a2=Yo.exports;const r2=o1(a2);function i2(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 i2(o,s))n.set(u,r||{})})}return n}const l2={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function s2(e){return e?l2[e]:void 0}const Sa=r2.create();Sa.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new Sa.SafeString(`{{${t.name}}}`)});const gi=new Map;function c2(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 u2=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function d2(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(u2,(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 h2(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=h2(o,n),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const a=t&&t.length>0?Fl(t):{},{masked:i,restore:r}=d2(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=c2(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=s2(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 f2(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function p2(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 f2(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 m2(e){const t=[];if(e.borderColor!==void 0||e.borderWidth!==void 0){const o=p2(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 g2(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 b2(e,t,n,o){if(!t)return"";const a=`#${e}`,i=x2(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?m2(p):"",d?g2(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=w2(e,t,n,o);return s&&r.push(s),r.join("")}function v2(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 v2(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 x2(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 S2(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 w2(e,t,n,o){if(!t)return"";const a=`#${e}`,i=S2(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
|
-
${
|
|
471
|
-
@media (max-width:${
|
|
472
|
-
`.trim()}const
|
|
492
|
+
`.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 w=0;!v&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(h[w++])):this.pushContext(),this.resolvePath("context",h,w,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,w){var x=this;if(this.options.strict||this.options.assumeObjects){this.push(p(this.options.strict&&w,this,m,b,h));return}for(var $=m.length,S=function(y){x.replaceStack(function(A){var N=x.nameLookup(A,m[y],h);return v?[" && ",N]:[" != null ? ",N," : ",A]})},_=b;_<$;_++)S(_)},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(),w=this.setupHelper(h,m),x=[];b&&x.push(w.name),x.push(v),this.options.strict||x.push(this.aliasable("container.hooks.helperMissing"));var $=["(",this.itemsSeparatedBy(x,"||"),")"],S=this.source.functionCall($,"call",w.callParams);this.push(S)},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),w=this.lastHelper=this.nameLookup("helpers",h,"helper"),x=["(","(helper = ",w," || ",b,")"];this.options.strict||(x[0]="(helper = ",x.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",x,v.paramsInit?["),(",v.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",v.callParams)," : helper))"])},invokePartial:function(h,m,b){var v=[],w=this.setupParams(m,1,v);h&&(m=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",h?v.unshift(m):v.unshift(this.nameLookup("partials",m,"partial")),this.options.compat&&(w.depths="depths"),w=this.objectLiteral(w),v.push(w),this.push(this.source.functionCall("container.invokePartial","",v))},assignToHash:function(h){var m=this.popStack(),b=void 0,v=void 0,w=void 0;this.trackIds&&(w=this.popStack()),this.stringParams&&(v=this.popStack(),b=this.popStack());var x=this.hash;b&&(x.contexts[h]=b),v&&(x.types[h]=v),w&&(x.ids[h]=w),x.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:c,compileChildren:function(h,m){for(var b=h.children,v=void 0,w=void 0,x=0,$=b.length;x<$;x++){v=b[x],w=new this.compiler;var S=this.matchExistingProgram(v);if(S==null){var _=this.context.programs.push("")-1;v.index=_,v.name="program"+_,this.context.programs[_]=w.compile(v,m,this.context,!this.precompile),this.context.decorators[_]=w.decorators,this.context.environments[_]=v,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams,v.useDepths=this.useDepths,v.useBlockParams=this.useBlockParams}else v.index=S.index,v.name="program"+S.index,this.useDepths=this.useDepths||S.useDepths,this.useBlockParams=this.useBlockParams||S.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 u||(h=this.source.wrap(h)),this.inlineStack.push(h),h},pushStackLiteral:function(h){this.push(new u(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,w=void 0;if(!this.isInline())throw new r.default("replaceStack on non-inline");var x=this.popStack(!0);if(x instanceof u)b=[x.value],m=["(",b],w=!0;else{v=!0;var $=this.incrStack();m=["((",this.push($)," = ",x,")"],b=this.topStack()}var S=h.call(this,b);w||this.popStack(),v&&this.stackSlot--,this.push(m.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 m=0,b=h.length;m<b;m++){var v=h[m];if(v instanceof u)this.compileStack.push(v);else{var w=this.incrStack();this.pushSource([w," = ",v,";"]),this.compileStack.push(w)}}},isInline:function(){return this.inlineStack.length},popStack:function(h){var m=this.isInline(),b=(m?this.inlineStack:this.compileStack).pop();if(!h&&b instanceof u)return b.value;if(!m){if(!this.stackSlot)throw new r.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 u?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=[],w=this.setupHelperArgs(m,h,v,b),x=this.nameLookup("helpers",m,"helper"),$=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:v,paramsInit:w,name:x,callParams:[$].concat(v)}},setupParams:function(h,m,b){var v={},w=[],x=[],$=[],S=!b,_=void 0;S&&(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 y=this.popStack(),A=this.popStack();(A||y)&&(v.fn=A||"container.noop",v.inverse=y||"container.noop");for(var N=m;N--;)_=this.popStack(),b[N]=_,this.trackIds&&($[N]=this.popStack()),this.stringParams&&(x[N]=this.popStack(),w[N]=this.popStack());return S&&(v.args=this.source.generateArray(b)),this.trackIds&&(v.ids=this.source.generateArray($)),this.stringParams&&(v.types=this.source.generateArray(x),v.contexts=this.source.generateArray(w)),this.options.data&&(v.data="data"),this.useBlockParams&&(v.blockParams="blockParams"),v},setupHelperArgs:function(h,m,b,v){var w=this.setupParams(h,m,b);return w.loc=JSON.stringify(this.source.currentLocation),w=this.objectLiteral(w),v?(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=c.RESERVED_WORDS={},m=0,b=d.length;m<b;m++)h[d[m]]=!0}(),c.isValidJavaScriptVariableName=function(d){return!c.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function p(d,h,m,b,v){var w=h.popStack(),x=m.length;d&&x--;for(var $=b;$<x;$++)w=h.nameLookup(w,m[$],v);return d?[h.aliasable("container.strict"),"(",w,", ",h.quotedString(m[x]),", ",JSON.stringify(h.source.currentLocation)," )"]:w}t.default=c,e.exports=t.default})(Fa,Fa.exports);var r2=Fa.exports;(function(e,t){t.__esModule=!0;function n(x){return x&&x.__esModule?x:{default:x}}var o=Sw,a=n(o),r=Cs,i=n(r),l=Cn,s=An,u=r2,c=n(u),p=As,d=n(p),h=_s,m=n(h),b=a.default.create;function v(){var x=b();return x.compile=function($,S){return s.compile($,S,x)},x.precompile=function($,S){return s.precompile($,S,x)},x.AST=i.default,x.Compiler=s.Compiler,x.JavaScriptCompiler=c.default,x.Parser=l.parser,x.parse=l.parse,x.parseWithoutProcessing=l.parseWithoutProcessing,x}var w=v();w.create=v,m.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(va,va.exports);var i2=va.exports;const l2=rS(i2);function s2(e,t){const n=[],o=new Set,a=r=>{var l,s,u,c,p,d,h,m,b,v;if(o.has(r)||!e[r])return;o.add(r),n.push(r);const i=e[r];switch(i.type){case"Container":case"ButtonGroup":(((l=i.data.props)==null?void 0:l.childrenIds)||[]).forEach(a);break;case"ColumnsContainer":case"FlexColumns":(((s=i.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(a));break;case"Grid":(((u=i.data.props)==null?void 0:u.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(a));break;case"Accordion":(((c=i.data.props)==null?void 0:c.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(a),(w.contentChildrenIds||[]).forEach(a)});break;case"TabsBlock":case"Carousel":case"Marquee":(((p=i.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(a)});break;case"Pagination":(((d=i.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(a)),(((h=i.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(a)});break;case"PricingAccordion":(((m=i.data.props)==null?void 0:m.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(a),(w.detailChildrenIds||[]).forEach(a)});break;case"MenuPicker":(((b=i.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(a),(((v=i.data.props)==null?void 0:v.endChildrenIds)||[]).forEach(a);break;case"EmailLayout":(i.data.childrenIds||[]).forEach(a);break}};return a(t),n}const ro="relative",Sn="24h",c2=864e5;function hr(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function Ki(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function u2(e,t){const n=hr(e);if(!n)return"";const o=(t==null?void 0:t.now)??new Date,a=t==null?void 0:t.locale,r=Math.round((Ki(n).getTime()-Ki(o).getTime())/c2);if(r===0)return"Today";if(r===1)return"Tomorrow";if(r===-1)return"Yesterday";if(r>=-6&&r<=6)return n.toLocaleDateString(a,{weekday:"short"});const i=n.getFullYear()===o.getFullYear();return n.toLocaleDateString(a,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function na(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 d2(e,t){const o=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"short",day:"numeric",weekday:"long"}).formatToParts(e),a=r=>{var i;return((i=o.find(l=>l.type===r))==null?void 0:i.value)??""};return{year:Number(a("year")),month:new Date(`${a("month")} 1, 2000`).getMonth(),day:Number(a("day")),weekday:a("weekday")}}const h2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ga(e){return e<10?`0${e}`:String(e)}function Ua(e,t=ro,n){if(t==="relative")return u2(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const o=hr(e);if(!o)return"";const{year:a,month:r,day:i,weekday:l}=d2(o,n==null?void 0:n.tz),s=h2[r],u=String(a),c=Ga(r+1),p=Ga(i);switch(t){case"do-mmm-yyyy":return`${na(i)} ${s} ${u}`;case"mmm-d-yyyy":return`${s} ${i}, ${u}`;case"d-mmm-yyyy":return`${i} ${s} ${u}`;case"dd-mm-yyyy":return`${p}/${c}/${u}`;case"mm-dd-yyyy":return`${c}/${p}/${u}`;case"yyyy-mm-dd":return`${u}-${c}-${p}`;case"do-mmm":return`${na(i)} ${s}`;case"full":return`${l}, ${i} ${new Date(2e3,r,1).toLocaleDateString("en-US",{month:"long"})} ${u}`;default:return`${na(i)} ${s} ${u}`}}function io(e,t=Sn,n){const o=hr(e);if(!o)return"";const r=new Intl.DateTimeFormat("en-US",{timeZone:n==null?void 0:n.tz,hour:"numeric",minute:"2-digit",hour12:t==="12h"}).formatToParts(o),i=u=>{var c;return((c=r.find(p=>p.type===u))==null?void 0:c.value)??""};if(t==="12h"){const u=i("hour"),c=i("minute"),p=i("dayPeriod").toUpperCase();return`${u}:${c} ${p}`}const l=Ga(Number(i("hour"))%24),s=i("minute");return`${l}:${s}`}function Ms(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((i,l)=>{var u;const s=l===0?a.sourceBlockId:(u=a.rowIds)==null?void 0:u[l-1];if(!(!s||!o[s]))for(const c of s2(o,s))n.set(c,i||{})})}return n}const f2={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function p2(e){return e?f2[e]:void 0}const Za=l2.create();Za.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new Za.SafeString(`{{${t.name}}}`)});const Ji=new Map;function m2(e){let t=Ji.get(e);return t||(t=Za.compile(e,{noEscape:!0,strict:!1}),Ji.set(e,t)),t}function Ps(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 r of n.itemFields??[])((r==null?void 0:r.type)==="date"||(r==null?void 0:r.type)==="time"||(r==null?void 0:r.type)==="datetime")&&r.id&&o.set(r.id,r);const a=n.value.map(r=>{const i={};if(r&&typeof r=="object")for(const l of Object.keys(r)){const s=r[l];if(s==null||s==="")continue;const u=o.get(l);if((u==null?void 0:u.type)==="datetime"){const c=Wn(l,String(s),o,"date"),p=Wn(l,String(s),o,"time"),d={date:c,time:p};Object.defineProperty(d,"toString",{value:()=>[c,p].filter(Boolean).join(" "),enumerable:!1}),i[l]=d}else i[l]=u?Wn(l,String(s),o):s}return i});Object.defineProperty(a,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=a;continue}if(n.type==="datetime"){const o=n.id,a=typeof n.value=="string"?n.value:"";if(!a){const u={date:`{{${o}.date}}`,time:`{{${o}.time}}`};Object.defineProperty(u,"toString",{value:()=>`{{${o}}}`,enumerable:!1}),t[o]=u;continue}const r=n.dateFormat??ro,i=r==="relative"?ca(o,a):Ua(a,r,{tz:n.dateTz}),l=io(a,n.timeFormat??Sn,{tz:n.dateTz}),s={date:i,time:l};Object.defineProperty(s,"toString",{value:()=>[i,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??ro;t[n.id]=o==="relative"?ca(n.id,n.value):Ua(n.value,o,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=io(n.value,n.timeFormat??Sn,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function fr(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 g2=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function b2(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(g2,(r,i)=>{const l=t[i];if(Array.isArray(l)&&l.length>0)return r;const u="HB_EACH_"+o+++"_";return n.set(u,r),u}),restore:n}}const Os=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function v2(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 Xi(e,t,n){const o=n.dateFormat??ro;return o==="relative"?ca(e,t):Ua(t,o,{tz:n.dateTz})}function Wn(e,t,n,o){const a=n.get(e);if(!a)return t;if(a.type==="time")return io(t,a.timeFormat??Sn,{tz:a.dateTz});if(a.type==="datetime"){const r=io(t,a.timeFormat??Sn,{tz:a.dateTz});if(o==="time")return r;const i=Xi(e,t,a);return o==="date"?i:[i,r].filter(Boolean).join(" ")}return Xi(e,t,a)}function x2(e,t,n){return e.replace(Os,(o,a,r)=>{const i=t==null?void 0:t[a];return i==null||i===""?o:n?Wn(a,String(i),n,r):String(i)})}function cn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=x2(o,n,v2(t)),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const a=t&&t.length>0?Ps(t):{},{masked:r,restore:i}=b2(o,a),l=new Map;let s=r;if(r.indexOf("{{")!==-1&&r.indexOf("#each")===-1){let c=0;s=r.replace(Os,p=>{const d="HB_THIS_"+c+++"_";return l.set(d,p),d})}let u=m2(s)(a);for(const[c,p]of l)u=u.split(c).join(p);if(i.size>0)for(const[c,p]of i)u=u.split(c).join(p);return u}catch{return o}}function Ls(e,t,n,o){var l,s,u,c,p,d,h,m,b;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const v=(s=(l=e.data)==null?void 0:l.props)==null?void 0:s.items;if(!Array.isArray(v)||v.length===0)return e;let w=null;return v.forEach((x,$)=>{const S=x==null?void 0:x.label;if(typeof S!="string"||S.indexOf("{{")===-1)return;const _=Array.isArray(x==null?void 0:x.contentChildrenIds)?x.contentChildrenIds[0]:void 0,y=_&&o?o.get(_):n,A=cn(S,t,y??null);A!==S&&(w||(w=v.map(N=>({...N}))),w[$]={...w[$],label:A})}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="List"){const v=(c=(u=e.data)==null?void 0:u.props)==null?void 0:c.items;if(!Array.isArray(v)||v.length===0)return e;let w=null;return v.forEach((x,$)=>{const S=x==null?void 0:x.text;if(typeof S!="string"||S.indexOf("{{")===-1)return;const _=cn(S,t,n);_!==S&&(w||(w=v.map(y=>({...y}))),w[$]={...w[$],text:_})}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="Breadcrumb"){const v=(d=(p=e.data)==null?void 0:p.props)==null?void 0:d.items;if(!Array.isArray(v)||v.length===0)return e;let w=null;return v.forEach((x,$)=>{for(const S of["label","href"]){const _=x==null?void 0:x[S];if(typeof _!="string"||_.indexOf("{{")===-1)continue;const y=cn(_,t,n);y!==_&&(w||(w=v.map(A=>({...A}))),w[$]={...w[$],[S]:y})}}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="Table"){const v=(m=(h=e.data)==null?void 0:h.props)==null?void 0:m.cells;if(!Array.isArray(v)||v.length===0)return e;let w=null;return v.forEach((x,$)=>{if(typeof x!="string"||x.indexOf("{{")===-1)return;const S=cn(x,t,n);S!==x&&(w||(w=[...v]),w[$]=S)}),w?{...e,data:{...e.data,props:{...e.data.props,cells:w}}}:e}const a=p2(e.type);if(!a)return e;const r=(b=e.data)==null?void 0:b.props;if(!r)return e;let i=null;for(const v of a){const w=r[v];if(typeof w!="string"||w.indexOf("{{")===-1)continue;const x=cn(w,t,n);x!==w&&(i||(i={...r}),i[v]=x)}return i?{...e,data:{...e.data,props:i}}:e}function pr(e,t){var l;if(!e)return e;const n=t??fr(e);let o={...e},a=!1;const r=Ms(e,n);if(n&&n.length>0&&(Object.keys(Ps(n)).length>0||r.size>0))for(const s of Object.keys(o)){const u=o[s],c=Ls(u,n,r.get(s),r);c!==u&&(o[s]=c,a=!0)}const i=o.root;if(((l=i==null?void 0:i.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...u}=i.data;o.root={...i,data:u},a=!0}return a?o:e}const Qi=Object.fromEntries(at.map(e=>[e.key,e.value]));function lo(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function S2(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function w2(e){const t=e.borderColor??null;if(!t)return"";if(t==="transparent")return"border:none!important";const n=lo(e.borderWidth)?e.borderWidth:null;return S2(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 k2(e){const t=[];if(e.borderColor!==void 0||e.borderWidth!==void 0){const o=w2(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":Qi[a]&&t.push(`font-family:${Qi[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":lo(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:r=0,topRight:i=0,bottomRight:l=0,bottomLeft:s=0}=a;t.push(`border-radius:${r}px ${i}px ${l}px ${s}px!important`)}else t.push(`border-radius:${a}!important`);break}}return t.join(";")}function $2(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":lo(o)&&t.push(`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break;case"blockMargin":lo(o)&&t.push(`margin:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break}}return t.join(";")}function el(e,t){if(!t)return null;const n=e??{},o={};for(const a of Object.keys(t)){const r=t[a],i=n[a],l=!!r&&typeof r=="object"&&!Array.isArray(r)&&!!i&&typeof i=="object"&&!Array.isArray(i);o[a]=l?{...i,...r}:r}return o}function _2(e,t,n,o){if(!t)return"";const a=`#${e}`,r=A2(a),i=[],l=(u,c)=>{const p=el(n,c==null?void 0:c.style),d=el(o,c==null?void 0:c.props),h=[p?k2(p):"",d?$2(d):""].filter(Boolean).join(";"),m=[h?`${r}{${h}}`:"",c!=null&&c.hidden?`${a}{display:none}`:""].filter(Boolean).join("");m&&i.push(`${u}{${m}}`)};l(yt,t.tablet),l(`@media (max-width:${Le}px)`,t.mobile);const s=N2(e,t,n,o);return s&&i.push(s),i.join("")}function C2(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 tl(e,t,n){const o=Wa(e,t),a=Wa(n==null?void 0:n.style,n==null?void 0:n.props);return C2(o,a)}function oa(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 A2(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 y2(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 N2(e,t,n,o){if(!t)return"";const a=`#${e}`,r=y2(a),i=Wa(n,o),l=oa(i),s=oa(tl(n,o,t.tablet)),u=oa(tl(n,o,t.mobile));return s===l&&u===l?"":`
|
|
493
|
+
${yt} { ${r} { width: ${s} !important; max-width: 100% !important; } }
|
|
494
|
+
@media (max-width:${Le}px) { ${r} { width: ${u} !important; max-width: 100% !important; } }
|
|
495
|
+
`.trim()}const E2=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(Jr,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):g.jsx(Jr,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},R2=e=>g.jsx("div",{"aria-hidden":"true",style:{display:"contents"},children:g.jsx(wg,{...e})}),I2=K0,zs=F.createContext({}),nl=F.createContext(!1),T2=typeof window<"u"?F.useLayoutEffect:F.useEffect;function js(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 ol=new WeakMap;function M2(e){if(!e||typeof e!="object")return new Map;let t=ol.get(e);return t||(t=Ms(e,js(e)),ol.set(e,t)),t}const Bs=F.createContext({});function P2(){return F.useContext(zs)}function O2(){return F.useContext(Bs)}const Ds={ColumnsContainer:{schema:Tb,Component:Pb},FlexColumns:{schema:Ob,Component:Hb},Grid:{schema:Qb,Component:o0},ButtonGroup:{schema:Ev,Component:Rv},Container:{schema:w0,Component:k0},EmailLayout:{schema:M0,Component:I2},Accordion:{schema:Tv,Component:Ov},PricingAccordion:{schema:zv,Component:Bv},TabsBlock:{schema:Hv,Component:Yv},Carousel:{schema:Jv,Component:tx},Rating:{schema:nx,Component:ix},Progress:{schema:cx,Component:mx},Marquee:{schema:gx,Component:Rx},Timer:{schema:Mx,Component:Hx},Pagination:{schema:Wx,Component:e1},Table:{schema:t1,Component:r1},DemoPicker:{schema:i1,Component:e=>g.jsx(s1,{...e})},MenuPicker:{schema:u1,Component:e=>g.jsx(A1,{...e})},Breadcrumb:{schema:I1,Component:B1},FormsPicker:{schema:D1,Component:e=>g.jsx(G1,{...e})},AppBannerPicker:{schema:U1,Component:e=>g.jsx(q1,{...e})},FaqPicker:{schema:V1,Component:e=>g.jsx(J1,{...e})},Avatar:{schema:Wf,Component:E2},Button:{schema:Ep,Component:Rp},Divider:{schema:Bp,Component:Dp},Heading:{schema:Jp,Component:Xp},Html:{schema:ym,Component:Rm},Image:{schema:Fm,Component:Gm},Logo:{schema:eg,Component:ng},Video:{schema:pg,Component:vg},IFrame:{schema:eb,Component:ob},Calendly:{schema:ib,Component:cb},YouTubeUrl:{schema:Yg,Component:Jg},Spacer:{schema:xg,Component:R2},SkipLink:{schema:X1,Component:fs},AccessibilityTools:{schema:eS,Component:bs},Stepper:{schema:iv,Component:lv},List:{schema:gv,Component:vv},Text:{schema:Ug,Component:Wg}},Fs=mb(Ds),L2=Zt(k(),Fs),z2=pb(Ds);function ke({id:e}){var S,_,y,A,N,E,T;const t=P2(),{staticRender:n,injectElementIds:o,mainBlockId:a,hoistedSkipLinkId:r,hoistedA11yToolsId:i}=O2(),l=t[e];if(r&&e===r&&(l==null?void 0:l.type)==="SkipLink"||i&&e===i&&(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:{...((S=l.data)==null?void 0:S.props)??{},elementId:"main-content"}}}:l,u=js(t),c=M2(t),p=c.get(e),d=Ls(s,u,p,c),h=g.jsx(z2,{...d});if(e==="root")return h;const m=!!((_=l==null?void 0:l.data)!=null&&_.hidden),v=new Set(["Image","Container","Button","Avatar","Logo"]).has(d==null?void 0:d.type)?(A=(y=d==null?void 0:d.data)==null?void 0:y.props)==null?void 0:A.animation:null,w=v&&v.type&&v.type!=="none"?{"data-animate-type":v.type,"data-animate-trigger":v.trigger??"load","data-animate-speed":v.speed??"medium","data-animate-delay":v.delay??0,...v.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{},x=n&&o?`ahd-${e}`:e,$=_2(x,(N=d==null?void 0:d.data)==null?void 0:N.responsive,(E=d==null?void 0:d.data)==null?void 0:E.style,(T=d==null?void 0:d.data)==null?void 0:T.props);return n&&o?g.jsxs("div",{id:`ahd-${e}`,className:"ahd-block-wrapper",style:m?{display:"none"}:void 0,...w,children:[$?g.jsx("style",{dangerouslySetInnerHTML:{__html:$}}):null,h]}):g.jsxs("div",{id:e,style:{scrollMarginTop:"80px",...m?{display:"none"}:null},...w,children:[$?g.jsx("style",{dangerouslySetInnerHTML:{__html:$}}):null,h]})}function wn({document:e,rootBlockId:t,staticRender:n,injectElementIds:o,isBanner:a,mainBlockId:r,hoistedSkipLinkId:i,hoistedA11yToolsId:l}){const s=F.useMemo(()=>({staticRender:!!n,injectElementIds:!!o,isBanner:!!a,mainBlockId:r,hoistedSkipLinkId:i,hoistedA11yToolsId:l}),[n,o,a,r,i,l]),u=F.useContext(nl),c=F.useRef(null);return T2(()=>{n||u||c.current&&(gp(c.current),bp(c.current))},[n,u,e,t]),g.jsx("div",{ref:c,style:{display:"contents"},children:g.jsx(zs.Provider,{value:e,children:g.jsx(Bs.Provider,{value:s,children:g.jsx(nl.Provider,{value:!0,children:g.jsx(ke,{id:t})})})})})}function j2(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function B2(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function D2(e,t){const n=new Set;function o(a){var s,u,c,p;if(n.has(a))return;n.add(a);const r=e[a];if(!r)return;if(r.type==="Container"&&((u=(s=r.data)==null?void 0:s.props)==null?void 0:u.tag)==="main")return a;const i=((c=r.data)==null?void 0:c.props)??{},l=[];Array.isArray(i.childrenIds)&&l.push(i.childrenIds),Array.isArray((p=r.data)==null?void 0:p.childrenIds)&&l.push(r.data.childrenIds),Array.isArray(i.columns)&&i.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const h of d){const m=o(h);if(m)return m}}return o(t)}const F2=()=>`<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,""")}">`,H2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),G2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),U2=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),Z2=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),W2=e=>Object.values(e??{}).some(t=>{var n,o,a;return Z2.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"}),q2=()=>`
|
|
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(),
|
|
603
|
+
`.trim(),V2=()=>`
|
|
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
|
-
`,
|
|
632
|
+
`,Y2=()=>`
|
|
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
|
-
`,
|
|
756
|
+
`,K2=()=>`
|
|
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
|
-
`,
|
|
938
|
+
`,J2=`
|
|
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(),
|
|
929
|
-
${
|
|
951
|
+
`.trim(),X2=`
|
|
952
|
+
${J2}
|
|
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(),
|
|
970
|
+
`.trim(),Q2=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,>~+])\s*/g,"$1").replace(/\s+/g," ").replace(/;}/g,"}").trim(),ek=(e,t=!1)=>Q2(`
|
|
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
|
-
`),
|
|
1802
|
+
`),tk=[{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'}],nk={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]},ok=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},ak=`https://fonts.googleapis.com/css2?${Object.entries(nk).map(([e,t])=>`family=${ok(e,t)}`).join("&")}&display=swap`,Hs=tk.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Hs.map(e=>e.css);const rk=e=>e.replace(/"/g,'\\"');Hs.map(e=>{const t=rk(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
|
|
1808
|
+
`);const ik=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(o,a,r)=>{t++;const i=String(r).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${a}>${i}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function mr(e,{rootBlockId:t,seo:n,injectElementIds:o,minifyCss:a,lang:r,skipLink:i,accessibilityTools:l,includePageCSS:s,headHtml:u,bodyBottomHtml:c,isBanner:p,injectTabsScrollSyncScript:d=!0,injectCarouselScript:h=!0,injectAnimationScript:m=!0,injectFontAssets:b=!0}){var K;const v=((K=e==null?void 0:e[t])==null?void 0:K.data)??{};r??v.lang;const w=i??v.skipLink??void 0,x=l??v.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&&!!(x!=null&&x.enabled),y=_?ps(x):"",A=_?ms(x):"",N=_?gs():"",E=d&&H2(e)?Y2():"",T=h&&U2(e)?K2():"",M=G2(e)?V2():"",P=W2(e),z=m&&P?q2():"",H=g.jsxs("div",{style:{margin:0,padding:0},"data-ahd-tpl-root":"true",children:[s&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ek()}}),y&&g.jsx("style",{dangerouslySetInnerHTML:{__html:y}}),P&&g.jsx("style",{dangerouslySetInnerHTML:{__html:X2}}),b&&g.jsx("link",{rel:"stylesheet",href:ak}),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}}),
|
|
1792
|
-
`);if(!o)return{html:
|
|
1793
|
-
<html lang="${
|
|
1814
|
+
.gc-tooltip .gc-copyright { display: none !important; }`}),g.jsx("style",{dangerouslySetInnerHTML:{__html:or}}),A&&g.jsx("div",{dangerouslySetInnerHTML:{__html:A}}),N&&g.jsx("script",{dangerouslySetInnerHTML:{__html:N}}),(()=>{const G=j2(e),oe=B2(e),le=D2(e,t),se=G?e[G]:null,ce=oe?e[oe]:null,Re=le?g.jsx(wn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!p,mainBlockId:le,hoistedSkipLinkId:G,hoistedA11yToolsId:oe}):g.jsx("main",{id:"main-content",tabIndex:-1,children:g.jsx(wn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!o,isBanner:!!p,hoistedSkipLinkId:G,hoistedA11yToolsId:oe})});return g.jsxs(g.Fragment,{children:[se&&g.jsx(fs,{...se.data??{}}),p?Re:g.jsx("div",{className:"ahd-page-root",children:Re}),ce&&g.jsx(bs,{...ce.data??{}})]})})(),E&&g.jsx("script",{dangerouslySetInnerHTML:{__html:E}}),T&&g.jsx("script",{dangerouslySetInnerHTML:{__html:T}}),M&&g.jsx("script",{dangerouslySetInnerHTML:{__html:M}}),z&&g.jsx("script",{dangerouslySetInnerHTML:{__html:z}})]}),Z=Vs.renderToStaticMarkup(H);let j=a?ik(Z):Z;const V=F2(),Y=j.lastIndexOf("</div>");return j=Y!==-1?j.slice(0,Y)+V+j.slice(Y):j+V,u&&(j=j.replace("</head>",`${u}</head>`)),c&&(j=j.replace("</body>",`${c}</body>`)),j}function al(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function lk(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 mr(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang,skipLink:o.skipLink,accessibilityTools:o.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectAnimationScript:t.injectAnimationScript,injectFontAssets:t.injectFontAssets,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner,seo:t.seo})}catch(r){return console.error("[PagePilotEditor] renderToStaticMarkup failed:",r),""}}function aa(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function sk(e,t={}){var w,x,$;const n=t.includeExternalSections??!0,o=t.wrapInDocumentShell??!0,a=[],r=e.map(S=>{var A;if(al(S))return n&&a.push(String((S==null?void 0:S.content)??"")),S;const _=(A=S==null?void 0:S.contentMetadata)==null?void 0:A.document;if(!_)return S!=null&&S.content&&a.push(String(S.content)),S;const y=lk(_,t);return y&&a.push(y),{...S,content:y,contentMetadata:{...S.contentMetadata??{},document:_}}}),i=a.join(`
|
|
1815
|
+
`);if(!o)return{html:i,sectionHtml:a,flushedSections:r};const l=e.find(S=>!al(S)),s=(($=(x=(w=l==null?void 0:l.contentMetadata)==null?void 0:w.document)==null?void 0:x.root)==null?void 0:$.data)??{},u=t.lang||s.lang||"en",c=t.canvasColor||s.canvasColor||"#FFFFFF",p=t.fontFamily||(typeof s.fontFamily=="string"?s.fontFamily:"Inter, system-ui, sans-serif"),d=t.seoTitle?`<title>${aa(t.seoTitle)}</title>`:"",h=t.seoDescription?`<meta name="description" content="${aa(t.seoDescription)}" />`:"",m=t.extraHead??"",b=t.extraBodyBottom??"";return{html:`<!doctype html>
|
|
1816
|
+
<html lang="${aa(u)}">
|
|
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: ${
|
|
1824
|
+
body { background: ${c}; font-family: ${p}; }
|
|
1802
1825
|
* { box-sizing: border-box; }
|
|
1803
1826
|
</style>
|
|
1804
1827
|
${m}
|
|
1805
1828
|
</head>
|
|
1806
1829
|
<body>
|
|
1807
|
-
${
|
|
1830
|
+
${i}
|
|
1808
1831
|
${b}
|
|
1809
1832
|
</body>
|
|
1810
|
-
</html>`,sectionHtml:a,flushedSections:i}}function ew(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 tw(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 nw(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function ow(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 aw=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 rw(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&&!aw.has(i)?(n[o]=rw(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 iw(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}=Q2(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 lw(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 sw(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 cw(e,t){const n=await lw(t),o=tw(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const a=ew(n),i=sw(a,t.variables),r=Wl(o,i);return Ha(r,t)}function uw(e,t){return ow(t)?cw(e,t):nw(t)?iw(e,t):Ha(e,t)}exports.Reader=sn;exports.ReaderBlock=ve;exports.ReaderBlockSchema=Jl;exports.ReaderDocumentSchema=N2;exports.renderToStaticHtml=uw;exports.renderToStaticMarkup=Da;
|
|
1833
|
+
</html>`,sectionHtml:a,flushedSections:r}}function ck(e){var r,i,l,s,u,c,p,d,h,m,b;if(!e)return[];const t=e.configuration??{},n=(i=(r=t==null?void 0:t.root)==null?void 0:r.data)==null?void 0:i.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const 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,w=[];for(const x of o){const $=(c=(u=(s=(l=x==null?void 0:x.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:u.data)==null?void 0:c.formFields;if(Array.isArray($))for(const S of $)!(S!=null&&S.id)||v.has(S.id)||(v.add(S.id),w.push(S))}if(w.length>0)return w}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 uk(e){var n,o,a,r,i,l,s;if(!e||typeof e!="object")return null;const t=e.configuration;if(!t||typeof t!="object")return null;if(t.root)return t;if(t.isIndividualBlock&&typeof t.rootBlockId=="string"&&t.blocks&&typeof t.blocks=="object"&&t.blocks[t.rootBlockId]){const u=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:u}}}}return(a=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&a.root?t.content.contentMetadata.document:(i=(r=t.contentMetadata)==null?void 0:r.document)!=null&&i.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function rl(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,o)=>n==null?n:n[o],e)}function gr(e,t){if(t){const n=rl(e,t);if(Array.isArray(n))return n;const o=gr(e);if(o){const a=o.map(r=>rl(r,t)).filter(r=>r&&typeof r=="object");if(a.length>0)return a}}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 dk(e,t){if(!t||t.length===0){const o={};for(const[a,r]of Object.entries(e))r!=null&&(o[a]=String(r));return o}const n={};for(const o of t){const a=e[o.id];a!=null&&a!==""&&(n[o.id]=String(a))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function hk(e,t,n,o){if(typeof AbortController>"u")return n(e,t);const a=new AbortController,r=setTimeout(()=>a.abort(),o);try{return await n(e,{...t,signal:a.signal})}finally{clearTimeout(r)}}async function Gs(e,t={}){var p;const n=Array.isArray(e)?e:[],o=n.filter(d=>{var h,m;return((h=d==null?void 0:d.dataSource)==null?void 0:h.type)==="api"&&((m=d==null?void 0:d.dataSource)==null?void 0:m.apiUrl)});if(o.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const a=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!a){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const h of o)(p=t.onError)==null||p.call(t,h,d);return{fields:n,attempted:o.length,refreshed:0,errors:Object.fromEntries(o.map(h=>[h.id,d.message]))}}const r=t.timeoutMs??1e4,i={};let l=0;const s=await Promise.all(o.map(async d=>{var v;const{apiUrl:h,apiMethod:m="GET",apiItemPath:b}=d.dataSource;try{const w=await hk(h,{method:m,headers:{Accept:"application/json",...t.headers}},a,r);if(!w.ok)throw new Error(`GET ${h} → HTTP ${w.status}`);const x=await w.json(),$=gr(x,b);if(!$)throw new Error(`GET ${h} → response had no array of rows`);const S=$.map(_=>dk(_,d.itemFields));return l+=1,{id:d.id,value:S}}catch(w){const x=w instanceof Error?w:new Error(String(w));return i[d.id]=x.message,(v=t.onError)==null||v.call(t,d,x),null}}));if(l===0)return{fields:n,attempted:o.length,refreshed:0,errors:i};const u=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>u.has(d.id)?{...d,value:u.get(d.id)}:d),attempted:o.length,refreshed:l,errors:i}}async function Us(e,t={}){var o,a;const n=(a=(o=e==null?void 0:e.root)==null?void 0:o.data)==null?void 0:a.formFields;return Gs(Array.isArray(n)?n:[],t)}function fk(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function pk(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function mk(e){const t=e;return!!(t.templateId&&t.baseUrl)}function gk(e){if(!e||typeof e!="object")return e;const t=fr(e);return!t||t.length===0?e:pr(e,t)}async function il(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=fr(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let o=n,a=null;return t.refreshApiDataSources&&(a=await Us(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),o=a.fields),{document:pr(e,o),apiRefresh:a}}const bk=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 vk(e){var o,a,r;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:(r=e==null?void 0:e.data)==null?void 0:r.hidden}}}function Zs(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[o,a]of Object.entries(e)){const r=a==null?void 0:a.type;r&&!bk.has(r)?(n[o]=vk(a),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${o}" has unsupported type "${r}" — coerced to Text.`)):n[o]=a}return t?n:e}function br(e,t){var i;if(!e)return"";const n=t.rootBlockId??"root",o=gk(e),a=Zs(o),r=((i=a==null?void 0:a[n])==null?void 0:i.data)??{};return mr(a,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??r.lang,skipLink:t.skipLink??r.skipLink,accessibilityTools:t.accessibilityTools??r.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner})}function vr(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 xr(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Sr(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 Ws(e,t,n){var u;const{wrapInDocumentShell:o=!0,headHtml:a,bodyBottomHtml:r}=n,i=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(i.length===0){const{document:c}=await il(((u=t==null?void 0:t.contentMetadata)==null?void 0:u.document)??e,n);return br(c,n)}const l=await Promise.all(i.map(async c=>{var m;const p=(m=c==null?void 0:c.contentMetadata)==null?void 0:m.document;if(!p)return c;const{document:d}=await il(p,n),h=Zs(d);return{...c,contentMetadata:{...c.contentMetadata??{},document:h}}})),{html:s}=sk(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:a??(t==null?void 0:t.head)??"",extraBodyBottom:r??(t==null?void 0:t.bodyBottom)??""});return s}async function xk(e,t){const{baseUrl:n,tenantId:o,pageId:a}=t,i=`${n.replace(/\/+$/,"")}/tenant/${o}/page/${a}`,l=vr(t),s=await Sr(i,{method:"GET",headers:xr(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${i} → ${s.status}${s.text?`: ${s.text}`:""}`);return Ws(e,s.body,{...t,fetchFn:l})}async function Sk(e,t){var d;const{baseUrl:n,tenantId:o,pagePath:a,cache:r=!1,update:i=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${o}/pagebypath/${encodeURIComponent(a)}?cache=${r}&update=${i}`,u=vr(t),c=await Sr(s,{method:"GET",headers:xr(t)},u);if(!c.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${c.status}${c.text?`: ${c.text}`:""}`);const p=((d=c.body)==null?void 0:d.payload)??c.body;return Ws(e,p,{...t,fetchFn:u})}async function wk(e){const{baseUrl:t,tenantId:n,templateId:o,isGlobal:a=!1}=e,r=t.replace(/\/+$/,""),i=vr(e),l=a?`${r}/global-template/${o}`:`${r}/tenant/${n}/template/${o}`,s=a?{"Content-Type":"application/json"}:xr(e),u=await Sr(l,{method:"GET",headers:s},i);if(u.ok)return u.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${u.status}${u.text?`: ${u.text}`:""}`)}function kk(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 i={...n.get(a.id)??{id:a.id,name:a.id,type:"text"},...a};n.set(a.id,i)}return Array.from(n.values())}const o=Object.entries(t).filter(([,a])=>a!=null);if(o.length===0)return e;for(const[a,r]of o){const i=String(r),l=n.get(a);l?n.set(a,{...l,value:i}):n.set(a,{id:a,name:a,type:"text",value:i})}return Array.from(n.values())}async function $k(e,t){const n=await wk(t),o=uk(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const a=ck(n),r=kk(a,t.variables),i=pr(o,r);return br(i,t)}function _k(e,t){return mk(t)?$k(e,t):pk(t)?Sk(e,t):fk(t)?xk(e,t):br(e,t)}exports.Reader=wn;exports.ReaderBlock=ke;exports.ReaderBlockSchema=Fs;exports.ReaderDocumentSchema=L2;exports.extractApiRows=gr;exports.refreshApiDataSources=Gs;exports.refreshDocumentApiDataSources=Us;exports.renderToStaticHtml=_k;exports.renderToStaticMarkup=mr;
|