pagepilot-visual-editor 1.0.29 → 1.0.30
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/CHANGELOG.md +96 -0
- package/README.md +42 -28
- package/dist/PagePilotEditor.d.ts +12 -9
- package/dist/api/ApiClientContext.d.ts +1 -0
- package/dist/api/PagepilotApiClient.d.ts +7 -0
- package/dist/assets/aiChatbotIcon.d.ts +1 -0
- package/dist/blocks-internal/block-container/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-heading/src/index.d.ts +1 -1
- package/dist/blocks-internal/block-list/src/index.d.ts +11 -1
- package/dist/blocks-internal/block-mdx/src/index.d.ts +47 -0
- package/dist/blocks-internal/block-quill/src/index.d.ts +48 -0
- package/dist/editor/PagePreviewDialog.d.ts +14 -0
- package/dist/editor/Topbar.d.ts +3 -1
- package/dist/editor/pageUrls.d.ts +25 -0
- package/dist/editor/publish/PageLiveSuccessDialog.d.ts +9 -0
- package/dist/editor/publish/PagePublishDialog.d.ts +1 -0
- package/dist/editor/publish/PublishAccessibilityPanel.d.ts +8 -0
- package/dist/editor/publish/a11yLinter.d.ts +8 -0
- package/dist/editor/recordDirty.d.ts +16 -0
- package/dist/editor/renderSections.d.ts +2 -2
- package/dist/editor/savePipeline.d.ts +40 -0
- package/dist/editor/types.d.ts +35 -0
- package/dist/editor-sample/App/InspectorDrawer/BehaviourPanel.d.ts +22 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandColorPalette.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandEmptyLink.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandPanel.styled.d.ts +22 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/BrandSection.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/EmptyText.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/FontDetailsList.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/index.d.ts +5 -0
- package/dist/editor-sample/App/InspectorDrawer/BrandPanel/useBrandApply.d.ts +9 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveDeviceTabs.d.ts +0 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/blockStyleClipboard.d.ts +2 -8
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/index.d.ts +1 -4
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/EmailLayoutSidebarPanel.d.ts +2 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FlexColumns/ColumnSection.d.ts +2 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/FormsPickerSidebarPanel.d.ts +2 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MdxSidebarPanel.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/MenuPickerSidebarPanel.d.ts +22 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/QuillSidebarPanel.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/TextSidebarPanel.d.ts +2 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/AnimationSection.d.ts +7 -5
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/HoverEffectSection.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/imageSizeUnit.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/ColorInput/Picker.d.ts +0 -2
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/inputs/VariableLinkHint.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/EditorBehavior.d.ts +8 -2
- package/dist/editor-sample/App/InspectorDrawer/LayersPanelStyles.d.ts +1 -1
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/AiSupportedBadge.d.ts +7 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/SectionsModal.d.ts +2 -10
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/icons/index.d.ts +3 -5
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/templateHelpers.d.ts +226 -0
- package/dist/editor-sample/App/InspectorDrawer/LayoutPanel/useDebouncedValue.d.ts +8 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/AiFillAllDialog.d.ts +21 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/AiGenerateButton.d.ts +14 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/ScalarFieldRow.d.ts +4 -1
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupDialog.d.ts +19 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/VariableGroupList.d.ts +5 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/aiFill.d.ts +36 -0
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/styles.d.ts +14 -11
- package/dist/editor-sample/App/InspectorDrawer/VariablesPanel/upgradeDialog.d.ts +8 -8
- package/dist/editor-sample/App/InspectorDrawer/behaviourFields.d.ts +30 -0
- package/dist/editor-sample/App/InspectorDrawer/index.d.ts +8 -1
- package/dist/editor-sample/App/InspectorDrawer/publish/BackgroundPanel.d.ts +6 -0
- package/dist/editor-sample/App/InspectorDrawer/renderBehaviourField.d.ts +7 -0
- package/dist/editor-sample/App/TemplatePanel/hooks/useMainBoxStyles.d.ts +2 -1
- package/dist/editor-sample/App/TemplatePanel/index.d.ts +2 -1
- package/dist/editor-sample/App/TemplatePanel/minimap/useMiniMapSync.d.ts +2 -2
- package/dist/editor-sample/App/hooks/page/saveMenuHrefEdits.d.ts +1 -1
- package/dist/editor-sample/App/hooks/page/useSaveHandler.d.ts +1 -0
- package/dist/editor-sample/App/hooks/useAutosave.d.ts +8 -3
- package/dist/editor-sample/App/hooks/useIsTemplateEditorRoute.d.ts +1 -0
- package/dist/editor-sample/App/hooks/useStretch.d.ts +9 -0
- package/dist/editor-sample/App/shared/UploadImage.d.ts +4 -0
- package/dist/editor-sample/App/shared/editor.styles.d.ts +11 -1
- package/dist/editor-sample/documents/blocks/Container/ContainerPropsSchema.d.ts +6 -4
- package/dist/editor-sample/documents/blocks/FormsPicker/FormsPropsSchema.d.ts +33 -2
- package/dist/editor-sample/documents/blocks/List/ListEditor.d.ts +8 -0
- package/dist/editor-sample/documents/blocks/Marquee/MarqueePropsSchema.d.ts +4 -0
- package/dist/editor-sample/documents/blocks/MenuPicker/MenuPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/Table/TableCellEditor.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/Table/TableImportDialog.styles.d.ts +11 -1
- package/dist/editor-sample/documents/blocks/Table/parseClipboardTable.d.ts +7 -0
- package/dist/editor-sample/documents/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/editor-sample/documents/blocks/Timer/TimerPropsSchema.d.ts +2 -0
- package/dist/editor-sample/documents/blocks/Timer/variants/CircularProgressView.d.ts +2 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/blockMenuStyles.d.ts +1 -1
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/brandButtonDefaults.d.ts +1 -4
- package/dist/editor-sample/documents/blocks/helpers/EditorChildrenIds/AddBlockMenu/buttons.d.ts +0 -6
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/dialogs/LinkDialog.d.ts +4 -1
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/hooks/useToolbarCommands.d.ts +16 -4
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/styles.d.ts +2 -2
- package/dist/editor-sample/documents/blocks/helpers/InlineTextToolbar/types.d.ts +2 -4
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/EditorBlockWrapper.d.ts +2 -3
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/TuneMenu.styles.d.ts +17 -0
- package/dist/editor-sample/documents/blocks/helpers/block-wrappers/saveAsTemplateUtils.d.ts +29 -1
- package/dist/editor-sample/documents/blocks/helpers/documentUtils.d.ts +33 -26
- package/dist/editor-sample/documents/blocks/helpers/variableBinding.d.ts +9 -0
- package/dist/editor-sample/documents/editor/EditorBlock.d.ts +2 -6
- package/dist/editor-sample/documents/editor/EditorContext.d.ts +77 -20
- package/dist/editor-sample/documents/editor/LazyEditorBlock.d.ts +1 -0
- package/dist/editor-sample/documents/editor/core.d.ts +492 -390
- package/dist/editor-sample/documents/editor/templateVariables.d.ts +151 -14
- package/dist/editor-sample/documents/editor/useRootFontFamily.d.ts +10 -0
- package/dist/editor-sample/utils/editorStorageKey.d.ts +2 -0
- package/dist/editor-sample/utils/localStoragePref.d.ts +2 -0
- package/dist/email-builder-core/blocks/Container/ContainerPropsSchema.d.ts +1 -1
- package/dist/email-builder-core/blocks/EmailLayout/EmailLayoutReader.d.ts +1 -1
- package/dist/email-builder-core/blocks/TabsBlock/TabsBlockPropsSchema.d.ts +6 -0
- package/dist/email-builder-core/index.d.ts +0 -2
- package/dist/email-builder-core/renderers/pageScripts.d.ts +0 -1
- package/dist/email-builder-core/renderers/themeTokens.d.ts +4 -138
- package/dist/host-stubs/history.d.ts +5 -0
- package/dist/host-stubs/hooks/useTenantFeatureCutoff.d.ts +8 -0
- package/dist/host-stubs/hooks/useTenantPlan.d.ts +18 -0
- package/dist/host-stubs/i18nAhdDefaults.d.ts +1 -0
- package/dist/host-stubs/modules/auth/authCurrentTenant.d.ts +6 -0
- package/dist/host-stubs/modules/forms/formsService.d.ts +3 -1
- package/dist/host-stubs/modules/forms/useFormsList.d.ts +4 -1
- package/dist/host-stubs/modules/menu/menuService.d.ts +4 -0
- package/dist/host-stubs/modules/page/pageService.d.ts +11 -0
- package/dist/host-stubs/modules/settings/settingsActions.d.ts +2 -0
- package/dist/host-stubs/modules/settings/settingsSelectors.d.ts +4 -0
- package/dist/host-stubs/modules/shared/axios/authAxios.d.ts +16 -0
- package/dist/host-stubs/modules/shared/constants.d.ts +14 -0
- package/dist/host-stubs/modules/store.d.ts +4 -0
- package/dist/host-stubs/modules/template/templateEnumerators.d.ts +19 -0
- package/dist/host-stubs/modules/tour/injectTourIntoPage.d.ts +20 -0
- package/dist/host-stubs/style/icons.d.ts +57 -0
- package/dist/host-stubs/utils/dateFormats.d.ts +1 -0
- package/dist/host-stubs/view/branding/brandDefaultFont.d.ts +3 -1
- package/dist/host-stubs/view/branding/styles/BrandIcons.d.ts +9 -0
- package/dist/host-stubs/view/branding/styles/types.d.ts +76 -0
- package/dist/host-stubs/view/configurations/ConfigurationIcons.d.ts +9 -0
- package/dist/host-stubs/view/demo/DemoIcons.d.ts +9 -0
- package/dist/host-stubs/view/images/Icons.d.ts +6 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/types.d.ts +47 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/utils/fileUtils.d.ts +3 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog/utils/mediaTypes.d.ts +9 -0
- package/dist/host-stubs/view/media/MediaGalleryDialog.d.ts +12 -2
- package/dist/host-stubs/view/media/styles/MediaIcons.d.ts +13 -0
- package/dist/host-stubs/view/shared/Confetti.d.ts +5 -0
- package/dist/host-stubs/view/shared/PagePilotLoader.d.ts +2 -0
- package/dist/host-stubs/view/shared/UpgradeDialog/UpgradeDialogContext.d.ts +1 -0
- package/dist/host-stubs/view/shared/common/CopyToClipboard.d.ts +7 -0
- package/dist/host-stubs/view/shared/editors/MdxEditor.d.ts +8 -0
- package/dist/host-stubs/view/shared/editors/QuillEditor.d.ts +3 -0
- package/dist/host-stubs/view/shared/editors/sanitize.d.ts +4 -0
- package/dist/host-stubs/view/shared/editors/types.d.ts +7 -0
- package/dist/host-stubs/view/shared/media/TemplatePreviewMedia.d.ts +29 -0
- package/dist/host-stubs/view/shared/modals/ConfigureDialog.d.ts +7 -0
- package/dist/host-stubs/view/shared/modals/ManageTemplateModal.d.ts +5 -0
- package/dist/host-stubs/view/shared/speech/index.d.ts +17 -0
- package/dist/host-stubs/view/shared/styles/Table.styles.d.ts +3 -0
- package/dist/host-stubs/view/template/form/TemplateFormModal.d.ts +10 -0
- package/dist/host-stubs/view/template/form/fields/types.d.ts +7 -0
- package/dist/{index-DojXOBrb.js → index-B8pdGALF.js} +86282 -73896
- package/dist/{index-BRq3RgdO.cjs → index-C-KL2oQP.cjs} +1 -1
- package/dist/{index-BN1BduFG.js → index-CStZQ7E0.js} +1 -1
- package/dist/index-DVx38kGU.cjs +1553 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/render-core/combineSections.d.ts +33 -3
- package/dist/render-core/dateFormats.d.ts +14 -3
- package/dist/render-core/stubs/pickerEmptyState.d.ts +2 -0
- package/dist/render-core/stubs/styleIcons.d.ts +1 -0
- package/dist/render.cjs +262 -217
- package/dist/render.js +9255 -7732
- package/dist/style.css +1 -1
- package/dist/{xlsx-D2quXLTv.cjs → xlsx-DUs4Mvqq.cjs} +1 -1
- package/dist/{xlsx-0y4dyiCO.js → xlsx-bYU68TCR.js} +1 -1
- package/package.json +1 -1
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/ResponsiveEditingBanner.d.ts +0 -13
- package/dist/editor-sample/App/InspectorDrawer/ConfigurationPanel/input-panels/helpers/BoxShadowControls.d.ts +0 -19
- package/dist/editor-sample/documents/blocks/AppBannerPicker/appBanner.styled.d.ts +0 -2
- package/dist/email-builder-core/blocks/boxShadowSchema.d.ts +0 -23
- package/dist/index-DEBoxZlq.cjs +0 -1510
package/dist/render.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react/jsx-runtime"),Ec=require("react-dom/server"),Z=require("react");var Za;function T(e,t,n){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const c=a.prototype,u=Object.keys(c);for(let h=0;h<u.length;h++){const d=u[h];d in l||(l[d]=c[d].bind(l))}}const r=(n==null?void 0:n.Parent)??Object;class i extends r{}Object.defineProperty(i,"name",{value:e});function a(l){var s;const c=n!=null&&n.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>{var s,c;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(c=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:c.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class Qt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ol extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Za=globalThis).__zod_globalConfig??(Za.__zod_globalConfig={});const da=globalThis.__zod_globalConfig;function wt(e){return da}function Ll(e){const t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,r])=>t.indexOf(+o)===-1).map(([o,r])=>r)}function Sr(e,t){return typeof t=="bigint"?t.toString():t}function Co(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ha(e){return e==null}function fa(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Mc(e,t){const n=e/t,o=Math.round(n),r=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-o)<r?0:n-o}const Va=Symbol("evaluating");function ce(e,t,n){let o;Object.defineProperty(e,t,{get(){if(o!==Va)return o===void 0&&(o=Va,o=n()),o},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function Bt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Rt(...e){const t={};for(const n of e){const o=Object.getOwnPropertyDescriptors(n);Object.assign(t,o)}return Object.defineProperties({},t)}function qa(e){return JSON.stringify(e)}function Pc(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const zl="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function An(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Oc=Co(()=>{var e;if(da.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 nn(e){if(An(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(An(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function jl(e){return nn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Lc=new Set(["string","number","symbol"]);function on(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Nt(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 U(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 zc(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const jc={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 Bc(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=Rt(e._zod.def,{get shape(){const a={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return Bt(this,"shape",a),a},checks:[]});return Nt(e,i)}function Dc(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=Rt(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return Bt(this,"shape",a),a},checks:[]});return Nt(e,i)}function Fc(e,t){if(!nn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const r=Rt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Bt(this,"shape",i),i}});return Nt(e,r)}function Hc(e,t){if(!nn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Rt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return Bt(this,"shape",o),o}});return Nt(e,n)}function Gc(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=Rt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return Bt(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Nt(e,n)}function Uc(e,t,n){const r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=Rt(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 Bt(this,"shape",s),s},checks:[]});return Nt(t,a)}function Wc(e,t,n){const o=Rt(t._zod.def,{get shape(){const r=t._zod.def.shape,i={...r};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(const a in r)i[a]=new e({type:"nonoptional",innerType:r[a]});return Bt(this,"shape",i),i}});return Nt(t,o)}function Kt(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 Zc(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 yt(e,t){return t.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Fn(e){return typeof e=="string"?e:e==null?void 0:e.message}function $t(e,t,n){var s,c,u,h,d,f;const o=e.message?e.message:Fn((u=(c=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:c.error)==null?void 0:u.call(c,e))??Fn((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??Fn((d=n.customError)==null?void 0:d.call(n,e))??Fn((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:r,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t!=null&&t.reportInput&&(l.input=a),l}function ma(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function yn(...e){const[t,n,o]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:o}:{...t}}const Bl=(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,Sr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Dl=T("$ZodError",Bl),Fl=T("$ZodError",Bl,{Parent:Error});function Vc(e,t=n=>n.message){const n={},o=[];for(const r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):o.push(t(r));return{formErrors:o,fieldErrors:n}}function qc(e,t=n=>n.message){const n={_errors:[]},o=(r,i=[])=>{for(const a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{const l=[...i,...a.path];if(l.length===0)n._errors.push(t(a));else{let s=n,c=0;for(;c<l.length;){const u=l[c];c===l.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(a))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}}};return o(e),n}const pa=e=>(t,n,o,r)=>{const i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Qt;if(a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>$t(s,i,wt())));throw zl(l,r==null?void 0:r.callee),l}return a.value},ga=e=>async(t,n,o,r)=>{const i=o?{...o,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new((r==null?void 0:r.Err)??e)(a.issues.map(s=>$t(s,i,wt())));throw zl(l,r==null?void 0:r.callee),l}return a.value},Ao=e=>(t,n,o)=>{const r=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},r);if(i instanceof Promise)throw new Qt;return i.issues.length?{success:!1,error:new(e??Dl)(i.issues.map(a=>$t(a,r,wt())))}:{success:!0,data:i.value}},Yc=Ao(Fl),yo=e=>async(t,n,o)=>{const r=o?{...o,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>$t(a,r,wt())))}:{success:!0,data:i.value}},Kc=yo(Fl),Jc=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return pa(e)(t,n,r)},Xc=e=>(t,n,o)=>pa(e)(t,n,o),Qc=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return ga(e)(t,n,r)},eu=e=>async(t,n,o)=>ga(e)(t,n,o),tu=e=>(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return Ao(e)(t,n,r)},nu=e=>(t,n,o)=>Ao(e)(t,n,o),ou=e=>async(t,n,o)=>{const r=o?{...o,direction:"backward"}:{direction:"backward"};return yo(e)(t,n,r)},ru=e=>async(t,n,o)=>yo(e)(t,n,o),au=/^[cC][0-9a-z]{6,}$/,iu=/^[0-9a-z]+$/,lu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,su=/^[0-9a-vA-V]{20}$/,cu=/^[A-Za-z0-9]{27}$/,uu=/^[a-zA-Z0-9_-]{21}$/,du=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,hu=/^([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})$/,Ya=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)$/,fu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,mu="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function pu(){return new RegExp(mu,"u")}const gu=/^(?:(?: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])$/,bu=/^(([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}|:))$/,xu=/^((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])$/,vu=/^(([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])$/,Su=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Hl=/^[A-Za-z0-9_-]*$/,wu=/^https?$/,$u=/^\+[1-9]\d{6,14}$/,Gl="(?:(?:\\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])))",ku=new RegExp(`^${Gl}$`);function Ul(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 _u(e){return new RegExp(`^${Ul(e)}$`)}function Cu(e){const t=Ul({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(`^${Gl}T(?:${o})$`)}const Au=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}$`)},yu=/^-?\d+$/,Wl=/^-?\d+(?:\.\d+)?$/,Iu=/^(?:true|false)$/i,Ru=/^[^A-Z]*$/,Nu=/^[^a-z]*$/,Ue=T("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Zl={number:"number",bigint:"bigint",object:"date"},Vl=T("$ZodCheckLessThan",(e,t)=>{Ue.init(e,t);const n=Zl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ql=T("$ZodCheckGreaterThan",(e,t)=>{Ue.init(e,t);const n=Zl[typeof t.value];e._zod.onattach.push(o=>{const r=o._zod.bag,i=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Tu=T("$ZodCheckMultipleOf",(e,t)=>{Ue.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):Mc(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})}}),Eu=T("$ZodCheckNumberFormat",(e,t)=>{var a;Ue.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),o=n?"int":"number",[r,i]=jc[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=r,s.maximum=i,n&&(s.pattern=yu)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<r&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>i&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Mu=T("$ZodCheckMaxLength",(e,t)=>{var n;Ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ha(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{const r=o.value;if(r.length<=t.maximum)return;const a=ma(r);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Pu=T("$ZodCheckMinLength",(e,t)=>{var n;Ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ha(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{const r=o.value;if(r.length>=t.minimum)return;const a=ma(r);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ou=T("$ZodCheckLengthEquals",(e,t)=>{var n;Ue.init(e,t),(n=e._zod.def).when??(n.when=o=>{const r=o.value;return!ha(r)&&r.length!==void 0}),e._zod.onattach.push(o=>{const r=o._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=o=>{const r=o.value,i=r.length;if(i===t.length)return;const a=ma(r),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Io=T("$ZodCheckStringFormat",(e,t)=>{var n,o;Ue.init(e,t),e._zod.onattach.push(r=>{const i=r._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Lu=T("$ZodCheckRegex",(e,t)=>{Io.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})}}),zu=T("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Ru),Io.init(e,t)}),ju=T("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Nu),Io.init(e,t)}),Bu=T("$ZodCheckIncludes",(e,t)=>{Ue.init(e,t);const n=on(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=o,e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Du=T("$ZodCheckStartsWith",(e,t)=>{Ue.init(e,t);const n=new RegExp(`^${on(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),Fu=T("$ZodCheckEndsWith",(e,t)=>{Ue.init(e,t);const n=new RegExp(`.*${on(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(o=>{const r=o._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}}),Hu=T("$ZodCheckOverwrite",(e,t)=>{Ue.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Gu{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 Uu={major:4,minor:4,patch:3},pe=T("$ZodType",(e,t)=>{var r;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Uu;const o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(const i of o)for(const a of i._zod.onattach)a(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),(r=e._zod.deferred)==null||r.push(()=>{e._zod.run=e._zod.parse});else{const i=(l,s,c)=>{let u=Kt(l),h;for(const d of s){if(d._zod.def.when){if(Zc(l)||!d._zod.def.when(l))continue}else if(u)continue;const f=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Qt;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,l.issues.length!==f&&(u||(u=Kt(l,f)))});else{if(l.issues.length===f)continue;u||(u=Kt(l,f))}}return h?h.then(()=>l):l},a=(l,s,c)=>{if(Kt(l))return l.aborted=!0,l;const u=i(s,o,c);if(u instanceof Promise){if(c.async===!1)throw new Qt;return u.then(h=>e._zod.parse(h,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(h=>a(h,l,s)):a(u,l,s)}const c=e._zod.parse(l,s);if(c instanceof Promise){if(s.async===!1)throw new Qt;return c.then(u=>i(u,o,s))}return i(c,o,s)}}ce(e,"~standard",()=>({validate:i=>{var a;try{const l=Yc(e,i);return l.success?{value:l.data}:{issues:(a=l.error)==null?void 0:a.issues}}catch{return Kc(e,i).then(s=>{var c;return s.success?{value:s.data}:{issues:(c=s.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}))}),ba=T("$ZodString",(e,t)=>{var n;pe.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Au(e._zod.bag),e._zod.parse=(o,r)=>{if(t.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),we=T("$ZodStringFormat",(e,t)=>{Io.init(e,t),ba.init(e,t)}),Wu=T("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=hu),we.init(e,t)}),Zu=T("$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=Ya(o))}else t.pattern??(t.pattern=Ya());we.init(e,t)}),Vu=T("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=fu),we.init(e,t)}),qu=T("$ZodURL",(e,t)=>{we.init(e,t),e._zod.check=n=>{var o;try{const r=n.value.trim();if(!t.normalize&&((o=t.protocol)==null?void 0:o.source)===wu.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Yu=T("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=pu()),we.init(e,t)}),Ku=T("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=uu),we.init(e,t)}),Ju=T("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=au),we.init(e,t)}),Xu=T("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=iu),we.init(e,t)}),Qu=T("$ZodULID",(e,t)=>{t.pattern??(t.pattern=lu),we.init(e,t)}),ed=T("$ZodXID",(e,t)=>{t.pattern??(t.pattern=su),we.init(e,t)}),td=T("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=cu),we.init(e,t)}),nd=T("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Cu(t)),we.init(e,t)}),od=T("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ku),we.init(e,t)}),rd=T("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=_u(t)),we.init(e,t)}),ad=T("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=du),we.init(e,t)}),id=T("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=gu),we.init(e,t),e._zod.bag.format="ipv4"}),ld=T("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=bu),we.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})}}}),sd=T("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=xu),we.init(e,t)}),cd=T("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=vu),we.init(e,t),e._zod.check=n=>{const o=n.value.split("/");try{if(o.length!==2)throw new Error;const[r,i]=o;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Yl(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const ud=T("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Su),we.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Yl(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function dd(e){if(!Hl.test(e))return!1;const t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Yl(n)}const hd=T("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Hl),we.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{dd(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),fd=T("$ZodE164",(e,t)=>{t.pattern??(t.pattern=$u),we.init(e,t)});function md(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[o]=n;if(!o)return!1;const r=JSON.parse(atob(o));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}const pd=T("$ZodJWT",(e,t)=>{we.init(e,t),e._zod.check=n=>{md(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Kl=T("$ZodNumber",(e,t)=>{pe.init(e,t),e._zod.pattern=e._zod.bag.pattern??Wl,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;const i=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...i?{received:i}:{}}),n}}),gd=T("$ZodNumberFormat",(e,t)=>{Eu.init(e,t),Kl.init(e,t)}),bd=T("$ZodBoolean",(e,t)=>{pe.init(e,t),e._zod.pattern=Iu,e._zod.parse=(n,o)=>{if(t.coerce)try{n.value=!!n.value}catch{}const r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),xd=T("$ZodAny",(e,t)=>{pe.init(e,t),e._zod.parse=n=>n}),vd=T("$ZodUnknown",(e,t)=>{pe.init(e,t),e._zod.parse=n=>n}),Sd=T("$ZodNever",(e,t)=>{pe.init(e,t),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Ka(e,t,n){e.issues.length&&t.issues.push(...yt(n,e.issues)),t.value[n]=e.value}const wd=T("$ZodArray",(e,t)=>{pe.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);const i=[];for(let a=0;a<r.length;a++){const l=r[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Ka(c,n,a))):Ka(s,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function uo(e,t,n,o,r,i){const a=n in o;if(e.issues.length){if(r&&i&&!a)return;t.issues.push(...yt(n,e.issues))}if(!a&&!r){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function Jl(e){var o,r,i,a;const t=Object.keys(e.shape);for(const l of t)if(!((a=(i=(r=(o=e.shape)==null?void 0:o[l])==null?void 0:r._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=zc(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Xl(e,t,n,o,r,i){const a=[],l=r.keySet,s=r.catchall._zod,c=s.def.type,u=s.optin==="optional",h=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(c==="never"){a.push(d);continue}const f=s.run({value:t[d],issues:[]},o);f instanceof Promise?e.push(f.then(p=>uo(p,n,d,t,u,h))):uo(f,n,d,t,u,h)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const $d=T("$ZodObject",(e,t)=>{pe.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=Co(()=>Jl(t));ce(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 h of u.values)s[c].add(h)}}return s});const r=An,i=t.catchall;let a;e._zod.parse=(l,s)=>{a??(a=o.value);const c=l.value;if(!r(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};const u=[],h=a.shape;for(const d of a.keys){const f=h[d],p=f._zod.optin==="optional",b=f._zod.optout==="optional",x=f._zod.run({value:c[d],issues:[]},s);x instanceof Promise?u.push(x.then(w=>uo(w,l,d,c,p,b))):uo(x,l,d,c,p,b)}return i?Xl(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),kd=T("$ZodObjectJIT",(e,t)=>{$d.init(e,t);const n=e._zod.parse,o=Co(()=>Jl(t)),r=d=>{var k,v;const f=new Gu(["shape","payload","ctx"]),p=o.value,b=_=>{const y=qa(_);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const _ of p.keys)x[_]=`key_${w++}`;f.write("const newResult = {};");for(const _ of p.keys){const y=x[_],C=qa(_),I=d[_],R=((k=I==null?void 0:I._zod)==null?void 0:k.optin)==="optional",E=((v=I==null?void 0:I._zod)==null?void 0:v.optout)==="optional";f.write(`const ${y} = ${b(_)};`),R&&E?f.write(`
|
|
1
|
+
"use strict";var Du=Object.defineProperty;var Fu=(e,t,n)=>t in e?Du(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var pe=(e,t,n)=>Fu(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),Hu=require("react-dom/server"),V=require("react");var Ii;function E(e,t,n){function r(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);const u=i.prototype,c=Object.keys(u);for(let h=0;h<c.length;h++){const d=c[h];d in l||(l[d]=u[d].bind(l))}}const o=(n==null?void 0:n.Parent)??Object;class a extends o{}Object.defineProperty(a,"name",{value:e});function i(l){var s;const u=n!=null&&n.Parent?new a:this;r(u,l),(s=u._zod).deferred??(s.deferred=[]);for(const c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>{var s,u;return n!=null&&n.Parent&&l instanceof n.Parent?!0:(u=(s=l==null?void 0:l._zod)==null?void 0:s.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class fn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class As extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Ii=globalThis).__zod_globalConfig??(Ii.__zod_globalConfig={});const Da=globalThis.__zod_globalConfig;function Tt(e){return Da}function ys(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Wo(e,t){return typeof t=="bigint"?t.toString():t}function qr(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Fa(e){return e==null}function Ha(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Gu(e,t){const n=e/t,r=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}const Ri=Symbol("evaluating");function se(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Ri)return r===void 0&&(r=Ri,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Yt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function jt(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Ti(e){return JSON.stringify(e)}function Uu(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Is="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Hn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Wu=qr(()=>{var e;if(Da.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 mn(e){if(Hn(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Hn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Rs(e){return mn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Zu=new Set(["string","number","symbol"]);function bn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Bt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function U(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 qu(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Vu={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 Yu(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=jt(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 Yt(this,"shape",i),i},checks:[]});return Bt(e,a)}function Ku(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=jt(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 Yt(this,"shape",i),i},checks:[]});return Bt(e,a)}function Ju(e,t){if(!mn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const a=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(a,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=jt(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return Yt(this,"shape",a),a}});return Bt(e,o)}function Xu(e,t){if(!mn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=jt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return Yt(this,"shape",r),r}});return Bt(e,n)}function Qu(e,t){var r;if((r=e._zod.def.checks)!=null&&r.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=jt(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t._zod.def.shape};return Yt(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Bt(e,n)}function ed(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=jt(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 Yt(this,"shape",s),s},checks:[]});return Bt(t,i)}function td(e,t,n){const r=jt(t._zod.def,{get shape(){const o=t._zod.def.shape,a={...o};if(n)for(const i in n){if(!(i in a))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(a[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)a[i]=new e({type:"nonoptional",innerType:o[i]});return Yt(this,"shape",a),a}});return Bt(t,r)}function un(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function nd(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)===!1)return!0;return!1}function Lt(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function ir(e){return typeof e=="string"?e:e==null?void 0:e.message}function Nt(e,t,n){var s,u,c,h,d,f;const r=e.message?e.message:ir((c=(u=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:u.error)==null?void 0:c.call(u,e))??ir((h=t==null?void 0:t.error)==null?void 0:h.call(t,e))??ir((d=n.customError)==null?void 0:d.call(n,e))??ir((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input",{inst:o,continue:a,input:i,...l}=e;return l.path??(l.path=[]),l.message=r,t!=null&&t.reportInput&&(l.input=i),l}function Ga(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Gn(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Ts=(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,Wo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ns=E("$ZodError",Ts),Es=E("$ZodError",Ts,{Parent:Error});function rd(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function od(e,t=n=>n.message){const n={_errors:[]},r=(o,a=[])=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(l=>r({issues:l},[...a,...i.path]));else if(i.code==="invalid_key")r({issues:i.issues},[...a,...i.path]);else if(i.code==="invalid_element")r({issues:i.issues},[...a,...i.path]);else{const l=[...a,...i.path];if(l.length===0)n._errors.push(t(i));else{let s=n,u=0;for(;u<l.length;){const c=l[u];u===l.length-1?(s[c]=s[c]||{_errors:[]},s[c]._errors.push(t(i))):s[c]=s[c]||{_errors:[]},s=s[c],u++}}}};return r(e),n}const Ua=e=>(t,n,r,o)=>{const a=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise)throw new fn;if(i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>Nt(s,a,Tt())));throw Is(l,o==null?void 0:o.callee),l}return i.value},Wa=e=>async(t,n,r,o)=>{const a=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},a);if(i instanceof Promise&&(i=await i),i.issues.length){const l=new((o==null?void 0:o.Err)??e)(i.issues.map(s=>Nt(s,a,Tt())));throw Is(l,o==null?void 0:o.callee),l}return i.value},Vr=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new fn;return a.issues.length?{success:!1,error:new(e??Ns)(a.issues.map(i=>Nt(i,o,Tt())))}:{success:!0,data:a.value}},ad=Vr(Es),Yr=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(i=>Nt(i,o,Tt())))}:{success:!0,data:a.value}},id=Yr(Es),ld=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return Ua(e)(t,n,o)},sd=e=>(t,n,r)=>Ua(e)(t,n,r),cd=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return Wa(e)(t,n,o)},ud=e=>async(t,n,r)=>Wa(e)(t,n,r),dd=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return Vr(e)(t,n,o)},hd=e=>(t,n,r)=>Vr(e)(t,n,r),fd=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return Yr(e)(t,n,o)},pd=e=>async(t,n,r)=>Yr(e)(t,n,r),gd=/^[cC][0-9a-z]{6,}$/,md=/^[0-9a-z]+$/,bd=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,xd=/^[0-9a-vA-V]{20}$/,vd=/^[A-Za-z0-9]{27}$/,kd=/^[a-zA-Z0-9_-]{21}$/,wd=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Sd=/^([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})$/,Ni=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)$/,$d=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_d="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Cd(){return new RegExp(_d,"u")}const Ad=/^(?:(?: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])$/,yd=/^(([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}|:))$/,Id=/^((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])$/,Rd=/^(([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])$/,Td=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ps=/^[A-Za-z0-9_-]*$/,Nd=/^https?$/,Ed=/^\+[1-9]\d{6,14}$/,Ms="(?:(?:\\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])))",Pd=new RegExp(`^${Ms}$`);function Os(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 Md(e){return new RegExp(`^${Os(e)}$`)}function Od(e){const t=Os({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Ms}T(?:${r})$`)}const Ld=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}$`)},zd=/^-?\d+$/,Ls=/^-?\d+(?:\.\d+)?$/,jd=/^(?:true|false)$/i,Bd=/^[^A-Z]*$/,Dd=/^[^a-z]*$/,qe=E("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),zs={number:"number",bigint:"bigint",object:"date"},js=E("$ZodCheckLessThan",(e,t)=>{qe.init(e,t);const n=zs[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Bs=E("$ZodCheckGreaterThan",(e,t)=>{qe.init(e,t);const n=zs[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Fd=E("$ZodCheckMultipleOf",(e,t)=>{qe.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Gu(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})}}),Hd=E("$ZodCheckNumberFormat",(e,t)=>{var i;qe.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),r=n?"int":"number",[o,a]=Vu[t.format];e._zod.onattach.push(l=>{const s=l._zod.bag;s.format=t.format,s.minimum=o,s.maximum=a,n&&(s.pattern=zd)}),e._zod.check=l=>{const s=l.value;if(n){if(!Number.isInteger(s)){l.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?l.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):l.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<o&&l.issues.push({origin:"number",input:s,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),s>a&&l.issues.push({origin:"number",input:s,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Gd=E("$ZodCheckMaxLength",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Fa(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=Ga(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ud=E("$ZodCheckMinLength",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Fa(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=Ga(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Wd=E("$ZodCheckLengthEquals",(e,t)=>{var n;qe.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Fa(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,a=o.length;if(a===t.length)return;const i=Ga(o),l=a>t.length;r.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Kr=E("$ZodCheckStringFormat",(e,t)=>{var n,r;qe.init(e,t),e._zod.onattach.push(o=>{const a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Zd=E("$ZodCheckRegex",(e,t)=>{Kr.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})}}),qd=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Bd),Kr.init(e,t)}),Vd=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Dd),Kr.init(e,t)}),Yd=E("$ZodCheckIncludes",(e,t)=>{qe.init(e,t);const n=bn(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Kd=E("$ZodCheckStartsWith",(e,t)=>{qe.init(e,t);const n=new RegExp(`^${bn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Jd=E("$ZodCheckEndsWith",(e,t)=>{qe.init(e,t);const n=new RegExp(`.*${bn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Xd=E("$ZodCheckOverwrite",(e,t)=>{qe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Qd{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
|
|
2
|
+
`).filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),a=r.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of a)this.content.push(i)}compile(){const t=Function,n=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(a=>` ${a}`)];return new t(...n,o.join(`
|
|
3
|
+
`))}}const eh={major:4,minor:4,patch:3},ge=E("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=eh;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const a of r)for(const i of a._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const a=(l,s,u)=>{let c=un(l),h;for(const d of s){if(d._zod.def.when){if(nd(l)||!d._zod.def.when(l))continue}else if(c)continue;const f=l.issues.length,p=d._zod.check(l);if(p instanceof Promise&&(u==null?void 0:u.async)===!1)throw new fn;if(h||p instanceof Promise)h=(h??Promise.resolve()).then(async()=>{await p,l.issues.length!==f&&(c||(c=un(l,f)))});else{if(l.issues.length===f)continue;c||(c=un(l,f))}}return h?h.then(()=>l):l},i=(l,s,u)=>{if(un(l))return l.aborted=!0,l;const c=a(s,r,u);if(c instanceof Promise){if(u.async===!1)throw new fn;return c.then(h=>e._zod.parse(h,u))}return e._zod.parse(c,u)};e._zod.run=(l,s)=>{if(s.skipChecks)return e._zod.parse(l,s);if(s.direction==="backward"){const c=e._zod.parse({value:l.value,issues:[]},{...s,skipChecks:!0});return c instanceof Promise?c.then(h=>i(h,l,s)):i(c,l,s)}const u=e._zod.parse(l,s);if(u instanceof Promise){if(s.async===!1)throw new fn;return u.then(c=>a(c,r,s))}return a(u,r,s)}}se(e,"~standard",()=>({validate:a=>{var i;try{const l=ad(e,a);return l.success?{value:l.data}:{issues:(i=l.error)==null?void 0:i.issues}}catch{return id(e,a).then(s=>{var u;return s.success?{value:s.data}:{issues:(u=s.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),Za=E("$ZodString",(e,t)=>{var n;ge.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Ld(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),we=E("$ZodStringFormat",(e,t)=>{Kr.init(e,t),Za.init(e,t)}),th=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Sd),we.init(e,t)}),nh=E("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ni(r))}else t.pattern??(t.pattern=Ni());we.init(e,t)}),rh=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=$d),we.init(e,t)}),oh=E("$ZodURL",(e,t)=>{we.init(e,t),e._zod.check=n=>{var r;try{const o=n.value.trim();if(!t.normalize&&((r=t.protocol)==null?void 0:r.source)===Nd.source&&!/^https?:\/\//i.test(o)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const a=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(a.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(a.protocol.endsWith(":")?a.protocol.slice(0,-1):a.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=a.href:n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),ah=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Cd()),we.init(e,t)}),ih=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=kd),we.init(e,t)}),lh=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=gd),we.init(e,t)}),sh=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=md),we.init(e,t)}),ch=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=bd),we.init(e,t)}),uh=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=xd),we.init(e,t)}),dh=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=vd),we.init(e,t)}),hh=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Od(t)),we.init(e,t)}),fh=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Pd),we.init(e,t)}),ph=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Md(t)),we.init(e,t)}),gh=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=wd),we.init(e,t)}),mh=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Ad),we.init(e,t),e._zod.bag.format="ipv4"}),bh=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=yd),we.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})}}}),xh=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Id),we.init(e,t)}),vh=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Rd),we.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,a]=r;if(!a)throw new Error;const i=Number(a);if(`${i}`!==a)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Ds(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const kh=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Td),we.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ds(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function wh(e){if(!Ps.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ds(n)}const Sh=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ps),we.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{wh(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),$h=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ed),we.init(e,t)});function _h(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const Ch=E("$ZodJWT",(e,t)=>{we.init(e,t),e._zod.check=n=>{_h(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Fs=E("$ZodNumber",(e,t)=>{ge.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ls,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const a=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...a?{received:a}:{}}),n}}),Ah=E("$ZodNumberFormat",(e,t)=>{Hd.init(e,t),Fs.init(e,t)}),yh=E("$ZodBoolean",(e,t)=>{ge.init(e,t),e._zod.pattern=jd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Ih=E("$ZodAny",(e,t)=>{ge.init(e,t),e._zod.parse=n=>n}),Rh=E("$ZodUnknown",(e,t)=>{ge.init(e,t),e._zod.parse=n=>n}),Th=E("$ZodNever",(e,t)=>{ge.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Ei(e,t,n){e.issues.length&&t.issues.push(...Lt(n,e.issues)),t.value[n]=e.value}const Nh=E("$ZodArray",(e,t)=>{ge.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const a=[];for(let i=0;i<o.length;i++){const l=o[i],s=t.element._zod.run({value:l,issues:[]},r);s instanceof Promise?a.push(s.then(u=>Ei(u,n,i))):Ei(s,n,i)}return a.length?Promise.all(a).then(()=>n):n}});function Tr(e,t,n,r,o,a){const i=n in r;if(e.issues.length){if(o&&a&&!i)return;t.issues.push(...Lt(n,e.issues))}if(!i&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?i&&(t.value[n]=void 0):t.value[n]=e.value}function Hs(e){var r,o,a,i;const t=Object.keys(e.shape);for(const l of t)if(!((i=(a=(o=(r=e.shape)==null?void 0:r[l])==null?void 0:o._zod)==null?void 0:a.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${l}": expected a Zod schema`);const n=qu(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Gs(e,t,n,r,o,a){const i=[],l=o.keySet,s=o.catchall._zod,u=s.def.type,c=s.optin==="optional",h=s.optout==="optional";for(const d in t){if(d==="__proto__"||l.has(d))continue;if(u==="never"){i.push(d);continue}const f=s.run({value:t[d],issues:[]},r);f instanceof Promise?e.push(f.then(p=>Tr(p,n,d,t,c,h))):Tr(f,n,d,t,c,h)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}const Eh=E("$ZodObject",(e,t)=>{ge.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const l=t.shape;Object.defineProperty(t,"shape",{get:()=>{const s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}const r=qr(()=>Hs(t));se(e._zod,"propValues",()=>{const l=t.shape,s={};for(const u in l){const c=l[u]._zod;if(c.values){s[u]??(s[u]=new Set);for(const h of c.values)s[u].add(h)}}return s});const o=Hn,a=t.catchall;let i;e._zod.parse=(l,s)=>{i??(i=r.value);const u=l.value;if(!o(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};const c=[],h=i.shape;for(const d of i.keys){const f=h[d],p=f._zod.optin==="optional",b=f._zod.optout==="optional",x=f._zod.run({value:u[d],issues:[]},s);x instanceof Promise?c.push(x.then(w=>Tr(w,l,d,u,p,b))):Tr(x,l,d,u,p,b)}return a?Gs(c,u,l,s,r.value,e):c.length?Promise.all(c).then(()=>l):l}}),Ph=E("$ZodObjectJIT",(e,t)=>{Eh.init(e,t);const n=e._zod.parse,r=qr(()=>Hs(t)),o=d=>{var S,v;const f=new Qd(["shape","payload","ctx"]),p=r.value,b=_=>{const y=Ti(_);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};f.write("const input = payload.value;");const x=Object.create(null);let w=0;for(const _ of p.keys)x[_]=`key_${w++}`;f.write("const newResult = {};");for(const _ of p.keys){const y=x[_],C=Ti(_),I=d[_],R=((S=I==null?void 0:I._zod)==null?void 0:S.optin)==="optional",N=((v=I==null?void 0:I._zod)==null?void 0:v.optout)==="optional";f.write(`const ${y} = ${b(_)};`),R&&N?f.write(`
|
|
4
4
|
if (${y}.issues.length) {
|
|
5
5
|
if (${C} in input) {
|
|
6
6
|
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
@@ -59,42 +59,42 @@
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
`)}f.write("payload.value = newResult;"),f.write("return payload;");const S=f.compile();return(_,y)=>S(d,_,y)};let i;const a=An,l=!da.jitless,c=l&&Oc.value,u=t.catchall;let h;e._zod.parse=(d,f)=>{h??(h=o.value);const p=d.value;return a(p)?l&&c&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(i||(i=r(t.shape)),d=i(d,f),u?Xl([],p,d,f,h,e):d):n(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function Ja(e,t,n,o){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const r=e.filter(i=>!Kt(i));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>$t(a,o,wt())))}),t)}const Ql=T("$ZodUnion",(e,t)=>{pe.init(e,t),ce(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ce(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ce(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ce(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${o.map(r=>fa(r.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,r)=>{if(n)return n(o,r);let i=!1;const a=[];for(const l of t.options){const s=l._zod.run({value:o.value,issues:[]},r);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>Ja(l,o,e,r)):Ja(a,o,e,r)}}),_d=T("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ql.init(e,t);const n=e._zod.parse;ce(e._zod,"propValues",()=>{const r={};for(const i of t.options){const a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[l,s]of Object.entries(a)){r[l]||(r[l]=new Set);for(const c of s)r[l].add(c)}}return r});const o=Co(()=>{var a;const r=t.options,i=new Map;for(const l of r){const s=(a=l._zod.propValues)==null?void 0:a[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const c of s){if(i.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);i.set(c,l)}}return i});e._zod.parse=(r,i)=>{const a=r.value;if(!An(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;const l=o.value.get(a==null?void 0:a[t.discriminator]);return l?l._zod.run(r,i):t.unionFallback||i.direction==="backward"?n(r,i):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),Cd=T("$ZodIntersection",(e,t)=>{pe.init(e,t),e._zod.parse=(n,o)=>{const r=n.value,i=t.left._zod.run({value:r,issues:[]},o),a=t.right._zod.run({value:r,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Xa(n,s,c)):Xa(n,i,a)}});function wr(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(nn(e)&&nn(t)){const n=Object.keys(t),o=Object.keys(e).filter(i=>n.indexOf(i)!==-1),r={...e,...t};for(const i of o){const a=wr(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r[i]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let o=0;o<e.length;o++){const r=e[o],i=t[o],a=wr(r,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Xa(e,t,n){const o=new Map;let r;for(const l of t.issues)if(l.code==="unrecognized_keys"){r??(r=l);for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);const i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&r&&e.issues.push({...r,keys:i}),Kt(e))return e;const a=wr(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const Ad=T("$ZodTuple",(e,t)=>{pe.init(e,t);const n=t.items;e._zod.parse=(o,r)=>{const i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];const a=[],l=Qa(n,"optin"),s=Qa(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 h=n[u]._zod.run({value:i[u],issues:[]},r);h instanceof Promise?a.push(h.then(d=>{c[u]=d})):c[u]=h}if(t.rest){let u=n.length-1;const h=i.slice(n.length);for(const d of h){u++;const f=t.rest._zod.run({value:d,issues:[]},r);f instanceof Promise?a.push(f.then(p=>ei(p,o,u))):ei(f,o,u)}}return a.length?Promise.all(a).then(()=>ti(c,o,n,i,s)):ti(c,o,n,i,s)}});function Qa(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function ei(e,t,n){e.issues.length&&t.issues.push(...yt(n,e.issues)),t.value[n]=e.value}function ti(e,t,n,o,r){for(let i=0;i<n.length;i++){const a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=r){t.value.length=i;break}t.issues.push(...yt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}const yd=T("$ZodRecord",(e,t)=>{pe.init(e,t),e._zod.parse=(n,o)=>{const r=n.value;if(!nn(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;const i=[],a=t.keyType._zod.values;if(a){n.value={};const l=new Set;for(const c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);const u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(f=>$t(f,o,wt())),input:c,path:[c],inst:e});continue}const h=u.value,d=t.valueType._zod.run({value:r[c],issues:[]},o);d instanceof Promise?i.push(d.then(f=>{f.issues.length&&n.issues.push(...yt(c,f.issues)),n.value[h]=f.value})):(d.issues.length&&n.issues.push(...yt(c,d.issues)),n.value[h]=d.value)}let s;for(const c in r)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(r)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Wl.test(l)&&s.issues.length){const h=t.keyType._zod.run({value:Number(l),issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(s=h)}if(s.issues.length){t.mode==="loose"?n.value[l]=r[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(h=>$t(h,o,wt())),input:l,path:[l],inst:e});continue}const u=t.valueType._zod.run({value:r[l],issues:[]},o);u instanceof Promise?i.push(u.then(h=>{h.issues.length&&n.issues.push(...yt(l,h.issues)),n.value[s.value]=h.value})):(u.issues.length&&n.issues.push(...yt(l,u.issues)),n.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),Id=T("$ZodEnum",(e,t)=>{pe.init(e,t);const n=Ll(t.entries),o=new Set(n);e._zod.values=o,e._zod.pattern=new RegExp(`^(${n.filter(r=>Lc.has(typeof r)).map(r=>typeof r=="string"?on(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const a=r.value;return o.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),Rd=T("$ZodLiteral",(e,t)=>{if(pe.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"?on(o):o?on(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,r)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),Nd=T("$ZodTransform",(e,t)=>{pe.init(e,t),e._zod.optin="optional",e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ol(e.constructor.name);const r=t.transform(n.value,n);if(o.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n.fallback=!0,n));if(r instanceof Promise)throw new Qt;return n.value=r,n.fallback=!0,n}});function ni(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const es=T("$ZodOptional",(e,t)=>{pe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ce(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ce(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${fa(n.source)})?$`):void 0}),e._zod.parse=(n,o)=>{if(t.innerType._zod.optin==="optional"){const r=n.value,i=t.innerType._zod.run(n,o);return i instanceof Promise?i.then(a=>ni(a,r)):ni(i,r)}return n.value===void 0?n:t.innerType._zod.run(n,o)}}),Td=T("$ZodExactOptional",(e,t)=>{es.init(e,t),ce(e._zod,"values",()=>t.innerType._zod.values),ce(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,o)=>t.innerType._zod.run(n,o)}),Ed=T("$ZodNullable",(e,t)=>{pe.init(e,t),ce(e._zod,"optin",()=>t.innerType._zod.optin),ce(e._zod,"optout",()=>t.innerType._zod.optout),ce(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${fa(n.source)}|null)$`):void 0}),ce(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)}),Md=T("$ZodDefault",(e,t)=>{pe.init(e,t),e._zod.optin="optional",ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);if(n.value===void 0)return n.value=t.defaultValue,n;const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>oi(i,t)):oi(r,t)}});function oi(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Pd=T("$ZodPrefault",(e,t)=>{pe.init(e,t),e._zod.optin="optional",ce(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))}),Od=T("$ZodNonOptional",(e,t)=>{pe.init(e,t),ce(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,o)=>{const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>ri(i,e)):ri(r,e)}});function ri(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 Ld=T("$ZodCatch",(e,t)=>{pe.init(e,t),e._zod.optin="optional",ce(e._zod,"optout",()=>t.innerType._zod.optout),ce(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>$t(a,o,wt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(i=>$t(i,o,wt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),ts=T("$ZodPipe",(e,t)=>{pe.init(e,t),ce(e._zod,"values",()=>t.in._zod.values),ce(e._zod,"optin",()=>t.in._zod.optin),ce(e._zod,"optout",()=>t.out._zod.optout),ce(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,o)=>{if(o.direction==="backward"){const i=t.out._zod.run(n,o);return i instanceof Promise?i.then(a=>Hn(a,t.in,o)):Hn(i,t.in,o)}const r=t.in._zod.run(n,o);return r instanceof Promise?r.then(i=>Hn(i,t.out,o)):Hn(r,t.out,o)}});function Hn(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 zd=T("$ZodPreprocess",(e,t)=>{ts.init(e,t)}),jd=T("$ZodReadonly",(e,t)=>{pe.init(e,t),ce(e._zod,"propValues",()=>t.innerType._zod.propValues),ce(e._zod,"values",()=>t.innerType._zod.values),ce(e._zod,"optin",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optin}),ce(e._zod,"optout",()=>{var n,o;return(o=(n=t.innerType)==null?void 0:n._zod)==null?void 0:o.optout}),e._zod.parse=(n,o)=>{if(o.direction==="backward")return t.innerType._zod.run(n,o);const r=t.innerType._zod.run(n,o);return r instanceof Promise?r.then(ai):ai(r)}});function ai(e){return e.value=Object.freeze(e.value),e}const Bd=T("$ZodLazy",(e,t)=>{pe.init(e,t),ce(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),ce(e._zod,"pattern",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.pattern}),ce(e._zod,"propValues",()=>{var n,o;return(o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.propValues}),ce(e._zod,"optin",()=>{var n,o;return((o=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:o.optin)??void 0}),ce(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)}),Dd=T("$ZodCustom",(e,t)=>{Ue.init(e,t),pe.init(e,t),e._zod.parse=(n,o)=>n,e._zod.check=n=>{const o=n.value,r=t.fn(o);if(r instanceof Promise)return r.then(i=>ii(i,n,o,e));ii(r,n,o,e)}});function ii(e,t,n,o){if(!e){const r={code:"custom",input:n,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(r.params=o._zod.def.params),t.issues.push(yn(r))}}var li;class Fd{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const o=n[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const o={...this.get(n)??{}};delete o.id;const r={...o,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Hd(){return new Fd}(li=globalThis).__zod_globalRegistry??(li.__zod_globalRegistry=Hd());const $n=globalThis.__zod_globalRegistry;function Gd(e,t){return new e({type:"string",...U(t)})}function Ud(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...U(t)})}function si(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...U(t)})}function Wd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...U(t)})}function Zd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...U(t)})}function Vd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...U(t)})}function qd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...U(t)})}function Yd(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...U(t)})}function Kd(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...U(t)})}function Jd(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...U(t)})}function Xd(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...U(t)})}function Qd(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...U(t)})}function eh(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...U(t)})}function th(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...U(t)})}function nh(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...U(t)})}function oh(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...U(t)})}function rh(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...U(t)})}function ah(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...U(t)})}function ih(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...U(t)})}function lh(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...U(t)})}function sh(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...U(t)})}function ch(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...U(t)})}function uh(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...U(t)})}function dh(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...U(t)})}function hh(e,t){return new e({type:"string",format:"date",check:"string_format",...U(t)})}function fh(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...U(t)})}function mh(e,t){return new e({type:"string",format:"duration",check:"string_format",...U(t)})}function ph(e,t){return new e({type:"number",checks:[],...U(t)})}function gh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...U(t)})}function bh(e,t){return new e({type:"boolean",...U(t)})}function xh(e){return new e({type:"any"})}function vh(e){return new e({type:"unknown"})}function Sh(e,t){return new e({type:"never",...U(t)})}function ci(e,t){return new Vl({check:"less_than",...U(t),value:e,inclusive:!1})}function Oo(e,t){return new Vl({check:"less_than",...U(t),value:e,inclusive:!0})}function ui(e,t){return new ql({check:"greater_than",...U(t),value:e,inclusive:!1})}function Lo(e,t){return new ql({check:"greater_than",...U(t),value:e,inclusive:!0})}function di(e,t){return new Tu({check:"multiple_of",...U(t),value:e})}function ns(e,t){return new Mu({check:"max_length",...U(t),maximum:e})}function ho(e,t){return new Pu({check:"min_length",...U(t),minimum:e})}function os(e,t){return new Ou({check:"length_equals",...U(t),length:e})}function wh(e,t){return new Lu({check:"string_format",format:"regex",...U(t),pattern:e})}function $h(e){return new zu({check:"string_format",format:"lowercase",...U(e)})}function kh(e){return new ju({check:"string_format",format:"uppercase",...U(e)})}function _h(e,t){return new Bu({check:"string_format",format:"includes",...U(t),includes:e})}function Ch(e,t){return new Du({check:"string_format",format:"starts_with",...U(t),prefix:e})}function Ah(e,t){return new Fu({check:"string_format",format:"ends_with",...U(t),suffix:e})}function sn(e){return new Hu({check:"overwrite",tx:e})}function yh(e){return sn(t=>t.normalize(e))}function Ih(){return sn(e=>e.trim())}function Rh(){return sn(e=>e.toLowerCase())}function Nh(){return sn(e=>e.toUpperCase())}function Th(){return sn(e=>Pc(e))}function Eh(e,t,n){return new e({type:"array",element:t,...U(n)})}function Mh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...U(n)})}function Ph(e,t){const n=Oh(o=>(o.addIssue=r=>{if(typeof r=="string")o.issues.push(yn(r,o.value,n._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),o.issues.push(yn(i))}},e(o.value,o)),t);return n}function Oh(e,t){const n=new Ue({check:"custom",...U(t)});return n._zod.check=e,n}function rs(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)??$n,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 $e(e,t,n={path:[],schemaPath:[]}){var u,h;var o;const r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const l=(h=(u=e._zod).toJSONSchema)==null?void 0:h.call(u);if(l)a.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{const p=a.schema,b=t.processors[r.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);b(e,t,p,d)}const f=e._zod.parent;f&&(a.ref||(a.ref=f),$e(f,t,d),t.seen.get(f).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&Be(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function as(e,t){var a,l,s,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=new Map;for(const u of e.seen.entries()){const h=(a=e.metadataRegistry.get(u[0]))==null?void 0:a.id;if(h){const d=o.get(h);if(d&&d!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(h,u[0])}}const r=u=>{var b;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(u[0]))==null?void 0:b.id,w=e.external.uri??(k=>k);if(x)return{ref:w(x)};const S=u[1].defId??u[1].schema.id??`schema${e.counter++}`;return u[1].defId=S,{defId:S,ref:`${w("__shared")}#/${h}/${S}`}}if(u[1]===n)return{ref:"#"};const f=`#/${h}/`,p=u[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},i=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:d,defId:f}=r(u);h.def={...h.schema},f&&(h.defId=f);const p=h.schema;for(const b in p)delete p[b];p.$ref=d};if(e.cycles==="throw")for(const u of e.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.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 h=u[1];if(t===u[0]){i(u);continue}if(e.external){const f=(s=e.external.registry.get(u[0]))==null?void 0:s.id;if(t!==u[0]&&f){i(u);continue}}if((c=e.metadataRegistry.get(u[0]))==null?void 0:c.id){i(u);continue}if(h.cycle){i(u);continue}if(h.count>1&&e.reused==="ref"){i(u);continue}}}function is(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=h=>{const d=e.seen.get(h);if(d.ref===null)return;const f=d.def??d.schema,p={...f},b=d.ref;if(d.ref=null,b){o(b);const w=e.seen.get(b),S=w.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(S)):Object.assign(f,S),Object.assign(f,p),h._zod.parent===b)for(const v in f)v==="$ref"||v==="allOf"||v in p||delete f[v];if(S.$ref&&w.def)for(const v in f)v==="$ref"||v==="allOf"||v in w.def&&JSON.stringify(f[v])===JSON.stringify(w.def[v])&&delete f[v]}const x=h._zod.parent;if(x&&x!==b){o(x);const w=e.seen.get(x);if(w!=null&&w.schema.$ref&&(f.$ref=w.schema.$ref,w.def))for(const S in f)S==="$ref"||S==="allOf"||S in w.def&&JSON.stringify(f[S])===JSON.stringify(w.def[S])&&delete f[S]}e.override({zodSchema:h,jsonSchema:f,path:d.path??[]})};for(const h of[...e.seen.entries()].reverse())o(h[0]);const r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(s=e.external.registry.get(t))==null?void 0:s.id;if(!h)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(h)}Object.assign(r,n.def??n.schema);const i=(c=e.metadataRegistry.get(t))==null?void 0:c.id;i!==void 0&&r.id===i&&delete r.id;const a=((u=e.external)==null?void 0:u.defs)??{};for(const h of e.seen.entries()){const d=h[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,a[d.defId]=d.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{const h=JSON.parse(JSON.stringify(r));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:fo(t,"input",e.processors),output:fo(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function Be(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 Be(o.element,n);if(o.type==="set")return Be(o.valueType,n);if(o.type==="lazy")return Be(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 Be(o.innerType,n);if(o.type==="intersection")return Be(o.left,n)||Be(o.right,n);if(o.type==="record"||o.type==="map")return Be(o.keyType,n)||Be(o.valueType,n);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Be(o.in,n)||Be(o.out,n);if(o.type==="object"){for(const r in o.shape)if(Be(o.shape[r],n))return!0;return!1}if(o.type==="union"){for(const r of o.options)if(Be(r,n))return!0;return!1}if(o.type==="tuple"){for(const r of o.items)if(Be(r,n))return!0;return!!(o.rest&&Be(o.rest,n))}return!1}const Lh=(e,t={})=>n=>{const o=rs({...n,processors:t});return $e(e,o),as(o,e),is(o,e)},fo=(e,t,n={})=>o=>{const{libraryOptions:r,target:i}=o??{},a=rs({...r??{},target:i,io:t,processors:n});return $e(e,a),as(a,e),is(a,e)},zh={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},jh=(e,t,n,o)=>{const r=n;r.type="string";const{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(r.minLength=i),typeof a=="number"&&(r.maxLength=a),l&&(r.format=zh[l]??l,r.format===""&&delete r.format,l==="time"&&delete r.format),c&&(r.contentEncoding=c),s&&s.size>0){const u=[...s];u.length===1?r.pattern=u[0].source:u.length>1&&(r.allOf=[...u.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},Bh=(e,t,n,o)=>{const r=n,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number";const h=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),d=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";h?f?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:typeof i=="number"&&(r.minimum=i),d?f?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c:typeof a=="number"&&(r.maximum=a),typeof s=="number"&&(r.multipleOf=s)},Dh=(e,t,n,o)=>{n.type="boolean"},Fh=(e,t,n,o)=>{n.not={}},Hh=(e,t,n,o)=>{},Gh=(e,t,n,o)=>{},Uh=(e,t,n,o)=>{const r=e._zod.def,i=Ll(r.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},Wh=(e,t,n,o)=>{const r=e._zod.def,i=[];for(const a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){const a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},Zh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Vh=(e,t,n,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},qh=(e,t,n,o)=>{const r=n,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=$e(i.element,t,{...o,path:[...o.path,"items"]})},Yh=(e,t,n,o)=>{var c;const r=n,i=e._zod.def;r.type="object",r.properties={};const a=i.shape;for(const u in a)r.properties[u]=$e(a[u],t,{...o,path:[...o.path,"properties",u]});const l=new Set(Object.keys(a)),s=new Set([...l].filter(u=>{const h=i.shape[u]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));s.size>0&&(r.required=Array.from(s)),((c=i.catchall)==null?void 0:c._zod.def.type)==="never"?r.additionalProperties=!1:i.catchall?i.catchall&&(r.additionalProperties=$e(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Kh=(e,t,n,o)=>{const r=e._zod.def,i=r.inclusive===!1,a=r.options.map((l,s)=>$e(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?n.oneOf=a:n.anyOf=a},Jh=(e,t,n,o)=>{const r=e._zod.def,i=$e(r.left,t,{...o,path:[...o.path,"allOf",0]}),a=$e(r.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];n.allOf=s},Xh=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="array";const a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((d,f)=>$e(d,t,{...o,path:[...o.path,a,f]})),c=i.rest?$e(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:s},c&&r.items.anyOf.push(c),r.minItems=s.length,c||(r.maxItems=s.length)):(r.items=s,c&&(r.additionalItems=c));const{minimum:u,maximum:h}=e._zod.bag;typeof u=="number"&&(r.minItems=u),typeof h=="number"&&(r.maxItems=h)},Qh=(e,t,n,o)=>{const r=n,i=e._zod.def;r.type="object";const a=i.keyType,l=a._zod.bag,s=l==null?void 0:l.patterns;if(i.mode==="loose"&&s&&s.size>0){const u=$e(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});r.patternProperties={};for(const h of s)r.patternProperties[h.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=$e(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),r.additionalProperties=$e(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});const c=a._zod.values;if(c){const u=[...c].filter(h=>typeof h=="string"||typeof h=="number");u.length>0&&(r.required=u)}},ef=(e,t,n,o)=>{const r=e._zod.def,i=$e(r.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},tf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},nf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},of=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},rf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},af=(e,t,n,o)=>{const r=e._zod.def,i=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?r.out:r.in:r.out;$e(a,t,o);const l=t.seen.get(e);l.ref=a},lf=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType,n.readOnly=!0},ls=(e,t,n,o)=>{const r=e._zod.def;$e(r.innerType,t,o);const i=t.seen.get(e);i.ref=r.innerType},sf=(e,t,n,o)=>{const r=e._zod.innerType;$e(r,t,o);const i=t.seen.get(e);i.ref=r},cf=T("ZodISODateTime",(e,t)=>{nd.init(e,t),ke.init(e,t)});function uf(e){return dh(cf,e)}const df=T("ZodISODate",(e,t)=>{od.init(e,t),ke.init(e,t)});function hf(e){return hh(df,e)}const ff=T("ZodISOTime",(e,t)=>{rd.init(e,t),ke.init(e,t)});function mf(e){return fh(ff,e)}const pf=T("ZodISODuration",(e,t)=>{ad.init(e,t),ke.init(e,t)});function gf(e){return mh(pf,e)}const bf=(e,t)=>{Dl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>qc(e,n)},flatten:{value:n=>Vc(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Sr,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Sr,2)}},isEmpty:{get(){return e.issues.length===0}}})},Ke=T("ZodError",bf,{Parent:Error}),xf=pa(Ke),vf=ga(Ke),Sf=Ao(Ke),wf=yo(Ke),$f=Jc(Ke),kf=Xc(Ke),_f=Qc(Ke),Cf=eu(Ke),Af=tu(Ke),yf=nu(Ke),If=ou(Ke),Rf=ru(Ke),hi=new WeakMap;function Pn(e,t,n){const o=Object.getPrototypeOf(e);let r=hi.get(o);if(r||(r=new Set,hi.set(o,r)),!r.has(t)){r.add(t);for(const i in n){const a=n[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){const l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const ge=T("ZodType",(e,t)=>(pe.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:fo(e,"input"),output:fo(e,"output")}}),e.toJSONSchema=Lh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,o)=>xf(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>Sf(e,n,o),e.parseAsync=async(n,o)=>vf(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>wf(e,n,o),e.spa=e.safeParseAsync,e.encode=(n,o)=>$f(e,n,o),e.decode=(n,o)=>kf(e,n,o),e.encodeAsync=async(n,o)=>_f(e,n,o),e.decodeAsync=async(n,o)=>Cf(e,n,o),e.safeEncode=(n,o)=>Af(e,n,o),e.safeDecode=(n,o)=>yf(e,n,o),e.safeEncodeAsync=async(n,o)=>If(e,n,o),e.safeDecodeAsync=async(n,o)=>Rf(e,n,o),Pn(e,"ZodType",{check(...n){const o=this.def;return this.clone(Rt(o,{checks:[...o.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,o){return Nt(this,n,o)},brand(){return this},register(n,o){return n.add(this,o),this},refine(n,o){return this.check(Cm(n,o))},superRefine(n,o){return this.check(Am(n,o))},overwrite(n){return this.check(sn(n))},optional(){return bi(this)},exactOptional(){return um(this)},nullable(){return xi(this)},nullish(){return bi(xi(this))},nonoptional(n){return gm(this,n)},array(){return ne(this)},or(n){return G([this,n])},and(n){return am(this,n)},transform(n){return vi(this,hs(n))},default(n){return fm(this,n)},prefault(n){return pm(this,n)},catch(n){return xm(this,n)},pipe(n){return vi(this,n)},readonly(){return wm(this)},describe(n){const o=this.clone();return $n.add(o,{description:n}),o},meta(...n){if(n.length===0)return $n.get(this);const o=this.clone();return $n.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=$n.get(e))==null?void 0:n.description},configurable:!0}),e)),ss=T("_ZodString",(e,t)=>{ba.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,r,i)=>jh(e,o,r);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Pn(e,"_ZodString",{regex(...o){return this.check(wh(...o))},includes(...o){return this.check(_h(...o))},startsWith(...o){return this.check(Ch(...o))},endsWith(...o){return this.check(Ah(...o))},min(...o){return this.check(ho(...o))},max(...o){return this.check(ns(...o))},length(...o){return this.check(os(...o))},nonempty(...o){return this.check(ho(1,...o))},lowercase(o){return this.check($h(o))},uppercase(o){return this.check(kh(o))},trim(){return this.check(Ih())},normalize(...o){return this.check(yh(...o))},toLowerCase(){return this.check(Rh())},toUpperCase(){return this.check(Nh())},slugify(){return this.check(Th())}})}),Nf=T("ZodString",(e,t)=>{ba.init(e,t),ss.init(e,t),e.email=n=>e.check(Ud(Tf,n)),e.url=n=>e.check(Yd(Ef,n)),e.jwt=n=>e.check(uh(Vf,n)),e.emoji=n=>e.check(Kd(Mf,n)),e.guid=n=>e.check(si(fi,n)),e.uuid=n=>e.check(Wd(Gn,n)),e.uuidv4=n=>e.check(Zd(Gn,n)),e.uuidv6=n=>e.check(Vd(Gn,n)),e.uuidv7=n=>e.check(qd(Gn,n)),e.nanoid=n=>e.check(Jd(Pf,n)),e.guid=n=>e.check(si(fi,n)),e.cuid=n=>e.check(Xd(Of,n)),e.cuid2=n=>e.check(Qd(Lf,n)),e.ulid=n=>e.check(eh(zf,n)),e.base64=n=>e.check(lh(Uf,n)),e.base64url=n=>e.check(sh(Wf,n)),e.xid=n=>e.check(th(jf,n)),e.ksuid=n=>e.check(nh(Bf,n)),e.ipv4=n=>e.check(oh(Df,n)),e.ipv6=n=>e.check(rh(Ff,n)),e.cidrv4=n=>e.check(ah(Hf,n)),e.cidrv6=n=>e.check(ih(Gf,n)),e.e164=n=>e.check(ch(Zf,n)),e.datetime=n=>e.check(uf(n)),e.date=n=>e.check(hf(n)),e.time=n=>e.check(mf(n)),e.duration=n=>e.check(gf(n))});function $(e){return Gd(Nf,e)}const ke=T("ZodStringFormat",(e,t)=>{we.init(e,t),ss.init(e,t)}),Tf=T("ZodEmail",(e,t)=>{Vu.init(e,t),ke.init(e,t)}),fi=T("ZodGUID",(e,t)=>{Wu.init(e,t),ke.init(e,t)}),Gn=T("ZodUUID",(e,t)=>{Zu.init(e,t),ke.init(e,t)}),Ef=T("ZodURL",(e,t)=>{qu.init(e,t),ke.init(e,t)}),Mf=T("ZodEmoji",(e,t)=>{Yu.init(e,t),ke.init(e,t)}),Pf=T("ZodNanoID",(e,t)=>{Ku.init(e,t),ke.init(e,t)}),Of=T("ZodCUID",(e,t)=>{Ju.init(e,t),ke.init(e,t)}),Lf=T("ZodCUID2",(e,t)=>{Xu.init(e,t),ke.init(e,t)}),zf=T("ZodULID",(e,t)=>{Qu.init(e,t),ke.init(e,t)}),jf=T("ZodXID",(e,t)=>{ed.init(e,t),ke.init(e,t)}),Bf=T("ZodKSUID",(e,t)=>{td.init(e,t),ke.init(e,t)}),Df=T("ZodIPv4",(e,t)=>{id.init(e,t),ke.init(e,t)}),Ff=T("ZodIPv6",(e,t)=>{ld.init(e,t),ke.init(e,t)}),Hf=T("ZodCIDRv4",(e,t)=>{sd.init(e,t),ke.init(e,t)}),Gf=T("ZodCIDRv6",(e,t)=>{cd.init(e,t),ke.init(e,t)}),Uf=T("ZodBase64",(e,t)=>{ud.init(e,t),ke.init(e,t)}),Wf=T("ZodBase64URL",(e,t)=>{hd.init(e,t),ke.init(e,t)}),Zf=T("ZodE164",(e,t)=>{fd.init(e,t),ke.init(e,t)}),Vf=T("ZodJWT",(e,t)=>{pd.init(e,t),ke.init(e,t)}),cs=T("ZodNumber",(e,t)=>{Kl.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Bh(e,o,r),Pn(e,"ZodNumber",{gt(o,r){return this.check(ui(o,r))},gte(o,r){return this.check(Lo(o,r))},min(o,r){return this.check(Lo(o,r))},lt(o,r){return this.check(ci(o,r))},lte(o,r){return this.check(Oo(o,r))},max(o,r){return this.check(Oo(o,r))},int(o){return this.check(mi(o))},safe(o){return this.check(mi(o))},positive(o){return this.check(ui(0,o))},nonnegative(o){return this.check(Lo(0,o))},negative(o){return this.check(ci(0,o))},nonpositive(o){return this.check(Oo(0,o))},multipleOf(o,r){return this.check(di(o,r))},step(o,r){return this.check(di(o,r))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function m(e){return ph(cs,e)}const qf=T("ZodNumberFormat",(e,t)=>{gd.init(e,t),cs.init(e,t)});function mi(e){return gh(qf,e)}const Yf=T("ZodBoolean",(e,t)=>{bd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Dh(e,n,o)});function L(e){return bh(Yf,e)}const Kf=T("ZodAny",(e,t)=>{xd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Hh()});function In(){return xh(Kf)}const Jf=T("ZodUnknown",(e,t)=>{vd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Gh()});function pi(){return vh(Jf)}const Xf=T("ZodNever",(e,t)=>{Sd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Fh(e,n,o)});function Qf(e){return Sh(Xf,e)}const em=T("ZodArray",(e,t)=>{wd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>qh(e,n,o,r),e.element=t.element,Pn(e,"ZodArray",{min(n,o){return this.check(ho(n,o))},nonempty(n){return this.check(ho(1,n))},max(n,o){return this.check(ns(n,o))},length(n,o){return this.check(os(n,o))},unwrap(){return this.element}})});function ne(e,t){return Eh(em,e,t)}const tm=T("ZodObject",(e,t)=>{kd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Yh(e,n,o,r),ce(e,"shape",()=>t.shape),Pn(e,"ZodObject",{keyof(){return N(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:pi()})},loose(){return this.clone({...this._zod.def,catchall:pi()})},strict(){return this.clone({...this._zod.def,catchall:Qf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Fc(this,n)},safeExtend(n){return Hc(this,n)},merge(n){return Gc(this,n)},pick(n){return Bc(this,n)},omit(n){return Dc(this,n)},partial(...n){return Uc(fs,this,n[0])},required(...n){return Wc(ms,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...U(t)};return new tm(n)}const us=T("ZodUnion",(e,t)=>{Ql.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Kh(e,n,o,r),e.options=t.options});function G(e,t){return new us({type:"union",options:e,...U(t)})}const nm=T("ZodDiscriminatedUnion",(e,t)=>{us.init(e,t),_d.init(e,t)});function om(e,t,n){return new nm({type:"union",options:t,discriminator:e,...U(n)})}const rm=T("ZodIntersection",(e,t)=>{Cd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Jh(e,n,o,r)});function am(e,t){return new rm({type:"intersection",left:e,right:t})}const im=T("ZodTuple",(e,t)=>{Ad.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Xh(e,n,o,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function ds(e,t,n){const o=t instanceof pe,r=o?n:t,i=o?t:null;return new im({type:"tuple",items:e,rest:i,...U(r)})}const gi=T("ZodRecord",(e,t)=>{yd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Qh(e,n,o,r),e.keyType=t.keyType,e.valueType=t.valueType});function rn(e,t,n){return!t||!t._zod?new gi({type:"record",keyType:$(),valueType:e,...U(t)}):new gi({type:"record",keyType:e,valueType:t,...U(n)})}const $r=T("ZodEnum",(e,t)=>{Id.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(o,r,i)=>Uh(e,o,r),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(o,r)=>{const i={};for(const a of o)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new $r({...t,checks:[],...U(r),entries:i})},e.exclude=(o,r)=>{const i={...t.entries};for(const a of o)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new $r({...t,checks:[],...U(r),entries:i})}});function N(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new $r({type:"enum",entries:n,...U(t)})}const lm=T("ZodLiteral",(e,t)=>{Rd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Wh(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 se(e,t){return new lm({type:"literal",values:Array.isArray(e)?e:[e],...U(t)})}const sm=T("ZodTransform",(e,t)=>{Nd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Vh(e,n),e._zod.parse=(n,o)=>{if(o.direction==="backward")throw new Ol(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(yn(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(yn(a))}};const r=t.transform(n.value,n);return r instanceof Promise?r.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});function hs(e){return new sm({type:"transform",transform:e})}const fs=T("ZodOptional",(e,t)=>{es.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ls(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function bi(e){return new fs({type:"optional",innerType:e})}const cm=T("ZodExactOptional",(e,t)=>{Td.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ls(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function um(e){return new cm({type:"optional",innerType:e})}const dm=T("ZodNullable",(e,t)=>{Ed.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>ef(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function xi(e){return new dm({type:"nullable",innerType:e})}const hm=T("ZodDefault",(e,t)=>{Md.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>nf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function fm(e,t){return new hm({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():jl(t)}})}const mm=T("ZodPrefault",(e,t)=>{Pd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>of(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function pm(e,t){return new mm({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():jl(t)}})}const ms=T("ZodNonOptional",(e,t)=>{Od.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>tf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function gm(e,t){return new ms({type:"nonoptional",innerType:e,...U(t)})}const bm=T("ZodCatch",(e,t)=>{Ld.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>rf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function xm(e,t){return new bm({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const ps=T("ZodPipe",(e,t)=>{ts.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>af(e,n,o,r),e.in=t.in,e.out=t.out});function vi(e,t){return new ps({type:"pipe",in:e,out:t})}const vm=T("ZodPreprocess",(e,t)=>{ps.init(e,t),zd.init(e,t)}),Sm=T("ZodReadonly",(e,t)=>{jd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>lf(e,n,o,r),e.unwrap=()=>e._zod.def.innerType});function wm(e){return new Sm({type:"readonly",innerType:e})}const $m=T("ZodLazy",(e,t)=>{Bd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>sf(e,n,o,r),e.unwrap=()=>e._zod.def.getter()});function km(e){return new $m({type:"lazy",getter:e})}const _m=T("ZodCustom",(e,t)=>{Dd.init(e,t),ge.init(e,t),e._zod.processJSONSchema=(n,o,r)=>Zh(e,n)});function Cm(e,t={}){return Mh(_m,e,t)}function Am(e,t){return Ph(e,t)}function gs(e,t){return new vm({type:"pipe",in:hs(e),out:t})}var ym=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Im=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Si=A({style:A({textAlign:N(["left","center","right"]).optional().nullable(),padding:ym}).optional().nullable(),props:A({size:m().gt(0).optional().nullable(),shape:N(["circle","square","rounded"]).optional().nullable(),imageUrl:$().optional().nullable(),alt:$().optional().nullable()}).optional().nullable()});function Rm(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var Un={size:64,imageUrl:"",alt:"",shape:"square"};function wi({style:e,props:t}){var n,o,r,i,a;const l=(n=t==null?void 0:t.size)!=null?n:Un.size,s=(o=t==null?void 0:t.imageUrl)!=null?o:Un.imageUrl,c=(r=t==null?void 0:t.alt)!=null?r:Un.alt,u=(i=t==null?void 0:t.shape)!=null?i:Un.shape,h={textAlign:(a=e==null?void 0:e.textAlign)!=null?a:void 0,padding:Im(e==null?void 0:e.padding)};return Z.createElement("div",{style:h},Z.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:Rm(u,l)}}))}const Nm=A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),Tm=Si.extend({props:Si.shape.props.unwrap().unwrap().extend({decorative:L().optional().nullable(),animation:Nm}).optional().nullable()}),kn={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},xa=Object.values(kn);let bs=null;function $i(e){bs=e}function Em(){return bs}function va(){return"desktop"}const Oe=1024,Le=640,ft=`@media (max-width: ${Oe}px)`,De=`@media (max-width: ${Le}px)`,Dt=`@media (min-width: ${Le+1}px) and (max-width: ${Oe}px)`,We=A({tablet:rn($(),In()).optional().nullable(),mobile:rn($(),In()).optional().nullable()}).optional().nullable();function Sa(e){return typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e)}function wa(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function $a(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Mm(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 Pm(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}const zt="data-ahd-theme",to="auto",Om="--ahd-c-",xs=(e,t,n)=>Math.min(n,Math.max(t,e));function Lm(e){const t=e.trim().match(/^#?([0-9a-f]{3,8})$/i);if(!t)return null;let n=t[1];return(n.length===3||n.length===4)&&(n=n.split("").map(o=>o+o).join("")),n.length!==6&&n.length!==8?null:{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16),a:n.length===8?parseInt(n.slice(6,8),16)/255:1}}function zm(e){const t=e.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+)(?:,([0-9.]+))?\)$/i);return t?{r:Number(t[1]),g:Number(t[2]),b:Number(t[3]),a:t[4]!=null?Number(t[4]):1}:null}function jm(e){const t=e.trim();return!t||t==="transparent"||t==="currentColor"||t==="inherit"?null:t.startsWith("#")?Lm(t):t.toLowerCase().startsWith("rgb")?zm(t):null}function ki({r:e,g:t,b:n,a:o}){const r=a=>xs(Math.round(a),0,255).toString(16).padStart(2,"0");if(o>=1)return`#${r(e)}${r(t)}${r(n)}`;const i=Math.round(o*1e3)/1e3;return`rgba(${Math.round(e)}, ${Math.round(t)}, ${Math.round(n)}, ${i})`}function Bm({r:e,g:t,b:n}){const o=r=>{const i=r/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)};return .2126*o(e)+.7152*o(t)+.0722*o(n)}function _i({r:e,g:t,b:n,a:o}){const r=e/255,i=t/255,a=n/255,l=Math.max(r,i,a),s=Math.min(r,i,a),c=(l+s)/2,u=l-s;if(u===0)return{h:0,s:0,l:c,a:o};const h=c>.5?u/(2-l-s):u/(l+s);let d;return l===r?d=((i-a)/u+(i<a?6:0))/6:l===i?d=((a-r)/u+2)/6:d=((r-i)/u+4)/6,{h:d,s:h,l:c,a:o}}function Wn({h:e,s:t,l:n,a:o}){if(t===0){const l=n*255;return{r:l,g:l,b:l,a:o}}const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=l=>{let s=l;return s<0&&(s+=1),s>1&&(s-=1),s<1/6?i+(r-i)*6*s:s<1/2?r:s<2/3?i+(r-i)*(2/3-s)*6:i};return{r:a(e+1/3)*255,g:a(e)*255,b:a(e-1/3)*255,a:o}}function Dm(e){if(Sa(e))return null;const t=jm(e);if(!t)return null;const n=_i(t),o=n.s<.12,r=n.l>.9||n.l<.12;if(o||r){const u=.07+(1-n.l)*(.93-.07),h=o?n.s:Math.min(n.s,.08);return ki(Wn({...n,s:h,l:u}))}const i=xs(Math.max(n.l,.62-n.l*.25),.45,.82);let a=Wn({...n,l:i});const l=.22;let s=0;for(;Bm(a)<l&&s<24;){const c=Math.min(.92,_i(a).l+.03);if(c>=.92){a=Wn({...n,l:c});break}a=Wn({...n,l:c}),s+=1}return ki(a)}function Fm(){const e=new Map;return{token(t){if(t==null)return;const n=typeof t=="string"?t.trim():"";if(!n)return t??void 0;const o=e.get(n);if(o)return`var(${o.name}, ${n})`;const r=Dm(n);if(!r)return t;const i=`${Om}${e.size+1}`;return e.set(n,{name:i,light:n,dark:r}),`var(${i}, ${n})`},css(t){if(t==="light"||e.size===0)return"";const n=[...e.values()],o=n.map(d=>`${d.name}:${d.light};`).join(""),r=n.map(d=>`${d.name}:light-dark(${d.light},${d.dark});`).join(""),i=t==="dark"?"dark":"light dark",l=`${`[${zt}="${t}"]`}{color-scheme:${i};${o}${r}}`;if(t!==to)return l;const s=`[${zt}="light"]`,c=`[${zt}="dark"]`,u=n.map(d=>`${d.name}:${d.light};`).join(""),h=n.map(d=>`${d.name}:${d.dark};`).join("");return l+`${s}{color-scheme:light;${u}}${c}{color-scheme:dark;${h}}`},size(){return e.size}}}function Hm(e){return`[${zt}="${e}"]{color-scheme:light dark;}`+`[${zt}="light"]{color-scheme:light;}[${zt}="dark"]{color-scheme:dark;}`}const Ro=Z.createContext(null),Gm=Ro.Provider;function z(e){const t=Z.useContext(Ro);return t?t.token(e):e??void 0}function ka(){const e=Z.useContext(Ro);return e?t=>e.token(t):t=>t??void 0}const Um=/style="([^"]*)"/gi,Wm=/(^|;)\s*(color|background-color|background|border-color)\s*:\s*([^;!]+)(!important)?/gi,Zm=/<font([^>]*?)\scolor=["']([^"']+)["']([^>]*)>/gi;function Vm(e,t){if(!t||!e)return e;let n=e.replace(Um,(o,r)=>{const i=r.replace(Wm,(a,l,s,c,u)=>{const h=c.trim(),d=t.token(h);return!d||d===h?a:`${l}${s}:${d}${u??""}`});return i===r?o:`style="${i}"`});return n=n.replace(Zm,(o,r,i,a)=>{const l=t.token(i.trim());return!l||l===i.trim()?o:`<font${r}${a} style="color:${l}">`}),n}function qm(e){const t=Z.useContext(Ro);return Vm(e,t)}const Ym=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"})})},Km=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"})})},Jm=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"})})},Xm=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"})})},Qm=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"})})},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:"M4 12H20M20 12L14 6M20 12L14 18",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:"M12 20V4M12 4L6 10M12 4L18 10",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:"M18 18L6 6M6 6V14M6 6H14",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:"M6 18L18 6M18 6H10M18 6V14",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:"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"})})},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:"M7 13L12 18L17 13M7 6L12 11L17 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:"M15 18L9 12L15 6",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:"M18 17L13 12L18 7M11 17L6 12L11 7",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:"M9 18L15 12L9 6",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:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},dp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:g.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},hp=e=>{const t=e.strokeColor||"black";return g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:g.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function fp(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return g.jsx(Ym,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return g.jsx(Qm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return g.jsx(rp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return g.jsx(ep,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return g.jsx(Km,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return g.jsx(Jm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return g.jsx(Xm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return g.jsx(tp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return g.jsx(np,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return g.jsx(op,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return g.jsx(lp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return g.jsx(cp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return g.jsx(dp,{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(sp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return g.jsx(up,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return g.jsx(hp,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return g.jsx(ip,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const mp=4,Ct=e=>({[e==="left"?"marginRight":"marginLeft"]:mp,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"}),pp=(e,t,n)=>({width:t,height:t,display:"block",backgroundColor:n,WebkitMaskImage:`url("${e}")`,maskImage:`url("${e}")`,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskSize:"contain",maskSize:"contain"}),Zn=e=>({display:"inline-flex",alignItems:"center",justifyContent:e}),Rn="data-ahd-var",vs=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,gp=/[&<>"']/g,bp={"&":"&","<":"<",">":">",'"':""","'":"'"};function en(e){return e.replace(gp,t=>bp[t])}function Ss(e){return!e||e.indexOf("{{")===-1?e:e.replace(vs,(t,n,o,r)=>{if(n)return n;const i=en(r);return`<span ${Rn}="${i}">{{${r}}}</span>`})}function ws(e){return!e||e.indexOf("{{")===-1?e:en(e).replace(vs,(t,n,o,r)=>{if(n)return n;const i=en(r);return`<span ${Rn}="${i}">{{${r}}}</span>`})}const xp=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function vp(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(xp,(r,i)=>{const a=o.get(i);return a!==null?encodeURIComponent(a):r})}function Sp(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),o=e.querySelectorAll(`[${Rn}]`);for(let r=0;r<o.length;r++){const i=o[r],a=n.get(i.getAttribute(Rn)||"");a!==null&&(i.textContent=a)}}const kr="data-ahd-date",$s="data-ahd-date-format";function _r(e,t){const n=en(e),o=t??"",r=en(o),i=ks(o)||`{{${n}}}`;return`<span ${Rn}="${n}" ${kr}="${r}" ${$s}="relative">${en(i)}</span>`}function ks(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const o=864e5,r=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),i=Math.round((r(n)-r(t))/o);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const a=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function wp(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${kr}][${$s}="relative"]`);for(let o=0;o<n.length;o++){const r=n[o],i=r.getAttribute(kr)||"",a=ks(i,t);a&&(r.textContent=a)}}const $p=N(["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 zo(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 kp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),_p=$().regex(/^rgba?\([^\)]+\)$/i),Cp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ap=se("transparent"),Mt=G([kp,_p,Cp,Ap]).nullable().optional(),yp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ip=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Rp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Np=G([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),Tp=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,Mp=A({color:Mt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:L().default(!1)}).partial().optional().nullable();function Pp(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 Op(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Pp(t)}`}}const Lp=A({style:A({backgroundColor:Mt,fontSize:m().min(0).optional().nullable(),fontFamily:$p,fontWeight:N(["bold","normal",...xa]).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),buttonTextAlign:N(["left","center","right"]).optional().nullable(),padding:yp,margin:Ip}).optional().nullable(),props:A({buttonBackground:Mt,hoverBackground:Mt,hoverTextColor:Mt,borderRadius:Np,borderWidth:Rp,borderColor:Mt,boxShadow:Mp,buttonTextColor:Mt,fullWidth:L().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),size:N(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:N(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:N(["x-small","small","large","medium"]).optional().nullable(),text:$().optional().nullable(),url:$().optional().nullable(),action:N(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:L().optional().nullable(),customAction:$().optional().nullable(),actionPayload:rn($(),In()).optional().nullable(),iconEnabled:L().optional().nullable(),iconName:$().optional().nullable(),iconUrl:$().optional().nullable(),iconAlignment:N(["left","right"]).optional().nullable(),ariaLabel:$().optional().nullable(),goToStep:$().optional().nullable(),postMessageEvent:$().optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable(),responsive:We});function Ci(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 _e={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",boxShadow:null,buttonTextColor:"#000000",buttonBackground:"#ffffff",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:""};function zp({style:e,props:t}){const o=`bh-${Z.useId().replace(/:/g,"")}`,r=(t==null?void 0:t.text)??_e.text,i=typeof r=="string"&&r.indexOf("{{")!==-1,a=(Me,tt)=>i?g.jsx("span",{style:Me,"data-action":tt,dangerouslySetInnerHTML:{__html:ws(r)}}):g.jsx("span",{style:Me,"data-action":tt,children:r}),l=(t==null?void 0:t.url)??_e.url,s=vp(l),c=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,u=(t==null?void 0:t.fullWidth)??_e.fullWidth,h=(t==null?void 0:t.widthType)??_e.widthType,d=(t==null?void 0:t.width)??_e.width,f=(t==null?void 0:t.widthUnit)??_e.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,w=b??x,S=(t==null?void 0:t.widthTypeTablet)??h,k=(t==null?void 0:t.widthTypeMobile)??S,v=(t==null?void 0:t.size)??_e.size,_=(t==null?void 0:t.sizeTablet)??v,y=(t==null?void 0:t.sizeMobile)??_,C=h,I=d,R=(t==null?void 0:t.buttonTextColor)??_e.buttonTextColor,E=(t==null?void 0:t.buttonBackground)??_e.buttonBackground,P=z(R),M=z(E),O=(t==null?void 0:t.iconEnabled)??_e.iconEnabled,H=(t==null?void 0:t.iconName)??_e.iconName,D=(t==null?void 0:t.iconAlignment)??_e.iconAlignment,V=(t==null?void 0:t.iconUrl)??null,F=!!(O&&(V||H)),q=(t==null?void 0:t.ariaLabel)??null,Y=typeof r=="string"&&r.trim().length>0,ie=q&&q.trim().length>0?q:!Y&&O&&H?H:void 0,J=(t==null?void 0:t.action)??_e.action,re=(t==null?void 0:t.openInNewTab)??_e.openInNewTab,ae=((t==null?void 0:t.customAction)??_e.customAction)||J,Se=(t==null?void 0:t.actionPayload)??_e.actionPayload,xe=(t==null?void 0:t.goToStep)??_e.goToStep,X=(t==null?void 0:t.postMessageEvent)??_e.postMessageEvent,j=Se||(ae==="goToStep"?{goToStep:xe||""}:null)||(ae==="postMessageEvent"?{postMessageEvent:X||""}:null),B=j?JSON.stringify(j):void 0,K=(t==null?void 0:t.borderRadius)??_e.borderRadius,W=(t==null?void 0:t.borderWidth)??_e.borderWidth,te=(t==null?void 0:t.borderColor)??_e.borderColor,fe=z(te),ze=(t==null?void 0:t.boxShadow)??_e.boxShadow,ue=Op(ze),Ce=(t==null?void 0:t.hoverBackground)??null,le=(t==null?void 0:t.hoverTextColor)??null,Ae=Ci(v),ye=Me=>typeof Me=="number"?`${Me}px`:`${Me.topLeft}px ${Me.topRight}px ${Me.bottomRight}px ${Me.bottomLeft}px`,Te=(Me,tt)=>{if(typeof Me=="number")return`${Math.max(0,Me-tt)}px`;const Mo=Math.max(0,(Me.topLeft||0)-tt),Po=Math.max(0,(Me.topRight||0)-tt),Ut=Math.max(0,(Me.bottomRight||0)-tt),Wt=Math.max(0,(Me.bottomLeft||0)-tt);return`${Mo}px ${Po}px ${Ut}px ${Wt}px`},Fe=te&&(te.includes("linear-gradient")||te.includes("radial-gradient")||te.includes("repeating-linear-gradient")),He=W&&((W.top??0)>0||(W.right??0)>0||(W.bottom??0)>0||(W.left??0)>0),ee={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},Ee=(()=>{if(u)return"100%";switch(C){case"fill":return"100%";case"fixed":return`${I}${f}`;case"fit":default:return"auto"}})(),Ge=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",je=Ge==="center"?"center":Ge==="right"?"flex-end":"flex-start",kt=()=>!te||te==="transparent"||!He?{border:"none"}:Fe?{borderTop:`${ee.top}px solid transparent`,borderRight:`${ee.right}px solid transparent`,borderBottom:`${ee.bottom}px solid transparent`,borderLeft:`${ee.left}px solid transparent`,borderImage:`${fe} `,borderRadius:"0px"}:{borderTop:`${ee.top}px solid ${fe}`,borderRight:`${ee.right}px solid ${fe}`,borderBottom:`${ee.bottom}px solid ${fe}`,borderLeft:`${ee.left}px solid ${fe}`},gt=E&&(E.includes("linear-gradient")||E.includes("radial-gradient")||E.includes("repeating-linear-gradient")),at=R&&(R.includes("linear-gradient")||R.includes("radial-gradient")||R.includes("repeating-linear-gradient")),Ze=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),_t={backgroundColor:Ze?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:Ze?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Tp(e==null?void 0:e.padding),margin:Ep(e==null?void 0:e.margin)},it=kt(),lt=at?{backgroundImage:P,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:P||void 0},st=gt?void 0:M,qe=gt?M:void 0,Q=(e==null?void 0:e.fontSize)??16,ve=`${Q}px`,Ie=()=>V?g.jsx("span",{"aria-hidden":"true",style:pp(V,Q,at?"currentColor":P||"currentColor")}):fp(H,{strokeColor:at?void 0:P,fontSize:Q}),bt={fontSize:ve,fontFamily:zo(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??kn.REGULAR,backgroundColor:st,backgroundImage:qe,borderRadius:Fe?"0px":ye(K),...it,...Fe&&He?{}:ue,display:Ee==="100%"?"block":"inline-block",width:Ee,padding:`${Ae[0]}px ${Ae[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:je,lineHeight:"normal"},Ht=Fe&&He?g.jsx("div",{style:{display:Ee==="100%"?"block":"inline-block",padding:`${ee.top}px ${ee.right}px ${ee.bottom}px ${ee.left}px`,background:fe,borderRadius:ye(K),width:Ee,boxSizing:"border-box",...ue},children:g.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:Te(K,Math.max(ee.top,ee.right,ee.bottom,ee.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??kn.REGULAR,fontFamily:zo(e==null?void 0:e.fontFamily),backgroundImage:qe,backgroundColor:st,textAlign:Ge,textDecoration:"none",fontSize:ve,padding:`${Ae[0]}px ${Ae[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Zn(je)},"data-action":ae,"data-action-payload":B,"data-goto-step":ae==="goToStep"&&xe?xe:void 0,"data-post-message-event":ae==="postMessageEvent"&&X?X:void 0,type:"button","aria-label":ie,children:[F&&D==="left"?g.jsx("span",{style:Ct("left"),"data-action":ae,children:Ie()}):null,a({...lt,pointerEvents:"none"},ae),F&&D==="right"?g.jsx("span",{style:Ct("right"),"data-action":ae,children:Ie()}):null]})}):g.jsxs("button",{style:{cursor:"pointer",...it,...ue,borderRadius:ye(K),width:Ee,fontWeight:(e==null?void 0:e.fontWeight)??kn.REGULAR,fontFamily:zo(e==null?void 0:e.fontFamily),backgroundColor:st,backgroundImage:qe,textAlign:Ge,textDecoration:"none",fontSize:ve,padding:`${Ae[0]}px ${Ae[1]}px`,boxSizing:"border-box",lineHeight:"normal",...Zn(je)},"data-action":ae,"data-action-payload":B,"data-goto-step":ae==="goToStep"&&xe?xe:void 0,"data-post-message-event":ae==="postMessageEvent"&&X?X:void 0,type:"button","aria-label":ie,children:[F&&D==="left"?g.jsx("span",{style:Ct("left"),"data-action":ae,children:Ie()}):null,a({...lt,pointerEvents:"none"},ae),F&&D==="right"?g.jsx("span",{style:Ct("right"),"data-action":ae,children:Ie()}):null]}),Gt=!!Ce&&(Ce.includes("linear-gradient")||Ce.includes("radial-gradient")||Ce.includes("repeating-linear-gradient")),oe=!!le&&(le.includes("linear-gradient")||le.includes("radial-gradient")||le.includes("repeating-linear-gradient")),he=[];Ce&&(Gt?he.push(`background-image: ${Ce} !important; background-color: transparent !important;`):he.push(`background-color: ${Ce} !important; background-image: none !important;`)),le&&!oe&&he.push(`color: ${le} !important;`);const Ve=le?oe?`background-image: ${le} !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; display: inline-block;`:`background-image: none !important; color: ${le} !important; -webkit-text-fill-color: ${le} !important;`:"",et=he.length>0||Ve?`#${o} a:hover, #${o} button:hover { ${he.join(" ")} transition: background-color 150ms ease, background-image 150ms ease, color 150ms ease; } #${o} a:hover span, #${o} button:hover span { ${Ve} }`:null,xt=(Me,tt,Mo,Po)=>{const Ut=[],Wt=u||tt==="fill"?"100%":tt==="fixed"?`${Mo}${f}`:"auto";Ut.push(`width: ${Wt} !important;`,"max-width: 100% !important;"),Ut.push(`display: ${Wt==="100%"?"block":"inline-block"} !important;`);const[Wa,Tc]=Ci(Po);return Ut.push(`padding: ${Wa}px ${Tc}px !important;`),`${Me} { #${o} a, #${o} button { ${Ut.join(" ")} } #${o} > div { width: ${Wt} !important; max-width: 100% !important; display: ${Wt==="100%"?"block":"inline-block"} !important; } }`},fn=S!==h||_!==v||S==="fixed"&&x!==d,Ua=k!==h||y!==v||k==="fixed"&&w!==d,Dn=fn||Ua?[fn?xt(ft,S,x,_):"",Ua?xt(De,k,w,y):""].filter(Boolean).join(`
|
|
65
|
-
`):null;if(J!=="link")return g.jsxs("div",{id:o,className:"button-block",style:_t,children:[et&&g.jsx("style",{children:et}),Dn&&g.jsx("style",{children:Dn}),Ht]});const Nc=Fe&&He?g.jsx("div",{style:{display:Ee==="100%"?"block":"inline-block",padding:`${ee.top}px ${ee.right}px ${ee.bottom}px ${ee.left}px`,background:fe,borderRadius:ye(K),width:Ee,boxSizing:"border-box",...ue},children:g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...bt,border:"none",borderRadius:Te(K,Math.max(ee.top,ee.right,ee.bottom,ee.left)),width:"100%",...Zn(je)},target:re?"_blank":void 0,rel:re?"noopener noreferrer":void 0,"aria-label":ie,children:[F&&D==="left"?g.jsx("span",{style:Ct("left"),children:Ie()}):null,a({...lt,pointerEvents:"none"}),F&&D==="right"?g.jsx("span",{style:Ct("right"),children:Ie()}):null]})}):g.jsxs("a",{href:s,"data-ahd-href-tpl":c?s:void 0,style:{...bt,borderRadius:ye(K),...Zn(je)},target:re?"_blank":void 0,rel:re?"noopener noreferrer":void 0,"aria-label":ie,children:[F&&D==="left"?g.jsx("span",{style:Ct("left"),children:Ie()}):null,a({...lt,pointerEvents:"none"}),F&&D==="right"?g.jsx("span",{style:Ct("right"),children:Ie()}):null]});return g.jsxs("div",{id:o,className:"button-block",style:_t,children:[et&&g.jsx("style",{children:et}),Dn&&g.jsx("style",{children:Dn}),Nc]})}const jp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Bp=$().regex(/^rgba?\([^\)]+\)$/i),Dp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Fp=se("transparent"),Ai=G([jp,Bp,Dp,Fp]).nullable().optional(),Hp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Gp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Up=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Wp=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Zp=A({style:A({backgroundColor:Ai,padding:Hp,margin:Gp}).optional().nullable(),props:A({lineColor:Ai,lineHeight:m().optional().nullable()}).optional().nullable()}),yi={lineHeight:1,lineColor:"#333333"};function Vp({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??yi.lineHeight,o=z((t==null?void 0:t.lineColor)??yi.lineColor),r={padding:Up(e==null?void 0:e.padding),margin:Wp(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor),"--ahd-divider-thickness":`${n}px`};return g.jsx("div",{className:"divider-block",style:r,children:g.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:o,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const qp=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Yp=$().regex(/^rgba?\([^\)]+\)$/i),Kp=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Jp=se("transparent"),jo=G([qp,Yp,Kp,Jp]).nullable().optional(),Xp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Qp=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),eg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,tg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ng=N(["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 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 rg=A({props:A({text:$().optional().nullable(),level:N(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:N(["text","link"]).optional().nullable(),url:$().optional().nullable(),openInNewTab:L().optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable(),style:A({color:jo,textColor:jo,backgroundColor:jo,fontFamily:ng,fontSize:m().optional().nullable(),lineClamp:m().int().gte(0).optional().nullable(),fontWeight:N(["bold","normal",...xa]).optional().nullable(),fontStyle:N(["italic","normal"]).optional().nullable(),textDecoration:N(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),padding:Xp,margin:Qp}).optional().nullable(),responsive:We}),mn={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function ag({props:e,style:t}){const n=(e==null?void 0:e.level)??mn.level,o=(e==null?void 0:e.text)??mn.text,r=typeof o=="string"&&o.indexOf("{{")!==-1,i=(e==null?void 0:e.linkType)??mn.linkType,a=(e==null?void 0:e.url)??mn.url,l=(e==null?void 0:e.openInNewTab)??mn.openInNewTab,s=i==="link"&&a,c=(t==null?void 0:t.fontSize)??ig(n),u=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),h=z(u),d=u&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(u),f=(t==null?void 0:t.textDecoration)??"none",p=d&&(f==="underline"||f==="underline line-through"),b=d&&(f==="line-through"||f==="underline line-through"),x=t==null?void 0:t.lineClamp,w=x&&x>0?{display:"-webkit-box",WebkitLineClamp:x,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},S={fontWeight:(t==null?void 0:t.fontWeight)??kn.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:d?"none":f,margin:0,fontFamily:og(t==null?void 0:t.fontFamily),fontSize:c,...w},k=!!(x&&x>0),v=d?{lineHeight:"normal ",backgroundImage:h,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...k?{}:{display:"inline-block"},...p?{paddingBottom:"0.08em"}:{}}:{color:h??void 0},_={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:h??void 0,pointerEvents:"none"},y={..._,bottom:0},C={..._,top:"50%",transform:"translateY(-50%)"},I=(t==null?void 0:t.backgroundColor)??void 0,R=z(I),E=typeof I=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(I),P=t==null?void 0:t.margin,M=((P==null?void 0:P.left)??0)+((P==null?void 0:P.right)??0),O={padding:eg(t==null?void 0:t.padding),margin:tg(t==null?void 0:t.margin),display:"block",width:M>0?`calc(100% - ${M}px)`:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...E?{backgroundImage:R,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:R}},H=n,D=g.jsx(H,{className:"heading-block",style:S,children:g.jsxs("span",{style:v,children:[r?g.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:ws(o)}}):o,p?g.jsx("span",{style:y}):null,b?g.jsx("span",{style:C}):null]})});return g.jsx("div",{className:"heading-block-wrapper",style:O,children:s?g.jsx("a",{href:a,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!d&&h?h:void 0},children:D}):D})}function ig(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 _s="comm",Cs="rule",As="decl",lg="@import",sg="@namespace",cg="@keyframes",ug="@layer",dg=Math.abs,_n=String.fromCharCode;function ys(e){return e.trim()}function Cr(e,t,n){return e.replace(t,n)}function tn(e,t){return e.charCodeAt(t)|0}function an(e,t,n){return e.slice(t,n)}function ht(e){return e.length}function hg(e){return e.length}function Vn(e,t){return t.push(e),e}var No=1,ln=1,Is=0,Ye=0,Ne=0,cn="";function _a(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:No,column:ln,length:a,return:"",siblings:l}}function fg(){return Ne}function mg(){return Ne=Ye>0?tn(cn,--Ye):0,ln--,Ne===10&&(ln=1,No--),Ne}function rt(){return Ne=Ye<Is?tn(cn,Ye++):0,ln++,Ne===10&&(ln=1,No++),Ne}function It(){return tn(cn,Ye)}function no(){return Ye}function To(e,t){return an(cn,e,t)}function Nn(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 pg(e){return No=ln=1,Is=ht(cn=e),Ye=0,[]}function gg(e){return cn="",e}function Bo(e){return ys(To(Ye-1,Ar(e===91?e+2:e===40?e+1:e)))}function bg(e){for(;(Ne=It())&&Ne<33;)rt();return Nn(e)>2||Nn(Ne)>3?"":" "}function xg(e,t){for(;--t&&rt()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return To(e,no()+(t<6&&It()==32&&rt()==32))}function Ar(e){for(;rt();)switch(Ne){case e:return Ye;case 34:case 39:e!==34&&e!==39&&Ar(Ne);break;case 40:e===41&&Ar(e);break;case 92:rt();break}return Ye}function vg(e,t){for(;rt()&&e+Ne!==57;)if(e+Ne===84&&It()===47)break;return"/*"+To(t,Ye-1)+"*"+_n(e===47?e:rt())}function Sg(e){for(;!Nn(It());)rt();return To(e,Ye)}function wg(e){return gg(oo("",null,null,null,[""],e=pg(e),0,[0],e))}function oo(e,t,n,o,r,i,a,l,s){for(var c=0,u=0,h=a,d=0,f=0,p=0,b=1,x=1,w=1,S=0,k=0,v="",_=r,y=i,C=o,I=v;x;)switch(p=k,k=rt()){case 40:p!=108&&tn(I,h-1)==58?(S++,I+="("):I+=Bo(k);break;case 41:S--,I+=")";break;case 34:case 39:case 91:I+=Bo(k);break;case 9:case 10:case 13:case 32:if(S>0){I+=_n(k);break}I+=bg(p);break;case 92:I+=xg(no()-1,7);continue;case 47:switch(It()){case 42:case 47:Vn($g(vg(rt(),no()),t,n,s),s),(Nn(p||1)==5||Nn(It()||1)==5)&&ht(I)&&an(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[c++]=ht(I)*w;case 125*b:case 59:case 0:if(S>0&&k){I+=_n(k);break}switch(k){case 0:case 125:x=0;case 59+u:w==-1&&(I=Cr(I,/\f/g,"")),f>0&&(ht(I)-h||b===0)&&Vn(f>32?Ri(I+";",o,n,h-1,s):Ri(Cr(I," ","")+";",o,n,h-2,s),s);break;case 59:I+=";";default:if(Vn(C=Ii(I,t,n,c,u,r,l,v,_=[],y=[],h,i),i),k===123)if(u===0)oo(I,t,C,C,_,i,h,l,y);else{switch(d){case 99:if(tn(I,3)===110)break;case 108:if(tn(I,2)===97)break;default:u=0;case 100:case 109:case 115:}u?oo(e,C,C,o&&Vn(Ii(e,C,C,0,0,r,l,v,r,_=[],h,y),y),r,y,h,l,o?_:y):oo(I,C,C,C,[""],y,0,l,y)}}c=u=f=0,b=w=1,v=I="",h=a;break;case 58:h=1+ht(I),f=p;default:if(b<1){if(k==123)--b;else if(k==125&&b++==0&&mg()==125)continue}switch(I+=_n(k),k*b){case 38:w=u>0?1:(I+="\f",-1);break;case 44:if(S>0)break;l[c++]=(ht(I)-1)*w,w=1;break;case 64:It()===45&&(I+=Bo(rt())),d=It(),u=h=ht(v=I+=Sg(no())),k++;break;case 45:p===45&&ht(I)==2&&(b=0)}}return i}function Ii(e,t,n,o,r,i,a,l,s,c,u,h){for(var d=r-1,f=r===0?i:[""],p=hg(f),b=0,x=0,w=0;b<o;++b)for(var S=0,k=an(e,d+1,d=dg(x=a[b])),v=e;S<p;++S)(v=ys(x>0?f[S]+" "+k:Cr(k,/&\f/g,f[S])))&&(s[w++]=v);return _a(e,t,n,r===0?Cs:l,s,c,u,h)}function $g(e,t,n,o){return _a(e,t,n,_s,_n(fg()),an(e,2,-2),0,o)}function Ri(e,t,n,o,r){return _a(e,t,n,As,an(e,0,o),an(e,o+1,-1),o,r)}function yr(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function kg(e,t,n,o){switch(e.type){case ug:if(e.children.length)break;case lg:case sg:case As:return e.return=e.return||e.value;case _s:return"";case cg:return e.return=e.value+"{"+yr(e.children,o)+"}";case Cs:if(!ht(e.value=e.props.join(",")))return""}return ht(n=yr(e.children,o))?e.return=e.value+"{"+n+"}":""}const _g=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Cg=$().regex(/^rgba?\([^\)]+\)$/i),Ag=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),yg=se("transparent"),Ni=G([_g,Cg,Ag,yg]).nullable().optional(),Ig=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Rg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ng=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Tg=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Eg=N(["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 Mg(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 Pg=A({style:A({color:Ni,backgroundColor:Ni,fontFamily:Eg,fontSize:m().min(0).optional().nullable(),textAlign:N(["left","right","center"]).optional().nullable(),padding:Ig,margin:Rg}).optional().nullable(),props:A({contents:$().optional().nullable()}).optional().nullable()}),Og=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Lg(e,t){let n="";const o=e.replace(Og,(i,a)=>(n+=a,""));if(!n.trim())return{markup:o,css:""};const r=yr(wg(`[${t}]{${n}}`),kg);return{markup:o,css:r}}function zg({style:e,props:t}){const n=t==null?void 0:t.contents,[o,r]=Z.useState(!1),a=`data-html-scope-${Z.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=Z.useMemo(()=>n?Lg(n,a):{markup:"",css:""},[n,a]),c={color:z(e==null?void 0:e.color),backgroundColor:z(e==null?void 0:e.backgroundColor),fontFamily:Mg(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:Ng(e==null?void 0:e.padding),margin:Tg(e==null?void 0:e.margin)},u=Z.useRef(null);Z.useEffect(()=>{const b=u.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=o?"auto":"none"}catch{}})},[n,o]);const h=b=>{o||r(!0)},d=()=>{r(!1)},f=`[${a}] pre,[${a}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return g.jsx("div",{ref:u,className:"html-block",style:c,children:g.jsx("style",{dangerouslySetInnerHTML:{__html:f}})});const p=`<style>${f}${s}</style>${Ss(l)}`;return g.jsx("div",{ref:u,className:"html-block",style:c,onClick:h,onBlur:d,tabIndex:0,[a]:"",dangerouslySetInnerHTML:{__html:p}})}const jg=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Bg=$().regex(/^rgba?\([^\)]+\)$/i),Dg=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Fg=se("transparent"),Hg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Gg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ug=G([m(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),ro=G([jg,Bg,Dg,Fg]).nullable().optional(),Wg=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Zg=A({color:ro,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:L().default(!1)}).partial().optional().nullable();function Vg(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 qg(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e;return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${Vg(t)}`}}const Yg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Kg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Jg(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 Xg(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const Qg=A({style:A({padding:Hg,margin:Gg,backgroundColor:ro.default(null),textAlign:N(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:m().optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthUnitTablet:N(["px","%"]).optional().nullable(),widthUnitMobile:N(["px","%"]).optional().nullable(),widthTablet:m().positive().optional().nullable(),widthMobile:m().positive().optional().nullable(),height:m().optional().nullable(),heightTablet:m().positive().optional().nullable(),heightMobile:m().positive().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:L().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),borderRadius:Ug,borderColor:ro.default(null),borderWidth:Wg,boxShadow:Zg,iconName:$().optional().nullable(),iconFillColor:ro.default(null),rotation:m().min(0).max(360).optional().nullable(),rotationTablet:m().min(0).max(360).optional().nullable(),rotationMobile:m().min(0).max(360).optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:A({enabled:L(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:N(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()}),Pe={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let eb=0;function tb({style:e,props:t}){const n=Z.useMemo(()=>`ahd-img-${++eb}`,[]),o=va(),r=(e==null?void 0:e.textAlign)??void 0,i=r==="center"?"center":r==="right"?"flex-end":"flex-start",a=e==null?void 0:e.margin,l=((a==null?void 0:a.left)??0)+((a==null?void 0:a.right)??0),s={padding:Yg(e==null?void 0:e.padding),margin:Kg(e==null?void 0:e.margin),...Jg(z(e==null?void 0:e.backgroundColor)),display:"flex",justifyContent:i,width:l>0?`max(0px, calc(100% - ${l}px))`:"100%",boxSizing:"border-box"},c=(t==null?void 0:t.showLink)??(t!=null&&t.linkHref?!0:Pe.showLink),u=(t==null?void 0:t.linkHref)??Pe.linkHref,h=c&&u?u:null,d=(t==null?void 0:t.linkTarget)??Pe.linkTarget,f=(t==null?void 0:t.widthType)??Pe.widthType,p=(t==null?void 0:t.widthTypeTablet)??f,b=(t==null?void 0:t.widthTypeMobile)??p,x=(t==null?void 0:t.width)??Pe.width,w=(t==null?void 0:t.widthUnit)??Pe.widthUnit,S=(t==null?void 0:t.widthUnitTablet)??w,k=(t==null?void 0:t.widthUnitMobile)??S,v=(t==null?void 0:t.widthTablet)??null,_=(t==null?void 0:t.widthMobile)??null,y=v??x,C=_??y,I=(t==null?void 0:t.height)??Pe.height,R=(t==null?void 0:t.heightTablet)??null,E=(t==null?void 0:t.heightMobile)??null,P=R??I,M=E??P,O=I,H=(t==null?void 0:t.url)??Pe.url,D=(t==null?void 0:t.urlTablet)??null,V=(t==null?void 0:t.urlMobile)??null,F=!h&&((t==null?void 0:t.decorative)??Pe.decorative),q=F?"":(t==null?void 0:t.alt)??Pe.alt,Y=F?{role:"presentation","aria-hidden":!0}:{},ie=(t==null?void 0:t.contentAlignment)??Pe.contentAlignment,J=(t==null?void 0:t.borderRadius)??Pe.borderRadius,re=z((t==null?void 0:t.borderColor)??Pe.borderColor),me=(t==null?void 0:t.borderWidth)??Pe.borderWidth,ae=(t==null?void 0:t.boxShadow)??Pe.boxShadow,Se=qg(ae),xe=(t==null?void 0:t.rotation)??Pe.rotation,X=(t==null?void 0:t.rotationTablet)??null,j=(t==null?void 0:t.rotationMobile)??null,B=X??xe,K=j??B,W=Q=>{const ve=Q*Math.PI/180,Ie=Q%180!==0?1/(Math.abs(Math.cos(ve))+Math.abs(Math.sin(ve))):1;return`rotate(${Q}deg) scale(${Ie})`},te=xe,fe=te?{transform:W(te),transformOrigin:"center"}:{},ue=X!=null||j!=null?`
|
|
66
|
-
${
|
|
67
|
-
${
|
|
68
|
-
`.trim():null,
|
|
69
|
-
${
|
|
70
|
-
${
|
|
71
|
-
`.trim():null,at=R!=null||
|
|
72
|
-
${
|
|
73
|
-
${
|
|
74
|
-
`.trim():null,Ze=(t==null?void 0:t.hoverEffect)??
|
|
62
|
+
`)}f.write("payload.value = newResult;"),f.write("return payload;");const k=f.compile();return(_,y)=>k(d,_,y)};let a;const i=Hn,l=!Da.jitless,u=l&&Wu.value,c=t.catchall;let h;e._zod.parse=(d,f)=>{h??(h=r.value);const p=d.value;return i(p)?l&&u&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(a||(a=o(t.shape)),d=a(d,f),c?Gs([],p,d,f,h,e):d):n(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d)}});function Pi(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;const o=e.filter(a=>!un(a));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(i=>Nt(i,r,Tt())))}),t)}const Us=E("$ZodUnion",(e,t)=>{ge.init(e,t),se(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),se(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),se(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),se(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>Ha(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let a=!1;const i=[];for(const l of t.options){const s=l._zod.run({value:r.value,issues:[]},o);if(s instanceof Promise)i.push(s),a=!0;else{if(s.issues.length===0)return s;i.push(s)}}return a?Promise.all(i).then(l=>Pi(l,r,e,o)):Pi(i,r,e,o)}}),Mh=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Us.init(e,t);const n=e._zod.parse;se(e._zod,"propValues",()=>{const o={};for(const a of t.options){const i=a._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const[l,s]of Object.entries(i)){o[l]||(o[l]=new Set);for(const u of s)o[l].add(u)}}return o});const r=qr(()=>{var i;const o=t.options,a=new Map;for(const l of o){const s=(i=l._zod.propValues)==null?void 0:i[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(l)}"`);for(const u of s){if(a.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);a.set(u,l)}}return a});e._zod.parse=(o,a)=>{const i=o.value;if(!Hn(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),o;const l=r.value.get(i==null?void 0:i[t.discriminator]);return l?l._zod.run(o,a):t.unionFallback||a.direction==="backward"?n(o,a):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:i,path:[t.discriminator],inst:e}),o)}}),Oh=E("$ZodIntersection",(e,t)=>{ge.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,a=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return a instanceof Promise||i instanceof Promise?Promise.all([a,i]).then(([s,u])=>Mi(n,s,u)):Mi(n,a,i)}});function Zo(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(mn(e)&&mn(t)){const n=Object.keys(t),r=Object.keys(e).filter(a=>n.indexOf(a)!==-1),o={...e,...t};for(const a of r){const i=Zo(e[a],t[a]);if(!i.valid)return{valid:!1,mergeErrorPath:[a,...i.mergeErrorPath]};o[a]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],a=t[r],i=Zo(o,a);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Mi(e,t,n){const r=new Map;let o;for(const l of t.issues)if(l.code==="unrecognized_keys"){o??(o=l);for(const s of l.keys)r.has(s)||r.set(s,{}),r.get(s).l=!0}else e.issues.push(l);for(const l of n.issues)if(l.code==="unrecognized_keys")for(const s of l.keys)r.has(s)||r.set(s,{}),r.get(s).r=!0;else e.issues.push(l);const a=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(a.length&&o&&e.issues.push({...o,keys:a}),un(e))return e;const i=Zo(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 Lh=E("$ZodTuple",(e,t)=>{ge.init(e,t);const n=t.items;e._zod.parse=(r,o)=>{const a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];const i=[],l=Oi(n,"optin"),s=Oi(n,"optout");if(!t.rest){if(a.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:a,inst:e,origin:"array"}),r;a.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:a,inst:e,origin:"array"})}const u=new Array(n.length);for(let c=0;c<n.length;c++){const h=n[c]._zod.run({value:a[c],issues:[]},o);h instanceof Promise?i.push(h.then(d=>{u[c]=d})):u[c]=h}if(t.rest){let c=n.length-1;const h=a.slice(n.length);for(const d of h){c++;const f=t.rest._zod.run({value:d,issues:[]},o);f instanceof Promise?i.push(f.then(p=>Li(p,r,c))):Li(f,r,c)}}return i.length?Promise.all(i).then(()=>zi(u,r,n,a,s)):zi(u,r,n,a,s)}});function Oi(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function Li(e,t,n){e.issues.length&&t.issues.push(...Lt(n,e.issues)),t.value[n]=e.value}function zi(e,t,n,r,o){for(let a=0;a<n.length;a++){const i=e[a],l=a<r.length;if(i.issues.length){if(!l&&a>=o){t.value.length=a;break}t.issues.push(...Lt(a,i.issues))}t.value[a]=i.value}for(let a=t.value.length-1;a>=r.length&&(n[a]._zod.optout==="optional"&&t.value[a]===void 0);a--)t.value.length=a;return t}const zh=E("$ZodRecord",(e,t)=>{ge.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!mn(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const a=[],i=t.keyType._zod.values;if(i){n.value={};const l=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);const c=t.keyType._zod.run({value:u,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(f=>Nt(f,r,Tt())),input:u,path:[u],inst:e});continue}const h=c.value,d=t.valueType._zod.run({value:o[u],issues:[]},r);d instanceof Promise?a.push(d.then(f=>{f.issues.length&&n.issues.push(...Lt(u,f.issues)),n.value[h]=f.value})):(d.issues.length&&n.issues.push(...Lt(u,d.issues)),n.value[h]=d.value)}let s;for(const u in o)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:s})}else{n.value={};for(const l of Reflect.ownKeys(o)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Ls.test(l)&&s.issues.length){const h=t.keyType._zod.run({value:Number(l),issues:[]},r);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(s=h)}if(s.issues.length){t.mode==="loose"?n.value[l]=o[l]:n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(h=>Nt(h,r,Tt())),input:l,path:[l],inst:e});continue}const c=t.valueType._zod.run({value:o[l],issues:[]},r);c instanceof Promise?a.push(c.then(h=>{h.issues.length&&n.issues.push(...Lt(l,h.issues)),n.value[s.value]=h.value})):(c.issues.length&&n.issues.push(...Lt(l,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),jh=E("$ZodEnum",(e,t)=>{ge.init(e,t);const n=ys(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Zu.has(typeof o)).map(o=>typeof o=="string"?bn(o):o.toString()).join("|")})$`),e._zod.parse=(o,a)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),Bh=E("$ZodLiteral",(e,t)=>{if(ge.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?bn(r):r?bn(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const a=r.value;return n.has(a)||r.issues.push({code:"invalid_value",values:t.values,input:a,inst:e}),r}}),Dh=E("$ZodTransform",(e,t)=>{ge.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new As(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n.fallback=!0,n));if(o instanceof Promise)throw new fn;return n.value=o,n.fallback=!0,n}});function ji(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Ws=E("$ZodOptional",(e,t)=>{ge.init(e,t),e._zod.optin="optional",e._zod.optout="optional",se(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),se(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Ha(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=n.value,a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(i=>ji(i,o)):ji(a,o)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Fh=E("$ZodExactOptional",(e,t)=>{Ws.init(e,t),se(e._zod,"values",()=>t.innerType._zod.values),se(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Hh=E("$ZodNullable",(e,t)=>{ge.init(e,t),se(e._zod,"optin",()=>t.innerType._zod.optin),se(e._zod,"optout",()=>t.innerType._zod.optout),se(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Ha(n.source)}|null)$`):void 0}),se(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Gh=E("$ZodDefault",(e,t)=>{ge.init(e,t),e._zod.optin="optional",se(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>Bi(a,t)):Bi(o,t)}});function Bi(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Uh=E("$ZodPrefault",(e,t)=>{ge.init(e,t),e._zod.optin="optional",se(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Wh=E("$ZodNonOptional",(e,t)=>{ge.init(e,t),se(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>Di(a,e)):Di(o,e)}});function Di(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 Zh=E("$ZodCatch",(e,t)=>{ge.init(e,t),e._zod.optin="optional",se(e._zod,"optout",()=>t.innerType._zod.optout),se(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(i=>Nt(i,r,Tt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>Nt(a,r,Tt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Zs=E("$ZodPipe",(e,t)=>{ge.init(e,t),se(e._zod,"values",()=>t.in._zod.values),se(e._zod,"optin",()=>t.in._zod.optin),se(e._zod,"optout",()=>t.out._zod.optout),se(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const a=t.out._zod.run(n,r);return a instanceof Promise?a.then(i=>lr(i,t.in,r)):lr(a,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(a=>lr(a,t.out,r)):lr(o,t.out,r)}});function lr(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 qh=E("$ZodPreprocess",(e,t)=>{Zs.init(e,t)}),Vh=E("$ZodReadonly",(e,t)=>{ge.init(e,t),se(e._zod,"propValues",()=>t.innerType._zod.propValues),se(e._zod,"values",()=>t.innerType._zod.values),se(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),se(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(Fi):Fi(o)}});function Fi(e){return e.value=Object.freeze(e.value),e}const Yh=E("$ZodLazy",(e,t)=>{ge.init(e,t),se(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),se(e._zod,"pattern",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.pattern}),se(e._zod,"propValues",()=>{var n,r;return(r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.propValues}),se(e._zod,"optin",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optin)??void 0}),se(e._zod,"optout",()=>{var n,r;return((r=(n=e._zod.innerType)==null?void 0:n._zod)==null?void 0:r.optout)??void 0}),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),Kh=E("$ZodCustom",(e,t)=>{qe.init(e,t),ge.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(a=>Hi(a,n,r,e));Hi(o,n,r,e)}});function Hi(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Gn(o))}}var Gi;class Jh{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Xh(){return new Jh}(Gi=globalThis).__zod_globalRegistry??(Gi.__zod_globalRegistry=Xh());const Ln=globalThis.__zod_globalRegistry;function Qh(e,t){return new e({type:"string",...U(t)})}function ef(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...U(t)})}function Ui(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...U(t)})}function tf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...U(t)})}function nf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...U(t)})}function rf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...U(t)})}function of(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...U(t)})}function af(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...U(t)})}function lf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...U(t)})}function sf(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...U(t)})}function cf(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...U(t)})}function uf(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...U(t)})}function df(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...U(t)})}function hf(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...U(t)})}function ff(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...U(t)})}function pf(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...U(t)})}function gf(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...U(t)})}function mf(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...U(t)})}function bf(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...U(t)})}function xf(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...U(t)})}function vf(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...U(t)})}function kf(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...U(t)})}function wf(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...U(t)})}function Sf(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...U(t)})}function $f(e,t){return new e({type:"string",format:"date",check:"string_format",...U(t)})}function _f(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...U(t)})}function Cf(e,t){return new e({type:"string",format:"duration",check:"string_format",...U(t)})}function Af(e,t){return new e({type:"number",checks:[],...U(t)})}function yf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...U(t)})}function If(e,t){return new e({type:"boolean",...U(t)})}function Rf(e){return new e({type:"any"})}function Tf(e){return new e({type:"unknown"})}function Nf(e,t){return new e({type:"never",...U(t)})}function Wi(e,t){return new js({check:"less_than",...U(t),value:e,inclusive:!1})}function ao(e,t){return new js({check:"less_than",...U(t),value:e,inclusive:!0})}function Zi(e,t){return new Bs({check:"greater_than",...U(t),value:e,inclusive:!1})}function io(e,t){return new Bs({check:"greater_than",...U(t),value:e,inclusive:!0})}function qi(e,t){return new Fd({check:"multiple_of",...U(t),value:e})}function qs(e,t){return new Gd({check:"max_length",...U(t),maximum:e})}function Nr(e,t){return new Ud({check:"min_length",...U(t),minimum:e})}function Vs(e,t){return new Wd({check:"length_equals",...U(t),length:e})}function Ef(e,t){return new Zd({check:"string_format",format:"regex",...U(t),pattern:e})}function Pf(e){return new qd({check:"string_format",format:"lowercase",...U(e)})}function Mf(e){return new Vd({check:"string_format",format:"uppercase",...U(e)})}function Of(e,t){return new Yd({check:"string_format",format:"includes",...U(t),includes:e})}function Lf(e,t){return new Kd({check:"string_format",format:"starts_with",...U(t),prefix:e})}function zf(e,t){return new Jd({check:"string_format",format:"ends_with",...U(t),suffix:e})}function wn(e){return new Xd({check:"overwrite",tx:e})}function jf(e){return wn(t=>t.normalize(e))}function Bf(){return wn(e=>e.trim())}function Df(){return wn(e=>e.toLowerCase())}function Ff(){return wn(e=>e.toUpperCase())}function Hf(){return wn(e=>Uu(e))}function Gf(e,t,n){return new e({type:"array",element:t,...U(n)})}function Uf(e,t,n){return new e({type:"custom",check:"custom",fn:t,...U(n)})}function Wf(e,t){const n=Zf(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Gn(o,r.value,n._zod.def));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=n),a.continue??(a.continue=!n._zod.def.abort),r.issues.push(Gn(a))}},e(r.value,r)),t);return n}function Zf(e,t){const n=new qe({check:"custom",...U(t)});return n._zod.check=e,n}function Ys(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)??Ln,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 Se(e,t,n={path:[],schemaPath:[]}){var c,h;var r;const o=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const l=(h=(c=e._zod).toJSONSchema)==null?void 0:h.call(c);if(l)i.schema=l;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,d);else{const p=i.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,p,d)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),Se(f,t,d),t.seen.get(f).isParent=!0)}const s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&Fe(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function Ks(e,t){var i,l,s,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const c of e.seen.entries()){const h=(i=e.metadataRegistry.get(c[0]))==null?void 0:i.id;if(h){const d=r.get(h);if(d&&d!==c[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(h,c[0])}}const o=c=>{var b;const h=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const x=(b=e.external.registry.get(c[0]))==null?void 0:b.id,w=e.external.uri??(S=>S);if(x)return{ref:w(x)};const k=c[1].defId??c[1].schema.id??`schema${e.counter++}`;return c[1].defId=k,{defId:k,ref:`${w("__shared")}#/${h}/${k}`}}if(c[1]===n)return{ref:"#"};const f=`#/${h}/`,p=c[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},a=c=>{if(c[1].schema.$ref)return;const h=c[1],{ref:d,defId:f}=o(c);h.def={...h.schema},f&&(h.defId=f);const p=h.schema;for(const b in p)delete p[b];p.$ref=d};if(e.cycles==="throw")for(const c of e.seen.entries()){const h=c[1];if(h.cycle)throw new Error(`Cycle detected: #/${(l=h.cycle)==null?void 0:l.join("/")}/<root>
|
|
63
|
+
|
|
64
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const c of e.seen.entries()){const h=c[1];if(t===c[0]){a(c);continue}if(e.external){const f=(s=e.external.registry.get(c[0]))==null?void 0:s.id;if(t!==c[0]&&f){a(c);continue}}if((u=e.metadataRegistry.get(c[0]))==null?void 0:u.id){a(c);continue}if(h.cycle){a(c);continue}if(h.count>1&&e.reused==="ref"){a(c);continue}}}function Js(e,t){var l,s,u,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=h=>{const d=e.seen.get(h);if(d.ref===null)return;const f=d.def??d.schema,p={...f},b=d.ref;if(d.ref=null,b){r(b);const w=e.seen.get(b),k=w.schema;if(k.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(k)):Object.assign(f,k),Object.assign(f,p),h._zod.parent===b)for(const v in f)v==="$ref"||v==="allOf"||v in p||delete f[v];if(k.$ref&&w.def)for(const v in f)v==="$ref"||v==="allOf"||v in w.def&&JSON.stringify(f[v])===JSON.stringify(w.def[v])&&delete f[v]}const x=h._zod.parent;if(x&&x!==b){r(x);const w=e.seen.get(x);if(w!=null&&w.schema.$ref&&(f.$ref=w.schema.$ref,w.def))for(const k in f)k==="$ref"||k==="allOf"||k in w.def&&JSON.stringify(f[k])===JSON.stringify(w.def[k])&&delete f[k]}e.override({zodSchema:h,jsonSchema:f,path:d.path??[]})};for(const h of[...e.seen.entries()].reverse())r(h[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(l=e.external)!=null&&l.uri){const h=(s=e.external.registry.get(t))==null?void 0:s.id;if(!h)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(h)}Object.assign(o,n.def??n.schema);const a=(u=e.metadataRegistry.get(t))==null?void 0:u.id;a!==void 0&&o.id===a&&delete o.id;const i=((c=e.external)==null?void 0:c.defs)??{};for(const h of e.seen.entries()){const d=h[1];d.def&&d.defId&&(d.def.id===d.defId&&delete d.def.id,i[d.defId]=d.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const h=JSON.parse(JSON.stringify(o));return Object.defineProperty(h,"~standard",{value:{...t["~standard"],jsonSchema:{input:Er(t,"input",e.processors),output:Er(t,"output",e.processors)}},enumerable:!1,writable:!1}),h}catch{throw new Error("Error converting schema to JSON.")}}function Fe(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Fe(r.element,n);if(r.type==="set")return Fe(r.valueType,n);if(r.type==="lazy")return Fe(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Fe(r.innerType,n);if(r.type==="intersection")return Fe(r.left,n)||Fe(r.right,n);if(r.type==="record"||r.type==="map")return Fe(r.keyType,n)||Fe(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Fe(r.in,n)||Fe(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Fe(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Fe(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Fe(o,n))return!0;return!!(r.rest&&Fe(r.rest,n))}return!1}const qf=(e,t={})=>n=>{const r=Ys({...n,processors:t});return Se(e,r),Ks(r,e),Js(r,e)},Er=(e,t,n={})=>r=>{const{libraryOptions:o,target:a}=r??{},i=Ys({...o??{},target:a,io:t,processors:n});return Se(e,i),Ks(i,e),Js(i,e)},Vf={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Yf=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:a,maximum:i,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof a=="number"&&(o.minLength=a),typeof i=="number"&&(o.maxLength=i),l&&(o.format=Vf[l]??l,o.format===""&&delete o.format,l==="time"&&delete o.format),u&&(o.contentEncoding=u),s&&s.size>0){const c=[...s];c.length===1?o.pattern=c[0].source:c.length>1&&(o.allOf=[...c.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},Kf=(e,t,n,r)=>{const o=n,{minimum:a,maximum:i,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?o.type="integer":o.type="number";const h=typeof c=="number"&&c>=(a??Number.NEGATIVE_INFINITY),d=typeof u=="number"&&u<=(i??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";h?f?(o.minimum=c,o.exclusiveMinimum=!0):o.exclusiveMinimum=c:typeof a=="number"&&(o.minimum=a),d?f?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u:typeof i=="number"&&(o.maximum=i),typeof s=="number"&&(o.multipleOf=s)},Jf=(e,t,n,r)=>{n.type="boolean"},Xf=(e,t,n,r)=>{n.not={}},Qf=(e,t,n,r)=>{},ep=(e,t,n,r)=>{},tp=(e,t,n,r)=>{const o=e._zod.def,a=ys(o.entries);a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),n.enum=a},np=(e,t,n,r)=>{const o=e._zod.def,a=[];for(const i of o.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");a.push(Number(i))}else a.push(i);if(a.length!==0)if(a.length===1){const i=a[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else a.every(i=>typeof i=="number")&&(n.type="number"),a.every(i=>typeof i=="string")&&(n.type="string"),a.every(i=>typeof i=="boolean")&&(n.type="boolean"),a.every(i=>i===null)&&(n.type="null"),n.enum=a},rp=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},op=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},ap=(e,t,n,r)=>{const o=n,a=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof l=="number"&&(o.maxItems=l),o.type="array",o.items=Se(a.element,t,{...r,path:[...r.path,"items"]})},ip=(e,t,n,r)=>{var u;const o=n,a=e._zod.def;o.type="object",o.properties={};const i=a.shape;for(const c in i)o.properties[c]=Se(i[c],t,{...r,path:[...r.path,"properties",c]});const l=new Set(Object.keys(i)),s=new Set([...l].filter(c=>{const h=a.shape[c]._zod;return t.io==="input"?h.optin===void 0:h.optout===void 0}));s.size>0&&(o.required=Array.from(s)),((u=a.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:a.catchall?a.catchall&&(o.additionalProperties=Se(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},lp=(e,t,n,r)=>{const o=e._zod.def,a=o.inclusive===!1,i=o.options.map((l,s)=>Se(l,t,{...r,path:[...r.path,a?"oneOf":"anyOf",s]}));a?n.oneOf=i:n.anyOf=i},sp=(e,t,n,r)=>{const o=e._zod.def,a=Se(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Se(o.right,t,{...r,path:[...r.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(a)?a.allOf:[a],...l(i)?i.allOf:[i]];n.allOf=s},cp=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=a.items.map((d,f)=>Se(d,t,{...r,path:[...r.path,i,f]})),u=a.rest?Se(a.rest,t,{...r,path:[...r.path,l,...t.target==="openapi-3.0"?[a.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=s,u&&(o.items=u)):t.target==="openapi-3.0"?(o.items={anyOf:s},u&&o.items.anyOf.push(u),o.minItems=s.length,u||(o.maxItems=s.length)):(o.items=s,u&&(o.additionalItems=u));const{minimum:c,maximum:h}=e._zod.bag;typeof c=="number"&&(o.minItems=c),typeof h=="number"&&(o.maxItems=h)},up=(e,t,n,r)=>{const o=n,a=e._zod.def;o.type="object";const i=a.keyType,l=i._zod.bag,s=l==null?void 0:l.patterns;if(a.mode==="loose"&&s&&s.size>0){const c=Se(a.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const h of s)o.patternProperties[h.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Se(a.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Se(a.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const u=i._zod.values;if(u){const c=[...u].filter(h=>typeof h=="string"||typeof h=="number");c.length>0&&(o.required=c)}},dp=(e,t,n,r)=>{const o=e._zod.def,a=Se(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[a,{type:"null"}]},hp=(e,t,n,r)=>{const o=e._zod.def;Se(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},fp=(e,t,n,r)=>{const o=e._zod.def;Se(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},pp=(e,t,n,r)=>{const o=e._zod.def;Se(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},gp=(e,t,n,r)=>{const o=e._zod.def;Se(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},mp=(e,t,n,r)=>{const o=e._zod.def,a=o.in._zod.traits.has("$ZodTransform"),i=t.io==="input"?a?o.out:o.in:o.out;Se(i,t,r);const l=t.seen.get(e);l.ref=i},bp=(e,t,n,r)=>{const o=e._zod.def;Se(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType,n.readOnly=!0},Xs=(e,t,n,r)=>{const o=e._zod.def;Se(o.innerType,t,r);const a=t.seen.get(e);a.ref=o.innerType},xp=(e,t,n,r)=>{const o=e._zod.innerType;Se(o,t,r);const a=t.seen.get(e);a.ref=o},vp=E("ZodISODateTime",(e,t)=>{hh.init(e,t),$e.init(e,t)});function kp(e){return Sf(vp,e)}const wp=E("ZodISODate",(e,t)=>{fh.init(e,t),$e.init(e,t)});function Sp(e){return $f(wp,e)}const $p=E("ZodISOTime",(e,t)=>{ph.init(e,t),$e.init(e,t)});function _p(e){return _f($p,e)}const Cp=E("ZodISODuration",(e,t)=>{gh.init(e,t),$e.init(e,t)});function Ap(e){return Cf(Cp,e)}const yp=(e,t)=>{Ns.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>od(e,n)},flatten:{value:n=>rd(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Wo,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Wo,2)}},isEmpty:{get(){return e.issues.length===0}}})},et=E("ZodError",yp,{Parent:Error}),Ip=Ua(et),Rp=Wa(et),Tp=Vr(et),Np=Yr(et),Ep=ld(et),Pp=sd(et),Mp=cd(et),Op=ud(et),Lp=dd(et),zp=hd(et),jp=fd(et),Bp=pd(et),Vi=new WeakMap;function Jn(e,t,n){const r=Object.getPrototypeOf(e);let o=Vi.get(r);if(o||(o=new Set,Vi.set(r,o)),!o.has(t)){o.add(t);for(const a in n){const i=n[a];Object.defineProperty(r,a,{configurable:!0,enumerable:!1,get(){const l=i.bind(this);return Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,a,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}const be=E("ZodType",(e,t)=>(ge.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Er(e,"input"),output:Er(e,"output")}}),e.toJSONSchema=qf(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>Ip(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Tp(e,n,r),e.parseAsync=async(n,r)=>Rp(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Np(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Ep(e,n,r),e.decode=(n,r)=>Pp(e,n,r),e.encodeAsync=async(n,r)=>Mp(e,n,r),e.decodeAsync=async(n,r)=>Op(e,n,r),e.safeEncode=(n,r)=>Lp(e,n,r),e.safeDecode=(n,r)=>zp(e,n,r),e.safeEncodeAsync=async(n,r)=>jp(e,n,r),e.safeDecodeAsync=async(n,r)=>Bp(e,n,r),Jn(e,"ZodType",{check(...n){const r=this.def;return this.clone(jt(r,{checks:[...r.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Bt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(Og(n,r))},superRefine(n,r){return this.check(Lg(n,r))},overwrite(n){return this.check(wn(n))},optional(){return Qi(this)},exactOptional(){return kg(this)},nullable(){return el(this)},nullish(){return Qi(el(this))},nonoptional(n){return Ag(this,n)},array(){return oe(this)},or(n){return G([this,n])},and(n){return gg(this,n)},transform(n){return tl(this,rc(n))},default(n){return $g(this,n)},prefault(n){return Cg(this,n)},catch(n){return Ig(this,n)},pipe(n){return tl(this,n)},readonly(){return Ng(this)},describe(n){const r=this.clone();return Ln.add(r,{description:n}),r},meta(...n){if(n.length===0)return Ln.get(this);const r=this.clone();return Ln.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){var n;return(n=Ln.get(e))==null?void 0:n.description},configurable:!0}),e)),Qs=E("_ZodString",(e,t)=>{Za.init(e,t),be.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Yf(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Jn(e,"_ZodString",{regex(...r){return this.check(Ef(...r))},includes(...r){return this.check(Of(...r))},startsWith(...r){return this.check(Lf(...r))},endsWith(...r){return this.check(zf(...r))},min(...r){return this.check(Nr(...r))},max(...r){return this.check(qs(...r))},length(...r){return this.check(Vs(...r))},nonempty(...r){return this.check(Nr(1,...r))},lowercase(r){return this.check(Pf(r))},uppercase(r){return this.check(Mf(r))},trim(){return this.check(Bf())},normalize(...r){return this.check(jf(...r))},toLowerCase(){return this.check(Df())},toUpperCase(){return this.check(Ff())},slugify(){return this.check(Hf())}})}),Dp=E("ZodString",(e,t)=>{Za.init(e,t),Qs.init(e,t),e.email=n=>e.check(ef(Fp,n)),e.url=n=>e.check(af(Hp,n)),e.jwt=n=>e.check(wf(rg,n)),e.emoji=n=>e.check(lf(Gp,n)),e.guid=n=>e.check(Ui(Yi,n)),e.uuid=n=>e.check(tf(sr,n)),e.uuidv4=n=>e.check(nf(sr,n)),e.uuidv6=n=>e.check(rf(sr,n)),e.uuidv7=n=>e.check(of(sr,n)),e.nanoid=n=>e.check(sf(Up,n)),e.guid=n=>e.check(Ui(Yi,n)),e.cuid=n=>e.check(cf(Wp,n)),e.cuid2=n=>e.check(uf(Zp,n)),e.ulid=n=>e.check(df(qp,n)),e.base64=n=>e.check(xf(eg,n)),e.base64url=n=>e.check(vf(tg,n)),e.xid=n=>e.check(hf(Vp,n)),e.ksuid=n=>e.check(ff(Yp,n)),e.ipv4=n=>e.check(pf(Kp,n)),e.ipv6=n=>e.check(gf(Jp,n)),e.cidrv4=n=>e.check(mf(Xp,n)),e.cidrv6=n=>e.check(bf(Qp,n)),e.e164=n=>e.check(kf(ng,n)),e.datetime=n=>e.check(kp(n)),e.date=n=>e.check(Sp(n)),e.time=n=>e.check(_p(n)),e.duration=n=>e.check(Ap(n))});function $(e){return Qh(Dp,e)}const $e=E("ZodStringFormat",(e,t)=>{we.init(e,t),Qs.init(e,t)}),Fp=E("ZodEmail",(e,t)=>{rh.init(e,t),$e.init(e,t)}),Yi=E("ZodGUID",(e,t)=>{th.init(e,t),$e.init(e,t)}),sr=E("ZodUUID",(e,t)=>{nh.init(e,t),$e.init(e,t)}),Hp=E("ZodURL",(e,t)=>{oh.init(e,t),$e.init(e,t)}),Gp=E("ZodEmoji",(e,t)=>{ah.init(e,t),$e.init(e,t)}),Up=E("ZodNanoID",(e,t)=>{ih.init(e,t),$e.init(e,t)}),Wp=E("ZodCUID",(e,t)=>{lh.init(e,t),$e.init(e,t)}),Zp=E("ZodCUID2",(e,t)=>{sh.init(e,t),$e.init(e,t)}),qp=E("ZodULID",(e,t)=>{ch.init(e,t),$e.init(e,t)}),Vp=E("ZodXID",(e,t)=>{uh.init(e,t),$e.init(e,t)}),Yp=E("ZodKSUID",(e,t)=>{dh.init(e,t),$e.init(e,t)}),Kp=E("ZodIPv4",(e,t)=>{mh.init(e,t),$e.init(e,t)}),Jp=E("ZodIPv6",(e,t)=>{bh.init(e,t),$e.init(e,t)}),Xp=E("ZodCIDRv4",(e,t)=>{xh.init(e,t),$e.init(e,t)}),Qp=E("ZodCIDRv6",(e,t)=>{vh.init(e,t),$e.init(e,t)}),eg=E("ZodBase64",(e,t)=>{kh.init(e,t),$e.init(e,t)}),tg=E("ZodBase64URL",(e,t)=>{Sh.init(e,t),$e.init(e,t)}),ng=E("ZodE164",(e,t)=>{$h.init(e,t),$e.init(e,t)}),rg=E("ZodJWT",(e,t)=>{Ch.init(e,t),$e.init(e,t)}),ec=E("ZodNumber",(e,t)=>{Fs.init(e,t),be.init(e,t),e._zod.processJSONSchema=(r,o,a)=>Kf(e,r,o),Jn(e,"ZodNumber",{gt(r,o){return this.check(Zi(r,o))},gte(r,o){return this.check(io(r,o))},min(r,o){return this.check(io(r,o))},lt(r,o){return this.check(Wi(r,o))},lte(r,o){return this.check(ao(r,o))},max(r,o){return this.check(ao(r,o))},int(r){return this.check(Ki(r))},safe(r){return this.check(Ki(r))},positive(r){return this.check(Zi(0,r))},nonnegative(r){return this.check(io(0,r))},negative(r){return this.check(Wi(0,r))},nonpositive(r){return this.check(ao(0,r))},multipleOf(r,o){return this.check(qi(r,o))},step(r,o){return this.check(qi(r,o))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function g(e){return Af(ec,e)}const og=E("ZodNumberFormat",(e,t)=>{Ah.init(e,t),ec.init(e,t)});function Ki(e){return yf(og,e)}const ag=E("ZodBoolean",(e,t)=>{yh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jf(e,n,r)});function L(e){return If(ag,e)}const ig=E("ZodAny",(e,t)=>{Ih.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qf()});function Un(){return Rf(ig)}const lg=E("ZodUnknown",(e,t)=>{Rh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ep()});function Ji(){return Tf(lg)}const sg=E("ZodNever",(e,t)=>{Th.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xf(e,n,r)});function cg(e){return Nf(sg,e)}const ug=E("ZodArray",(e,t)=>{Nh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ap(e,n,r,o),e.element=t.element,Jn(e,"ZodArray",{min(n,r){return this.check(Nr(n,r))},nonempty(n){return this.check(Nr(1,n))},max(n,r){return this.check(qs(n,r))},length(n,r){return this.check(Vs(n,r))},unwrap(){return this.element}})});function oe(e,t){return Gf(ug,e,t)}const dg=E("ZodObject",(e,t)=>{Ph.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ip(e,n,r,o),se(e,"shape",()=>t.shape),Jn(e,"ZodObject",{keyof(){return T(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Ji()})},loose(){return this.clone({...this._zod.def,catchall:Ji()})},strict(){return this.clone({...this._zod.def,catchall:cg()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return Ju(this,n)},safeExtend(n){return Xu(this,n)},merge(n){return Qu(this,n)},pick(n){return Yu(this,n)},omit(n){return Ku(this,n)},partial(...n){return ed(oc,this,n[0])},required(...n){return td(ac,this,n[0])}})});function A(e,t){const n={type:"object",shape:e??{},...U(t)};return new dg(n)}const tc=E("ZodUnion",(e,t)=>{Us.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lp(e,n,r,o),e.options=t.options});function G(e,t){return new tc({type:"union",options:e,...U(t)})}const hg=E("ZodDiscriminatedUnion",(e,t)=>{tc.init(e,t),Mh.init(e,t)});function fg(e,t,n){return new hg({type:"union",options:t,discriminator:e,...U(n)})}const pg=E("ZodIntersection",(e,t)=>{Oh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sp(e,n,r,o)});function gg(e,t){return new pg({type:"intersection",left:e,right:t})}const mg=E("ZodTuple",(e,t)=>{Lh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cp(e,n,r,o),e.rest=n=>e.clone({...e._zod.def,rest:n})});function nc(e,t,n){const r=t instanceof ge,o=r?n:t,a=r?t:null;return new mg({type:"tuple",items:e,rest:a,...U(o)})}const Xi=E("ZodRecord",(e,t)=>{zh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>up(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function xn(e,t,n){return!t||!t._zod?new Xi({type:"record",keyType:$(),valueType:e,...U(t)}):new Xi({type:"record",keyType:e,valueType:t,...U(n)})}const qo=E("ZodEnum",(e,t)=>{jh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(r,o,a)=>tp(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const a={};for(const i of r)if(n.has(i))a[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new qo({...t,checks:[],...U(o),entries:a})},e.exclude=(r,o)=>{const a={...t.entries};for(const i of r)if(n.has(i))delete a[i];else throw new Error(`Key ${i} not found in enum`);return new qo({...t,checks:[],...U(o),entries:a})}});function T(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new qo({type:"enum",entries:n,...U(t)})}const bg=E("ZodLiteral",(e,t)=>{Bh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>np(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function le(e,t){return new bg({type:"literal",values:Array.isArray(e)?e:[e],...U(t)})}const xg=E("ZodTransform",(e,t)=>{Dh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>op(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new As(e.constructor.name);n.addIssue=a=>{if(typeof a=="string")n.issues.push(Gn(a,n.value,t));else{const i=a;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Gn(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(a=>(n.value=a,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}});function rc(e){return new xg({type:"transform",transform:e})}const oc=E("ZodOptional",(e,t)=>{Ws.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xs(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Qi(e){return new oc({type:"optional",innerType:e})}const vg=E("ZodExactOptional",(e,t)=>{Fh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xs(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function kg(e){return new vg({type:"optional",innerType:e})}const wg=E("ZodNullable",(e,t)=>{Hh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>dp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function el(e){return new wg({type:"nullable",innerType:e})}const Sg=E("ZodDefault",(e,t)=>{Gh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>fp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function $g(e,t){return new Sg({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Rs(t)}})}const _g=E("ZodPrefault",(e,t)=>{Uh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Cg(e,t){return new _g({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Rs(t)}})}const ac=E("ZodNonOptional",(e,t)=>{Wh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Ag(e,t){return new ac({type:"nonoptional",innerType:e,...U(t)})}const yg=E("ZodCatch",(e,t)=>{Zh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ig(e,t){return new yg({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const ic=E("ZodPipe",(e,t)=>{Zs.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mp(e,n,r,o),e.in=t.in,e.out=t.out});function tl(e,t){return new ic({type:"pipe",in:e,out:t})}const Rg=E("ZodPreprocess",(e,t)=>{ic.init(e,t),qh.init(e,t)}),Tg=E("ZodReadonly",(e,t)=>{Vh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bp(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Ng(e){return new Tg({type:"readonly",innerType:e})}const Eg=E("ZodLazy",(e,t)=>{Yh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xp(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function Pg(e){return new Eg({type:"lazy",getter:e})}const Mg=E("ZodCustom",(e,t)=>{Kh.init(e,t),be.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rp(e,n)});function Og(e,t={}){return Uf(Mg,e,t)}function Lg(e,t){return Wf(e,t)}function lc(e,t){return new Rg({type:"pipe",in:rc(e),out:t})}var zg=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),jg=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,nl=A({style:A({textAlign:T(["left","center","right"]).optional().nullable(),padding:zg}).optional().nullable(),props:A({size:g().gt(0).optional().nullable(),shape:T(["circle","square","rounded"]).optional().nullable(),imageUrl:$().optional().nullable(),alt:$().optional().nullable()}).optional().nullable()});function Bg(e,t){switch(e){case"rounded":return t*.125;case"circle":return t;case"square":default:return}}var cr={size:64,imageUrl:"",alt:"",shape:"square"};function rl({style:e,props:t}){var n,r,o,a,i;const l=(n=t==null?void 0:t.size)!=null?n:cr.size,s=(r=t==null?void 0:t.imageUrl)!=null?r:cr.imageUrl,u=(o=t==null?void 0:t.alt)!=null?o:cr.alt,c=(a=t==null?void 0:t.shape)!=null?a:cr.shape,h={textAlign:(i=e==null?void 0:e.textAlign)!=null?i:void 0,padding:jg(e==null?void 0:e.padding)};return V.createElement("div",{style:h},V.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:Bg(c,l)}}))}const Dg=A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),Fg=nl.extend({props:nl.shape.props.unwrap().unwrap().extend({decorative:L().optional().nullable(),animation:Dg}).optional().nullable()}),jn={REGULAR:"400",MEDIUM:"500",SEMIBOLD:"600",BOLD:"700"},Xn=Object.values(jn);let sc=null;function ol(e){sc=e}function Hg(){return sc}function qa(){return"desktop"}const ze=1024,Be=640,$t=`@media (max-width: ${ze}px)`,He=`@media (max-width: ${Be}px)`,Kt=`@media (min-width: ${Be+1}px) and (max-width: ${ze}px)`,De=A({tablet:xn($(),Un()).optional().nullable(),mobile:xn($(),Un()).optional().nullable()}).optional().nullable();function z(e){return e??void 0}function Va(){return e=>e??void 0}const Gg=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M19 12H5M5 12L12 19M5 12L12 5",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Ug=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 4V20M12 20L18 14M12 20L6 14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Wg=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 6L6 18M6 18H14M6 18V10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Zg=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 6L18 18M18 18V10M18 18H10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},qg=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M20 12H4M4 12L10 18M4 12L10 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Vg=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Yg=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M12 20V4M12 4L6 10M12 4L18 10",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Kg=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 18L6 6M6 6V14M6 6H14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Jg=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 18L18 6M18 6H10M18 6V14",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Xg=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M5 12H19M19 12L12 5M19 12L12 19",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},Qg=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 9L12 15L18 9",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},em=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M7 13L12 18L17 13M7 6L12 11L17 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},tm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M15 18L9 12L15 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},nm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 17L13 12L18 7M11 17L6 12L11 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},rm=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M9 18L15 12L9 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},om=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M6 17L11 12L6 7M13 17L18 12L13 7",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},am=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",children:m.jsx("path",{d:"M18 15L12 9L6 15",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},im=e=>{const t=e.strokeColor||"black";return m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 14",fill:"none",children:m.jsx("path",{d:"M11 13L6 8L1 13M11 6L6 1L1 6",stroke:t,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};function lm(e,t={fontSize:16}){if(!e)return null;switch(e){case"arrow-left":return m.jsx(Gg,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-left":return m.jsx(qg,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-right":return m.jsx(Xg,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-right":return m.jsx(Vg,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down":return m.jsx(Ug,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-left":return m.jsx(Wg,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-down-right":return m.jsx(Zg,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up":return m.jsx(Yg,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-left":return m.jsx(Kg,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"arrow-narrow-up-right":return m.jsx(Jg,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left":return m.jsx(tm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right":return m.jsx(rm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up":return m.jsx(am,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down":return m.jsx(Qg,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-left-double":return m.jsx(nm,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-right-double":return m.jsx(om,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-up-double":return m.jsx(im,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});case"chevron-down-double":return m.jsx(em,{strokeColor:t.strokeColor,style:{fontSize:t.fontSize}});default:return null}}const sm=4,Pt=e=>({[e==="left"?"marginRight":"marginLeft"]:sm,display:"inline-flex",verticalAlign:"middle",pointerEvents:"none"}),cm=(e,t,n)=>({width:t,height:t,display:"block",backgroundColor:n,WebkitMaskImage:`url("${e}")`,maskImage:`url("${e}")`,WebkitMaskRepeat:"no-repeat",maskRepeat:"no-repeat",WebkitMaskPosition:"center",maskPosition:"center",WebkitMaskSize:"contain",maskSize:"contain"}),ur=e=>({display:"inline-flex",alignItems:"center",justifyContent:e}),Wn="data-ahd-var",cc=/(<span\s+data-ahd-var="[^"]*">\{\{[^}]+\}\}<\/span>)|(\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\})/g,um=/[&<>"']/g,dm={"&":"&","<":"<",">":">",'"':""","'":"'"};function pn(e){return e.replace(um,t=>dm[t])}function Jr(e){return!e||e.indexOf("{{")===-1?e:e.replace(cc,(t,n,r,o)=>{if(n)return n;const a=pn(o);return`<span ${Wn}="${a}">{{${o}}}</span>`})}function Ya(e){return!e||e.indexOf("{{")===-1?e:pn(e).replace(cc,(t,n,r,o)=>{if(n)return n;const a=pn(o);return`<span ${Wn}="${a}">{{${o}}}</span>`})}const hm=/\{\{\s*([a-zA-Z_][a-zA-Z0-9_-]*)\s*\}\}/g;function fm(e,t){if(!e||e.indexOf("{{")===-1)return e;const n=typeof window<"u"?window.location.search:void 0;if(n===void 0)return e;const r=new URLSearchParams(n||"");return e.replace(hm,(o,a)=>{const i=r.get(a);return i!==null?encodeURIComponent(i):o})}function pm(e,t){if(typeof window>"u")return;const n=new URLSearchParams(window.location.search??""),r=e.querySelectorAll(`[${Wn}]`);for(let o=0;o<r.length;o++){const a=r[o],i=n.get(a.getAttribute(Wn)||"");i!==null&&(a.textContent=i)}}const Vo="data-ahd-date",uc="data-ahd-date-format";function Yo(e,t){const n=pn(e),r=t??"",o=pn(r),a=dc(r)||`{{${n}}}`;return`<span ${Wn}="${n}" ${Vo}="${o}" ${uc}="relative">${pn(a)}</span>`}function dc(e,t=new Date){if(!e)return"";const n=new Date(e);if(Number.isNaN(n.getTime()))return"";const r=864e5,o=l=>new Date(l.getFullYear(),l.getMonth(),l.getDate()).getTime(),a=Math.round((o(n)-o(t))/r);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(void 0,{weekday:"short"});const i=n.getFullYear()===t.getFullYear();return n.toLocaleDateString(void 0,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function gm(e,t){if(typeof window>"u")return;const n=e.querySelectorAll(`[${Vo}][${uc}="relative"]`);for(let r=0;r<n.length;r++){const o=n[r],a=o.getAttribute(Vo)||"",i=dc(a,t);i&&(o.textContent=i)}}const mm=T(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function lo(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 bm=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),xm=$().regex(/^rgba?\([^\)]+\)$/i),vm=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),km=le("transparent"),Ht=G([bm,xm,vm,km]).nullable().optional(),wm=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Sm=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),$m=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),_m=G([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Cm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Am=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ym=A({color:Ht,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function Im(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 Rm(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${Im(t)}`}}const Tm=A({style:A({backgroundColor:Ht,fontSize:g().min(0).optional().nullable(),fontFamily:mm,fontWeight:T(["bold","normal",...Xn]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),buttonTextAlign:T(["left","center","right"]).optional().nullable(),padding:wm,margin:Sm}).optional().nullable(),props:A({buttonBackground:Ht,hoverBackground:Ht,hoverTextColor:Ht,borderRadius:_m,borderWidth:$m,borderColor:Ht,boxShadow:ym,buttonTextColor:Ht,fullWidth:L().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),size:T(["x-small","small","large","medium"]).optional().nullable(),sizeTablet:T(["x-small","small","large","medium"]).optional().nullable(),sizeMobile:T(["x-small","small","large","medium"]).optional().nullable(),text:$().optional().nullable(),url:$().optional().nullable(),action:T(["link","onNextStep","onPrevStep","onCloseStep","goToStep","postMessageEvent"]).optional().nullable(),openInNewTab:L().optional().nullable(),customAction:$().optional().nullable(),actionPayload:xn($(),Un()).optional().nullable(),iconEnabled:L().optional().nullable(),iconName:$().optional().nullable(),iconUrl:$().optional().nullable(),iconAlignment:T(["left","right"]).optional().nullable(),ariaLabel:$().optional().nullable(),goToStep:$().optional().nullable(),postMessageEvent:$().optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable(),responsive:De});function al(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 Ce={text:"",url:"",fullWidth:!1,widthType:"fit",width:200,widthUnit:"px",size:"medium",borderRadius:4,borderColor:"",boxShadow:null,buttonTextColor:"#000000",buttonBackground:"#ffffff",borderWidth:{top:0,right:0,bottom:0,left:0},action:"onNextStep",openInNewTab:!0,customAction:"",actionPayload:null,iconEnabled:!1,iconName:"",iconAlignment:"left",goToStep:"",postMessageEvent:""};function Nm({style:e,props:t}){const r=`bh-${V.useId().replace(/:/g,"")}`,o=(t==null?void 0:t.text)??Ce.text,a=typeof o=="string"&&o.indexOf("{{")!==-1,i=(Oe,lt)=>a?m.jsx("span",{style:Oe,"data-action":lt,dangerouslySetInnerHTML:{__html:Ya(o)}}):m.jsx("span",{style:Oe,"data-action":lt,children:o}),l=(t==null?void 0:t.url)??Ce.url,s=fm(l),u=typeof window>"u"&&typeof s=="string"&&s.indexOf("{{")!==-1,c=(t==null?void 0:t.fullWidth)??Ce.fullWidth,h=(t==null?void 0:t.widthType)??Ce.widthType,d=(t==null?void 0:t.width)??Ce.width,f=(t==null?void 0:t.widthUnit)??Ce.widthUnit,p=(t==null?void 0:t.widthTablet)??null,b=(t==null?void 0:t.widthMobile)??null,x=p??d,w=b??x,k=(t==null?void 0:t.widthTypeTablet)??h,S=(t==null?void 0:t.widthTypeMobile)??k,v=(t==null?void 0:t.size)??Ce.size,_=(t==null?void 0:t.sizeTablet)??v,y=(t==null?void 0:t.sizeMobile)??_,C=h,I=d,R=(t==null?void 0:t.buttonTextColor)??Ce.buttonTextColor,N=(t==null?void 0:t.buttonBackground)??Ce.buttonBackground,M=z(R),P=z(N),O=(t==null?void 0:t.iconEnabled)??Ce.iconEnabled,H=(t==null?void 0:t.iconName)??Ce.iconName,B=(t==null?void 0:t.iconAlignment)??Ce.iconAlignment,Z=(t==null?void 0:t.iconUrl)??null,F=!!(O&&(Z||H)),Y=(t==null?void 0:t.ariaLabel)??null,J=typeof o=="string"&&o.trim().length>0,te=Y&&Y.trim().length>0?Y:!J&&O&&H?H:void 0,X=(t==null?void 0:t.action)??Ce.action,ae=(t==null?void 0:t.openInNewTab)??Ce.openInNewTab,ee=((t==null?void 0:t.customAction)??Ce.customAction)||X,me=(t==null?void 0:t.actionPayload)??Ce.actionPayload,ve=(t==null?void 0:t.goToStep)??Ce.goToStep,ue=(t==null?void 0:t.postMessageEvent)??Ce.postMessageEvent,q=me||(ee==="goToStep"?{goToStep:ve||""}:null)||(ee==="postMessageEvent"?{postMessageEvent:ue||""}:null),K=q?JSON.stringify(q):void 0,D=(t==null?void 0:t.borderRadius)??Ce.borderRadius,j=(t==null?void 0:t.borderWidth)??Ce.borderWidth,re=(t==null?void 0:t.borderColor)??Ce.borderColor,he=z(re),Ge=(t==null?void 0:t.boxShadow)??Ce.boxShadow,Ne=Rm(Ge),_e=(t==null?void 0:t.hoverBackground)??null,Q=(t==null?void 0:t.hoverTextColor)??null,ye=al(v),Ie=Oe=>typeof Oe=="number"?`${Oe}px`:`${Oe.topLeft}px ${Oe.topRight}px ${Oe.bottomRight}px ${Oe.bottomLeft}px`,Me=(Oe,lt)=>{if(typeof Oe=="number")return`${Math.max(0,Oe-lt)}px`;const ro=Math.max(0,(Oe.topLeft||0)-lt),oo=Math.max(0,(Oe.topRight||0)-lt),tn=Math.max(0,(Oe.bottomRight||0)-lt),nn=Math.max(0,(Oe.bottomLeft||0)-lt);return`${ro}px ${oo}px ${tn}px ${nn}px`},Ue=re&&(re.includes("linear-gradient")||re.includes("radial-gradient")||re.includes("repeating-linear-gradient")),We=j&&((j.top??0)>0||(j.right??0)>0||(j.bottom??0)>0||(j.left??0)>0),W={top:(j==null?void 0:j.top)??0,right:(j==null?void 0:j.right)??0,bottom:(j==null?void 0:j.bottom)??0,left:(j==null?void 0:j.left)??0},Ee=(()=>{if(c)return"100%";switch(C){case"fill":return"100%";case"fixed":return`${I}${f}`;case"fit":default:return"auto"}})(),Ve=(e==null?void 0:e.buttonTextAlign)??(e==null?void 0:e.textAlign)??"center",Ke=Ve==="center"?"center":Ve==="right"?"flex-end":"flex-start",gt=()=>!re||re==="transparent"||!We?{border:"none"}:Ue?{borderTop:`${W.top}px solid transparent`,borderRight:`${W.right}px solid transparent`,borderBottom:`${W.bottom}px solid transparent`,borderLeft:`${W.left}px solid transparent`,borderImage:`${he} `,borderRadius:"0px"}:{borderTop:`${W.top}px solid ${he}`,borderRight:`${W.right}px solid ${he}`,borderBottom:`${W.bottom}px solid ${he}`,borderLeft:`${W.left}px solid ${he}`},ot=N&&(N.includes("linear-gradient")||N.includes("radial-gradient")||N.includes("repeating-linear-gradient")),at=R&&(R.includes("linear-gradient")||R.includes("radial-gradient")||R.includes("repeating-linear-gradient")),Ze=(e==null?void 0:e.backgroundColor)&&(e.backgroundColor.includes("linear-gradient")||e.backgroundColor.includes("radial-gradient")||e.backgroundColor.includes("repeating-linear-gradient")),Et={backgroundColor:Ze?void 0:(e==null?void 0:e.backgroundColor)??void 0,backgroundImage:Ze?(e==null?void 0:e.backgroundColor)??void 0:void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:Cm(e==null?void 0:e.padding),margin:Am(e==null?void 0:e.margin)},Je=gt(),mt=at?{backgroundImage:M,backgroundRepeat:"no-repeat",backgroundSize:"100% 100%",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",display:"inline-block"}:{color:M||void 0},bt=ot?void 0:P,Xe=ot?P:void 0,ne=(e==null?void 0:e.fontSize)??16,ke=`${ne}px`,Re=()=>Z?m.jsx("span",{"aria-hidden":"true",style:cm(Z,ne,at?"currentColor":M||"currentColor")}):lm(H,{strokeColor:at?void 0:M,fontSize:ne}),Ct={fontSize:ke,fontFamily:lo(e==null?void 0:e.fontFamily),fontWeight:(e==null?void 0:e.fontWeight)??jn.REGULAR,backgroundColor:bt,backgroundImage:Xe,borderRadius:Ue?"0px":Ie(D),...Je,...Ue&&We?{}:Ne,display:Ee==="100%"?"block":"inline-block",width:Ee,padding:`${ye[0]}px ${ye[1]}px`,textDecoration:"none",boxSizing:"border-box",justifyContent:Ke,lineHeight:"normal"},Qt=Ue&&We?m.jsx("div",{style:{display:Ee==="100%"?"block":"inline-block",padding:`${W.top}px ${W.right}px ${W.bottom}px ${W.left}px`,background:he,borderRadius:Ie(D),width:Ee,boxSizing:"border-box",...Ne},children:m.jsxs("button",{style:{cursor:"pointer",border:"none",borderRadius:Me(D,Math.max(W.top,W.right,W.bottom,W.left)),width:"100%",fontWeight:(e==null?void 0:e.fontWeight)??jn.REGULAR,fontFamily:lo(e==null?void 0:e.fontFamily),backgroundImage:Xe,backgroundColor:bt,textAlign:Ve,textDecoration:"none",fontSize:ke,padding:`${ye[0]}px ${ye[1]}px`,boxSizing:"border-box",lineHeight:"normal",...ur(Ke)},"data-action":ee,"data-action-payload":K,"data-goto-step":ee==="goToStep"&&ve?ve:void 0,"data-post-message-event":ee==="postMessageEvent"&&ue?ue:void 0,type:"button","aria-label":te,children:[F&&B==="left"?m.jsx("span",{style:Pt("left"),"data-action":ee,children:Re()}):null,i({...mt,pointerEvents:"none"},ee),F&&B==="right"?m.jsx("span",{style:Pt("right"),"data-action":ee,children:Re()}):null]})}):m.jsxs("button",{style:{cursor:"pointer",...Je,...Ne,borderRadius:Ie(D),width:Ee,fontWeight:(e==null?void 0:e.fontWeight)??jn.REGULAR,fontFamily:lo(e==null?void 0:e.fontFamily),backgroundColor:bt,backgroundImage:Xe,textAlign:Ve,textDecoration:"none",fontSize:ke,padding:`${ye[0]}px ${ye[1]}px`,boxSizing:"border-box",lineHeight:"normal",...ur(Ke)},"data-action":ee,"data-action-payload":K,"data-goto-step":ee==="goToStep"&&ve?ve:void 0,"data-post-message-event":ee==="postMessageEvent"&&ue?ue:void 0,type:"button","aria-label":te,children:[F&&B==="left"?m.jsx("span",{style:Pt("left"),"data-action":ee,children:Re()}):null,i({...mt,pointerEvents:"none"},ee),F&&B==="right"?m.jsx("span",{style:Pt("right"),"data-action":ee,children:Re()}):null]}),en=!!_e&&(_e.includes("linear-gradient")||_e.includes("radial-gradient")||_e.includes("repeating-linear-gradient")),ie=!!Q&&(Q.includes("linear-gradient")||Q.includes("radial-gradient")||Q.includes("repeating-linear-gradient")),de=[];_e&&(en?de.push(`background-image: ${_e} !important; background-color: transparent !important;`):de.push(`background-color: ${_e} !important; background-image: none !important;`)),Q&&!ie&&de.push(`color: ${Q} !important;`);const Ye=Q?ie?`background-image: ${Q} !important; background-repeat: no-repeat !important; background-size: 100% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; display: inline-block;`:`background-image: none !important; color: ${Q} !important; -webkit-text-fill-color: ${Q} !important;`:"",it=de.length>0||Ye?`#${r} a:hover, #${r} button:hover { ${de.join(" ")} transition: background-color 150ms ease, background-image 150ms ease, color 150ms ease; } #${r} a:hover span, #${r} button:hover span { ${Ye} }`:null,At=(Oe,lt,ro,oo)=>{const tn=[],nn=c||lt==="fill"?"100%":lt==="fixed"?`${ro}${f}`:"auto";tn.push(`width: ${nn} !important;`,"max-width: 100% !important;"),tn.push(`display: ${nn==="100%"?"block":"inline-block"} !important;`);const[yi,Bu]=al(oo);return tn.push(`padding: ${yi}px ${Bu}px !important;`),`${Oe} { #${r} a, #${r} button { ${tn.join(" ")} } #${r} > div { width: ${nn} !important; max-width: 100% !important; display: ${nn==="100%"?"block":"inline-block"} !important; } }`},yn=k!==h||_!==v||k==="fixed"&&x!==d,Ai=S!==h||y!==v||S==="fixed"&&w!==d,ar=yn||Ai?[yn?At($t,k,x,_):"",Ai?At(He,S,w,y):""].filter(Boolean).join(`
|
|
65
|
+
`):null;if(X!=="link")return m.jsxs("div",{id:r,className:"button-block",style:Et,children:[it&&m.jsx("style",{children:it}),ar&&m.jsx("style",{children:ar}),Qt]});const ju=Ue&&We?m.jsx("div",{style:{display:Ee==="100%"?"block":"inline-block",padding:`${W.top}px ${W.right}px ${W.bottom}px ${W.left}px`,background:he,borderRadius:Ie(D),width:Ee,boxSizing:"border-box",...Ne},children:m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Ct,border:"none",borderRadius:Me(D,Math.max(W.top,W.right,W.bottom,W.left)),width:"100%",...ur(Ke)},target:ae?"_blank":void 0,rel:ae?"noopener noreferrer":void 0,"aria-label":te,children:[F&&B==="left"?m.jsx("span",{style:Pt("left"),children:Re()}):null,i({...mt,pointerEvents:"none"}),F&&B==="right"?m.jsx("span",{style:Pt("right"),children:Re()}):null]})}):m.jsxs("a",{href:s,"data-ahd-href-tpl":u?s:void 0,style:{...Ct,borderRadius:Ie(D),...ur(Ke)},target:ae?"_blank":void 0,rel:ae?"noopener noreferrer":void 0,"aria-label":te,children:[F&&B==="left"?m.jsx("span",{style:Pt("left"),children:Re()}):null,i({...mt,pointerEvents:"none"}),F&&B==="right"?m.jsx("span",{style:Pt("right"),children:Re()}):null]});return m.jsxs("div",{id:r,className:"button-block",style:Et,children:[it&&m.jsx("style",{children:it}),ar&&m.jsx("style",{children:ar}),ju]})}const Em=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Pm=$().regex(/^rgba?\([^\)]+\)$/i),Mm=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Om=le("transparent"),il=G([Em,Pm,Mm,Om]).nullable().optional(),Lm=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),zm=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),jm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Bm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Dm=A({style:A({backgroundColor:il,padding:Lm,margin:zm}).optional().nullable(),props:A({lineColor:il,lineHeight:g().optional().nullable()}).optional().nullable()}),ll={lineHeight:1,lineColor:"#333333"};function Fm({style:e,props:t}){const n=(t==null?void 0:t.lineHeight)??ll.lineHeight,r=z((t==null?void 0:t.lineColor)??ll.lineColor),o={padding:jm(e==null?void 0:e.padding),margin:Bm(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor),"--ahd-divider-thickness":`${n}px`};return m.jsx("div",{className:"divider-block",style:o,children:m.jsx("hr",{style:{width:"100%",border:"none",borderTopStyle:"solid",borderTopColor:r,borderTopWidth:`var(--ahd-divider-thickness, ${n}px)`,margin:0}})})}const Hm=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Gm=$().regex(/^rgba?\([^\)]+\)$/i),Um=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Wm=le("transparent"),so=G([Hm,Gm,Um,Wm]).nullable().optional(),Zm=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),qm=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Vm=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ym=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Km=T(["inherit","MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function Jm(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 Xm=A({props:A({text:$().optional().nullable(),level:T(["h1","h2","h3","h4","h5","h6"]).optional().nullable(),linkType:T(["text","link"]).optional().nullable(),url:$().optional().nullable(),openInNewTab:L().optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable(),style:A({color:so,textColor:so,backgroundColor:so,fontFamily:Km,fontSize:g().optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...Xn]).optional().nullable(),fontStyle:T(["italic","normal"]).optional().nullable(),textDecoration:T(["none","underline","line-through","underline line-through"]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:Zm,margin:qm}).optional().nullable(),responsive:De}),In={level:"h2",text:"",linkType:"text",url:"",openInNewTab:!1};function Qm({props:e,style:t}){const n=(e==null?void 0:e.level)??In.level,r=(e==null?void 0:e.text)??In.text,o=typeof r=="string"&&r.indexOf("{{")!==-1,a=(e==null?void 0:e.linkType)??In.linkType,i=(e==null?void 0:e.url)??In.url,l=(e==null?void 0:e.openInNewTab)??In.openInNewTab,s=a==="link"&&i,u=(t==null?void 0:t.fontSize)??eb(n),c=(t==null?void 0:t.textColor)??(t==null?void 0:t.color),h=z(c),d=c&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(c),f=(t==null?void 0:t.textDecoration)??"none",p=d&&(f==="underline"||f==="underline line-through"),b=d&&(f==="line-through"||f==="underline line-through"),x=t==null?void 0:t.lineClamp,w=x&&x>0?{display:"-webkit-box",WebkitLineClamp:x,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},k={fontWeight:(t==null?void 0:t.fontWeight)??jn.BOLD,fontStyle:(t==null?void 0:t.fontStyle)??"normal",textDecoration:d?"none":f,margin:0,fontFamily:Jm(t==null?void 0:t.fontFamily),fontSize:u,...w},S=!!(x&&x>0),v=d?{lineHeight:"normal ",backgroundImage:h,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",position:"relative",...S?{}:{display:"inline-block"},...p?{paddingBottom:"0.08em"}:{}}:{color:h??void 0},_={position:"absolute",left:0,right:0,height:"0.08em",backgroundImage:h??void 0,pointerEvents:"none"},y={..._,bottom:0},C={..._,top:"50%",transform:"translateY(-50%)"},I=(t==null?void 0:t.backgroundColor)??void 0,R=z(I),N=typeof I=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(I),M=t==null?void 0:t.margin,P=((M==null?void 0:M.left)??0)+((M==null?void 0:M.right)??0),O={padding:Vm(t==null?void 0:t.padding),margin:Ym(t==null?void 0:t.margin),display:"block",width:P>0?`calc(100% - ${P}px)`:"100%",boxSizing:"border-box",textAlign:(t==null?void 0:t.textAlign)??void 0,wordBreak:"break-word",overflowWrap:"break-word",...N?{backgroundImage:R,backgroundRepeat:"no-repeat",backgroundSize:"cover"}:{backgroundColor:R}},H=n,B=m.jsx(H,{className:"heading-block",style:k,children:m.jsxs("span",{style:v,children:[o?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:Ya(r)}}):r,p?m.jsx("span",{style:y}):null,b?m.jsx("span",{style:C}):null]})});return m.jsx("div",{className:"heading-block-wrapper",style:O,children:s?m.jsx("a",{href:i,target:l?"_blank":void 0,rel:l?"noopener noreferrer":void 0,style:{display:"block",textDecoration:"none",color:!d&&h?h:void 0},children:B}):B})}function eb(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 hc="comm",fc="rule",pc="decl",tb="@import",nb="@namespace",rb="@keyframes",ob="@layer",ab=Math.abs,Bn=String.fromCharCode;function gc(e){return e.trim()}function Ko(e,t,n){return e.replace(t,n)}function gn(e,t){return e.charCodeAt(t)|0}function vn(e,t,n){return e.slice(t,n)}function St(e){return e.length}function ib(e){return e.length}function dr(e,t){return t.push(e),e}var Xr=1,kn=1,mc=0,Qe=0,Pe=0,Sn="";function Ka(e,t,n,r,o,a,i,l){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Xr,column:kn,length:i,return:"",siblings:l}}function lb(){return Pe}function sb(){return Pe=Qe>0?gn(Sn,--Qe):0,kn--,Pe===10&&(kn=1,Xr--),Pe}function ht(){return Pe=Qe<mc?gn(Sn,Qe++):0,kn++,Pe===10&&(kn=1,Xr++),Pe}function zt(){return gn(Sn,Qe)}function wr(){return Qe}function Qr(e,t){return vn(Sn,e,t)}function Zn(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 cb(e){return Xr=kn=1,mc=St(Sn=e),Qe=0,[]}function ub(e){return Sn="",e}function co(e){return gc(Qr(Qe-1,Jo(e===91?e+2:e===40?e+1:e)))}function db(e){for(;(Pe=zt())&&Pe<33;)ht();return Zn(e)>2||Zn(Pe)>3?"":" "}function hb(e,t){for(;--t&&ht()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return Qr(e,wr()+(t<6&&zt()==32&&ht()==32))}function Jo(e){for(;ht();)switch(Pe){case e:return Qe;case 34:case 39:e!==34&&e!==39&&Jo(Pe);break;case 40:e===41&&Jo(e);break;case 92:ht();break}return Qe}function fb(e,t){for(;ht()&&e+Pe!==57;)if(e+Pe===84&&zt()===47)break;return"/*"+Qr(t,Qe-1)+"*"+Bn(e===47?e:ht())}function pb(e){for(;!Zn(zt());)ht();return Qr(e,Qe)}function gb(e){return ub(Sr("",null,null,null,[""],e=cb(e),0,[0],e))}function Sr(e,t,n,r,o,a,i,l,s){for(var u=0,c=0,h=i,d=0,f=0,p=0,b=1,x=1,w=1,k=0,S=0,v="",_=o,y=a,C=r,I=v;x;)switch(p=S,S=ht()){case 40:p!=108&&gn(I,h-1)==58?(k++,I+="("):I+=co(S);break;case 41:k--,I+=")";break;case 34:case 39:case 91:I+=co(S);break;case 9:case 10:case 13:case 32:if(k>0){I+=Bn(S);break}I+=db(p);break;case 92:I+=hb(wr()-1,7);continue;case 47:switch(zt()){case 42:case 47:dr(mb(fb(ht(),wr()),t,n,s),s),(Zn(p||1)==5||Zn(zt()||1)==5)&&St(I)&&vn(I,-1,void 0)!==" "&&(I+=" ");break;default:I+="/"}break;case 123*b:l[u++]=St(I)*w;case 125*b:case 59:case 0:if(k>0&&S){I+=Bn(S);break}switch(S){case 0:case 125:x=0;case 59+c:w==-1&&(I=Ko(I,/\f/g,"")),f>0&&(St(I)-h||b===0)&&dr(f>32?cl(I+";",r,n,h-1,s):cl(Ko(I," ","")+";",r,n,h-2,s),s);break;case 59:I+=";";default:if(dr(C=sl(I,t,n,u,c,o,l,v,_=[],y=[],h,a),a),S===123)if(c===0)Sr(I,t,C,C,_,a,h,l,y);else{switch(d){case 99:if(gn(I,3)===110)break;case 108:if(gn(I,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Sr(e,C,C,r&&dr(sl(e,C,C,0,0,o,l,v,o,_=[],h,y),y),o,y,h,l,r?_:y):Sr(I,C,C,C,[""],y,0,l,y)}}u=c=f=0,b=w=1,v=I="",h=i;break;case 58:h=1+St(I),f=p;default:if(b<1){if(S==123)--b;else if(S==125&&b++==0&&sb()==125)continue}switch(I+=Bn(S),S*b){case 38:w=c>0?1:(I+="\f",-1);break;case 44:if(k>0)break;l[u++]=(St(I)-1)*w,w=1;break;case 64:zt()===45&&(I+=co(ht())),d=zt(),c=h=St(v=I+=pb(wr())),S++;break;case 45:p===45&&St(I)==2&&(b=0)}}return a}function sl(e,t,n,r,o,a,i,l,s,u,c,h){for(var d=o-1,f=o===0?a:[""],p=ib(f),b=0,x=0,w=0;b<r;++b)for(var k=0,S=vn(e,d+1,d=ab(x=i[b])),v=e;k<p;++k)(v=gc(x>0?f[k]+" "+S:Ko(S,/&\f/g,f[k])))&&(s[w++]=v);return Ka(e,t,n,o===0?fc:l,s,u,c,h)}function mb(e,t,n,r){return Ka(e,t,n,hc,Bn(lb()),vn(e,2,-2),0,r)}function cl(e,t,n,r,o){return Ka(e,t,n,pc,vn(e,0,r),vn(e,r+1,-1),r,o)}function Xo(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function bb(e,t,n,r){switch(e.type){case ob:if(e.children.length)break;case tb:case nb:case pc:return e.return=e.return||e.value;case hc:return"";case rb:return e.return=e.value+"{"+Xo(e.children,r)+"}";case fc:if(!St(e.value=e.props.join(",")))return""}return St(n=Xo(e.children,r))?e.return=e.value+"{"+n+"}":""}const xb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),vb=$().regex(/^rgba?\([^\)]+\)$/i),kb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),wb=le("transparent"),ul=G([xb,vb,kb,wb]).nullable().optional(),Sb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),$b=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),_b=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Cb=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ab=T(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function yb(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 Ib=A({style:A({color:ul,backgroundColor:ul,fontFamily:Ab,fontSize:g().min(0).optional().nullable(),textAlign:T(["left","right","center"]).optional().nullable(),padding:Sb,margin:$b}).optional().nullable(),props:A({contents:$().optional().nullable()}).optional().nullable()}),Rb=/<style[^>]*>([\s\S]*?)<\/style>/gi;function Tb(e,t){let n="";const r=e.replace(Rb,(a,i)=>(n+=i,""));if(!n.trim())return{markup:r,css:""};const o=Xo(gb(`[${t}]{${n}}`),bb);return{markup:r,css:o}}function Nb({style:e,props:t}){const n=t==null?void 0:t.contents,[r,o]=V.useState(!1),i=`data-html-scope-${V.useId().replace(/[^a-zA-Z0-9-]/g,"")}`,{markup:l,css:s}=V.useMemo(()=>n?Tb(n,i):{markup:"",css:""},[n,i]),u={color:z(e==null?void 0:e.color),backgroundColor:z(e==null?void 0:e.backgroundColor),fontFamily:yb(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:_b(e==null?void 0:e.padding),margin:Cb(e==null?void 0:e.margin)},c=V.useRef(null);V.useEffect(()=>{const b=c.current;if(!b)return;b.querySelectorAll("iframe").forEach(w=>{try{w.style.pointerEvents=r?"auto":"none"}catch{}})},[n,r]);const h=b=>{r||o(!0)},d=()=>{o(!1)},f=`[${i}] pre,[${i}] code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}`;if(!n)return m.jsx("div",{ref:c,className:"html-block",style:u,children:m.jsx("style",{dangerouslySetInnerHTML:{__html:f}})});const p=`<style>${f}${s}</style>${Jr(l)}`;return m.jsx("div",{ref:c,className:"html-block",style:u,onClick:h,onBlur:d,tabIndex:0,[i]:"",dangerouslySetInnerHTML:{__html:p}})}const Eb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Pb=$().regex(/^rgba?\([^\)]+\)$/i),Mb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Ob=le("transparent"),Lb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),zb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),jb=G([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),$r=G([Eb,Pb,Mb,Ob]).nullable().optional(),Bb=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Db=A({color:$r,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function Fb(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 Hb(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${Fb(t)}`}}const Gb=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Ub=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Wb(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 Zb(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const qb=A({style:A({padding:Lb,margin:zb,backgroundColor:$r.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:g().optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthUnitTablet:T(["px","%"]).optional().nullable(),widthUnitMobile:T(["px","%"]).optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),height:g().optional().nullable(),heightTablet:g().positive().optional().nullable(),heightMobile:g().positive().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:L().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),borderRadius:jb,borderColor:$r.default(null),borderWidth:Bb,boxShadow:Db,iconName:$().optional().nullable(),iconFillColor:$r.default(null),rotation:g().min(0).max(360).optional().nullable(),rotationTablet:g().min(0).max(360).optional().nullable(),rotationMobile:g().min(0).max(360).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:A({enabled:L(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:T(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()}),Le={widthType:"fit",width:300,widthUnit:"px",height:null,url:"",alt:"",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",contentAlignment:"middle",borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null,rotation:0,hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};let Vb=0;function Yb({style:e,props:t}){const n=V.useMemo(()=>`ahd-img-${++Vb}`,[]),r=qa(),o=(e==null?void 0:e.textAlign)??void 0,a=o==="center"?"center":o==="right"?"flex-end":"flex-start",i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s={padding:Gb(e==null?void 0:e.padding),margin:Ub(e==null?void 0:e.margin),...Wb(z(e==null?void 0:e.backgroundColor)),display:"flex",justifyContent:a,width:l>0?`max(0px, calc(100% - ${l}px))`:"100%",boxSizing:"border-box"},u=(t==null?void 0:t.showLink)??(t!=null&&t.linkHref?!0:Le.showLink),c=(t==null?void 0:t.linkHref)??Le.linkHref,h=u&&c?c:null,d=(t==null?void 0:t.linkTarget)??Le.linkTarget,f=(t==null?void 0:t.widthType)??Le.widthType,p=(t==null?void 0:t.widthTypeTablet)??f,b=(t==null?void 0:t.widthTypeMobile)??p,x=(t==null?void 0:t.width)??Le.width,w=(t==null?void 0:t.widthUnit)??Le.widthUnit,k=(t==null?void 0:t.widthUnitTablet)??w,S=(t==null?void 0:t.widthUnitMobile)??k,v=(t==null?void 0:t.widthTablet)??null,_=(t==null?void 0:t.widthMobile)??null,y=v??x,C=_??y,I=(t==null?void 0:t.height)??Le.height,R=(t==null?void 0:t.heightTablet)??null,N=(t==null?void 0:t.heightMobile)??null,M=R??I,P=N??M,O=I,H=(t==null?void 0:t.url)??Le.url,B=(t==null?void 0:t.urlTablet)??null,Z=(t==null?void 0:t.urlMobile)??null,F=!h&&((t==null?void 0:t.decorative)??Le.decorative),Y=F?"":(t==null?void 0:t.alt)??Le.alt,J=F?{role:"presentation","aria-hidden":!0}:{},te=(t==null?void 0:t.contentAlignment)??Le.contentAlignment,X=(t==null?void 0:t.borderRadius)??Le.borderRadius,ae=z((t==null?void 0:t.borderColor)??Le.borderColor),Ae=(t==null?void 0:t.borderWidth)??Le.borderWidth,ee=(t==null?void 0:t.boxShadow)??Le.boxShadow,me=Hb(ee),ve=(t==null?void 0:t.rotation)??Le.rotation,ue=(t==null?void 0:t.rotationTablet)??null,q=(t==null?void 0:t.rotationMobile)??null,K=ue??ve,D=q??K,j=ne=>{const ke=ne*Math.PI/180,Re=ne%180!==0?1/(Math.abs(Math.cos(ke))+Math.abs(Math.sin(ke))):1;return`rotate(${ne}deg) scale(${Re})`},re=ve,he=re?{transform:j(re),transformOrigin:"center"}:{},Ne=ue!=null||q!=null?`
|
|
66
|
+
${$t} { .${n} img, .${n} > div { transform: ${j(K)} !important; transform-origin: center !important; } }
|
|
67
|
+
${He} { .${n} img, .${n} > div { transform: ${j(D)} !important; transform-origin: center !important; } }
|
|
68
|
+
`.trim():null,_e=Zb(ae,Ae),Q=ne=>typeof ne=="number"?`${ne}px`:`${ne.topLeft}px ${ne.topRight}px ${ne.bottomRight}px ${ne.bottomLeft}px`,ye=(ne,ke)=>{const Re=Math.max((ke==null?void 0:ke.top)||0,(ke==null?void 0:ke.right)||0,(ke==null?void 0:ke.bottom)||0,(ke==null?void 0:ke.left)||0);if(typeof ne=="number")return`${Math.max(0,ne-Re)}px`;const Ct=Math.max(0,(ne.topLeft||0)-Re),Qt=Math.max(0,(ne.topRight||0)-Re),en=Math.max(0,(ne.bottomRight||0)-Re),ie=Math.max(0,(ne.bottomLeft||0)-Re);return`${Ct}px ${Qt}px ${en}px ${ie}px`},Me=(()=>{switch(f){case"fill":return"100%";case"fixed":return x;case"fit":default:return}})(),Ue=ne=>ne==="mobile"?b:ne==="tablet"?p:f,We=ne=>ne==="mobile"?S:ne==="tablet"?k:w,W=ne=>{const ke=Ue(ne);if(ke==="fill")return"100%";if(ke==="fit")return"auto";const Re=ne==="mobile"?C:ne==="tablet"?y:x,Ct=We(ne);return`${Re}${Ct}`},pt=W(r),Ee=We(r),Ve=typeof pt=="string"&&pt.endsWith("%")?{display:"block",width:"100%"}:{},Ke=H,ot=(t==null?void 0:t.widthTypeTablet)!=null||(t==null?void 0:t.widthTypeMobile)!=null||f==="fixed"?`
|
|
69
|
+
${$t} { .${n} img { width: ${W("tablet")} !important; max-width: 100% !important; } }
|
|
70
|
+
${He} { .${n} img { width: ${W("mobile")} !important; max-width: 100% !important; } }
|
|
71
|
+
`.trim():null,at=R!=null||N!=null?`
|
|
72
|
+
${$t} { .${n} img { height: ${M?`${M}px`:"auto"} !important; } }
|
|
73
|
+
${He} { .${n} img { height: ${P?`${P}px`:"auto"} !important; } }
|
|
74
|
+
`.trim():null,Ze=(t==null?void 0:t.hoverEffect)??Le.hoverEffect,Et=Ze!=null&&Ze.enabled?`
|
|
75
75
|
.${n} picture { display: inline-block; transition: transform ${Ze.duration??500}ms ${Ze.easing??"ease-in-out"}; }
|
|
76
76
|
.${n}:hover picture { transform: scale(${Ze.scale??1.05}); }
|
|
77
|
-
`.trim():null,
|
|
78
|
-
`)||null,
|
|
79
|
-
${
|
|
80
|
-
${
|
|
81
|
-
`.trim(),
|
|
82
|
-
${
|
|
83
|
-
${
|
|
84
|
-
`.trim(),w=(t==null?void 0:t.linkHref)??null,
|
|
77
|
+
`.trim():null,Je=[ot,at,Ne,Et].filter(Boolean).join(`
|
|
78
|
+
`)||null,An=ae&&(ae.includes("linear-gradient")||ae.includes("radial-gradient")||ae.includes("repeating-linear-gradient")),mt=(Z||B)&&m.jsxs(m.Fragment,{children:[Z&&m.jsx("source",{media:He.replace("@media ",""),srcSet:Z}),(B??Z)&&m.jsx("source",{media:$t.replace("@media ",""),srcSet:B??Z??H})]}),bt=m.jsxs("picture",{style:Ve,children:[mt,m.jsx("img",{alt:Y,...J,src:Ke,width:typeof Me=="number"&&Ee==="px"?Me:void 0,height:O!==null?O:void 0,style:{width:pt??(Me==="100%"?"100%":typeof Me=="number"?`${Me}${Ee}`:"auto"),height:O?`${O}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:te,display:f==="fill"?"block":"inline-block",maxWidth:"100%",boxSizing:"border-box",borderRadius:X?Q(X):void 0}})]}),Xe=An?m.jsx("div",{style:{borderRadius:X?Q(X):void 0,..._e,...me,...he},children:m.jsxs("picture",{children:[mt,m.jsx("img",{alt:Y,...J,src:Ke,width:typeof Me=="number"&&Ee==="px"?Me:void 0,height:O!==null?O:void 0,style:{width:"100%",height:O?`${O}px`:"auto",outline:"none",border:"none",textDecoration:"none",verticalAlign:te,display:"block",maxWidth:pt??(typeof Me=="number"?`${Me}${Ee}`:"auto"),boxSizing:"border-box",borderRadius:X?ye(X,Ae):void 0}})]})}):ae?m.jsx("div",{style:{borderRadius:X?Q(X):void 0,..._e,...me,...he},children:bt}):me.boxShadow?m.jsx("div",{style:{borderRadius:X?Q(X):void 0,...me,...he},children:bt}):V.cloneElement(bt,{children:V.Children.map(bt.props.children,ne=>(ne==null?void 0:ne.type)==="img"?V.cloneElement(ne,{style:{...ne.props.style,...he}}):ne)});return h?m.jsxs("div",{className:`image-block ${n}`,style:s,children:[Je&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Je}}),m.jsx("a",{href:h,style:{textDecoration:"none"},target:d,rel:d==="_blank"?"noopener noreferrer":void 0,children:Xe})]}):m.jsxs("div",{className:`image-block ${n}`,style:s,children:[Je&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Je}}),Xe]})}const Kb=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Jb=$().regex(/^rgba?\([^\)]+\)$/i),Xb=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Qb=le("transparent"),cn=G([Kb,Jb,Xb,Qb]).nullable().optional(),e0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),t0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),n0=G([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),r0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),o0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,a0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function i0(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 l0(e,t){return!e||e==="transparent"?{}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}}const uo=e=>typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`,s0=A({color:cn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function c0(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 u0(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${c0(t)}`}}const d0=A({style:A({padding:e0,margin:t0,backgroundColor:cn.default(null),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({url:$().optional().nullable(),urlTablet:$().optional().nullable(),urlMobile:$().optional().nullable(),alt:$().optional().nullable(),decorative:L().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),width:g().positive().optional().nullable(),widthTablet:g().positive().optional().nullable(),widthMobile:g().positive().optional().nullable(),borderRadius:n0,borderColor:cn.default(null),borderWidth:r0,boxShadow:s0,iconName:$().optional().nullable(),iconNameTablet:$().optional().nullable(),iconNameMobile:$().optional().nullable(),iconFillColor:cn.default(null),iconFillColorTablet:cn.default(null),iconFillColorMobile:cn.default(null),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),st={url:"",alt:"Logo",decorative:!1,showLink:!1,linkHref:null,linkTarget:"_blank",width:160,borderRadius:0,borderColor:null,borderWidth:null,boxShadow:null};let h0=0;function f0({style:e,props:t}){const n=(t==null?void 0:t.url)??st.url,r=(t==null?void 0:t.urlTablet)??null,o=(t==null?void 0:t.urlMobile)??null,a=(t==null?void 0:t.showLink)??st.showLink,i=(t==null?void 0:t.linkHref)??st.linkHref,l=a&&i?i:null,s=(t==null?void 0:t.linkTarget)??st.linkTarget,u=!l&&((t==null?void 0:t.decorative)??st.decorative),c=u?"":(t==null?void 0:t.alt)??st.alt,h=u?{role:"presentation","aria-hidden":!0}:{},d=(t==null?void 0:t.width)??st.width,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=(t==null?void 0:t.borderRadius)??st.borderRadius,x=z((t==null?void 0:t.borderColor)??st.borderColor),w=(t==null?void 0:t.borderWidth)??st.borderWidth,k=(t==null?void 0:t.boxShadow)??st.boxShadow,S=u0(k),v=f??d,_=p??v,y=d,C=n,I=`ahd-logo-${++h0}`,R=`
|
|
79
|
+
${$t} { .${I} img { width: ${v}px !important; max-width: 100% !important; } }
|
|
80
|
+
${He} { .${I} img { width: ${_}px !important; max-width: 100% !important; } }
|
|
81
|
+
`.trim(),N={padding:o0(e==null?void 0:e.padding),margin:a0(e==null?void 0:e.margin),...i0(z(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?uo(b):void 0},P=m.jsxs("picture",{children:[o&&m.jsx("source",{media:He.replace("@media ",""),srcSet:o}),r&&m.jsx("source",{media:$t.replace("@media ",""),srcSet:r}),m.jsx("img",{alt:c,...h,src:C,width:y,style:M})]}),O=x&&x!=="transparent"?m.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?uo(b):void 0,...l0(x,w),...S},children:P}):S.boxShadow?m.jsx("div",{style:{display:"inline-block",verticalAlign:"top",borderRadius:b?uo(b):void 0,...S},children:P}):P;return l?m.jsxs("div",{className:`logo-block ${I}`,style:N,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),m.jsx("a",{href:l,style:{textDecoration:"none",display:"inline-block",verticalAlign:"top"},target:s,rel:s==="_blank"?"noopener noreferrer":void 0,"aria-label":u?"Logo":c||"Logo",children:O})]}):m.jsxs("div",{className:`logo-block ${I}`,style:N,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:R}}),O]})}const p0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),g0=$().regex(/^rgba?\([^\)]+\)$/i),m0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),b0=le("transparent"),x0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),v0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),k0=G([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),w0=G([p0,g0,m0,b0]).nullable().optional(),S0=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),$0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,_0=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function C0(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 A0(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const y0=A({style:A({padding:x0,margin:v0,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:G([g(),$()]).optional().nullable(),height:G([g(),$()]).optional().nullable(),widthTablet:G([g(),$()]).optional().nullable(),widthMobile:G([g(),$()]).optional().nullable(),heightTablet:G([g(),$()]).optional().nullable(),heightMobile:G([g(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),name:$().optional().nullable(),borderRadius:k0,borderColor:w0.default(null),borderWidth:S0}).optional().nullable()});function I0(e){return e==="center"?"center":e==="right"?"flex-end":"flex-start"}function R0(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 T0=0;function N0({style:e,props:t}){const n=`ahd-video-${++T0}`,r=(e==null?void 0:e.textAlign)??"left",o={padding:$0(e==null?void 0:e.padding),margin:_0(e==null?void 0:e.margin),...C0(z(e==null?void 0:e.backgroundColor)),display:"flex",justifyContent:I0(r),textAlign:r},a=(t==null?void 0:t.width)??"100%",i=(t==null?void 0:t.height)??"inherit",l=(t==null?void 0:t.widthTablet)??null,s=(t==null?void 0:t.widthMobile)??null,u=l??a,c=s??a,h=(t==null?void 0:t.heightTablet)===null?"auto":(t==null?void 0:t.heightTablet)??i,d=(t==null?void 0:t.heightMobile)===null?"auto":(t==null?void 0:t.heightMobile)??i,f=a,p=i,b=P=>P==null?void 0:typeof P=="number"?`${P}px`:P,x=`
|
|
82
|
+
${Kt} { .${n} video, .${n} iframe { ${b(u)?`width: ${b(u)} !important;`:""} ${b(h)?`height: ${b(h)} !important;`:""} max-width: 100% !important; } }
|
|
83
|
+
${He} { .${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,k=(t==null?void 0:t.borderRadius)??0,S=P=>typeof P=="number"?`${P}px`:`${P.topLeft}px ${P.topRight}px ${P.bottomRight}px ${P.bottomLeft}px`,v=(P,O)=>{const H=Math.max((O==null?void 0:O.top)||0,(O==null?void 0:O.right)||0,(O==null?void 0:O.bottom)||0,(O==null?void 0:O.left)||0);if(typeof P=="number")return`${Math.max(0,P-H)}px`;const B=Math.max(0,(P.topLeft||0)-H),Z=Math.max(0,(P.topRight||0)-H),F=Math.max(0,(P.bottomRight||0)-H),Y=Math.max(0,(P.bottomLeft||0)-H);return`${B}px ${Z}px ${F}px ${Y}px`},_=z((t==null?void 0:t.borderColor)??null),y=(t==null?void 0:t.borderWidth)??null,C=A0(_,y),I=_&&(_.includes("linear-gradient")||_.includes("radial-gradient")||_.includes("repeating-linear-gradient")),R=R0(t==null?void 0:t.url),N=R?m.jsx("iframe",{width:f,height:p,src:R,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:S(k)}},R):m.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??(t==null?void 0:t.name)??void 0,src:(t==null?void 0:t.url)??"",width:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:S(k),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url),M=I?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...C},children:R?m.jsx("iframe",{width:f,height:p,src:R,title:(t==null?void 0:t.alt)??"YouTube video",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",borderRadius:v(k,y)}},R):m.jsx("video",{controls:!0,src:(t==null?void 0:t.url)??"",width:f,height:p,style:{width:b(f),height:b(p),maxWidth:"100%",border:"none",display:"block",overflow:"clip",objectFit:"cover",borderRadius:v(k,y),verticalAlign:(t==null?void 0:t.contentAlignment)??"middle"}},t==null?void 0:t.url)}):_?m.jsx("div",{style:{borderRadius:k?S(k):void 0,...C},children:N}):N;return w?m.jsxs("div",{className:`video-block ${n}`,style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:w,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:M})]}):m.jsxs("div",{className:`video-block ${n}`,style:o,children:[x&&m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),M]})}var E0=A({props:A({height:g().gte(0).optional().nullish()}).optional().nullable()}),P0={height:16};const ft=[{key:"inherit",label:"Inherit",value:"inherit"},{key:"BOOK_SANS",label:"Book sans",value:'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif'},{key:"ORGANIC_SANS",label:"Organic sans",value:'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif'},{key:"GEOMETRIC_SANS",label:"Geometric sans",value:'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif'},{key:"HEAVY_SANS",label:"Heavy sans",value:'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif'},{key:"ROUNDED_SANS",label:"Rounded sans",value:'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif'},{key:"MODERN_SERIF",label:"Modern serif",value:'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif'},{key:"BOOK_SERIF",label:"Book serif",value:'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif'},{key:"MONOSPACE",label:"Monospace",value:'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace'},{key:"ROBOTO",label:"Roboto",value:'Roboto, "Helvetica Neue", Arial, sans-serif'},{key:"OPEN_SANS",label:"Open Sans",value:'"Open Sans", "Helvetica Neue", Arial, sans-serif'},{key:"LATO",label:"Lato",value:'Lato, "Helvetica Neue", Arial, sans-serif'},{key:"POPPINS",label:"Poppins",value:'Poppins, "Helvetica Neue", Arial, sans-serif'},{key:"INTER",label:"Inter",value:'Inter, "Helvetica Neue", Arial, sans-serif'},{key:"MONTSERRAT",label:"Montserrat",value:'Montserrat, "Helvetica Neue", Arial, sans-serif'},{key:"RALEWAY",label:"Raleway",value:'Raleway, "Helvetica Neue", Arial, sans-serif'},{key:"NUNITO",label:"Nunito",value:'Nunito, "Helvetica Neue", Arial, sans-serif'},{key:"PLAYFAIR_DISPLAY",label:"Playfair Display",value:'"Playfair Display", Georgia, serif'},{key:"MERRIWEATHER",label:"Merriweather",value:"Merriweather, Georgia, serif"},{key:"PT_SANS",label:"PT Sans",value:'"PT Sans", "Helvetica Neue", Arial, sans-serif'},{key:"OSWALD",label:"Oswald",value:'Oswald, "Helvetica Neue", Arial, sans-serif'},{key:"SOURCE_SANS_PRO",label:"Source Sans Pro",value:'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif'},{key:"RUBIK",label:"Rubik",value:'Rubik, "Helvetica Neue", Arial, sans-serif'},{key:"WORK_SANS",label:"Work Sans",value:'"Work Sans", "Helvetica Neue", Arial, sans-serif'},{key:"NOTO_SANS",label:"Noto Sans",value:'"Noto Sans", "Helvetica Neue", Arial, sans-serif'},{key:"DANCING_SCRIPT",label:"Dancing Script",value:'"Dancing Script", cursive, sans-serif'},{key:"PACIFICO",label:"Pacifico",value:"Pacifico, cursive, sans-serif"},{key:"LOBSTER",label:"Lobster",value:"Lobster, cursive, sans-serif"},{key:"BEBAS_NEUE",label:"Bebas Neue",value:'"Bebas Neue", cursive, sans-serif'}],M0={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]},O0=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`};`${Object.entries(M0).map(([e,t])=>`family=${O0(e,t)}`).join("&")}`;const bc=ft.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));bc.map(e=>e.css);const L0=e=>e.replace(/"/g,'\\"'),z0=e=>((e||"").split(",")[0]||"").replace(/['"]/g,"").trim().toLowerCase();new Set(ft.filter(e=>e.key!=="inherit").map(e=>z0(e.value)));const dl=ft.find(e=>e.key==="INTER");dl&&dl.value;bc.map(e=>{const t=L0(e.css);return`
|
|
85
85
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
|
|
86
86
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
|
|
87
87
|
content: '${e.label}';
|
|
88
88
|
font-family: ${e.css};
|
|
89
89
|
}`}).join(`
|
|
90
|
-
`);const
|
|
91
|
-
`),t=
|
|
92
|
-
`),n=
|
|
93
|
-
`);return[e,`${
|
|
94
|
-
`)}const
|
|
95
|
-
`),
|
|
96
|
-
`)}const
|
|
97
|
-
`)}const
|
|
90
|
+
`);const _r=[{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}],j0={P:"Normal",DIV:"Normal",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",H6:"H6",BLOCKQUOTE:"Quote",PRE:"Code"};new Set(Object.keys(j0));const xc="@container ahd-page (min-width: 641px) and (max-width: 1024px)",vc="@container ahd-page (max-width: 640px)";function B0(){const e=_r.map(r=>`[data-fs-desktop="${r.px}"]{font-size:${r.px}px}`).join(`
|
|
91
|
+
`),t=_r.map(r=>`[data-fs-tablet="${r.px}"]{font-size:${r.px}px !important}`).join(`
|
|
92
|
+
`),n=_r.map(r=>`[data-fs-mobile="${r.px}"]{font-size:${r.px}px !important}`).join(`
|
|
93
|
+
`);return[e,`${Kt}{${t}}`,`${xc}{${t}}`,`${He}{${n}}`,`${vc}{${n}}`].join(`
|
|
94
|
+
`)}const Ja=B0(),D0=new Set(_r.map(e=>e.px));function F0(e){if(!e)return"";const t={desktop:new Set,tablet:new Set,mobile:new Set},n=/data-fs-(desktop|tablet|mobile)="(\d+)"/g;let r;for(;(r=n.exec(e))!==null;){const s=Number(r[2]);!Number.isFinite(s)||D0.has(s)||t[r[1]].add(s)}const o=s=>Array.from(t[s]).map(u=>`[data-fs-${s}="${u}"]{font-size:${u}px${s==="desktop"?"":" !important"}}`).join(`
|
|
95
|
+
`),a=o("desktop"),i=o("tablet"),l=o("mobile");return!a&&!i&&!l?"":[a,i&&`${Kt}{${i}}`,i&&`${xc}{${i}}`,l&&`${He}{${l}}`,l&&`${vc}{${l}}`].filter(Boolean).join(`
|
|
96
|
+
`)}const hl="ahd-responsive-font-size";function H0(){if(typeof document>"u"||document.getElementById(hl))return;const e=document.createElement("style");e.id=hl,e.setAttribute("data-ahd-generated","responsive-font-size"),e.textContent=Ja,document.head.appendChild(e)}H0();const G0=20;function U0(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 o=`ol[data-mll="decimal-dot"]${" ol".repeat(n-1)}`,a=[];for(let l=1;l<=n;l++)l>1&&a.push('"."'),a.push(`counter(mll-${l})`);const i=a.join(" ");n===2?(t.push(`${o} { list-style-type: none; counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${o} > li { counter-increment: mll-${n}; position: relative; }`),t.push(`${o} > li::before { content: ${i}; position: absolute; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`)):(t.push(`${o} { counter-reset: mll-${n}; padding-inline-start: 44px; }`),t.push(`${o} > li { counter-increment: mll-${n}; }`),t.push(`${o} > li::before { content: ${i}; right: calc(100% + 8px); white-space: nowrap; font-variant-numeric: tabular-nums; }`))}return t.join(`
|
|
97
|
+
`)}const W0=`
|
|
98
98
|
/* Match the block's paragraph rhythm: this app zeros <p> margins via a
|
|
99
99
|
.ahd-page-root p rule, so list items and nested lists must also carry
|
|
100
100
|
zero vertical margin or the list feels double-spaced next to
|
|
@@ -154,7 +154,7 @@ ol[data-mll="decimal-paren"] ol ol ol > li::before { content: counter(mll-d) ")"
|
|
|
154
154
|
buildDecimalDotCSS so arbitrary nesting depth (up to
|
|
155
155
|
DECIMAL_DOT_MAX_LEVEL) renders the correctly concatenated marker
|
|
156
156
|
instead of repeating the last-defined level's string. */
|
|
157
|
-
${
|
|
157
|
+
${U0(G0)}
|
|
158
158
|
|
|
159
159
|
/* ── list-style-type schemes: tight hanging indent similar to plain
|
|
160
160
|
browser <ol> so the marker character sits close to the text. ────── */
|
|
@@ -188,62 +188,62 @@ ul[data-mll="bullet-arrow"] > li::before { content: "▸"; position: absolute; l
|
|
|
188
188
|
ul[data-mll="bullet-arrow"] ul { list-style-type: none; }
|
|
189
189
|
ul[data-mll="bullet-arrow"] ul > li::before { content: "◦"; }
|
|
190
190
|
ul[data-mll="bullet-arrow"] ul ul > li::before { content: "▪"; }
|
|
191
|
-
|
|
192
|
-
.text-block a{color:#2563eb;
|
|
191
|
+
`;function Z0(e){return typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e)}function Xa(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function Qa(e){if(e)return`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`}function q0(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function V0(e,t,n){return t?(typeof e=="string"?e.trim():"").length===0?n:typeof e=="string"?e:n:null}const Y0=T(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional();function K0(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 J0=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),X0=$().regex(/^rgba?\([^\)]+\)$/i),Q0=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),ex=le("transparent"),fl=G([J0,X0,Q0,ex]).nullable().optional(),tx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),nx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),rx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ox=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,ax=A({style:A({color:fl,backgroundColor:fl,fontSize:g().gte(0).optional().nullable(),lineClamp:g().int().gte(0).optional().nullable(),fontFamily:Y0,fontWeight:T(["bold","normal",...Xn]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:tx,margin:nx}).optional().nullable(),props:A({text:$().optional().nullable(),editorType:T(["summernote","quill"]).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),ix={text:""};function lx({style:e,props:t}){const n=e==null?void 0:e.lineClamp,r=n&&n>0?{display:"-webkit-box",WebkitLineClamp:n,WebkitBoxOrient:"vertical",overflow:"hidden"}:{},o=(e==null?void 0:e.color)??void 0,a=Z0(o),i=z(o),l=z(e==null?void 0:e.backgroundColor),s={...a?{backgroundImage:i,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"transparent"}:{color:i},background:a?void 0:l??void 0,fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:K0(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:rx(e==null?void 0:e.padding),margin:ox(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},u=r,c=Jr((t==null?void 0:t.text)??ix.text);return m.jsxs("div",{className:"text-block",style:s,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:`.text-block ul,.text-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}.text-block li{display:list-item}
|
|
192
|
+
.text-block a{color:#2563eb;text-decoration:underline}/* keep in sync with LINK_COLOR (editor-sample InlineTextToolbar/types.ts) */
|
|
193
193
|
.text-block pre,.text-block code{white-space:pre-wrap;word-break:break-all;overflow-x:auto;max-width:100%}
|
|
194
|
-
${
|
|
195
|
-
${
|
|
196
|
-
${
|
|
197
|
-
${
|
|
198
|
-
${
|
|
199
|
-
`.trim(),
|
|
194
|
+
${W0}
|
|
195
|
+
${Ja}
|
|
196
|
+
${F0(c)}`}}),m.jsx("div",{style:u,dangerouslySetInnerHTML:{__html:c}})]})}const sx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),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=A({style:A({padding:sx,margin:cx,backgroundColor:$().regex(/^#[0-9a-fA-F]{6}$/).optional().nullable(),textAlign:T(["center","left","right"]).optional().nullable()}).optional().nullable(),props:A({width:g().optional().nullable(),height:g().optional().nullable(),widthTablet:G([g(),$()]).optional().nullable(),widthMobile:G([g(),$()]).optional().nullable(),heightTablet:G([g(),$()]).optional().nullable(),heightMobile:G([g(),$()]).optional().nullable(),url:$().optional().nullable(),alt:$().optional().nullable(),linkHref:$().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()});let fx=0;function px({style:e,props:t}){const n=`ahd-youtube-url-${++fx}`,r={padding:ux(e==null?void 0:e.padding),margin:dx(e==null?void 0:e.margin),backgroundColor:z(e==null?void 0:e.backgroundColor),textAlign:(e==null?void 0:e.textAlign)??void 0},o=(t==null?void 0:t.linkHref)??null,a=(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,h=l??a,d=s??h,f=u??i,p=c??f,b=a,x=i,w=v=>v==null?void 0:typeof v=="number"?`${v}px`:v,k=`
|
|
197
|
+
${$t} { .${n} video { ${w(h)?`width: ${w(h)} !important;`:""} ${w(f)?`height: ${w(f)} !important;`:""} max-width: 100% !important; } }
|
|
198
|
+
${He} { .${n} video { ${w(d)?`width: ${w(d)} !important;`:""} ${w(p)?`height: ${w(p)} !important;`:""} max-width: 100% !important; } }
|
|
199
|
+
`.trim(),S=m.jsx("video",{controls:!0,preload:"metadata","aria-label":(t==null?void 0:t.alt)??void 0,src:(t==null?void 0:t.url)??"",width:b,height:x,style:{width:b,height:x,outline:"none",border:"none",textDecoration:"none",verticalAlign:(t==null?void 0:t.contentAlignment)??"middle",display:"inline-block",maxWidth:"100%"}});return o?m.jsxs("div",{className:`youtube-url-block ${n}`,style:r,children:[k&&m.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),m.jsx("a",{href:o,style:{textDecoration:"none"},target:"_blank",rel:"noopener noreferrer",children:S})]}):m.jsxs("div",{className:`youtube-url-block ${n}`,style:r,children:[k&&m.jsx("style",{dangerouslySetInnerHTML:{__html:k}}),S]})}const gx=e=>null;function mx(e){return null}const bx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),xx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),vx=A({responsive:De,style:A({padding:bx,margin:xx,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:L().optional().nullable()}).optional().nullable()}),kx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,wx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Sx({style:e,props:t}){var d,f;const n=(t==null?void 0:t.src)??"",r=(t==null?void 0:t.width)??"100%",o=t==null?void 0:t.height,a=!o||/^\s*(0|0px|100vh)\s*$/i.test(o)?"800px":o,i=(t==null?void 0:t.title)??"Embedded content",l=(t==null?void 0:t.allowFullscreen)??!0,s=V.useRef(null),u=(((d=e==null?void 0:e.margin)==null?void 0:d.left)??0)+(((f=e==null?void 0:e.margin)==null?void 0:f.right)??0),c={padding:kx(e==null?void 0:e.padding),margin:wx(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:`calc(100% - ${u}px)`},h={width:`var(--ahd-iframe-width,${r})`,height:`var(--ahd-iframe-height,${a})`,minHeight:`var(--ahd-iframe-height,${a})`,border:"none",display:"inline-block",verticalAlign:"top"};return n?m.jsx("div",{className:"iframe-block",style:c,children:m.jsx("iframe",{ref:s,src:n,title:i,style:h,allowFullScreen:l})}):m.jsx(mx,{icon:m.jsx(gx,{}),title:"IFrame — enter a URL in the panel",sx:c})}const $x=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),_x=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Cx=A({responsive:De,style:A({padding:$x,margin:_x,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({src:$().optional().nullable(),width:$().optional().nullable(),height:$().optional().nullable(),title:$().optional().nullable(),allowFullscreen:L().optional().nullable()}).optional().nullable()}),Ax=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},yx=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},Ix=({props:e,style:t})=>{var c,h;const{src:n,width:r,height:o,title:a,allowFullscreen:i=!0}=e??{};if(!n)return m.jsx(m.Fragment,{});const l=(((c=t==null?void 0:t.margin)==null?void 0:c.left)??0)+(((h=t==null?void 0:t.margin)==null?void 0:h.right)??0),s=t??{},u={width:`calc(100% - ${l}px)`,padding:Ax(s.padding),margin:yx(s.margin),textAlign:s.textAlign||void 0};return m.jsx("div",{className:"calendly-block",style:u,children:m.jsx("iframe",{src:n,title:a||"Calendly scheduling",allowFullScreen:i??!0,style:{width:`var(--ahd-calendly-width,${r||"100%"})`,height:`var(--ahd-calendly-height,${o||"800px"})`,border:"none",display:"inline-block",verticalAlign:"top"},loading:"lazy"})})};var Rx=Object.defineProperty,pl=Object.getOwnPropertySymbols,Tx=Object.prototype.hasOwnProperty,Nx=Object.prototype.propertyIsEnumerable,gl=(e,t,n)=>t in e?Rx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ex=(e,t)=>{for(var n in t||(t={}))Tx.call(t,n)&&gl(e,n,t[n]);if(pl)for(var n of pl(t))Nx.call(t,n)&&gl(e,n,t[n]);return e};function Px(e){return function({type:n,data:r}){const o=e[n].Component;return V.createElement(o,Ex({},r))}}function Mx(e){const t=Object.keys(e).map(n=>A({type:le(n),data:e[n].schema}));return fg("type",t).transform(n=>n)}const Ox=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Lx=$().regex(/^rgba?\([^\)]+\)$/i),zx=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),jx=le("transparent"),Bx=G([Ox,Lx,zx,jx]).nullable().optional(),Dx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Fx=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ho=nc([g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish(),g().optional().nullish()]).optional().nullable(),fo=T(["fixed","fill","fit"]).optional().nullable(),Hx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Gx=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,kc=A({style:A({backgroundColor:Bx,padding:Dx,margin:Fx}).optional().nullable(),props:A({widthType:fo,widthTypeTablet:fo,widthTypeMobile:fo,fixedWidths:ho,fixedWidthsTablet:ho,fixedWidthsMobile:ho,columnsCount:G([le(2),le(3),le(4),le(5)]).optional().nullable(),columnsGap:g().optional().nullable(),columnsGapTablet:g().optional().nullable(),columnsGapMobile:g().optional().nullable(),columnsDirection:T(["horizontal","vertical"]).optional().nullable(),columnsDirectionTablet:T(["horizontal","vertical"]).optional().nullable(),columnsDirectionMobile:T(["horizontal","vertical"]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),contentAlignmentTablet:T(["top","middle","bottom"]).optional().nullable(),contentAlignmentMobile:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),Wt={columnsCount:2,columnsGap:0,columnsDirection:"horizontal",contentAlignment:"middle",widthType:"fill"};function ml(e){return`${e} table, ${e} tbody, ${e} tr, ${e} td { display: block !important; width: 100% !important; }
|
|
200
200
|
${e} table { table-layout: auto !important; }
|
|
201
201
|
${e} td { box-sizing: border-box; padding-left: 0 !important; padding-right: 0 !important; vertical-align: top !important; }
|
|
202
|
-
${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function
|
|
202
|
+
${e} td + td { margin-top: var(--columns-gap, 0px) !important; }`}function bl(e){return`${e} table { display: table !important; table-layout: fixed !important; }
|
|
203
203
|
${e} tbody { display: table-row-group !important; }
|
|
204
204
|
${e} tr { display: table-row !important; width: auto !important; }
|
|
205
205
|
${e} td { display: table-cell !important; width: auto !important; }
|
|
206
|
-
${e} td + td { margin-top: 0 !important; }`}function
|
|
207
|
-
`)}function
|
|
208
|
-
@media (max-width: ${
|
|
206
|
+
${e} td + td { margin-top: 0 !important; }`}function xl(e,t,n,r,o,a){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,h=[`padding-left: ${u}px !important`,`padding-right: ${c}px !important`];r==="fixed"&&(o==null?void 0:o[l])!=null?h.push(`width: ${o[l]}px !important`):h.push("width: auto !important"),i.push(`${s} { ${h.join("; ")}; }`)}return i.join(`
|
|
207
|
+
`)}function Ux(e,t){const n=`.${e}.columns-container`,r=(o,a)=>!a&&o?`${n} td { vertical-align: ${o} !important; }`:"";return`
|
|
208
|
+
@media (max-width: ${ze}px) {
|
|
209
209
|
${n} { --columns-gap: ${t.tabletGap}px; }
|
|
210
|
-
${t.tabletVertical?
|
|
211
|
-
${t.tabletVertical?"":
|
|
212
|
-
${
|
|
210
|
+
${t.tabletVertical?ml(n):bl(n)}
|
|
211
|
+
${t.tabletVertical?"":xl(n,t.columnsCount,t.tabletGap,t.tabletWidthType,t.tabletFixedWidths)}
|
|
212
|
+
${r(t.tabletAlign,t.tabletVertical)}
|
|
213
213
|
}
|
|
214
|
-
@media (max-width: ${
|
|
214
|
+
@media (max-width: ${Be}px) {
|
|
215
215
|
${n} { --columns-gap: ${t.mobileGap}px; }
|
|
216
|
-
${t.mobileVertical?
|
|
217
|
-
${t.mobileVertical?"":
|
|
218
|
-
${
|
|
219
|
-
}
|
|
220
|
-
`.trim()}let
|
|
221
|
-
`);const
|
|
222
|
-
`)}function
|
|
223
|
-
`),
|
|
216
|
+
${t.mobileVertical?ml(n):bl(n)}
|
|
217
|
+
${t.mobileVertical?"":xl(n,t.columnsCount,t.mobileGap,t.mobileWidthType,t.mobileFixedWidths)}
|
|
218
|
+
${r(t.mobileAlign,t.mobileVertical)}
|
|
219
|
+
}
|
|
220
|
+
`.trim()}let Wx=0;function Zx({style:e,columns:t,props:n}){const r=(n==null?void 0:n.widthType)??Wt.widthType,o=(n==null?void 0:n.widthTypeTablet)??r,a=(n==null?void 0:n.widthTypeMobile)??o,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)??Wt.columnsGap,c=(n==null?void 0:n.columnsGapTablet)??u,h=(n==null?void 0:n.columnsGapMobile)??c,d=(n==null?void 0:n.columnsDirection)??Wt.columnsDirection,f=(n==null?void 0:n.columnsDirectionTablet)??d,p=(n==null?void 0:n.columnsDirectionMobile)??f,b=(n==null?void 0:n.contentAlignment)??Wt.contentAlignment,x=(n==null?void 0:n.contentAlignmentTablet)??b,w=(n==null?void 0:n.contentAlignmentMobile)??x,k=(n==null?void 0:n.columnsCount)??Wt.columnsCount,S=r,v=i,_=u,y=d,I={widthType:S,columnsCount:k,columnsGap:_,columnsDirection:y,contentAlignment:b,fixedWidths:v},R=y==="vertical",N=V.useMemo(()=>`ahd-cc-${Wx+=1}`,[]),M=Ux(N,{tabletVertical:f==="vertical",mobileVertical:p==="vertical",columnsCount:k,tabletGap:c,mobileGap:h,tabletWidthType:o,mobileWidthType:a,tabletFixedWidths:l,mobileFixedWidths:s,tabletAlign:x,mobileAlign:w}),P={background:z(e==null?void 0:e.backgroundColor),padding:Hx(e==null?void 0:e.padding),margin:Gx(e==null?void 0:e.margin),"--columns-gap":`${_}px`};return m.jsxs("div",{className:`columns-container ${N}${R?" is-stacked":""}`,style:P,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:M}}),m.jsx("table",{role:"presentation","aria-hidden":"false",align:"center",width:"100%",cellPadding:"0",border:0,style:{tableLayout:R||S==="fit"?"auto":"fixed",borderCollapse:"collapse",...R?{display:"block",width:"100%"}:{}},children:m.jsx("tbody",{style:{width:"100%",...R?{display:"block"}:{}},children:m.jsxs("tr",{style:{width:"100%",...R?{display:"block"}:{}},children:[m.jsx(Rn,{index:0,props:I,columns:t}),m.jsx(Rn,{index:1,props:I,columns:t}),m.jsx(Rn,{index:2,props:I,columns:t}),m.jsx(Rn,{index:3,props:I,columns:t}),m.jsx(Rn,{index:4,props:I,columns:t})]})})})]})}function Rn({index:e,props:t,columns:n}){var h;const r=(t==null?void 0:t.columnsCount)??Wt.columnsCount;if(e>=r)return null;const o=t.columnsDirection==="vertical",a=o?0:qx(e,t),i=o?0:Vx(e,t),l=(h=t.fixedWidths)==null?void 0:h[e],s={boxSizing:o?"border-box":"content-box",verticalAlign:o?"top":(t==null?void 0:t.contentAlignment)??Wt.contentAlignment,paddingLeft:a?`${a}px`:0,paddingRight:i?`${i}px`:0,width:t.widthType==="fixed"&&!o&&l!=null?`${l}px`:void 0,...o?{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 m.jsx("td",{style:s,width:c,children:u})}function qx(e,{columnsGap:t}){return e===0?0:t/2}function Vx(e,{columnsGap:t,columnsCount:n}){return e===n-1?0:t/2}const Yx=kc.shape.props.unwrap().unwrap().shape,Kx=kc.shape.style.unwrap().unwrap().shape,Jx=A({style:A({...Kx,borderRadius:G([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({...Yx,columns:nc([A({childrenIds:oe($())}),A({childrenIds:oe($())}),A({childrenIds:oe($())})])}).optional().nullable()});function Xx(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Qx({style:e,props:t}){const{columns:n,...r}=t??{};let o;n&&(o=n.map(d=>d.childrenIds.map(f=>m.jsx(Te,{id:f},f))));const{borderRadius:a,borderColor:i,borderWidth:l,...s}=e??{},u={};if(a!=null&&(u.borderRadius=Xx(a)),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=a!=null||!!i,h=m.jsx(Zx,{props:r,columns:o,style:s});return c?m.jsx("div",{style:u,children:h}):m.jsx(m.Fragment,{children:h})}const ev=A({style:A({backgroundColor:$().optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:G([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({columnsCount:g().int().min(2).optional().nullable(),columnsGap:g().optional().nullable(),columnsGapTablet:g().optional().nullable(),columnsGapMobile:g().optional().nullable(),wrap:L().optional().nullable(),desktopLayout:T(["wrap","row"]).optional().nullable(),mobileLayout:T(["wrap","row"]).optional().nullable(),tabletLayout:T(["wrap","row"]).optional().nullable(),columnShrink:oe(L()).optional().nullable(),columnShrinkTablet:oe(L()).optional().nullable(),columnShrinkMobile:oe(L()).optional().nullable(),equalColumns:L().optional().nullable(),columns:oe(A({childrenIds:oe($())})).optional().nullable(),align:T(["flex-start","center","flex-end","stretch"]).optional().nullable(),justify:T(["flex-start","center","flex-end","space-between","space-around"]).optional().nullable(),reverseColumns:L().optional().nullable(),repeatableEnabled:L().optional().nullable()}).optional().nullable()});function tv(e){if(e!=null)return typeof e=="number"?`${e}px`:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function nv(e){var o,a;const t=e??{},n=(((o=t.margin)==null?void 0:o.left)??0)+(((a=t.margin)==null?void 0:a.right)??0),r={boxSizing:"border-box",width:n>0?`calc(100% - ${n}px)`:"100%"};if(t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.padding){const i=t.padding;r.padding=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}if(t.margin){const i=t.margin;r.margin=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}if(t.borderRadius!=null&&(r.borderRadius=tv(t.borderRadius),r.overflow="hidden"),t.borderColor){const i=t.borderWidth??{top:1,right:1,bottom:1,left:1};r.borderStyle="solid",r.borderColor=t.borderColor,r.borderWidth=`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`}return r}function po(e,t,n){const r=e??{},o=r.desktopLayout??(r.wrap?"wrap":"row"),a=r.tabletLayout??o,i=r.mobileLayout??"wrap",l=r.columnShrink??[],s=r.columnShrinkTablet??l,u=r.columnShrinkMobile??s,c=r.columnsGap??16,h=r.columnsGapTablet??c,d=r.columnsGapMobile??h,f={desktop:{layout:o,shrink:l,gap:c},tablet:{layout:a,shrink:s,gap:h},mobile:{layout:i,shrink:u,gap:d}}[t];return{layout:f.layout,gap:f.gap,shrink:Array.from({length:n},(p,b)=>f.shrink[b]===!0),equalColumns:r.equalColumns===!0,reverseColumns:r.reverseColumns===!0}}function rv(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 ov(e,{shrink:t,equalColumns:n}){return t[e]?"shrink":n?"equal":"plain"}function go(e,t,n,r){const{layout:o,reverseColumns:a,gap:i}=n,l=d=>d.map(f=>`${t}:nth-child(${f+1})`).join(", "),s=Array.from({length:r},(d,f)=>f);if(o==="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: ${a?"row-reverse":"row"}; flex-wrap: nowrap; gap: ${i}px; }`],h=new Map;for(const d of s){const f=ov(d,n);h.set(f,[...h.get(f)??[],d])}for(const[d,f]of h)c.push(`${l(f)} { ${rv(d)} max-width: 100%; }`);return c.join(`
|
|
222
|
+
`)}function av(e,t){const{columnsCount:n,desktop:r,tablet:o,mobile:a}=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=[r,o,a].some(d=>d.shrink.some(Boolean))?[r,o,a].flatMap(d=>d.shrink.map((f,p)=>f?p:-1).filter(f=>f>=0)).filter((d,f,p)=>p.indexOf(d)===f).map(d=>{const f=`${l}:nth-child(${d+1})`;return`${f} > *, ${f} .container-block { width: auto; max-width: 100%; }`}).join(`
|
|
224
224
|
`):"",h=(d,f)=>`@media (max-width: ${d}px) {
|
|
225
225
|
${f}
|
|
226
226
|
}
|
|
227
227
|
@container ahd-page (max-width: ${d}px) {
|
|
228
228
|
${f}
|
|
229
|
-
}`;return[s,
|
|
230
|
-
`)}let
|
|
231
|
-
@media (max-width: ${
|
|
229
|
+
}`;return[s,c,go(i,l,r,n),h(ze,go(i,l,o,n)),h(Be,go(i,l,a,n))].filter(Boolean).join(`
|
|
230
|
+
`)}let iv=0;function lv({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,r=(t==null?void 0:t.align)??"flex-start",o=(t==null?void 0:t.justify)??"flex-start",a=(t==null?void 0:t.columns)??[],i=Array.from({length:n},(c,h)=>a[h]??{childrenIds:[]}),l=V.useMemo(()=>`ahd-fc-${iv+=1}`,[]),s=av(l,{columnsCount:n,desktop:po(t,"desktop",n),tablet:po(t,"tablet",n),mobile:po(t,"mobile",n)}),u={alignItems:r,justifyContent:o};return m.jsxs("div",{className:`flex-columns-block ${l}`,style:nv(e),"data-cols":n,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:s}}),m.jsx("div",{className:"fc-row",style:u,children:i.map((c,h)=>m.jsx("div",{className:"fc-col",children:c.childrenIds.map(d=>m.jsx(Te,{id:d},d))},h))})]})}const sv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),cv=$().regex(/^rgba?\([^\)]+\)$/i),uv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),dv=le("transparent"),hv=G([sv,cv,uv,dv]).nullable().optional(),fv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),pv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),gv=A({style:A({backgroundColor:hv,padding:fv,margin:pv}).optional().nullable(),props:A({columnsCount:g().int().min(1).optional().nullable(),columnsCountTablet:g().int().min(1).optional().nullable(),columnsCountMobile:g().int().min(1).optional().nullable(),rowsCount:g().int().min(1).optional().nullable(),columnsGap:g().optional().nullable(),rowsGap:g().optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable()}).optional().nullable()}),mv=gv.shape.props.unwrap().unwrap().shape,bv=A({backgroundColor:$().optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:G([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable(),xv=A({style:bv,props:A({...mv,cells:oe(A({childrenIds:oe($()),colStart:g().int().min(1).optional().nullable(),colSpan:g().int().min(1).optional().nullable(),rowStart:g().int().min(1).optional().nullable(),rowSpan:g().int().min(1).optional().nullable()})),columnsCountTablet:G([le(1),le(2),le(3),le(4),le(5)]).optional().nullable(),columnsCountMobile:G([le(1),le(2),le(3),le(4),le(5)]).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:T(["left","center","right"]).optional().nullable()}).optional().nullable()}),vv={top:"flex-start",middle:"center",bottom:"flex-end"},kv={left:"flex-start",center:"center",right:"flex-end"};let wv=0;function Sv({style:e,props:t}){const n=(t==null?void 0:t.columnsCount)??2,r=(t==null?void 0:t.columnsCountTablet)??n,o=(t==null?void 0:t.columnsCountMobile)??1,a=(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(R=>(R==null?void 0:R.colStart)!=null||(R==null?void 0:R.rowStart)!=null||(R==null?void 0:R.colSpan)!=null||(R==null?void 0:R.rowSpan)!=null)?c.length:n*a,f=V.useMemo(()=>`ahd-grid-${wv+=1}`,[]),p=Array.from({length:d},(R,N)=>c[N]??{childrenIds:[]}),b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w=((x==null?void 0:x.left)??0)+((x==null?void 0:x.right)??0),k=w>0?`calc(100% - ${w}px)`:"100%",S={backgroundColor:(e==null?void 0:e.backgroundColor)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,boxSizing:"border-box",margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,width:k,maxWidth:"100%"},v=e==null?void 0:e.borderRadius;if(v!=null&&(S.borderRadius=typeof v=="number"?`${v}px`:`${v.topLeft}px ${v.topRight}px ${v.bottomRight}px ${v.bottomLeft}px`,S.overflow="hidden"),e!=null&&e.borderColor){const R=e.borderWidth??{top:1,right:1,bottom:1,left:1};S.borderStyle="solid",S.borderColor=e.borderColor,S.borderWidth=`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`}const _={display:"grid",columnGap:`${i}px`,rowGap:`${l}px`,alignItems:vv[s]??"center",justifyContent:kv[u]??"flex-start",width:"100%",boxSizing:"border-box"},y=p.map((R,N)=>{if(R.colStart==null&&R.rowStart==null)return"";const M=[];return R.colStart!=null&&R.colSpan!=null&&M.push(`grid-column: ${R.colStart} / span ${R.colSpan};`),R.rowStart!=null&&R.rowSpan!=null&&M.push(`grid-row: ${R.rowStart} / span ${R.rowSpan};`),M.length===0?"":`.${f}-cell-${N} { ${M.join(" ")} }
|
|
231
|
+
@media (max-width: ${Be}px) { .${f}-cell-${N} { grid-column: auto; grid-row: auto; } }`}).filter(Boolean).join(`
|
|
232
232
|
`),C=`
|
|
233
233
|
.${f} > .grid-block-inner { grid-template-columns: repeat(${n}, minmax(0, 1fr)); }
|
|
234
|
-
@media (max-width: ${
|
|
235
|
-
@media (max-width: ${
|
|
234
|
+
@media (max-width: ${ze}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${r}, minmax(0, 1fr)); } }
|
|
235
|
+
@media (max-width: ${Be}px) { .${f} > .grid-block-inner { grid-template-columns: repeat(${o}, minmax(0, 1fr)); } }
|
|
236
236
|
${y}
|
|
237
|
-
`.trim(),I=()=>({minWidth:0,boxSizing:"border-box"});return
|
|
238
|
-
${
|
|
239
|
-
${
|
|
240
|
-
${
|
|
241
|
-
${
|
|
242
|
-
`.trim():null,
|
|
243
|
-
.${
|
|
244
|
-
.${
|
|
245
|
-
`.trim():null,
|
|
246
|
-
`)||null,de=oe=>{if(oe!=null)return typeof oe=="number"?`${oe}px`:`${oe.topLeft}px ${oe.topRight}px ${oe.bottomRight}px ${oe.bottomLeft}px`},Ee=(e==null?void 0:e.borderColor)??null,Ge=(e==null?void 0:e.borderWidth)??null,je=Lx(z(Ee),Ge),kt=Bx(e==null?void 0:e.boxShadow),gt=Px(z((e==null?void 0:e.backgroundColor)??"")),at=(e==null?void 0:e.backgroundSize)==="none",Ze=!at&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,_t=Ox(e==null?void 0:e.backgroundColor,Ze),it=_t?{colorScheme:"light"}:void 0,hn=at?void 0:(e==null?void 0:e.backgroundSize)??void 0,lt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",st=Ee&&(Ee.includes("linear-gradient")||Ee.includes("radial-gradient")||Ee.includes("repeating-linear-gradient")),qe=j!=null,Q=qe?{"--ahd-cb-h":`${j}px`}:{},ve=qe?" container-block-has-height":"";if(st){const oe={...je,borderRadius:de(e==null?void 0:e.borderRadius),width:K,maxWidth:"100%",height:qe?`${j}px`:void 0,boxSizing:"border-box",...ae(M,e==null?void 0:e.margin,B==="100%"),...te?{display:"inline-block"}:{},...kt,...Q},he={...gt,...it,backgroundImage:_t,backgroundSize:hn,backgroundRepeat:lt,borderRadius:Dx((e==null?void 0:e.borderRadius)??0,Ge),overflow:y?"auto":"hidden",padding:Bi(e==null?void 0:e.padding),width:"100%",height:qe?"100%":void 0,boxSizing:"border-box"},Ve=`container-block${y?" container-block-overflow":""}${ve}${le?` ${le}`:""}`,et=`container-block-inner${y?" container-block-overflow":""}`,xt=q?{...oe,...J.style,...te?{display:"inline-block"}:{}}:oe,fn=g.jsx(ie,{className:Ve,"aria-label":O,id:H,...J,style:xt,children:g.jsx("div",{className:et,style:he,children:n})});return g.jsxs(g.Fragment,{children:[ee&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),te?g.jsx("div",{className:Ae,style:te,children:fn}):fn]})}const Ie={...gt,...it,backgroundImage:_t,backgroundSize:hn,backgroundRepeat:lt,...je,borderRadius:de(e==null?void 0:e.borderRadius),padding:Bi(e==null?void 0:e.padding),...ae(M,e==null?void 0:e.margin,B==="100%"),width:K,maxWidth:"100%",height:qe?`${j}px`:void 0,overflow:y?"auto":void 0,boxSizing:"border-box",...y?{}:{display:"flow-root"},...te?{display:"inline-block"}:{},...kt,...Q},bt=`container-block${y?" container-block-overflow":""}${ve}${le?` ${le}`:""}`,Ht=q?{...Ie,...J.style,...te?{display:"inline-block"}:{}}:Ie;if(!n){const oe=g.jsx(ie,{className:bt,"aria-label":O,id:H,...J,style:Ht});return g.jsxs(g.Fragment,{children:[ee&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),te?g.jsx("div",{className:Ae,style:te,children:oe}):oe]})}const Gt=g.jsx(ie,{className:bt,"aria-label":O,id:H,...J,style:Ht,children:n});return g.jsxs(g.Fragment,{children:[ee&&g.jsx("style",{dangerouslySetInnerHTML:{__html:ee}}),te?g.jsx("div",{className:Ae,style:te,children:Gt}):Gt]})}const Gx=A({style:Fx.shape.style,responsive:We,props:A({childrenIds:ne($()).optional().nullable(),fullWidth:L().optional().nullable(),widthType:N(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:N(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:N(["fixed","fill","fit"]).optional().nullable(),width:m().min(0).optional().nullable(),widthUnit:N(["px","%"]).optional().nullable(),widthTablet:m().min(0).optional().nullable(),widthMobile:m().min(0).optional().nullable(),height:m().min(0).optional().nullable(),heightTablet:G([m().min(0),se("auto")]).optional().nullable(),heightMobile:G([m().min(0),se("auto")]).optional().nullable(),overflow:L().optional().nullable(),alignment:N(["left","center","right"]).optional().nullable(),alignmentTablet:N(["left","center","right"]).optional().nullable(),alignmentMobile:N(["left","center","right"]).optional().nullable(),tag:N(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:N(["_self","_blank"]).optional().nullable(),animation:A({type:N(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:N(["load","scroll","hover","click"]),speed:N(["slow","medium","fast"]),delay:m().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:A({enabled:L(),scale:m().min(1).max(1.5).optional().nullable(),duration:m().min(0).max(3e3).optional().nullable(),easing:N(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()});function Ps({style:e,props:t,blockId:n}){const o=(t==null?void 0:t.childrenIds)??[];return g.jsx(Hx,{style:e,blockId:n,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:o.map(r=>g.jsx(Re,{id:r},r))})}const Ux=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Wx=$().regex(/^rgba?\([^\)]+\)$/i),Zx=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Vx=se("transparent"),Jt=G([Ux,Wx,Zx,Vx]).nullable().optional(),qx=N(["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(),Yx=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Wo=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Zo=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Kx=$().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(),Jx=A({color:Jt,offsetX:m().default(0),offsetY:m().default(0),blur:m().default(0),spread:m().default(0),inset:L().default(!1)}).partial().optional().nullable(),Xx=A({position:N(["top","top-left","top-right","top-center","bottom","bottom-left","bottom-right","bottom-center","center","left","left-center","right","right-center"]).optional().default("right"),isCaret:L().optional().default(!0),selector:$().optional().default(""),showCloseIcon:L().optional(),iconCloseColor:Jt,closeIconPosition:N(["left","center","right"]).optional(),closeIconPaddingTop:m().optional(),closeIconPaddingLeft:m().optional(),closeIconPaddingRight:m().optional(),bannerSubType:$().optional()}).passthrough().optional().nullable(),Qx=ne(A({id:$(),name:$(),type:$().optional().default("text"),value:$().optional()})).optional().nullable(),ev=A({formFields:Qx,backdropColor:Jt.default(null),borderColor:Jt.default(null),borderRadius:m().optional().nullable(),canvasColor:Jt.default(null),textColor:Jt,fontFamily:qx,childrenIds:ne($()).optional().nullable(),maxWidth:$().default(""),maxHeight:$().default(""),top:$().default(""),left:$().default(""),padding:Wo,margin:Zo,maxWidthTablet:$().optional().nullable(),maxWidthMobile:$().optional().nullable(),maxHeightTablet:$().optional().nullable(),maxHeightMobile:$().optional().nullable(),paddingTablet:Wo,paddingMobile:Wo,marginTablet:Zo,marginMobile:Zo,borderWidth:Yx,boxShadow:Jx,behaviour:Xx,linkHref:$().optional().default(""),backgroundImage:$().default("").nullable().optional(),backgroundSize:Kx,backgroundRepeat:N(["repeat","no-repeat"]).optional().nullable()}),tv=()=>null,nv="INTER";function ov(e){return e||nv}function Vt(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function qn(e,t,n){const o=e??{},r=o[t];if(n==="desktop")return Vt(r)?r:null;const i=o[`${t}Tablet`];if(n==="tablet")return Vt(i)?i:Vt(r)?r:null;const a=o[`${t}Mobile`];return Vt(a)?a:Vt(i)?i:Vt(r)?r:null}function Vo(e,t){return{maxWidth:qn(e,"maxWidth",t)??null,maxHeight:qn(e,"maxHeight",t)??null,padding:qn(e,"padding",t)??null,margin:qn(e,"margin",t)??null}}function rv(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function av(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function qo(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:${rv(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${av(t.margin)};}`),n.join("")}function iv(e,t,n){const o=`.${e}`,r={width:`${o} .ahd-layout-sizer`,table:`${o} .ahd-layout-table`,padding:`${o} .email-layout-content`,margin:`${o} .email-layout-content`},i=Vo(t,"desktop"),a=qo(r,{...i,maxWidth:i.maxWidth??n??null}),l=qo(r,Vo(t,"tablet")),s=qo(r,Vo(t,"mobile")),c=(u,h)=>h?`@media (max-width:${u}px){${h}}@container ahd-page (max-width:${u}px){${h}}`:"";return[a,c(Oe,l),c(Le,s)].filter(Boolean).join("")}const lv="Made with Page Pilot",sv="https://pagepilot.fabbuilder.com";let cv=0;function uv(e){switch(ov(e)){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}function dv(e){const{borderColor:t,borderWidth:n,borderRadius:o}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const r=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),i=o??0,a=s=>typeof s=="number"?`${s}px`:`${s.topLeft}px ${s.topRight}px ${s.bottomRight}px ${s.bottomLeft}px`;if(((n==null?void 0:n.top)??0)+((n==null?void 0:n.right)??0)+((n==null?void 0:n.bottom)??0)+((n==null?void 0:n.left)??0)===0)return{borderRadius:i?a(i):void 0};if(r){const s=e.canvasColor,c=!s||s==="transparent"?"linear-gradient(transparent, transparent)":s.includes("gradient")?s:`linear-gradient(${s}, ${s})`;return{borderStyle:"solid",borderTopWidth:`${(n==null?void 0:n.top)??0}px`,borderRightWidth:`${(n==null?void 0:n.right)??0}px`,borderBottomWidth:`${(n==null?void 0:n.bottom)??0}px`,borderLeftWidth:`${(n==null?void 0:n.left)??0}px`,borderColor:"transparent",backgroundImage:`${c}, ${t}`,backgroundOrigin:"border-box",backgroundClip:"padding-box, border-box",borderRadius:i?a(i):void 0}}return{borderTop:`${(n==null?void 0:n.top)||0}px solid ${t}`,borderRight:`${(n==null?void 0:n.right)||0}px solid ${t}`,borderBottom:`${(n==null?void 0:n.bottom)||0}px solid ${t}`,borderLeft:`${(n==null?void 0:n.left)||0}px solid ${t}`,borderRadius:i?a(i):void 0}}function hv(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function Di(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:o=0,blur:r=0,spread:i=0,inset:a=!1}=e,l=hv(t);return{boxShadow:`${a?"inset ":""}${n}px ${o}px ${r}px ${i}px ${l}`}}function fv(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 mv(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 pv(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function gv(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=pv(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function bv({position:e,color:t}){const r="20px",i={position:"absolute",background:t,pointerEvents:"none",zIndex:2},a="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",c="polygon(0 0, 0 100%, 100% 50%)";let u;switch(e){case"top":u={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:a};break;case"top-left":u={top:-8,left:r,width:16,height:8,clipPath:a};break;case"top-right":u={top:-8,right:r,width:16,height:8,clipPath:a};break;case"bottom":u={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":u={bottom:-8,left:r,width:16,height:8,clipPath:l};break;case"bottom-right":u={bottom:-8,right:r,width:16,height:8,clipPath:l};break;case"left":u={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":u={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:c};break;default:return null}return g.jsx("div",{"aria-hidden":!0,style:{...i,...u}})}function xv({color:e,position:t,paddingTop:n,paddingLeft:o,paddingRight:r}){const i=e||"#262626",a=t??"right",l=typeof n=="number"?n:2,u=a==="left"?{left:typeof o=="number"?o:2}:a==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof r=="number"?r:2};return g.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...u,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:i,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none"},children:[g.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),g.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function vv(){const e=z("#8a8a8a")??"#8a8a8a";return g.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:e,marginTop:8},children:g.jsx("a",{href:sv,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:lv})})}function Sv(e){var xe,X,j,B,K,W,te,fe,ze,ue,Ce,le,Ae,ye,Te,Fe,He,ee;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",o=n.includes("page")?"page":"",r=n.includes("app-banner"),i=n.includes("demo"),a=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),c=l||s||i,u=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],h=Em(),d=(xe=tv())==null?void 0:xe.getState(),f=(B=(j=(X=d==null?void 0:d.appBanner)==null?void 0:X.view)==null?void 0:j.record)==null?void 0:B.type,p=h??f,b=o==="page"||h==="page",x=r&&(p==="floater"||((K=e.behaviour)==null?void 0:K.bannerSubType)==="floater"||u.includes((W=e.behaviour)==null?void 0:W.position)),w=r&&(p==="modal"||((te=e.behaviour)==null?void 0:te.bannerSubType)==="modal"),S=(c||x||w)&&((fe=e.behaviour)==null?void 0:fe.showCloseIcon)!==!1,v=c&&!0,_=r&&e.linkHref?e.linkHref:null,y=Z.useMemo(()=>`ahd-layout-${cv+=1}`,[]),I=iv(y,e,b||a?"100%":r&&!x?"900px":"320px"),R=(r||i)&&!!e.backgroundImage;e.borderRadius;const E=e.borderRadius??0,P=de=>typeof de=="number"?`${de}px`:`${de.topLeft}px ${de.topRight}px ${de.bottomRight}px ${de.bottomLeft}px`,O=(de=>de==null?!1:typeof de=="number"?de>0:(de.topLeft??0)>0||(de.topRight??0)>0||(de.bottomRight??0)>0||(de.bottomLeft??0)>0)(E),H=de=>_?g.jsx("a",{href:_,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:de}):de,D=dv({...e,borderColor:z(e.borderColor)??null}),V=r&&!!((ze=e.boxShadow)!=null&&ze.color)&&!!e.boxShadow.inset,F=r&&!V?Di(e.boxShadow):{},q=V?Di(e.boxShadow):{},Y=mv(((ue=e.behaviour)==null?void 0:ue.position)??"right"),ie=c&&!x&&!w&&((Ce=e.behaviour)==null?void 0:Ce.isCaret)!==!1,J=z(e.canvasColor),re=Sa(e.canvasColor)?{colorScheme:"light"}:void 0,me=gv(J,Y),ae=(((le=e.margin)==null?void 0:le.left)??0)+(((Ae=e.margin)==null?void 0:Ae.right)??0),Se=ae>0?`calc(100% - ${ae}px)`:"100%";return H(g.jsxs("div",{className:y,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[I&&g.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),g.jsx("div",{style:{color:z(e.textColor??"#262626"),fontFamily:uv(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",...w||x?null:{maxWidth:"100%"}},children:[ie&&g.jsx(bv,{position:Y,color:me}),g.jsxs("div",{style:{position:"relative",borderRadius:P(E),...O?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...F},children:[V&&g.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:P(E),zIndex:1,...q}}),S&&g.jsx(xv,{color:(ye=e.behaviour)==null?void 0:ye.iconCloseColor,position:(Te=e.behaviour)==null?void 0:Te.closeIconPosition,paddingTop:(Fe=e.behaviour)==null?void 0:Fe.closeIconPaddingTop,paddingLeft:(He=e.behaviour)==null?void 0:He.closeIconPaddingLeft,paddingRight:(ee=e.behaviour)==null?void 0:ee.closeIconPaddingRight}),g.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:Se,maxWidth:"100%",boxSizing:"border-box",flex:1,margin:e.margin?`${e.margin.top}px ${e.margin.right}px ${e.margin.bottom}px ${e.margin.left}px`:"0 auto",...w||x?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...fv(J,e.backgroundImage,r?"appBanner":""),...re,borderCollapse:"separate",tableLayout:"fixed",...D,borderRadius:P(E),overflow:O?"clip":"visible",...R?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:g.jsx("tbody",{children:g.jsx("tr",{style:{width:"100%"},children:g.jsxs("td",{className:"email-layout-content",children:[t.map(de=>g.jsx(Re,{id:de},de)),v&&g.jsx(vv,{})]})})})})]})]})})]}))}const wv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),$v=$().regex(/^rgba?\([^\)]+\)$/i),kv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),_v=se("transparent"),Yn=G([wv,$v,kv,_v]).nullable().optional(),Cv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Av=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),yv=N(["left","center","right"]).optional().nullable(),mo={min:1,max:20},po={min:4,max:48},Os=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),Iv=(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,gn=(e,t,n)=>Math.min(Math.max(e,t),n),Fi=e=>e?Os(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},Nv=A({style:A({backgroundColor:Yn,textAlign:yv,padding:Cv,margin:Av}).optional().nullable(),props:A({stepperType:N(["dots","numeric","both"]).optional().nullable(),totalDots:m().min(mo.min).max(mo.max).optional().nullable(),activeIndex:m().min(1).optional().nullable(),activeColor:Yn,inactiveColor:Yn,dotSize:m().min(po.min).max(po.max).optional().nullable(),dotSpacing:m().min(0).max(40).optional().nullable(),numericColor:Yn,numericFontSize:m().min(8).max(48).optional().nullable(),numericPosition:N(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),ct={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function Tv({style:e,props:t}){const o=va()==="mobile",i=typeof window<"u"&&window.location.pathname.includes("page")&&o,a=gn((t==null?void 0:t.totalDots)??ct.totalDots,mo.min,mo.max),l=gn((t==null?void 0:t.dotSize)??ct.dotSize,po.min,po.max),s=gn((t==null?void 0:t.dotSpacing)??ct.dotSpacing,0,40),c=(t==null?void 0:t.activeIndex)??ct.activeIndex,u=gn(c,1,a),h=z((t==null?void 0:t.activeColor)??ct.activeColor),d=z((t==null?void 0:t.inactiveColor)??ct.inactiveColor),f=(t==null?void 0:t.stepperType)??ct.stepperType,p=f==="numeric"||f==="both",b=f==="dots"||f==="both",x=(t==null?void 0:t.numericColor)??ct.numericColor,w=z(x),S=gn((t==null?void 0:t.numericFontSize)??ct.numericFontSize,8,48),k=(t==null?void 0:t.numericPosition)??ct.numericPosition,_={...Fi((e==null?void 0:e.backgroundColor)??void 0),padding:Iv(e==null?void 0:e.padding,i),margin:Rv(e==null?void 0:e.margin,i),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},y=p&&b&&(k==="above"||k==="below"),C={display:"inline-flex",flexDirection:y?"column":"row",alignItems:"center",justifyContent:(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center",gap:y?"8px":b?`${s}px`:"0px"},I={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},R=`${u}/${a}`,E=Os(x),P={fontSize:`${S}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...E?{backgroundImage:w,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:w??void 0}},M=()=>p?g.jsx("span",{style:P,children:R}):null,O=()=>g.jsx("div",{style:I,"aria-hidden":"true",children:Array.from({length:a}).map((H,D)=>{const V=D===u-1,F={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:V?"scale(1.1)":"scale(1)",...Fi(V?h:d)};return g.jsx("span",{style:F,"data-active":V?"true":"false"},D)})});return g.jsx("div",{className:"stepper-block",style:_,role:"progressbar","aria-valuenow":u,"aria-valuemin":1,"aria-valuemax":a,"aria-valuetext":`Step ${u} of ${a}`,"aria-label":`Step ${u} of ${a}`,children:g.jsxs("div",{style:C,children:[p&&k==="above"&&M(),p&&k==="left"&&M(),b&&O(),p&&k==="right"&&M(),p&&k==="below"&&M()]})})}const Ev=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Mv=$().regex(/^rgba?\([^\)]+\)$/i),Pv=se("transparent"),Yo=G([Ev,Mv,Pv]).nullable().optional(),Ls=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Ov=Ls,Lv=N(["left","center","right"]).optional().nullable(),zv=["disc","circle","square","dash","arrow","check","cross","none"],jv=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Hi={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},Bv=A({text:$()}),Dv=A({style:A({color:Yo,backgroundColor:Yo,textAlign:Lv,fontSize:m().min(1).max(200).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:G([m(),$()]).optional().nullable(),lineHeight:m().min(1).max(3).optional().nullable(),padding:Ls,margin:Ov}).optional().nullable(),props:A({listType:N(["unordered","ordered"]).optional().nullable(),marker:N([...zv,...jv]).optional().nullable(),numberSuffix:gs(e=>e===""?void 0:e,N([".",")"]).optional().nullable()),startNumber:m().min(0).max(9999).optional().nullable(),markerColor:Yo,markerSize:m().min(1).max(200).optional().nullable(),itemGap:m().min(0).max(64).optional().nullable(),items:ne(Bv).optional().nullable()}).optional().nullable(),responsive:We}),At={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"}]},Gi=(e,t,n)=>Math.min(Math.max(e,t),n),Ui=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Wi=e=>{if(e<=0)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let n="",o=e;for(const[r,i]of t)for(;o>=r;)n+=i,o-=r;return n},Zi=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"},Fv=(e,t,n,o)=>{const r=n+t;switch(e){case"decimal-zero":return`${String(r).padStart(2,"0")}${o}`;case"lower-alpha":return`${Zi(r)}${o}`;case"upper-alpha":return`${Zi(r).toUpperCase()}${o}`;case"lower-roman":return`${Wi(r).toLowerCase()}${o}`;case"upper-roman":return`${Wi(r)}${o}`;case"decimal":default:return`${r}${o}`}};function Hv({style:e,props:t}){var w;const o=((t==null?void 0:t.listType)??At.listType)==="ordered",r=(t==null?void 0:t.marker)??(o?"decimal":At.marker),i=(t==null?void 0:t.numberSuffix)??At.numberSuffix,a=(t==null?void 0:t.startNumber)??At.startNumber,l=(t==null?void 0:t.markerColor)??At.markerColor,s=Gi((t==null?void 0:t.markerSize)??At.markerSize,1,200),c=Gi((t==null?void 0:t.itemGap)??At.itemGap,0,64),u=(w=t==null?void 0:t.items)!=null&&w.length?t.items:At.items.map(S=>({...S})),h=z(e==null?void 0:e.color),d=(e==null?void 0:e.textAlign)??"left",f={backgroundColor:z(e==null?void 0:e.backgroundColor),padding:Ui(e==null?void 0:e.padding),margin:Ui(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box",color:h,fontSize:e!=null&&e.fontSize?`${e.fontSize}px`:void 0,fontFamily:(e==null?void 0:e.fontFamily)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5},p={textAlign:"left"},b={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:z(l),fontSize:`${s}px`},x=S=>r==="none"?null:o?Fv(r,S,a,i):Hi[r]??Hi.disc;return g.jsx("div",{className:"list-block",style:f,children:g.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:d==="left"?"100%":"auto",maxWidth:"100%",marginLeft:d==="left"?void 0:"auto",marginRight:d==="center"?"auto":void 0},children:g.jsx("tbody",{children:u.map((S,k)=>{const v=x(k);return g.jsxs("tr",{children:[r!=="none"&&g.jsx("td",{style:b,children:v}),g.jsx("td",{style:{...p,paddingBottom:k<u.length-1?`${c}px`:0,width:d==="left"?"100%":void 0},children:S.text})]},k)})})})})}const Gv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Uv=$().regex(/^rgba?\([^\)]+\)$/i),Wv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Zv=se("transparent"),Vv=G([Gv,Uv,Wv,Zv]).nullable().optional(),qv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Yv=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),Rr=A({style:A({backgroundColor:Vv,padding:qv,margin:Yv}).optional().nullable(),props:A({direction:N(["row","column"]).optional().nullable(),directionTablet:N(["row","column"]).optional().nullable(),directionMobile:N(["row","column"]).optional().nullable(),gap:m().optional().nullable(),gapTablet:m().optional().nullable(),gapMobile:m().optional().nullable(),alignment:N(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:N(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:N(["start","center","end","space-between"]).optional().nullable(),wrap:L().optional().nullable(),ariaLabel:$().optional().nullable()}).optional().nullable(),responsive:We}),Kn={direction:"row",gap:12,alignment:"start",wrap:!0},go={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},Kv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Jv=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function Vi(e,t,n,o){const r=e==="row"?go[t]:"flex-start",i=e==="column"?go[t]:"center";return`flex-direction:${e}!important;justify-content:${r}!important;align-items:${i}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${o}px!important;`}let Xv=0;function Qv({style:e,buttons:t,props:n}){const o=(n==null?void 0:n.direction)??Kn.direction,r=(n==null?void 0:n.directionTablet)??o,i=(n==null?void 0:n.directionMobile)??r,a=(n==null?void 0:n.gap)??Kn.gap,l=(n==null?void 0:n.gapTablet)??a,s=(n==null?void 0:n.gapMobile)??l,c=(n==null?void 0:n.alignment)??Kn.alignment,u=(n==null?void 0:n.alignmentTablet)??c,h=(n==null?void 0:n.alignmentMobile)??u,d=(n==null?void 0:n.wrap)??Kn.wrap,f=(n==null?void 0:n.ariaLabel)??void 0,p=o,b=c,x=a,w=e==null?void 0:e.margin,S=((w==null?void 0:w.left)??0)+((w==null?void 0:w.right)??0),k={display:"flex",flexDirection:p,gap:`${x}px`,justifyContent:p==="row"?go[b]:"flex-start",alignItems:p==="column"?go[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:z(e==null?void 0:e.backgroundColor),padding:Kv(e==null?void 0:e.padding),margin:Jv(e==null?void 0:e.margin),boxSizing:"border-box",width:S>0?`max(0px, calc(100% - ${S}px))`:"100%"},v=Z.useMemo(()=>`ahd-bg-${Xv+=1}`,[]),_=Z.useMemo(()=>{const y=`.${v}`;let C="";return(r!==o||u!==c||l!==a)&&(C+=`@media (max-width:${Oe}px){${y}{${Vi(r,u,d,l)}}}`),(i!==r||h!==u||s!==l)&&(C+=`@media (max-width:${Le}px){${y}{${Vi(i,h,d,s)}}}`),C},[v,o,r,i,c,u,h,a,l,s,d]);return g.jsxs("div",{className:`button-group ${v}`,style:k,role:"group","aria-label":f,children:[_&&g.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),t]})}const e1=Rr.shape.props.unwrap().unwrap().shape,t1=A({style:Rr.shape.style,props:A({...e1,childrenIds:ne($()).optional().nullable()}).optional().nullable(),responsive:Rr.shape.responsive});function n1({style:e,props:t}){const{childrenIds:n,...o}=t??{},r=(n??[]).map(i=>g.jsx(Re,{id:i},i));return g.jsx(Qv,{style:e,props:o,buttons:r})}const o1=A({titleChildrenIds:ne($()).optional().nullable(),contentChildrenIds:ne($()).optional().nullable()}),r1=A({responsive:We,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),marginBottom:m().optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({items:ne(o1).min(1).max(25).optional().nullable(),iconColor:$().optional().nullable(),iconSize:m().optional().nullable(),defaultOpen:L().optional().nullable(),activeBorderColor:$().optional().nullable()}).optional().nullable()});function a1(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 qi=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function i1(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),o=e.split(" ").map(r=>Math.max(0,parseFloat(r)-n));return o.length===1?`${o[0]}px`:o.map(r=>`${r}px`).join(" ")}function l1({style:e,props:t}){const n=Z.useMemo(()=>{const C=t==null?void 0:t.items;return!C||C.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:C[0].titleChildrenIds??[],contentChildrenIds:C[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),o=Z.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),r=`${o}-content`,i=e==null?void 0:e.padding,a=e==null?void 0:e.margin,l=((a==null?void 0:a.left)??0)+((a==null?void 0:a.right)??0),s=t==null?void 0:t.activeBorderColor,c=e==null?void 0:e.borderColor,u=z(s),h=z(c),d=z(e==null?void 0:e.backgroundColor),f=z("#ffffff"),p=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},b=`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`,x=a1(e==null?void 0:e.borderRadius),w=qi(c),S=qi(s),k=w||S,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:x,margin:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),k?(v.padding=b,w?v.background=c:c&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b)):c&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b);const _={background:d??(k?f:void 0),borderRadius:k?i1(x,p):void 0,padding:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,overflow:k&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},y=[];return s&&(S?y.push(`#${o}:checked + .email-accordion-root { background:${s}!important; border-style:none!important; padding:${b}!important; }`):y.push(`#${o}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${u}!important; border-width:${b}!important; ${k?"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:`
|
|
237
|
+
`.trim(),I=()=>({minWidth:0,boxSizing:"border-box"});return m.jsxs("div",{className:`grid-block ${f}`,style:S,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:C}}),m.jsx("div",{className:"grid-block-inner",style:_,children:p.map((R,N)=>m.jsx("div",{className:`grid-cell ${f}-cell-${N}`,style:I(),children:R.childrenIds.map(M=>m.jsx(Te,{id:M},M))},N))})]})}const $v=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),_v=$().regex(/^rgba?\([^\)]+\)$/i),Cv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Av=le("transparent"),Qo=lc(e=>typeof e=="string"?e.trim():e,G([$v,_v,Cv,Av]).nullable().optional()),yv=$().url().regex(/^https?:\/\//,"URL must start with http:// or https://").nullable().optional(),Iv=$().includes("{{"),Rv=G([yv,Iv]).nullable().optional(),Tv=$().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(),Nv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Ev=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Pv=G([g(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),Mv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),vl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function wc(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function Ov(e){return!e||e==="transparent"?{backgroundColor:e??"transparent"}:wc(e)?{backgroundColor:"transparent"}:{backgroundColor:e}}function Lv(e,t){const n=e&&wc(e)?e:void 0;return n&&t?`${n}, ${t}`:n??t}function zv(e,t){return e?e==="transparent"?{border:"none"}:e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"))?{background:e,padding:`${(t==null?void 0:t.top)??0}px ${(t==null?void 0:t.right)??0}px ${(t==null?void 0:t.bottom)??0}px ${(t==null?void 0:t.left)??0}px`}:{borderTop:`${(t==null?void 0:t.top)??0}px solid ${e}`,borderRight:`${(t==null?void 0:t.right)??0}px solid ${e}`,borderBottom:`${(t==null?void 0:t.bottom)??0}px solid ${e}`,borderLeft:`${(t==null?void 0:t.left)??0}px solid ${e}`}:{}}const jv=A({color:Qo,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable();function Bv(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 Dv(e){if(!(e!=null&&e.color))return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e;return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${Bv(t)}`}}function Fv(e,t){const n=Math.max((t==null?void 0:t.top)||0,(t==null?void 0:t.right)||0,(t==null?void 0:t.bottom)||0,(t==null?void 0:t.left)||0);if(e==null)return;if(typeof e=="number")return`${Math.max(0,e-n)}px`;const r=Math.max(0,(e.topLeft||0)-n),o=Math.max(0,(e.topRight||0)-n),a=Math.max(0,(e.bottomRight||0)-n),i=Math.max(0,(e.bottomLeft||0)-n);return`${r}px ${o}px ${a}px ${i}px`}const Hv=A({style:A({backgroundColor:Qo,backgroundImage:Rv,backgroundSize:Tv,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable(),borderColor:Qo,borderRadius:Pv,padding:Nv,margin:Ev,borderWidth:Mv,boxShadow:jv}).optional().nullable(),props:A({fullWidth:L().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:G([g().min(0),le("auto")]).optional().nullable(),heightMobile:G([g().min(0),le("auto")]).optional().nullable(),overflow:L().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),hoverEffect:A({enabled:L(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:T(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()}),rn={fullWidth:!1,widthType:"fill",width:300,widthUnit:"px",alignment:"left",hoverEffect:{enabled:!1,scale:1.05,duration:500,easing:"ease-in-out"}};function Gv({style:e,props:t,children:n,blockId:r}){const o=qa(),a=(t==null?void 0:t.fullWidth)??rn.fullWidth,i=(t==null?void 0:t.widthType)??rn.widthType,l=(t==null?void 0:t.widthTypeTablet)??null,s=(t==null?void 0:t.widthTypeMobile)??null,u=l??i,c=s??u,h=(t==null?void 0:t.width)??rn.width,d=(t==null?void 0:t.widthUnit)??rn.widthUnit,f=(t==null?void 0:t.widthTablet)??null,p=(t==null?void 0:t.widthMobile)??null,b=f??h,x=p??b,w=(t==null?void 0:t.height)??null,k=(t==null?void 0:t.heightTablet)??null,S=(t==null?void 0:t.heightMobile)??null,v=k==="auto"?null:k??w,_=S==="auto"?null:S??(k==="auto"?null:v),y=(t==null?void 0:t.overflow)===!0,C=(t==null?void 0:t.alignment)??rn.alignment,I=(t==null?void 0:t.alignmentTablet)??null,R=(t==null?void 0:t.alignmentMobile)??null,N=I??C,M=R??N,P=C,O=(t==null?void 0:t.ariaLabel)??void 0,H=(t==null?void 0:t.elementId)??void 0,B=!!(t!=null&&t.showLink),Z=(t==null?void 0:t.linkHref)??null,F=typeof Z=="string"?Z.trim():Z,Y=B&&typeof F=="string"&&F.length>0,J=(t==null?void 0:t.linkTarget)??"_blank",te=Y?"a":(t==null?void 0:t.tag)??"div",X=Y?{href:F,target:J,...J==="_blank"?{rel:"noopener noreferrer"}:{},style:{textDecoration:"none",color:"inherit",display:"block"}}:{},ae=(ie,de,Ye=!1)=>{if(Ye&&a)return"100%";switch(ie){case"fill":return"100%";case"fixed":return`${de}${d}`;case"fit":default:return"auto"}},Ae=ie=>((ie==null?void 0:ie.left)??0)+((ie==null?void 0:ie.right)??0),ee=(ie,de,Ye)=>{const it=(de==null?void 0:de.top)??0,At=(de==null?void 0:de.bottom)??0;if(Ye)return{marginTop:it,marginBottom:At,marginLeft:(de==null?void 0:de.left)??0,marginRight:(de==null?void 0:de.right)??0};switch(ie){case"center":return{marginTop:it,marginBottom:At,marginLeft:"auto",marginRight:"auto"};case"right":return{marginTop:it,marginBottom:At,marginLeft:"auto",marginRight:(de==null?void 0:de.right)??0};case"left":default:return{marginTop:it,marginBottom:At,marginLeft:(de==null?void 0:de.left)??0,marginRight:"auto"}}},me=(ie,de)=>{const Ye=Ae(de);return Ye<=0?ie:ie==="100%"?`calc(100% - ${Ye}px)`:ie},ve=i,ue=h,q=w,K=ae(ve,ue,o==="desktop"),D=me(K,e==null?void 0:e.margin),re=K==="100%"?null:{textAlign:P==="left"?"left":P==="right"?"right":"center"},he=(ie,de,Ye)=>ae(de,Ye)==="100%"||ie==="left"?"left":ie==="right"?"right":"center",Ge=l!=null||s!=null||f!=null||p!=null||k!=null||S!=null||I!=null||R!=null,Ne=(t==null?void 0:t.hoverEffect)??rn.hoverEffect,_e=!!(Ne!=null&&Ne.enabled),Q=(Ge||_e)&&r?`ahd-cb-${r}`:"",ye=Q?`${Q}-align`:"",Ie=v!=null?`height: ${v}px !important;`:k==="auto"?"height: auto !important;":"",Me=_!=null?`height: ${_}px !important;`:S==="auto"||S==null&&k==="auto"?"height: auto !important;":"",Ue=Ge?`
|
|
238
|
+
${$t} { .${Q} { width: ${me(ae(u,b),e==null?void 0:e.margin)} !important; ${Ie} max-width: 100% !important; } }
|
|
239
|
+
${He} { .${Q} { width: ${me(ae(c,x),e==null?void 0:e.margin)} !important; ${Me} max-width: 100% !important; } }
|
|
240
|
+
${$t} { .${ye} { text-align: ${he(N,u,b)} !important; } }
|
|
241
|
+
${He} { .${ye} { text-align: ${he(M,c,x)} !important; } }
|
|
242
|
+
`.trim():null,We=_e?`
|
|
243
|
+
.${Q} { transition: transform ${Ne.duration??500}ms ${Ne.easing??"ease-in-out"}; }
|
|
244
|
+
.${Q}:hover { transform: scale(${Ne.scale??1.05}); }
|
|
245
|
+
`.trim():null,W=[Ue,We].filter(Boolean).join(`
|
|
246
|
+
`)||null,pt=ie=>{if(ie!=null)return typeof ie=="number"?`${ie}px`:`${ie.topLeft}px ${ie.topRight}px ${ie.bottomRight}px ${ie.bottomLeft}px`},Ee=(e==null?void 0:e.borderColor)??null,Ve=(e==null?void 0:e.borderWidth)??null,Ke=zv(z(Ee),Ve),gt=Dv(e==null?void 0:e.boxShadow),ot=z((e==null?void 0:e.backgroundColor)??""),at=Ov(ot),Ze=(e==null?void 0:e.backgroundSize)==="none",Et=!Ze&&(e!=null&&e.backgroundImage)?`url(${e.backgroundImage})`:void 0,Je=Lv(ot,Et),An=Ze?void 0:(e==null?void 0:e.backgroundSize)??void 0,mt=(e==null?void 0:e.backgroundRepeat)??"no-repeat",bt=Ee&&(Ee.includes("linear-gradient")||Ee.includes("radial-gradient")||Ee.includes("repeating-linear-gradient")),Xe=q!=null,ne=Xe?{"--ahd-cb-h":`${q}px`}:{},ke=Xe?" container-block-has-height":"";if(bt){const ie={...Ke,borderRadius:pt(e==null?void 0:e.borderRadius),width:D,maxWidth:"100%",height:Xe?`${q}px`:void 0,boxSizing:"border-box",...ee(P,e==null?void 0:e.margin,K==="100%"),...re?{display:"inline-block"}:{},...gt,...ne},de={...at,backgroundImage:Je,backgroundSize:An,backgroundRepeat:mt,borderRadius:Fv((e==null?void 0:e.borderRadius)??0,Ve),overflow:y?"auto":"hidden",padding:vl(e==null?void 0:e.padding),width:"100%",height:Xe?"100%":void 0,boxSizing:"border-box"},Ye=`container-block${y?" container-block-overflow":""}${ke}${Q?` ${Q}`:""}`,it=`container-block-inner${y?" container-block-overflow":""}`,At=Y?{...ie,...X.style,...re?{display:"inline-block"}:{}}:ie,yn=m.jsx(te,{className:Ye,"aria-label":O,id:H,...X,style:At,children:m.jsx("div",{className:it,style:de,children:n})});return m.jsxs(m.Fragment,{children:[W&&m.jsx("style",{dangerouslySetInnerHTML:{__html:W}}),re?m.jsx("div",{className:ye,style:re,children:yn}):yn]})}const Re={...at,backgroundImage:Je,backgroundSize:An,backgroundRepeat:mt,...Ke,borderRadius:pt(e==null?void 0:e.borderRadius),padding:vl(e==null?void 0:e.padding),...ee(P,e==null?void 0:e.margin,K==="100%"),width:D,maxWidth:"100%",height:Xe?`${q}px`:void 0,overflow:y?"auto":void 0,boxSizing:"border-box",...y?{}:{display:"flow-root"},...re?{display:"inline-block"}:{},...gt,...ne},Ct=`container-block${y?" container-block-overflow":""}${ke}${Q?` ${Q}`:""}`,Qt=Y?{...Re,...X.style,...re?{display:"inline-block"}:{}}:Re;if(!n){const ie=m.jsx(te,{className:Ct,"aria-label":O,id:H,...X,style:Qt});return m.jsxs(m.Fragment,{children:[W&&m.jsx("style",{dangerouslySetInnerHTML:{__html:W}}),re?m.jsx("div",{className:ye,style:re,children:ie}):ie]})}const en=m.jsx(te,{className:Ct,"aria-label":O,id:H,...X,style:Qt,children:n});return m.jsxs(m.Fragment,{children:[W&&m.jsx("style",{dangerouslySetInnerHTML:{__html:W}}),re?m.jsx("div",{className:ye,style:re,children:en}):en]})}const Uv=A({style:Hv.shape.style,responsive:De,props:A({childrenIds:oe($()).optional().nullable(),fullWidth:L().optional().nullable(),widthType:T(["fixed","fill","fit"]).optional().nullable(),widthTypeTablet:T(["fixed","fill","fit"]).optional().nullable(),widthTypeMobile:T(["fixed","fill","fit"]).optional().nullable(),width:g().min(0).optional().nullable(),widthUnit:T(["px","%"]).optional().nullable(),widthTablet:g().min(0).optional().nullable(),widthMobile:g().min(0).optional().nullable(),height:g().min(0).optional().nullable(),heightTablet:G([g().min(0),le("auto")]).optional().nullable(),heightMobile:G([g().min(0),le("auto")]).optional().nullable(),overflow:L().optional().nullable(),alignment:T(["left","center","right"]).optional().nullable(),alignmentTablet:T(["left","center","right"]).optional().nullable(),alignmentMobile:T(["left","center","right"]).optional().nullable(),tag:T(["div","section","article","nav","aside","header","footer","main"]).optional().nullable(),ariaLabel:$().optional().nullable(),elementId:$().optional().nullable(),showLink:L().optional().nullable(),linkHref:$().optional().nullable(),linkTarget:T(["_self","_blank"]).optional().nullable(),animation:A({type:T(["none","fade-in","slide-left","slide-right","slide-up","slide-down","zoom-in","bounce"]),trigger:T(["load","scroll","hover","click"]),speed:T(["slow","medium","fast"]),delay:g().min(0).max(1e4).optional().nullable(),disableOnMobile:L().optional().nullable()}).optional().nullable(),hoverEffect:A({enabled:L(),scale:g().min(1).max(1.5).optional().nullable(),duration:g().min(0).max(3e3).optional().nullable(),easing:T(["ease","ease-in","ease-out","ease-in-out","linear"]).optional().nullable()}).optional().nullable()}).optional().nullable()});function Sc({style:e,props:t,blockId:n}){const r=(t==null?void 0:t.childrenIds)??[];return m.jsx(Gv,{style:e,blockId:n,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:r.map(o=>m.jsx(Te,{id:o},o))})}const Wv=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),Zv=$().regex(/^rgba?\([^\)]+\)$/i),qv=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Vv=le("transparent"),dn=G([Wv,Zv,qv,Vv]).nullable().optional(),Yv=T(["MODERN_SANS","BOOK_SANS","ORGANIC_SANS","GEOMETRIC_SANS","HEAVY_SANS","ROUNDED_SANS","MODERN_SERIF","BOOK_SERIF","MONOSPACE","ROBOTO","OPEN_SANS","LATO","POPPINS","INTER","MONTSERRAT","RALEWAY","NUNITO","PLAYFAIR_DISPLAY","MERRIWEATHER","PT_SANS","OSWALD","SOURCE_SANS_PRO","RUBIK","WORK_SANS","NOTO_SANS","DANCING_SCRIPT","PACIFICO","LOBSTER","BEBAS_NEUE"]).nullable().optional(),Kv=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),mo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),bo=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Jv=$().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(),Xv=A({color:dn,offsetX:g().default(0),offsetY:g().default(0),blur:g().default(0),spread:g().default(0),inset:L().default(!1)}).partial().optional().nullable(),Qv=A({position:T(["top","top-left","top-right","top-center","bottom","bottom-left","bottom-right","bottom-center","center","left","left-center","right","right-center"]).optional().default("right"),isCaret:L().optional().default(!0),selector:$().optional().default(""),showCloseIcon:L().optional(),iconCloseColor:dn,closeIconPosition:T(["left","center","right"]).optional(),closeIconPaddingTop:g().optional(),closeIconPaddingLeft:g().optional(),closeIconPaddingRight:g().optional(),bannerSubType:$().optional()}).passthrough().optional().nullable(),e1=oe(A({id:$(),name:$(),type:$().optional().default("text"),value:$().optional()})).optional().nullable(),t1=A({formFields:e1,backdropColor:dn.default(null),borderColor:dn.default(null),borderRadius:g().optional().nullable(),canvasColor:dn.default(null),textColor:dn,fontFamily:Yv,childrenIds:oe($()).optional().nullable(),maxWidth:$().default(""),maxHeight:$().default(""),top:$().default(""),left:$().default(""),padding:mo,margin:bo,maxWidthTablet:$().optional().nullable(),maxWidthMobile:$().optional().nullable(),maxHeightTablet:$().optional().nullable(),maxHeightMobile:$().optional().nullable(),paddingTablet:mo,paddingMobile:mo,marginTablet:bo,marginMobile:bo,borderWidth:Kv,boxShadow:Xv,behaviour:Qv,linkHref:$().optional().default(""),backgroundImage:$().default("").nullable().optional(),backgroundSize:Jv,backgroundRepeat:T(["repeat","no-repeat"]).optional().nullable()}),n1=()=>null,r1="INTER";function o1(e){return e||r1}function on(e){return!(e==null||typeof e=="string"&&e.trim()==="")}function hr(e,t,n){const r=e??{},o=r[t];if(n==="desktop")return on(o)?o:null;const a=r[`${t}Tablet`];if(n==="tablet")return on(a)?a:on(o)?o:null;const i=r[`${t}Mobile`];return on(i)?i:on(a)?a:on(o)?o:null}function xo(e,t){return{maxWidth:hr(e,"maxWidth",t)??null,maxHeight:hr(e,"maxHeight",t)??null,padding:hr(e,"padding",t)??null,margin:hr(e,"margin",t)??null}}function a1(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function i1(e){return`${e.top??0}px ${e.right??0}px ${e.bottom??0}px ${e.left??0}px`}function vo(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:${a1(t.padding)};}`),t.margin&&n.push(`${e.margin}{margin:${i1(t.margin)};}`),n.join("")}function l1(e,t,n){const r=`.${e}`,o={width:`${r} .ahd-layout-sizer`,table:`${r} .ahd-layout-table`,padding:`${r} .email-layout-content`,margin:`${r} .email-layout-content`},a=xo(t,"desktop"),i=vo(o,{...a,maxWidth:a.maxWidth??n??null}),l=vo(o,xo(t,"tablet")),s=vo(o,xo(t,"mobile")),u=(c,h)=>h?`@media (max-width:${c}px){${h}}@container ahd-page (max-width:${c}px){${h}}`:"";return[i,u(ze,l),u(Be,s)].filter(Boolean).join("")}const s1="Made with Page Pilot",c1="https://pagepilot.fabbuilder.com";let u1=0;function d1(e){switch(o1(e)){case"MODERN_SANS":return'Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif';case"BOOK_SANS":return'Optima, Candara, "Noto Sans", source-sans-pro, sans-serif';case"ORGANIC_SANS":return'Seravek, "Gill Sans Nova", Ubuntu, Calibri, "DejaVu Sans", source-sans-pro, sans-serif';case"GEOMETRIC_SANS":return'Avenir, "Avenir Next LT Pro", Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif';case"HEAVY_SANS":return'Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Nimbus Sans Narrow", sans-serif-condensed, sans-serif';case"ROUNDED_SANS":return'ui-rounded, "Hiragino Maru Gothic ProN", Quicksand, Comfortaa, Manjari, "Arial Rounded MT Bold", Calibri, source-sans-pro, sans-serif';case"MODERN_SERIF":return'Charter, "Bitstream Charter", "Sitka Text", Cambria, serif';case"BOOK_SERIF":return'"Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif';case"MONOSPACE":return'"Nimbus Mono PS", "Courier New", "Cutive Mono", monospace';case"ROBOTO":return'Roboto, "Helvetica Neue", Arial, sans-serif';case"OPEN_SANS":return'"Open Sans", "Helvetica Neue", Arial, sans-serif';case"LATO":return'Lato, "Helvetica Neue", Arial, sans-serif';case"POPPINS":return'Poppins, "Helvetica Neue", Arial, sans-serif';case"INTER":return'Inter, "Helvetica Neue", Arial, sans-serif';case"MONTSERRAT":return'Montserrat, "Helvetica Neue", Arial, sans-serif';case"RALEWAY":return'Raleway, "Helvetica Neue", Arial, sans-serif';case"NUNITO":return'Nunito, "Helvetica Neue", Arial, sans-serif';case"PLAYFAIR_DISPLAY":return'"Playfair Display", Georgia, serif';case"MERRIWEATHER":return"Merriweather, Georgia, serif";case"PT_SANS":return'"PT Sans", "Helvetica Neue", Arial, sans-serif';case"OSWALD":return'Oswald, "Helvetica Neue", Arial, sans-serif';case"SOURCE_SANS_PRO":return'"Source Sans Pro", "Helvetica Neue", Arial, sans-serif';case"RUBIK":return'Rubik, "Helvetica Neue", Arial, sans-serif';case"WORK_SANS":return'"Work Sans", "Helvetica Neue", Arial, sans-serif';case"NOTO_SANS":return'"Noto Sans", "Helvetica Neue", Arial, sans-serif';case"DANCING_SCRIPT":return'"Dancing Script", cursive, sans-serif';case"PACIFICO":return"Pacifico, cursive, sans-serif";case"LOBSTER":return"Lobster, cursive, sans-serif";case"BEBAS_NEUE":return'"Bebas Neue", cursive, sans-serif'}}function h1(e){const{borderColor:t,borderWidth:n,borderRadius:r}=e;if(!t)return{};if(t==="transparent")return{border:"none"};const o=t&&(t.includes("linear-gradient")||t.includes("radial-gradient")||t.includes("repeating-linear-gradient")),a=r??0,i=s=>typeof s=="number"?`${s}px`:`${s.topLeft}px ${s.topRight}px ${s.bottomRight}px ${s.bottomLeft}px`;if(((n==null?void 0:n.top)??0)+((n==null?void 0:n.right)??0)+((n==null?void 0:n.bottom)??0)+((n==null?void 0:n.left)??0)===0)return{borderRadius:a?i(a):void 0};if(o){const s=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:a?i(a):void 0}}return{borderTop:`${(n==null?void 0:n.top)||0}px solid ${t}`,borderRight:`${(n==null?void 0:n.right)||0}px solid ${t}`,borderBottom:`${(n==null?void 0:n.bottom)||0}px solid ${t}`,borderLeft:`${(n==null?void 0:n.left)||0}px solid ${t}`,borderRadius:a?i(a):void 0}}function f1(e){return e.includes("gradient")?(e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[])[0]??"#000000":e}function kl(e){if(!e||!e.color)return{};const{color:t,offsetX:n=0,offsetY:r=0,blur:o=0,spread:a=0,inset:i=!1}=e,l=f1(t);return{boxShadow:`${i?"inset ":""}${n}px ${r}px ${o}px ${a}px ${l}`}}function p1(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 g1(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 m1(e){return e.match(/#[0-9a-fA-F]{3,8}|(?:rgba?|hsla?)\([^)]*\)/gi)??[]}function b1(e,t){if(!e||e==="transparent")return"#ffffff";if(!e.includes("gradient"))return e;const n=m1(e);return n.length===0?"#ffffff":t==="right"||t==="bottom"||t==="bottom-left"||t==="bottom-right"?n[n.length-1]:n[0]}function x1({position:e,color:t}){const o="20px",a={position:"absolute",background:t,pointerEvents:"none",zIndex:2},i="polygon(50% 0, 0 100%, 100% 100%)",l="polygon(0 0, 100% 0, 50% 100%)",s="polygon(100% 0, 100% 100%, 0 50%)",u="polygon(0 0, 0 100%, 100% 50%)";let c;switch(e){case"top":c={top:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:i};break;case"top-left":c={top:-8,left:o,width:16,height:8,clipPath:i};break;case"top-right":c={top:-8,right:o,width:16,height:8,clipPath:i};break;case"bottom":c={bottom:-8,left:"50%",transform:"translateX(-50%)",width:16,height:8,clipPath:l};break;case"bottom-left":c={bottom:-8,left:o,width:16,height:8,clipPath:l};break;case"bottom-right":c={bottom:-8,right:o,width:16,height:8,clipPath:l};break;case"left":c={left:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:s};break;case"right":c={right:-8,top:"50%",transform:"translateY(-50%)",width:8,height:16,clipPath:u};break;default:return null}return m.jsx("div",{"aria-hidden":!0,style:{...a,...c}})}function v1({color:e,position:t,paddingTop:n,paddingLeft:r,paddingRight:o}){const a=e||"#262626",i=t??"right",l=typeof n=="number"?n:2,c=i==="left"?{left:typeof r=="number"?r:2}:i==="center"?{left:"50%",transform:"translateX(-50%)"}:{right:typeof o=="number"?o:2};return m.jsx("div",{role:"button","aria-label":"Close",tabIndex:0,"data-action":"onCloseStep",style:{position:"absolute",top:l,...c,width:16,height:16,display:"flex",alignItems:"center",justifyContent:"center",zIndex:11,cursor:"pointer",lineHeight:0,background:"transparent",border:0},children:m.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",stroke:a,strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",style:{pointerEvents:"none"},children:[m.jsx("line",{x1:"3",y1:"3",x2:"11",y2:"11"}),m.jsx("line",{x1:"11",y1:"3",x2:"3",y2:"11"})]})})}function k1(){const e=z("#8a8a8a")??"#8a8a8a";return m.jsx("div",{className:"ahd-branding-footer",style:{display:"block",width:"100%",textAlign:"left",fontSize:11,color:e,marginTop:8},children:m.jsx("a",{href:c1,target:"_blank",rel:"noopener noreferrer",style:{color:"inherit",textDecoration:"underline"},children:s1})})}function w1(e){var me,ve,ue,q,K,D,j,re,he,Ge,Ne,_e,Q,ye,Ie,Me,Ue,We;const t=e.childrenIds??[],n=typeof window<"u"&&window.location?window.location.pathname:"",r=n.includes("page")?"page":"",o=n.includes("app-banner"),a=n.includes("demo"),i=n.includes("faq"),l=n.includes("tour"),s=n.includes("tooltip"),u=l||s||a,c=["top-left","top-right","bottom-left","bottom-right","top-center","bottom-center","left-center","right-center","center"],h=Hg(),d=(me=n1())==null?void 0:me.getState(),f=(q=(ue=(ve=d==null?void 0:d.appBanner)==null?void 0:ve.view)==null?void 0:ue.record)==null?void 0:q.type,p=h??f,b=r==="page"||h==="page",x=o&&(p==="floater"||((K=e.behaviour)==null?void 0:K.bannerSubType)==="floater"||c.includes((D=e.behaviour)==null?void 0:D.position)),w=o&&(p==="modal"||((j=e.behaviour)==null?void 0:j.bannerSubType)==="modal"),k=(u||x||w)&&((re=e.behaviour)==null?void 0:re.showCloseIcon)!==!1,v=u&&!0,_=o&&e.linkHref?e.linkHref:null,y=V.useMemo(()=>`ahd-layout-${u1+=1}`,[]),I=l1(y,e,b||i?"100%":o&&!x?"900px":"320px"),R=(o||a)&&!!e.backgroundImage;e.borderRadius;const N=e.borderRadius??0,M=W=>typeof W=="number"?`${W}px`:`${W.topLeft}px ${W.topRight}px ${W.bottomRight}px ${W.bottomLeft}px`,O=(W=>W==null?!1:typeof W=="number"?W>0:(W.topLeft??0)>0||(W.topRight??0)>0||(W.bottomRight??0)>0||(W.bottomLeft??0)>0)(N),H=W=>_?m.jsx("a",{href:_,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none",color:"inherit",display:"block"},children:W}):W,B=h1({...e,borderColor:z(e.borderColor)??null}),Z=o&&!!((he=e.boxShadow)!=null&&he.color)&&!!e.boxShadow.inset,F=o&&!Z?kl(e.boxShadow):{},Y=Z?kl(e.boxShadow):{},J=g1(((Ge=e.behaviour)==null?void 0:Ge.position)??"right"),te=u&&!x&&!w&&((Ne=e.behaviour)==null?void 0:Ne.isCaret)!==!1,X=z(e.canvasColor),ae=b1(X,J),Ae=(((_e=e.margin)==null?void 0:_e.left)??0)+(((Q=e.margin)==null?void 0:Q.right)??0),ee=Ae>0?`calc(100% - ${Ae}px)`:"100%";return H(m.jsxs("div",{className:y,style:{minHeight:"100%",display:"block",alignItems:"center"},children:[I&&m.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),m.jsx("div",{style:{color:z(e.textColor??"#262626"),fontFamily:d1(e.fontFamily),fontSize:"16px",fontWeight:"400",letterSpacing:"normal",lineHeight:"1.5",margin:"0",minHeight:"100%",width:"100%"},children:m.jsxs("div",{className:"ahd-layout-sizer",style:{position:"relative",margin:"0 auto",...w||x?null:{maxWidth:"100%"}},children:[te&&m.jsx(x1,{position:J,color:ae}),m.jsxs("div",{style:{position:"relative",borderRadius:M(N),...O?{overflowX:"hidden",overflowY:"visible"}:{overflow:"visible"},...F},children:[Z&&m.jsx("div",{"aria-hidden":!0,style:{position:"absolute",inset:0,pointerEvents:"none",borderRadius:M(N),zIndex:1,...Y}}),k&&m.jsx(v1,{color:(ye=e.behaviour)==null?void 0:ye.iconCloseColor,position:(Ie=e.behaviour)==null?void 0:Ie.closeIconPosition,paddingTop:(Me=e.behaviour)==null?void 0:Me.closeIconPaddingTop,paddingLeft:(Ue=e.behaviour)==null?void 0:Ue.closeIconPaddingLeft,paddingRight:(We=e.behaviour)==null?void 0:We.closeIconPaddingRight}),m.jsx("table",{width:"100%",className:"ahd-layout-table",style:{width:ee,maxWidth:"100%",boxSizing:"border-box",flex:1,margin:e.margin?`${e.margin.top}px ${e.margin.right}px ${e.margin.bottom}px ${e.margin.left}px`:"0 auto",...w||x?{maxWidth:"100%"}:null,top:e.top||"",left:e.left||"",...p1(X,e.backgroundImage,o?"appBanner":""),borderCollapse:"separate",tableLayout:"fixed",...B,borderRadius:M(N),overflow:O?"clip":"visible",...R?{backgroundImage:`url(${e.backgroundImage})`,backgroundSize:e.backgroundSize??"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundRepeat??"no-repeat"}:{}},role:"presentation",cellSpacing:"0",cellPadding:"0",children:m.jsx("tbody",{children:m.jsx("tr",{style:{width:"100%"},children:m.jsxs("td",{className:"email-layout-content",children:[t.map(W=>m.jsx(Te,{id:W},W)),v&&m.jsx(k1,{})]})})})})]})]})})]}))}const S1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),$1=$().regex(/^rgba?\([^\)]+\)$/i),_1=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),C1=le("transparent"),fr=G([S1,$1,_1,C1]).nullable().optional(),A1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),y1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),I1=T(["left","center","right"]).optional().nullable(),Pr={min:1,max:20},Mr={min:4,max:48},$c=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e),R1=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,T1=(e,t=!1)=>t?"16px":e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Tn=(e,t,n)=>Math.min(Math.max(e,t),n),wl=e=>e?$c(e)?{backgroundImage:e,backgroundColor:void 0}:{backgroundColor:e??void 0}:{},N1=A({style:A({backgroundColor:fr,textAlign:I1,padding:A1,margin:y1}).optional().nullable(),props:A({stepperType:T(["dots","numeric","both"]).optional().nullable(),totalDots:g().min(Pr.min).max(Pr.max).optional().nullable(),activeIndex:g().min(1).optional().nullable(),activeColor:fr,inactiveColor:fr,dotSize:g().min(Mr.min).max(Mr.max).optional().nullable(),dotSpacing:g().min(0).max(40).optional().nullable(),numericColor:fr,numericFontSize:g().min(8).max(48).optional().nullable(),numericPosition:T(["above","below","left","right"]).optional().nullable()}).optional().nullable()}),xt={stepperType:"dots",totalDots:5,activeIndex:1,activeColor:"#3F73FF",inactiveColor:"#FFFFFF",dotSize:14,dotSpacing:12,numericColor:"#000000",numericFontSize:14,numericPosition:"below"};function E1({style:e,props:t}){const r=qa()==="mobile",a=typeof window<"u"&&window.location.pathname.includes("page")&&r,i=Tn((t==null?void 0:t.totalDots)??xt.totalDots,Pr.min,Pr.max),l=Tn((t==null?void 0:t.dotSize)??xt.dotSize,Mr.min,Mr.max),s=Tn((t==null?void 0:t.dotSpacing)??xt.dotSpacing,0,40),u=(t==null?void 0:t.activeIndex)??xt.activeIndex,c=Tn(u,1,i),h=z((t==null?void 0:t.activeColor)??xt.activeColor),d=z((t==null?void 0:t.inactiveColor)??xt.inactiveColor),f=(t==null?void 0:t.stepperType)??xt.stepperType,p=f==="numeric"||f==="both",b=f==="dots"||f==="both",x=(t==null?void 0:t.numericColor)??xt.numericColor,w=z(x),k=Tn((t==null?void 0:t.numericFontSize)??xt.numericFontSize,8,48),S=(t==null?void 0:t.numericPosition)??xt.numericPosition,_={...wl((e==null?void 0:e.backgroundColor)??void 0),padding:R1(e==null?void 0:e.padding,a),margin:T1(e==null?void 0:e.margin,a),textAlign:(e==null?void 0:e.textAlign)??"center",width:"100%",boxSizing:"border-box"},y=p&&b&&(S==="above"||S==="below"),C={display:"inline-flex",flexDirection:y?"column":"row",alignItems:"center",justifyContent:(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center",gap:y?"8px":b?`${s}px`:"0px"},I={display:"inline-flex",gap:`${s}px`,alignItems:"center",flexWrap:"wrap"},R=`${c}/${i}`,N=$c(x),M={fontSize:`${k}px`,fontWeight:500,lineHeight:1,whiteSpace:"nowrap",...N?{backgroundImage:w,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"}:{color:w??void 0}},P=()=>p?m.jsx("span",{style:M,children:R}):null,O=()=>m.jsx("div",{style:I,"aria-hidden":"true",children:Array.from({length:i}).map((H,B)=>{const Z=B===c-1,F={width:l,height:l,borderRadius:"50%",border:"2px solid #0000001a",transition:"background 120ms ease, transform 120ms ease",transform:Z?"scale(1.1)":"scale(1)",...wl(Z?h:d)};return m.jsx("span",{style:F,"data-active":Z?"true":"false"},B)})});return m.jsx("div",{className:"stepper-block",style:_,role:"progressbar","aria-valuenow":c,"aria-valuemin":1,"aria-valuemax":i,"aria-valuetext":`Step ${c} of ${i}`,"aria-label":`Step ${c} of ${i}`,children:m.jsxs("div",{style:C,children:[p&&S==="above"&&P(),p&&S==="left"&&P(),b&&O(),p&&S==="right"&&P(),p&&S==="below"&&P()]})})}const P1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),M1=$().regex(/^rgba?\([^\)]+\)$/i),O1=le("transparent"),ko=G([P1,M1,O1]).nullable().optional(),_c=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),L1=_c,z1=T(["left","center","right"]).optional().nullable(),j1=["disc","circle","square","dash","arrow","check","cross","none"],B1=["decimal","decimal-zero","lower-alpha","upper-alpha","lower-roman","upper-roman"],Sl={disc:"●",circle:"○",square:"■",dash:"–",arrow:"➤",check:"✓",cross:"✗"},D1=A({text:$()}),F1=A({style:A({color:ko,backgroundColor:ko,textAlign:z1,fontSize:g().min(1).max(200).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:G([g(),$()]).optional().nullable(),lineHeight:g().min(1).max(3).optional().nullable(),padding:_c,margin:L1}).optional().nullable(),props:A({listType:T(["unordered","ordered"]).optional().nullable(),marker:T([...j1,...B1]).optional().nullable(),numberSuffix:lc(e=>e===""?void 0:e,T([".",")"]).optional().nullable()),startNumber:g().min(0).max(9999).optional().nullable(),markerColor:ko,markerSize:g().min(1).max(200).optional().nullable(),itemGap:g().min(0).max(64).optional().nullable(),items:oe(D1).optional().nullable()}).optional().nullable(),responsive:De}),Mt={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"}]},$l=(e,t,n)=>Math.min(Math.max(e,t),n),_l=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,Cl=e=>{if(e<=0)return String(e);const t=[[1e3,"M"],[900,"CM"],[500,"D"],[400,"CD"],[100,"C"],[90,"XC"],[50,"L"],[40,"XL"],[10,"X"],[9,"IX"],[5,"V"],[4,"IV"],[1,"I"]];let n="",r=e;for(const[o,a]of t)for(;r>=o;)n+=a,r-=o;return n},Al=e=>{let t=e,n="";for(;t>0;){const r=(t-1)%26;n=String.fromCharCode(97+r)+n,t=Math.floor((t-1)/26)}return n||"a"},H1=(e,t,n,r)=>{const o=n+t;switch(e){case"decimal-zero":return`${String(o).padStart(2,"0")}${r}`;case"lower-alpha":return`${Al(o)}${r}`;case"upper-alpha":return`${Al(o).toUpperCase()}${r}`;case"lower-roman":return`${Cl(o).toLowerCase()}${r}`;case"upper-roman":return`${Cl(o)}${r}`;case"decimal":default:return`${o}${r}`}};function G1({style:e,props:t,renderItemText:n}){var k;const o=((t==null?void 0:t.listType)??Mt.listType)==="ordered",a=(t==null?void 0:t.marker)??(o?"decimal":Mt.marker),i=(t==null?void 0:t.numberSuffix)??Mt.numberSuffix,l=(t==null?void 0:t.startNumber)??Mt.startNumber,s=(t==null?void 0:t.markerColor)??Mt.markerColor,u=$l((t==null?void 0:t.markerSize)??Mt.markerSize,1,200),c=$l((t==null?void 0:t.itemGap)??Mt.itemGap,0,64),h=(k=t==null?void 0:t.items)!=null&&k.length?t.items:Mt.items.map(S=>({...S})),d=z(e==null?void 0:e.color),f=(e==null?void 0:e.textAlign)??"left",p={backgroundColor:z(e==null?void 0:e.backgroundColor),padding:_l(e==null?void 0:e.padding),margin:_l(e==null?void 0:e.margin),width:"100%",boxSizing:"border-box",color:d,fontSize:e!=null&&e.fontSize?`${e.fontSize}px`:void 0,fontFamily:(e==null?void 0:e.fontFamily)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5},b={textAlign:"left"},x={verticalAlign:"top",paddingRight:"8px",whiteSpace:"nowrap",color:z(s),fontSize:`${u}px`},w=S=>a==="none"?null:o?H1(a,S,l,i):Sl[a]??Sl.disc;return m.jsx("div",{className:"list-block",style:p,children:m.jsx("table",{role:"presentation",cellPadding:0,cellSpacing:0,style:{borderCollapse:"collapse",width:f==="left"?"100%":"auto",maxWidth:"100%",marginLeft:f==="left"?void 0:"auto",marginRight:f==="center"?"auto":void 0},children:m.jsx("tbody",{children:h.map((S,v)=>{const _=w(v),y=typeof S.text=="string"&&S.text.indexOf("{{")!==-1;return m.jsxs("tr",{children:[a!=="none"&&m.jsx("td",{style:x,children:_}),m.jsx("td",{style:{...b,paddingBottom:v<h.length-1?`${c}px`:0,width:f==="left"?"100%":void 0},children:(n==null?void 0:n(S,v))??(y?m.jsx("span",{style:{display:"contents"},dangerouslySetInnerHTML:{__html:Ya(S.text)}}):S.text)})]},v)})})})})}const U1=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),W1=$().regex(/^rgba?\([^\)]+\)$/i),Z1=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),q1=le("transparent"),V1=G([U1,W1,Z1,q1]).nullable().optional(),Y1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),K1=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),ea=A({style:A({backgroundColor:V1,padding:Y1,margin:K1}).optional().nullable(),props:A({direction:T(["row","column"]).optional().nullable(),directionTablet:T(["row","column"]).optional().nullable(),directionMobile:T(["row","column"]).optional().nullable(),gap:g().optional().nullable(),gapTablet:g().optional().nullable(),gapMobile:g().optional().nullable(),alignment:T(["start","center","end","space-between"]).optional().nullable(),alignmentTablet:T(["start","center","end","space-between"]).optional().nullable(),alignmentMobile:T(["start","center","end","space-between"]).optional().nullable(),wrap:L().optional().nullable(),ariaLabel:$().optional().nullable()}).optional().nullable(),responsive:De}),pr={direction:"row",gap:12,alignment:"start",wrap:!0},Or={start:"flex-start",center:"center",end:"flex-end","space-between":"space-between"},J1=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,X1=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0;function yl(e,t,n,r){const o=e==="row"?Or[t]:"flex-start",a=e==="column"?Or[t]:"center";return`flex-direction:${e}!important;justify-content:${o}!important;align-items:${a}!important;flex-wrap:${e==="row"&&n?"wrap":"nowrap"}!important;gap:${r}px!important;`}let Q1=0;function ek({style:e,buttons:t,props:n}){const r=(n==null?void 0:n.direction)??pr.direction,o=(n==null?void 0:n.directionTablet)??r,a=(n==null?void 0:n.directionMobile)??o,i=(n==null?void 0:n.gap)??pr.gap,l=(n==null?void 0:n.gapTablet)??i,s=(n==null?void 0:n.gapMobile)??l,u=(n==null?void 0:n.alignment)??pr.alignment,c=(n==null?void 0:n.alignmentTablet)??u,h=(n==null?void 0:n.alignmentMobile)??c,d=(n==null?void 0:n.wrap)??pr.wrap,f=(n==null?void 0:n.ariaLabel)??void 0,p=r,b=u,x=i,w=e==null?void 0:e.margin,k=((w==null?void 0:w.left)??0)+((w==null?void 0:w.right)??0),S={display:"flex",flexDirection:p,gap:`${x}px`,justifyContent:p==="row"?Or[b]:"flex-start",alignItems:p==="column"?Or[b]:"center",flexWrap:p==="row"&&d?"wrap":"nowrap",background:z(e==null?void 0:e.backgroundColor),padding:J1(e==null?void 0:e.padding),margin:X1(e==null?void 0:e.margin),boxSizing:"border-box",width:k>0?`max(0px, calc(100% - ${k}px))`:"100%"},v=V.useMemo(()=>`ahd-bg-${Q1+=1}`,[]),_=V.useMemo(()=>{const y=`.${v}`;let C="";return(o!==r||c!==u||l!==i)&&(C+=`@media (max-width:${ze}px){${y}{${yl(o,c,d,l)}}}`),(a!==o||h!==c||s!==l)&&(C+=`@media (max-width:${Be}px){${y}{${yl(a,h,d,s)}}}`),C},[v,r,o,a,u,c,h,i,l,s,d]);return m.jsxs("div",{className:`button-group ${v}`,style:S,role:"group","aria-label":f,children:[_&&m.jsx("style",{dangerouslySetInnerHTML:{__html:_}}),t]})}const tk=ea.shape.props.unwrap().unwrap().shape,nk=A({style:ea.shape.style,props:A({...tk,childrenIds:oe($()).optional().nullable()}).optional().nullable(),responsive:ea.shape.responsive});function rk({style:e,props:t}){const{childrenIds:n,...r}=t??{},o=(n??[]).map(a=>m.jsx(Te,{id:a},a));return m.jsx(ek,{style:e,props:r,buttons:o})}const ok=A({titleChildrenIds:oe($()).optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),ak=A({responsive:De,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:G([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),marginBottom:g().optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({items:oe(ok).min(1).max(25).optional().nullable(),iconColor:$().optional().nullable(),iconSize:g().optional().nullable(),defaultOpen:L().optional().nullable(),activeBorderColor:$().optional().nullable()}).optional().nullable()});function ik(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 Il=e=>typeof e=="string"&&/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i.test(e);function lk(e,t){if(!e)return;const n=Math.max(t.top,t.right,t.bottom,t.left),r=e.split(" ").map(o=>Math.max(0,parseFloat(o)-n));return r.length===1?`${r[0]}px`:r.map(o=>`${o}px`).join(" ")}function sk({style:e,props:t}){const n=V.useMemo(()=>{const C=t==null?void 0:t.items;return!C||C.length===0?{titleChildrenIds:[],contentChildrenIds:[]}:{titleChildrenIds:C[0].titleChildrenIds??[],contentChildrenIds:C[0].contentChildrenIds??[]}},[t==null?void 0:t.items]),r=V.useMemo(()=>`email-accordion-${Math.random().toString(36).slice(2,9)}`,[]),o=`${r}-content`,a=e==null?void 0:e.padding,i=e==null?void 0:e.margin,l=((i==null?void 0:i.left)??0)+((i==null?void 0:i.right)??0),s=t==null?void 0:t.activeBorderColor,u=e==null?void 0:e.borderColor,c=z(s),h=z(u),d=z(e==null?void 0:e.backgroundColor),f=z("#ffffff"),p=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},b=`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`,x=ik(e==null?void 0:e.borderRadius),w=Il(u),k=Il(s),S=w||k,v={width:l>0?`calc(100% - ${l}px)`:"100%",boxSizing:"border-box",borderRadius:x,margin:i?`${i.top}px ${i.right}px ${i.bottom}px ${i.left}px`:void 0,boxShadow:"none"};(e==null?void 0:e.borderRadius)!=null&&(v.overflow="hidden"),S?(v.padding=b,w?v.background=u:u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b)):u&&(v.borderStyle="solid",v.borderColor=h,v.borderWidth=b);const _={background:d??(S?f:void 0),borderRadius:S?lk(x,p):void 0,padding:a?`${a.top}px ${a.right}px ${a.bottom}px ${a.left}px`:void 0,overflow:S&&(e==null?void 0:e.borderRadius)!=null?"hidden":void 0},y=[];return s&&(k?y.push(`#${r}:checked + .email-accordion-root { background:${s}!important; border-style:none!important; padding:${b}!important; }`):y.push(`#${r}:checked + .email-accordion-root { background:none!important; border-style:solid!important; border-color:${c}!important; border-width:${b}!important; ${S?"padding:0!important;":""} }`)),m.jsxs("div",{className:"accordion-block",style:{marginBottom:(e==null?void 0:e.marginBottom)!=null?`${e.marginBottom}px`:"5px"},children:[m.jsx("style",{children:`
|
|
247
247
|
.email-accordion-root { width:100%; }
|
|
248
248
|
.email-accordion-toggle { display:none; }
|
|
249
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; }
|
|
@@ -254,91 +254,105 @@ ${y}
|
|
|
254
254
|
.email-accordion-toggle:checked + .email-accordion-root .email-accordion-arrow { transform: rotate(180deg); }
|
|
255
255
|
${y.join(`
|
|
256
256
|
`)}
|
|
257
|
-
`}),
|
|
258
|
-
.pacc-grid{display:grid;grid-template-columns:${
|
|
259
|
-
.pacc-grid-card{background:${
|
|
257
|
+
`}),m.jsx("input",{id:r,className:"email-accordion-toggle",type:"checkbox",role:"switch","aria-label":"Toggle section","aria-controls":o,defaultChecked:(t==null?void 0:t.defaultOpen)??!1}),m.jsx("div",{className:"email-accordion-root",style:v,children:m.jsxs("div",{className:"email-accordion-inner",style:_,children:[m.jsxs("label",{htmlFor:r,className:"email-accordion-label",children:[m.jsx("div",{className:"title",children:n.titleChildrenIds.map(C=>m.jsx(Te,{id:C},C))}),m.jsx("span",{className:"email-accordion-arrow","aria-hidden":"true",style:{color:z(t==null?void 0:t.iconColor)},children:m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:(t==null?void 0:t.iconSize)??14,height:(t==null?void 0:t.iconSize)??14,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"})})})]}),m.jsx("div",{id:o,className:"email-accordion-content",role:"region",children:n.contentChildrenIds.map(C=>m.jsx(Te,{id:C},C))})]})})]})}const ck=A({label:$().optional().nullable(),cardChildrenIds:oe($()).optional().nullable(),detailChildrenIds:oe($()).optional().nullable()}),uk=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),borderRadius:G([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),cardGap:g().optional().nullable(),equalCardWidth:L().optional().nullable(),cardBgColor:$().optional().nullable(),cardBorderColor:$().optional().nullable(),cardBorderWidth:g().optional().nullable(),cardBorderRadius:g().optional().nullable(),cardPadding:g().optional().nullable(),cardShadow:$().optional().nullable(),cardTextColor:$().optional().nullable(),cardFontSize:g().optional().nullable(),cardFontFamily:$().optional().nullable(),cardFontWeight:$().optional().nullable(),cardTextAlign:T(["left","center","right"]).optional().nullable(),cardHoverBgColor:$().optional().nullable(),cardHoverShadow:$().optional().nullable(),activeCardBgColor:$().optional().nullable(),activeCardBorderColor:$().optional().nullable(),activeCardShadow:$().optional().nullable(),activeCardTextColor:$().optional().nullable(),arrowColor:$().optional().nullable(),arrowActiveColor:$().optional().nullable(),arrowSize:g().optional().nullable(),detailBgColor:$().optional().nullable(),detailBorderColor:$().optional().nullable(),detailBorderWidth:g().optional().nullable(),detailBorderRadius:g().optional().nullable(),detailPadding:g().optional().nullable(),detailShadow:$().optional().nullable(),detailGap:g().optional().nullable(),rightCardWidth:g().optional().nullable(),cardListWidth:g().optional().nullable(),panelGap:g().optional().nullable()}).optional().nullable(),props:A({items:oe(ck).min(1).max(10).optional().nullable(),defaultOpenIndex:g().optional().nullable(),accordionEnabled:L().optional().nullable(),detailPosition:T(["bottom","right"]).optional().nullable()}).optional().nullable()});function dk(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 hk({style:e,props:t}){const n=V.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Plan 1",cardChildrenIds:[],detailChildrenIds:[]}],[t==null?void 0:t.items]),r=V.useMemo(()=>`pacc-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.accordionEnabled)??!1,a=(t==null?void 0:t.defaultOpenIndex)??null,i=(t==null?void 0:t.detailPosition)??"bottom",l=(e==null?void 0:e.cardGap)??16,s=(e==null?void 0:e.equalCardWidth)??!0,u=z((e==null?void 0:e.cardBgColor)??"#ffffff"),c=z((e==null?void 0:e.cardBorderColor)??"rgba(0,0,0,0.12)"),h=(e==null?void 0:e.cardBorderWidth)??1,d=(e==null?void 0:e.cardBorderRadius)??12,f=(e==null?void 0:e.cardPadding)??16,p=(e==null?void 0:e.cardShadow)??"none",b=z((e==null?void 0:e.cardTextColor)??"inherit"),x=(e==null?void 0:e.cardFontSize)??null,w=(e==null?void 0:e.cardFontFamily)??"inherit",k=(e==null?void 0:e.cardFontWeight)??"inherit",S=(e==null?void 0:e.cardTextAlign)??"left",v=z((e==null?void 0:e.cardHoverBgColor)??null),_=(e==null?void 0:e.cardHoverShadow)??"0 2px 6px rgba(0,0,0,0.07)",y=z(e==null?void 0:e.activeCardBgColor)??u,C=z(e==null?void 0:e.activeCardBorderColor)??c,I=(e==null?void 0:e.activeCardShadow)??p,R=z(e==null?void 0:e.activeCardTextColor)??b,N=z((e==null?void 0:e.arrowColor)??"currentColor"),M=z(e==null?void 0:e.arrowActiveColor)??N,P=(e==null?void 0:e.arrowSize)??13,O=z((e==null?void 0:e.detailBgColor)??"#f8fafc"),H=z((e==null?void 0:e.detailBorderColor)??"rgba(0,0,0,0.08)"),B=(e==null?void 0:e.detailBorderWidth)??1,Z=(e==null?void 0:e.detailBorderRadius)??12,F=(e==null?void 0:e.detailPadding)??24,Y=(e==null?void 0:e.detailShadow)??"none",J=(e==null?void 0:e.detailGap)??12,te=(e==null?void 0:e.rightCardWidth)??280,X=e==null?void 0:e.padding,ae={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:dk(e==null?void 0:e.borderRadius),padding:X?`${X.top}px ${X.right}px ${X.bottom}px ${X.left}px`:void 0},Ae=s?`repeat(${n.length}, minmax(0, 1fr))`:`repeat(${n.length}, minmax(0, auto))`,ee=x?`${x}px`:"inherit";if(!o){const ue=`
|
|
258
|
+
.pacc-grid{display:grid;grid-template-columns:${Ae};gap:${l}px;width:100%;box-sizing:border-box}
|
|
259
|
+
.pacc-grid-card{background:${u};border:${h}px solid ${c};border-radius:${d}px;padding:${f}px;box-sizing:border-box;box-shadow:${p};color:${b};font-size:${ee};font-family:${w};font-weight:${k};text-align:${S}}
|
|
260
260
|
${v?`.pacc-grid-card:hover{background:${v};box-shadow:${_}}`:`.pacc-grid-card:hover{box-shadow:${_}}`}
|
|
261
261
|
@media(max-width:640px){.pacc-grid{grid-template-columns:1fr}}
|
|
262
|
-
`;return
|
|
262
|
+
`;return m.jsxs("div",{style:ae,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:ue}}),m.jsx("div",{className:"pacc-grid",children:n.map((q,K)=>m.jsx("div",{className:"pacc-grid-card",children:(q.cardChildrenIds??[]).map(D=>m.jsx(Te,{id:D},D))},K))})]})}if(i==="bottom"){const ue=n.map((K,D)=>{const j=`#${r}-cb${D}:checked ~ .pacc-wrap`;return`${j}{grid-template-columns:1fr}`+n.map((re,he)=>he!==D?`${j} .pacc-item:nth-child(${he+1}){display:none}`:"").join("")+`${j} .pacc-item:nth-child(${D+1}){display:block}${j} .pacc-item:nth-child(${D+1}) .pacc-card{background:${y};border-color:${C};box-shadow:${I};color:${R}}${j} .pacc-item:nth-child(${D+1}) .pacc-arrow{transform:rotate(180deg);color:${M}}${j} .pacc-item:nth-child(${D+1}) .pacc-detail{display:block}`}).join(""),q=`
|
|
263
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}
|
|
264
|
-
.pacc-wrap{display:grid;grid-template-columns:${
|
|
264
|
+
.pacc-wrap{display:grid;grid-template-columns:${Ae};gap:${l}px;width:100%;box-sizing:border-box}
|
|
265
265
|
.pacc-item{box-sizing:border-box}
|
|
266
|
-
.pacc-card{background:${
|
|
266
|
+
.pacc-card{background:${u};border:${h}px solid ${c};border-radius:${d}px;padding:${f}px;padding-right:${f+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${S};color:${b};font-size:${ee};font-family:${w};font-weight:${k};box-shadow:${p}}
|
|
267
267
|
${v?`.pacc-card:hover{background:${v};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:${
|
|
269
|
-
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${
|
|
270
|
-
.pacc-detail{display:none;margin-top:${
|
|
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:${N}}
|
|
269
|
+
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${P}px;line-height:1}
|
|
270
|
+
.pacc-detail{display:none;margin-top:${J}px;background:${O};border:${B}px solid ${H};border-radius:${Z}px;padding:${F}px;box-sizing:border-box;box-shadow:${Y}}
|
|
271
271
|
@media(max-width:640px){.pacc-wrap{grid-template-columns:1fr!important}}
|
|
272
|
-
${
|
|
273
|
-
`;return
|
|
272
|
+
${ue}
|
|
273
|
+
`;return m.jsxs("div",{style:ae,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:q}}),n.map((K,D)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${D}`,className:"pacc-cb",defaultChecked:D===a},D)),m.jsx("div",{className:"pacc-wrap",children:n.map((K,D)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${D}`,className:"pacc-card",children:[(K.cardChildrenIds??[]).map(j=>m.jsx(Te,{id:j},j)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-down"})})]}),m.jsx("div",{className:"pacc-detail",children:(K.detailChildrenIds??[]).map(j=>m.jsx(Te,{id:j},j))})]},D))})]})}const me=n.map((ue,q)=>{const K=`#${r}-cb${q}:checked ~ .pacc-wrap`;return`${K}{grid-template-columns:1fr}`+n.map((D,j)=>j!==q?`${K} .pacc-item:nth-child(${j+1}){display:none}`:"").join("")+`${K} .pacc-item:nth-child(${q+1}){display:flex;flex-direction:row;gap:${J}px;align-items:flex-start}${K} .pacc-item:nth-child(${q+1}) .pacc-card{flex-shrink:0;width:${te}px;background:${y};border-color:${C};box-shadow:${I};color:${R}}${K} .pacc-item:nth-child(${q+1}) .pacc-arrow{transform:rotate(90deg);color:${M}}${K} .pacc-item:nth-child(${q+1}) .pacc-detail{display:block;flex:1;min-width:0}`}).join(""),ve=`
|
|
274
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}
|
|
275
|
-
.pacc-wrap{display:grid;grid-template-columns:${
|
|
275
|
+
.pacc-wrap{display:grid;grid-template-columns:${Ae};gap:${l}px;width:100%;box-sizing:border-box}
|
|
276
276
|
.pacc-item{box-sizing:border-box}
|
|
277
|
-
.pacc-card{background:${
|
|
277
|
+
.pacc-card{background:${u};border:${h}px solid ${c};border-radius:${d}px;padding:${f}px;padding-right:${f+28}px;box-sizing:border-box;display:flex;flex-direction:column;position:relative;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,box-shadow 180ms ease;width:100%;text-align:${S};color:${b};font-size:${ee};font-family:${w};font-weight:${k};box-shadow:${p}}
|
|
278
278
|
${v?`.pacc-card:hover{background:${v};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:${
|
|
280
|
-
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${
|
|
281
|
-
.pacc-detail{display:none;background:${O};border:${
|
|
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:${N}}
|
|
280
|
+
.pacc-arrow i{font-family:'bootstrap-icons'!important;font-size:${P}px;line-height:1}
|
|
281
|
+
.pacc-detail{display:none;background:${O};border:${B}px solid ${H};border-radius:${Z}px;padding:${F}px;box-sizing:border-box;box-shadow:${Y}}
|
|
282
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}}
|
|
283
|
-
${
|
|
284
|
-
`;return g.jsxs("div",{style:re,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:xe}}),n.map((X,j)=>g.jsx("input",{type:"radio",name:o,id:`${o}-cb${j}`,className:"pacc-cb",defaultChecked:j===i},j)),g.jsx("div",{className:"pacc-wrap",children:n.map((X,j)=>g.jsxs("div",{className:"pacc-item",children:[g.jsxs("label",{htmlFor:`${o}-cb${j}`,className:"pacc-card",children:[(X.cardChildrenIds??[]).map(B=>g.jsx(Re,{id:B},B)),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:(X.detailChildrenIds??[]).map(B=>g.jsx(Re,{id:B},B))})]},j))})]})}const h1=160,f1=A({label:$().optional().nullable(),contentChildrenIds:ne($()).optional().nullable()}),m1=A({responsive:We,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),tabActiveColor:$().optional().nullable(),tabActiveBgColor:$().optional().nullable(),tabInactiveTextColor:$().optional().nullable(),tabInactiveBgColor:$().optional().nullable(),tabInactiveBorderColor:$().optional().nullable(),tabInactiveBorderWidth:m().optional().nullable(),tabTextColor:$().optional().nullable(),tabBgColor:$().optional().nullable(),tabBorderRadius:m().optional().nullable(),tabGap:m().optional().nullable(),contentGap:m().optional().nullable(),navBorderColor:$().optional().nullable(),navWidth:m().optional().nullable(),fontSize:G([$(),m()]).optional().nullable(),lineHeight:G([$(),m()]).optional().nullable(),activeFontSize:G([$(),m()]).optional().nullable(),showActiveBorder:L().optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable()}).optional().nullable(),props:A({orientation:N(["horizontal","vertical"]).optional().nullable(),orientationTablet:N(["horizontal","vertical"]).optional().nullable(),orientationMobile:N(["horizontal","vertical"]).optional().nullable(),behavior:N(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:N(["left","center","right"]).optional().nullable(),dropdown:L().optional().nullable(),dropdownTablet:L().optional().nullable(),dropdownMobile:L().optional().nullable(),activeTabIndex:m().optional().nullable(),stickyNav:L().optional().nullable(),items:ne(f1).min(1).max(20).optional().nullable()}).optional().nullable()});function p1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function g1(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 Yi(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const b1={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},x1={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function mt(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function bo(e,t=!1){const n=t?"!important":"";return e?mt(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function xo(e,t=!1){const n=t?"!important":"";return mt(e)?`color:transparent${n}`:`color:${e}${n}`}function vo(e,t=!1){const n=t?"!important":"";return mt(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function Nr(e,t,n,o=!1){const r=o?"!important":"";return mt(e)?`border-${n}-style:solid${r};border-${n}-width:${t}${r};border-image-source:${e}${r};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${r}`:`border-${n}-color:${e}${r}`}function v1(e,t,n=!1){const o=n?"!important":"";return e?mt(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 qt(e,t,n,o,r,i,a,l){const s=mt(l),c=s?Nr(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,u=s?Nr(l,n,"right"):`border-right:${n} solid var(--ahd-tabs-nav-border,transparent)`;if(t==="horizontal")return`${e}{display:block}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${o};align-items:center;justify-content:${i};width:100%;${c};border-right:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:inline-flex;border-bottom:3px solid transparent;border-left:0;margin-bottom:calc(-1 * ${n});margin-right:0}${e} > .ahd-tabs-panels{width:100%;margin-top:${r};margin-left:0}`;const h=`${a??h1}px`,d=`var(--ahd-tabs-nav-width,${h})`,f=`width:var(--ahd-tabs-nav-width,${h});max-width:var(--ahd-tabs-nav-width,${h})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${r};align-items:start}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;grid-column:1;grid-row:1;align-self:start;${f};min-width:0;overflow:visible;${u};border-bottom:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${o};white-space:normal!important;word-break:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;box-sizing:border-box}${e} > .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function S1(e,t,n,o,r,i,a,l,s,c,u,h,d,f,p,b,x=1){let w="";for(let _=0;_<p;_++){const y=`${e} #${f}-r${_}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${_+1})`;w+=`${y}{${bo(a,!0)};${xo(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${vo(l,!0)}}${y}:hover{${bo(a,!0)}}`}const S=`${e} > .ahd-tabs-dd-wrap`,k=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${S}:focus-within`,v=s?`${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${S}{display:block!important;position:relative!important;width:100%!important}${S} > .ahd-tabs-dd-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid ${t};border-radius:${o};background:${r};color:${i};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+v+`${S} > .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}${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${S} > .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}${k} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${S} > .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;${xo(c??"inherit",!0)};background:${u??"transparent"}!important;box-shadow:${h}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${S} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${vo(c??"inherit",!0)}}${S} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${S} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${u??"rgba(0,0,0,.05)"}!important}${e} > .ahd-tabs-panels{position:static!important;width:100%!important;margin:${n} 0 0 0!important;grid-column:auto!important}`+w}function Ko(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 w1({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",o=(t==null?void 0:t.orientationTablet)??n,r=(t==null?void 0:t.orientationMobile)??"vertical",a=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=Z.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),c=Z.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),u=z(e==null?void 0:e.tabActiveColor),h=z(e==null?void 0:e.tabActiveBgColor),d=z(e==null?void 0:e.tabInactiveTextColor),f=z(e==null?void 0:e.tabInactiveBgColor),p=z(e==null?void 0:e.tabInactiveBorderColor),b=(e==null?void 0:e.tabInactiveBorderWidth)??1,x=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",w=z(e==null?void 0:e.tabTextColor),S=z((e==null?void 0:e.tabBgColor)??"transparent"),k=z(e==null?void 0:e.navBorderColor),v=k?"2px":"0px",_=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",y=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",C=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,I="var(--ahd-tabs-tab-gap,"+_+")",R="var(--ahd-tabs-content-gap,"+y+")",E=(e==null?void 0:e.activeFontSize)!=null?Yi(e.activeFontSize):void 0,M=((e==null?void 0:e.showActiveBorder)??!0)&&!h?u||"currentColor":"transparent",O=(t==null?void 0:t.tabsAlign)??"left",H=O==="center"?"center":O==="right"?"flex-end":"flex-start",D=(t==null?void 0:t.dropdown)??!1,V=(t==null?void 0:t.dropdownTablet)??D,F=(t==null?void 0:t.dropdownMobile)??V,q=e==null?void 0:e.padding,Y=e==null?void 0:e.margin,ie=((Y==null?void 0:Y.left)??0)+((Y==null?void 0:Y.right)??0),J=mt(e==null?void 0:e.borderColor),re=e!=null&&e.borderColor?J?{border:"1px solid transparent",borderImageSource:e.borderColor,borderImageSlice:1}:{border:`1px solid ${e.borderColor}`}:{},me={width:ie>0?`calc(100% - ${ie}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,...re,borderRadius:g1(e==null?void 0:e.borderRadius),padding:q?`${q.top}px ${q.right}px ${q.bottom}px ${q.left}px`:void 0,margin:Y?`${Y.top}px ${Y.right}px ${Y.bottom}px ${Y.left}px`:void 0,fontFamily:p1(e==null?void 0:e.fontFamily),fontSize:Yi(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":k??"transparent"},ae=()=>s.map((j,B)=>g.jsx("input",{type:"radio",id:`${c}-r${B}`,name:c,className:"ahd-tabs-radio",defaultChecked:B===0,style:b1},B)),Se=Z.useMemo(()=>{const j=`.${c}`,B=u||"currentColor",K=w||"inherit",W=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,te=`${W} > .ahd-tabs-label-text`,fe=`${j} > .ahd-tabs-panels > .ahd-tabs-panel`,ze=d??K;let ue=`${W}{${xo(ze)};${bo(f)};${v1(p,b)};border-radius:${x}}${te}{${vo(ze)}}`+(a?"":`${fe}{display:none}`)+`${j} > .ahd-tabs-dd-wrap{display:contents}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${j} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((Ee,Ge)=>{const je=`#${c}-r${Ge}:checked`,kt=`${je} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${Ge+1})`,gt=`${je} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${Ge+1})`,at=mt(M),Ze=`${xo(B,!0)};${bo(h,!0)};box-shadow:none!important`+(at?`;${Nr(M,"3px",n==="vertical"?"left":"bottom",!0)}`:`;border-left-color:var(--ahd-tabs-active-border-color,${M})!important;border-bottom-color:var(--ahd-tabs-active-border-color,${M})!important`);ue+=`${kt}{${Ze}}`,ue+=`${kt} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${E??"inherit"})!important;${vo(B,!0)}}`,a||(ue+=`${gt}{display:block!important}`),ue+=`${je} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${Ge+1}){display:inline}`}),ue+=qt(j,n,v,I,R,H,C!=null?String(C):void 0,k??void 0),o!==n&&(ue+=`${Jo}{${qt(j,o,v,I,R,H,C!=null?String(C):void 0,k??void 0)}}`),r!==o&&(ue+=`${Xo}{${qt(j,r,v,I,R,H,C!=null?String(C):void 0,k??void 0)}}`);const Ce=p||k||"#d0d5dd",le=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",Ae=z((e==null?void 0:e.tabBgColor)??"#fff")??"#fff",ye=w??"inherit",Te=h??"transparent",Fe=u??"inherit",He=p?mt(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",ee=mt(p)?p:void 0,de=S1(j,Ce,R,le,Ae,ye,Te,Fe,E,d,f,He,I,c,s.length,ee,b);return l&&(ue+=`${j} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${j}){position:sticky;top:0;z-index:50}`),D?(ue+=de,V||(ue+=`${Jo}{${Ko(j,x)}${qt(j,o,v,I,R,H,C!=null?String(C):void 0,k??void 0)}}`),!F&&V&&(ue+=`${Xo}{${Ko(j,x)}${qt(j,r,v,I,R,H,C!=null?String(C):void 0,k??void 0)}}`)):(V&&(ue+=`${Jo}{${de}}`),F!==V&&(ue+=`${Xo}{${F?de:Ko(j,x)+qt(j,r,v,I,R,H,C!=null?String(C):void 0,k??void 0)}}`)),ue},[s,c,u,h,x,w,E,M,n,o,r,a,v,k,C,I,R,H,d,f,p,b,D,V,F,l]),xe=j=>a?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:j===0?void 0:R}:{display:j===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},X=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return g.jsxs("div",{className:`${c} ahd-tabs ${X}${l?" ahd-tabs-sticky":""}${a?" ahd-tabs-scroll-sections":""}`,style:me,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Se}}),ae(),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((j,B)=>g.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":B,children:j.label??`Tab ${B+1}`},B))}),g.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),g.jsx("div",{className:"ahd-tabs-nav",style:{background:S,...l?{position:"sticky",top:0}:{}},children:s.map((j,B)=>g.jsx("label",{htmlFor:`${c}-r${B}`,className:"ahd-tabs-label","data-ahd-tab-index":B,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:x1,children:j.label??`Tab ${B+1}`})},B))})]}),g.jsx("div",{className:"ahd-tabs-panels",children:s.map((j,B)=>g.jsx("div",{id:`${c}-panel-${B}`,className:"ahd-tabs-panel","data-ahd-tab-index":B,style:xe(B),children:(j.contentChildrenIds??[]).map(K=>g.jsx(Re,{id:K},K))},B))})]})}const Jo=`@media (max-width:${Oe}px)`,Xo=`@media (max-width:${Le}px)`,$1=A({contentChildrenIds:ne($()).optional().nullable()}),k1=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),slideGap:m().optional().nullable(),arrowColor:$().optional().nullable(),arrowBgColor:$().optional().nullable(),arrowBorderColor:$().optional().nullable(),arrowSize:m().min(16).max(80).optional().nullable(),dotColor:$().optional().nullable(),dotActiveColor:$().optional().nullable(),dotSize:m().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({slidesPerView:m().min(1).max(6).optional().nullable(),slidesPerViewTablet:m().min(1).max(6).optional().nullable(),slidesPerViewMobile:m().min(1).max(6).optional().nullable(),showArrows:L().optional().nullable(),showDots:L().optional().nullable(),autoplay:L().optional().nullable(),autoplayInterval:m().min(500).max(2e4).optional().nullable(),loop:L().optional().nullable(),transitionMs:m().min(0).max(3e3).optional().nullable(),items:ne($1).min(1).max(20).optional().nullable()}).optional().nullable()});function _1(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 C1="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",A1="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Ki=({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 y1({style:e,props:t}){const n=Z.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),o=Z.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),r=Math.max(1,(t==null?void 0:t.slidesPerView)??1),i=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(r,2)),a=Math.max(1,(t==null?void 0:t.slidesPerViewMobile)??1),l=(t==null?void 0:t.showArrows)??!0,s=(t==null?void 0:t.showDots)??!0,c=(t==null?void 0:t.autoplay)??!1,u=(t==null?void 0:t.autoplayInterval)??4e3,h=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,f=(e==null?void 0:e.slideGap)??16,p=z((e==null?void 0:e.arrowColor)??"#262626")??"#262626",b=z((e==null?void 0:e.arrowBgColor)??"#ffffff")??"#ffffff",x=z((e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)")??"rgba(0,0,0,.12)",w=(e==null?void 0:e.arrowSize)??40,S=z((e==null?void 0:e.dotColor)??"#d4d4d4")??"#d4d4d4",k=z((e==null?void 0:e.dotActiveColor)??"#262626")??"#262626",v=(e==null?void 0:e.dotSize)??8,_=Math.max(12,Math.min(40,Math.round(w*.5))),y=e==null?void 0:e.padding,C=e==null?void 0:e.margin,I=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),R={width:I>0?`calc(100% - ${I}px)`:"100%",boxSizing:"border-box",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:_1(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:C?`${C.top}px ${C.right}px ${C.bottom}px ${C.left}px`:void 0},E=Z.useMemo(()=>{const H=`.${o}`,D=V=>`calc((100% - ${f*(V-1)}px) / ${V})`;return`${H} .ahd-carousel-viewport{overflow:hidden;width:100%}${H} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${f}px);transition:transform ${d}ms ease;will-change:transform}${H} .ahd-carousel-slide{flex:0 0 ${D(r)};min-width:0;box-sizing:border-box}${H} .ahd-carousel-prev svg,${H} .ahd-carousel-next svg{width:var(--ahd-carousel-chevron-size,${_}px);height:var(--ahd-carousel-chevron-size,${_}px)}@media (max-width:${Oe}px){${H} .ahd-carousel-slide{flex-basis:${D(i)}}}@media (max-width:${Le}px){${H} .ahd-carousel-slide{flex-basis:${D(a)}}}`},[o,f,d,r,i,a,_]),P={appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-arrow-size, ${w}px)`,height:`var(--ahd-carousel-arrow-size, ${w}px)`,minWidth:`var(--ahd-carousel-arrow-size, ${w}px)`,borderRadius:"50%",border:`1px solid ${x}`,backgroundColor:b,backgroundImage:"none",color:p,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},M=Math.min(r,i,a),O=Math.max(1,n.length-M+1);return g.jsxs("div",{className:`${o} ahd-carousel`,style:R,"data-per-view":r,"data-per-view-tablet":i,"data-per-view-mobile":a,"data-autoplay":c?"1":"0","data-autoplay-interval":u,"data-loop":h?"1":"0",children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:E}}),g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&g.jsx("button",{type:"button",className:"ahd-carousel-prev",style:P,"aria-label":"Previous slide",children:g.jsx(Ki,{d:C1,size:_})}),g.jsx("div",{className:"ahd-carousel-viewport",children:g.jsx("div",{className:"ahd-carousel-track",children:n.map((H,D)=>g.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":D,children:(H.contentChildrenIds??[]).map(V=>g.jsx(Re,{id:V},V))},D))})}),l&&g.jsx("button",{type:"button",className:"ahd-carousel-next",style:P,"aria-label":"Next slide",children:g.jsx(Ki,{d:A1,size:_})})]}),s&&O>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":k,children:Array.from({length:O}).map((H,D)=>g.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":D,"aria-label":`Go to slide ${D+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${v}px)`,height:`var(--ahd-carousel-dot-size, ${v}px)`,minWidth:`var(--ahd-carousel-dot-size, ${v}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:D===0?k:S,backgroundImage:"none"}},D))})]})}const I1=A({style:A({starColor:$().optional().nullable(),starEmptyColor:$().optional().nullable(),starSize:m().min(8).max(80).optional().nullable(),starGap:m().min(0).max(40).optional().nullable(),textColor:$().optional().nullable(),fontSize:G([$(),m()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable()}).optional().nullable(),props:A({value:G([m(),$()]).optional().nullable(),max:G([m(),$()]).optional().nullable(),showValue:L().optional().nullable()}).optional().nullable()}),Ji="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 R1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function N1(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function T1({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:Ji})}),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:Ji})})})]})}function E1({style:e,props:t}){const n=Z.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),o=(w,S)=>{if(typeof w=="number")return Number.isFinite(w)?w:S;const k=parseFloat(String(w??""));return Number.isFinite(k)?k:S},r=Math.max(1,Math.min(10,Math.round(o(t==null?void 0:t.max,5)))),i=Math.max(0,Math.min(r,o(t==null?void 0:t.value,0))),a=(t==null?void 0:t.showValue)??!0,l=z((e==null?void 0:e.starColor)??"#facc15")??"#facc15",s=z((e==null?void 0:e.starEmptyColor)??"#e5e7eb")??"#e5e7eb",c=(e==null?void 0:e.starSize)??24,u=(e==null?void 0:e.starGap)??4,h=z((e==null?void 0:e.textColor)??"#262626")??"#262626",d=(e==null?void 0:e.textAlign)??"left",f=e==null?void 0:e.padding,p=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${u}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:h,fontFamily:R1(e==null?void 0:e.fontFamily),fontSize:N1(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,boxSizing:"border-box"},x=w=>{const S=i-w;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:r}).map((w,S)=>g.jsx(T1,{fillPct:x(S),size:c,filledColor:l,emptyColor:s},S))}),a&&g.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(i)?i:i.toFixed(1),g.jsxs("span",{style:{opacity:.55},children:["/",r]})]})]})}const M1=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),P1=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),O1=A({style:A({trackColor:$().optional().nullable(),fillColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:G([$(),m()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),barHeight:m().min(2).max(60).optional().nullable(),barRadius:m().min(0).max(40).optional().nullable(),circleSize:m().min(40).max(320).optional().nullable(),strokeWidth:m().min(2).max(40).optional().nullable(),stepSize:m().min(4).max(48).optional().nullable(),stepGap:m().min(0).max(40).optional().nullable(),padding:M1,margin:P1}).optional().nullable(),props:A({variant:N(["linear","circular","steps"]).optional().nullable(),value:G([m(),$()]).optional().nullable(),max:G([m(),$()]).optional().nullable(),showLabel:L().optional().nullable(),labelFormat:N(["percent","fraction"]).optional().nullable(),steps:m().min(2).max(20).optional().nullable(),striped:L().optional().nullable(),animated:L().optional().nullable()}).optional().nullable()});function L1(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function z1(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Xi(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function Qi(e,t,n,o){return o==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function j1({pct:e,label:t,trackColor:n,fillColor:o,barHeight:r,barRadius:i,striped:a,animated:l,ariaLabel:s,value:c,max:u}){const h=a&&l;return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[h&&g.jsx("style",{dangerouslySetInnerHTML:{__html:"@keyframes ahd-progress-stripes{from{background-position:1rem 0}to{background-position:0 0}}.ahd-progress-animated{animation:ahd-progress-stripes 1s linear infinite}@media (prefers-reduced-motion: reduce){.ahd-progress-animated{animation:none}}"}}),g.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":u,"aria-label":s,style:{width:"100%",height:r,borderRadius:i,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:g.jsx("div",{className:`ahd-progress-fill${a?" ahd-progress-striped":""}${h?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:i,backgroundColor:o,backgroundImage:a?"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)":void 0,backgroundSize:a?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&g.jsx("span",{children:t})]})}function B1({pct:e,label:t,trackColor:n,fillColor:o,size:r,strokeWidth:i,textColor:a,fontWeight:l,ariaLabel:s,value:c,max:u}){const h=(r-i)/2,d=2*Math.PI*h,f=d*(1-e/100),p=r/2;return g.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":u,"aria-label":s,style:{position:"relative",width:r,height:r,display:"inline-flex"},children:[g.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,children:[g.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:n,strokeWidth:i}),g.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:o,strokeWidth:i,strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:f,transform:`rotate(-90 ${p} ${p})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&g.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:a,fontWeight:l??600},children:t})]})}function D1({steps:e,activeIndex:t,trackColor:n,fillColor:o,stepSize:r,stepGap:i,label:a,ariaLabel:l,value:s,max:c}){return g.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[g.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":c,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:i},children:Array.from({length:e}).map((u,h)=>g.jsx("span",{"data-active":h<t?"true":"false",style:{width:r,height:r,borderRadius:"50%",backgroundColor:h<t?o:n,transition:"background-color 200ms ease",display:"inline-block"}},h))}),a!=null&&g.jsx("span",{children:a})]})}function F1({style:e,props:t}){const n=Z.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),o=(t==null?void 0:t.variant)??"linear",r=Math.max(1,Xi(t==null?void 0:t.max,100)),i=Math.max(0,Math.min(r,Xi(t==null?void 0:t.value,0))),a=i/r*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",c=l?Qi(a,i,r,s):null,u=`Progress: ${Qi(a,i,r,"percent")}`,h=z((e==null?void 0:e.trackColor)??"#e5e7eb")??"#e5e7eb",d=z((e==null?void 0:e.fillColor)??"#3F73FF")??"#3F73FF",f=z((e==null?void 0:e.textColor)??"#262626")??"#262626",p=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w={display:"flex",justifyContent:p==="center"?"center":p==="right"?"flex-end":"flex-start",color:f,fontFamily:L1(e==null?void 0:e.fontFamily),fontSize:z1((e==null?void 0:e.fontSize)??13),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,boxSizing:"border-box"},S=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),k=Math.round(a/100*S);return g.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:o==="circular"?g.jsx(B1,{pct:a,label:c,trackColor:h,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:f,fontWeight:(e==null?void 0:e.fontWeight)??void 0,ariaLabel:u,value:i,max:r}):o==="steps"?g.jsx(D1,{steps:S,activeIndex:k,trackColor:h,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:c,ariaLabel:u,value:i,max:r}):g.jsx(j1,{pct:a,label:c,trackColor:h,fillColor:d,barHeight:(e==null?void 0:e.barHeight)??12,barRadius:(e==null?void 0:e.barRadius)??6,striped:(t==null?void 0:t.striped)??!1,animated:(t==null?void 0:t.animated)??!1,ariaLabel:u,value:i,max:r})})}const H1=A({responsive:We,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(200).optional().nullable(),viewportHeight:m().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:N(["left","right","up","down"]).optional().nullable(),speed:m().min(5).max(200).optional().nullable(),pauseOnHover:L().optional().nullable(),repeat:m().min(2).max(6).optional().nullable(),fadeEdges:L().optional().nullable(),verticalAlign:N(["top","middle","bottom"]).optional().nullable(),items:ne(A({contentChildrenIds:ne($()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),G1=40,U1=32,W1=200,zs=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,js=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,Z1=e=>Math.max(2,Math.round(1200/e)),V1=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),Bs=e=>e==="up"||e==="down",q1=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",So=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function Y1(e,t){return{speed:js(t==null?void 0:t.speed,G1),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??U1,viewportHeight:zs(e==null?void 0:e.viewportHeight,W1)}}function K1(e,t,n){var r,i,a,l,s;const o=e==null?void 0:e[t];return{speed:js((r=o==null?void 0:o.props)==null?void 0:r.speed,n.speed),pauseOnHover:((i=o==null?void 0:o.props)==null?void 0:i.pauseOnHover)??n.pauseOnHover,fadeEdges:((a=o==null?void 0:o.props)==null?void 0:a.fadeEdges)??n.fadeEdges,itemGap:((l=o==null?void 0:o.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:zs((s=o==null?void 0:o.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const J1=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},el=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${Z1(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,X1=(e,t)=>e.fadeEdges?`-webkit-mask-image:${So(t)}!important;mask-image:${So(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function Q1({instanceId:e,direction:t,repeat:n,desktop:o,responsive:r,verticalAlign:i}){const a=`.${e}`,l=Bs(t),s=l?"column":"row",c=t==="right"||t==="down"?"reverse":"normal",u=l?"flex-start":q1(i),h=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${h}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${h}%)}}`,f=(b,x)=>{if(!J1(r,x))return"";const w=K1(r,x,o);return`${b}{${a}{${el(w)};${X1(w,l)}}}`},p=l?`${a} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${a} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${a}{${el(o)}}`+p+`${a} .ahd-marquee-track{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);width:${l?"100%":"max-content"};animation:${e}-kf var(--ahd-mq-duration) linear infinite ${c};will-change:transform}${a} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${u}}${a} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${a}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+f(Dt,"tablet")+f(De,"mobile")+`@media (prefers-reduced-motion: reduce){${a} .ahd-marquee-track{animation:none}}`}function eS(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 tS(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 nS({style:e,props:t,responsive:n}){const o=Z.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),r=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],i=(t==null?void 0:t.direction)??"left",a=V1(t==null?void 0:t.repeat),l=Bs(i),s=Y1(e,t),c=z(e==null?void 0:e.backgroundColor),u=z(e==null?void 0:e.borderColor),h=e==null?void 0:e.padding,d=e==null?void 0:e.margin,f=((d==null?void 0:d.left)??0)+((d==null?void 0:d.right)??0),p={width:f>0?`calc(100% - ${f}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:c??void 0,...tS(u,e==null?void 0:e.borderWidth),borderRadius:eS(e==null?void 0:e.borderRadius),padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:d?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:So(l),maskImage:So(l)}:{}},b=(t==null?void 0:t.verticalAlign)??"middle",x=Z.useMemo(()=>Q1({instanceId:o,direction:i,repeat:a,desktop:s,responsive:n,verticalAlign:b}),[o,i,a,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,b]),w=S=>g.jsx("div",{className:"ahd-marquee-group","aria-hidden":S>0?!0:void 0,children:r.map((k,v)=>g.jsx("div",{className:"ahd-marquee-item",children:(k.contentChildrenIds??[]).map(_=>g.jsx(Re,{id:_},_))},v))},S);return g.jsxs("div",{className:`${o} ahd-marquee`,style:p,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),g.jsx("div",{className:"ahd-marquee-viewport",children:g.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:a}).map((S,k)=>w(k))})})]})}const oS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),rS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),aS=A({style:A({backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),accentColor:$().optional().nullable(),numberColor:$().optional().nullable(),numberFontWeight:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:oS,margin:rS}).optional().nullable(),props:A({layout:N(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:$().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:L().default(!0),expiredBehavior:N(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:$().default("Offer has ended"),showConfetti:L().default(!1)}).optional().nullable()});function iS(e){return String(Math.max(0,e)).padStart(2,"0")}function lS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l,fallbackInk:s="#1f1f1f",fallbackMuted:c="#6b7280",fallbackOnAccent:u="#ffffff"}){const h=[{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:h.map(d=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[g.jsx("div",{"data-ahd-timer-unit":d.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:i??s,color:l??u,fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:iS(d.value)}),r&&g.jsx("span",{style:{fontSize:11,color:a??c,textTransform:"uppercase"},children:d.label})]},d.label))})}function sS(e){return String(Math.max(0,e)).padStart(2,"0")}const Tr=26,tl=2*Math.PI*Tr;function cS({value:e,max:t,accentColor:n,numberColor:o,numberFontWeight:r,unit:i,trackColor:a}){const l=t>0?Math.min(1,Math.max(0,e/t)):0,s=tl*(1-l);return g.jsxs("svg",{"data-ahd-timer-unit":i,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[g.jsx("circle",{cx:32,cy:32,r:Tr,fill:"none",stroke:a,strokeWidth:5}),g.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:Tr,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:tl,strokeDashoffset:s,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:r??700,fill:o,children:sS(e)})]})}function uS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,numberColor:l,numberFontWeight:s,fallbackInk:c="#1f1f1f",fallbackMuted:u="#6b7280",fallbackAccent:h="#7c3aed",fallbackTrack:d="#e5e7eb"}){const f=i??h,p=l??c,b=[{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:b.map(x=>g.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[g.jsx(cS,{value:x.value,max:x.max,accentColor:f,numberColor:p,numberFontWeight:s,unit:x.label.toLowerCase(),trackColor:d}),r&&g.jsx("span",{style:{fontSize:11,color:a??u,textTransform:"uppercase"},children:x.label})]},x.label))})}function Et(e){return String(Math.max(0,e)).padStart(2,"0")}function dS({days:e,hours:t,minutes:n,seconds:o,showLabels:r,accentColor:i,textColor:a,fallbackInk:l="#1f1f1f",fallbackAccent:s="#7c3aed"}){const c=[{key:"days",text:r?`${e}d`:Et(e)},{key:"hours",text:r?`${Et(t)}h`:Et(t)},{key:"minutes",text:r?`${Et(n)}m`:Et(n)},{key:"seconds",text:r?`${Et(o)}s`:Et(o)}],u=r?" ":" : ";return g.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":r?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:a??l},children:[g.jsx("span",{style:{color:i??s,marginRight:6},children:"Ends in"}),c.map((h,d)=>g.jsxs(Z.Fragment,{children:[d>0&&u,g.jsx("span",{"data-ahd-timer-unit":h.key,children:h.text})]},h.key))]})}function hS(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 fS(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const o=Math.max(0,n-t),r=o<=0,i=Math.floor(o/1e3);return{days:Math.floor(i/86400),hours:Math.floor(i%86400/3600),minutes:Math.floor(i%3600/60),seconds:i%60,completed:r}}function mS({style:e,props:t}){const n=t??{},o=n.layout??"digitalFlip",r=n.showLabels??!0,i=n.expiredBehavior??"showMessage",a=n.expiredMessage||"Offer has ended",l=fS(n.targetDate),s=l.completed,c=z(e==null?void 0:e.backgroundColor),u=z(e==null?void 0:e.borderColor),h=z(e==null?void 0:e.accentColor),d=z(e==null?void 0:e.textColor),f=z(e==null?void 0:e.numberColor),p=z("#1f1f1f")??"#1f1f1f",b=z("#6b7280")??"#6b7280",x=z("#7c3aed")??"#7c3aed",w=z("#ffffff")??"#ffffff",S=z("#e5e7eb")??"#e5e7eb",k=e==null?void 0:e.padding,v=e==null?void 0:e.margin,_=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),y={width:_>0?`calc(100% - ${_}px)`:"100%",boxSizing:"border-box",background:c??void 0,border:u?`1px solid ${u}`:void 0,borderRadius:hS(e==null?void 0:e.borderRadius),padding:k?`${k.top}px ${k.right}px ${k.bottom}px ${k.left}px`:"16px",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0},C={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:r,accentColor:h,textColor:d,numberColor:f,fallbackInk:p,fallbackMuted:b,fallbackAccent:x,fallbackOnAccent:w,fallbackTrack:S,numberFontWeight:e==null?void 0:e.numberFontWeight},I=s&&i==="showMessage",R=s&&i==="hide";return g.jsxs("div",{className:"ahd-timer","data-layout":o,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":i,"data-ahd-timer-expired-message":a,"data-ahd-timer-show-labels":r?"1":"0","data-ahd-timer-confetti":n.showConfetti?"1":"0",style:{...y,display:R?"none":void 0},children:[g.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:d??p,display:I?void 0:"none"},children:a}),g.jsxs("div",{"data-ahd-timer-body":!0,style:{display:I?"none":void 0},children:[o==="digitalFlip"&&g.jsx(lS,{...C}),o==="circularProgress"&&g.jsx(uS,{...C}),o==="textInline"&&g.jsx(dS,{...C})]})]})}const pS=N(["left","center","right","space-between"]),gS=A({contentChildrenIds:ne($()).optional().nullable()}),bS=A({childrenIds:ne($())}),xS=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:G([m(),$(),A({topLeft:m(),topRight:m(),bottomRight:m(),bottomLeft:m()})]).optional().nullable(),padding:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),margin:A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),itemGap:m().min(0).max(120).optional().nullable(),columnsGap:m().min(0).max(120).optional().nullable(),rowsGap:m().min(0).max(120).optional().nullable(),controlGap:m().min(0).max(120).optional().nullable(),controlAlign:pS.optional().nullable(),buttonSize:m().min(20).max(72).optional().nullable(),buttonGap:m().min(0).max(40).optional().nullable(),buttonRadius:m().min(0).max(999).optional().nullable(),buttonBg:$().optional().nullable(),buttonColor:$().optional().nullable(),buttonBorderColor:$().optional().nullable(),activeButtonBg:$().optional().nullable(),activeButtonColor:$().optional().nullable(),activeButtonBorderColor:$().optional().nullable(),arrowColor:$().optional().nullable(),fontSize:m().min(8).max(40).optional().nullable(),fontFamily:$().optional().nullable()}).optional().nullable(),props:A({items:ne(gS).min(1).max(50).optional().nullable(),cells:ne(bS).optional().nullable(),columnsCount:m().int().min(1).max(12).optional().nullable(),rowsCount:m().int().min(1).max(24).optional().nullable(),columnsCountTablet:m().int().min(1).max(12).optional().nullable(),columnsCountMobile:m().int().min(1).max(12).optional().nullable(),rowsCountTablet:m().int().min(1).max(24).optional().nullable(),rowsCountMobile:m().int().min(1).max(24).optional().nullable(),contentAlignment:N(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:N(["left","center","right"]).optional().nullable(),cellsPerPage:m().int().min(1).max(100).optional().nullable(),repeatableEnabled:L().optional().nullable(),pageParam:$().min(1).max(40).optional().nullable(),syncUrl:L().optional().nullable(),showNumbers:L().optional().nullable(),showPrevNext:L().optional().nullable(),showFirstLast:L().optional().nullable(),maxVisiblePages:m().min(0).max(50).optional().nullable(),prevLabel:$().max(24).optional().nullable(),nextLabel:$().max(24).optional().nullable(),firstLabel:$().max(24).optional().nullable(),lastLabel:$().max(24).optional().nullable(),scrollToTopOnChange:L().optional().nullable(),explicitFirstPage:L().optional().nullable()}).optional().nullable()}),Er={columnsCount:2,rowsCount:2};function Qo(e,t="desktop"){const n=Er,o=(e==null?void 0:e.columnsCount)??n.columnsCount,r=(e==null?void 0:e.rowsCount)??n.rowsCount,i=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??o:o,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;let l;Array.isArray(e==null?void 0:e.cells)?l=e.cells:Array.isArray(e==null?void 0:e.items)?l=e.items.map(u=>({childrenIds:Array.isArray(u==null?void 0:u.contentChildrenIds)?u.contentChildrenIds:[]})):l=[];const s=Math.max(1,o*r,i*a,l.length),c=Array.from({length:s},(u,h)=>{var d;return{childrenIds:Array.isArray((d=l[h])==null?void 0:d.childrenIds)?l[h].childrenIds:[]}});return{columnsCount:i,rowsCount:a,cells:c}}function er(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)??Er.columnsCount,o=(e==null?void 0:e.rowsCount)??Er.rowsCount,r=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;return Math.max(1,r*i)}function vS(e,t,n){const o=Math.max(1,e),r=Math.min(Math.max(1,n),o*Math.max(1,t));return Math.max(1,Math.ceil(r/o))}function SS(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const o=[];for(let r=0;r<e.length;r+=n)o.push(e.slice(r,r+n));return o}const wS={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 $S({style:e,props:t}){const n=wS;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 kS(e){return Math.max(1,e)}function _S(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,c)=>c+1);const o=[],r=Math.max(1,n-2),i=Math.floor(r/2);let a=Math.max(2,e-i),l=Math.min(t-1,a+r-1);a=Math.max(2,Math.min(a,l-r+1)),o.push(1),a>2&&o.push("ellipsis");for(let s=a;s<=l;s++)o.push(s);return l<t-1&&o.push("ellipsis"),o.push(t),o}function CS(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function AS({style:e,props:t}){const n=$S({style:e,props:t}),o=Qo(t,"desktop"),r=Qo(t,"tablet"),i=Qo(t,"mobile"),a=Math.max(er(t,"desktop"),er(t,"tablet"),er(t,"mobile")),l=Z.useMemo(()=>o.cells.length>=a?o.cells:Array.from({length:a},(F,q)=>o.cells[q]??{childrenIds:[]}),[o.cells,a]),s=Z.useMemo(()=>SS(l,a),[l,a]),c=kS(s.length),u=(e==null?void 0:e.columnsGap)??n.itemGap,h=(e==null?void 0:e.rowsGap)??n.itemGap,d=Z.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),f=Z.useMemo(()=>_S(1,c,n.maxVisiblePages),[c,n.maxVisiblePages]),p=ka(),b=p(e==null?void 0:e.backgroundColor),x=p(e==null?void 0:e.borderColor),w=p(n.buttonBg),S=p(n.buttonColor),k=p(n.buttonBorderColor),v=p(n.arrowColor),_=p(n.activeButtonBg),y=p(n.activeButtonColor),C=p(n.activeButtonBorderColor),I=e==null?void 0:e.padding,R=e==null?void 0:e.margin,E=((R==null?void 0:R.left)??0)+((R==null?void 0:R.right)??0),P={width:E>0?`calc(100% - ${E}px)`:"100%",boxSizing:"border-box",background:b??void 0,border:x?`1px solid ${x}`:void 0,borderRadius:CS(e==null?void 0:e.borderRadius),padding:I?`${I.top}px ${I.right}px ${I.bottom}px ${I.left}px`:void 0,margin:R?`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`:void 0,fontFamily:n.fontFamily},M=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",O={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 ${k}`,backgroundColor:w,backgroundImage:"none",color:S,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},H={...O,color:v},D=Z.useMemo(()=>{const F=ie=>`grid-template-columns:repeat(${ie.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${vS(ie.columnsCount,ie.rowsCount,a)},auto)`,q=(ie,J)=>{const re=Math.min(Math.max(1,J.columnsCount*J.rowsCount),Math.max(1,a));return re>=a?"":`${ie} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${re+1}){display:none}`},Y=`.${d}`;return`${Y} .ahd-pgn-item{display:grid;${F(o)};column-gap:${u}px;row-gap:${h}px}${Y} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+q(Y,o)+`@media (max-width:${Oe}px){${Y} .ahd-pgn-item{${F(r)}}${Y} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+q(Y,r)+`}@media (max-width:${Le}px){${Y} .ahd-pgn-item{${F(i)}}${Y} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+q(Y,i)+"}"},[d,o,r,i,a,u,h,n.itemGap]),V=(F,q,Y)=>g.jsx("button",{type:"button",className:`ahd-pgn-btn ${F}`,"data-ahd-page":Y,style:H,"aria-label":q,children:q});return g.jsxs("div",{className:`${d} ahd-pagination`,style:P,"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":w,"data-btn-color":S,"data-btn-border":k,"data-active-bg":_,"data-active-color":y,"data-active-border":C,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:D}}),g.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((F,q)=>g.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":q,style:q===0?void 0:{display:"none"},children:F.map((Y,ie)=>g.jsx("div",{className:"ahd-pgn-cell",children:(Y.childrenIds??[]).map(J=>g.jsx(Re,{id:J},J))},ie))},q))}),(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:M,marginTop:`var(--ahd-pgn-control-gap, ${n.controlGap}px)`,flexWrap:"wrap"},"data-show-numbers":n.showNumbers?"1":"0","data-show-prev-next":n.showPrevNext?"1":"0","data-show-first-last":n.showFirstLast?"1":"0",children:[n.showFirstLast&&V("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&V("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:f.map((F,q)=>F==="ellipsis"?g.jsx("span",{className:"ahd-pgn-ellipsis",style:{...O,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${q}`):g.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":F,"aria-label":`Page ${F}`,"aria-current":F===1?"true":void 0,style:F===1?{...O,backgroundColor:_,color:y,border:`1px solid ${C}`}:O,children:F},F))}),n.showPrevNext&&V("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&V("ahd-pgn-last",n.lastLabel,c)]})]})}const yS=A({responsive:We,style:A({padding:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),margin:A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),textAlign:N(["left","center","right"]).optional().nullable(),tableAlign:N(["left","center","right"]).optional().nullable(),fontSize:m().optional().nullable(),fontFamily:$().optional().nullable(),color:$().optional().nullable(),backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:m().optional().nullable(),cellPadding:m().optional().nullable(),headerBackground:$().optional().nullable(),headerColor:$().optional().nullable(),stripedRowColor:$().optional().nullable(),stripedColColor:$().optional().nullable()}).optional().nullable(),props:A({rows:m().int().min(1).max(50).optional().nullable(),columns:m().int().min(1).max(20).optional().nullable(),hasHeader:L().optional().nullable(),cells:ne($()).optional().nullable(),caption:$().optional().nullable(),width:$().optional().nullable(),enableScroll:L().optional().nullable(),enableScrollTablet:L().optional().nullable(),enableScrollMobile:L().optional().nullable()}).optional().nullable()}),ot={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function IS(e){if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Ds(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Jn(e){return e?Ds(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function tr(e){return e?Ds(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function RS({style:e,props:t,renderCell:n}){const o=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??ot.rows)),r=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??ot.columns)),i=(t==null?void 0:t.hasHeader)??ot.hasHeader,a=(t==null?void 0:t.cells)??[],l=o*r,s=a.length===l?a:Array.from({length:l},(j,B)=>a[B]??""),c=z((e==null?void 0:e.borderColor)??ot.borderColor),u=(e==null?void 0:e.borderWidth)??ot.borderWidth,h=(e==null?void 0:e.cellPadding)??ot.cellPadding,d=z((e==null?void 0:e.headerBackground)??ot.headerBackground),f=z((e==null?void 0:e.headerColor)??ot.headerColor),p=z((e==null?void 0:e.color)??ot.color),b=(e==null?void 0:e.fontSize)??ot.fontSize,x=z((e==null?void 0:e.backgroundColor)??null),w=z((e==null?void 0:e.stripedRowColor)===void 0?ot.stripedRowColor:e.stripedRowColor),S=z((e==null?void 0:e.stripedColColor)??null),k=`ahd-table-${Z.useId().replace(/:/g,"")}`,v=(t==null?void 0:t.width)||"100%",_=v!=="100%",y={padding:wa(e==null?void 0:e.padding),margin:$a(e==null?void 0:e.margin),textAlign:_?(e==null?void 0:e.tableAlign)??"left":void 0,width:0,minWidth:"100%",maxWidth:"100%",height:"fit-content",boxSizing:"border-box"},C=IS(e==null?void 0:e.fontFamily),I={borderCollapse:"collapse",width:"100%",fontSize:b},R={display:_?"inline-block":"block",width:v,maxWidth:"100%",verticalAlign:"top",overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",height:"fit-content"},E={border:`${u}px solid ${c}`,padding:h,verticalAlign:"top"},P={...E,fontWeight:600,textAlign:(e==null?void 0:e.textAlign)??"left"},M=C?`.${k}, .${k} * { font-family: ${C} !important; }`:"",O=`${k}-scroll`,H=(t==null?void 0:t.enableScroll)??!1,D=(t==null?void 0:t.enableScrollTablet)??H,V=(t==null?void 0:t.enableScrollMobile)??H,F=j=>j?`.${O} > .${k} { table-layout: auto; width: max-content !important; min-width: 100%; max-width: none; }`:`.${O} > .${k} { table-layout: fixed; width: 100% !important; max-width: 100%; }
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
`)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
`).map((te,fe,ze)=>g.jsxs(Z.Fragment,{children:[te,fe<ze.length-1?g.jsx("br",{}):null]},fe));return g.jsxs("div",{className:"table-block",style:y,children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:me}}),g.jsx("div",{className:O,style:R,children:g.jsxs("table",{className:k,style:I,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:Se.map(j=>g.jsx("th",{scope:"col",style:P,children:g.jsx("div",{className:"ahd-table-cell-text",children:X(0,j,s[j]??"",!0)})},j))})}):null,g.jsx("tbody",{children:ae.slice(i?1:0).map(j=>g.jsx("tr",{children:Se.map(B=>g.jsx("td",{style:E,children:g.jsx("div",{className:"ahd-table-cell-text",children:X(j,B,s[j*r+B]??"",!1)})},B))},j))})]})})]})}const nl=A({top:m(),bottom:m(),right:m(),left:m()}).optional().nullable(),NS=A({responsive:We,style:A({padding:nl,margin:nl,textAlign:N(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:$().default(""),iframeSrc:$().default(""),width:G([m(),$()]).optional().nullable(),height:G([m(),$()]).optional().nullable(),borderRadius:m().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:m().optional().nullable()}).optional().nullable()}),ol=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,TS=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,nr=1440,or=830,ES=({style:e,props:t})=>{const{demoId:n,iframeSrc:o,width:r,borderRadius:i,borderColor:a,borderWidth:l}=t??{},s={padding:ol(e==null?void 0:e.padding),margin:ol(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,${TS(r,"100%")})`,aspectRatio:`${nr} / ${or}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${i??10}px`,border:a?`${l??1}px solid ${a}`:"none"},children:g.jsx("div",{id:"demoScaler",style:{width:nr,height:or,transformOrigin:"top left"},children:g.jsx("iframe",{src:o,style:{width:nr,height:or,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},o)})})})},Fs=km(()=>A({id:$().optional(),name:$().optional(),href:$().optional(),menuImage:$().optional(),children:ne(Fs).optional()})),rr=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),MS=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),PS=A({menuId:$().default(""),useCustomMenu:L().default(!1),stickyNav:L().default(!1),stickyNavTablet:L().optional().nullable(),stickyNavMobile:L().optional().nullable(),position:N(["left","center","right"]).default("left"),orientation:N(["horizontal","vertical"]).default("horizontal"),menuItems:ne(Fs).optional().nullable(),startChildrenIds:ne($()).optional().nullable(),endChildrenIds:ne($()).optional().nullable(),layout:N(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:$().default("transparent"),textColor:$().default("#000000"),burgerDropdownBackgroundColor:$().optional().nullable(),submenuBackgroundColor:$().optional().nullable(),submenuRadius:m().optional().nullable(),submenuIconSize:m().optional().nullable(),submenuPadding:rr,submenuItemPadding:rr,submenuMinWidth:m().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),padding:$().default("8px 16px"),blockPadding:rr,blockMargin:MS,gap:$().default("16px"),showIcons:L().default(!0),iconSize:$().default("24px")}),OS=A({style:A({}).passthrough().optional().nullable(),responsive:We,props:PS.optional().nullable()}),LS={left:"flex-start",center:"center",right:"flex-end"},Hs=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,zS=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,jS=e=>e?e.left+e.right:0,BS=e=>!!e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")),Aa=e=>BS(e)?{backgroundImage:e,backgroundColor:"transparent"}:{backgroundColor:e??void 0},DS=(e,t,n=!1,o,r)=>{const i=jS(r);return{...Aa(e),width:`calc(100% - ${i}px)`,display:"flex",alignItems:"center",gap:"16px",padding:Hs(o),margin:zS(r),justifyContent:n?"space-between":LS[t]||"flex-start"}},ar=(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}),FS=(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"}),HS={position:"relative"},GS=(e,t,n,o,r,i,a,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:o,fontWeight:(l==null?void 0:l.fontWeight)??r,fontFamily:a||void 0,padding:(l==null?void 0:l.padding)??i,textDecoration:"none",whiteSpace:"nowrap",...Aa(l==null?void 0:l.backgroundColor),...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),US=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),WS=e=>({paddingLeft:e===0?"0":"12px"}),ZS=(e,t,n,o,r)=>({...Aa(e),borderRadius:`${t}px`,border:n?`1px solid ${n}`:void 0,boxShadow:"0 12px 32px color-mix(in srgb, currentColor 18%, transparent)",padding:Hs(o)??"8px",minWidth:`${r??260}px`}),VS=e=>({display:"inline-flex",alignItems:"center",marginLeft:"6px",width:`${e}px`,height:`${e}px`,flexShrink:0}),qS="M6 9l6 6 6-6",Gs={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},YS=e=>({color:e});function KS(e,t){const n=`.ahd-menu-${e}`,o=(t==null?void 0:t.dropdownBackground)||"#fff",r=t!=null&&t.hasSubmenuItemPadding?"padding-left:32px!important":"padding:10px 16px 10px 32px!important",i=[`${n}{position:relative}`,`${n} .ahd-menu-toggle{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}`,`${n} .ahd-menu-burger{display:none;width:20px;height:16px;cursor:pointer;flex-direction:column;justify-content:space-between;padding:0;margin:8px 12px;background:transparent;border:0}`,`${n} .ahd-menu-burger>span{display:block;height:2px;width:100%;background:currentColor;border-radius:2px;transition:transform .2s ease,opacity .2s ease}`,`${n} .ahd-menu-backdrop{display:none}`,`${n} .ahd-menu-submenu{position:absolute;top:100%;left:0;z-index:120;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;pointer-events:none}`,`${n} .ahd-menu-list>li:hover>.ahd-menu-submenu,${n} .ahd-menu-list>li:focus-within>.ahd-menu-submenu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}`,`${n} .ahd-menu-submenu .ahd-menu-submenu{top:0;left:100%;transform:translateX(4px)}`,`${n} .ahd-menu-submenu li:hover>.ahd-menu-submenu,${n} .ahd-menu-submenu li:focus-within>.ahd-menu-submenu{transform:translateX(0)}`,`${n} .ahd-menu-sublist{display:block!important;width:100%}`,`${n} .ahd-menu-sublist>li>a{display:flex;width:100%;white-space:normal!important;border-radius:6px}`,`${n} .ahd-menu-sublist>li>a:hover{background:color-mix(in srgb,currentColor 10%,transparent)}`,`${n} .ahd-menu-sub-toggle{position:absolute!important;opacity:0!important;width:0!important;height:0!important;margin:0!important;pointer-events:none!important}`,`${n} .ahd-menu-sub-caret{display:none}`,`${n} .ahd-menu-caret{transition:transform .15s ease}`,`${n} li:hover>.ahd-menu-item-row .ahd-menu-caret,${n} li:focus-within>.ahd-menu-item-row .ahd-menu-caret{transform:rotate(180deg)}`].join(""),a=[`${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-submenu{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;display:none;transition:none}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-submenu{display:block}`,`${n} .ahd-menu-submenu>*{box-shadow:none!important;border:0!important;border-radius:0!important;min-width:0!important;background:transparent!important;padding:0!important}`,`${n} .ahd-menu-submenu{box-shadow:inset 2px 0 0 color-mix(in srgb,currentColor 25%,transparent)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>a,${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>.ahd-menu-item-row>.ahd-menu-item-label>a{${r}}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist .ahd-menu-sublist>li>a{padding-left:48px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li+li{border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}`,`${n} .ahd-menu-sublist>li{width:100%}`,`${n} .ahd-menu-list>li>.ahd-menu-item-label{display:flex!important;flex:1 1 auto;min-width:0}`,`${n} .ahd-menu-item-row{display:flex;align-items:center;width:100%}`,`${n} .ahd-menu-sub-caret{display:flex!important;align-items:center;justify-content:center;width:44px;align-self:stretch;cursor:pointer;color:currentColor;flex:0 0 auto}`,`${n} .ahd-menu-sub-caret-icon{margin-left:0!important;transition:transform .15s ease}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-item-row .ahd-menu-sub-caret-icon{transform:rotate(180deg)}`,`${n} .ahd-menu-caret{display:none!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(1){transform:translateY(7px) rotate(45deg)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(2){opacity:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}`].join(""),l=`(max-width:${Oe}px)`;return i+`@media ${l}{${a}}@container ahd-page ${l}{${a}}`}const JS=(e,t)=>{const n=!!t.stickyNav,o=t.stickyNavTablet??n,r=t.stickyNavMobile??o,i=l=>l?`.ahd-menu-sticky-${e}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:sticky;top:0;z-index:50}`:`.ahd-menu-sticky-${e}{position:static}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:static}`;let a=n?i(!0):"";if(o!==n){const l=`(max-width:${Oe}px)`;a+=`@media ${l}{${i(o)}}`,a+=`@container ahd-page ${l}{${i(o)}}`}if(r!==o){const l=`(max-width:${Le}px)`;a+=`@media ${l}{${i(r)}}`,a+=`@container ahd-page ${l}{${i(r)}}`}return a},XS=e=>{if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Mr=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},rl=({size:e,className:t})=>g.jsx("span",{className:t,style:VS(e),"aria-hidden":"true",children:g.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:g.jsx("path",{d:qS})})}),Pr=(e,t,n=0)=>{if(!e||e.length===0)return null;const{textColor:o,fontSize:r,fontWeight:i,padding:a,orientation:l,gap:s,showIcons:c,iconSize:u,toggleId:h,listId:d,fontFamily:f,menuKey:p,submenuBackground:b,submenuRadius:x,submenuBorderColor:w,submenuIconSize:S,submenuPadding:k,submenuItemPadding:v,submenuMinWidth:_}=t,y=n>0&&v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:a;return g.jsx("ul",{id:n===0?d:void 0,className:n===0?"ahd-menu-list":"ahd-menu-sublist",style:FS(l,n,s),children:e.map((C,I)=>{const R=Array.isArray(C.children)?C.children:[],E=R.length>0,P=`ahd-submenu-${p}-${n}-${C.id||I}`,M=C.name||C.label||"",O=g.jsxs("a",{href:C.href||"#",style:GS(c,!!C.menuImage,o,r,i,y,f,C),children:[c&&C.menuImage&&g.jsx("img",{src:C.menuImage,alt:"","aria-hidden":"true",style:US(u)}),M,E&&g.jsx(rl,{size:S,className:"ahd-menu-caret"})]}),H=E?g.jsxs("span",{className:"ahd-menu-item-row",children:[g.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:D=>D.stopPropagation(),children:O}),g.jsx("label",{htmlFor:P,className:"ahd-menu-sub-caret","aria-label":`Toggle ${M} submenu`,onClick:Mr(P),children:g.jsx(rl,{size:S,className:"ahd-menu-sub-caret-icon"})})]}):g.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:D=>D.stopPropagation(),children:O});return g.jsxs("li",{style:HS,children:[E&&g.jsx("input",{type:"checkbox",id:P,className:"ahd-menu-sub-toggle","aria-hidden":"true",tabIndex:-1,style:Gs,onClick:D=>D.stopPropagation()}),H,E&&g.jsx("div",{className:"ahd-menu-submenu",style:WS(n),children:g.jsx("div",{style:ZS(b,x,w,k,_),children:Pr(R,{...t,orientation:"vertical"},n+1)})})]},C.id||I)})})},QS=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:o=!1,stickyNavTablet:r,stickyNavMobile:i,menuItems:a,startChildrenIds:l,endChildrenIds:s,layout:c="menu-only",position:u="left",orientation:h="horizontal",backgroundColor:d="transparent",textColor:f="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:w="400",padding:S="8px 16px",blockPadding:k,blockMargin:v,gap:_="16px",showIcons:y=!0,iconSize:C="24px",borderColor:I,borderWidth:R,borderRadius:E,submenuBackgroundColor:P,submenuRadius:M,submenuIconSize:O,submenuPadding:H,submenuItemPadding:D,submenuMinWidth:V,bare:F}=e??{},q=ka(),Y=q(d)??d,ie=q(f)??f,J=q(I),re=q(p),me=q(P),ae=q("#ffffff")??"#ffffff";if(!(Array.isArray(a)&&a.length>0)||!n&&!t)return g.jsx(g.Fragment,{});const xe=c==="logo-menu"||c==="logo-menu-cta",X=c==="menu-cta"||c==="logo-menu-cta",j=xe||X,B=u==="right"?"end":u==="center"?"center":"start",K=Z.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),W=t||K,te=(F==null?void 0:F.toggleId)??`ahd-menu-toggle-${W}`,fe=(F==null?void 0:F.listId)??`ahd-menu-list-${W}`,ze=XS(x),ue=F?F.toggleId.replace(/^ahd-menu-toggle-/,""):W,Ce={textColor:ie,fontSize:b,fontWeight:w,padding:S,orientation:h,gap:_,showIcons:y,iconSize:C,toggleId:te,listId:fe,fontFamily:ze,menuKey:ue,submenuBackground:me||re||(d!=="transparent"?Y:ae),submenuRadius:M??8,submenuBorderColor:J??null,submenuIconSize:O??14,submenuPadding:H??null,submenuItemPadding:D??null,submenuMinWidth:V??null};if(F)return g.jsx(g.Fragment,{children:Pr(a,Ce)});const le=JS(W,{stickyNav:o,stickyNavTablet:r,stickyNavMobile:i}),Ae=KS(W,{dropdownBackground:re??(d!=="transparent"?Y:null),hasSubmenuItemPadding:!!D});return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:Ae}},W),le&&g.jsx("style",{dangerouslySetInnerHTML:{__html:le}}),g.jsxs("nav",{className:`ahd-menu ahd-menu-${W} ahd-menu-sticky-${W}`,"data-block":"menu","data-layout":c,style:{...DS(Y,u,j,k,v),...J?{borderStyle:"solid",borderColor:J,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...E!=null?{borderRadius:typeof E=="number"?`${E}px`:`${(E==null?void 0:E.topLeft)??0}px ${(E==null?void 0:E.topRight)??0}px ${(E==null?void 0:E.bottomRight)??0}px ${(E==null?void 0:E.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[g.jsx("input",{type:"checkbox",id:te,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":fe,style:Gs,onClick:ye=>ye.stopPropagation()}),g.jsx("label",{htmlFor:te,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:Mr(te)}),xe&&g.jsx("div",{className:"ahd-menu-start",style:ar("start"),children:(l??[]).map(ye=>g.jsx(Re,{id:ye},ye))}),g.jsx("div",{className:"ahd-menu-center",style:ar(B,j),children:Pr(a,Ce)}),X&&g.jsx("div",{className:"ahd-menu-end",style:ar("end"),children:(s??[]).map(ye=>g.jsx(Re,{id:ye},ye))}),g.jsxs("label",{htmlFor:te,className:"ahd-menu-burger","aria-hidden":"true",style:YS(ie),onClick:Mr(te),children:[g.jsx("span",{}),g.jsx("span",{}),g.jsx("span",{})]})]})]})},ew=A({id:$().optional(),label:$().optional(),href:$().optional(),textColor:$().optional().nullable()}),tw=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),nw=A({top:m(),right:m(),bottom:m(),left:m()}).optional().nullable(),ow=A({items:ne(ew).optional().nullable(),separator:N(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:$().optional().nullable(),showHomeIcon:L().default(!1),homeHref:$().default("/"),collapseOnMobile:L().default(!0),currentItemLinked:L().default(!1),textColor:$().default("#595959"),currentItemColor:$().optional().nullable(),separatorColor:$().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),gap:$().default("8px"),blockPadding:tw,blockMargin:nw}),rw=A({style:A({}).passthrough().optional().nullable(),responsive:We,props:ow.optional().nullable()}),ir={slash:"/",chevron:"›",dot:"•",pipe:"|"};function aw(e,t){return e==="custom"?t||"›":e&&ir[e]?ir[e]:ir.chevron}function iw(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 lw=e=>{if(!e)return;const t=pt.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Us=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,sw=Us,cw="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",uw=({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:cw,fill:t})}),dw=({color:e,fontSize:t})=>g.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),hw=({props:e,renderLabel:t})=>{const{items:n,separator:o="chevron",customSeparator:r,showHomeIcon:i=!1,homeHref:a="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:c="#595959",currentItemColor:u,separatorColor:h,fontSize:d="14px",fontFamily:f,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:w}=e??{},S=ka(),k=S(c),v=S(u),_=S(h);if(!(Array.isArray(n)&&n.length>0))return g.jsx(g.Fragment,{});const C=lw(f),I=aw(o,r),R=n.length-1,E=Z.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),P=l?iw(E):"",M=(O,H,D)=>{const V=(D?v:null)||S(O.textColor)||k,F=!D||s,q={color:V,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:O,index:H,isLast:D,style:q}):F?g.jsx("a",{href:O.href||"#",style:q,"aria-current":D?"page":void 0,children:O.label||""}):g.jsx("span",{style:q,"aria-current":"page",children:O.label||""})};return g.jsxs(g.Fragment,{children:[P&&g.jsx("style",{dangerouslySetInnerHTML:{__html:P}}),g.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${E}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Us(x),margin:sw(w)},children:g.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:C,fontWeight:p},children:[i&&g.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[g.jsx("a",{href:a||"/",style:{display:"flex",color:k},children:g.jsx(uw,{size:parseInt(d,10)||14,color:k})}),g.jsx("span",{"aria-hidden":"true",style:{color:_||k},children:I})]}),n.map((O,H)=>{const D=H===R,V=l&&H!==0&&!D;return g.jsxs("li",{className:V?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[M(O,H,D),!D&&g.jsx("span",{"aria-hidden":"true",style:{color:_||k},children:I})]},O.id||H)}),l&&n.length>2&&g.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[g.jsx(dw,{color:k,fontSize:d}),g.jsx("span",{"aria-hidden":"true",style:{color:_||k},children:I})]})]})})]})},fw=A({style:A({}).passthrough().optional().nullable(),props:A({formId:$().default(""),formName:$().default(""),iframeSrc:$().default(""),width:$().default("100%"),height:$().default("500px"),heightTablet:$().optional(),heightMobile:$().optional(),autoHeight:L().default(!1),alignment:N(["left","center","right"]).default("left")}).optional().nullable()}),mw=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)}`},pw=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},gw=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:o=0,left:r=0}=e;return`${t}px ${n}px ${o}px ${r}px`},bw=({props:e,style:t})=>{var k,v;const{formId:n,iframeSrc:o,width:r,height:i,heightTablet:a,heightMobile:l,autoHeight:s=!1,alignment:c="left",formName:u}=e??{};if(!n||!o)return g.jsx(g.Fragment,{});const h=c==="center"?"center":c==="right"?"flex-end":"flex-start",d=t??{},f=(((k=d.margin)==null?void 0:k.left)||0)+(((v=d.margin)==null?void 0:v.right)||0),p=Mm(d.borderRadius),b={display:"flex",justifyContent:h,width:`calc(100% - ${f}px)`,padding:pw(d.padding),margin:gw(d.margin),backgroundColor:d.backgroundColor||void 0,borderRadius:p},x=mw(`${n}|${o??""}`),w=!s&&(a||l)?`
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
283
|
+
${me}
|
|
284
|
+
`;return m.jsxs("div",{style:ae,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:ve}}),n.map((ue,q)=>m.jsx("input",{type:"radio",name:r,id:`${r}-cb${q}`,className:"pacc-cb",defaultChecked:q===a},q)),m.jsx("div",{className:"pacc-wrap",children:n.map((ue,q)=>m.jsxs("div",{className:"pacc-item",children:[m.jsxs("label",{htmlFor:`${r}-cb${q}`,className:"pacc-card",children:[(ue.cardChildrenIds??[]).map(K=>m.jsx(Te,{id:K},K)),m.jsx("span",{className:"pacc-arrow","aria-hidden":"true",children:m.jsx("i",{className:"bi bi-chevron-right"})})]}),m.jsx("div",{className:"pacc-detail",children:(ue.detailChildrenIds??[]).map(K=>m.jsx(Te,{id:K},K))})]},q))})]})}const fk=160,pk=A({label:$().optional().nullable(),contentChildrenIds:oe($()).optional().nullable()}),gk=A({responsive:De,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),borderRadius:G([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),tabActiveColor:$().optional().nullable(),tabActiveBgColor:$().optional().nullable(),tabInactiveTextColor:$().optional().nullable(),tabInactiveBgColor:$().optional().nullable(),tabInactiveBorderColor:$().optional().nullable(),tabInactiveBorderWidth:g().optional().nullable(),tabTextColor:$().optional().nullable(),tabBgColor:$().optional().nullable(),tabBorderRadius:g().optional().nullable(),tabGap:g().optional().nullable(),contentGap:g().optional().nullable(),navBorderColor:$().optional().nullable(),navWidth:g().optional().nullable(),fontSize:G([$(),g()]).optional().nullable(),lineHeight:G([$(),g()]).optional().nullable(),activeFontSize:G([$(),g()]).optional().nullable(),showActiveBorder:L().optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable()}).optional().nullable(),props:A({orientation:T(["horizontal","vertical"]).optional().nullable(),orientationTablet:T(["horizontal","vertical"]).optional().nullable(),orientationMobile:T(["horizontal","vertical"]).optional().nullable(),behavior:T(["showSelectedSection","scrollToSelectedSection"]).optional().nullable(),tabsAlign:T(["left","center","right"]).optional().nullable(),dropdown:L().optional().nullable(),dropdownTablet:L().optional().nullable(),dropdownMobile:L().optional().nullable(),activeTabIndex:g().optional().nullable(),stickyNav:L().optional().nullable(),items:oe(pk).min(1).max(20).optional().nullable()}).optional().nullable()});function mk(e){if(!e)return;const t=ft.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function bk(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 Rl(e){if(e!=null)return typeof e=="number"?`${e}px`:e}const xk={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},vk={display:"inline-block",minWidth:0,maxWidth:"100%",overflowWrap:"break-word",wordBreak:"break-word"};function _t(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function Lr(e,t=!1){const n=t?"!important":"";return e?_t(e)?`background:${e}${n};background-color:transparent${n}`:`background-color:${e}${n}`:`background-color:transparent${n}`}function zr(e,t=!1){const n=t?"!important":"";return _t(e)?`color:transparent${n}`:`color:${e}${n}`}function jr(e,t=!1){const n=t?"!important":"";return _t(e)?`background-image:${e}${n};-webkit-background-clip:text${n};background-clip:text${n};-webkit-text-fill-color:transparent${n};color:transparent${n}`:""}function ta(e,t,n,r=!1){const o=r?"!important":"";return _t(e)?`border-${n}-style:solid${o};border-${n}-width:${t}${o};border-image-source:${e}${o};border-image-slice:${n==="bottom"?"0 0 1 0 fill":n==="left"?"0 0 0 1 fill":"0 1 0 0 fill"}${o}`:`border-${n}-color:${e}${o}`}function kk(e,t,n=!1){const r=n?"!important":"";return e?_t(e)?`box-sizing:border-box${r};border:${t}px solid transparent${r};border-image-source:${e}${r};border-image-slice:1${r};box-shadow:none${r}`:`box-shadow:inset 0 0 0 ${t}px ${e}${r}`:`box-shadow:none${r}`}function an(e,t,n,r,o,a,i,l){const s=_t(l),u=s?ta(l,n,"bottom"):`border-bottom:${n} solid var(--ahd-tabs-nav-border,transparent)`,c=s?ta(l,n,"right"):`border-right:${n} solid var(--ahd-tabs-nav-border,transparent)`;if(t==="horizontal")return`${e}{display:block}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;gap:${r};align-items:center;justify-content:${a};width:100%;${u};border-right:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:inline-flex;border-bottom:3px solid transparent;border-left:0;margin-bottom:calc(-1 * ${n});margin-right:0}${e} > .ahd-tabs-panels{width:100%;margin-top:${o};margin-left:0}`;const h=`${i??fk}px`,d=`var(--ahd-tabs-nav-width,${h})`,f=`width:var(--ahd-tabs-nav-width,${h});max-width:var(--ahd-tabs-nav-width,${h})`;return`${e}{display:grid;grid-template-columns:${d} minmax(0,1fr);column-gap:${o};align-items:start}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;grid-column:1;grid-row:1;align-self:start;${f};min-width:0;overflow:visible;${c};border-bottom:0}${e} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label{display:flex;border-left:3px solid transparent;border-bottom:0;margin-right:calc(-1 * ${n});margin-bottom:${r};white-space:normal!important;word-break:break-word;overflow-wrap:break-word;min-width:0;max-width:100%;box-sizing:border-box}${e} > .ahd-tabs-panels{grid-column:2;grid-row:1;width:100%;margin-top:0}`}function wk(e,t,n,r,o,a,i,l,s,u,c,h,d,f,p,b,x=1){let w="";for(let _=0;_<p;_++){const y=`${e} #${f}-r${_}:checked ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${_+1})`;w+=`${y}{${Lr(i,!0)};${zr(l,!0)};box-shadow:none!important;font-weight:600!important}${y} > .ahd-tabs-label-text{${jr(l,!0)}}${y}:hover{${Lr(i,!0)}}`}const k=`${e} > .ahd-tabs-dd-wrap`,S=`${e}.ahd-tabs-dd-open > .ahd-tabs-dd-wrap,${k}:focus-within`,v=s?`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{font-size:${s}!important}`:"";return`${e}{display:block!important}${k}{display:block!important;position:relative!important;width:100%!important}${k} > .ahd-tabs-dd-trigger{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:10px 14px;border:1px solid ${t};border-radius:${r};background:${o};color:${a};font:inherit;text-align:left;cursor:pointer;appearance:none;-webkit-appearance:none}${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}`+v+`${k} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{display:inline-block;width:8px;height:8px;flex-shrink:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-2px;opacity:.7;transition:transform .15s ease}${S} > .ahd-tabs-dd-trigger > .ahd-tabs-dd-arrow{transform:rotate(-135deg);margin-top:2px}${k} > .ahd-tabs-nav{position:absolute!important;top:calc(100% + 4px)!important;left:0!important;right:0!important;z-index:30!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;overflow:auto!important;max-height:260px!important;width:auto!important;gap:0!important;border:1px solid ${t}!important;border-radius:${r}!important;background:#fff!important;box-shadow:0 6px 20px rgba(0,0,0,.12)!important;padding:4px!important;align-items:stretch!important;justify-content:flex-start!important;visibility:hidden;opacity:0;pointer-events:none;transform:translateY(-4px);transition:opacity .12s ease,transform .12s ease,visibility .12s}${S} > .ahd-tabs-nav{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:translateY(0)!important}${k} > .ahd-tabs-nav > .ahd-tabs-label{display:flex!important;justify-content:flex-start!important;width:100%!important;box-sizing:border-box;border:0!important;border-radius:6px!important;margin:0!important;padding:9px 12px!important;${zr(u??"inherit",!0)};background:${c??"transparent"}!important;box-shadow:${h}!important`+(b?`;border:${x}px solid transparent!important;border-image-source:${b}!important;border-image-slice:1!important`:"")+`}${k} > .ahd-tabs-nav > .ahd-tabs-label > .ahd-tabs-label-text{${jr(u??"inherit",!0)}}${k} > .ahd-tabs-nav > .ahd-tabs-label + .ahd-tabs-label{margin-top:${d}!important}${k} > .ahd-tabs-nav > .ahd-tabs-label:hover{background:${c??"rgba(0,0,0,.05)"}!important}${e} > .ahd-tabs-panels{position:static!important;width:100%!important;margin:${n} 0 0 0!important;grid-column:auto!important}`+w}function wo(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 Sk({style:e,props:t}){const n=(t==null?void 0:t.orientation)??"horizontal",r=(t==null?void 0:t.orientationTablet)??n,o=(t==null?void 0:t.orientationMobile)??"vertical",i=((t==null?void 0:t.behavior)??"showSelectedSection")==="scrollToSelectedSection",l=(t==null?void 0:t.stickyNav)??!1,s=V.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{label:"Tab 1",contentChildrenIds:[]}],[t==null?void 0:t.items]),u=V.useMemo(()=>`tabs-${Math.random().toString(36).slice(2,9)}`,[]),c=z(e==null?void 0:e.tabActiveColor),h=z(e==null?void 0:e.tabActiveBgColor),d=z(e==null?void 0:e.tabInactiveTextColor),f=z(e==null?void 0:e.tabInactiveBgColor),p=z(e==null?void 0:e.tabInactiveBorderColor),b=(e==null?void 0:e.tabInactiveBorderWidth)??1,x=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"0px",w=z(e==null?void 0:e.tabTextColor),k=z((e==null?void 0:e.tabBgColor)??"transparent"),S=z(e==null?void 0:e.navBorderColor),v=S?"2px":"0px",_=(e==null?void 0:e.tabGap)!=null?`${e.tabGap}px`:"0px",y=(e==null?void 0:e.contentGap)!=null?`${e.contentGap}px`:"0px",C=(e==null?void 0:e.navWidth)!=null?e.navWidth:160,I="var(--ahd-tabs-tab-gap,"+_+")",R="var(--ahd-tabs-content-gap,"+y+")",N=(e==null?void 0:e.activeFontSize)!=null?Rl(e.activeFontSize):void 0,P=((e==null?void 0:e.showActiveBorder)??!0)&&!h?c||"currentColor":"transparent",O=(t==null?void 0:t.tabsAlign)??"left",H=O==="center"?"center":O==="right"?"flex-end":"flex-start",B=(t==null?void 0:t.dropdown)??!1,Z=(t==null?void 0:t.dropdownTablet)??B,F=(t==null?void 0:t.dropdownMobile)??Z,Y=e==null?void 0:e.padding,J=e==null?void 0:e.margin,te=((J==null?void 0:J.left)??0)+((J==null?void 0:J.right)??0),X=(e==null?void 0:e.borderWidth)??{top:1,right:1,bottom:1,left:1},ae=`${X.top}px ${X.right}px ${X.bottom}px ${X.left}px`,Ae=_t(e==null?void 0:e.borderColor),ee=e!=null&&e.borderColor?Ae?{borderStyle:"solid",borderColor:"transparent",borderWidth:ae,borderImageSource:e.borderColor,borderImageSlice:1}:{borderStyle:"solid",borderColor:e.borderColor,borderWidth:ae}:{},me={width:te>0?`calc(100% - ${te}px)`:"100%",boxSizing:"border-box",background:(e==null?void 0:e.backgroundColor)??void 0,...ee,borderRadius:bk(e==null?void 0:e.borderRadius),padding:Y?`${Y.top}px ${Y.right}px ${Y.bottom}px ${Y.left}px`:void 0,margin:J?`${J.top}px ${J.right}px ${J.bottom}px ${J.left}px`:void 0,fontFamily:mk(e==null?void 0:e.fontFamily),fontSize:Rl(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,lineHeight:(e==null?void 0:e.lineHeight)??1.5,color:w,"--ahd-tabs-nav-border":S??"transparent"},ve=()=>s.map((D,j)=>m.jsx("input",{type:"radio",id:`${u}-r${j}`,name:u,className:"ahd-tabs-radio",defaultChecked:j===0,style:xk},j)),ue=V.useMemo(()=>{const D=`.${u}`,j=c||"currentColor",re=w||"inherit",he=`${D} > .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label`,Ge=`${he} > .ahd-tabs-label-text`,Ne=`${D} > .ahd-tabs-panels > .ahd-tabs-panel`,_e=d??re;let Q=`${he}{${zr(_e)};${Lr(f)};${kk(p,b)};border-radius:${x}}${Ge}{${jr(_e)}}`+(i?"":`${Ne}{display:none}`)+`${D} > .ahd-tabs-dd-wrap{display:contents}${D} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger{display:none}${D} > .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item{display:none}`;s.forEach((Ke,gt)=>{const ot=`#${u}-r${gt}:checked`,at=`${ot} ~ .ahd-tabs-dd-wrap > .ahd-tabs-nav > .ahd-tabs-label:nth-of-type(${gt+1})`,Ze=`${ot} ~ .ahd-tabs-panels > .ahd-tabs-panel:nth-of-type(${gt+1})`,Et=_t(P),Je=`${zr(j,!0)};${Lr(h,!0)};box-shadow:none!important`+(Et?`;${ta(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`);Q+=`${at}{${Je}}`,Q+=`${at} > .ahd-tabs-label-text{font-size:var(--ahd-tabs-active-font-size,${N??"inherit"})!important;${jr(j,!0)}}`,i||(Q+=`${Ze}{display:block!important}`),Q+=`${ot} ~ .ahd-tabs-dd-wrap > .ahd-tabs-dd-trigger > .ahd-tabs-dd-current > .ahd-tabs-dd-current-item:nth-of-type(${gt+1}){display:inline}`}),Q+=an(D,n,v,I,R,H,C!=null?String(C):void 0,S??void 0),r!==n&&(Q+=`${So}{${an(D,r,v,I,R,H,C!=null?String(C):void 0,S??void 0)}}`),o!==r&&(Q+=`${$o}{${an(D,o,v,I,R,H,C!=null?String(C):void 0,S??void 0)}}`);const ye=p||S||"#d0d5dd",Ie=(e==null?void 0:e.tabBorderRadius)!=null?`${e.tabBorderRadius}px`:"8px",Me=z((e==null?void 0:e.tabBgColor)??"#fff")??"#fff",Ue=w??"inherit",We=h??"transparent",W=c??"inherit",pt=p?_t(p)?"none":`inset 0 0 0 ${b}px ${p}`:"none",Ee=_t(p)?p:void 0,Ve=wk(D,ye,R,Ie,Me,Ue,We,W,N,d,f,pt,I,u,s.length,Ee,b);return l&&(Q+=`${D} > .ahd-tabs-dd-wrap > .ahd-tabs-nav{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> ${D}){position:sticky;top:0;z-index:50}`),B?(Q+=Ve,Z||(Q+=`${So}{${wo(D,x)}${an(D,r,v,I,R,H,C!=null?String(C):void 0,S??void 0)}}`),!F&&Z&&(Q+=`${$o}{${wo(D,x)}${an(D,o,v,I,R,H,C!=null?String(C):void 0,S??void 0)}}`)):(Z&&(Q+=`${So}{${Ve}}`),F!==Z&&(Q+=`${$o}{${F?Ve:wo(D,x)+an(D,o,v,I,R,H,C!=null?String(C):void 0,S??void 0)}}`)),Q},[s,u,c,h,x,w,N,P,n,r,o,i,v,S,C,I,R,H,d,f,p,b,B,Z,F,l]),q=D=>i?{display:"block",width:"100%",overflow:"visible",scrollMarginTop:24,marginTop:D===0?void 0:R}:{display:D===0?"block":"none",width:"100%",minWidth:0,overflow:"hidden"},K=n==="vertical"?"ahd-tabs-o-v":"ahd-tabs-o-h";return m.jsxs("div",{className:`${u} ahd-tabs ${K}${l?" ahd-tabs-sticky":""}${i?" ahd-tabs-scroll-sections":""}`,style:me,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:ue}}),ve(),m.jsxs("div",{className:"ahd-tabs-dd-wrap",children:[m.jsxs("button",{type:"button",className:"ahd-tabs-dd-trigger","aria-haspopup":"listbox",tabIndex:0,children:[m.jsx("span",{className:"ahd-tabs-dd-current",children:s.map((D,j)=>m.jsx("span",{className:"ahd-tabs-dd-current-item","data-ahd-tab-index":j,children:D.label??`Tab ${j+1}`},j))}),m.jsx("span",{className:"ahd-tabs-dd-arrow","aria-hidden":"true"})]}),m.jsx("div",{className:"ahd-tabs-nav",style:{background:k,...l?{position:"sticky",top:0}:{}},children:s.map((D,j)=>m.jsx("label",{htmlFor:`${u}-r${j}`,className:"ahd-tabs-label","data-ahd-tab-index":j,tabIndex:-1,style:{alignItems:"center",cursor:"pointer",padding:n==="vertical"?"10px 16px":"10px 18px",whiteSpace:n==="vertical"?"normal":"nowrap",transition:"color .15s ease,border-color .15s ease",userSelect:"none",position:"relative",outline:"none"},children:m.jsx("span",{className:"ahd-tabs-label-text",style:vk,children:D.label??`Tab ${j+1}`})},j))})]}),m.jsx("div",{className:"ahd-tabs-panels",children:s.map((D,j)=>m.jsx("div",{id:`${u}-panel-${j}`,className:"ahd-tabs-panel","data-ahd-tab-index":j,style:q(j),children:(D.contentChildrenIds??[]).map(re=>m.jsx(Te,{id:re},re))},j))})]})}const So=`@media (max-width:${ze}px)`,$o=`@media (max-width:${Be}px)`,$k=A({contentChildrenIds:oe($()).optional().nullable()}),_k=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:G([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),slideGap:g().optional().nullable(),arrowColor:$().optional().nullable(),arrowBgColor:$().optional().nullable(),arrowBorderColor:$().optional().nullable(),arrowSize:g().min(16).max(80).optional().nullable(),dotColor:$().optional().nullable(),dotActiveColor:$().optional().nullable(),dotSize:g().min(4).max(24).optional().nullable()}).optional().nullable(),props:A({slidesPerView:g().min(1).max(6).optional().nullable(),slidesPerViewTablet:g().min(1).max(6).optional().nullable(),slidesPerViewMobile:g().min(1).max(6).optional().nullable(),showArrows:L().optional().nullable(),showDots:L().optional().nullable(),autoplay:L().optional().nullable(),autoplayInterval:g().min(500).max(2e4).optional().nullable(),loop:L().optional().nullable(),transitionMs:g().min(0).max(3e3).optional().nullable(),items:oe($k).min(1).max(20).optional().nullable()}).optional().nullable()});function Ck(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 Ak="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z",yk="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",Tl=({d:e,size:t=20})=>m.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:m.jsx("path",{d:e})});function Ik({style:e,props:t}){const n=V.useMemo(()=>t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],[t==null?void 0:t.items]),r=V.useMemo(()=>`carousel-${Math.random().toString(36).slice(2,9)}`,[]),o=Math.max(1,(t==null?void 0:t.slidesPerView)??1),a=Math.max(1,(t==null?void 0:t.slidesPerViewTablet)??Math.min(o,2)),i=Math.max(1,(t==null?void 0:t.slidesPerViewMobile)??1),l=(t==null?void 0:t.showArrows)??!0,s=(t==null?void 0:t.showDots)??!0,u=(t==null?void 0:t.autoplay)??!1,c=(t==null?void 0:t.autoplayInterval)??4e3,h=(t==null?void 0:t.loop)??!0,d=(t==null?void 0:t.transitionMs)??400,f=(e==null?void 0:e.slideGap)??16,p=z((e==null?void 0:e.arrowColor)??"#262626")??"#262626",b=z((e==null?void 0:e.arrowBgColor)??"#ffffff")??"#ffffff",x=z((e==null?void 0:e.arrowBorderColor)??"rgba(0,0,0,.12)")??"rgba(0,0,0,.12)",w=(e==null?void 0:e.arrowSize)??40,k=z((e==null?void 0:e.dotColor)??"#d4d4d4")??"#d4d4d4",S=z((e==null?void 0:e.dotActiveColor)??"#262626")??"#262626",v=(e==null?void 0:e.dotSize)??8,_=Math.max(12,Math.min(40,Math.round(w*.5))),y=e==null?void 0:e.padding,C=e==null?void 0:e.margin,I=((C==null?void 0:C.left)??0)+((C==null?void 0:C.right)??0),R={width:I>0?`calc(100% - ${I}px)`:"100%",boxSizing:"border-box",position:"relative",background:(e==null?void 0:e.backgroundColor)??void 0,border:e!=null&&e.borderColor?`1px solid ${e.borderColor}`:void 0,borderRadius:Ck(e==null?void 0:e.borderRadius),padding:y?`${y.top}px ${y.right}px ${y.bottom}px ${y.left}px`:void 0,margin:C?`${C.top}px ${C.right}px ${C.bottom}px ${C.left}px`:void 0},N=V.useMemo(()=>{const H=`.${r}`,B=Z=>`calc((100% - ${f*(Z-1)}px) / ${Z})`;return`${H} .ahd-carousel-viewport{overflow:hidden;width:100%}${H} .ahd-carousel-track{display:flex;gap:var(--ahd-carousel-slide-gap,${f}px);transition:transform ${d}ms ease;will-change:transform}${H} .ahd-carousel-slide{flex:0 0 ${B(o)};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:${ze}px){${H} .ahd-carousel-slide{flex-basis:${B(a)}}}@media (max-width:${Be}px){${H} .ahd-carousel-slide{flex-basis:${B(i)}}}`},[r,f,d,o,a,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 ${x}`,backgroundColor:b,backgroundImage:"none",color:p,boxShadow:"none",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",flexShrink:0,lineHeight:1,padding:0},P=Math.min(o,a,i),O=Math.max(1,n.length-P+1);return m.jsxs("div",{className:`${r} ahd-carousel`,style:R,"data-per-view":o,"data-per-view-tablet":a,"data-per-view-mobile":i,"data-autoplay":u?"1":"0","data-autoplay-interval":c,"data-loop":h?"1":"0",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:N}}),m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[l&&m.jsx("button",{type:"button",className:"ahd-carousel-prev",style:M,"aria-label":"Previous slide",children:m.jsx(Tl,{d:Ak,size:_})}),m.jsx("div",{className:"ahd-carousel-viewport",children:m.jsx("div",{className:"ahd-carousel-track",children:n.map((H,B)=>m.jsx("div",{className:"ahd-carousel-slide","data-ahd-slide-index":B,children:(H.contentChildrenIds??[]).map(Z=>m.jsx(Te,{id:Z},Z))},B))})}),l&&m.jsx("button",{type:"button",className:"ahd-carousel-next",style:M,"aria-label":"Next slide",children:m.jsx(Tl,{d:yk,size:_})})]}),s&&O>1&&m.jsx("div",{className:"ahd-carousel-dots",style:{display:"flex",justifyContent:"center",gap:8,marginTop:16},"data-dot-color":k,"data-dot-active-color":S,children:Array.from({length:O}).map((H,B)=>m.jsx("button",{type:"button",className:"ahd-carousel-dot","data-ahd-dot-index":B,"aria-label":`Go to slide ${B+1}`,style:{appearance:"none",WebkitAppearance:"none",width:`var(--ahd-carousel-dot-size, ${v}px)`,height:`var(--ahd-carousel-dot-size, ${v}px)`,minWidth:`var(--ahd-carousel-dot-size, ${v}px)`,padding:0,border:"none",borderRadius:"50%",cursor:"pointer",boxShadow:"none",backgroundColor:B===0?S:k,backgroundImage:"none"}},B))})]})}const Rk=T(["left","center","right","space-between"]),Tk=A({contentChildrenIds:oe($()).optional().nullable()}),Nk=A({childrenIds:oe($())}),Ek=A({style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:G([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(120).optional().nullable(),columnsGap:g().min(0).max(120).optional().nullable(),rowsGap:g().min(0).max(120).optional().nullable(),controlGap:g().min(0).max(120).optional().nullable(),controlAlign:Rk.optional().nullable(),buttonSize:g().min(20).max(72).optional().nullable(),buttonGap:g().min(0).max(40).optional().nullable(),buttonRadius:g().min(0).max(999).optional().nullable(),buttonBg:$().optional().nullable(),buttonColor:$().optional().nullable(),buttonBorderColor:$().optional().nullable(),activeButtonBg:$().optional().nullable(),activeButtonColor:$().optional().nullable(),activeButtonBorderColor:$().optional().nullable(),arrowColor:$().optional().nullable(),fontSize:g().min(8).max(40).optional().nullable(),fontFamily:$().optional().nullable()}).optional().nullable(),props:A({items:oe(Tk).min(1).max(50).optional().nullable(),cells:oe(Nk).optional().nullable(),columnsCount:g().int().min(1).max(12).optional().nullable(),rowsCount:g().int().min(1).max(24).optional().nullable(),columnsCountTablet:g().int().min(1).max(12).optional().nullable(),columnsCountMobile:g().int().min(1).max(12).optional().nullable(),rowsCountTablet:g().int().min(1).max(24).optional().nullable(),rowsCountMobile:g().int().min(1).max(24).optional().nullable(),contentAlignment:T(["top","middle","bottom"]).optional().nullable(),horizontalAlignment:T(["left","center","right"]).optional().nullable(),cellsPerPage:g().int().min(1).max(100).optional().nullable(),repeatableEnabled:L().optional().nullable(),pageParam:$().min(1).max(40).optional().nullable(),syncUrl:L().optional().nullable(),showNumbers:L().optional().nullable(),showPrevNext:L().optional().nullable(),showFirstLast:L().optional().nullable(),maxVisiblePages:g().min(0).max(50).optional().nullable(),prevLabel:$().max(24).optional().nullable(),nextLabel:$().max(24).optional().nullable(),firstLabel:$().max(24).optional().nullable(),lastLabel:$().max(24).optional().nullable(),scrollToTopOnChange:L().optional().nullable(),explicitFirstPage:L().optional().nullable()}).optional().nullable()}),na={columnsCount:2,rowsCount:2};function _o(e,t="desktop"){const n=na,r=(e==null?void 0:e.columnsCount)??n.columnsCount,o=(e==null?void 0:e.rowsCount)??n.rowsCount,a=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??r:r,i=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??o:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??o:o;let l;Array.isArray(e==null?void 0:e.cells)?l=e.cells:Array.isArray(e==null?void 0:e.items)?l=e.items.map(c=>({childrenIds:Array.isArray(c==null?void 0:c.contentChildrenIds)?c.contentChildrenIds:[]})):l=[];const s=Math.max(1,r*o,a*i,l.length),u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=l[h])==null?void 0:d.childrenIds)?l[h].childrenIds:[]}});return{columnsCount:a,rowsCount:i,cells:u}}function Co(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)??na.columnsCount,r=(e==null?void 0:e.rowsCount)??na.rowsCount,o=t==="mobile"?(e==null?void 0:e.columnsCountMobile)??1:t==="tablet"?(e==null?void 0:e.columnsCountTablet)??n:n,a=t==="mobile"?(e==null?void 0:e.rowsCountMobile)??r:t==="tablet"?(e==null?void 0:e.rowsCountTablet)??r:r;return Math.max(1,o*a)}function Pk(e,t,n){const r=Math.max(1,e),o=Math.min(Math.max(1,n),r*Math.max(1,t));return Math.max(1,Math.ceil(o/r))}function Mk(e,t){const n=Math.max(1,t);if(e.length===0)return[[]];const r=[];for(let o=0;o<e.length;o+=n)r.push(e.slice(o,o+n));return r}const Ok={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 Lk({style:e,props:t}){const n=Ok;return{pageParam:((t==null?void 0:t.pageParam)??n.pageParam).trim()||n.pageParam,syncUrl:(t==null?void 0:t.syncUrl)??n.syncUrl,showNumbers:(t==null?void 0:t.showNumbers)??n.showNumbers,showPrevNext:(t==null?void 0:t.showPrevNext)??n.showPrevNext,showFirstLast:(t==null?void 0:t.showFirstLast)??n.showFirstLast,maxVisiblePages:(()=>{const r=(t==null?void 0:t.maxVisiblePages)??n.maxVisiblePages;return r<=0?0:Math.max(5,r)})(),scrollToTopOnChange:(t==null?void 0:t.scrollToTopOnChange)??n.scrollToTopOnChange,explicitFirstPage:(t==null?void 0:t.syncUrl)??n.syncUrl,prevLabel:(t==null?void 0:t.prevLabel)??n.prevLabel,nextLabel:(t==null?void 0:t.nextLabel)??n.nextLabel,firstLabel:(t==null?void 0:t.firstLabel)??n.firstLabel,lastLabel:(t==null?void 0:t.lastLabel)??n.lastLabel,itemGap:(e==null?void 0:e.itemGap)??n.itemGap,controlGap:(e==null?void 0:e.controlGap)??n.controlGap,controlAlign:(e==null?void 0:e.controlAlign)??n.controlAlign,buttonSize:(e==null?void 0:e.buttonSize)??n.buttonSize,buttonGap:(e==null?void 0:e.buttonGap)??n.buttonGap,buttonRadius:(e==null?void 0:e.buttonRadius)??n.buttonRadius,buttonBg:(e==null?void 0:e.buttonBg)??n.buttonBg,buttonColor:(e==null?void 0:e.buttonColor)??n.buttonColor,buttonBorderColor:(e==null?void 0:e.buttonBorderColor)??n.buttonBorderColor,activeButtonBg:(e==null?void 0:e.activeButtonBg)??n.activeButtonBg,activeButtonColor:(e==null?void 0:e.activeButtonColor)??n.activeButtonColor,activeButtonBorderColor:(e==null?void 0:e.activeButtonBorderColor)??n.activeButtonBorderColor,arrowColor:(e==null?void 0:e.arrowColor)??n.arrowColor,fontSize:(e==null?void 0:e.fontSize)??n.fontSize,fontFamily:(e==null?void 0:e.fontFamily)??void 0}}function zk(e){return Math.max(1,e)}function jk(e,t,n){if(t<=1)return[1];if(n<=0||t<=n)return Array.from({length:t},(s,u)=>u+1);const r=[],o=Math.max(1,n-2),a=Math.floor(o/2);let i=Math.max(2,e-a),l=Math.min(t-1,i+o-1);i=Math.max(2,Math.min(i,l-o+1)),r.push(1),i>2&&r.push("ellipsis");for(let s=i;s<=l;s++)r.push(s);return l<t-1&&r.push("ellipsis"),r.push(t),r}function Bk(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 Dk({style:e,props:t}){const n=Lk({style:e,props:t}),r=_o(t,"desktop"),o=_o(t,"tablet"),a=_o(t,"mobile"),i=Math.max(Co(t,"desktop"),Co(t,"tablet"),Co(t,"mobile")),l=V.useMemo(()=>r.cells.length>=i?r.cells:Array.from({length:i},(F,Y)=>r.cells[Y]??{childrenIds:[]}),[r.cells,i]),s=V.useMemo(()=>Mk(l,i),[l,i]),u=zk(s.length),c=(e==null?void 0:e.columnsGap)??n.itemGap,h=(e==null?void 0:e.rowsGap)??n.itemGap,d=V.useMemo(()=>`pgn-${Math.random().toString(36).slice(2,9)}`,[]),f=V.useMemo(()=>jk(1,u,n.maxVisiblePages),[u,n.maxVisiblePages]),p=Va(),b=p(e==null?void 0:e.backgroundColor),x=p(e==null?void 0:e.borderColor),w=p(n.buttonBg),k=p(n.buttonColor),S=p(n.buttonBorderColor),v=p(n.arrowColor),_=p(n.activeButtonBg),y=p(n.activeButtonColor),C=p(n.activeButtonBorderColor),I=e==null?void 0:e.padding,R=e==null?void 0:e.margin,N=((R==null?void 0:R.left)??0)+((R==null?void 0:R.right)??0),M={width:N>0?`calc(100% - ${N}px)`:"100%",boxSizing:"border-box",background:b??void 0,border:x?`1px solid ${x}`:void 0,borderRadius:Bk(e==null?void 0:e.borderRadius),padding:I?`${I.top}px ${I.right}px ${I.bottom}px ${I.left}px`:void 0,margin:R?`${R.top}px ${R.right}px ${R.bottom}px ${R.left}px`:void 0,fontFamily:n.fontFamily},P=n.controlAlign==="left"?"flex-start":n.controlAlign==="right"?"flex-end":n.controlAlign==="space-between"?"space-between":"center",O={appearance:"none",WebkitAppearance:"none",minWidth:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,height:`var(--ahd-pgn-btn-size, ${n.buttonSize}px)`,padding:"0 8px",borderRadius:`var(--ahd-pgn-btn-radius, ${n.buttonRadius}px)`,border:`1px solid ${S}`,backgroundColor:w,backgroundImage:"none",color:k,fontSize:n.fontSize,lineHeight:1,boxShadow:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer",boxSizing:"border-box"},H={...O,color:v},B=V.useMemo(()=>{const F=te=>`grid-template-columns:repeat(${te.columnsCount},minmax(0,1fr));grid-template-rows:repeat(${Pk(te.columnsCount,te.rowsCount,i)},auto)`,Y=(te,X)=>{const ae=Math.min(Math.max(1,X.columnsCount*X.rowsCount),Math.max(1,i));return ae>=i?"":`${te} .ahd-pgn-item>.ahd-pgn-cell:nth-child(n+${ae+1}){display:none}`},J=`.${d}`;return`${J} .ahd-pgn-item{display:grid;${F(r)};column-gap:${c}px;row-gap:${h}px}${J} .ahd-pgn-cell{display:flex;flex-direction:column;gap:${n.itemGap}px;min-width:0;box-sizing:border-box}`+Y(J,r)+`@media (max-width:${ze}px){${J} .ahd-pgn-item{${F(o)}}${J} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+Y(J,o)+`}@media (max-width:${Be}px){${J} .ahd-pgn-item{${F(a)}}${J} .ahd-pgn-item>.ahd-pgn-cell{display:flex}`+Y(J,a)+"}"},[d,r,o,a,i,c,h,n.itemGap]),Z=(F,Y,J)=>m.jsx("button",{type:"button",className:`ahd-pgn-btn ${F}`,"data-ahd-page":J,style:H,"aria-label":Y,children:Y});return m.jsxs("div",{className:`${d} ahd-pagination`,style:M,"data-total-pages":u,"data-page-param":n.pageParam,"data-sync-url":n.syncUrl?"1":"0","data-explicit-first-page":n.explicitFirstPage?"1":"0","data-scroll-top":n.scrollToTopOnChange?"1":"0","data-max-visible":n.maxVisiblePages,"data-btn-bg":w,"data-btn-color":k,"data-btn-border":S,"data-active-bg":_,"data-active-color":y,"data-active-border":C,"data-first-label":n.firstLabel,"data-last-label":n.lastLabel,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:B}}),m.jsx("div",{className:"ahd-pgn-content",style:{display:"flex",flexDirection:"column",gap:n.itemGap},children:s.map((F,Y)=>m.jsx("div",{className:"ahd-pgn-item","data-ahd-page-index":Y,style:Y===0?void 0:{display:"none"},children:F.map((J,te)=>m.jsx("div",{className:"ahd-pgn-cell",children:(J.childrenIds??[]).map(X=>m.jsx(Te,{id:X},X))},te))},Y))}),(n.showNumbers||n.showPrevNext||n.showFirstLast)&&m.jsxs("div",{className:"ahd-pgn-control",style:{display:"flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,justifyContent:P,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&&Z("ahd-pgn-first",n.firstLabel,1),n.showPrevNext&&Z("ahd-pgn-prev",n.prevLabel,Math.max(1,0)),n.showNumbers&&m.jsx("span",{className:"ahd-pgn-numbers",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-pgn-btn-gap, ${n.buttonGap}px)`,flexWrap:"wrap"},children:f.map((F,Y)=>F==="ellipsis"?m.jsx("span",{className:"ahd-pgn-ellipsis",style:{...O,border:"none",background:"transparent",cursor:"default"},children:"…"},`e${Y}`):m.jsx("button",{type:"button",className:"ahd-pgn-btn ahd-pgn-number","data-ahd-page":F,"aria-label":`Page ${F}`,"aria-current":F===1?"true":void 0,style:F===1?{...O,backgroundColor:_,color:y,border:`1px solid ${C}`}:O,children:F},F))}),n.showPrevNext&&Z("ahd-pgn-next",n.nextLabel,2),n.showFirstLast&&Z("ahd-pgn-last",n.lastLabel,u)]})]})}const Fk=A({style:A({starColor:$().optional().nullable(),starEmptyColor:$().optional().nullable(),starSize:g().min(8).max(80).optional().nullable(),starGap:g().min(0).max(40).optional().nullable(),textColor:$().optional().nullable(),fontSize:G([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable()}).optional().nullable(),props:A({value:G([g(),$()]).optional().nullable(),max:G([g(),$()]).optional().nullable(),showValue:L().optional().nullable()}).optional().nullable()}),Nl="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 Hk(e){if(!e)return;const t=ft.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Gk(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function Uk({fillPct:e,size:t,filledColor:n,emptyColor:r}){return m.jsxs("span",{className:"ahd-rating-star",style:{position:"relative",display:"inline-block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`,lineHeight:0},children:[m.jsx("svg",{viewBox:"0 0 24 24",fill:r,style:{display:"block",width:"100%",height:"100%"},"aria-hidden":"true",children:m.jsx("path",{d:Nl})}),m.jsx("span",{className:"ahd-rating-star-fill",style:{position:"absolute",top:0,left:0,height:"100%",width:`${e}%`,overflow:"hidden",lineHeight:0},children:m.jsx("svg",{viewBox:"0 0 24 24",fill:n,style:{display:"block",width:`var(--ahd-rating-star-size, ${t}px)`,height:`var(--ahd-rating-star-size, ${t}px)`},"aria-hidden":"true",children:m.jsx("path",{d:Nl})})})]})}function Wk({style:e,props:t}){const n=V.useMemo(()=>`rating-${Math.random().toString(36).slice(2,9)}`,[]),r=(w,k)=>{if(typeof w=="number")return Number.isFinite(w)?w:k;const S=parseFloat(String(w??""));return Number.isFinite(S)?S:k},o=Math.max(1,Math.min(10,Math.round(r(t==null?void 0:t.max,5)))),a=Math.max(0,Math.min(o,r(t==null?void 0:t.value,0))),i=(t==null?void 0:t.showValue)??!0,l=z((e==null?void 0:e.starColor)??"#facc15")??"#facc15",s=z((e==null?void 0:e.starEmptyColor)??"#e5e7eb")??"#e5e7eb",u=(e==null?void 0:e.starSize)??24,c=(e==null?void 0:e.starGap)??4,h=z((e==null?void 0:e.textColor)??"#262626")??"#262626",d=(e==null?void 0:e.textAlign)??"left",f=e==null?void 0:e.padding,p=e==null?void 0:e.margin,b={display:"flex",alignItems:"center",gap:`calc(var(--ahd-rating-star-gap, ${c}px) + 4px)`,justifyContent:d==="center"?"center":d==="right"?"flex-end":"flex-start",flexWrap:"wrap",color:h,fontFamily:Hk(e==null?void 0:e.fontFamily),fontSize:Gk(e==null?void 0:e.fontSize),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:f?`${f.top}px ${f.right}px ${f.bottom}px ${f.left}px`:void 0,margin:p?`${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`:void 0,boxSizing:"border-box"},x=w=>{const k=a-w;return k>=1?100:k>=.5?50:k>0?Math.round(k*100):0};return m.jsxs("div",{className:`${n} ahd-rating rating-block`,style:b,children:[m.jsx("span",{className:"ahd-rating-stars",style:{display:"inline-flex",alignItems:"center",gap:`var(--ahd-rating-star-gap, ${c}px)`},children:Array.from({length:o}).map((w,k)=>m.jsx(Uk,{fillPct:x(k),size:u,filledColor:l,emptyColor:s},k))}),i&&m.jsxs("span",{className:"ahd-rating-value",style:{fontWeight:600},children:[Number.isInteger(a)?a:a.toFixed(1),m.jsxs("span",{style:{opacity:.55},children:["/",o]})]})]})}const Zk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),qk=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),Vk=A({style:A({trackColor:$().optional().nullable(),fillColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:G([$(),g()]).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:$().optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),barHeight:g().min(2).max(60).optional().nullable(),barRadius:g().min(0).max(40).optional().nullable(),circleSize:g().min(40).max(320).optional().nullable(),strokeWidth:g().min(2).max(40).optional().nullable(),stepSize:g().min(4).max(48).optional().nullable(),stepGap:g().min(0).max(40).optional().nullable(),padding:Zk,margin:qk}).optional().nullable(),props:A({variant:T(["linear","circular","steps"]).optional().nullable(),value:G([g(),$()]).optional().nullable(),max:G([g(),$()]).optional().nullable(),showLabel:L().optional().nullable(),labelFormat:T(["percent","fraction"]).optional().nullable(),steps:g().min(2).max(20).optional().nullable(),striped:L().optional().nullable(),animated:L().optional().nullable()}).optional().nullable()});function Yk(e){if(!e)return;const t=ft.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function Kk(e){if(e!=null)return typeof e=="number"?`${e}px`:e}function El(e,t){if(typeof e=="number")return Number.isFinite(e)?e:t;const n=parseFloat(String(e??""));return Number.isFinite(n)?n:t}function Pl(e,t,n,r){return r==="fraction"?`${Number.isInteger(t)?t:t.toFixed(1)}/${n}`:`${Math.round(e)}%`}function Jk({pct:e,label:t,trackColor:n,fillColor:r,barHeight:o,barRadius:a,striped:i,animated:l,ariaLabel:s,value:u,max:c}){const h=i&&l;return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,width:"100%"},children:[h&&m.jsx("style",{dangerouslySetInnerHTML:{__html:"@keyframes ahd-progress-stripes{from{background-position:1rem 0}to{background-position:0 0}}.ahd-progress-animated{animation:ahd-progress-stripes 1s linear infinite}@media (prefers-reduced-motion: reduce){.ahd-progress-animated{animation:none}}"}}),m.jsx("div",{className:"ahd-progress-track",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{width:"100%",height:o,borderRadius:a,backgroundColor:n,overflow:"hidden",boxSizing:"border-box"},children:m.jsx("div",{className:`ahd-progress-fill${i?" ahd-progress-striped":""}${h?" ahd-progress-animated":""}`,style:{width:`${e}%`,height:"100%",borderRadius:a,backgroundColor:r,backgroundImage:i?"linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent)":void 0,backgroundSize:i?"1rem 1rem":void 0,transition:"width 300ms ease"}})}),t!=null&&m.jsx("span",{children:t})]})}function Xk({pct:e,label:t,trackColor:n,fillColor:r,size:o,strokeWidth:a,textColor:i,fontWeight:l,ariaLabel:s,value:u,max:c}){const h=(o-a)/2,d=2*Math.PI*h,f=d*(1-e/100),p=o/2;return m.jsxs("div",{className:"ahd-progress-circular",role:"progressbar","aria-valuenow":u,"aria-valuemin":0,"aria-valuemax":c,"aria-label":s,style:{position:"relative",width:o,height:o,display:"inline-flex"},children:[m.jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,children:[m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:n,strokeWidth:a}),m.jsx("circle",{cx:p,cy:p,r:h,fill:"none",stroke:r,strokeWidth:a,strokeLinecap:"round",strokeDasharray:d,strokeDashoffset:f,transform:`rotate(-90 ${p} ${p})`,style:{transition:"stroke-dashoffset 300ms ease"}})]}),t!=null&&m.jsx("span",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:i,fontWeight:l??600},children:t})]})}function Qk({steps:e,activeIndex:t,trackColor:n,fillColor:r,stepSize:o,stepGap:a,label:i,ariaLabel:l,value:s,max:u}){return m.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[m.jsx("div",{className:"ahd-progress-steps",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":u,"aria-label":l,style:{display:"inline-flex",alignItems:"center",gap:a},children:Array.from({length:e}).map((c,h)=>m.jsx("span",{"data-active":h<t?"true":"false",style:{width:o,height:o,borderRadius:"50%",backgroundColor:h<t?r:n,transition:"background-color 200ms ease",display:"inline-block"}},h))}),i!=null&&m.jsx("span",{children:i})]})}function ew({style:e,props:t}){const n=V.useMemo(()=>`progress-${Math.random().toString(36).slice(2,9)}`,[]),r=(t==null?void 0:t.variant)??"linear",o=Math.max(1,El(t==null?void 0:t.max,100)),a=Math.max(0,Math.min(o,El(t==null?void 0:t.value,0))),i=a/o*100,l=(t==null?void 0:t.showLabel)??!0,s=(t==null?void 0:t.labelFormat)??"percent",u=l?Pl(i,a,o,s):null,c=`Progress: ${Pl(i,a,o,"percent")}`,h=z((e==null?void 0:e.trackColor)??"#e5e7eb")??"#e5e7eb",d=z((e==null?void 0:e.fillColor)??"#3F73FF")??"#3F73FF",f=z((e==null?void 0:e.textColor)??"#262626")??"#262626",p=(e==null?void 0:e.textAlign)??"left",b=e==null?void 0:e.padding,x=e==null?void 0:e.margin,w={display:"flex",justifyContent:p==="center"?"center":p==="right"?"flex-end":"flex-start",color:f,fontFamily:Yk(e==null?void 0:e.fontFamily),fontSize:Kk((e==null?void 0:e.fontSize)??13),fontWeight:(e==null?void 0:e.fontWeight)??void 0,padding:b?`${b.top}px ${b.right}px ${b.bottom}px ${b.left}px`:void 0,margin:x?`${x.top}px ${x.right}px ${x.bottom}px ${x.left}px`:void 0,boxSizing:"border-box"},k=Math.max(2,Math.min(20,Math.round((t==null?void 0:t.steps)??5))),S=Math.round(i/100*k);return m.jsx("div",{className:`${n} ahd-progress progress-block`,style:w,children:r==="circular"?m.jsx(Xk,{pct:i,label:u,trackColor:h,fillColor:d,size:(e==null?void 0:e.circleSize)??96,strokeWidth:(e==null?void 0:e.strokeWidth)??8,textColor:f,fontWeight:(e==null?void 0:e.fontWeight)??void 0,ariaLabel:c,value:a,max:o}):r==="steps"?m.jsx(Qk,{steps:k,activeIndex:S,trackColor:h,fillColor:d,stepSize:(e==null?void 0:e.stepSize)??14,stepGap:(e==null?void 0:e.stepGap)??12,label:u,ariaLabel:c,value:a,max:o}):m.jsx(Jk,{pct:i,label:u,trackColor:h,fillColor:d,barHeight:(e==null?void 0:e.barHeight)??12,barRadius:(e==null?void 0:e.barRadius)??6,striped:(t==null?void 0:t.striped)??!1,animated:(t==null?void 0:t.animated)??!1,ariaLabel:c,value:a,max:o})})}const tw=A({responsive:De,style:A({backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),borderRadius:G([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),margin:A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),itemGap:g().min(0).max(200).optional().nullable(),viewportHeight:g().min(40).max(1200).optional().nullable()}).optional().nullable(),props:A({direction:T(["left","right","up","down"]).optional().nullable(),speed:g().min(5).max(200).optional().nullable(),pauseOnHover:L().optional().nullable(),repeat:g().min(2).max(6).optional().nullable(),fadeEdges:L().optional().nullable(),verticalAlign:T(["top","middle","bottom"]).optional().nullable(),items:oe(A({contentChildrenIds:oe($()).optional().nullable()})).min(1).max(30).optional().nullable()}).optional().nullable()}),nw=40,rw=32,ow=200,Cc=(e,t)=>typeof e=="number"?Math.max(40,Math.min(1200,e)):t,Ac=(e,t)=>typeof e=="number"?Math.max(5,Math.min(200,e)):t,aw=e=>Math.max(2,Math.round(1200/e)),iw=e=>Math.max(2,Math.min(6,typeof e=="number"?e:2)),yc=e=>e==="up"||e==="down",lw=e=>e==="top"?"flex-start":e==="bottom"?"flex-end":"center",Br=e=>e?"linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent)":"linear-gradient(to right, transparent, #000 12%, #000 88%, transparent)";function sw(e,t){return{speed:Ac(t==null?void 0:t.speed,nw),pauseOnHover:(t==null?void 0:t.pauseOnHover)??!1,fadeEdges:(t==null?void 0:t.fadeEdges)??!1,itemGap:(e==null?void 0:e.itemGap)??rw,viewportHeight:Cc(e==null?void 0:e.viewportHeight,ow)}}function cw(e,t,n){var o,a,i,l,s;const r=e==null?void 0:e[t];return{speed:Ac((o=r==null?void 0:r.props)==null?void 0:o.speed,n.speed),pauseOnHover:((a=r==null?void 0:r.props)==null?void 0:a.pauseOnHover)??n.pauseOnHover,fadeEdges:((i=r==null?void 0:r.props)==null?void 0:i.fadeEdges)??n.fadeEdges,itemGap:((l=r==null?void 0:r.style)==null?void 0:l.itemGap)??n.itemGap,viewportHeight:Cc((s=r==null?void 0:r.style)==null?void 0:s.viewportHeight,n.viewportHeight)}}const uw=(e,t)=>{const n=e==null?void 0:e[t];return!!(n!=null&&n.props||n!=null&&n.style)},Ml=e=>`--ahd-mq-gap:${e.itemGap}px;--ahd-mq-duration:${aw(e.speed)}s;--ahd-mq-height:${e.viewportHeight}px;--ahd-mq-hover:${e.pauseOnHover?"paused":"running"}`,dw=(e,t)=>e.fadeEdges?`-webkit-mask-image:${Br(t)}!important;mask-image:${Br(t)}!important`:"-webkit-mask-image:none!important;mask-image:none!important";function hw({instanceId:e,direction:t,repeat:n,desktop:r,responsive:o,verticalAlign:a}){const i=`.${e}`,l=yc(t),s=l?"column":"row",u=t==="right"||t==="down"?"reverse":"normal",c=l?"flex-start":lw(a),h=100/n,d=l?`@keyframes ${e}-kf{from{transform:translateY(0)}to{transform:translateY(-${h}%)}}`:`@keyframes ${e}-kf{from{transform:translateX(0)}to{transform:translateX(-${h}%)}}`,f=(b,x)=>{if(!uw(o,x))return"";const w=cw(o,x,r);return`${b}{${i}{${Ml(w)};${dw(w,l)}}}`},p=l?`${i} .ahd-marquee-viewport{height:var(--ahd-mq-height);overflow:hidden;position:relative}`:`${i} .ahd-marquee-viewport{overflow:hidden;position:relative;max-width:100%}`;return d+`${i}{${Ml(r)}}`+p+`${i} .ahd-marquee-track{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);width:${l?"100%":"max-content"};animation:${e}-kf var(--ahd-mq-duration) linear infinite ${u};will-change:transform}${i} .ahd-marquee-group{display:flex;flex-direction:${s};gap:var(--ahd-mq-gap);flex:0 0 auto;align-items:${c}}${i} .ahd-marquee-item{flex:0 0 auto;${l?"width:100%":""}}${i}:hover .ahd-marquee-track{animation-play-state:var(--ahd-mq-hover)}`+f(Kt,"tablet")+f(He,"mobile")+`@media (prefers-reduced-motion: reduce){${i} .ahd-marquee-track{animation:none}}`}function fw(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 pw(e,t){if(!e)return{};const n=(t==null?void 0:t.top)??1,r=(t==null?void 0:t.bottom)??1;return{borderTop:n>0?`${n}px solid ${e}`:void 0,borderBottom:r>0?`${r}px solid ${e}`:void 0}}function gw({style:e,props:t,responsive:n}){const r=V.useMemo(()=>`marquee-${Math.random().toString(36).slice(2,9)}`,[]),o=t!=null&&t.items&&t.items.length>0?t.items:[{contentChildrenIds:[]}],a=(t==null?void 0:t.direction)??"left",i=iw(t==null?void 0:t.repeat),l=yc(a),s=sw(e,t),u=z(e==null?void 0:e.backgroundColor),c=z(e==null?void 0:e.borderColor),h=e==null?void 0:e.padding,d=e==null?void 0:e.margin,f=((d==null?void 0:d.left)??0)+((d==null?void 0:d.right)??0),p={width:f>0?`calc(100% - ${f}px)`:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden",position:"relative",background:u??void 0,...pw(c,e==null?void 0:e.borderWidth),borderRadius:fw(e==null?void 0:e.borderRadius),padding:h?`${h.top}px ${h.right}px ${h.bottom}px ${h.left}px`:void 0,margin:d?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:void 0,...s.fadeEdges?{WebkitMaskImage:Br(l),maskImage:Br(l)}:{}},b=(t==null?void 0:t.verticalAlign)??"middle",x=V.useMemo(()=>hw({instanceId:r,direction:a,repeat:i,desktop:s,responsive:n,verticalAlign:b}),[r,a,i,s.speed,s.pauseOnHover,s.fadeEdges,s.itemGap,s.viewportHeight,n,b]),w=k=>m.jsx("div",{className:"ahd-marquee-group","aria-hidden":k>0?!0:void 0,children:o.map((S,v)=>m.jsx("div",{className:"ahd-marquee-item",children:(S.contentChildrenIds??[]).map(_=>m.jsx(Te,{id:_},_))},v))},k);return m.jsxs("div",{className:`${r} ahd-marquee`,style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("div",{className:"ahd-marquee-viewport",children:m.jsx("div",{className:"ahd-marquee-track",children:Array.from({length:i}).map((k,S)=>w(S))})})]})}const mw=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),bw=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),xw=A({style:A({backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),accentColor:$().optional().nullable(),numberColor:$().optional().nullable(),numberFontWeight:$().optional().nullable(),borderColor:$().optional().nullable(),borderRadius:G([g(),$(),A({topLeft:g(),topRight:g(),bottomRight:g(),bottomLeft:g()})]).optional().nullable(),padding:mw,margin:bw}).optional().nullable(),props:A({layout:T(["digitalFlip","circularProgress","textInline"]).default("digitalFlip"),targetDate:$().default(()=>new Date(Date.now()+24*60*60*1e3).toISOString()),showLabels:L().default(!0),expiredBehavior:T(["hide","showMessage","showZeros"]).default("showMessage"),expiredMessage:$().default("Offer has ended"),showConfetti:L().default(!1)}).optional().nullable()});function vw(e){return String(Math.max(0,e)).padStart(2,"0")}function kw({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,fallbackInk:s="#1f1f1f",fallbackMuted:u="#6b7280",fallbackOnAccent:c="#ffffff"}){const h=[{value:e,label:"Days"},{value:t,label:"Hours"},{value:n,label:"Minutes"},{value:r,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-digital",style:{display:"flex",gap:12,alignItems:"flex-start",justifyContent:"center"},children:h.map(d=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:6},children:[m.jsx("div",{"data-ahd-timer-unit":d.label.toLowerCase(),style:{minWidth:48,padding:"8px 10px",borderRadius:8,background:a??s,color:l??c,fontVariantNumeric:"tabular-nums",fontSize:22,fontWeight:700,textAlign:"center",lineHeight:1},children:vw(d.value)}),o&&m.jsx("span",{style:{fontSize:11,color:i??u,textTransform:"uppercase"},children:d.label})]},d.label))})}function ww(e){return String(Math.max(0,e)).padStart(2,"0")}const ra=26,Ol=2*Math.PI*ra;function Sw({value:e,max:t,accentColor:n,numberColor:r,numberFontWeight:o,unit:a,trackColor:i}){const l=t>0?Math.min(1,Math.max(0,e/t)):0,s=Ol*(1-l);return m.jsxs("svg",{"data-ahd-timer-unit":a,"data-ahd-timer-max":t,width:64,height:64,viewBox:"0 0 64 64",children:[m.jsx("circle",{cx:32,cy:32,r:ra,fill:"none",stroke:i,strokeWidth:5}),m.jsx("circle",{"data-ahd-timer-ring":!0,cx:32,cy:32,r:ra,fill:"none",stroke:n,strokeWidth:5,strokeLinecap:"round",strokeDasharray:Ol,strokeDashoffset:s,transform:"rotate(-90 32 32)",style:{transition:"stroke-dashoffset 1s linear"}}),m.jsx("text",{"data-ahd-timer-text":!0,x:32,y:37,textAnchor:"middle",fontSize:15,fontWeight:o??700,fill:r,children:ww(e)})]})}function $w({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,numberColor:l,numberFontWeight:s,fallbackInk:u="#1f1f1f",fallbackMuted:c="#6b7280",fallbackAccent:h="#7c3aed",fallbackTrack:d="#e5e7eb"}){const f=a??h,p=l??u,b=[{value:e,max:30,label:"Days"},{value:t,max:24,label:"Hours"},{value:n,max:60,label:"Minutes"},{value:r,max:60,label:"Seconds"}];return m.jsx("div",{className:"ahd-timer-circular",style:{display:"flex",gap:16,alignItems:"flex-start",justifyContent:"center"},children:b.map(x=>m.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:4},children:[m.jsx(Sw,{value:x.value,max:x.max,accentColor:f,numberColor:p,numberFontWeight:s,unit:x.label.toLowerCase(),trackColor:d}),o&&m.jsx("span",{style:{fontSize:11,color:i??c,textTransform:"uppercase"},children:x.label})]},x.label))})}function Ft(e){return String(Math.max(0,e)).padStart(2,"0")}function _w({days:e,hours:t,minutes:n,seconds:r,showLabels:o,accentColor:a,textColor:i,fallbackInk:l="#1f1f1f",fallbackAccent:s="#7c3aed"}){const u=[{key:"days",text:o?`${e}d`:Ft(e)},{key:"hours",text:o?`${Ft(t)}h`:Ft(t)},{key:"minutes",text:o?`${Ft(n)}m`:Ft(n)},{key:"seconds",text:o?`${Ft(r)}s`:Ft(r)}],c=o?" ":" : ";return m.jsxs("div",{className:"ahd-timer-inline","data-ahd-timer-show-labels":o?"1":"0",style:{textAlign:"center",fontVariantNumeric:"tabular-nums",fontSize:16,fontWeight:600,color:i??l},children:[m.jsx("span",{style:{color:a??s,marginRight:6},children:"Ends in"}),u.map((h,d)=>m.jsxs(V.Fragment,{children:[d>0&&c,m.jsx("span",{"data-ahd-timer-unit":h.key,children:h.text})]},h.key))]})}function Cw(e){if(e!=null)return typeof e=="number"?`${e}px`:typeof e=="string"?e:`${e.topLeft}px ${e.topRight}px ${e.bottomRight}px ${e.bottomLeft}px`}function Aw(e,t=Date.now()){const n=e?new Date(e).getTime():NaN;if(Number.isNaN(n))return{days:0,hours:0,minutes:0,seconds:0,completed:!0};const r=Math.max(0,n-t),o=r<=0,a=Math.floor(r/1e3);return{days:Math.floor(a/86400),hours:Math.floor(a%86400/3600),minutes:Math.floor(a%3600/60),seconds:a%60,completed:o}}function yw({style:e,props:t}){const n=t??{},r=n.layout??"digitalFlip",o=n.showLabels??!0,a=n.expiredBehavior??"showMessage",i=n.expiredMessage||"Offer has ended",l=Aw(n.targetDate),s=l.completed,u=z(e==null?void 0:e.backgroundColor),c=z(e==null?void 0:e.borderColor),h=z(e==null?void 0:e.accentColor),d=z(e==null?void 0:e.textColor),f=z(e==null?void 0:e.numberColor),p=z("#1f1f1f")??"#1f1f1f",b=z("#6b7280")??"#6b7280",x=z("#7c3aed")??"#7c3aed",w=z("#ffffff")??"#ffffff",k=z("#e5e7eb")??"#e5e7eb",S=e==null?void 0:e.padding,v=e==null?void 0:e.margin,_=((v==null?void 0:v.left)??0)+((v==null?void 0:v.right)??0),y={width:_>0?`calc(100% - ${_}px)`:"100%",boxSizing:"border-box",background:u??void 0,border:c?`1px solid ${c}`:void 0,borderRadius:Cw(e==null?void 0:e.borderRadius),padding:S?`${S.top}px ${S.right}px ${S.bottom}px ${S.left}px`:"16px",margin:v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:void 0},C={days:l.days,hours:l.hours,minutes:l.minutes,seconds:l.seconds,showLabels:o,accentColor:h,textColor:d,numberColor:f,fallbackInk:p,fallbackMuted:b,fallbackAccent:x,fallbackOnAccent:w,fallbackTrack:k,numberFontWeight:e==null?void 0:e.numberFontWeight},I=s&&a==="showMessage",R=s&&a==="hide";return m.jsxs("div",{className:"ahd-timer","data-layout":r,"data-ahd-timer-target-date":n.targetDate,"data-ahd-timer-expired-behavior":a,"data-ahd-timer-expired-message":i,"data-ahd-timer-show-labels":o?"1":"0","data-ahd-timer-confetti":n.showConfetti?"1":"0",style:{...y,display:R?"none":void 0},children:[m.jsx("div",{"data-ahd-timer-message":!0,style:{textAlign:"center",color:d??p,display:I?void 0:"none"},children:i}),m.jsxs("div",{"data-ahd-timer-body":!0,style:{display:I?"none":void 0},children:[r==="digitalFlip"&&m.jsx(kw,{...C}),r==="circularProgress"&&m.jsx($w,{...C}),r==="textInline"&&m.jsx(_w,{...C})]})]})}function Ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Iw={"&":"&","<":"<",">":">",'"':""","'":"'"},Rw={"&":"&","<":"<",">":">",""":'"',"'":"'"},Tw=/(&|<|>|"|')/g,Nw=/[&<>"']/g;function Ew(e){return Iw[e]}function Pw(e){return Rw[e]}function oa(e){return e==null?"":String(e).replace(Nw,Ew)}function aa(e){return e==null?"":String(e).replace(Tw,Pw)}oa.options=aa.options={};var Rc={encode:oa,escape:oa,decode:aa,unescape:aa,version:"1.0.0-browser"};function Tc(e){for(var t=Array.prototype.slice.call(arguments,1),n,r;t.length;){n=t.shift();for(r in n)n.hasOwnProperty(r)&&(Object.prototype.toString.call(e[r])==="[object Object]"?e[r]=Tc(e[r],n[r]):e[r]=n[r])}return e}var Mw=Tc,Nc=function(t){return typeof t=="string"?t.toLowerCase():t};function Ow(e){return e.reduce(Lw,{})}function Lw(e,t){return e[t]=!0,e}var Ec=Ow,zw=Ec,jw=["background","base","cite","href","longdesc","src","usemap"],Bw={uris:zw(jw)},Dw=Ec,Fw=["area","br","col","hr","img","wbr","input","base","basefont","link","meta"],Pc={voids:Dw(Fw)},Hw=Rc,Ll=Nc,Gw=Pc,Uw=/^<\s*([\w:-]+)((?:\s+[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)\s*>/,Ww=/^<\s*\/\s*([\w:-]+)[^>]*>/,Zw=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,qw=/^</,Vw=/^<\s*\//;function Yw(){var e=[];return e.lastItem=function(){return e[e.length-1]},e}function Kw(e,t){for(var n=Yw(),r=e,o;e;)a();h();function a(){o=!0,i();var d=e===r;r=e,d&&(e="")}function i(){e.substr(0,4)==="<!--"?s():Vw.test(e)?l(Ww,h):qw.test(e)&&l(Uw,c),u()}function l(d,f){var p=e.match(d);p&&(e=e.substring(p[0].length),p[0].replace(d,f),o=!1)}function s(){var d=e.indexOf("-->");d>=0&&(t.comment&&t.comment(e.substring(4,d)),e=e.substring(d+3),o=!1)}function u(){if(o){var d,f=e.indexOf("<");f>=0?(d=e.substring(0,f),e=e.substring(f)):(d=e,e=""),t.chars&&t.chars(d)}}function c(d,f,p,b){var x={},w=Ll(f),k=Gw.voids[w]||!!b;p.replace(Zw,S),k||n.push(w),t.start&&t.start(w,x,k);function S(v,_,y,C,I){y===void 0&&C===void 0&&I===void 0?x[_]=void 0:x[_]=Hw.decode(y||C||I||"")}}function h(d,f){var p,b=0,x=Ll(f);if(x)for(b=n.length-1;b>=0&&n[b]!==x;b--);if(b>=0){for(p=n.length-1;p>=b;p--)t.end&&t.end(n[p]);n.length=b}}}var Jw=Kw,Xw=Rc,Ao=Nc,Qw=Bw,eS=Pc;function tS(e,t){var n,r=t||{};return h(),{start:a,end:i,chars:s};function o(d){e.push(d)}function a(d,f,p){var b=Ao(d);if(n.ignoring){u(b);return}if((r.allowedTags||[]).indexOf(b)===-1){u(b);return}if(r.filter&&!r.filter({tag:b,attrs:f})){u(b);return}o("<"),o(b),Object.keys(f).forEach(x),o(p?"/>":">");function x(w){var k=f[w],S=(r.allowedClasses||{})[b]||[],v=(r.allowedAttributes||{})[b]||[],_,y=Ao(w);y==="class"&&v.indexOf(y)===-1?(k=k.split(" ").filter(C).join(" ").trim(),_=k.length):_=v.indexOf(y)!==-1&&(Qw.uris[y]!==!0||l(k)),_&&(o(" "),o(w),typeof k=="string"&&(o('="'),o(Xw.encode(k)),o('"')));function C(I){return S&&S.indexOf(I)!==-1}}}function i(d){var f=Ao(d),p=(r.allowedTags||[]).indexOf(f)!==-1;p&&n.ignoring===!1?(o("</"),o(f),o(">")):c(f)}function l(d){var f=d[0];if(f==="#"||f==="/")return!0;var p=d.indexOf(":");if(p===-1)return!0;var b=d.indexOf("?");if(b!==-1&&p>b)return!0;var x=d.indexOf("#");if(x!==-1&&p>x)return!0;return r.allowedSchemes.some(w);function w(k){return d.indexOf(k+":")===0}}function s(d){n.ignoring===!1&&o(r.transformText?r.transformText(d):d)}function u(d){eS.voids[d]||(n.ignoring===!1?n={ignoring:d,depth:1}:n.ignoring===d&&n.depth++)}function c(d){n.ignoring===d&&--n.depth<=0&&h()}function h(){n={ignoring:!1,depth:0}}}var nS=tS,rS={allowedAttributes:{a:["href","name","target","title","aria-label"],iframe:["allowfullscreen","frameborder","src"],img:["src","alt","title","aria-label"]},allowedClasses:{},allowedSchemes:["http","https","mailto"],allowedTags:["a","abbr","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","mark","ol","p","pre","section","span","strike","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],filter:null},oS=rS,aS=Mw,iS=Jw,lS=nS,Mc=oS;function Oc(e,t,n){var r=[],o=n===!0?t:aS({},Mc,t),a=lS(r,o);return iS(e,a),r.join("")}Oc.defaults=Mc;var sS=Oc;const cS=Ic(sS);function ei(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Jt=ei();function Lc(e){Jt=e}var Zt={exec:()=>null};function ln(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),o=t[r];return o||(o=e(r),t[r]=o),o}}function ce(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(o,a)=>{let i=typeof a=="string"?a:a.source;return i=i.replace(je.caret,"$1"),n=n.replace(o,i),r},getRegex:()=>new RegExp(n,t)};return r}var uS=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),je={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:ln(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:ln(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:ln(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:ln(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:ln(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:ln(e=>new RegExp(`^ {0,${e}}>`))},dS=/^(?:[ \t]*(?:\n|$))+/,hS=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,fS=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Qn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,pS=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ti=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,zc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,jc=ce(zc).replace(/bull/g,ti).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),gS=ce(zc).replace(/bull/g,ti).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ni=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,mS=/^[^\n]+/,ri=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,bS=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ri).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),xS=ce(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ti).getRegex(),eo="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",oi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,vS=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",oi).replace("tag",eo).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Bc=ce(ni).replace("hr",Qn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eo).getRegex(),kS=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Bc).getRegex(),ai={blockquote:kS,code:hS,def:bS,fences:fS,heading:pS,hr:Qn,html:vS,lheading:jc,list:xS,newline:dS,paragraph:Bc,table:Zt,text:mS},zl=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Qn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eo).getRegex(),wS={...ai,lheading:gS,table:zl,paragraph:ce(ni).replace("hr",Qn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",zl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eo).getRegex()},SS={...ai,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",oi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Zt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(ni).replace("hr",Qn).replace("heading",` *#{1,6} *[^
|
|
285
|
+
]`).replace("lheading",jc).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},$S=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,_S=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Dc=/^( {2,}|\\)\n(?!\s*$)/,CS=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,$n=/[\p{P}\p{S}]/u,to=/[\s\p{P}\p{S}]/u,ii=/[^\s\p{P}\p{S}]/u,AS=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,to).getRegex(),Fc=/(?!~)[\p{P}\p{S}]/u,yS=/(?!~)[\s\p{P}\p{S}]/u,IS=/(?:[^\s\p{P}\p{S}]|~)/u,RS=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uS?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Hc=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,TS=ce(Hc,"u").replace(/punct/g,$n).getRegex(),NS=ce(Hc,"u").replace(/punct/g,Fc).getRegex(),Gc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ES=ce(Gc,"gu").replace(/notPunctSpace/g,ii).replace(/punctSpace/g,to).replace(/punct/g,$n).getRegex(),PS=ce(Gc,"gu").replace(/notPunctSpace/g,IS).replace(/punctSpace/g,yS).replace(/punct/g,Fc).getRegex(),MS=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ii).replace(/punctSpace/g,to).replace(/punct/g,$n).getRegex(),OS=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,$n).getRegex(),LS="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",zS=ce(LS,"gu").replace(/notPunctSpace/g,ii).replace(/punctSpace/g,to).replace(/punct/g,$n).getRegex(),jS=ce(/\\(punct)/,"gu").replace(/punct/g,$n).getRegex(),BS=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),DS=ce(oi).replace("(?:-->|$)","-->").getRegex(),FS=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",DS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Dr=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,HS=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Dr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Uc=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Dr).replace("ref",ri).getRegex(),Wc=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",ri).getRegex(),GS=ce("reflink|nolink(?!\\()","g").replace("reflink",Uc).replace("nolink",Wc).getRegex(),jl=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,li={_backpedal:Zt,anyPunctuation:jS,autolink:BS,blockSkip:RS,br:Dc,code:_S,del:Zt,delLDelim:Zt,delRDelim:Zt,emStrongLDelim:TS,emStrongRDelimAst:ES,emStrongRDelimUnd:MS,escape:$S,link:HS,nolink:Wc,punctuation:AS,reflink:Uc,reflinkSearch:GS,tag:FS,text:CS,url:Zt},US={...li,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Dr).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Dr).getRegex()},ia={...li,emStrongRDelimAst:PS,emStrongLDelim:NS,delLDelim:OS,delRDelim:zS,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",jl).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",jl).getRegex()},WS={...ia,br:ce(Dc).replace("{2,}","*").getRegex(),text:ce(ia.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},gr={normal:ai,gfm:wS,pedantic:SS},Nn={normal:li,gfm:ia,breaks:WS,pedantic:US},ZS={"&":"&","<":"<",">":">",'"':""","'":"'"},Bl=e=>ZS[e];function wt(e,t){if(t){if(je.escapeTest.test(e))return e.replace(je.escapeReplace,Bl)}else if(je.escapeTestNoEncode.test(e))return e.replace(je.escapeReplaceNoEncode,Bl);return e}function Dl(e){try{e=encodeURI(e).replace(je.percentDecode,"%")}catch{return null}return e}function Fl(e,t){var a;let n=e.replace(je.findPipe,(i,l,s)=>{let u=!1,c=l;for(;--c>=0&&s[c]==="\\";)u=!u;return u?"|":" |"}),r=n.split(je.splitPipe),o=0;if(r[0].trim()||r.shift(),r.length>0&&!((a=r.at(-1))!=null&&a.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;o<r.length;o++)r[o]=r[o].trim().replace(je.slashPipe,"|");return r}function Ot(e,t,n){let r=e.length;if(r===0)return"";let o=0;for(;o<r&&e.charAt(r-o-1)===t;)o++;return e.slice(0,r-o)}function Hl(e){let t=e.split(`
|
|
286
|
+
`),n=t.length-1;for(;n>=0&&je.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
|
|
287
|
+
`)}function qS(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function VS(e,t=0){let n=t,r="";for(let o of e)if(o===" "){let a=4-n%4;r+=" ".repeat(a),n+=a}else r+=o,n++;return r}function Gl(e,t,n,r,o){let a=t.href,i=t.title||null,l=e[1].replace(o.other.outputLinkReplace,"$1");r.state.inLink=!0;let s={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:a,title:i,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,s}function YS(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let o=r[1];return t.split(`
|
|
288
|
+
`).map(a=>{let i=a.match(n.other.beginningSpace);if(i===null)return a;let[l]=i;return l.length>=o.length?a.slice(o.length):a}).join(`
|
|
289
|
+
`)}var Fr=class{constructor(e){pe(this,"options");pe(this,"rules");pe(this,"lexer");this.options=e||Jt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=this.options.pedantic?t[0]:Hl(t[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=YS(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Ot(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:Ot(t[0],`
|
|
290
|
+
`),depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ot(t[0],`
|
|
291
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Ot(t[0],`
|
|
292
|
+
`).split(`
|
|
293
|
+
`),r="",o="",a=[];for(;n.length>0;){let i=!1,l=[],s;for(s=0;s<n.length;s++)if(this.rules.other.blockquoteStart.test(n[s]))l.push(n[s]),i=!0;else if(!i)l.push(n[s]);else break;n=n.slice(s);let u=l.join(`
|
|
294
|
+
`),c=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
295
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
296
|
+
${u}`:u,o=o?`${o}
|
|
297
|
+
${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,a,!0),this.lexer.state.top=h,n.length===0)break;let d=a.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){let f=d,p=f.raw+`
|
|
298
|
+
`+n.join(`
|
|
299
|
+
`),b=this.blockquote(p);a[a.length-1]=b,r=r.substring(0,r.length-f.raw.length)+b.raw,o=o.substring(0,o.length-f.text.length)+b.text;break}else if((d==null?void 0:d.type)==="list"){let f=d,p=f.raw+`
|
|
300
|
+
`+n.join(`
|
|
301
|
+
`),b=this.list(p);a[a.length-1]=b,r=r.substring(0,r.length-d.raw.length)+b.raw,o=o.substring(0,o.length-f.raw.length)+b.raw,n=p.substring(a.at(-1).raw.length).split(`
|
|
302
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:a,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,o={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),i=!1;for(;e;){let s=!1,u="",c="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let h=VS(t[2].split(`
|
|
303
|
+
`,1)[0],t[1].length),d=e.split(`
|
|
304
|
+
`,1)[0],f=!h.trim(),p=0;if(this.options.pedantic?(p=2,c=h.trimStart()):f?p=t[1].length+1:(p=h.search(this.rules.other.nonSpaceChar),p=p>4?1:p,c=h.slice(p),p+=t[1].length),f&&this.rules.other.blankLine.test(d)&&(u+=d+`
|
|
305
|
+
`,e=e.substring(d.length+1),s=!0),!s){let b=this.rules.other.nextBulletRegex(p),x=this.rules.other.hrRegex(p),w=this.rules.other.fencesBeginRegex(p),k=this.rules.other.headingBeginRegex(p),S=this.rules.other.htmlBeginRegex(p),v=this.rules.other.blockquoteBeginRegex(p);for(;e;){let _=e.split(`
|
|
306
|
+
`,1)[0],y;if(d=_,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),y=d):y=d.replace(this.rules.other.tabCharGlobal," "),w.test(d)||k.test(d)||S.test(d)||v.test(d)||b.test(d)||x.test(d))break;if(y.search(this.rules.other.nonSpaceChar)>=p||!d.trim())c+=`
|
|
307
|
+
`+y.slice(p);else{if(f||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(h)||k.test(h)||x.test(h))break;c+=`
|
|
308
|
+
`+d}f=!d.trim(),u+=_+`
|
|
309
|
+
`,e=e.substring(_.length+1),h=y.slice(p)}}o.loose||(i?o.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(i=!0)),o.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),o.raw+=u}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let s of o.items){this.lexer.state.top=!1,s.tokens=this.lexer.blockTokens(s.text,[]);let u=s.tokens[0];if(s.task&&((u==null?void 0:u.type)==="text"||(u==null?void 0:u.type)==="paragraph")){s.text=s.text.replace(this.rules.other.listReplaceTask,""),u.raw=u.raw.replace(this.rules.other.listReplaceTask,""),u.text=u.text.replace(this.rules.other.listReplaceTask,"");for(let h=this.lexer.inlineQueue.length-1;h>=0;h--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[h].src)){this.lexer.inlineQueue[h].src=this.lexer.inlineQueue[h].src.replace(this.rules.other.listReplaceTask,"");break}let c=this.rules.other.listTaskCheckbox.exec(s.raw);if(c){let h={type:"checkbox",raw:c[0]+" ",checked:c[0]!=="[ ]"};s.checked=h.checked,o.loose?s.tokens[0]&&["paragraph","text"].includes(s.tokens[0].type)&&"tokens"in s.tokens[0]&&s.tokens[0].tokens?(s.tokens[0].raw=h.raw+s.tokens[0].raw,s.tokens[0].text=h.raw+s.tokens[0].text,s.tokens[0].tokens.unshift(h)):s.tokens.unshift({type:"paragraph",raw:h.raw,text:h.raw,tokens:[h]}):s.tokens.unshift(h)}}else s.task&&(s.task=!1);if(!o.loose){let c=s.tokens.filter(d=>d.type==="space"),h=c.length>0&&c.some(d=>this.rules.other.anyLine.test(d.raw));o.loose=h}}if(o.loose)for(let s of o.items){s.loose=!0;for(let u of s.tokens)u.type==="text"&&(u.type="paragraph")}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let n=Hl(t[0]);return{type:"html",block:!0,raw:n,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:n}}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:Ot(t[0],`
|
|
310
|
+
`),href:r,title:o}}}table(e){var i;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Fl(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(i=t[3])!=null&&i.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
311
|
+
`):[],a={type:"table",raw:Ot(t[0],`
|
|
312
|
+
`),header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<n.length;l++)a.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:a.align[l]});for(let l of o)a.rows.push(Fl(l,a.header.length).map((s,u)=>({text:s,tokens:this.lexer.inline(s),header:!1,align:a.align[u]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:Ot(t[0],`
|
|
313
|
+
`),depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
314
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let a=Ot(n.slice(0,-1),"\\");if((n.length-a.length)%2===0)return}else{let a=qS(t[2],"()");if(a===-2)return;if(a>-1){let i=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,i).trim(),t[3]=""}}let r=t[2],o="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Gl(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[r.toLowerCase()];if(!o){let a=n[0].charAt(0);return{type:"text",raw:a,text:a}}return Gl(n,o,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=0,u=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);(r=u.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(i=[...a].length,r[3]||r[4]){l+=i;continue}else if((r[5]||r[6])&&o%3&&!((o+i)%3)){s+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+s);let c=[...r[0]][0].length,h=e.slice(0,o+r.index+c+i);if(Math.min(o,i)%2){let f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}let d=h.slice(2,-2);return{type:"strong",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let o=[...r[0]].length-1,a,i,l=o,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+o);(r=s.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(i=[...a].length,i!==o))continue;if(r[3]||r[4]){l+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l);let u=[...r[0]][0].length,c=e.slice(0,o+r.index+u+i),h=c.slice(o,-o);return{type:"del",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let r,o;if(t[2]==="@")r=t[0],o="mailto:"+r;else{let a;do a=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(a!==t[0]);r=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},ut=class la{constructor(t){pe(this,"tokens");pe(this,"options");pe(this,"state");pe(this,"inlineQueue");pe(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Jt,this.options.tokenizer=this.options.tokenizer||new Fr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:je,block:gr.normal,inline:Nn.normal};this.options.pedantic?(n.block=gr.pedantic,n.inline=Nn.pedantic):this.options.gfm&&(n.block=gr.gfm,this.options.breaks?n.inline=Nn.breaks:n.inline=Nn.gfm),this.tokenizer.rules=n}static get rules(){return{block:gr,inline:Nn}}static lex(t,n){return new la(n).lex(t)}static lexInline(t,n){return new la(n).inlineTokens(t)}lex(t){t=t.replace(je.carriageReturn,`
|
|
315
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){var a,i,l;this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(je.tabCharGlobal," ").replace(je.spaceLine,""));let o=1/0;for(;t;){if(t.length<o)o=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let s;if((i=(a=this.options.extensions)==null?void 0:a.block)!=null&&i.some(c=>(s=c.call({lexer:this},t,n))?(t=t.substring(s.raw.length),n.push(s),!0):!1))continue;if(s=this.tokenizer.space(t)){t=t.substring(s.raw.length);let c=n.at(-1);s.raw.length===1&&c!==void 0?c.raw+=`
|
|
316
|
+
`:n.push(s);continue}if(s=this.tokenizer.code(t)){t=t.substring(s.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
317
|
+
`)?"":`
|
|
318
|
+
`)+s.raw,c.text+=`
|
|
319
|
+
`+s.text,this.inlineQueue.at(-1).src=c.text):n.push(s);continue}if(s=this.tokenizer.fences(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.heading(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.hr(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.blockquote(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.list(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.html(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.def(t)){t=t.substring(s.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
320
|
+
`)?"":`
|
|
321
|
+
`)+s.raw,c.text+=`
|
|
322
|
+
`+s.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},n.push(s));continue}if(s=this.tokenizer.table(t)){t=t.substring(s.raw.length),n.push(s);continue}if(s=this.tokenizer.lheading(t)){t=t.substring(s.raw.length),n.push(s);continue}let u=t;if((l=this.options.extensions)!=null&&l.startBlock){let c=1/0,h=t.slice(1),d;this.options.extensions.startBlock.forEach(f=>{d=f.call({lexer:this},h),typeof d=="number"&&d>=0&&(c=Math.min(c,d))}),c<1/0&&c>=0&&(u=t.substring(0,c+1))}if(this.state.top&&(s=this.tokenizer.paragraph(u))){let c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
|
|
323
|
+
`)?"":`
|
|
324
|
+
`)+s.raw,c.text+=`
|
|
325
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(s),r=u.length!==t.length,t=t.substring(s.raw.length);continue}if(s=this.tokenizer.text(t)){t=t.substring(s.raw.length);let c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
|
|
326
|
+
`)?"":`
|
|
327
|
+
`)+s.raw,c.text+=`
|
|
328
|
+
`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(s);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var u,c,h,d,f;this.tokenizer.lexer=this;let r=t,o=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)p.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,o.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)a=o[2]?o[2].length:0,r=r.slice(0,o.index+a)+"["+"a".repeat(o[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((c=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:c.call({lexer:this},r))??r;let i=!1,l="",s=1/0;for(;t;){if(t.length<s)s=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}i||(l=""),i=!1;let p;if((d=(h=this.options.extensions)==null?void 0:h.inline)!=null&&d.some(x=>(p=x.call({lexer:this},t,n))?(t=t.substring(p.raw.length),n.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let x=n.at(-1);p.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):n.push(p);continue}if(p=this.tokenizer.emStrong(t,r,l)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.del(t,r,l)){t=t.substring(p.raw.length),n.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),n.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),n.push(p);continue}let b=t;if((f=this.options.extensions)!=null&&f.startInline){let x=1/0,w=t.slice(1),k;this.options.extensions.startInline.forEach(S=>{k=S.call({lexer:this},w),typeof k=="number"&&k>=0&&(x=Math.min(x,k))}),x<1/0&&x>=0&&(b=t.substring(0,x+1))}if(p=this.tokenizer.inlineText(b)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(l=p.raw.slice(-1)),i=!0;let x=n.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):n.push(p);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return n}infiniteLoopError(t){let n="Infinite loop on byte: "+t;if(this.options.silent)console.error(n);else throw new Error(n)}},qn=class{constructor(e){pe(this,"options");pe(this,"parser");this.options=e||Jt}space(e){return""}code({text:e,lang:t,escaped:n}){var a;let r=(a=(t||"").match(je.notSpaceStart))==null?void 0:a[0],o=e.replace(je.endingNewline,"")+`
|
|
329
|
+
`;return r?'<pre><code class="language-'+wt(r)+'">'+(n?o:wt(o,!0))+`</code></pre>
|
|
330
|
+
`:"<pre><code>"+(n?o:wt(o,!0))+`</code></pre>
|
|
331
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
332
|
+
${this.parser.parse(e)}</blockquote>
|
|
333
|
+
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
334
|
+
`}hr(e){return`<hr>
|
|
335
|
+
`}list(e){let t=e.ordered,n=e.start,r="";for(let i=0;i<e.items.length;i++){let l=e.items[i];r+=this.listitem(l)}let o=t?"ol":"ul",a=t&&n!==1?' start="'+n+'"':"";return"<"+o+a+`>
|
|
336
|
+
`+r+"</"+o+`>
|
|
337
|
+
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
338
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
339
|
+
`}table(e){let t="",n="";for(let o=0;o<e.header.length;o++)n+=this.tablecell(e.header[o]);t+=this.tablerow({text:n});let r="";for(let o=0;o<e.rows.length;o++){let a=e.rows[o];n="";for(let i=0;i<a.length;i++)n+=this.tablecell(a[i]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
340
|
+
<thead>
|
|
341
|
+
`+t+`</thead>
|
|
342
|
+
`+r+`</table>
|
|
343
|
+
`}tablerow({text:e}){return`<tr>
|
|
344
|
+
${e}</tr>
|
|
345
|
+
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
346
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${wt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),o=Dl(e);if(o===null)return r;e=o;let a='<a href="'+e+'"';return t&&(a+=' title="'+wt(t)+'"'),a+=">"+r+"</a>",a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let o=Dl(e);if(o===null)return wt(n);e=o;let a=`<img src="${e}" alt="${wt(n)}"`;return t&&(a+=` title="${wt(t)}"`),a+=">",a}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:wt(e.text)}},si=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},dt=class sa{constructor(t){pe(this,"options");pe(this,"renderer");pe(this,"textRenderer");this.options=t||Jt,this.options.renderer=this.options.renderer||new qn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new si}static parse(t,n){return new sa(n).parse(t)}static parseInline(t,n){return new sa(n).parseInline(t)}parse(t){var r,o;this.renderer.parser=this;let n="";for(let a=0;a<t.length;a++){let i=t[a];if((o=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&o[i.type]){let s=i,u=this.options.extensions.renderers[s.type].call({parser:this},s);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=u||"";continue}}let l=i;switch(l.type){case"space":{n+=this.renderer.space(l);break}case"hr":{n+=this.renderer.hr(l);break}case"heading":{n+=this.renderer.heading(l);break}case"code":{n+=this.renderer.code(l);break}case"table":{n+=this.renderer.table(l);break}case"blockquote":{n+=this.renderer.blockquote(l);break}case"list":{n+=this.renderer.list(l);break}case"checkbox":{n+=this.renderer.checkbox(l);break}case"html":{n+=this.renderer.html(l);break}case"def":{n+=this.renderer.def(l);break}case"paragraph":{n+=this.renderer.paragraph(l);break}case"text":{n+=this.renderer.text(l);break}default:{let s='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){var o,a;this.renderer.parser=this;let r="";for(let i=0;i<t.length;i++){let l=t[i];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[l.type]){let u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=u||"";continue}}let s=l;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let u='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},kr,zn=(kr=class{constructor(e){pe(this,"options");pe(this,"block");this.options=e||Jt}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?ut.lex:ut.lexInline}provideParser(e=this.block){return e?dt.parse:dt.parseInline}},pe(kr,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),pe(kr,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),kr),KS=class{constructor(...e){pe(this,"defaults",ei());pe(this,"options",this.setOptions);pe(this,"parse",this.parseMarkdown(!0));pe(this,"parseInline",this.parseMarkdown(!1));pe(this,"Parser",dt);pe(this,"Renderer",qn);pe(this,"TextRenderer",si);pe(this,"Lexer",ut);pe(this,"Tokenizer",Fr);pe(this,"Hooks",zn);this.use(...e)}walkTokens(e,t){var r,o;let n=[];for(let a of e)switch(n=n.concat(t.call(this,a)),a.type){case"table":{let i=a;for(let l of i.header)n=n.concat(this.walkTokens(l.tokens,t));for(let l of i.rows)for(let s of l)n=n.concat(this.walkTokens(s.tokens,t));break}case"list":{let i=a;n=n.concat(this.walkTokens(i.items,t));break}default:{let i=a;(o=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&o[i.type]?this.defaults.extensions.childTokens[i.type].forEach(l=>{let s=i[l].flat(1/0);n=n.concat(this.walkTokens(s,t))}):i.tokens&&(n=n.concat(this.walkTokens(i.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let a=t.renderers[o.name];a?t.renderers[o.name]=function(...i){let l=o.renderer.apply(this,i);return l===!1&&(l=a.apply(this,i)),l}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=t[o.level];a?a.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),r.extensions=t),n.renderer){let o=this.defaults.renderer||new qn(this.defaults);for(let a in n.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let i=a,l=n.renderer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c||""}}r.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new Fr(this.defaults);for(let a in n.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let i=a,l=n.tokenizer[i],s=o[i];o[i]=(...u)=>{let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new zn;for(let a in n.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let i=a,l=n.hooks[i],s=o[i];zn.passThroughHooks.has(a)?o[i]=u=>{if(this.defaults.async&&zn.passThroughHooksRespectAsync.has(a))return(async()=>{let h=await l.call(o,u);return s.call(o,h)})();let c=l.call(o,u);return s.call(o,c)}:o[i]=(...u)=>{if(this.defaults.async)return(async()=>{let h=await l.apply(o,u);return h===!1&&(h=await s.apply(o,u)),h})();let c=l.apply(o,u);return c===!1&&(c=s.apply(o,u)),c}}r.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,a=n.walkTokens;r.walkTokens=function(i){let l=[];return l.push(a.call(this,i)),o&&(l=l.concat(o.call(this,i))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ut.lex(e,t??this.defaults)}parser(e,t){return dt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},o={...this.defaults,...r},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&r.async===!1)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let i=o.hooks?await o.hooks.preprocess(t):t,l=await(o.hooks?await o.hooks.provideLexer(e):e?ut.lex:ut.lexInline)(i,o),s=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(s,o.walkTokens));let u=await(o.hooks?await o.hooks.provideParser(e):e?dt.parse:dt.parseInline)(s,o);return o.hooks?await o.hooks.postprocess(u):u})().catch(a);try{o.hooks&&(t=o.hooks.preprocess(t));let i=(o.hooks?o.hooks.provideLexer(e):e?ut.lex:ut.lexInline)(t,o);o.hooks&&(i=o.hooks.processAllTokens(i)),o.walkTokens&&this.walkTokens(i,o.walkTokens);let l=(o.hooks?o.hooks.provideParser(e):e?dt.parse:dt.parseInline)(i,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(i){return a(i)}}}onError(e,t){return n=>{if(n.message+=`
|
|
347
|
+
Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+wt(n.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(n);throw n}}},qt=new KS;function fe(e,t){return qt.parse(e,t)}fe.options=fe.setOptions=function(e){return qt.setOptions(e),fe.defaults=qt.defaults,Lc(fe.defaults),fe};fe.getDefaults=ei;fe.defaults=Jt;fe.use=function(...e){return qt.use(...e),fe.defaults=qt.defaults,Lc(fe.defaults),fe};fe.walkTokens=function(e,t){return qt.walkTokens(e,t)};fe.parseInline=qt.parseInline;fe.Parser=dt;fe.parser=dt.parse;fe.Renderer=qn;fe.TextRenderer=si;fe.Lexer=ut;fe.lexer=ut.lex;fe.Tokenizer=Fr;fe.Hooks=zn;fe.parse=fe;fe.options;fe.setOptions;fe.use;fe.walkTokens;fe.parseInline;dt.parse;ut.lex;function JS(e,t){return"<pre><code>"+(r=>r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"))(e??"")+"</code></pre>"}const Ul=["a","article","b","blockquote","br","caption","code","del","details","div","em","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","li","main","ol","p","pre","section","span","strong","sub","summary","sup","table","tbody","td","th","thead","tr","u","ul"],yt=["style","title"];function XS(e){return cS(e,{allowedTags:Ul,allowedAttributes:{...Ul.reduce((t,n)=>(t[n]=[...yt],t),{}),code:["class",...yt],img:["src","srcset","alt","width","height",...yt],table:["width",...yt],td:["align","width",...yt],th:["align","width",...yt],a:["href","target",...yt],ol:["start",...yt],ul:["start",...yt]}})}class QS extends qn{table({header:t,rows:n}){const r=this.tablerow({text:t.map(a=>this.tablecell(a)).join("")}),o=n.map(a=>this.tablerow({text:a.map(i=>this.tablecell(i)).join("")})).join("");return`<table width="100%">
|
|
348
|
+
<thead>
|
|
349
|
+
${r}</thead>
|
|
350
|
+
<tbody>
|
|
351
|
+
${o}</tbody>
|
|
352
|
+
</table>`}link({href:t,title:n,tokens:r}){const o=this.parser.parseInline(r),a=n?` title="${n}"`:"";return`<a href="${t}"${a} target="_blank" rel="noopener noreferrer">${o}</a>`}code({text:t,lang:n}){return JS(t)}}function e$(e){return e.replace(/^---[\s\S]*?---\s*\n?/,"")}function t$(e){return e.replace(/\^([^^]+)\^/g,"<sup>$1</sup>").replace(new RegExp("(?<!~)~(?!~)([^~]+)(?<!~)~(?!~)","g"),"<sub>$1</sub>")}function n$(e){const t=e$(e),n=t$(t),r=fe.parse(n,{async:!1,breaks:!0,gfm:!0,pedantic:!1,silent:!1,renderer:new QS});if(typeof r!="string")throw new Error("marked.parse did not return a string");return XS(r)}function r$({markdown:e,...t}){const n=V.useMemo(()=>n$(e),[e]);return m.jsx("div",{...t,dangerouslySetInnerHTML:{__html:n}})}const o$=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),a$=$().regex(/^rgba?\([^\)]+\)$/i),i$=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),Wl=G([o$,a$,i$,le("transparent")]).nullable().optional(),l$=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),s$=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),c$=A({style:A({color:Wl,backgroundColor:Wl,fontSize:g().gte(0).optional().nullable(),fontWeight:T(["bold","normal",...Xn]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:l$,margin:s$}).optional().nullable(),props:A({markdown:$().optional().nullable(),html:$().optional().nullable()}).optional().nullable(),responsive:De}),u$={markdown:""};function d$(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function h$(e){return e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0}function f$({style:e,props:t}){const n={color:z(e==null?void 0:e.color),background:z(e==null?void 0:e.backgroundColor),fontSize:(e==null?void 0:e.fontSize)??void 0,fontWeight:(e==null?void 0:e.fontWeight)??void 0,textAlign:(e==null?void 0:e.textAlign)??void 0,padding:d$(e==null?void 0:e.padding),margin:h$(e==null?void 0:e.margin),wordBreak:"break-word",overflowWrap:"break-word"},r=(t==null?void 0:t.markdown)??u$.markdown,o=t==null?void 0:t.html,a=m.jsx("style",{children:".mdx-block ul,.mdx-block ol{margin-block-start:0;margin-block-end:0;padding-inline-start:revert}"});return o?m.jsxs("div",{className:"mdx-block",style:n,children:[a,m.jsx("div",{dangerouslySetInnerHTML:{__html:Jr(o)}})]}):m.jsxs("div",{className:"mdx-block",style:n,children:[a,m.jsx(r$,{markdown:r,style:n})]})}const p$=e=>{if(!e)return;const t=ft.find(n=>n.key===e);return(t==null?void 0:t.value)??e},g$=$().regex(/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/),m$=$().regex(/^rgba?\([^\)]+\)$/i),b$=$().regex(/^(linear-gradient|radial-gradient|repeating-linear-gradient)\(.+\)$/i),x$=le("transparent"),Zl=G([g$,m$,b$,x$]).nullable().optional(),v$=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),k$=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),w$=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,S$=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,$$=A({style:A({color:Zl,backgroundColor:Zl,fontSize:g().gte(0).optional().nullable(),fontFamily:$().optional().nullable(),fontWeight:T(["bold","normal",...Xn]).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),padding:v$,margin:k$}).optional().nullable(),props:A({text:$().optional().nullable()}).optional().nullable(),responsive:De}),_$={text:""};function C$({style:e,props:t}){const n={color:z(e==null?void 0:e.color),background:z(e==null?void 0:e.backgroundColor),fontSize:(e==null?void 0:e.fontSize)??void 0,fontFamily:p$(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:w$(e==null?void 0:e.padding)??0,margin:S$(e==null?void 0:e.margin)??0,wordBreak:"break-word",overflowWrap:"break-word"},r=Jr((t==null?void 0:t.text)??_$.text);return m.jsxs("div",{className:"quill-block ql-editor",style:{...n,maxWidth:"100%",boxSizing:"border-box"},children:[m.jsx("style",{children:".quill-block ul,.quill-block ol{margin:0.5em 0;padding-left:2.5em}.quill-block li:not(.ql-direction-rtl)::before{margin-left:-2.5em}.quill-block blockquote{border-left:4px solid #9ca3af;margin:0;padding:0.25em 0 0.25em 12px;font-style:italic;color:inherit}.quill-block *:not(blockquote)+blockquote{margin-top:0.75em}.quill-block blockquote+*:not(blockquote){margin-top:0.75em}.quill-block blockquote p{margin:0}.quill-block pre,.quill-block .ql-code-block-container,.quill-block .ql-code-block{background:#f3f4f6;border-radius:4px;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:0.9em;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%;box-sizing:border-box}.quill-block img{max-width:100%;height:auto;display:block}"}),m.jsx("div",{dangerouslySetInnerHTML:{__html:r}})]})}const ql=A({top:g(),bottom:g(),right:g(),left:g()}).optional().nullable(),A$=A({responsive:De,style:A({padding:ql,margin:ql,textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({demoId:$().default(""),iframeSrc:$().default(""),width:G([g(),$()]).optional().nullable(),height:G([g(),$()]).optional().nullable(),borderRadius:g().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable()}).optional().nullable()}),Vl=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,y$=(e,t)=>e==null||e===""?t:typeof e=="number"?`${e}px`:e,yo=1440,Io=830,I$=({style:e,props:t})=>{const{demoId:n,iframeSrc:r,width:o,borderRadius:a,borderColor:i,borderWidth:l}=t??{},s={padding:Vl(e==null?void 0:e.padding),margin:Vl(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0,width:"100%"};if(!n||!r)return m.jsx(m.Fragment,{});const u=(e==null?void 0:e.textAlign)==="left"?"flex-start":(e==null?void 0:e.textAlign)==="right"?"flex-end":"center";return m.jsx("div",{className:"demo-picker-block",style:{...s,display:"flex",justifyContent:u},children:m.jsx("div",{id:"demoAspect",style:{width:`var(--ahd-demo-width,${y$(o,"100%")})`,aspectRatio:`${yo} / ${Io}`,maxWidth:"100%",overflow:"hidden",borderRadius:`${a??10}px`,border:i?`${l??1}px solid ${i}`:"none"},children:m.jsx("div",{id:"demoScaler",style:{width:yo,height:Io,transformOrigin:"top left"},children:m.jsx("iframe",{src:r,style:{width:yo,height:Io,display:"block",border:"none"},allowFullScreen:!0,title:"Demo Preview"},r)})})})},Zc=Pg(()=>A({id:$().optional(),name:$().optional(),href:$().optional(),menuImage:$().optional(),children:oe(Zc).optional()})),Ro=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),R$=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),T$=A({menuId:$().default(""),useCustomMenu:L().default(!1),stickyNav:L().default(!1),stickyNavTablet:L().optional().nullable(),stickyNavMobile:L().optional().nullable(),position:T(["left","center","right"]).default("left"),orientation:T(["horizontal","vertical"]).default("horizontal"),menuItems:oe(Zc).optional().nullable(),startChildrenIds:oe($()).optional().nullable(),endChildrenIds:oe($()).optional().nullable(),layout:T(["menu-only","logo-menu","menu-cta","logo-menu-cta"]).default("menu-only"),backgroundColor:$().default("transparent"),textColor:$().default("#000000"),burgerDropdownBackgroundColor:$().optional().nullable(),submenuBackgroundColor:$().optional().nullable(),submenuRadius:g().optional().nullable(),submenuIconSize:g().optional().nullable(),submenuPadding:Ro,submenuItemPadding:Ro,submenuMinWidth:g().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),padding:$().default("8px 16px"),blockPadding:Ro,blockMargin:R$,gap:$().default("16px"),showIcons:L().default(!0),iconSize:$().default("24px")}),N$=A({style:A({}).passthrough().optional().nullable(),responsive:De,props:T$.optional().nullable()}),E$={left:"flex-start",center:"center",right:"flex-end"},qc=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,P$=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,M$=e=>e?e.left+e.right:0,O$=e=>!!e&&(e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")),ci=e=>O$(e)?{backgroundImage:e,backgroundColor:"transparent"}:{backgroundColor:e??void 0},L$=(e,t,n=!1,r,o)=>{const a=M$(o);return{...ci(e),width:`calc(100% - ${a}px)`,display:"flex",alignItems:"center",gap:"16px",padding:qc(r),margin:P$(o),justifyContent:n?"space-between":E$[t]||"flex-start"}},To=(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}),z$=(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"}),j$={position:"relative"},B$=(e,t,n,r,o,a,i,l)=>({display:"flex",alignItems:"center",gap:e&&t?"8px":"0",color:(l==null?void 0:l.textColor)??n,fontSize:r,fontWeight:(l==null?void 0:l.fontWeight)??o,fontFamily:i||void 0,padding:(l==null?void 0:l.padding)??a,textDecoration:"none",whiteSpace:"nowrap",...ci(l==null?void 0:l.backgroundColor),...l!=null&&l.borderColor?{borderStyle:"solid",borderColor:l.borderColor,borderWidth:l.borderWidth??1}:void 0,borderRadius:(l==null?void 0:l.borderRadius)!=null?`${l.borderRadius}px`:void 0}),D$=e=>({width:e,height:e,objectFit:"contain",flexShrink:0}),F$=e=>({paddingLeft:e===0?"0":"12px"}),H$=(e,t,n,r,o)=>({...ci(e),borderRadius:`${t}px`,border:n?`1px solid ${n}`:void 0,boxShadow:"0 12px 32px color-mix(in srgb, currentColor 18%, transparent)",padding:qc(r)??"8px",minWidth:`${o??260}px`}),G$=e=>({display:"inline-flex",alignItems:"center",marginLeft:"6px",width:`${e}px`,height:`${e}px`,flexShrink:0}),U$="M6 9l6 6 6-6",Vc={position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",clip:"rect(0 0 0 0)"},W$=e=>({color:e});function Z$(e,t){const n=`.ahd-menu-${e}`,r=(t==null?void 0:t.dropdownBackground)||"#fff",o=t!=null&&t.hasSubmenuItemPadding?"padding-left:32px!important":"padding:10px 16px 10px 32px!important",a=[`${n}{position:relative}`,`${n} .ahd-menu-toggle{position:absolute!important;opacity:0!important;pointer-events:none!important;width:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important}`,`${n} .ahd-menu-burger{display:none;width:20px;height:16px;cursor:pointer;flex-direction:column;justify-content:space-between;padding:0;margin:8px 12px;background:transparent;border:0}`,`${n} .ahd-menu-burger>span{display:block;height:2px;width:100%;background:currentColor;border-radius:2px;transition:transform .2s ease,opacity .2s ease}`,`${n} .ahd-menu-backdrop{display:none}`,`${n} .ahd-menu-submenu{position:absolute;top:100%;left:0;z-index:120;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .15s ease,transform .15s ease,visibility .15s;pointer-events:none}`,`${n} .ahd-menu-list>li:hover>.ahd-menu-submenu,${n} .ahd-menu-list>li:focus-within>.ahd-menu-submenu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}`,`${n} .ahd-menu-submenu .ahd-menu-submenu{top:0;left:100%;transform:translateX(4px)}`,`${n} .ahd-menu-submenu li:hover>.ahd-menu-submenu,${n} .ahd-menu-submenu li:focus-within>.ahd-menu-submenu{transform:translateX(0)}`,`${n} .ahd-menu-sublist{display:block!important;width:100%}`,`${n} .ahd-menu-sublist>li>a{display:flex;width:100%;white-space:normal!important;border-radius:6px}`,`${n} .ahd-menu-sublist>li>a:hover{background:color-mix(in srgb,currentColor 10%,transparent)}`,`${n} .ahd-menu-sub-toggle{position:absolute!important;opacity:0!important;width:0!important;height:0!important;margin:0!important;pointer-events:none!important}`,`${n} .ahd-menu-sub-caret{display:none}`,`${n} .ahd-menu-caret{transition:transform .15s ease}`,`${n} li:hover>.ahd-menu-item-row .ahd-menu-caret,${n} li:focus-within>.ahd-menu-item-row .ahd-menu-caret{transform:rotate(180deg)}`].join(""),i=[`${n}{flex-wrap:nowrap!important;align-items:center!important;min-height:48px}`,`${n} .ahd-menu-center{display:none!important}`,`${n} .ahd-menu-start{flex:0 0 auto!important}`,`${n} .ahd-menu-end{flex:0 0 auto!important;margin-left:auto!important}`,`${n} .ahd-menu-burger{display:flex!important;margin-left:0!important;margin-right:0!important;z-index:2}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-backdrop{display:block!important;position:fixed!important;inset:0!important;z-index:90;background:transparent;cursor:default;border:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center{display:flex!important;flex-direction:column!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;z-index:100;background:${r};box-shadow:0 6px 16px rgba(0,0,0,.12);width:100%!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list{flex-direction:column!important;width:100%!important;gap:0!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li{width:100%;border-top:1px solid rgba(0,0,0,.08)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-list>li>a{padding:12px 16px!important}`,`${n} .ahd-menu-submenu{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important;display:none;transition:none}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-submenu{display:block}`,`${n} .ahd-menu-submenu>*{box-shadow:none!important;border:0!important;border-radius:0!important;min-width:0!important;background:transparent!important;padding:0!important}`,`${n} .ahd-menu-submenu{box-shadow:inset 2px 0 0 color-mix(in srgb,currentColor 25%,transparent)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>a,${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li>.ahd-menu-item-row>.ahd-menu-item-label>a{${o}}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist .ahd-menu-sublist>li>a{padding-left:48px!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-center .ahd-menu-sublist>li+li{border-top:1px solid color-mix(in srgb,currentColor 12%,transparent)}`,`${n} .ahd-menu-sublist>li{width:100%}`,`${n} .ahd-menu-list>li>.ahd-menu-item-label{display:flex!important;flex:1 1 auto;min-width:0}`,`${n} .ahd-menu-item-row{display:flex;align-items:center;width:100%}`,`${n} .ahd-menu-sub-caret{display:flex!important;align-items:center;justify-content:center;width:44px;align-self:stretch;cursor:pointer;color:currentColor;flex:0 0 auto}`,`${n} .ahd-menu-sub-caret-icon{margin-left:0!important;transition:transform .15s ease}`,`${n} .ahd-menu-sub-toggle:checked~.ahd-menu-item-row .ahd-menu-sub-caret-icon{transform:rotate(180deg)}`,`${n} .ahd-menu-caret{display:none!important}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(1){transform:translateY(7px) rotate(45deg)}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(2){opacity:0}`,`${n} .ahd-menu-toggle:checked~.ahd-menu-burger>span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}`].join(""),l=`(max-width:${ze}px)`;return a+`@media ${l}{${i}}@container ahd-page ${l}{${i}}`}const q$=(e,t)=>{const n=!!t.stickyNav,r=t.stickyNavTablet??n,o=t.stickyNavMobile??r,a=l=>l?`.ahd-menu-sticky-${e}{position:sticky;top:0;z-index:50}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:sticky;top:0;z-index:50}`:`.ahd-menu-sticky-${e}{position:static}:where(.ahd-block-wrapper,[id]):has(> .ahd-menu-sticky-${e}){position:static}`;let i=n?a(!0):"";if(r!==n){const l=`(max-width:${ze}px)`;i+=`@media ${l}{${a(r)}}`,i+=`@container ahd-page ${l}{${a(r)}}`}if(o!==r){const l=`(max-width:${Be}px)`;i+=`@media ${l}{${a(o)}}`,i+=`@container ahd-page ${l}{${a(o)}}`}return i},V$=e=>{if(!e)return;const t=ft.find(n=>n.key===e);return(t==null?void 0:t.value)||e},ca=e=>t=>{t.stopPropagation(),t.preventDefault();const n=typeof document<"u"?document.getElementById(e):null;n&&(n.checked=!n.checked)},Yl=({size:e,className:t})=>m.jsx("span",{className:t,style:G$(e),"aria-hidden":"true",children:m.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:m.jsx("path",{d:U$})})}),ua=(e,t,n=0)=>{if(!e||e.length===0)return null;const{textColor:r,fontSize:o,fontWeight:a,padding:i,orientation:l,gap:s,showIcons:u,iconSize:c,toggleId:h,listId:d,fontFamily:f,menuKey:p,submenuBackground:b,submenuRadius:x,submenuBorderColor:w,submenuIconSize:k,submenuPadding:S,submenuItemPadding:v,submenuMinWidth:_}=t,y=n>0&&v?`${v.top}px ${v.right}px ${v.bottom}px ${v.left}px`:i;return m.jsx("ul",{id:n===0?d:void 0,className:n===0?"ahd-menu-list":"ahd-menu-sublist",style:z$(l,n,s),children:e.map((C,I)=>{const R=Array.isArray(C.children)?C.children:[],N=R.length>0,M=`ahd-submenu-${p}-${n}-${C.id||I}`,P=C.name||C.label||"",O=m.jsxs("a",{href:C.href||"#",style:B$(u,!!C.menuImage,r,o,a,y,f,C),children:[u&&C.menuImage&&m.jsx("img",{src:C.menuImage,alt:"","aria-hidden":"true",style:D$(c)}),P,N&&m.jsx(Yl,{size:k,className:"ahd-menu-caret"})]}),H=N?m.jsxs("span",{className:"ahd-menu-item-row",children:[m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:B=>B.stopPropagation(),children:O}),m.jsx("label",{htmlFor:M,className:"ahd-menu-sub-caret","aria-label":`Toggle ${P} submenu`,onClick:ca(M),children:m.jsx(Yl,{size:k,className:"ahd-menu-sub-caret-icon"})})]}):m.jsx("label",{htmlFor:h,className:"ahd-menu-item-label",style:{display:"contents"},onClick:B=>B.stopPropagation(),children:O});return m.jsxs("li",{style:j$,children:[N&&m.jsx("input",{type:"checkbox",id:M,className:"ahd-menu-sub-toggle","aria-hidden":"true",tabIndex:-1,style:Vc,onClick:B=>B.stopPropagation()}),H,N&&m.jsx("div",{className:"ahd-menu-submenu",style:F$(n),children:m.jsx("div",{style:H$(b,x,w,S,_),children:ua(R,{...t,orientation:"vertical"},n+1)})})]},C.id||I)})})},Y$=({props:e})=>{const{menuId:t,useCustomMenu:n=!1,stickyNav:r=!1,stickyNavTablet:o,stickyNavMobile:a,menuItems:i,startChildrenIds:l,endChildrenIds:s,layout:u="menu-only",position:c="left",orientation:h="horizontal",backgroundColor:d="transparent",textColor:f="#000000",burgerDropdownBackgroundColor:p,fontSize:b="14px",fontFamily:x,fontWeight:w="400",padding:k="8px 16px",blockPadding:S,blockMargin:v,gap:_="16px",showIcons:y=!0,iconSize:C="24px",borderColor:I,borderWidth:R,borderRadius:N,submenuBackgroundColor:M,submenuRadius:P,submenuIconSize:O,submenuPadding:H,submenuItemPadding:B,submenuMinWidth:Z,bare:F}=e??{},Y=Va(),J=Y(d)??d,te=Y(f)??f,X=Y(I),ae=Y(p),Ae=Y(M),ee=Y("#ffffff")??"#ffffff";if(!(Array.isArray(i)&&i.length>0)||!n&&!t)return m.jsx(m.Fragment,{});const ve=u==="logo-menu"||u==="logo-menu-cta",ue=u==="menu-cta"||u==="logo-menu-cta",q=ve||ue,K=c==="right"?"end":c==="center"?"center":"start",D=V.useMemo(()=>`c${Math.random().toString(36).slice(2,9)}`,[]),j=t||D,re=(F==null?void 0:F.toggleId)??`ahd-menu-toggle-${j}`,he=(F==null?void 0:F.listId)??`ahd-menu-list-${j}`,Ge=V$(x),Ne=F?F.toggleId.replace(/^ahd-menu-toggle-/,""):j,_e={textColor:te,fontSize:b,fontWeight:w,padding:k,orientation:h,gap:_,showIcons:y,iconSize:C,toggleId:re,listId:he,fontFamily:Ge,menuKey:Ne,submenuBackground:Ae||ae||(d!=="transparent"?J:ee),submenuRadius:P??8,submenuBorderColor:X??null,submenuIconSize:O??14,submenuPadding:H??null,submenuItemPadding:B??null,submenuMinWidth:Z??null};if(F)return m.jsx(m.Fragment,{children:ua(i,_e)});const Q=q$(j,{stickyNav:r,stickyNavTablet:o,stickyNavMobile:a}),ye=Z$(j,{dropdownBackground:ae??(d!=="transparent"?J:null),hasSubmenuItemPadding:!!B});return m.jsxs(m.Fragment,{children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:ye}},j),Q&&m.jsx("style",{dangerouslySetInnerHTML:{__html:Q}}),m.jsxs("nav",{className:`ahd-menu ahd-menu-${j} ahd-menu-sticky-${j}`,"data-block":"menu","data-layout":u,style:{...L$(J,c,q,S,v),...X?{borderStyle:"solid",borderColor:X,borderWidth:R?`${R.top??1}px ${R.right??1}px ${R.bottom??1}px ${R.left??1}px`:"1px"}:{},...N!=null?{borderRadius:typeof N=="number"?`${N}px`:`${(N==null?void 0:N.topLeft)??0}px ${(N==null?void 0:N.topRight)??0}px ${(N==null?void 0:N.bottomRight)??0}px ${(N==null?void 0:N.bottomLeft)??0}px`}:{}},"aria-label":"Main navigation",children:[m.jsx("input",{type:"checkbox",id:re,className:"ahd-menu-toggle",role:"switch","aria-label":"Toggle main menu","aria-controls":he,style:Vc,onClick:Ie=>Ie.stopPropagation()}),m.jsx("label",{htmlFor:re,className:"ahd-menu-backdrop","aria-hidden":"true",onClick:ca(re)}),ve&&m.jsx("div",{className:"ahd-menu-start",style:To("start"),children:(l??[]).map(Ie=>m.jsx(Te,{id:Ie},Ie))}),m.jsx("div",{className:"ahd-menu-center",style:To(K,q),children:ua(i,_e)}),ue&&m.jsx("div",{className:"ahd-menu-end",style:To("end"),children:(s??[]).map(Ie=>m.jsx(Te,{id:Ie},Ie))}),m.jsxs("label",{htmlFor:re,className:"ahd-menu-burger","aria-hidden":"true",style:W$(te),onClick:ca(re),children:[m.jsx("span",{}),m.jsx("span",{}),m.jsx("span",{})]})]})]})},K$=A({id:$().optional(),label:$().optional(),href:$().optional(),textColor:$().optional().nullable()}),J$=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),X$=A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),Q$=A({items:oe(K$).optional().nullable(),separator:T(["slash","chevron","dot","pipe","custom"]).default("chevron"),customSeparator:$().optional().nullable(),showHomeIcon:L().default(!1),homeHref:$().default("/"),collapseOnMobile:L().default(!0),currentItemLinked:L().default(!1),textColor:$().default("#595959"),currentItemColor:$().optional().nullable(),separatorColor:$().optional().nullable(),fontSize:$().default("14px"),fontFamily:$().optional().nullable(),fontWeight:$().default("400"),gap:$().default("8px"),blockPadding:J$,blockMargin:X$}),e2=A({style:A({}).passthrough().optional().nullable(),responsive:De,props:Q$.optional().nullable()}),No={slash:"/",chevron:"›",dot:"•",pipe:"|"};function t2(e,t){return e==="custom"?t||"›":e&&No[e]?No[e]:No.chevron}function n2(e){const t=`.ahd-breadcrumb-${e}`,n=[`${t} .ahd-breadcrumb-collapsible{display:none!important}`,`${t} .ahd-breadcrumb-ellipsis{display:flex!important}`].join(""),r=`(max-width:${Be}px)`;return`@media ${r}{${n}}@container ahd-page ${r}{${n}}`}const r2=e=>{if(!e)return;const t=ft.find(n=>n.key===e);return(t==null?void 0:t.value)||e},Yc=e=>e?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:void 0,o2=Yc,a2="M12 3.1 3 10.4V21h6v-6h6v6h6V10.4L12 3.1zm0 2.56 7 5.6V19h-2v-6H9v6H5v-7.74l7-5.6z",i2=({size:e,color:t})=>m.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24","aria-hidden":"true",style:{display:"block",flex:"0 0 auto"},children:m.jsx("path",{d:a2,fill:t})}),l2=({color:e,fontSize:t})=>m.jsx("span",{"aria-hidden":"true",style:{color:e,fontSize:t},children:"…"}),s2=({props:e,renderLabel:t})=>{const{items:n,separator:r="chevron",customSeparator:o,showHomeIcon:a=!1,homeHref:i="/",collapseOnMobile:l=!0,currentItemLinked:s=!1,textColor:u="#595959",currentItemColor:c,separatorColor:h,fontSize:d="14px",fontFamily:f,fontWeight:p="400",gap:b="8px",blockPadding:x,blockMargin:w}=e??{},k=Va(),S=k(u),v=k(c),_=k(h);if(!(Array.isArray(n)&&n.length>0))return m.jsx(m.Fragment,{});const C=r2(f),I=t2(r,o),R=n.length-1,N=V.useMemo(()=>`b${Math.random().toString(36).slice(2,9)}`,[]),M=l?n2(N):"",P=(O,H,B)=>{const Z=(B?v:null)||k(O.textColor)||S,F=!B||s,Y={color:Z,textDecoration:"none",whiteSpace:"nowrap"};return t?t({item:O,index:H,isLast:B,style:Y}):F?m.jsx("a",{href:O.href||"#",style:Y,"aria-current":B?"page":void 0,children:O.label||""}):m.jsx("span",{style:Y,"aria-current":"page",children:O.label||""})};return m.jsxs(m.Fragment,{children:[M&&m.jsx("style",{dangerouslySetInnerHTML:{__html:M}}),m.jsx("nav",{className:l?`ahd-breadcrumb ahd-breadcrumb-${N}`:"ahd-breadcrumb","aria-label":"Breadcrumb",style:{padding:Yc(x),margin:o2(w)},children:m.jsxs("ol",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",listStyle:"none",margin:0,padding:0,gap:b,fontSize:d,fontFamily:C,fontWeight:p},children:[a&&m.jsxs("li",{className:"ahd-breadcrumb-home",style:{display:"flex",alignItems:"center",gap:b},children:[m.jsx("a",{href:i||"/",style:{display:"flex",color:S},children:m.jsx(i2,{size:parseInt(d,10)||14,color:S})}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]}),n.map((O,H)=>{const B=H===R,Z=l&&H!==0&&!B;return m.jsxs("li",{className:Z?"ahd-breadcrumb-collapsible":void 0,style:{display:"flex",alignItems:"center",gap:b},children:[P(O,H,B),!B&&m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]},O.id||H)}),l&&n.length>2&&m.jsxs("li",{className:"ahd-breadcrumb-ellipsis",style:{display:"none",alignItems:"center",gap:b},children:[m.jsx(l2,{color:S,fontSize:d}),m.jsx("span",{"aria-hidden":"true",style:{color:_||S},children:I})]})]})})]})},c2=A({style:A({}).passthrough().optional().nullable(),props:A({formId:$().default(""),formName:$().default(""),iframeSrc:$().default(""),width:$().default("100%"),height:$().default("500px"),heightTablet:$().optional(),heightMobile:$().optional(),autoHeight:L().default(!1),alignment:T(["left","center","right"]).default("left")}).optional().nullable()}),u2=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)}`},d2=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},h2=e=>{if(!e)return;if(typeof e=="string")return e;const{top:t=0,right:n=0,bottom:r=0,left:o=0}=e;return`${t}px ${n}px ${r}px ${o}px`},f2=({props:e,style:t})=>{var S,v;const{formId:n,iframeSrc:r,width:o,height:a,heightTablet:i,heightMobile:l,autoHeight:s=!1,alignment:u="left",formName:c}=e??{};if(!n||!r)return m.jsx(m.Fragment,{});const h=u==="center"?"center":u==="right"?"flex-end":"flex-start",d=t??{},f=(((S=d.margin)==null?void 0:S.left)||0)+(((v=d.margin)==null?void 0:v.right)||0),p=q0(d.borderRadius),b={display:"flex",justifyContent:h,width:`calc(100% - ${f}px)`,padding:d2(d.padding),margin:h2(d.margin),backgroundColor:d.backgroundColor||void 0,borderRadius:p},x=u2(`${n}|${r??""}`),w=!s&&(i||l)?`
|
|
353
|
+
${i?`${Kt} { #${x} { height: ${i} !important; } }`:""}
|
|
354
|
+
${l?`${He} { #${x} { height: ${l} !important; } }`:""}
|
|
355
|
+
`:"",k=s?`
|
|
342
356
|
(function(){
|
|
343
357
|
var el = document.getElementById(${JSON.stringify(x)});
|
|
344
358
|
if (!el) return;
|
|
@@ -351,20 +365,20 @@ ${y}
|
|
|
351
365
|
el.style.height = Math.ceil(h) + 'px';
|
|
352
366
|
});
|
|
353
367
|
})();
|
|
354
|
-
`:"";return
|
|
368
|
+
`:"";return m.jsxs(m.Fragment,{children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),m.jsx("div",{style:b,children:m.jsx("div",{style:{width:o||"100%",borderRadius:p,overflow:p?"hidden":void 0},children:m.jsx("iframe",{id:x,src:r,title:c||"Form",style:{width:"100%",height:s?"auto":a||"500px",border:"none",display:"block"},scrolling:s?"no":void 0,loading:"lazy"})})}),k&&m.jsx("script",{dangerouslySetInnerHTML:{__html:k}})]})},p2=A({style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({text:$().optional().nullable(),targetId:$().optional().nullable(),backgroundColor:$().optional().nullable(),textColor:$().optional().nullable(),fontSize:g().optional().nullable(),borderRadius:g().optional().nullable(),paddingX:g().optional().nullable(),paddingY:g().optional().nullable(),marginX:g().optional().nullable(),marginY:g().optional().nullable(),displayMode:T(["focus-only","always-visible"]).optional().nullable()}).optional().nullable()}),vt={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 g2=0;function Kc({style:e,props:t}){var w,k;const n=((w=t==null?void 0:t.text)==null?void 0:w.trim())||vt.text,r=((k=t==null?void 0:t.targetId)==null?void 0:k.trim())||vt.targetId,o=(t==null?void 0:t.backgroundColor)??vt.backgroundColor,a=(t==null?void 0:t.textColor)??vt.textColor,i=(t==null?void 0:t.fontSize)??vt.fontSize,l=(t==null?void 0:t.borderRadius)??vt.borderRadius,s=(t==null?void 0:t.paddingX)??vt.paddingX,u=(t==null?void 0:t.paddingY)??vt.paddingY,c=(t==null?void 0:t.marginX)??vt.marginX,h=(t==null?void 0:t.marginY)??vt.marginY,d="always-visible",f=`skip-link-${++g2}`,p={padding:Xa(e==null?void 0:e.padding),margin:Qa(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b=`
|
|
355
369
|
display:inline-block;
|
|
356
|
-
background:${
|
|
357
|
-
color:${
|
|
358
|
-
font-size:${
|
|
370
|
+
background:${o};
|
|
371
|
+
color:${a};
|
|
372
|
+
font-size:${i}px;
|
|
359
373
|
font-weight:600;
|
|
360
374
|
border-radius:${l}px;
|
|
361
|
-
padding:${
|
|
362
|
-
margin:${h}px ${
|
|
375
|
+
padding:${u}px ${s}px;
|
|
376
|
+
margin:${h}px ${c}px;
|
|
363
377
|
text-decoration:none;
|
|
364
378
|
line-height:1.2;
|
|
365
379
|
font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
|
|
366
380
|
`,x=`.${f}{${b}}
|
|
367
|
-
.${f}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return
|
|
381
|
+
.${f}:focus-visible{outline:3px solid #000;outline-offset:3px}`;return m.jsxs("div",{className:"skip-link-block",style:p,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x}}),m.jsx("a",{href:`#${r}`,className:f,"data-skip-link":d,children:n})]})}const m2=A({style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable()}).optional().nullable(),props:A({renderMode:T(["inline","floating"]).optional().nullable(),position:T(["top-right","top-left","bottom-right","bottom-left"]).optional().nullable(),triggerLabel:$().optional().nullable(),triggerText:$().optional().nullable(),showLabelText:L().optional().nullable(),triggerBg:$().optional().nullable(),triggerColor:$().optional().nullable(),triggerFontSize:g().optional().nullable(),triggerBorderRadius:g().optional().nullable(),triggerPadding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),triggerMargin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),icon:T(["accessibility","universal-access","person","eye","info"]).optional().nullable(),features:A({contrast:L().optional().nullable(),invert:L().optional().nullable(),saturation:L().optional().nullable(),highlightLinks:L().optional().nullable(),textSize:L().optional().nullable(),textSpacing:L().optional().nullable(),lineHeight:L().optional().nullable(),hideImages:L().optional().nullable(),bigCursor:L().optional().nullable(),reset:L().optional().nullable()}).optional().nullable()}).optional().nullable()}),kt={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"},Eo={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 b2(e){return e&&Eo[e]?Eo[e]:Eo.accessibility}function x2(e){return`<svg viewBox="0 0 24 24" aria-hidden="true"><path d="${b2(e)}"/></svg>`}const v2={contrast:!0,invert:!0,saturation:!0,highlightLinks:!0,textSize:!0,textSpacing:!0,lineHeight:!0,hideImages:!0,bigCursor:!0,reset:!0};function k2(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 Jc(e){const{containerPos:t}=k2(e.position);return`
|
|
368
382
|
/* Accessibility Tools widget */
|
|
369
383
|
.ahd-a11y-widget{position:relative;display:inline-block}
|
|
370
384
|
.ahd-a11y-widget.ahd-a11y-floating{position:fixed;${t}z-index:99999}
|
|
@@ -396,15 +410,15 @@ html.a11y-spacing,html.a11y-spacing *{letter-spacing:0.12em !important;word-spac
|
|
|
396
410
|
html.a11y-lineheight,html.a11y-lineheight *{line-height:1.8 !important}
|
|
397
411
|
html.a11y-hide-images img,html.a11y-hide-images picture,html.a11y-hide-images video{visibility:hidden !important}
|
|
398
412
|
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}
|
|
399
|
-
`.trim()}function
|
|
413
|
+
`.trim()}function Xc(e){const t={...v2,...e.features??{}},n=(h,d)=>`<button type="button" class="ahd-a11y-btn" data-a11y="${h}" aria-pressed="false">${d}</button>`,r=t.contrast||t.invert||t.saturation?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Color & Contrast</div><div class="ahd-a11y-row">${[t.contrast?n("contrast","High contrast"):"",t.invert?n("invert","Invert colors"):"",t.saturation?n("desat","Grayscale"):""].filter(Boolean).join("")}</div></div>`:"",o=t.textSize||t.textSpacing||t.lineHeight?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Text</div><div class="ahd-a11y-row">${[t.textSize?n("text-sm","A-"):"",t.textSize?n("text-lg","A+"):"",t.textSize?n("text-xl","A++"):"",t.textSpacing?n("spacing","Spacing"):"",t.lineHeight?n("lineheight","Line height"):"",t.highlightLinks?n("highlight-links","Highlight links"):""].filter(Boolean).join("")}</div></div>`:"",a=t.hideImages||t.bigCursor?`<div class="ahd-a11y-group"><div class="ahd-a11y-group-title">Other</div><div class="ahd-a11y-row">${[t.hideImages?n("hide-images","Hide images"):"",t.bigCursor?n("big-cursor","Big cursor"):""].filter(Boolean).join("")}</div></div>`:"",i=t.reset?'<button type="button" class="ahd-a11y-reset" data-a11y-reset>Reset all</button>':"",l=e.renderMode==="floating"?"floating":"inline",s=x2(e.icon??"accessibility"),u=V0(e.triggerText,e.showLabelText!==!1,"Accessibility"),c=typeof e.triggerLabel=="string"&&e.triggerLabel.trim()||"Accessibility tools";return`
|
|
400
414
|
<div class="ahd-a11y-widget ahd-a11y-${l}">
|
|
401
|
-
<button type="button" class="ahd-a11y-trigger" aria-label="${
|
|
415
|
+
<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>
|
|
402
416
|
<div class="ahd-a11y-panel" id="ahd-a11y-panel" role="dialog" aria-label="Accessibility tools" aria-hidden="true" data-open="false">
|
|
403
417
|
<h2>Accessibility Tools</h2>
|
|
404
|
-
${
|
|
418
|
+
${r}${o}${a}${i}
|
|
405
419
|
</div>
|
|
406
420
|
</div>
|
|
407
|
-
`.trim()}function
|
|
421
|
+
`.trim()}function Qc(){return`
|
|
408
422
|
(function(){
|
|
409
423
|
var STORAGE_KEY='ahdA11yPrefs';
|
|
410
424
|
// Classes that are mutually exclusive within their group
|
|
@@ -512,20 +526,74 @@ html.a11y-big-cursor,html.a11y-big-cursor *{cursor:url('data:image/svg+xml;utf8,
|
|
|
512
526
|
init();
|
|
513
527
|
}
|
|
514
528
|
})();
|
|
515
|
-
`.trim()}function
|
|
529
|
+
`.trim()}function eu({style:e,props:t}){const n=(t==null?void 0:t.renderMode)??kt.renderMode,r=(t==null?void 0:t.position)??kt.position,o=(t==null?void 0:t.features)??void 0,a=(t==null?void 0:t.triggerBg)??kt.triggerBg,i=(t==null?void 0:t.triggerColor)??kt.triggerColor,l=(t==null?void 0:t.triggerLabel)??kt.triggerLabel,s=(t==null?void 0:t.showLabelText)!==!1,u=(t==null?void 0:t.triggerFontSize)??kt.triggerFontSize,c=(t==null?void 0:t.triggerBorderRadius)??kt.triggerBorderRadius,h=(t==null?void 0:t.triggerPadding)??kt.triggerPadding,d=(t==null?void 0:t.triggerMargin)??kt.triggerMargin,f=(t==null?void 0:t.icon)??kt.icon,p={padding:Xa(e==null?void 0:e.padding),margin:Qa(e==null?void 0:e.margin),textAlign:(e==null?void 0:e.textAlign)??void 0},b={position:r,features:o,renderMode:n,triggerText:t==null?void 0:t.triggerText,showLabelText:s,icon:f,triggerLabel:l},x=Jc(b),w=`.ahd-a11y-trigger{background:${a};color:${i};font-size:${u}px;border-radius:${c}px;padding:${h.top}px ${h.right}px ${h.bottom}px ${h.left}px};margin:${d.top}px ${d.right}px ${d.bottom}px ${d.left}px}`,k=Xc(b),S=Qc();return m.jsxs("div",{className:"accessibility-tools-block",style:p,"data-a11y-instance":"1",children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:x+w}}),m.jsx("div",{dangerouslySetInnerHTML:{__html:k}}),m.jsx("script",{dangerouslySetInnerHTML:{__html:S}}),m.jsx("span",{"aria-hidden":"true",style:{display:"none"},children:l})]})}const w2=A({style:A({}).passthrough().optional().nullable(),props:A({bannerId:$().default(""),bannerName:$().optional().nullable(),contentDocument:xn($(),Un()).optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),S2=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},$2=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},_2=({props:e})=>{const{bannerId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?n&&n.root?m.jsx("div",{className:"app-banner-picker-block",style:{...S2(r),...$2(o)},children:m.jsx(Kn,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{}):m.jsx(m.Fragment,{})},C2=A({style:A({}).passthrough().optional().nullable(),props:A({faqGroupId:$().default(""),faqGroupName:$().optional().nullable(),contentDocument:xn($(),Un()).optional().nullable(),padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable()}).optional().nullable()}),A2=e=>e?{paddingTop:e.top,paddingRight:e.right,paddingBottom:e.bottom,paddingLeft:e.left}:{},y2=e=>e?{marginTop:e.top,marginRight:e.right,marginBottom:e.bottom,marginLeft:e.left}:{},I2=({props:e})=>{const{faqGroupId:t,contentDocument:n,padding:r,margin:o}=e??{};return t?!n||!n.root?m.jsx(m.Fragment,{}):m.jsx("div",{className:"faq-picker-block",style:{...A2(r),...y2(o)},children:m.jsx(Kn,{document:n,rootBlockId:"root"})}):m.jsx(m.Fragment,{})},R2=A({responsive:De,style:A({padding:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),margin:A({top:g(),right:g(),bottom:g(),left:g()}).optional().nullable(),textAlign:T(["left","center","right"]).optional().nullable(),tableAlign:T(["left","center","right"]).optional().nullable(),fontSize:g().optional().nullable(),fontFamily:$().optional().nullable(),color:$().optional().nullable(),backgroundColor:$().optional().nullable(),borderColor:$().optional().nullable(),borderWidth:g().optional().nullable(),cellPadding:g().optional().nullable(),headerBackground:$().optional().nullable(),headerColor:$().optional().nullable(),stripedRowColor:$().optional().nullable(),stripedColColor:$().optional().nullable()}).optional().nullable(),props:A({rows:g().int().min(1).max(50).optional().nullable(),columns:g().int().min(1).max(20).optional().nullable(),hasHeader:L().optional().nullable(),cells:oe($()).optional().nullable(),caption:$().optional().nullable(),width:$().optional().nullable(),enableScroll:L().optional().nullable(),enableScrollTablet:L().optional().nullable(),enableScrollMobile:L().optional().nullable()}).optional().nullable()}),ct={rows:3,columns:3,hasHeader:!0,borderColor:"#e5e7eb",borderWidth:2,cellPadding:8,headerBackground:"#f3f4f6",headerColor:"#111827",color:"#262626",fontSize:14,stripedRowColor:"#F8F6F6"};function T2(e){if(!e)return;const t=ft.find(n=>n.key===e);return(t==null?void 0:t.value)??e}function tu(e){return e?e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient"):!1}function mr(e){return e?tu(e)?`background: ${e} !important; background-color: transparent !important;`:`background-color: ${e} !important;`:""}function Po(e){return e?tu(e)?[`background-image: ${e};`,"-webkit-background-clip: text;","background-clip: text;","-webkit-text-fill-color: transparent;","color: transparent;"].join(" "):`color: ${e};`:""}function N2({style:e,props:t,renderCell:n}){const r=Math.max(1,Math.min(50,(t==null?void 0:t.rows)??ct.rows)),o=Math.max(1,Math.min(20,(t==null?void 0:t.columns)??ct.columns)),a=(t==null?void 0:t.hasHeader)??ct.hasHeader,i=(t==null?void 0:t.cells)??[],l=r*o,s=i.length===l?i:Array.from({length:l},(q,K)=>i[K]??""),u=z((e==null?void 0:e.borderColor)??ct.borderColor),c=(e==null?void 0:e.borderWidth)??ct.borderWidth,h=(e==null?void 0:e.cellPadding)??ct.cellPadding,d=z((e==null?void 0:e.headerBackground)??ct.headerBackground),f=z((e==null?void 0:e.headerColor)??ct.headerColor),p=z((e==null?void 0:e.color)??ct.color),b=(e==null?void 0:e.fontSize)??ct.fontSize,x=z((e==null?void 0:e.backgroundColor)??null),w=z((e==null?void 0:e.stripedRowColor)===void 0?ct.stripedRowColor:e.stripedRowColor),k=z((e==null?void 0:e.stripedColColor)??null),S=`ahd-table-${V.useId().replace(/:/g,"")}`,v=(t==null?void 0:t.width)||"100%",_=v!=="100%",y={padding:Xa(e==null?void 0:e.padding),margin:Qa(e==null?void 0:e.margin),textAlign:_?(e==null?void 0:e.tableAlign)??"left":void 0,width:0,minWidth:"100%",maxWidth:"100%",height:"fit-content",boxSizing:"border-box"},C=T2(e==null?void 0:e.fontFamily),I={borderCollapse:"collapse",width:"100%",fontSize:b},R={display:_?"inline-block":"block",width:v,maxWidth:"100%",verticalAlign:"top",overflowX:"auto",overflowY:"hidden",WebkitOverflowScrolling:"touch",height:"fit-content"},N={border:`${c}px solid ${u}`,padding:h,verticalAlign:"top"},M={...N,fontWeight:600,textAlign:(e==null?void 0:e.textAlign)??"left"},P=C?`.${S}, .${S} * { font-family: ${C} !important; }`:"",O=`${S}-scroll`,H=(t==null?void 0:t.enableScroll)??!1,B=(t==null?void 0:t.enableScrollTablet)??H,Z=(t==null?void 0:t.enableScrollMobile)??H,F=q=>q?`.${O} > .${S} { table-layout: auto; width: max-content !important; min-width: 100%; max-width: none; }`:`.${O} > .${S} { table-layout: fixed; width: 100% !important; max-width: 100%; }
|
|
530
|
+
.${O} > .${S} .ahd-table-cell-text { overflow-wrap: anywhere; }`,J=[F(H),B!==H?`@media (max-width: 1024px) { ${F(B)} }
|
|
531
|
+
@container ahd-page (max-width: 1024px) { ${F(B)} }`:"",Z!==B?`@media (max-width: 640px) { ${F(Z)} }
|
|
532
|
+
@container ahd-page (max-width: 640px) { ${F(Z)} }`:""].filter(Boolean).join(`
|
|
533
|
+
`),te=`
|
|
534
|
+
.${O} {
|
|
535
|
+
overflow-x: auto;
|
|
536
|
+
-webkit-overflow-scrolling: touch;
|
|
537
|
+
scrollbar-width: thin;
|
|
538
|
+
scrollbar-color: #C4C4C4 transparent;
|
|
539
|
+
}
|
|
540
|
+
.${O}::-webkit-scrollbar {
|
|
541
|
+
width: 6px;
|
|
542
|
+
height: 6px;
|
|
543
|
+
background: transparent;
|
|
544
|
+
}
|
|
545
|
+
.${O}::-webkit-scrollbar-track {
|
|
546
|
+
background: transparent;
|
|
547
|
+
border: 0;
|
|
548
|
+
box-shadow: none;
|
|
549
|
+
}
|
|
550
|
+
/* Kill the stepper arrows and the corner square. Without these the
|
|
551
|
+
platform default chrome (arrow buttons at both ends of the track) still
|
|
552
|
+
paints around the styled thumb. */
|
|
553
|
+
.${O}::-webkit-scrollbar-button {
|
|
554
|
+
display: none;
|
|
555
|
+
width: 0;
|
|
556
|
+
height: 0;
|
|
557
|
+
}
|
|
558
|
+
.${O}::-webkit-scrollbar-corner { background: transparent; }
|
|
559
|
+
.${O}::-webkit-scrollbar-thumb {
|
|
560
|
+
background-color: #C4C4C4;
|
|
561
|
+
border-radius: 4px;
|
|
562
|
+
/* 1px (not the app shell's 2px): on a 6px track a 2px inset on each side
|
|
563
|
+
would leave a 2px sliver of visible thumb. */
|
|
564
|
+
border: 1px solid transparent;
|
|
565
|
+
background-clip: content-box;
|
|
566
|
+
}
|
|
567
|
+
.${O}::-webkit-scrollbar-thumb:hover {
|
|
568
|
+
background-color: #A0A0A0;
|
|
569
|
+
background-clip: content-box;
|
|
570
|
+
}
|
|
571
|
+
${J}
|
|
572
|
+
`,X=w?`.${S} > tbody > tr:nth-child(even) > td { ${mr(w)} }`:"",ae=k?`.${S} > tbody > tr > td:nth-child(even) { ${mr(k)} }`:"",Ae=`
|
|
573
|
+
.${S} { ${mr(x)} }
|
|
574
|
+
${P}
|
|
575
|
+
.${S} > tbody > tr > td > .ahd-table-cell-text { ${Po(p)} display: block; }
|
|
576
|
+
.${S} > thead > tr > th { ${mr(d)} }
|
|
577
|
+
.${S} > thead > tr > th > .ahd-table-cell-text { ${Po(f)} display: block; }
|
|
578
|
+
.${S} > caption > .ahd-table-cell-text { ${Po(p)} display: block; }
|
|
579
|
+
${X}
|
|
580
|
+
${ae}
|
|
581
|
+
${te}
|
|
582
|
+
`,ee=Array.from({length:r},(q,K)=>K),me=Array.from({length:o},(q,K)=>K),ve=q=>q.includes("<"),ue=(q,K,D,j)=>n?n({row:q,col:K,value:D,isHeader:j}):ve(D)?m.jsx("span",{dangerouslySetInnerHTML:{__html:D}}):D.split(`
|
|
583
|
+
`).map((re,he,Ge)=>m.jsxs(V.Fragment,{children:[re,he<Ge.length-1?m.jsx("br",{}):null]},he));return m.jsxs("div",{className:"table-block",style:y,children:[m.jsx("style",{dangerouslySetInnerHTML:{__html:Ae}}),m.jsx("div",{className:O,style:R,children:m.jsxs("table",{className:S,style:I,role:"table",children:[t!=null&&t.caption?m.jsx("caption",{style:{captionSide:"top",textAlign:"left",padding:"4px 0",fontSize:b-1},children:m.jsx("div",{className:"ahd-table-cell-text",children:t.caption})}):null,a?m.jsx("thead",{children:m.jsx("tr",{children:me.map(q=>m.jsx("th",{scope:"col",style:M,children:m.jsx("div",{className:"ahd-table-cell-text",children:ue(0,q,s[q]??"",!0)})},q))})}):null,m.jsx("tbody",{children:ee.slice(a?1:0).map(q=>m.jsx("tr",{children:me.map(K=>m.jsx("td",{style:N,children:m.jsx("div",{className:"ahd-table-cell-text",children:ue(q,K,s[q*o+K]??"",!1)})},K))},q))})]})})]})}var da={exports:{}},ha={exports:{}},tt={},xe={};xe.__esModule=!0;xe.extend=nu;xe.indexOf=L2;xe.escapeExpression=z2;xe.isEmpty=j2;xe.createFrame=B2;xe.blockParams=D2;xe.appendContextPath=F2;var E2={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},P2=/[&<>"'`=]/g,M2=/[&<>"'`=]/;function O2(e){return E2[e]}function nu(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 ui=Object.prototype.toString;xe.toString=ui;var fa=function(t){return typeof t=="function"};fa(/x/)&&(xe.isFunction=fa=function(e){return typeof e=="function"&&ui.call(e)==="[object Function]"});xe.isFunction=fa;var ru=Array.isArray||function(e){return e&&typeof e=="object"?ui.call(e)==="[object Array]":!1};xe.isArray=ru;function L2(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function z2(e){if(typeof e!="string"){if(e&&e.toHTML)return e.toHTML();if(e==null)return"";if(!e)return e+"";e=""+e}return M2.test(e)?e.replace(P2,O2):e}function j2(e){return!e&&e!==0?!0:!!(ru(e)&&e.length===0)}function B2(e){var t=nu({},e);return t._parent=e,t}function D2(e,t){return e.path=t,e}function F2(e,t){return(e?e+".":"")+t}var pa={exports:{}};(function(e,t){t.__esModule=!0;var n=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function r(o,a){var i=a&&a.loc,l=void 0,s=void 0,u=void 0,c=void 0;i&&(l=i.start.line,s=i.end.line,u=i.start.column,c=i.end.column,o+=" - "+l+":"+u);for(var h=Error.prototype.constructor.call(this,o),d=0;d<n.length;d++)this[n[d]]=h[n[d]];Error.captureStackTrace&&Error.captureStackTrace(this,r);try{i&&(this.lineNumber=l,this.endLineNumber=s,Object.defineProperty?(Object.defineProperty(this,"column",{value:u,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=u,this.endColumn=c))}catch{}}r.prototype=new Error,t.default=r,e.exports=t.default})(pa,pa.exports);var nt=pa.exports,er={},ga={exports:{}};(function(e,t){t.__esModule=!0;var n=xe;t.default=function(r){r.registerHelper("blockHelperMissing",function(o,a){var i=a.inverse,l=a.fn;if(o===!0)return l(this);if(o===!1||o==null)return i(this);if(n.isArray(o))return o.length>0?(a.ids&&(a.ids=[a.name]),r.helpers.each(o,a)):i(this);if(a.data&&a.ids){var s=n.createFrame(a.data);s.contextPath=n.appendContextPath(a.data.contextPath,a.name),a={data:s}}return l(o,a)})},e.exports=t.default})(ga,ga.exports);var H2=ga.exports,ma={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=xe,o=nt,a=n(o);t.default=function(i){i.registerHelper("each",function(l,s){if(!s)throw new a.default("Must pass iterator to #each");var u=s.fn,c=s.inverse,h=0,d="",f=void 0,p=void 0;s.data&&s.ids&&(p=r.appendContextPath(s.data.contextPath,s.ids[0])+"."),r.isFunction(l)&&(l=l.call(this)),s.data&&(f=r.createFrame(s.data));function b(v,_,y){f&&(f.key=v,f.index=_,f.first=_===0,f.last=!!y,p&&(f.contextPath=p+v)),d=d+u(l[v],{data:f,blockParams:r.blockParams([l[v],v],[p+v,null])})}if(l&&typeof l=="object")if(r.isArray(l))for(var x=l.length;h<x;h++)h in l&&b(h,h,h===l.length-1);else if(typeof Symbol=="function"&&l[Symbol.iterator]){for(var w=[],k=l[Symbol.iterator](),S=k.next();!S.done;S=k.next())w.push(S.value);l=w;for(var x=l.length;h<x;h++)b(h,h,h===l.length-1)}else(function(){var v=void 0;Object.keys(l).forEach(function(_){v!==void 0&&b(v,h-1),v=_,h++}),v!==void 0&&b(v,h-1,!0)})();return h===0&&(d=c(this)),d})},e.exports=t.default})(ma,ma.exports);var G2=ma.exports,ba={exports:{}};(function(e,t){t.__esModule=!0;function n(a){return a&&a.__esModule?a:{default:a}}var r=nt,o=n(r);t.default=function(a){a.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new o.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default})(ba,ba.exports);var U2=ba.exports,xa={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=xe,o=nt,a=n(o);t.default=function(i){i.registerHelper("if",function(l,s){if(arguments.length!=2)throw new a.default("#if requires exactly one argument");return r.isFunction(l)&&(l=l.call(this)),!s.hash.includeZero&&!l||r.isEmpty(l)?s.inverse(this):s.fn(this)}),i.registerHelper("unless",function(l,s){if(arguments.length!=2)throw new a.default("#unless requires exactly one argument");return i.helpers.if.call(this,l,{fn:s.inverse,inverse:s.fn,hash:s.hash})})},e.exports=t.default})(xa,xa.exports);var W2=xa.exports,va={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("log",function(){for(var r=[void 0],o=arguments[arguments.length-1],a=0;a<arguments.length-1;a++)r.push(arguments[a]);var i=1;o.hash.level!=null?i=o.hash.level:o.data&&o.data.level!=null&&(i=o.data.level),r[0]=i,n.log.apply(n,r)})},e.exports=t.default})(va,va.exports);var Z2=va.exports,ka={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){n.registerHelper("lookup",function(r,o,a){return r&&a.lookupProperty(r,o)})},e.exports=t.default})(ka,ka.exports);var q2=ka.exports,wa={exports:{}};(function(e,t){t.__esModule=!0;function n(i){return i&&i.__esModule?i:{default:i}}var r=xe,o=nt,a=n(o);t.default=function(i){i.registerHelper("with",function(l,s){if(arguments.length!=2)throw new a.default("#with requires exactly one argument");r.isFunction(l)&&(l=l.call(this));var u=s.fn;if(r.isEmpty(l))return s.inverse(this);var c=s.data;return s.data&&s.ids&&(c=r.createFrame(s.data),c.contextPath=r.appendContextPath(s.data.contextPath,s.ids[0])),u(l,{data:c,blockParams:r.blockParams([l],[c&&c.contextPath])})})},e.exports=t.default})(wa,wa.exports);var V2=wa.exports;er.__esModule=!0;er.registerDefaultHelpers=c_;er.moveHelperToHooks=u_;function Xt(e){return e&&e.__esModule?e:{default:e}}var Y2=H2,K2=Xt(Y2),J2=G2,X2=Xt(J2),Q2=U2,e_=Xt(Q2),t_=W2,n_=Xt(t_),r_=Z2,o_=Xt(r_),a_=q2,i_=Xt(a_),l_=V2,s_=Xt(l_);function c_(e){K2.default(e),X2.default(e),e_.default(e),n_.default(e),o_.default(e),i_.default(e),s_.default(e)}function u_(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||(e.helpers[t]=void 0))}var di={},Sa={exports:{}};(function(e,t){t.__esModule=!0;var n=xe;t.default=function(r){r.registerDecorator("inline",function(o,a,i,l){var s=o;return a.partials||(a.partials={},s=function(u,c){var h=i.partials;i.partials=n.extend({},h,a.partials);var d=o(u,c);return i.partials=h,d}),a.partials[l.args[0]]=l.fn,s})},e.exports=t.default})(Sa,Sa.exports);var d_=Sa.exports;di.__esModule=!0;di.registerDefaultDecorators=g_;function h_(e){return e&&e.__esModule?e:{default:e}}var f_=d_,p_=h_(f_);function g_(e){p_.default(e)}var $a={exports:{}};(function(e,t){t.__esModule=!0;var n=xe,r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(a){if(typeof a=="string"){var i=n.indexOf(r.methodMap,a.toLowerCase());i>=0?a=i:a=parseInt(a,10)}return a},log:function(a){if(a=r.lookupLevel(a),typeof console<"u"&&r.lookupLevel(r.level)<=a){var i=r.methodMap[a];console[i]||(i="log");for(var l=arguments.length,s=Array(l>1?l-1:0),u=1;u<l;u++)s[u-1]=arguments[u];console[i].apply(console,s)}}};t.default=r,e.exports=t.default})($a,$a.exports);var ou=$a.exports,_n={};_n.__esModule=!0;_n.createProtoAccessControl=v_;_n.resultIsAllowed=k_;_n.resetLoggedProperties=S_;function m_(e){return e&&e.__esModule?e:{default:e}}var Kl=xe,b_=ou,x_=m_(b_),Hr=Object.create(null);function v_(e){var t=Object.create(null);t.__proto__=!1,Kl.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,Kl.extend(n,e.allowedProtoMethods),{properties:{whitelist:t,defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:n,defaultValue:e.allowProtoMethodsByDefault}}}function k_(e,t,n){return Jl(typeof e=="function"?t.methods:t.properties,n)}function Jl(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(w_(t),!1)}function w_(e){Hr[e]!==!0&&(Hr[e]=!0,x_.default.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent.
|
|
516
584
|
You can add a runtime option to disable the check or this warning:
|
|
517
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function
|
|
518
|
-
`),h=0,d=
|
|
519
|
-
`)}return c}else throw new vt.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var r={strict:function(l,s,c){if(!l||!(s in l))throw new vt.default('"'+s+'" not defined in '+l,{loc:c});return r.lookupProperty(l,s)},lookupProperty:function(l,s){var c=l[s];if(c==null||Object.prototype.hasOwnProperty.call(l,s)||cl.resultIsAllowed(c,r.protoAccessControl,s))return c},lookup:function(l,s){for(var c=l.length,u=0;u<c;u++){var h=l[u]&&r.lookupProperty(l[u],s);if(h!=null)return h}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:Xt.escapeExpression,invokePartial:o,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,c,u,h){var d=this.programs[l],f=this.fn(l);return s||h||u||c?d=io(this,l,f,s,c,u,h):d||(d=this.programs[l]=io(this,l,f)),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=Xt.extend({},s,l)),c},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(a){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;i._setup(l),!l.partial&&e.useData&&(s=i$(a,s));var c=void 0,u=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?c=a!=l.depths[0]?[a].concat(l.depths):l.depths:c=[a]);function h(d){return""+e.main(r,d,r.helpers,r.partials,s,u,c)}return h=tc(e.main,h,r,l.depths||[],s,u),h(a,l)}return i.isTop=!0,i._setup=function(a){if(a.partial)r.protoAccessControl=a.protoAccessControl,r.helpers=a.helpers,r.partials=a.partials,r.decorators=a.decorators,r.hooks=a.hooks;else{var l={};ul(l,t.helpers,r),ul(l,a.helpers,r),r.helpers=l,e.usePartial&&(r.partials=r.mergeIfNeeded(a.partials,t.partials)),(e.usePartial||e.useDecorators)&&(r.decorators=Xt.extend({},t.decorators,a.decorators)),r.hooks={},r.protoAccessControl=cl.createProtoAccessControl(a);var s=a.allowCallsToHelperMissing||n;sl.moveHelperToHooks(r,"helperMissing",s),sl.moveHelperToHooks(r,"blockHelperMissing",s)}},i._child=function(a,l,s,c){if(e.useBlockParams&&!s)throw new vt.default("must pass block params");if(e.useDepths&&!c)throw new vt.default("must pass parent depths");return io(r,a,e[a],l,0,s,c)},i}function io(e,t,n,o,r,i,a){function l(s){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=a;return a&&s!=a[0]&&!(s===e.nullContext&&a[0]===null)&&(u=[s].concat(a)),n(e,s,e.helpers,e.partials,c.data||o,i&&[c.blockParams].concat(i),u)}return l=tc(n,l,e,a,o,i),l.program=t,l.depth=a?a.length:0,l.blockParams=r||0,l}function r$(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=lo(n.partials,e)):n.name==="@partial-block"?e=lo(n.data,"partial-block"):e=lo(n.partials,n.name),e}function a$(e,t,n){var o=lo(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==ec&&function(){n.data=St.createFrame(n.data);var i=n.fn;r=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=St.createFrame(s.data),s.data["partial-block"]=o,i(l,s)},i.partials&&(n.partials=Xt.extend({},n.partials,i.partials))}(),e===void 0&&r&&(e=r),e===void 0)throw new vt.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function ec(){return""}function lo(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function i$(e,t){return(!t||!("root"in t))&&(t=t?St.createFrame(t):{},t.root=e),t}function tc(e,t,n,o,r,i){if(e.decorator){var a={};t=e.decorator(t,a,n,o&&o[0],r,i,o),Xt.extend(t,a)}return t}function ul(e,t,n){t&&Object.keys(t).forEach(function(o){var r=t[o];e[o]=l$(r,n)})}function l$(e,t){var n=t.lookupProperty;return t$.wrapHelper(e,function(o){return o.lookupProperty=n,o})}var Kr={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})(Kr,Kr.exports);var nc=Kr.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 k={};if(S!=null)for(var v in S)Object.prototype.hasOwnProperty.call(S,v)&&(k[v]=S[v]);return k.default=S,k}var r=Je,i=o(r),a=Y2,l=n(a),s=Xe,c=n(s),u=be,h=o(u),d=Tt,f=o(d),p=nc,b=n(p);function x(){var S=new i.HandlebarsEnvironment;return h.extend(S,i),S.SafeString=l.default,S.Exception=c.default,S.Utils=h,S.escapeExpression=h.escapeExpression,S.VM=f,S.template=function(k){return f.template(k,S)},S}var w=x();w.create=x,b.default(w),w.default=w,t.default=w,e.exports=t.default})(Lr,Lr.exports);var s$=Lr.exports,Jr={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(r){return r.type==="SubExpression"||(r.type==="MustacheStatement"||r.type==="BlockStatement")&&!!(r.params&&r.params.length||r.hash)},scopedId:function(r){return/^\.|this\b/.test(r.original)},simpleId:function(r){return r.parts.length===1&&!n.helpers.scopedId(r)&&!r.depth}}};t.default=n,e.exports=t.default})(Jr,Jr.exports);var oc=Jr.exports,Ln={},Xr={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,h,d,f){var p=d.length-1;switch(h){case 1:return d[p-1];case 2:this.$=u.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:u.stripComment(d[p]),strip:u.stripFlags(d[p],d[p]),loc:u.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:u.locInfo(this._$)};break;case 11:this.$=u.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=u.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=u.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:u.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:u.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=u.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=u.prepareProgram([b],d[p-1].loc);x.chained=!0,this.$={strip:d[p-2].strip,program:x,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:u.stripFlags(d[p-2],d[p])};break;case 22:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=u.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],u.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:u.stripFlags(d[p-4],d[p]),loc:u.locInfo(this._$)};break;case 25:this.$=u.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:u.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:u.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:u.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:u.id(d[p-2]),value:d[p],loc:u.locInfo(this._$)};break;case 32:this.$=u.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:u.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:u.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:u.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:u.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:u.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=u.preparePath(!0,d[p],this._$);break;case 43:this.$=u.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:u.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:u.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(l,s){throw new Error(l)},parse:function(l){var s=this,c=[0],u=[null],h=[],d=this.table,f="",p=0,b=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var x=this.lexer.yylloc;h.push(x);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function S(){var O;return O=s.lexer.lex()||1,typeof O!="number"&&(O=s.symbols_[O]||O),O}for(var k,v,_,y,C={},I,R,E,P;;){if(v=c[c.length-1],this.defaultActions[v]?_=this.defaultActions[v]:((k===null||typeof k>"u")&&(k=S()),_=d[v]&&d[v][k]),typeof _>"u"||!_.length||!_[0]){var M="";{P=[];for(I in d[v])this.terminals_[I]&&I>2&&P.push("'"+this.terminals_[I]+"'");this.lexer.showPosition?M="Parse error on line "+(p+1)+`:
|
|
585
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function S_(){Object.keys(Hr).forEach(function(e){delete Hr[e]})}tt.__esModule=!0;tt.HandlebarsEnvironment=_a;function au(e){return e&&e.__esModule?e:{default:e}}var Gt=xe,$_=nt,Mo=au($_),__=er,C_=di,A_=ou,Gr=au(A_),y_=_n,I_="4.7.9";tt.VERSION=I_;var R_=8;tt.COMPILER_REVISION=R_;var T_=7;tt.LAST_COMPATIBLE_COMPILER_REVISION=T_;var N_={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"};tt.REVISION_CHANGES=N_;var Oo="[object Object]";function _a(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},__.registerDefaultHelpers(this),C_.registerDefaultDecorators(this)}_a.prototype={constructor:_a,logger:Gr.default,log:Gr.default.log,registerHelper:function(t,n){if(Gt.toString.call(t)===Oo){if(n)throw new Mo.default("Arg not supported with multiple helpers");Gt.extend(this.helpers,t)}else this.helpers[t]=n},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,n){if(Gt.toString.call(t)===Oo)Gt.extend(this.partials,t);else{if(typeof n>"u")throw new Mo.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(Gt.toString.call(t)===Oo){if(n)throw new Mo.default("Arg not supported with multiple decorators");Gt.extend(this.decorators,t)}else this.decorators[t]=n},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){y_.resetLoggedProperties()}};var E_=Gr.default.log;tt.log=E_;tt.createFrame=Gt.createFrame;tt.logger=Gr.default;var Ca={exports:{}};(function(e,t){t.__esModule=!0;function n(r){this.string=r}n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default})(Ca,Ca.exports);var P_=Ca.exports,Dt={},hi={};hi.__esModule=!0;hi.wrapHelper=M_;function M_(e,t){if(typeof e!="function")return e;var n=function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=t(o),e.apply(this,arguments)};return n}Dt.__esModule=!0;Dt.checkRevision=D_;Dt.template=F_;Dt.wrapProgram=Cr;Dt.resolvePartial=H_;Dt.invokePartial=G_;Dt.noop=iu;function O_(e){return e&&e.__esModule?e:{default:e}}function L_(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 z_=xe,hn=L_(z_),j_=nt,It=O_(j_),Rt=tt,Xl=er,B_=hi,Ql=_n;function D_(e){var t=e&&e[0]||1,n=Rt.COMPILER_REVISION;if(!(t>=Rt.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Rt.COMPILER_REVISION))if(t<Rt.LAST_COMPATIBLE_COMPILER_REVISION){var r=Rt.REVISION_CHANGES[n],o=Rt.REVISION_CHANGES[t];throw new It.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}else throw new It.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 F_(e,t){if(!t)throw new It.default("No environment passed to template");if(!e||!e.main)throw new It.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n=e.compiler&&e.compiler[0]===7;function r(i,l,s){s.hash&&(l=hn.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(`
|
|
586
|
+
`),h=0,d=c.length;h<d&&!(!c[h]&&h+1===d);h++)c[h]=s.indent+c[h];u=c.join(`
|
|
587
|
+
`)}return u}else throw new It.default("The partial "+s.name+" could not be compiled when running in runtime-only mode")}var o={strict:function(l,s,u){if(!l||!(s in l))throw new It.default('"'+s+'" not defined in '+l,{loc:u});return o.lookupProperty(l,s)},lookupProperty:function(l,s){var u=l[s];if(u==null||Object.prototype.hasOwnProperty.call(l,s)||Ql.resultIsAllowed(u,o.protoAccessControl,s))return u},lookup:function(l,s){for(var u=l.length,c=0;c<u;c++){var h=l[c]&&o.lookupProperty(l[c],s);if(h!=null)return h}},lambda:function(l,s){return typeof l=="function"?l.call(s):l},escapeExpression:hn.escapeExpression,invokePartial:r,fn:function(l){var s=e[l];return s.decorator=e[l+"_d"],s},programs:[],program:function(l,s,u,c,h){var d=this.programs[l],f=this.fn(l);return s||h||c||u?d=Cr(this,l,f,s,u,c,h):d||(d=this.programs[l]=Cr(this,l,f)),d},data:function(l,s){for(;l&&s--;)l=l._parent;return l},mergeIfNeeded:function(l,s){var u=l||s;return l&&s&&l!==s&&(u=hn.extend({},s,l)),u},nullContext:Object.seal({}),noop:t.VM.noop,compilerInfo:e.compiler};function a(i){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],s=l.data;a._setup(l),!l.partial&&e.useData&&(s=U_(i,s));var u=void 0,c=e.useBlockParams?[]:void 0;e.useDepths&&(l.depths?u=i!=l.depths[0]?[i].concat(l.depths):l.depths:u=[i]);function h(d){return""+e.main(o,d,o.helpers,o.partials,s,c,u)}return h=lu(e.main,h,o,l.depths||[],s,c),h(i,l)}return a.isTop=!0,a._setup=function(i){if(i.partial)o.protoAccessControl=i.protoAccessControl,o.helpers=i.helpers,o.partials=i.partials,o.decorators=i.decorators,o.hooks=i.hooks;else{var l={};es(l,t.helpers,o),es(l,i.helpers,o),o.helpers=l,e.usePartial&&(o.partials=o.mergeIfNeeded(i.partials,t.partials)),(e.usePartial||e.useDecorators)&&(o.decorators=hn.extend({},t.decorators,i.decorators)),o.hooks={},o.protoAccessControl=Ql.createProtoAccessControl(i);var s=i.allowCallsToHelperMissing||n;Xl.moveHelperToHooks(o,"helperMissing",s),Xl.moveHelperToHooks(o,"blockHelperMissing",s)}},a._child=function(i,l,s,u){if(e.useBlockParams&&!s)throw new It.default("must pass block params");if(e.useDepths&&!u)throw new It.default("must pass parent depths");return Cr(o,i,e[i],l,0,s,u)},a}function Cr(e,t,n,r,o,a,i){function l(s){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=i;return i&&s!=i[0]&&!(s===e.nullContext&&i[0]===null)&&(c=[s].concat(i)),n(e,s,e.helpers,e.partials,u.data||r,a&&[u.blockParams].concat(a),c)}return l=lu(n,l,e,i,r,a),l.program=t,l.depth=i?i.length:0,l.blockParams=o||0,l}function H_(e,t,n){return e?!e.call&&!n.name&&(n.name=e,e=Ar(n.partials,e)):n.name==="@partial-block"?e=Ar(n.data,"partial-block"):e=Ar(n.partials,n.name),e}function G_(e,t,n){var r=Ar(n.data,"partial-block");n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var o=void 0;if(n.fn&&n.fn!==iu&&function(){n.data=Rt.createFrame(n.data);var a=n.fn;o=n.data["partial-block"]=function(l){var s=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return s.data=Rt.createFrame(s.data),s.data["partial-block"]=r,a(l,s)},a.partials&&(n.partials=hn.extend({},n.partials,a.partials))}(),e===void 0&&o&&(e=o),e===void 0)throw new It.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)}function iu(){return""}function Ar(e,t){if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]}function U_(e,t){return(!t||!("root"in t))&&(t=t?Rt.createFrame(t):{},t.root=e),t}function lu(e,t,n,r,o,a){if(e.decorator){var i={};t=e.decorator(t,i,n,r&&r[0],o,a,r),hn.extend(t,i)}return t}function es(e,t,n){t&&Object.keys(t).forEach(function(r){var o=t[r];e[r]=W_(o,n)})}function W_(e,t){var n=t.lookupProperty;return B_.wrapHelper(e,function(r){return r.lookupProperty=n,r})}var Aa={exports:{}};(function(e,t){t.__esModule=!0,t.default=function(n){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var r=globalThis.Handlebars;n.noConflict=function(){return globalThis.Handlebars===n&&(globalThis.Handlebars=r),n}},e.exports=t.default})(Aa,Aa.exports);var su=Aa.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}function r(k){if(k&&k.__esModule)return k;var S={};if(k!=null)for(var v in k)Object.prototype.hasOwnProperty.call(k,v)&&(S[v]=k[v]);return S.default=k,S}var o=tt,a=r(o),i=P_,l=n(i),s=nt,u=n(s),c=xe,h=r(c),d=Dt,f=r(d),p=su,b=n(p);function x(){var k=new a.HandlebarsEnvironment;return h.extend(k,a),k.SafeString=l.default,k.Exception=u.default,k.Utils=h,k.escapeExpression=h.escapeExpression,k.VM=f,k.template=function(S){return f.template(S,k)},k}var w=x();w.create=x,b.default(w),w.default=w,t.default=w,e.exports=t.default})(ha,ha.exports);var Z_=ha.exports,ya={exports:{}};(function(e,t){t.__esModule=!0;var n={helpers:{helperExpression:function(o){return o.type==="SubExpression"||(o.type==="MustacheStatement"||o.type==="BlockStatement")&&!!(o.params&&o.params.length||o.hash)},scopedId:function(o){return/^\.|this\b/.test(o.original)},simpleId:function(o){return o.parts.length===1&&!n.helpers.scopedId(o)&&!o.depth}}};t.default=n,e.exports=t.default})(ya,ya.exports);var cu=ya.exports,tr={},Ia={exports:{}};(function(e,t){t.__esModule=!0;var n=function(){var r={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(l,s,u,c,h,d,f){var p=d.length-1;switch(h){case 1:return d[p-1];case 2:this.$=c.prepareProgram(d[p]);break;case 3:this.$=d[p];break;case 4:this.$=d[p];break;case 5:this.$=d[p];break;case 6:this.$=d[p];break;case 7:this.$=d[p];break;case 8:this.$=d[p];break;case 9:this.$={type:"CommentStatement",value:c.stripComment(d[p]),strip:c.stripFlags(d[p],d[p]),loc:c.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:d[p],value:d[p],loc:c.locInfo(this._$)};break;case 11:this.$=c.prepareRawBlock(d[p-2],d[p-1],d[p],this._$);break;case 12:this.$={path:d[p-3],params:d[p-2],hash:d[p-1]};break;case 13:this.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!1,this._$);break;case 14:this.$=c.prepareBlock(d[p-3],d[p-2],d[p-1],d[p],!0,this._$);break;case 15:this.$={open:d[p-5],path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 16:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 17:this.$={path:d[p-4],params:d[p-3],hash:d[p-2],blockParams:d[p-1],strip:c.stripFlags(d[p-5],d[p])};break;case 18:this.$={strip:c.stripFlags(d[p-1],d[p-1]),program:d[p]};break;case 19:var b=c.prepareBlock(d[p-2],d[p-1],d[p],d[p],!1,this._$),x=c.prepareProgram([b],d[p-1].loc);x.chained=!0,this.$={strip:d[p-2].strip,program:x,chain:!0};break;case 20:this.$=d[p];break;case 21:this.$={path:d[p-1],strip:c.stripFlags(d[p-2],d[p])};break;case 22:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 23:this.$=c.prepareMustache(d[p-3],d[p-2],d[p-1],d[p-4],c.stripFlags(d[p-4],d[p]),this._$);break;case 24:this.$={type:"PartialStatement",name:d[p-3],params:d[p-2],hash:d[p-1],indent:"",strip:c.stripFlags(d[p-4],d[p]),loc:c.locInfo(this._$)};break;case 25:this.$=c.preparePartialBlock(d[p-2],d[p-1],d[p],this._$);break;case 26:this.$={path:d[p-3],params:d[p-2],hash:d[p-1],strip:c.stripFlags(d[p-4],d[p])};break;case 27:this.$=d[p];break;case 28:this.$=d[p];break;case 29:this.$={type:"SubExpression",path:d[p-3],params:d[p-2],hash:d[p-1],loc:c.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:d[p],loc:c.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:c.id(d[p-2]),value:d[p],loc:c.locInfo(this._$)};break;case 32:this.$=c.id(d[p-1]);break;case 33:this.$=d[p];break;case 34:this.$=d[p];break;case 35:this.$={type:"StringLiteral",value:d[p],original:d[p],loc:c.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(d[p]),original:Number(d[p]),loc:c.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:d[p]==="true",original:d[p]==="true",loc:c.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:c.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:c.locInfo(this._$)};break;case 40:this.$=d[p];break;case 41:this.$=d[p];break;case 42:this.$=c.preparePath(!0,d[p],this._$);break;case 43:this.$=c.preparePath(!1,d[p],this._$);break;case 44:d[p-2].push({part:c.id(d[p]),original:d[p],separator:d[p-1]}),this.$=d[p-2];break;case 45:this.$=[{part:c.id(d[p]),original:d[p]}];break;case 46:this.$=[];break;case 47:d[p-1].push(d[p]);break;case 48:this.$=[];break;case 49:d[p-1].push(d[p]);break;case 50:this.$=[];break;case 51:d[p-1].push(d[p]);break;case 58:this.$=[];break;case 59:d[p-1].push(d[p]);break;case 64:this.$=[];break;case 65:d[p-1].push(d[p]);break;case 70:this.$=[];break;case 71:d[p-1].push(d[p]);break;case 78:this.$=[];break;case 79:d[p-1].push(d[p]);break;case 82:this.$=[];break;case 83:d[p-1].push(d[p]);break;case 86:this.$=[];break;case 87:d[p-1].push(d[p]);break;case 90:this.$=[];break;case 91:d[p-1].push(d[p]);break;case 94:this.$=[];break;case 95:d[p-1].push(d[p]);break;case 98:this.$=[d[p]];break;case 99:d[p-1].push(d[p]);break;case 100:this.$=[d[p]];break;case 101:d[p-1].push(d[p]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(l,s){throw new Error(l)},parse:function(l){var s=this,u=[0],c=[null],h=[],d=this.table,f="",p=0,b=0;this.lexer.setInput(l),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var x=this.lexer.yylloc;h.push(x);var w=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function k(){var O;return O=s.lexer.lex()||1,typeof O!="number"&&(O=s.symbols_[O]||O),O}for(var S,v,_,y,C={},I,R,N,M;;){if(v=u[u.length-1],this.defaultActions[v]?_=this.defaultActions[v]:((S===null||typeof S>"u")&&(S=k()),_=d[v]&&d[v][S]),typeof _>"u"||!_.length||!_[0]){var P="";{M=[];for(I in d[v])this.terminals_[I]&&I>2&&M.push("'"+this.terminals_[I]+"'");this.lexer.showPosition?P="Parse error on line "+(p+1)+`:
|
|
520
588
|
`+this.lexer.showPosition()+`
|
|
521
|
-
Expecting `+
|
|
522
|
-
`+
|
|
523
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return a.options={},a.performAction=function(s,c,u,h){function d(f,p){return c.yytext=c.yytext.substring(f,c.yyleng-p+f)}switch(u){case 0:if(c.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):c.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),c.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(d(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(c.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return c.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return c.yytext=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return c.yytext=c.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},a.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],a.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},a}();o.lexer=r;function i(){this.yy={}}return i.prototype=o,o.Parser=i,new i}();t.default=n,e.exports=t.default})(Xr,Xr.exports);var c$=Xr.exports,Qr={exports:{}},ea={exports:{}};(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var o=Xe,r=n(o);function i(){this.parents=[]}i.prototype={constructor:i,mutating:!1,acceptKey:function(u,h){var d=this.accept(u[h]);if(this.mutating){if(d&&!i.prototype[d.type])throw new r.default('Unexpected node type "'+d.type+'" found when accepting '+h+" on "+u.type);u[h]=d}},acceptRequired:function(u,h){if(this.acceptKey(u,h),!u[h])throw new r.default(u.type+" requires "+h)},acceptArray:function(u){for(var h=0,d=u.length;h<d;h++)this.acceptKey(u,h),u[h]||(u.splice(h,1),h--,d--)},accept:function(u){if(u){if(!this[u.type])throw new r.default("Unknown type: "+u.type,u);this.current&&this.parents.unshift(this.current),this.current=u;var h=this[u.type](u);if(this.current=this.parents.shift(),!this.mutating||h)return h;if(h!==!1)return u}},Program:function(u){this.acceptArray(u.body)},MustacheStatement:a,Decorator:a,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(u){s.call(this,u),this.acceptKey(u,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:a,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(u){this.acceptArray(u.pairs)},HashPair:function(u){this.acceptRequired(u,"value")}};function a(c){this.acceptRequired(c,"path"),this.acceptArray(c.params),this.acceptKey(c,"hash")}function l(c){a.call(this,c),this.acceptKey(c,"program"),this.acceptKey(c,"inverse")}function s(c){this.acceptRequired(c,"name"),this.acceptArray(c.params),this.acceptKey(c,"hash")}t.default=i,e.exports=t.default})(ea,ea.exports);var rc=ea.exports;(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var o=rc,r=n(o);function i(){var u=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=u}i.prototype=new r.default,i.prototype.Program=function(u){var h=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var f=u.body,p=0,b=f.length;p<b;p++){var x=f[p],w=this.accept(x);if(w){var S=a(f,p,d),k=l(f,p,d),v=w.openStandalone&&S,_=w.closeStandalone&&k,y=w.inlineStandalone&&S&&k;w.close&&s(f,p,!0),w.open&&c(f,p,!0),h&&y&&(s(f,p),c(f,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(f[p-1].original)[1])),h&&v&&(s((x.program||x.inverse).body),c(f,p)),h&&_&&(s(f,p),c((x.inverse||x.program).body))}}return u},i.prototype.BlockStatement=i.prototype.DecoratorBlock=i.prototype.PartialBlockStatement=function(u){this.accept(u.program),this.accept(u.inverse);var h=u.program||u.inverse,d=u.program&&u.inverse,f=d,p=d;if(d&&d.chained)for(f=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var b={open:u.openStrip.open,close:u.closeStrip.close,openStandalone:l(h.body),closeStandalone:a((f||h).body)};if(u.openStrip.close&&s(h.body,null,!0),d){var x=u.inverseStrip;x.open&&c(h.body,null,!0),x.close&&s(f.body,null,!0),u.closeStrip.open&&c(p.body,null,!0),!this.options.ignoreStandalone&&a(h.body)&&l(f.body)&&(c(h.body),s(f.body))}else u.closeStrip.open&&c(h.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 h=u.strip||{};return{inlineStandalone:!0,open:h.open,close:h.close}};function a(u,h,d){h===void 0&&(h=u.length);var f=u[h-1],p=u[h-2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function l(u,h,d){h===void 0&&(h=-1);var f=u[h+1],p=u[h+2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function s(u,h,d){var f=u[h==null?0:h+1];if(!(!f||f.type!=="ContentStatement"||!d&&f.rightStripped)){var p=f.value;f.value=f.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==p}}function c(u,h,d){var f=u[h==null?u.length-1:h-1];if(!(!f||f.type!=="ContentStatement"||!d&&f.leftStripped)){var p=f.value;return f.value=f.value.replace(d?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==p,f.leftStripped}}t.default=i,e.exports=t.default})(Qr,Qr.exports);var u$=Qr.exports,Qe={};Qe.__esModule=!0;Qe.SourceLocation=f$;Qe.id=m$;Qe.stripFlags=p$;Qe.stripComment=g$;Qe.preparePath=b$;Qe.prepareMustache=x$;Qe.prepareRawBlock=v$;Qe.prepareBlock=S$;Qe.prepareProgram=w$;Qe.preparePartialBlock=$$;function d$(e){return e&&e.__esModule?e:{default:e}}var h$=Xe,Na=d$(h$);function Ta(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new Na.default(e.path.original+" doesn't match "+t,n)}}function f$(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 m$(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function p$(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function g$(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function b$(e,t,n){n=this.locInfo(n);for(var o=e?"@":"",r=[],i=0,a=0,l=t.length;a<l;a++){var s=t[a].part,c=t[a].original!==s;if(o+=(t[a].separator||"")+s,!c&&(s===".."||s==="."||s==="this")){if(r.length>0)throw new Na.default("Invalid path: "+o,{loc:n});s===".."&&i++}else r.push(s)}return{type:"PathExpression",data:e,depth:i,parts:r,original:o,loc:n}}function x$(e,t,n,o,r,i){var a=o.charAt(3)||o.charAt(2),l=a!=="{"&&a!=="&",s=/\*/.test(o);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:r,loc:this.locInfo(i)}}function v$(e,t,n,o){Ta(e,n),o=this.locInfo(o);var r={type:"Program",body:t,strip:{},loc:o};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:r,openStrip:{},inverseStrip:{},closeStrip:{},loc:o}}function S$(e,t,n,o,r,i){o&&o.path&&Ta(e,o);var a=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(a)throw new Na.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=o.strip),s=n.strip,l=n.program}return r&&(r=l,l=t,t=r),{type:a?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:o&&o.strip,loc:this.locInfo(i)}}function w$(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 $$(e,t,n,o){return Ta(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)}}Ln.__esModule=!0;Ln.parseWithoutProcessing=ac;Ln.parse=T$;function k$(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 Ea(e){return e&&e.__esModule?e:{default:e}}var _$=c$,ta=Ea(_$),C$=u$,A$=Ea(C$),y$=Qe,I$=k$(y$),R$=Xe,bn=Ea(R$),N$=be;Ln.parser=ta.default;var so={};N$.extend(so,I$);function ac(e,t){if(e.type==="Program")return E$(e),e;ta.default.yy=so,so.locInfo=function(o){return new so.SourceLocation(t&&t.srcName,o)};var n=ta.default.parse(e);return n}function T$(e,t){var n=ac(e,t),o=new A$.default(t);return o.accept(n)}function E$(e){na(e)}function na(e){if(e!=null){if(Array.isArray(e)){e.forEach(na);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!M$(e.depth))throw new bn.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new bn.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 bn.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new bn.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new bn.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&na(e[n])})}}}function M$(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var zn={};zn.__esModule=!0;zn.Compiler=oa;zn.precompile=z$;zn.compile=j$;function ic(e){return e&&e.__esModule?e:{default:e}}var P$=Xe,Cn=ic(P$),Tn=be,O$=oc,xn=ic(O$),L$=[].slice;function oa(){}oa.prototype={compiler:oa,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var o=0;o<n;o++){var r=this.opcodes[o],i=t.opcodes[o];if(r.opcode!==i.opcode||!lc(r.args,i.args))return!1}n=this.children.length;for(var o=0;o<n;o++)if(!this.children[o].equals(t.children[o]))return!1;return!0},guid:0,compile:function(t,n){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[],n.knownHelpers=Tn.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n.knownHelpers),this.accept(t)},compileProgram:function(t){var n=new this.compiler,o=n.compile(t,this.options),r=this.guid++;return this.usePartial=this.usePartial||o.usePartial,this.children[r]=o,this.useDepths=this.useDepths||o.useDepths,r},accept:function(t){if(!this[t.type])throw new Cn.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var n=t.body,o=n.length,r=0;r<o;r++)this.accept(n[r]);return this.options.blockParams.shift(),this.isSimple=o===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){dl(t);var n=t.program,o=t.inverse;n=n&&this.compileProgram(n),o=o&&this.compileProgram(o);var r=this.classifySexpr(t);r==="helper"?this.helperSexpr(t,n,o):r==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,o),this.opcode("pushProgram",n),this.opcode("pushProgram",o),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),o=this.setupFullMustacheParams(t,n,void 0),r=t.path;this.useDecorators=!0,this.opcode("registerDecorator",o.length,r.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var o=t.params;if(o.length>1)throw new Cn.default("Unsupported number of partial arguments: "+o.length,t);o.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):o.push({type:"PathExpression",parts:[],depth:0}));var r=t.name.original,i=t.name.type==="SubExpression";i&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var a=t.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",i,r,a),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){dl(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,o){var r=t.path,i=r.parts[0],a=n!=null||o!=null;this.opcode("getContext",r.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",o),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,a)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,o){var r=this.setupFullMustacheParams(t,n,o),i=t.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new Cn.default("You specified knownHelpersOnly, but used the unknown helper "+a,t);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,xn.default.helpers.simpleId(i))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],o=xn.default.helpers.scopedId(t),r=!t.depth&&!o&&this.blockParamIndex(n);r?this.opcode("lookupBlockParam",r,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,o):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,o=0,r=n.length;for(this.opcode("pushHash");o<r;o++)this.pushParam(n[o].value);for(;o--;)this.opcode("assignToHash",n[o].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:L$.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=xn.default.helpers.simpleId(t.path),o=n&&!!this.blockParamIndex(t.path.parts[0]),r=!o&&xn.default.helpers.helperExpression(t),i=!o&&(r||n);if(i&&!r){var a=t.path.parts[0],l=this.options;l.knownHelpers[a]?r=!0:l.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(t){for(var n=0,o=t.length;n<o;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var o=void 0;if(t.parts&&!xn.default.helpers.scopedId(t)&&!t.depth&&(o=this.blockParamIndex(t.parts[0])),o){var r=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",o,r)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,o,r){var i=t.params;return this.pushParams(i),this.opcode("pushProgram",n),this.opcode("pushProgram",o),t.hash?this.accept(t.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(t){for(var n=0,o=this.options.blockParams.length;n<o;n++){var r=this.options.blockParams[n],i=r&&Tn.indexOf(r,t);if(r&&i>=0)return[n,i]}}};function z$(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Cn.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=n.parse(e,t),r=new n.Compiler().compile(o,t);return new n.JavaScriptCompiler().compile(r,t)}function j$(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Cn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Tn.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var o=void 0;function r(){var a=n.parse(e,t),l=new n.Compiler().compile(a,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function i(a,l){return o||(o=r()),o.call(this,a,l)}return i._setup=function(a){return o||(o=r()),o._setup(a)},i._child=function(a,l,s,c){return o||(o=r()),o._child(a,l,s,c)},i}function lc(e,t){if(e===t)return!0;if(Tn.isArray(e)&&Tn.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!lc(e[n],t[n]))return!1;return!0}}function dl(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 ra={exports:{}},aa={exports:{}},vn={},ur={},Xn={},Qn={},hl;function B$(){if(hl)return Qn;hl=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return Qn.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},Qn.decode=function(t){var n=65,o=90,r=97,i=122,a=48,l=57,s=43,c=47,u=26,h=52;return n<=t&&t<=o?t-n:r<=t&&t<=i?t-r+u:a<=t&&t<=l?t-a+h:t==s?62:t==c?63:-1},Qn}var fl;function sc(){if(fl)return Xn;fl=1;var e=B$(),t=5,n=1<<t,o=n-1,r=n;function i(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var s=(l&1)===1,c=l>>1;return s?-c:c}return Xn.encode=function(s){var c="",u,h=i(s);do u=h&o,h>>>=t,h>0&&(u|=r),c+=e.encode(u);while(h>0);return c},Xn.decode=function(s,c,u){var h=s.length,d=0,f=0,p,b;do{if(c>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(c++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(c-1));p=!!(b&r),b&=o,d=d+(b<<f),f+=t}while(p);u.value=a(d),u.rest=c},Xn}var dr={},ml;function jn(){return ml||(ml=1,function(e){function t(v,_,y){if(_ in v)return v[_];if(arguments.length===3)return y;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function r(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=r;function i(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}e.urlGenerate=i;function a(v){var _=v,y=r(v);if(y){if(!y.path)return v;_=y.path}for(var C=e.isAbsolute(_),I=_.split(/\/+/),R,E=0,P=I.length-1;P>=0;P--)R=I[P],R==="."?I.splice(P,1):R===".."?E++:E>0&&(R===""?(I.splice(P+1,E),E=0):(I.splice(P,2),E--));return _=I.join("/"),_===""&&(_=C?"/":"."),y?(y.path=_,i(y)):_}e.normalize=a;function l(v,_){v===""&&(v="."),_===""&&(_=".");var y=r(_),C=r(v);if(C&&(v=C.path||"/"),y&&!y.scheme)return C&&(y.scheme=C.scheme),i(y);if(y||_.match(o))return _;if(C&&!C.host&&!C.path)return C.host=_,i(C);var I=_.charAt(0)==="/"?_:a(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=I,i(C)):I}e.join=l,e.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function s(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var y=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++y}return Array(y+1).join("../")+_.substr(v.length+1)}e.relative=s;var c=function(){var v=Object.create(null);return!("__proto__"in v)}();function u(v){return v}function h(v){return f(v)?"$"+v:v}e.toSetString=c?u:h;function d(v){return f(v)?v.slice(1):v}e.fromSetString=c?u:d;function f(v){if(!v)return!1;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return!1;for(var y=_-10;y>=0;y--)if(v.charCodeAt(y)!==36)return!1;return!0}function p(v,_,y){var C=x(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||y)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:x(v.name,_.name)}e.compareByOriginalPositions=p;function b(v,_,y){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||y)||(C=x(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:x(v.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function x(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function w(v,_){var y=v.generatedLine-_.generatedLine;return y!==0||(y=v.generatedColumn-_.generatedColumn,y!==0)||(y=x(v.source,_.source),y!==0)||(y=v.originalLine-_.originalLine,y!==0)||(y=v.originalColumn-_.originalColumn,y!==0)?y:x(v.name,_.name)}e.compareByGeneratedPositionsInflated=w;function S(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=S;function k(v,_,y){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),y){var C=r(y);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var I=C.path.lastIndexOf("/");I>=0&&(C.path=C.path.substring(0,I+1))}_=l(i(C),_)}return a(_)}e.computeSourceURL=k}(dr)),dr}var hr={},pl;function cc(){if(pl)return hr;pl=1;var e=jn(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function o(){this._array=[],this._set=n?new Map:Object.create(null)}return o.fromArray=function(i,a){for(var l=new o,s=0,c=i.length;s<c;s++)l.add(i[s],a);return l},o.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,a){var l=n?i:e.toSetString(i),s=n?this.has(i):t.call(this._set,l),c=this._array.length;(!s||a)&&this._array.push(i),s||(n?this._set.set(i,c):this._set[l]=c)},o.prototype.has=function(i){if(n)return this._set.has(i);var a=e.toSetString(i);return t.call(this._set,a)},o.prototype.indexOf=function(i){if(n){var a=this._set.get(i);if(a>=0)return a}else{var l=e.toSetString(i);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},hr.ArraySet=o,hr}var fr={},gl;function D$(){if(gl)return fr;gl=1;var e=jn();function t(o,r){var i=o.generatedLine,a=r.generatedLine,l=o.generatedColumn,s=r.generatedColumn;return a>i||a==i&&s>=l||e.compareByGeneratedPositionsInflated(o,r)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(r,i){this._array.forEach(r,i)},n.prototype.add=function(r){t(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},fr.MappingList=n,fr}var bl;function uc(){if(bl)return ur;bl=1;var e=sc(),t=jn(),n=cc().ArraySet,o=D$().MappingList;function r(i){i||(i={}),this._file=t.getArg(i,"file",null),this._sourceRoot=t.getArg(i,"sourceRoot",null),this._skipValidation=t.getArg(i,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new o,this._sourcesContents=null}return r.prototype._version=3,r.fromSourceMap=function(a){var l=a.sourceRoot,s=new r({file:a.file,sourceRoot:l});return a.eachMapping(function(c){var u={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(u.source=c.source,l!=null&&(u.source=t.relative(l,u.source)),u.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(u.name=c.name)),s.addMapping(u)}),a.sources.forEach(function(c){var u=c;l!==null&&(u=t.relative(l,c)),s._sources.has(u)||s._sources.add(u);var h=a.sourceContentFor(c);h!=null&&s.setSourceContent(c,h)}),s},r.prototype.addMapping=function(a){var l=t.getArg(a,"generated"),s=t.getArg(a,"original",null),c=t.getArg(a,"source",null),u=t.getArg(a,"name",null);this._skipValidation||this._validateMapping(l,s,c,u),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:c,name:u})},r.prototype.setSourceContent=function(a,l){var s=a;this._sourceRoot!=null&&(s=t.relative(this._sourceRoot,s)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(s)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},r.prototype.applySourceMap=function(a,l,s){var c=l;if(l==null){if(a.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=a.file}var u=this._sourceRoot;u!=null&&(c=t.relative(u,c));var h=new n,d=new n;this._mappings.unsortedForEach(function(f){if(f.source===c&&f.originalLine!=null){var p=a.originalPositionFor({line:f.originalLine,column:f.originalColumn});p.source!=null&&(f.source=p.source,s!=null&&(f.source=t.join(s,f.source)),u!=null&&(f.source=t.relative(u,f.source)),f.originalLine=p.line,f.originalColumn=p.column,p.name!=null&&(f.name=p.name))}var b=f.source;b!=null&&!h.has(b)&&h.add(b);var x=f.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=h,this._names=d,a.sources.forEach(function(f){var p=a.sourceContentFor(f);p!=null&&(s!=null&&(f=t.join(s,f)),u!=null&&(f=t.relative(u,f)),this.setSourceContent(f,p))},this)},r.prototype._validateMapping=function(a,l,s,c){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(a&&"line"in a&&"column"in a&&a.line>0&&a.column>=0&&!l&&!s&&!c)){if(a&&"line"in a&&"column"in a&&l&&"line"in l&&"column"in l&&a.line>0&&a.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:a,source:s,original:l,name:c}))}},r.prototype._serializeMappings=function(){for(var a=0,l=1,s=0,c=0,u=0,h=0,d="",f,p,b,x,w=this._mappings.toArray(),S=0,k=w.length;S<k;S++){if(p=w[S],f="",p.generatedLine!==l)for(a=0;p.generatedLine!==l;)f+=";",l++;else if(S>0){if(!t.compareByGeneratedPositionsInflated(p,w[S-1]))continue;f+=","}f+=e.encode(p.generatedColumn-a),a=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),f+=e.encode(x-h),h=x,f+=e.encode(p.originalLine-1-c),c=p.originalLine-1,f+=e.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(b=this._names.indexOf(p.name),f+=e.encode(b-u),u=b)),d+=f}return d},r.prototype._generateSourcesContent=function(a,l){return a.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var c=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},r.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(a.file=this._file),this._sourceRoot!=null&&(a.sourceRoot=this._sourceRoot),this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot)),a},r.prototype.toString=function(){return JSON.stringify(this.toJSON())},ur.SourceMapGenerator=r,ur}var Sn={},mr={},xl;function F$(){return xl||(xl=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,o,r,i,a,l){var s=Math.floor((o-n)/2)+n,c=a(r,i[s],!0);return c===0?s:c>0?o-s>1?t(s,o,r,i,a,l):l==e.LEAST_UPPER_BOUND?o<i.length?o:-1:s:s-n>1?t(n,s,r,i,a,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(o,r,i,a){if(r.length===0)return-1;var l=t(-1,r.length,o,r,i,a||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&i(r[l],r[l-1],!0)===0;)--l;return l}}(mr)),mr}var pr={},vl;function H$(){if(vl)return pr;vl=1;function e(o,r,i){var a=o[r];o[r]=o[i],o[i]=a}function t(o,r){return Math.round(o+Math.random()*(r-o))}function n(o,r,i,a){if(i<a){var l=t(i,a),s=i-1;e(o,l,a);for(var c=o[a],u=i;u<a;u++)r(o[u],c)<=0&&(s+=1,e(o,s,u));e(o,s+1,u);var h=s+1;n(o,r,i,h-1),n(o,r,h+1,a)}}return pr.quickSort=function(o,r){n(o,r,0,o.length-1)},pr}var Sl;function G$(){if(Sl)return Sn;Sl=1;var e=jn(),t=F$(),n=cc().ArraySet,o=sc(),r=H$().quickSort;function i(c,u){var h=c;return typeof c=="string"&&(h=e.parseSourceMapInput(c)),h.sections!=null?new s(h,u):new a(h,u)}i.fromSourceMap=function(c,u){return a.fromSourceMap(c,u)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(u,h){var d=u.charAt(h);return d===";"||d===","},i.prototype._parseMappings=function(u,h){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,h,d){var f=h||null,p=d||i.GENERATED_ORDER,b;switch(p){case i.GENERATED_ORDER:b=this._generatedMappings;break;case i.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;b.map(function(w){var S=w.source===null?null:this._sources.at(w.source);return S=e.computeSourceURL(x,S,this._sourceMapURL),{source:S,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(u,f)},i.prototype.allGeneratedPositionsFor=function(u){var h=e.getArg(u,"line"),d={source:e.getArg(u,"source"),originalLine:h,originalColumn:e.getArg(u,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var f=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var b=this._originalMappings[p];if(u.column===void 0)for(var x=b.originalLine;b&&b.originalLine===x;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p];else for(var w=b.originalColumn;b&&b.originalLine===h&&b.originalColumn==w;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p]}return f},Sn.SourceMapConsumer=i;function a(c,u){var h=c;typeof c=="string"&&(h=e.parseSourceMapInput(c));var d=e.getArg(h,"version"),f=e.getArg(h,"sources"),p=e.getArg(h,"names",[]),b=e.getArg(h,"sourceRoot",null),x=e.getArg(h,"sourcesContent",null),w=e.getArg(h,"mappings"),S=e.getArg(h,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),f=f.map(String).map(e.normalize).map(function(k){return b&&e.isAbsolute(b)&&e.isAbsolute(k)?e.relative(b,k):k}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(k){return e.computeSourceURL(b,k,u)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=w,this._sourceMapURL=u,this.file=S}a.prototype=Object.create(i.prototype),a.prototype.consumer=i,a.prototype._findSourceIndex=function(c){var u=c;if(this.sourceRoot!=null&&(u=e.relative(this.sourceRoot,u)),this._sources.has(u))return this._sources.indexOf(u);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==c)return h;return-1},a.fromSourceMap=function(u,h){var d=Object.create(a.prototype),f=d._names=n.fromArray(u._names.toArray(),!0),p=d._sources=n.fromArray(u._sources.toArray(),!0);d.sourceRoot=u._sourceRoot,d.sourcesContent=u._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=u._file,d._sourceMapURL=h,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,h)});for(var b=u._mappings.toArray().slice(),x=d.__generatedMappings=[],w=d.__originalMappings=[],S=0,k=b.length;S<k;S++){var v=b[S],_=new l;_.generatedLine=v.generatedLine,_.generatedColumn=v.generatedColumn,v.source&&(_.source=p.indexOf(v.source),_.originalLine=v.originalLine,_.originalColumn=v.originalColumn,v.name&&(_.name=f.indexOf(v.name)),w.push(_)),x.push(_)}return r(d.__originalMappings,e.compareByOriginalPositions),d},a.prototype._version=3,Object.defineProperty(a.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}a.prototype._parseMappings=function(u,h){for(var d=1,f=0,p=0,b=0,x=0,w=0,S=u.length,k=0,v={},_={},y=[],C=[],I,R,E,P,M;k<S;)if(u.charAt(k)===";")d++,k++,f=0;else if(u.charAt(k)===",")k++;else{for(I=new l,I.generatedLine=d,P=k;P<S&&!this._charIsMappingSeparator(u,P);P++);if(R=u.slice(k,P),E=v[R],E)k+=R.length;else{for(E=[];k<P;)o.decode(u,k,_),M=_.value,k=_.rest,E.push(M);if(E.length===2)throw new Error("Found a source, but no line and column");if(E.length===3)throw new Error("Found a source and line, but no column");v[R]=E}I.generatedColumn=f+E[0],f=I.generatedColumn,E.length>1&&(I.source=x+E[1],x+=E[1],I.originalLine=p+E[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=b+E[3],b=I.originalColumn,E.length>4&&(I.name=w+E[4],w+=E[4])),C.push(I),typeof I.originalLine=="number"&&y.push(I)}r(C,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,r(y,e.compareByOriginalPositions),this.__originalMappings=y},a.prototype._findMapping=function(u,h,d,f,p,b){if(u[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+u[d]);if(u[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+u[f]);return t.search(u,h,p,b)},a.prototype.computeColumnSpans=function(){for(var u=0;u<this._generatedMappings.length;++u){var h=this._generatedMappings[u];if(u+1<this._generatedMappings.length){var d=this._generatedMappings[u+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},a.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(d>=0){var f=this._generatedMappings[d];if(f.generatedLine===h.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var b=e.getArg(f,"name",null);return b!==null&&(b=this._names.at(b)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},a.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(u){return u==null}):!1},a.prototype.sourceContentFor=function(u,h){if(!this.sourcesContent)return null;var d=this._findSourceIndex(u);if(d>=0)return this.sourcesContent[d];var f=u;this.sourceRoot!=null&&(f=e.relative(this.sourceRoot,f));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var b=f.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!p.path||p.path=="/")&&this._sources.has("/"+f))return this.sourcesContent[this._sources.indexOf("/"+f)]}if(h)return null;throw new Error('"'+f+'" is not in the SourceMap.')},a.prototype.generatedPositionFor=function(u){var h=e.getArg(u,"source");if(h=this._findSourceIndex(h),h<0)return{line:null,column:null,lastColumn:null};var d={source:h,originalLine:e.getArg(u,"line"),originalColumn:e.getArg(u,"column")},f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(u,"bias",i.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},Sn.BasicSourceMapConsumer=a;function s(c,u){var h=c;typeof c=="string"&&(h=e.parseSourceMapInput(c));var d=e.getArg(h,"version"),f=e.getArg(h,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var p={line:-1,column:0};this._sections=f.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var x=e.getArg(b,"offset"),w=e.getArg(x,"line"),S=e.getArg(x,"column");if(w<p.line||w===p.line&&S<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:w+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 h=0;h<this._sections[u].consumer.sources.length;h++)c.push(this._sections[u].consumer.sources[h]);return c}}),s.prototype.originalPositionFor=function(u){var h={generatedLine:e.getArg(u,"line"),generatedColumn:e.getArg(u,"column")},d=t.search(h,this._sections,function(p,b){var x=p.generatedLine-b.generatedOffset.generatedLine;return x||p.generatedColumn-b.generatedOffset.generatedColumn}),f=this._sections[d];return f?f.consumer.originalPositionFor({line:h.generatedLine-(f.generatedOffset.generatedLine-1),column:h.generatedColumn-(f.generatedOffset.generatedLine===h.generatedLine?f.generatedOffset.generatedColumn-1:0),bias: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,h){for(var d=0;d<this._sections.length;d++){var f=this._sections[d],p=f.consumer.sourceContentFor(u,!0);if(p)return p}if(h)return null;throw new Error('"'+u+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(u){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer._findSourceIndex(e.getArg(u,"source"))!==-1){var f=d.consumer.generatedPositionFor(u);if(f){var p={line:f.line+(d.generatedOffset.generatedLine-1),column:f.column+(d.generatedOffset.generatedLine===f.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},s.prototype._parseMappings=function(u,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var f=this._sections[d],p=f.consumer._generatedMappings,b=0;b<p.length;b++){var x=p[b],w=f.consumer._sources.at(x.source);w=e.computeSourceURL(f.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var S=null;x.name&&(S=f.consumer._names.at(x.name),this._names.add(S),S=this._names.indexOf(S));var k={source:w,generatedLine:x.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(f.generatedOffset.generatedLine===x.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:S};this.__generatedMappings.push(k),typeof k.originalLine=="number"&&this.__originalMappings.push(k)}r(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),r(this.__originalMappings,e.compareByOriginalPositions)},Sn.IndexedSourceMapConsumer=s,Sn}var gr={},wl;function U$(){if(wl)return gr;wl=1;var e=uc().SourceMapGenerator,t=jn(),n=/(\r?\n)/,o=10,r="$$$isSourceNode$$$";function i(a,l,s,c,u){this.children=[],this.sourceContents={},this.line=a??null,this.column=l??null,this.source=s??null,this.name=u??null,this[r]=!0,c!=null&&this.add(c)}return i.fromStringWithSourceMap=function(l,s,c){var u=new i,h=l.split(n),d=0,f=function(){var S=v(),k=v()||"";return S+k;function v(){return d<h.length?h[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(S){if(x!==null)if(p<S.generatedLine)w(x,f()),p++,b=0;else{var k=h[d]||"",v=k.substr(0,S.generatedColumn-b);h[d]=k.substr(S.generatedColumn-b),b=S.generatedColumn,w(x,v),x=S;return}for(;p<S.generatedLine;)u.add(f()),p++;if(b<S.generatedColumn){var k=h[d]||"";u.add(k.substr(0,S.generatedColumn)),h[d]=k.substr(S.generatedColumn),b=S.generatedColumn}x=S},this),d<h.length&&(x&&w(x,f()),u.add(h.splice(d).join(""))),s.sources.forEach(function(S){var k=s.sourceContentFor(S);k!=null&&(c!=null&&(S=t.join(c,S)),u.setSourceContent(S,k))}),u;function w(S,k){if(S===null||S.source===void 0)u.add(k);else{var v=c?t.join(c,S.source):S.source;u.add(new i(S.originalLine,S.originalColumn,v,k,S.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[r]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[r]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.walk=function(l){for(var s,c=0,u=this.children.length;c<u;c++)s=this.children[c],s[r]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(l){var s,c,u=this.children.length;if(u>0){for(s=[],c=0;c<u-1;c++)s.push(this.children[c]),s.push(l);s.push(this.children[c]),this.children=s}return this},i.prototype.replaceRight=function(l,s){var c=this.children[this.children.length-1];return c[r]?c.replaceRight(l,s):typeof c=="string"?this.children[this.children.length-1]=c.replace(l,s):this.children.push("".replace(l,s)),this},i.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},i.prototype.walkSourceContents=function(l){for(var s=0,c=this.children.length;s<c;s++)this.children[s][r]&&this.children[s].walkSourceContents(l);for(var u=Object.keys(this.sourceContents),s=0,c=u.length;s<c;s++)l(t.fromSetString(u[s]),this.sourceContents[u[s]])},i.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},i.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},c=new e(l),u=!1,h=null,d=null,f=null,p=null;return this.walk(function(b,x){s.code+=b,x.source!==null&&x.line!==null&&x.column!==null?((h!==x.source||d!==x.line||f!==x.column||p!==x.name)&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name}),h=x.source,d=x.line,f=x.column,p=x.name,u=!0):u&&(c.addMapping({generated:{line:s.line,column:s.column}}),h=null,u=!1);for(var w=0,S=b.length;w<S;w++)b.charCodeAt(w)===o?(s.line++,s.column=0,w+1===S?(h=null,u=!1):u&&c.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name})):s.column++}),this.walkSourceContents(function(b,x){c.setSourceContent(b,x)}),{code:s.code,map:c}},gr.SourceNode=i,gr}var $l;function W$(){return $l||($l=1,vn.SourceMapGenerator=uc().SourceMapGenerator,vn.SourceMapConsumer=G$().SourceMapConsumer,vn.SourceNode=U$().SourceNode),vn}(function(e,t){t.__esModule=!0;var n=be,o=void 0;try{var r=W$();o=r.SourceNode}catch{}o||(o=function(l,s,c,u){this.src="",u&&this.add(u)},o.prototype={add:function(s){n.isArray(s)&&(s=s.join("")),this.src+=s},prepend:function(s){n.isArray(s)&&(s=s.join("")),this.src=s+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function i(l,s,c){if(n.isArray(l)){for(var u=[],h=0,d=l.length;h<d;h++)u.push(s.wrap(l[h],c));return u}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function a(l){this.srcFile=l,this.source=[]}a.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,c){this.source.unshift(this.wrap(s,c))},push:function(s,c){this.source.push(this.wrap(s,c))},merge:function(){var s=this.empty();return this.each(function(c){s.add([" ",c,`
|
|
524
|
-
`])}),s},each:function(s){for(var
|
|
589
|
+
Expecting `+M.join(", ")+", got '"+(this.terminals_[S]||S)+"'":P="Parse error on line "+(p+1)+": Unexpected "+(S==1?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(P,{text:this.lexer.match,token:this.terminals_[S]||S,line:this.lexer.yylineno,loc:x,expected:M})}}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+v+", token: "+S);switch(_[0]){case 1:u.push(S),c.push(this.lexer.yytext),h.push(this.lexer.yylloc),u.push(_[1]),S=null,b=this.lexer.yyleng,f=this.lexer.yytext,p=this.lexer.yylineno,x=this.lexer.yylloc;break;case 2:if(R=this.productions_[_[1]][1],C.$=c[c.length-R],C._$={first_line:h[h.length-(R||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(R||1)].first_column,last_column:h[h.length-1].last_column},w&&(C._$.range=[h[h.length-(R||1)].range[0],h[h.length-1].range[1]]),y=this.performAction.call(C,f,b,p,this.yy,_[1],c,h),typeof y<"u")return y;R&&(u=u.slice(0,-1*R*2),c=c.slice(0,-1*R),h=h.slice(0,-1*R)),u.push(this.productions_[_[1]][0]),c.push(C.$),h.push(C._$),N=d[u[u.length-2]][u[u.length-1]],u.push(N);break;case 3:return!0}}return!0}},o=function(){var i={EOF:1,parseError:function(s,u){if(this.yy.parser)this.yy.parser.parseError(s,u);else throw new Error(s)},setInput:function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var u=s.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},unput:function(s){var u=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u-1),this.offset-=u;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===h.length?this.yylloc.first_column:0)+h[h.length-c.length].length-c[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-u]),this},more:function(){return this._more=!0,this},less:function(s){this.unput(this.match.slice(s))},pastInput:function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var s=this.pastInput(),u=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
590
|
+
`+u+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,u,c,h,d;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),p=0;p<f.length&&(c=this._input.match(this.rules[f[p]]),!(c&&(!u||c[0].length>u[0].length)&&(u=c,h=p,!this.options.flex)));p++);return u?(d=u[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],s=this.performAction.call(this,this.yy,this,f[h],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
591
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return i.options={},i.performAction=function(s,u,c,h){function d(f,p){return u.yytext=u.yytext.substring(f,u.yyleng-p+f)}switch(c){case 0:if(u.yytext.slice(-2)==="\\\\"?(d(0,1),this.begin("mu")):u.yytext.slice(-1)==="\\"?(d(0,1),this.begin("emu")):this.begin("mu"),u.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(d(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(u.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return u.yytext=d(1,2).replace(/\\"/g,'"'),80;case 32:return u.yytext=d(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return u.yytext=u.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i}();r.lexer=o;function a(){this.yy={}}return a.prototype=r,r.Parser=a,new a}();t.default=n,e.exports=t.default})(Ia,Ia.exports);var q_=Ia.exports,Ra={exports:{}},Ta={exports:{}};(function(e,t){t.__esModule=!0;function n(u){return u&&u.__esModule?u:{default:u}}var r=nt,o=n(r);function a(){this.parents=[]}a.prototype={constructor:a,mutating:!1,acceptKey:function(c,h){var d=this.accept(c[h]);if(this.mutating){if(d&&!a.prototype[d.type])throw new o.default('Unexpected node type "'+d.type+'" found when accepting '+h+" on "+c.type);c[h]=d}},acceptRequired:function(c,h){if(this.acceptKey(c,h),!c[h])throw new o.default(c.type+" requires "+h)},acceptArray:function(c){for(var h=0,d=c.length;h<d;h++)this.acceptKey(c,h),c[h]||(c.splice(h,1),h--,d--)},accept:function(c){if(c){if(!this[c.type])throw new o.default("Unknown type: "+c.type,c);this.current&&this.parents.unshift(this.current),this.current=c;var h=this[c.type](c);if(this.current=this.parents.shift(),!this.mutating||h)return h;if(h!==!1)return c}},Program:function(c){this.acceptArray(c.body)},MustacheStatement:i,Decorator:i,BlockStatement:l,DecoratorBlock:l,PartialStatement:s,PartialBlockStatement:function(c){s.call(this,c),this.acceptKey(c,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(c){this.acceptArray(c.pairs)},HashPair:function(c){this.acceptRequired(c,"value")}};function i(u){this.acceptRequired(u,"path"),this.acceptArray(u.params),this.acceptKey(u,"hash")}function l(u){i.call(this,u),this.acceptKey(u,"program"),this.acceptKey(u,"inverse")}function s(u){this.acceptRequired(u,"name"),this.acceptArray(u.params),this.acceptKey(u,"hash")}t.default=a,e.exports=t.default})(Ta,Ta.exports);var uu=Ta.exports;(function(e,t){t.__esModule=!0;function n(c){return c&&c.__esModule?c:{default:c}}var r=uu,o=n(r);function a(){var c=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=c}a.prototype=new o.default,a.prototype.Program=function(c){var h=!this.options.ignoreStandalone,d=!this.isRootSeen;this.isRootSeen=!0;for(var f=c.body,p=0,b=f.length;p<b;p++){var x=f[p],w=this.accept(x);if(w){var k=i(f,p,d),S=l(f,p,d),v=w.openStandalone&&k,_=w.closeStandalone&&S,y=w.inlineStandalone&&k&&S;w.close&&s(f,p,!0),w.open&&u(f,p,!0),h&&y&&(s(f,p),u(f,p)&&x.type==="PartialStatement"&&(x.indent=/([ \t]+$)/.exec(f[p-1].original)[1])),h&&v&&(s((x.program||x.inverse).body),u(f,p)),h&&_&&(s(f,p),u((x.inverse||x.program).body))}}return c},a.prototype.BlockStatement=a.prototype.DecoratorBlock=a.prototype.PartialBlockStatement=function(c){this.accept(c.program),this.accept(c.inverse);var h=c.program||c.inverse,d=c.program&&c.inverse,f=d,p=d;if(d&&d.chained)for(f=d.body[0].program;p.chained;)p=p.body[p.body.length-1].program;var b={open:c.openStrip.open,close:c.closeStrip.close,openStandalone:l(h.body),closeStandalone:i((f||h).body)};if(c.openStrip.close&&s(h.body,null,!0),d){var x=c.inverseStrip;x.open&&u(h.body,null,!0),x.close&&s(f.body,null,!0),c.closeStrip.open&&u(p.body,null,!0),!this.options.ignoreStandalone&&i(h.body)&&l(f.body)&&(u(h.body),s(f.body))}else c.closeStrip.open&&u(h.body,null,!0);return b},a.prototype.Decorator=a.prototype.MustacheStatement=function(c){return c.strip},a.prototype.PartialStatement=a.prototype.CommentStatement=function(c){var h=c.strip||{};return{inlineStandalone:!0,open:h.open,close:h.close}};function i(c,h,d){h===void 0&&(h=c.length);var f=c[h-1],p=c[h-2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(f.original)}function l(c,h,d){h===void 0&&(h=-1);var f=c[h+1],p=c[h+2];if(!f)return d;if(f.type==="ContentStatement")return(p||!d?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(f.original)}function s(c,h,d){var f=c[h==null?0:h+1];if(!(!f||f.type!=="ContentStatement"||!d&&f.rightStripped)){var p=f.value;f.value=f.value.replace(d?/^\s+/:/^[ \t]*\r?\n?/,""),f.rightStripped=f.value!==p}}function u(c,h,d){var f=c[h==null?c.length-1:h-1];if(!(!f||f.type!=="ContentStatement"||!d&&f.leftStripped)){var p=f.value;return f.value=f.value.replace(d?/\s+$/:/[ \t]+$/,""),f.leftStripped=f.value!==p,f.leftStripped}}t.default=a,e.exports=t.default})(Ra,Ra.exports);var V_=Ra.exports,rt={};rt.__esModule=!0;rt.SourceLocation=J_;rt.id=X_;rt.stripFlags=Q_;rt.stripComment=eC;rt.preparePath=tC;rt.prepareMustache=nC;rt.prepareRawBlock=rC;rt.prepareBlock=oC;rt.prepareProgram=aC;rt.preparePartialBlock=iC;function Y_(e){return e&&e.__esModule?e:{default:e}}var K_=nt,fi=Y_(K_);function pi(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new fi.default(e.path.original+" doesn't match "+t,n)}}function J_(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 X_(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function Q_(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function eC(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function tC(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",o=[],a=0,i=0,l=t.length;i<l;i++){var s=t[i].part,u=t[i].original!==s;if(r+=(t[i].separator||"")+s,!u&&(s===".."||s==="."||s==="this")){if(o.length>0)throw new fi.default("Invalid path: "+r,{loc:n});s===".."&&a++}else o.push(s)}return{type:"PathExpression",data:e,depth:a,parts:o,original:r,loc:n}}function nC(e,t,n,r,o,a){var i=r.charAt(3)||r.charAt(2),l=i!=="{"&&i!=="&",s=/\*/.test(r);return{type:s?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:l,strip:o,loc:this.locInfo(a)}}function rC(e,t,n,r){pi(e,n),r=this.locInfo(r);var o={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function oC(e,t,n,r,o,a){r&&r.path&&pi(e,r);var i=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,s=void 0;if(n){if(i)throw new fi.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),s=n.strip,l=n.program}return o&&(o=l,l=t,t=o),{type:i?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:s,closeStrip:r&&r.strip,loc:this.locInfo(a)}}function aC(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function iC(e,t,n,r){return pi(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}}tr.__esModule=!0;tr.parseWithoutProcessing=du;tr.parse=gC;function lC(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 gi(e){return e&&e.__esModule?e:{default:e}}var sC=q_,Na=gi(sC),cC=V_,uC=gi(cC),dC=rt,hC=lC(dC),fC=nt,En=gi(fC),pC=xe;tr.parser=Na.default;var yr={};pC.extend(yr,hC);function du(e,t){if(e.type==="Program")return mC(e),e;Na.default.yy=yr,yr.locInfo=function(r){return new yr.SourceLocation(t&&t.srcName,r)};var n=Na.default.parse(e);return n}function gC(e,t){var n=du(e,t),r=new uC.default(t);return r.accept(n)}function mC(e){Ea(e)}function Ea(e){if(e!=null){if(Array.isArray(e)){e.forEach(Ea);return}if(typeof e=="object"){if(e.type==="PathExpression"){if(!bC(e.depth))throw new En.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(e.parts))throw new En.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 En.default("Invalid AST: PathExpression.parts must only contain strings")}else if(e.type==="NumberLiteral"){if(typeof e.value!="number"||!isFinite(e.value))throw new En.default("Invalid AST: NumberLiteral.value must be a number")}else if(e.type==="BooleanLiteral"&&typeof e.value!="boolean")throw new En.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(e).forEach(function(n){n!=="loc"&&Ea(e[n])})}}}function bC(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}var nr={};nr.__esModule=!0;nr.Compiler=Pa;nr.precompile=wC;nr.compile=SC;function hu(e){return e&&e.__esModule?e:{default:e}}var xC=nt,Dn=hu(xC),Vn=xe,vC=cu,Pn=hu(vC),kC=[].slice;function Pa(){}Pa.prototype={compiler:Pa,equals:function(t){var n=this.opcodes.length;if(t.opcodes.length!==n)return!1;for(var r=0;r<n;r++){var o=this.opcodes[r],a=t.opcodes[r];if(o.opcode!==a.opcode||!fu(o.args,a.args))return!1}n=this.children.length;for(var r=0;r<n;r++)if(!this.children[r].equals(t.children[r]))return!1;return!0},guid:0,compile:function(t,n){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=n,this.stringParams=n.stringParams,this.trackIds=n.trackIds,n.blockParams=n.blockParams||[],n.knownHelpers=Vn.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},n.knownHelpers),this.accept(t)},compileProgram:function(t){var n=new this.compiler,r=n.compile(t,this.options),o=this.guid++;return this.usePartial=this.usePartial||r.usePartial,this.children[o]=r,this.useDepths=this.useDepths||r.useDepths,o},accept:function(t){if(!this[t.type])throw new Dn.default("Unknown type: "+t.type,t);this.sourceNode.unshift(t);var n=this[t.type](t);return this.sourceNode.shift(),n},Program:function(t){this.options.blockParams.unshift(t.blockParams);for(var n=t.body,r=n.length,o=0;o<r;o++)this.accept(n[o]);return this.options.blockParams.shift(),this.isSimple=r===1,this.blockParams=t.blockParams?t.blockParams.length:0,this},BlockStatement:function(t){ts(t);var n=t.program,r=t.inverse;n=n&&this.compileProgram(n),r=r&&this.compileProgram(r);var o=this.classifySexpr(t);o==="helper"?this.helperSexpr(t,n,r):o==="simple"?(this.simpleSexpr(t),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("blockValue",t.path.original)):(this.ambiguousSexpr(t,n,r),this.opcode("pushProgram",n),this.opcode("pushProgram",r),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(t){var n=t.program&&this.compileProgram(t.program),r=this.setupFullMustacheParams(t,n,void 0),o=t.path;this.useDecorators=!0,this.opcode("registerDecorator",r.length,o.original)},PartialStatement:function(t){this.usePartial=!0;var n=t.program;n&&(n=this.compileProgram(t.program));var r=t.params;if(r.length>1)throw new Dn.default("Unsupported number of partial arguments: "+r.length,t);r.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):r.push({type:"PathExpression",parts:[],depth:0}));var o=t.name.original,a=t.name.type==="SubExpression";a&&this.accept(t.name),this.setupFullMustacheParams(t,n,void 0,!0);var i=t.indent||"";this.options.preventIndent&&i&&(this.opcode("appendContent",i),i=""),this.opcode("invokePartial",a,o,i),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){ts(t);var n=this.classifySexpr(t);n==="simple"?this.simpleSexpr(t):n==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,n,r){var o=t.path,a=o.parts[0],i=n!=null||r!=null;this.opcode("getContext",o.depth),this.opcode("pushProgram",n),this.opcode("pushProgram",r),o.strict=!0,this.accept(o),this.opcode("invokeAmbiguous",a,i)},simpleSexpr:function(t){var n=t.path;n.strict=!0,this.accept(n),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,n,r){var o=this.setupFullMustacheParams(t,n,r),a=t.path,i=a.parts[0];if(this.options.knownHelpers[i])this.opcode("invokeKnownHelper",o.length,i);else{if(this.options.knownHelpersOnly)throw new Dn.default("You specified knownHelpersOnly, but used the unknown helper "+i,t);a.strict=!0,a.falsy=!0,this.accept(a),this.opcode("invokeHelper",o.length,a.original,Pn.default.helpers.simpleId(a))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var n=t.parts[0],r=Pn.default.helpers.scopedId(t),o=!t.depth&&!r&&this.blockParamIndex(n);o?this.opcode("lookupBlockParam",o,t.parts):n?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,r):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var n=t.pairs,r=0,o=n.length;for(this.opcode("pushHash");r<o;r++)this.pushParam(n[r].value);for(;r--;)this.opcode("assignToHash",n[r].key);this.opcode("popHash")},opcode:function(t){this.opcodes.push({opcode:t,args:kC.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(t){t&&(this.useDepths=!0)},classifySexpr:function(t){var n=Pn.default.helpers.simpleId(t.path),r=n&&!!this.blockParamIndex(t.path.parts[0]),o=!r&&Pn.default.helpers.helperExpression(t),a=!r&&(o||n);if(a&&!o){var i=t.path.parts[0],l=this.options;l.knownHelpers[i]?o=!0:l.knownHelpersOnly&&(a=!1)}return o?"helper":a?"ambiguous":"simple"},pushParams:function(t){for(var n=0,r=t.length;n<r;n++)this.pushParam(t[n])},pushParam:function(t){var n=t.value!=null?t.value:t.original||"";if(this.stringParams)n.replace&&(n=n.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",n,t.type),t.type==="SubExpression"&&this.accept(t);else{if(this.trackIds){var r=void 0;if(t.parts&&!Pn.default.helpers.scopedId(t)&&!t.depth&&(r=this.blockParamIndex(t.parts[0])),r){var o=t.parts.slice(1).join(".");this.opcode("pushId","BlockParam",r,o)}else n=t.original||n,n.replace&&(n=n.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",t.type,n)}this.accept(t)}},setupFullMustacheParams:function(t,n,r,o){var a=t.params;return this.pushParams(a),this.opcode("pushProgram",n),this.opcode("pushProgram",r),t.hash?this.accept(t.hash):this.opcode("emptyHash",o),a},blockParamIndex:function(t){for(var n=0,r=this.options.blockParams.length;n<r;n++){var o=this.options.blockParams[n],a=o&&Vn.indexOf(o,t);if(o&&a>=0)return[n,a]}}};function wC(e,t,n){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Dn.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),o=new n.Compiler().compile(r,t);return new n.JavaScriptCompiler().compile(o,t)}function SC(e,t,n){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Dn.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=Vn.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=void 0;function o(){var i=n.parse(e,t),l=new n.Compiler().compile(i,t),s=new n.JavaScriptCompiler().compile(l,t,void 0,!0);return n.template(s)}function a(i,l){return r||(r=o()),r.call(this,i,l)}return a._setup=function(i){return r||(r=o()),r._setup(i)},a._child=function(i,l,s,u){return r||(r=o()),r._child(i,l,s,u)},a}function fu(e,t){if(e===t)return!0;if(Vn.isArray(e)&&Vn.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!fu(e[n],t[n]))return!1;return!0}}function ts(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 Ma={exports:{}},Oa={exports:{}},Mn={},Lo={},br={},xr={},ns;function $C(){if(ns)return xr;ns=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return xr.encode=function(t){if(0<=t&&t<e.length)return e[t];throw new TypeError("Must be between 0 and 63: "+t)},xr.decode=function(t){var n=65,r=90,o=97,a=122,i=48,l=57,s=43,u=47,c=26,h=52;return n<=t&&t<=r?t-n:o<=t&&t<=a?t-o+c:i<=t&&t<=l?t-i+h:t==s?62:t==u?63:-1},xr}var rs;function pu(){if(rs)return br;rs=1;var e=$C(),t=5,n=1<<t,r=n-1,o=n;function a(l){return l<0?(-l<<1)+1:(l<<1)+0}function i(l){var s=(l&1)===1,u=l>>1;return s?-u:u}return br.encode=function(s){var u="",c,h=a(s);do c=h&r,h>>>=t,h>0&&(c|=o),u+=e.encode(c);while(h>0);return u},br.decode=function(s,u,c){var h=s.length,d=0,f=0,p,b;do{if(u>=h)throw new Error("Expected more digits in base 64 VLQ value.");if(b=e.decode(s.charCodeAt(u++)),b===-1)throw new Error("Invalid base64 digit: "+s.charAt(u-1));p=!!(b&o),b&=r,d=d+(b<<f),f+=t}while(p);c.value=i(d),c.rest=u},br}var zo={},os;function rr(){return os||(os=1,function(e){function t(v,_,y){if(_ in v)return v[_];if(arguments.length===3)return y;throw new Error('"'+_+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(v){var _=v.match(n);return _?{scheme:_[1],auth:_[2],host:_[3],port:_[4],path:_[5]}:null}e.urlParse=o;function a(v){var _="";return v.scheme&&(_+=v.scheme+":"),_+="//",v.auth&&(_+=v.auth+"@"),v.host&&(_+=v.host),v.port&&(_+=":"+v.port),v.path&&(_+=v.path),_}e.urlGenerate=a;function i(v){var _=v,y=o(v);if(y){if(!y.path)return v;_=y.path}for(var C=e.isAbsolute(_),I=_.split(/\/+/),R,N=0,M=I.length-1;M>=0;M--)R=I[M],R==="."?I.splice(M,1):R===".."?N++:N>0&&(R===""?(I.splice(M+1,N),N=0):(I.splice(M,2),N--));return _=I.join("/"),_===""&&(_=C?"/":"."),y?(y.path=_,a(y)):_}e.normalize=i;function l(v,_){v===""&&(v="."),_===""&&(_=".");var y=o(_),C=o(v);if(C&&(v=C.path||"/"),y&&!y.scheme)return C&&(y.scheme=C.scheme),a(y);if(y||_.match(r))return _;if(C&&!C.host&&!C.path)return C.host=_,a(C);var I=_.charAt(0)==="/"?_:i(v.replace(/\/+$/,"")+"/"+_);return C?(C.path=I,a(C)):I}e.join=l,e.isAbsolute=function(v){return v.charAt(0)==="/"||n.test(v)};function s(v,_){v===""&&(v="."),v=v.replace(/\/$/,"");for(var y=0;_.indexOf(v+"/")!==0;){var C=v.lastIndexOf("/");if(C<0||(v=v.slice(0,C),v.match(/^([^\/]+:\/)?\/*$/)))return _;++y}return Array(y+1).join("../")+_.substr(v.length+1)}e.relative=s;var u=function(){var v=Object.create(null);return!("__proto__"in v)}();function c(v){return v}function h(v){return f(v)?"$"+v:v}e.toSetString=u?c:h;function d(v){return f(v)?v.slice(1):v}e.fromSetString=u?c:d;function f(v){if(!v)return!1;var _=v.length;if(_<9||v.charCodeAt(_-1)!==95||v.charCodeAt(_-2)!==95||v.charCodeAt(_-3)!==111||v.charCodeAt(_-4)!==116||v.charCodeAt(_-5)!==111||v.charCodeAt(_-6)!==114||v.charCodeAt(_-7)!==112||v.charCodeAt(_-8)!==95||v.charCodeAt(_-9)!==95)return!1;for(var y=_-10;y>=0;y--)if(v.charCodeAt(y)!==36)return!1;return!0}function p(v,_,y){var C=x(v.source,_.source);return C!==0||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0||y)||(C=v.generatedColumn-_.generatedColumn,C!==0)||(C=v.generatedLine-_.generatedLine,C!==0)?C:x(v.name,_.name)}e.compareByOriginalPositions=p;function b(v,_,y){var C=v.generatedLine-_.generatedLine;return C!==0||(C=v.generatedColumn-_.generatedColumn,C!==0||y)||(C=x(v.source,_.source),C!==0)||(C=v.originalLine-_.originalLine,C!==0)||(C=v.originalColumn-_.originalColumn,C!==0)?C:x(v.name,_.name)}e.compareByGeneratedPositionsDeflated=b;function x(v,_){return v===_?0:v===null?1:_===null?-1:v>_?1:-1}function w(v,_){var y=v.generatedLine-_.generatedLine;return y!==0||(y=v.generatedColumn-_.generatedColumn,y!==0)||(y=x(v.source,_.source),y!==0)||(y=v.originalLine-_.originalLine,y!==0)||(y=v.originalColumn-_.originalColumn,y!==0)?y:x(v.name,_.name)}e.compareByGeneratedPositionsInflated=w;function k(v){return JSON.parse(v.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=k;function S(v,_,y){if(_=_||"",v&&(v[v.length-1]!=="/"&&_[0]!=="/"&&(v+="/"),_=v+_),y){var C=o(y);if(!C)throw new Error("sourceMapURL could not be parsed");if(C.path){var I=C.path.lastIndexOf("/");I>=0&&(C.path=C.path.substring(0,I+1))}_=l(a(C),_)}return i(_)}e.computeSourceURL=S}(zo)),zo}var jo={},as;function gu(){if(as)return jo;as=1;var e=rr(),t=Object.prototype.hasOwnProperty,n=typeof Map<"u";function r(){this._array=[],this._set=n?new Map:Object.create(null)}return r.fromArray=function(a,i){for(var l=new r,s=0,u=a.length;s<u;s++)l.add(a[s],i);return l},r.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},r.prototype.add=function(a,i){var l=n?a:e.toSetString(a),s=n?this.has(a):t.call(this._set,l),u=this._array.length;(!s||i)&&this._array.push(a),s||(n?this._set.set(a,u):this._set[l]=u)},r.prototype.has=function(a){if(n)return this._set.has(a);var i=e.toSetString(a);return t.call(this._set,i)},r.prototype.indexOf=function(a){if(n){var i=this._set.get(a);if(i>=0)return i}else{var l=e.toSetString(a);if(t.call(this._set,l))return this._set[l]}throw new Error('"'+a+'" is not in the set.')},r.prototype.at=function(a){if(a>=0&&a<this._array.length)return this._array[a];throw new Error("No element indexed by "+a)},r.prototype.toArray=function(){return this._array.slice()},jo.ArraySet=r,jo}var Bo={},is;function _C(){if(is)return Bo;is=1;var e=rr();function t(r,o){var a=r.generatedLine,i=o.generatedLine,l=r.generatedColumn,s=o.generatedColumn;return i>a||i==a&&s>=l||e.compareByGeneratedPositionsInflated(r,o)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return n.prototype.unsortedForEach=function(o,a){this._array.forEach(o,a)},n.prototype.add=function(o){t(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},Bo.MappingList=n,Bo}var ls;function mu(){if(ls)return Lo;ls=1;var e=pu(),t=rr(),n=gu().ArraySet,r=_C().MappingList;function o(a){a||(a={}),this._file=t.getArg(a,"file",null),this._sourceRoot=t.getArg(a,"sourceRoot",null),this._skipValidation=t.getArg(a,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}return o.prototype._version=3,o.fromSourceMap=function(i){var l=i.sourceRoot,s=new o({file:i.file,sourceRoot:l});return i.eachMapping(function(u){var c={generated:{line:u.generatedLine,column:u.generatedColumn}};u.source!=null&&(c.source=u.source,l!=null&&(c.source=t.relative(l,c.source)),c.original={line:u.originalLine,column:u.originalColumn},u.name!=null&&(c.name=u.name)),s.addMapping(c)}),i.sources.forEach(function(u){var c=u;l!==null&&(c=t.relative(l,u)),s._sources.has(c)||s._sources.add(c);var h=i.sourceContentFor(u);h!=null&&s.setSourceContent(u,h)}),s},o.prototype.addMapping=function(i){var l=t.getArg(i,"generated"),s=t.getArg(i,"original",null),u=t.getArg(i,"source",null),c=t.getArg(i,"name",null);this._skipValidation||this._validateMapping(l,s,u,c),u!=null&&(u=String(u),this._sources.has(u)||this._sources.add(u)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:s!=null&&s.line,originalColumn:s!=null&&s.column,source:u,name:c})},o.prototype.setSourceContent=function(i,l){var s=i;this._sourceRoot!=null&&(s=t.relative(this._sourceRoot,s)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(s)]=l):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(s)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(i,l,s){var u=l;if(l==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);u=i.file}var c=this._sourceRoot;c!=null&&(u=t.relative(c,u));var h=new n,d=new n;this._mappings.unsortedForEach(function(f){if(f.source===u&&f.originalLine!=null){var p=i.originalPositionFor({line:f.originalLine,column:f.originalColumn});p.source!=null&&(f.source=p.source,s!=null&&(f.source=t.join(s,f.source)),c!=null&&(f.source=t.relative(c,f.source)),f.originalLine=p.line,f.originalColumn=p.column,p.name!=null&&(f.name=p.name))}var b=f.source;b!=null&&!h.has(b)&&h.add(b);var x=f.name;x!=null&&!d.has(x)&&d.add(x)},this),this._sources=h,this._names=d,i.sources.forEach(function(f){var p=i.sourceContentFor(f);p!=null&&(s!=null&&(f=t.join(s,f)),c!=null&&(f=t.relative(c,f)),this.setSourceContent(f,p))},this)},o.prototype._validateMapping=function(i,l,s,u){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!l&&!s&&!u)){if(i&&"line"in i&&"column"in i&&l&&"line"in l&&"column"in l&&i.line>0&&i.column>=0&&l.line>0&&l.column>=0&&s)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:i,source:s,original:l,name:u}))}},o.prototype._serializeMappings=function(){for(var i=0,l=1,s=0,u=0,c=0,h=0,d="",f,p,b,x,w=this._mappings.toArray(),k=0,S=w.length;k<S;k++){if(p=w[k],f="",p.generatedLine!==l)for(i=0;p.generatedLine!==l;)f+=";",l++;else if(k>0){if(!t.compareByGeneratedPositionsInflated(p,w[k-1]))continue;f+=","}f+=e.encode(p.generatedColumn-i),i=p.generatedColumn,p.source!=null&&(x=this._sources.indexOf(p.source),f+=e.encode(x-h),h=x,f+=e.encode(p.originalLine-1-u),u=p.originalLine-1,f+=e.encode(p.originalColumn-s),s=p.originalColumn,p.name!=null&&(b=this._names.indexOf(p.name),f+=e.encode(b-c),c=b)),d+=f}return d},o.prototype._generateSourcesContent=function(i,l){return i.map(function(s){if(!this._sourcesContents)return null;l!=null&&(s=t.relative(l,s));var u=t.toSetString(s);return Object.prototype.hasOwnProperty.call(this._sourcesContents,u)?this._sourcesContents[u]:null},this)},o.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},Lo.SourceMapGenerator=o,Lo}var On={},Do={},ss;function CC(){return ss||(ss=1,function(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(n,r,o,a,i,l){var s=Math.floor((r-n)/2)+n,u=i(o,a[s],!0);return u===0?s:u>0?r-s>1?t(s,r,o,a,i,l):l==e.LEAST_UPPER_BOUND?r<a.length?r:-1:s:s-n>1?t(n,s,o,a,i,l):l==e.LEAST_UPPER_BOUND?s:n<0?-1:n}e.search=function(r,o,a,i){if(o.length===0)return-1;var l=t(-1,o.length,r,o,a,i||e.GREATEST_LOWER_BOUND);if(l<0)return-1;for(;l-1>=0&&a(o[l],o[l-1],!0)===0;)--l;return l}}(Do)),Do}var Fo={},cs;function AC(){if(cs)return Fo;cs=1;function e(r,o,a){var i=r[o];r[o]=r[a],r[a]=i}function t(r,o){return Math.round(r+Math.random()*(o-r))}function n(r,o,a,i){if(a<i){var l=t(a,i),s=a-1;e(r,l,i);for(var u=r[i],c=a;c<i;c++)o(r[c],u)<=0&&(s+=1,e(r,s,c));e(r,s+1,c);var h=s+1;n(r,o,a,h-1),n(r,o,h+1,i)}}return Fo.quickSort=function(r,o){n(r,o,0,r.length-1)},Fo}var us;function yC(){if(us)return On;us=1;var e=rr(),t=CC(),n=gu().ArraySet,r=pu(),o=AC().quickSort;function a(u,c){var h=u;return typeof u=="string"&&(h=e.parseSourceMapInput(u)),h.sections!=null?new s(h,c):new i(h,c)}a.fromSourceMap=function(u,c){return i.fromSourceMap(u,c)},a.prototype._version=3,a.prototype.__generatedMappings=null,Object.defineProperty(a.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),a.prototype.__originalMappings=null,Object.defineProperty(a.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),a.prototype._charIsMappingSeparator=function(c,h){var d=c.charAt(h);return d===";"||d===","},a.prototype._parseMappings=function(c,h){throw new Error("Subclasses must implement _parseMappings")},a.GENERATED_ORDER=1,a.ORIGINAL_ORDER=2,a.GREATEST_LOWER_BOUND=1,a.LEAST_UPPER_BOUND=2,a.prototype.eachMapping=function(c,h,d){var f=h||null,p=d||a.GENERATED_ORDER,b;switch(p){case a.GENERATED_ORDER:b=this._generatedMappings;break;case a.ORIGINAL_ORDER:b=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var x=this.sourceRoot;b.map(function(w){var k=w.source===null?null:this._sources.at(w.source);return k=e.computeSourceURL(x,k,this._sourceMapURL),{source:k,generatedLine:w.generatedLine,generatedColumn:w.generatedColumn,originalLine:w.originalLine,originalColumn:w.originalColumn,name:w.name===null?null:this._names.at(w.name)}},this).forEach(c,f)},a.prototype.allGeneratedPositionsFor=function(c){var h=e.getArg(c,"line"),d={source:e.getArg(c,"source"),originalLine:h,originalColumn:e.getArg(c,"column",0)};if(d.source=this._findSourceIndex(d.source),d.source<0)return[];var f=[],p=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,t.LEAST_UPPER_BOUND);if(p>=0){var b=this._originalMappings[p];if(c.column===void 0)for(var x=b.originalLine;b&&b.originalLine===x;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p];else for(var w=b.originalColumn;b&&b.originalLine===h&&b.originalColumn==w;)f.push({line:e.getArg(b,"generatedLine",null),column:e.getArg(b,"generatedColumn",null),lastColumn:e.getArg(b,"lastGeneratedColumn",null)}),b=this._originalMappings[++p]}return f},On.SourceMapConsumer=a;function i(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));var d=e.getArg(h,"version"),f=e.getArg(h,"sources"),p=e.getArg(h,"names",[]),b=e.getArg(h,"sourceRoot",null),x=e.getArg(h,"sourcesContent",null),w=e.getArg(h,"mappings"),k=e.getArg(h,"file",null);if(d!=this._version)throw new Error("Unsupported version: "+d);b&&(b=e.normalize(b)),f=f.map(String).map(e.normalize).map(function(S){return b&&e.isAbsolute(b)&&e.isAbsolute(S)?e.relative(b,S):S}),this._names=n.fromArray(p.map(String),!0),this._sources=n.fromArray(f,!0),this._absoluteSources=this._sources.toArray().map(function(S){return e.computeSourceURL(b,S,c)}),this.sourceRoot=b,this.sourcesContent=x,this._mappings=w,this._sourceMapURL=c,this.file=k}i.prototype=Object.create(a.prototype),i.prototype.consumer=a,i.prototype._findSourceIndex=function(u){var c=u;if(this.sourceRoot!=null&&(c=e.relative(this.sourceRoot,c)),this._sources.has(c))return this._sources.indexOf(c);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==u)return h;return-1},i.fromSourceMap=function(c,h){var d=Object.create(i.prototype),f=d._names=n.fromArray(c._names.toArray(),!0),p=d._sources=n.fromArray(c._sources.toArray(),!0);d.sourceRoot=c._sourceRoot,d.sourcesContent=c._generateSourcesContent(d._sources.toArray(),d.sourceRoot),d.file=c._file,d._sourceMapURL=h,d._absoluteSources=d._sources.toArray().map(function(y){return e.computeSourceURL(d.sourceRoot,y,h)});for(var b=c._mappings.toArray().slice(),x=d.__generatedMappings=[],w=d.__originalMappings=[],k=0,S=b.length;k<S;k++){var v=b[k],_=new l;_.generatedLine=v.generatedLine,_.generatedColumn=v.generatedColumn,v.source&&(_.source=p.indexOf(v.source),_.originalLine=v.originalLine,_.originalColumn=v.originalColumn,v.name&&(_.name=f.indexOf(v.name)),w.push(_)),x.push(_)}return o(d.__originalMappings,e.compareByOriginalPositions),d},i.prototype._version=3,Object.defineProperty(i.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}i.prototype._parseMappings=function(c,h){for(var d=1,f=0,p=0,b=0,x=0,w=0,k=c.length,S=0,v={},_={},y=[],C=[],I,R,N,M,P;S<k;)if(c.charAt(S)===";")d++,S++,f=0;else if(c.charAt(S)===",")S++;else{for(I=new l,I.generatedLine=d,M=S;M<k&&!this._charIsMappingSeparator(c,M);M++);if(R=c.slice(S,M),N=v[R],N)S+=R.length;else{for(N=[];S<M;)r.decode(c,S,_),P=_.value,S=_.rest,N.push(P);if(N.length===2)throw new Error("Found a source, but no line and column");if(N.length===3)throw new Error("Found a source and line, but no column");v[R]=N}I.generatedColumn=f+N[0],f=I.generatedColumn,N.length>1&&(I.source=x+N[1],x+=N[1],I.originalLine=p+N[2],p=I.originalLine,I.originalLine+=1,I.originalColumn=b+N[3],b=I.originalColumn,N.length>4&&(I.name=w+N[4],w+=N[4])),C.push(I),typeof I.originalLine=="number"&&y.push(I)}o(C,e.compareByGeneratedPositionsDeflated),this.__generatedMappings=C,o(y,e.compareByOriginalPositions),this.__originalMappings=y},i.prototype._findMapping=function(c,h,d,f,p,b){if(c[d]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(c[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+c[f]);return t.search(c,h,p,b)},i.prototype.computeColumnSpans=function(){for(var c=0;c<this._generatedMappings.length;++c){var h=this._generatedMappings[c];if(c+1<this._generatedMappings.length){var d=this._generatedMappings[c+1];if(h.generatedLine===d.generatedLine){h.lastGeneratedColumn=d.generatedColumn-1;continue}}h.lastGeneratedColumn=1/0}},i.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=this._findMapping(h,this._generatedMappings,"generatedLine","generatedColumn",e.compareByGeneratedPositionsDeflated,e.getArg(c,"bias",a.GREATEST_LOWER_BOUND));if(d>=0){var f=this._generatedMappings[d];if(f.generatedLine===h.generatedLine){var p=e.getArg(f,"source",null);p!==null&&(p=this._sources.at(p),p=e.computeSourceURL(this.sourceRoot,p,this._sourceMapURL));var b=e.getArg(f,"name",null);return b!==null&&(b=this._names.at(b)),{source:p,line:e.getArg(f,"originalLine",null),column:e.getArg(f,"originalColumn",null),name:b}}}return{source:null,line:null,column:null,name:null}},i.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(c){return c==null}):!1},i.prototype.sourceContentFor=function(c,h){if(!this.sourcesContent)return null;var d=this._findSourceIndex(c);if(d>=0)return this.sourcesContent[d];var f=c;this.sourceRoot!=null&&(f=e.relative(this.sourceRoot,f));var p;if(this.sourceRoot!=null&&(p=e.urlParse(this.sourceRoot))){var b=f.replace(/^file:\/\//,"");if(p.scheme=="file"&&this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];if((!p.path||p.path=="/")&&this._sources.has("/"+f))return this.sourcesContent[this._sources.indexOf("/"+f)]}if(h)return null;throw new Error('"'+f+'" is not in the SourceMap.')},i.prototype.generatedPositionFor=function(c){var h=e.getArg(c,"source");if(h=this._findSourceIndex(h),h<0)return{line:null,column:null,lastColumn:null};var d={source:h,originalLine:e.getArg(c,"line"),originalColumn:e.getArg(c,"column")},f=this._findMapping(d,this._originalMappings,"originalLine","originalColumn",e.compareByOriginalPositions,e.getArg(c,"bias",a.GREATEST_LOWER_BOUND));if(f>=0){var p=this._originalMappings[f];if(p.source===d.source)return{line:e.getArg(p,"generatedLine",null),column:e.getArg(p,"generatedColumn",null),lastColumn:e.getArg(p,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},On.BasicSourceMapConsumer=i;function s(u,c){var h=u;typeof u=="string"&&(h=e.parseSourceMapInput(u));var d=e.getArg(h,"version"),f=e.getArg(h,"sections");if(d!=this._version)throw new Error("Unsupported version: "+d);this._sources=new n,this._names=new n;var p={line:-1,column:0};this._sections=f.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var x=e.getArg(b,"offset"),w=e.getArg(x,"line"),k=e.getArg(x,"column");if(w<p.line||w===p.line&&k<p.column)throw new Error("Section offsets must be ordered and non-overlapping.");return p=x,{generatedOffset:{generatedLine:w+1,generatedColumn:k+1},consumer:new a(e.getArg(b,"map"),c)}})}return s.prototype=Object.create(a.prototype),s.prototype.constructor=a,s.prototype._version=3,Object.defineProperty(s.prototype,"sources",{get:function(){for(var u=[],c=0;c<this._sections.length;c++)for(var h=0;h<this._sections[c].consumer.sources.length;h++)u.push(this._sections[c].consumer.sources[h]);return u}}),s.prototype.originalPositionFor=function(c){var h={generatedLine:e.getArg(c,"line"),generatedColumn:e.getArg(c,"column")},d=t.search(h,this._sections,function(p,b){var x=p.generatedLine-b.generatedOffset.generatedLine;return x||p.generatedColumn-b.generatedOffset.generatedColumn}),f=this._sections[d];return f?f.consumer.originalPositionFor({line:h.generatedLine-(f.generatedOffset.generatedLine-1),column:h.generatedColumn-(f.generatedOffset.generatedLine===h.generatedLine?f.generatedOffset.generatedColumn-1:0),bias:c.bias}):{source:null,line:null,column:null,name:null}},s.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(c){return c.consumer.hasContentsOfAllSources()})},s.prototype.sourceContentFor=function(c,h){for(var d=0;d<this._sections.length;d++){var f=this._sections[d],p=f.consumer.sourceContentFor(c,!0);if(p)return p}if(h)return null;throw new Error('"'+c+'" is not in the SourceMap.')},s.prototype.generatedPositionFor=function(c){for(var h=0;h<this._sections.length;h++){var d=this._sections[h];if(d.consumer._findSourceIndex(e.getArg(c,"source"))!==-1){var f=d.consumer.generatedPositionFor(c);if(f){var p={line:f.line+(d.generatedOffset.generatedLine-1),column:f.column+(d.generatedOffset.generatedLine===f.line?d.generatedOffset.generatedColumn-1:0)};return p}}}return{line:null,column:null}},s.prototype._parseMappings=function(c,h){this.__generatedMappings=[],this.__originalMappings=[];for(var d=0;d<this._sections.length;d++)for(var f=this._sections[d],p=f.consumer._generatedMappings,b=0;b<p.length;b++){var x=p[b],w=f.consumer._sources.at(x.source);w=e.computeSourceURL(f.consumer.sourceRoot,w,this._sourceMapURL),this._sources.add(w),w=this._sources.indexOf(w);var k=null;x.name&&(k=f.consumer._names.at(x.name),this._names.add(k),k=this._names.indexOf(k));var S={source:w,generatedLine:x.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:x.generatedColumn+(f.generatedOffset.generatedLine===x.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:x.originalLine,originalColumn:x.originalColumn,name:k};this.__generatedMappings.push(S),typeof S.originalLine=="number"&&this.__originalMappings.push(S)}o(this.__generatedMappings,e.compareByGeneratedPositionsDeflated),o(this.__originalMappings,e.compareByOriginalPositions)},On.IndexedSourceMapConsumer=s,On}var Ho={},ds;function IC(){if(ds)return Ho;ds=1;var e=mu().SourceMapGenerator,t=rr(),n=/(\r?\n)/,r=10,o="$$$isSourceNode$$$";function a(i,l,s,u,c){this.children=[],this.sourceContents={},this.line=i??null,this.column=l??null,this.source=s??null,this.name=c??null,this[o]=!0,u!=null&&this.add(u)}return a.fromStringWithSourceMap=function(l,s,u){var c=new a,h=l.split(n),d=0,f=function(){var k=v(),S=v()||"";return k+S;function v(){return d<h.length?h[d++]:void 0}},p=1,b=0,x=null;return s.eachMapping(function(k){if(x!==null)if(p<k.generatedLine)w(x,f()),p++,b=0;else{var S=h[d]||"",v=S.substr(0,k.generatedColumn-b);h[d]=S.substr(k.generatedColumn-b),b=k.generatedColumn,w(x,v),x=k;return}for(;p<k.generatedLine;)c.add(f()),p++;if(b<k.generatedColumn){var S=h[d]||"";c.add(S.substr(0,k.generatedColumn)),h[d]=S.substr(k.generatedColumn),b=k.generatedColumn}x=k},this),d<h.length&&(x&&w(x,f()),c.add(h.splice(d).join(""))),s.sources.forEach(function(k){var S=s.sourceContentFor(k);S!=null&&(u!=null&&(k=t.join(u,k)),c.setSourceContent(k,S))}),c;function w(k,S){if(k===null||k.source===void 0)c.add(S);else{var v=u?t.join(u,k.source):k.source;c.add(new a(k.originalLine,k.originalColumn,v,S,k.name))}}},a.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(s){this.add(s)},this);else if(l[o]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},a.prototype.prepend=function(l){if(Array.isArray(l))for(var s=l.length-1;s>=0;s--)this.prepend(l[s]);else if(l[o]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},a.prototype.walk=function(l){for(var s,u=0,c=this.children.length;u<c;u++)s=this.children[u],s[o]?s.walk(l):s!==""&&l(s,{source:this.source,line:this.line,column:this.column,name:this.name})},a.prototype.join=function(l){var s,u,c=this.children.length;if(c>0){for(s=[],u=0;u<c-1;u++)s.push(this.children[u]),s.push(l);s.push(this.children[u]),this.children=s}return this},a.prototype.replaceRight=function(l,s){var u=this.children[this.children.length-1];return u[o]?u.replaceRight(l,s):typeof u=="string"?this.children[this.children.length-1]=u.replace(l,s):this.children.push("".replace(l,s)),this},a.prototype.setSourceContent=function(l,s){this.sourceContents[t.toSetString(l)]=s},a.prototype.walkSourceContents=function(l){for(var s=0,u=this.children.length;s<u;s++)this.children[s][o]&&this.children[s].walkSourceContents(l);for(var c=Object.keys(this.sourceContents),s=0,u=c.length;s<u;s++)l(t.fromSetString(c[s]),this.sourceContents[c[s]])},a.prototype.toString=function(){var l="";return this.walk(function(s){l+=s}),l},a.prototype.toStringWithSourceMap=function(l){var s={code:"",line:1,column:0},u=new e(l),c=!1,h=null,d=null,f=null,p=null;return this.walk(function(b,x){s.code+=b,x.source!==null&&x.line!==null&&x.column!==null?((h!==x.source||d!==x.line||f!==x.column||p!==x.name)&&u.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name}),h=x.source,d=x.line,f=x.column,p=x.name,c=!0):c&&(u.addMapping({generated:{line:s.line,column:s.column}}),h=null,c=!1);for(var w=0,k=b.length;w<k;w++)b.charCodeAt(w)===r?(s.line++,s.column=0,w+1===k?(h=null,c=!1):c&&u.addMapping({source:x.source,original:{line:x.line,column:x.column},generated:{line:s.line,column:s.column},name:x.name})):s.column++}),this.walkSourceContents(function(b,x){u.setSourceContent(b,x)}),{code:s.code,map:u}},Ho.SourceNode=a,Ho}var hs;function RC(){return hs||(hs=1,Mn.SourceMapGenerator=mu().SourceMapGenerator,Mn.SourceMapConsumer=yC().SourceMapConsumer,Mn.SourceNode=IC().SourceNode),Mn}(function(e,t){t.__esModule=!0;var n=xe,r=void 0;try{var o=RC();r=o.SourceNode}catch{}r||(r=function(l,s,u,c){this.src="",c&&this.add(c)},r.prototype={add:function(s){n.isArray(s)&&(s=s.join("")),this.src+=s},prepend:function(s){n.isArray(s)&&(s=s.join("")),this.src=s+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function a(l,s,u){if(n.isArray(l)){for(var c=[],h=0,d=l.length;h<d;h++)c.push(s.wrap(l[h],u));return c}else if(typeof l=="boolean"||typeof l=="number")return l+"";return l}function i(l){this.srcFile=l,this.source=[]}i.prototype={isEmpty:function(){return!this.source.length},prepend:function(s,u){this.source.unshift(this.wrap(s,u))},push:function(s,u){this.source.push(this.wrap(s,u))},merge:function(){var s=this.empty();return this.each(function(u){s.add([" ",u,`
|
|
592
|
+
`])}),s},each:function(s){for(var u=0,c=this.source.length;u<c;u++)s(this.source[u])},empty:function(){var s=this.currentLocation||{start:{}};return new r(s.start.line,s.start.column,this.srcFile)},wrap:function(s){var u=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return s instanceof r?s:(s=a(s,this,u),new r(u.start.line,u.start.column,this.srcFile,s))},functionCall:function(s,u,c){return c=this.generateList(c),this.wrap([s,u?"."+u+"(":"(",c,")"])},quotedString:function(s){return'"'+(s+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(s){var u=this,c=[];Object.keys(s).forEach(function(d){var f=a(s[d],u);f!=="undefined"&&c.push([u.quotedString(d),":",f])});var h=this.generateList(c);return h.prepend("{"),h.add("}"),h},generateList:function(s){for(var u=this.empty(),c=0,h=s.length;c<h;c++)c&&u.add(","),u.add(a(s[c],this));return u},generateArray:function(s){var u=this.generateList(s);return u.prepend("["),u.add("]"),u}},t.default=i,e.exports=t.default})(Oa,Oa.exports);var TC=Oa.exports;(function(e,t){t.__esModule=!0;function n(d){return d&&d.__esModule?d:{default:d}}var r=tt,o=nt,a=n(o),i=xe,l=TC,s=n(l);function u(d){this.value=d}function c(){}c.prototype={nameLookup:function(f,p){return this.internalNameLookup(f,p)},depthedLookup:function(f){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(f),")"]},compilerInfo:function(){var f=r.COMPILER_REVISION,p=r.REVISION_CHANGES[f];return[f,p]},appendToBuffer:function(f,p,b){return i.isArray(f)||(f=[f]),f=this.source.wrap(f,p),this.environment.isSimple?["return ",f,";"]:b?["buffer += ",f,";"]:(f.appendToBuffer=!0,f)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(f,p){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",f,",",JSON.stringify(p),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(f,p,b,x){this.environment=f,this.options=p,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!x,this.name=this.environment.name,this.isChild=!!b,this.context=b||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(f,p),this.useDepths=this.useDepths||f.useDepths||f.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||f.useBlockParams;var w=f.opcodes,k=void 0,S=void 0,v=void 0,_=void 0;for(v=0,_=w.length;v<_;v++)k=w[v],this.source.currentLocation=k.loc,S=S||k.loc,this[k.opcode].apply(this,k.args);if(this.source.currentLocation=S,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new a.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
525
593
|
`]),this.decorators.push("return fn;"),x?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
526
594
|
`),this.decorators.push(`}
|
|
527
|
-
`),this.decorators=this.decorators.merge()));var y=this.createFunctionContext(x);if(this.isChild)return y;var C={compiler:this.compilerInfo(),main:y};this.decorators&&(C.main_d=this.decorators,C.useDecorators=!0);var I=this.context,R=I.programs,
|
|
528
|
-
`,
|
|
595
|
+
`),this.decorators=this.decorators.merge()));var y=this.createFunctionContext(x);if(this.isChild)return y;var C={compiler:this.compilerInfo(),main:y};this.decorators&&(C.main_d=this.decorators,C.useDecorators=!0);var I=this.context,R=I.programs,N=I.decorators;for(v=0,_=R.length;v<_;v++)C[v]=R[v],N[v]&&(C[v+"_d"]=N[v],C.useDecorators=!0);return this.environment.usePartial&&(C.usePartial=!0),this.options.data&&(C.useData=!0),this.useDepths&&(C.useDepths=!0),this.useBlockParams&&(C.useBlockParams=!0),this.options.compat&&(C.compat=!0),x?C.compilerOptions=this.options:(C.compiler=JSON.stringify(C.compiler),this.source.currentLocation={start:{line:1,column:0}},C=this.objectLiteral(C),p.srcName?(C=C.toStringWithSourceMap({file:p.destName}),C.map=C.map&&C.map.toString()):C=C.toString()),C},preamble:function(){this.lastContext=0,this.source=new s.default(this.options.srcName),this.decorators=new s.default(this.options.srcName)},createFunctionContext:function(f){var p=this,b="",x=this.stackVars.concat(this.registers.list);x.length>0&&(b+=", "+x.join(", "));var w=0;Object.keys(this.aliases).forEach(function(v){var _=p.aliases[v];_.children&&_.referenceCount>1&&(b+=", alias"+ ++w+"="+v,_.children[0]="alias"+w)}),this.lookupPropertyFunctionIsUsed&&(b+=", "+this.lookupPropertyFunctionVarDeclaration());var k=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&k.push("blockParams"),this.useDepths&&k.push("depths");var S=this.mergeSource(b);return f?(k.push(S),Function.apply(this,k)):this.source.wrap(["function(",k.join(","),`) {
|
|
596
|
+
`,S,"}"])},mergeSource:function(f){var p=this.environment.isSimple,b=!this.forceBuffer,x=void 0,w=void 0,k=void 0,S=void 0;return this.source.each(function(v){v.appendToBuffer?(k?v.prepend(" + "):k=v,S=v):(k&&(w?k.prepend("buffer += "):x=!0,S.add(";"),k=S=void 0),w=!0,p||(b=!1))}),b?k?(k.prepend("return "),S.add(";")):w||this.source.push('return "";'):(f+=", buffer = "+(x?"":this.initializeBuffer()),k?(k.prepend("return buffer + "),S.add(";")):this.source.push("return buffer;")),f&&this.source.prepend("var "+f.substring(2)+(x?"":`;
|
|
529
597
|
`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return`
|
|
530
598
|
lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
531
599
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -533,10 +601,10 @@ Expecting `+P.join(", ")+", got '"+(this.terminals_[k]||k)+"'":M="Parse error on
|
|
|
533
601
|
}
|
|
534
602
|
return undefined
|
|
535
603
|
}
|
|
536
|
-
`.trim()},blockValue:function(f){var p=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(f,0,b);var x=this.popStack();b.splice(1,0,x),this.push(this.source.functionCall(p,"call",b))},ambiguousBlockValue:function(){var f=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var b=this.topStack();p.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(f,"call",p),"}"])},appendContent:function(f){this.pendingContent?f=this.pendingContent+f:this.pendingLocation=this.source.currentLocation,this.pendingContent=f},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var f=this.popStack();this.pushSource(["if (",f," != null) { ",this.appendToBuffer(f,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(f){this.lastContext=f},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(f,p,b,x){var w=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(f[w++])):this.pushContext(),this.resolvePath("context",f,w,p,b)},lookupBlockParam:function(f,p){this.useBlockParams=!0,this.push(["blockParams[",f[0],"][",f[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(f,p,b){f?this.pushStackLiteral("container.data(data, "+f+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,b)},resolvePath:function(f,p,b,x,w){var S=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&w,this,p,b,f));return}for(var k=p.length,v=function(y){S.replaceStack(function(C){var I=S.nameLookup(C,p[y],f);return x?[" && ",I]:[" != null ? ",I," : ",C]})},_=b;_<k;_++)v(_)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(f,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof f=="string"?this.pushString(f):this.pushStackLiteral(f))},emptyHash:function(f){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(f?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var f=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(f.ids)),this.stringParams&&(this.push(this.objectLiteral(f.contexts)),this.push(this.objectLiteral(f.types))),this.push(this.objectLiteral(f.values))},pushString:function(f){this.pushStackLiteral(this.quotedString(f))},pushLiteral:function(f){this.pushStackLiteral(f)},pushProgram:function(f){f!=null?this.pushStackLiteral(this.programExpression(f)):this.pushStackLiteral(null)},registerDecorator:function(f,p){var b=this.nameLookup("decorators",p,"decorator"),x=this.setupHelperArgs(p,f);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+p+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",x])," || fn;"])},invokeHelper:function(f,p,b){var x=this.popStack(),w=this.setupHelper(f,p),S=[];b&&S.push(w.name),S.push(x),this.options.strict||S.push(this.aliasable("container.hooks.helperMissing"));var k=["(",this.itemsSeparatedBy(S,"||"),")"],v=this.source.functionCall(k,"call",w.callParams);this.push(v)},itemsSeparatedBy:function(f,p){var b=[];b.push(f[0]);for(var x=1;x<f.length;x++)b.push(p,f[x]);return b},invokeKnownHelper:function(f,p){var b=this.setupHelper(f,p);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(f,p){this.useRegister("helper");var b=this.popStack();this.emptyHash();var x=this.setupHelper(0,f,p),w=this.lastHelper=this.nameLookup("helpers",f,"helper"),S=["(","(helper = ",w," || ",b,")"];this.options.strict||(S[0]="(helper = ",S.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",S,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(f,p,b){var x=[],w=this.setupParams(p,1,x);f&&(p=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",f?x.unshift(p):x.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(w.depths="depths"),w=this.objectLiteral(w),x.push(w),this.push(this.source.functionCall("container.invokePartial","",x))},assignToHash:function(f){var p=this.popStack(),b=void 0,x=void 0,w=void 0;this.trackIds&&(w=this.popStack()),this.stringParams&&(x=this.popStack(),b=this.popStack());var S=this.hash;b&&(S.contexts[f]=b),x&&(S.types[f]=x),w&&(S.ids[f]=w),S.values[f]=p},pushId:function(f,p,b){f==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):f==="PathExpression"?this.pushString(p):f==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:u,compileChildren:function(f,p){for(var b=f.children,x=void 0,w=void 0,S=0,k=b.length;S<k;S++){x=b[S],w=new this.compiler;var v=this.matchExistingProgram(x);if(v==null){var _=this.context.programs.push("")-1;x.index=_,x.name="program"+_,this.context.programs[_]=w.compile(x,p,this.context,!this.precompile),this.context.decorators[_]=w.decorators,this.context.environments[_]=x,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams,x.useDepths=this.useDepths,x.useBlockParams=this.useBlockParams}else x.index=v.index,x.name="program"+v.index,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.useBlockParams}},matchExistingProgram:function(f){for(var p=0,b=this.context.environments.length;p<b;p++){var x=this.context.environments[p];if(x&&x.equals(f))return x}},programExpression:function(f){var p=this.environment.children[f],b=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(f){this.registers[f]||(this.registers[f]=!0,this.registers.list.push(f))},push:function(f){return f instanceof c||(f=this.source.wrap(f)),this.inlineStack.push(f),f},pushStackLiteral:function(f){this.push(new c(f))},pushSource:function(f){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),f&&this.source.push(f)},replaceStack:function(f){var p=["("],b=void 0,x=void 0,w=void 0;if(!this.isInline())throw new i.default("replaceStack on non-inline");var S=this.popStack(!0);if(S instanceof c)b=[S.value],p=["(",b],w=!0;else{x=!0;var k=this.incrStack();p=["((",this.push(k)," = ",S,")"],b=this.topStack()}var v=f.call(this,b);w||this.popStack(),x&&this.stackSlot--,this.push(p.concat(v,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var f=this.inlineStack;this.inlineStack=[];for(var p=0,b=f.length;p<b;p++){var x=f[p];if(x instanceof c)this.compileStack.push(x);else{var w=this.incrStack();this.pushSource([w," = ",x,";"]),this.compileStack.push(w)}}},isInline:function(){return this.inlineStack.length},popStack:function(f){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!f&&b instanceof c)return b.value;if(!p){if(!this.stackSlot)throw new i.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var f=this.isInline()?this.inlineStack:this.compileStack,p=f[f.length-1];return p instanceof c?p.value:p},contextName:function(f){return this.useDepths&&f?"depths["+f+"]":"depth"+f},quotedString:function(f){return this.source.quotedString(f)},objectLiteral:function(f){return this.source.objectLiteral(f)},aliasable:function(f){var p=this.aliases[f];return p?(p.referenceCount++,p):(p=this.aliases[f]=this.source.wrap(f),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(f,p,b){var x=[],w=this.setupHelperArgs(p,f,x,b),S=this.nameLookup("helpers",p,"helper"),k=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:w,name:S,callParams:[k].concat(x)}},setupParams:function(f,p,b){var x={},w=[],S=[],k=[],v=!b,_=void 0;v&&(b=[]),x.name=this.quotedString(f),x.hash=this.popStack(),this.trackIds&&(x.hashIds=this.popStack()),this.stringParams&&(x.hashTypes=this.popStack(),x.hashContexts=this.popStack());var y=this.popStack(),C=this.popStack();(C||y)&&(x.fn=C||"container.noop",x.inverse=y||"container.noop");for(var I=p;I--;)_=this.popStack(),b[I]=_,this.trackIds&&(k[I]=this.popStack()),this.stringParams&&(S[I]=this.popStack(),w[I]=this.popStack());return v&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(k)),this.stringParams&&(x.types=this.source.generateArray(S),x.contexts=this.source.generateArray(w)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(f,p,b,x){var w=this.setupParams(f,p,b);return w.loc=JSON.stringify(this.source.currentLocation),w=this.objectLiteral(w),x?(this.useRegister("options"),b.push("options"),["options=",w]):b?(b.push(w),""):w}},function(){for(var d="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),f=u.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)f[d[p]]=!0}(),u.isValidJavaScriptVariableName=function(d){return!u.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function h(d,f,p,b,x){var w=f.popStack(),S=p.length;d&&S--;for(var k=b;k<S;k++)w=f.nameLookup(w,p[k],x);return d?[f.aliasable("container.strict"),"(",w,", ",f.quotedString(p[S]),", ",JSON.stringify(f.source.currentLocation)," )"]:w}t.default=u,e.exports=t.default})(ra,ra.exports);var V$=ra.exports;(function(e,t){t.__esModule=!0;function n(S){return S&&S.__esModule?S:{default:S}}var o=s$,r=n(o),i=oc,a=n(i),l=Ln,s=zn,c=V$,u=n(c),h=rc,d=n(h),f=nc,p=n(f),b=r.default.create;function x(){var S=b();return S.compile=function(k,v){return s.compile(k,v,S)},S.precompile=function(k,v){return s.precompile(k,v,S)},S.AST=a.default,S.Compiler=s.Compiler,S.JavaScriptCompiler=u.default,S.Parser=l.parser,S.parse=l.parse,S.parseWithoutProcessing=l.parseWithoutProcessing,S}var w=x();w.create=x,p.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(Or,Or.exports);var q$=Or.exports;const Y$=Vw(q$);function Ma(e,t){const n=[],o=new Set,r=i=>{var l,s,c,u,h,d,f,p,b,x;if(o.has(i)||!e[i])return;o.add(i),n.push(i);const a=e[i];switch(a.type){case"Container":case"ButtonGroup":(((l=a.data.props)==null?void 0:l.childrenIds)||[]).forEach(r);break;case"ColumnsContainer":case"FlexColumns":(((s=a.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(r));break;case"Grid":(((c=a.data.props)==null?void 0:c.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(r));break;case"Accordion":(((u=a.data.props)==null?void 0:u.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(r),(w.contentChildrenIds||[]).forEach(r)});break;case"TabsBlock":case"Carousel":case"Marquee":(((h=a.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(r)});break;case"Pagination":(((d=a.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(r)),(((f=a.data.props)==null?void 0:f.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(r)});break;case"PricingAccordion":(((p=a.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(r),(w.detailChildrenIds||[]).forEach(r)});break;case"MenuPicker":(((b=a.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(r),(((x=a.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(r);break;case"EmailLayout":(a.data.childrenIds||[]).forEach(r);break}};return r(t),n}const ko="relative",En="24h",K$=864e5;function Pa(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function kl(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function J$(e,t){const n=Pa(e);if(!n)return"";const o=(t==null?void 0:t.now)??new Date,r=t==null?void 0:t.locale,i=Math.round((kl(n).getTime()-kl(o).getTime())/K$);if(i===0)return"Today";if(i===1)return"Tomorrow";if(i===-1)return"Yesterday";if(i>=-6&&i<=6)return n.toLocaleDateString(r,{weekday:"short"});const a=n.getFullYear()===o.getFullYear();return n.toLocaleDateString(r,{month:"short",day:"numeric",...a?{}:{year:"numeric"}})}function br(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 X$(e,t){const o=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"short",day:"numeric",weekday:"long"}).formatToParts(e),r=i=>{var a;return((a=o.find(l=>l.type===i))==null?void 0:a.value)??""};return{year:Number(r("year")),month:new Date(`${r("month")} 1, 2000`).getMonth(),day:Number(r("day")),weekday:r("weekday")}}const Q$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function ia(e){return e<10?`0${e}`:String(e)}function la(e,t=ko,n){if(t==="relative")return J$(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const o=Pa(e);if(!o)return"";const{year:r,month:i,day:a,weekday:l}=X$(o,n==null?void 0:n.tz),s=Q$[i],c=String(r),u=ia(i+1),h=ia(a);switch(t){case"do-mmm-yyyy":return`${br(a)} ${s} ${c}`;case"mmm-d-yyyy":return`${s} ${a}, ${c}`;case"d-mmm-yyyy":return`${a} ${s} ${c}`;case"dd-mm-yyyy":return`${h}/${u}/${c}`;case"mm-dd-yyyy":return`${u}/${h}/${c}`;case"yyyy-mm-dd":return`${c}-${u}-${h}`;case"do-mmm":return`${br(a)} ${s}`;case"full":return`${l}, ${a} ${new Date(2e3,i,1).toLocaleDateString("en-US",{month:"long"})} ${c}`;default:return`${br(a)} ${s} ${c}`}}function _o(e,t=En,n){const o=Pa(e);if(!o)return"";const i=new Intl.DateTimeFormat("en-US",{timeZone:n==null?void 0:n.tz,hour:"numeric",minute:"2-digit",hour12:t==="12h"}).formatToParts(o),a=c=>{var u;return((u=i.find(h=>h.type===c))==null?void 0:u.value)??""};if(t==="12h"){const c=a("hour"),u=a("minute"),h=a("dayPeriod").toUpperCase();return`${c}:${u} ${h}`}const l=ia(Number(a("hour"))%24),s=a("minute");return`${l}:${s}`}function dc(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const o=e;for(const r of t){if((r==null?void 0:r.type)!=="array"||!r.sourceBlockId)continue;(Array.isArray(r.value)?r.value:[]).forEach((a,l)=>{var c;const s=l===0?r.sourceBlockId:(c=r.rowIds)==null?void 0:c[l-1];if(!(!s||!o[s]))for(const u of Ma(o,s))n.set(u,a||{})})}return n}const ek={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function tk(e){return e?ek[e]:void 0}const sa=Y$.create();sa.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new sa.SafeString(`{{${t.name}}}`)});const _l=new Map;function nk(e){let t=_l.get(e);return t||(t=sa.compile(e,{noEscape:!0,strict:!1}),_l.set(e,t)),t}function hc(e){const t={};for(const n of e)if(!(!n||!n.id)){if(n.type==="array"){if(!Array.isArray(n.value)||n.value.length===0)continue;const o=new Map;for(const i of n.itemFields??[])((i==null?void 0:i.type)==="date"||(i==null?void 0:i.type)==="time"||(i==null?void 0:i.type)==="datetime")&&i.id&&o.set(i.id,i);const r=n.value.map(i=>{const a={};if(i&&typeof i=="object")for(const l of Object.keys(i)){const s=i[l];if(s==null||s==="")continue;const c=o.get(l);if((c==null?void 0:c.type)==="datetime"){const u=co(l,String(s),o,"date"),h=co(l,String(s),o,"time"),d={date:u,time:h};Object.defineProperty(d,"toString",{value:()=>[u,h].filter(Boolean).join(" "),enumerable:!1}),a[l]=d}else a[l]=c?co(l,String(s),o):s}return a});Object.defineProperty(r,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=r;continue}if(n.type==="datetime"){const o=n.id,r=typeof n.value=="string"?n.value:"";if(!r){const c={date:`{{${o}.date}}`,time:`{{${o}.time}}`};Object.defineProperty(c,"toString",{value:()=>`{{${o}}}`,enumerable:!1}),t[o]=c;continue}const i=n.dateFormat??ko,a=i==="relative"?_r(o,r):la(r,i,{tz:n.dateTz}),l=_o(r,n.timeFormat??En,{tz:n.dateTz}),s={date:a,time:l};Object.defineProperty(s,"toString",{value:()=>[a,l].filter(Boolean).join(" "),enumerable:!1}),t[o]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const o=n.dateFormat??ko;t[n.id]=o==="relative"?_r(n.id,n.value):la(n.value,o,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=_o(n.value,n.timeFormat??En,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function Oa(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 ok=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function rk(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let o=0;return{masked:e.replace(ok,(i,a)=>{const l=t[a];if(Array.isArray(l)&&l.length>0)return i;const c="HB_EACH_"+o+++"_";return n.set(c,i),c}),restore:n}}const fc=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function ak(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 Cl(e,t,n){const o=n.dateFormat??ko;return o==="relative"?_r(e,t):la(t,o,{tz:n.dateTz})}function co(e,t,n,o){const r=n.get(e);if(!r)return t;if(r.type==="time")return _o(t,r.timeFormat??En,{tz:r.dateTz});if(r.type==="datetime"){const i=_o(t,r.timeFormat??En,{tz:r.dateTz});if(o==="time")return i;const a=Cl(e,t,r);return o==="date"?a:[a,i].filter(Boolean).join(" ")}return Cl(e,t,r)}function ik(e,t,n){return e.replace(fc,(o,r,i)=>{const a=t==null?void 0:t[r];return a==null||a===""?o:n?co(r,String(a),n,i):String(a)})}function wn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let o=e;if(n&&(o=ik(o,n,ak(t)),o.indexOf("{{")===-1)||!t||t.length===0)return o;try{const r=t&&t.length>0?hc(t):{},{masked:i,restore:a}=rk(o,r),l=new Map;let s=i;if(i.indexOf("{{")!==-1&&i.indexOf("#each")===-1){let u=0;s=i.replace(fc,h=>{const d="HB_THIS_"+u+++"_";return l.set(d,h),d})}let c=nk(s)(r);for(const[u,h]of l)c=c.split(u).join(h);if(a.size>0)for(const[u,h]of a)c=c.split(u).join(h);return c}catch{return o}}function mc(e,t,n,o){var l,s,c,u,h,d,f,p,b;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const x=(s=(l=e.data)==null?void 0:l.props)==null?void 0:s.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((S,k)=>{const v=S==null?void 0:S.label;if(typeof v!="string"||v.indexOf("{{")===-1)return;const _=Array.isArray(S==null?void 0:S.contentChildrenIds)?S.contentChildrenIds[0]:void 0,y=_&&o?o.get(_):n,C=wn(v,t,y??null);C!==v&&(w||(w=x.map(I=>({...I}))),w[k]={...w[k],label:C})}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="List"){const x=(u=(c=e.data)==null?void 0:c.props)==null?void 0:u.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((S,k)=>{const v=S==null?void 0:S.text;if(typeof v!="string"||v.indexOf("{{")===-1)return;const _=wn(v,t,n);_!==v&&(w||(w=x.map(y=>({...y}))),w[k]={...w[k],text:_})}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="Breadcrumb"){const x=(d=(h=e.data)==null?void 0:h.props)==null?void 0:d.items;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((S,k)=>{for(const v of["label","href"]){const _=S==null?void 0:S[v];if(typeof _!="string"||_.indexOf("{{")===-1)continue;const y=wn(_,t,n);y!==_&&(w||(w=x.map(C=>({...C}))),w[k]={...w[k],[v]:y})}}),w?{...e,data:{...e.data,props:{...e.data.props,items:w}}}:e}if(e.type==="Table"){const x=(p=(f=e.data)==null?void 0:f.props)==null?void 0:p.cells;if(!Array.isArray(x)||x.length===0)return e;let w=null;return x.forEach((S,k)=>{if(typeof S!="string"||S.indexOf("{{")===-1)return;const v=wn(S,t,n);v!==S&&(w||(w=[...x]),w[k]=v)}),w?{...e,data:{...e.data,props:{...e.data.props,cells:w}}}:e}const r=tk(e.type);if(!r)return e;const i=(b=e.data)==null?void 0:b.props;if(!i)return e;let a=null;for(const x of r){const w=i[x];if(typeof w!="string"||w.indexOf("{{")===-1)continue;const S=wn(w,t,n);S!==w&&(a||(a={...i}),a[x]=S)}return a?{...e,data:{...e.data,props:a}}:e}function La(e,t){var l;if(!e)return e;const n=t??Oa(e);let o={...e},r=!1;const i=dc(e,n);if(n&&n.length>0&&(Object.keys(hc(n)).length>0||i.size>0))for(const s of Object.keys(o)){const c=o[s],u=mc(c,n,i.get(s),i);u!==c&&(o[s]=u,r=!0)}const a=o.root;if(((l=a==null?void 0:a.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...c}=a.data;o.root={...a,data:c},r=!0}return r?o:e}const Al=Object.fromEntries(pt.map(e=>[e.key,e.value]));function jt(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function za(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function lk(e,t){const n=e.borderColor??(t==null?void 0:t.borderColor)??null;if(!n)return"";if(n==="transparent")return"border:none!important";const o=jt(e.borderWidth)?e.borderWidth:jt(t==null?void 0:t.borderWidth)?t==null?void 0:t.borderWidth:null;return za(n)?`padding:${(o==null?void 0:o.top)??0}px ${(o==null?void 0:o.right)??0}px ${(o==null?void 0:o.bottom)??0}px ${(o==null?void 0:o.left)??0}px!important`:[`border-top:${(o==null?void 0:o.top)??0}px solid ${n}!important`,`border-right:${(o==null?void 0:o.right)??0}px solid ${n}!important`,`border-bottom:${(o==null?void 0:o.bottom)??0}px solid ${n}!important`,`border-left:${(o==null?void 0:o.left)??0}px solid ${n}!important`].join(";")}function sk(e,t,n){const o=t.borderColor??(n==null?void 0:n.borderColor)??null;if(!o||!za(o))return"";const r=t.padding;if(!jt(r))return"";const i=`padding:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`;return`${e}>.container-block>.container-block-inner{${i}}`}function ck(e,t){const n=[],o=e.borderColor!==void 0||e.borderWidth!==void 0,r=za((t==null?void 0:t.borderColor)??"");if(o||e.padding!==void 0&&r){const a=lk(e,t);a&&n.push(a)}const i=e.backgroundSize==="none";i&&n.push("background-image:none!important");for(const a of Object.keys(e)){const l=e[a];if(l!=null)switch(a){case"borderColor":case"borderWidth":break;case"fontSize":n.push(`font-size:${l}px!important`);break;case"fontFamily":Al[l]&&n.push(`font-family:${Al[l]}!important`);break;case"fontWeight":n.push(`font-weight:${l}!important`);break;case"fontStyle":n.push(`font-style:${l}!important`);break;case"textDecoration":n.push(`text-decoration:${l}!important`);break;case"lineHeight":n.push(`line-height:${l}!important`);break;case"textAlign":n.push(`text-align:${l}!important`);break;case"buttonTextAlign":n.push(`justify-content:${l==="center"?"center":l==="right"?"flex-end":"flex-start"}!important`);break;case"padding":jt(l)&&!r&&n.push(`padding:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"margin":jt(l)&&n.push(`margin:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"marginBottom":n.push(`margin-bottom:${l}px!important`);break;case"width":n.push(`width:${typeof l=="number"?`${l}px`:l}!important`);break;case"height":n.push(`height:${typeof l=="number"?`${l}px`:l}!important`);break;case"backgroundImage":n.push(l&&!i?`background-image:url("${String(l).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":i||n.push(`background-size:${l}!important`);break;case"backgroundRepeat":n.push(`background-repeat:${l}!important`);break;case"activeFontSize":n.push(`--ahd-tabs-active-font-size:${typeof l=="number"?`${l}px`:l}`);break;case"showActiveBorder":n.push(`--ahd-tabs-active-border-color:${l?"currentColor":"transparent"}`);break;case"tabGap":n.push(`--ahd-tabs-tab-gap:${l}px`);break;case"contentGap":n.push(`--ahd-tabs-content-gap:${l}px`);break;case"navWidth":n.push(`--ahd-tabs-nav-width:${l}px`);break;case"starSize":n.push(`--ahd-rating-star-size:${l}px`);break;case"starGap":n.push(`--ahd-rating-star-gap:${l}px`);break;case"arrowSize":n.push(`--ahd-carousel-arrow-size:${l}px`),n.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(l)*.5)))}px`);break;case"dotSize":n.push(`--ahd-carousel-dot-size:${l}px`);break;case"slideGap":n.push(`--ahd-carousel-slide-gap:${l}px`);break;case"buttonSize":n.push(`--ahd-pgn-btn-size:${l}px`);break;case"buttonGap":n.push(`--ahd-pgn-btn-gap:${l}px`);break;case"buttonRadius":n.push(`--ahd-pgn-btn-radius:${l}px`);break;case"controlGap":n.push(`--ahd-pgn-control-gap:${l}px`);break;case"borderRadius":if(typeof l=="number")n.push(`border-radius:${l}px!important`);else if(l&&typeof l=="object"){const{topLeft:s=0,topRight:c=0,bottomRight:u=0,bottomLeft:h=0}=l;n.push(`border-radius:${s}px ${c}px ${u}px ${h}px!important`)}else n.push(`border-radius:${l}!important`);break}}return n.join(";")}function uk(e){const t=[];for(const n of Object.keys(e)){const o=e[n];if(o!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${o}px!important`);break;case"height":{const r=typeof o=="number"?`${o}px`:o;t.push(`height:${r}!important`),t.push(`--ahd-iframe-height:${r}`),t.push(`--ahd-calendly-height:${r}`),t.push(`--ahd-demo-height:${r}`);break}case"width":{const r=typeof o=="number"?`${o}px`:o;t.push(`--ahd-iframe-width:${r}`),t.push(`--ahd-calendly-width:${r}`),t.push(`--ahd-demo-width:${r}`);break}case"blockPadding":jt(o)&&t.push(`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break;case"blockMargin":jt(o)&&t.push(`margin:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`);break}}return t.join(";")}function dk(e){return`${e}>.text-block>div,${e}>.heading-block-wrapper>.heading-block`}function hk(e){if(e==null)return"";const t=Number(e);return t>0?"display:-webkit-box!important;-webkit-line-clamp:"+t+"!important;-webkit-box-orient:vertical!important;overflow:hidden!important":"display:block!important;overflow:visible!important"}function yl(e,t){if(!t)return null;const n=e??{},o={};for(const r of Object.keys(t)){const i=t[r],a=n[r],l=!!i&&typeof i=="object"&&!Array.isArray(i)&&!!a&&typeof a=="object"&&!Array.isArray(a);o[r]=l?{...a,...i}:i}return o}function fk(e,t,n,o){if(!t)return"";const r=`#${e}`,i=pk(r),a=dk(r),l=[],s=(u,h)=>{const d=yl(n,h==null?void 0:h.style),f=yl(o,h==null?void 0:h.props),p=[d?ck(d,n):"",f?uk(f):""].filter(Boolean).join(";"),b=d?sk(r,d,n):"",x=[p?`${i}{${p}}`:"",b,h!=null&&h.hidden?`${r}{display:none}`:""].filter(Boolean).join("");if(x&&l.push(`${u}{${x}}`),h!=null&&h.style&&"lineClamp"in h.style){const w=hk(d==null?void 0:d.lineClamp);w&&l.push(`${u}{${a}{${w}}}`)}};s(Dt,t.tablet),s(`@media (max-width:${Le}px)`,t.mobile);const c=bk(e,t,n,o);return c&&l.push(c),l.join("")}function mk(e,t){return t?e?{...e,...t}:t:e}function ca(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function Il(e,t,n){const o=ca(e,t),r=ca(n==null?void 0:n.style,n==null?void 0:n.props);return mk(o,r)}function xr(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 pk(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 gk(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 bk(e,t,n,o){if(!t)return"";const r=`#${e}`,i=gk(r),a=ca(n,o),l=xr(a),s=xr(Il(n,o,t.tablet)),c=xr(Il(n,o,t.mobile));return s===l&&c===l?"":`
|
|
537
|
-
${
|
|
538
|
-
@media (max-width:${
|
|
539
|
-
`.trim()}const
|
|
604
|
+
`.trim()},blockValue:function(f){var p=this.aliasable("container.hooks.blockHelperMissing"),b=[this.contextName(0)];this.setupHelperArgs(f,0,b);var x=this.popStack();b.splice(1,0,x),this.push(this.source.functionCall(p,"call",b))},ambiguousBlockValue:function(){var f=this.aliasable("container.hooks.blockHelperMissing"),p=[this.contextName(0)];this.setupHelperArgs("",0,p,!0),this.flushInline();var b=this.topStack();p.splice(1,0,b),this.pushSource(["if (!",this.lastHelper,") { ",b," = ",this.source.functionCall(f,"call",p),"}"])},appendContent:function(f){this.pendingContent?f=this.pendingContent+f:this.pendingLocation=this.source.currentLocation,this.pendingContent=f},append:function(){if(this.isInline())this.replaceStack(function(p){return[" != null ? ",p,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var f=this.popStack();this.pushSource(["if (",f," != null) { ",this.appendToBuffer(f,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(f){this.lastContext=f},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(f,p,b,x){var w=0;!x&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(f[w++])):this.pushContext(),this.resolvePath("context",f,w,p,b)},lookupBlockParam:function(f,p){this.useBlockParams=!0,this.push(["blockParams[",f[0],"][",f[1],"]"]),this.resolvePath("context",p,1)},lookupData:function(f,p,b){f?this.pushStackLiteral("container.data(data, "+f+")"):this.pushStackLiteral("data"),this.resolvePath("data",p,0,!0,b)},resolvePath:function(f,p,b,x,w){var k=this;if(this.options.strict||this.options.assumeObjects){this.push(h(this.options.strict&&w,this,p,b,f));return}for(var S=p.length,v=function(y){k.replaceStack(function(C){var I=k.nameLookup(C,p[y],f);return x?[" && ",I]:[" != null ? ",I," : ",C]})},_=b;_<S;_++)v(_)},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(f,p){this.pushContext(),this.pushString(p),p!=="SubExpression"&&(typeof f=="string"?this.pushString(f):this.pushStackLiteral(f))},emptyHash:function(f){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(f?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},popHash:function(){var f=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(f.ids)),this.stringParams&&(this.push(this.objectLiteral(f.contexts)),this.push(this.objectLiteral(f.types))),this.push(this.objectLiteral(f.values))},pushString:function(f){this.pushStackLiteral(this.quotedString(f))},pushLiteral:function(f){this.pushStackLiteral(f)},pushProgram:function(f){f!=null?this.pushStackLiteral(this.programExpression(f)):this.pushStackLiteral(null)},registerDecorator:function(f,p){var b=this.nameLookup("decorators",p,"decorator"),x=this.setupHelperArgs(p,f);this.decorators.push(["var decorator = ",b,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+p+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",x])," || fn;"])},invokeHelper:function(f,p,b){var x=this.popStack(),w=this.setupHelper(f,p),k=[];b&&k.push(w.name),k.push(x),this.options.strict||k.push(this.aliasable("container.hooks.helperMissing"));var S=["(",this.itemsSeparatedBy(k,"||"),")"],v=this.source.functionCall(S,"call",w.callParams);this.push(v)},itemsSeparatedBy:function(f,p){var b=[];b.push(f[0]);for(var x=1;x<f.length;x++)b.push(p,f[x]);return b},invokeKnownHelper:function(f,p){var b=this.setupHelper(f,p);this.push(this.source.functionCall(b.name,"call",b.callParams))},invokeAmbiguous:function(f,p){this.useRegister("helper");var b=this.popStack();this.emptyHash();var x=this.setupHelper(0,f,p),w=this.lastHelper=this.nameLookup("helpers",f,"helper"),k=["(","(helper = ",w," || ",b,")"];this.options.strict||(k[0]="(helper = ",k.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",k,x.paramsInit?["),(",x.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",x.callParams)," : helper))"])},invokePartial:function(f,p,b){var x=[],w=this.setupParams(p,1,x);f&&(p=this.popStack(),delete w.name),b&&(w.indent=JSON.stringify(b)),w.helpers="helpers",w.partials="partials",w.decorators="container.decorators",f?x.unshift(p):x.unshift(this.nameLookup("partials",p,"partial")),this.options.compat&&(w.depths="depths"),w=this.objectLiteral(w),x.push(w),this.push(this.source.functionCall("container.invokePartial","",x))},assignToHash:function(f){var p=this.popStack(),b=void 0,x=void 0,w=void 0;this.trackIds&&(w=this.popStack()),this.stringParams&&(x=this.popStack(),b=this.popStack());var k=this.hash;b&&(k.contexts[f]=b),x&&(k.types[f]=x),w&&(k.ids[f]=w),k.values[f]=p},pushId:function(f,p,b){f==="BlockParam"?this.pushStackLiteral("blockParams["+p[0]+"].path["+p[1]+"]"+(b?" + "+JSON.stringify("."+b):"")):f==="PathExpression"?this.pushString(p):f==="SubExpression"?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:c,compileChildren:function(f,p){for(var b=f.children,x=void 0,w=void 0,k=0,S=b.length;k<S;k++){x=b[k],w=new this.compiler;var v=this.matchExistingProgram(x);if(v==null){var _=this.context.programs.push("")-1;x.index=_,x.name="program"+_,this.context.programs[_]=w.compile(x,p,this.context,!this.precompile),this.context.decorators[_]=w.decorators,this.context.environments[_]=x,this.useDepths=this.useDepths||w.useDepths,this.useBlockParams=this.useBlockParams||w.useBlockParams,x.useDepths=this.useDepths,x.useBlockParams=this.useBlockParams}else x.index=v.index,x.name="program"+v.index,this.useDepths=this.useDepths||v.useDepths,this.useBlockParams=this.useBlockParams||v.useBlockParams}},matchExistingProgram:function(f){for(var p=0,b=this.context.environments.length;p<b;p++){var x=this.context.environments[p];if(x&&x.equals(f))return x}},programExpression:function(f){var p=this.environment.children[f],b=[p.index,"data",p.blockParams];return(this.useBlockParams||this.useDepths)&&b.push("blockParams"),this.useDepths&&b.push("depths"),"container.program("+b.join(", ")+")"},useRegister:function(f){this.registers[f]||(this.registers[f]=!0,this.registers.list.push(f))},push:function(f){return f instanceof u||(f=this.source.wrap(f)),this.inlineStack.push(f),f},pushStackLiteral:function(f){this.push(new u(f))},pushSource:function(f){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),f&&this.source.push(f)},replaceStack:function(f){var p=["("],b=void 0,x=void 0,w=void 0;if(!this.isInline())throw new a.default("replaceStack on non-inline");var k=this.popStack(!0);if(k instanceof u)b=[k.value],p=["(",b],w=!0;else{x=!0;var S=this.incrStack();p=["((",this.push(S)," = ",k,")"],b=this.topStack()}var v=f.call(this,b);w||this.popStack(),x&&this.stackSlot--,this.push(p.concat(v,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var f=this.inlineStack;this.inlineStack=[];for(var p=0,b=f.length;p<b;p++){var x=f[p];if(x instanceof u)this.compileStack.push(x);else{var w=this.incrStack();this.pushSource([w," = ",x,";"]),this.compileStack.push(w)}}},isInline:function(){return this.inlineStack.length},popStack:function(f){var p=this.isInline(),b=(p?this.inlineStack:this.compileStack).pop();if(!f&&b instanceof u)return b.value;if(!p){if(!this.stackSlot)throw new a.default("Invalid stack pop");this.stackSlot--}return b},topStack:function(){var f=this.isInline()?this.inlineStack:this.compileStack,p=f[f.length-1];return p instanceof u?p.value:p},contextName:function(f){return this.useDepths&&f?"depths["+f+"]":"depth"+f},quotedString:function(f){return this.source.quotedString(f)},objectLiteral:function(f){return this.source.objectLiteral(f)},aliasable:function(f){var p=this.aliases[f];return p?(p.referenceCount++,p):(p=this.aliases[f]=this.source.wrap(f),p.aliasable=!0,p.referenceCount=1,p)},setupHelper:function(f,p,b){var x=[],w=this.setupHelperArgs(p,f,x,b),k=this.nameLookup("helpers",p,"helper"),S=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : (container.nullContext || {})");return{params:x,paramsInit:w,name:k,callParams:[S].concat(x)}},setupParams:function(f,p,b){var x={},w=[],k=[],S=[],v=!b,_=void 0;v&&(b=[]),x.name=this.quotedString(f),x.hash=this.popStack(),this.trackIds&&(x.hashIds=this.popStack()),this.stringParams&&(x.hashTypes=this.popStack(),x.hashContexts=this.popStack());var y=this.popStack(),C=this.popStack();(C||y)&&(x.fn=C||"container.noop",x.inverse=y||"container.noop");for(var I=p;I--;)_=this.popStack(),b[I]=_,this.trackIds&&(S[I]=this.popStack()),this.stringParams&&(k[I]=this.popStack(),w[I]=this.popStack());return v&&(x.args=this.source.generateArray(b)),this.trackIds&&(x.ids=this.source.generateArray(S)),this.stringParams&&(x.types=this.source.generateArray(k),x.contexts=this.source.generateArray(w)),this.options.data&&(x.data="data"),this.useBlockParams&&(x.blockParams="blockParams"),x},setupHelperArgs:function(f,p,b,x){var w=this.setupParams(f,p,b);return w.loc=JSON.stringify(this.source.currentLocation),w=this.objectLiteral(w),x?(this.useRegister("options"),b.push("options"),["options=",w]):b?(b.push(w),""):w}},function(){for(var d="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),f=c.RESERVED_WORDS={},p=0,b=d.length;p<b;p++)f[d[p]]=!0}(),c.isValidJavaScriptVariableName=function(d){return!c.RESERVED_WORDS[d]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(d)};function h(d,f,p,b,x){var w=f.popStack(),k=p.length;d&&k--;for(var S=b;S<k;S++)w=f.nameLookup(w,p[S],x);return d?[f.aliasable("container.strict"),"(",w,", ",f.quotedString(p[k]),", ",JSON.stringify(f.source.currentLocation)," )"]:w}t.default=c,e.exports=t.default})(Ma,Ma.exports);var NC=Ma.exports;(function(e,t){t.__esModule=!0;function n(k){return k&&k.__esModule?k:{default:k}}var r=Z_,o=n(r),a=cu,i=n(a),l=tr,s=nr,u=NC,c=n(u),h=uu,d=n(h),f=su,p=n(f),b=o.default.create;function x(){var k=b();return k.compile=function(S,v){return s.compile(S,v,k)},k.precompile=function(S,v){return s.precompile(S,v,k)},k.AST=i.default,k.Compiler=s.Compiler,k.JavaScriptCompiler=c.default,k.Parser=l.parser,k.parse=l.parse,k.parseWithoutProcessing=l.parseWithoutProcessing,k}var w=x();w.create=x,p.default(w),w.Visitor=d.default,w.default=w,t.default=w,e.exports=t.default})(da,da.exports);var EC=da.exports;const PC=Ic(EC);function Ur(e,t){const n=[],r=new Set,o=a=>{var l,s,u,c,h,d,f,p,b,x;if(r.has(a)||!e[a])return;r.add(a),n.push(a);const i=e[a];switch(i.type){case"Container":case"ButtonGroup":(((l=i.data.props)==null?void 0:l.childrenIds)||[]).forEach(o);break;case"ColumnsContainer":case"FlexColumns":(((s=i.data.props)==null?void 0:s.columns)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Grid":(((u=i.data.props)==null?void 0:u.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o));break;case"Accordion":(((c=i.data.props)==null?void 0:c.items)||[]).forEach(w=>{(w.titleChildrenIds||[]).forEach(o),(w.contentChildrenIds||[]).forEach(o)});break;case"TabsBlock":case"Carousel":case"Marquee":(((h=i.data.props)==null?void 0:h.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"Pagination":(((d=i.data.props)==null?void 0:d.cells)||[]).forEach(w=>(w.childrenIds||[]).forEach(o)),(((f=i.data.props)==null?void 0:f.items)||[]).forEach(w=>{(w.contentChildrenIds||[]).forEach(o)});break;case"PricingAccordion":(((p=i.data.props)==null?void 0:p.items)||[]).forEach(w=>{(w.cardChildrenIds||[]).forEach(o),(w.detailChildrenIds||[]).forEach(o)});break;case"MenuPicker":(((b=i.data.props)==null?void 0:b.startChildrenIds)||[]).forEach(o),(((x=i.data.props)==null?void 0:x.endChildrenIds)||[]).forEach(o);break;case"EmailLayout":(i.data.childrenIds||[]).forEach(o);break}};return o(t),n}const Wr="relative",Yn="24h",MC=864e5;function mi(e){if(e==null||e==="")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t}function fs(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function OC(e,t){const n=mi(e);if(!n)return"";const r=(t==null?void 0:t.now)??new Date,o=t==null?void 0:t.locale,a=Math.round((fs(n).getTime()-fs(r).getTime())/MC);if(a===0)return"Today";if(a===1)return"Tomorrow";if(a===-1)return"Yesterday";if(a>=-6&&a<=6)return n.toLocaleDateString(o,{weekday:"short"});const i=n.getFullYear()===r.getFullYear();return n.toLocaleDateString(o,{month:"short",day:"numeric",...i?{}:{year:"numeric"}})}function Go(e){const t=e%100;if(t>=11&&t<=13)return`${e}th`;switch(e%10){case 1:return`${e}st`;case 2:return`${e}nd`;case 3:return`${e}rd`;default:return`${e}th`}}const LC=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],zC=["January","February","March","April","May","June","July","August","September","October","November","December"],jC=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Fn(e,t=2){const n=String(Math.abs(e));return n.length>=t?n:"0".repeat(t-n.length)+n}function bu(e,t){const r=new Intl.DateTimeFormat("en-US",{timeZone:t||void 0,era:"short",year:"numeric",month:"numeric",day:"numeric",weekday:"short",hour:"numeric",minute:"numeric",hourCycle:"h23"}).formatToParts(e),o=u=>{var c;return((c=r.find(h=>h.type===u))==null?void 0:c.value)??""},a=o("era"),i=Number(o("year")),l=a==="BC"||a==="B"?1-i:i,s=o("weekday");return{year:l,month:Number(o("month"))-1,day:Number(o("day")),weekday:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].indexOf(s),hour:Number(o("hour"))%24,minute:Number(o("minute"))}}function BC(e){const t=String(e);return t.length>=4?t:"0".repeat(4-t.length)+t}function La(e,t=Wr,n){if(t==="relative")return OC(e,{now:n==null?void 0:n.now,locale:n==null?void 0:n.locale});const r=mi(e);if(!r)return"";const{year:o,month:a,day:i,weekday:l}=bu(r,n==null?void 0:n.tz),s=LC[a],u=BC(o),c=Fn(a+1),h=Fn(i);switch(t){case"do-mmm-yyyy":return`${Go(i)} ${s} ${u}`;case"mmm-d-yyyy":return`${s} ${i}, ${u}`;case"d-mmm-yyyy":return`${i} ${s} ${u}`;case"dd-mm-yyyy":return`${h}/${c}/${u}`;case"mm-dd-yyyy":return`${c}/${h}/${u}`;case"yyyy-mm-dd":return`${u}-${c}-${h}`;case"do-mmm":return`${Go(i)} ${s}`;case"full":return`${jC[l]}, ${i} ${zC[a]} ${u}`;default:return`${Go(i)} ${s} ${u}`}}function Zr(e,t=Yn,n){const r=mi(e);if(!r)return"";const{hour:o,minute:a}=bu(r,n==null?void 0:n.tz);return t==="12h"?`${o%12===0?12:o%12}:${Fn(a)} ${o<12?"AM":"PM"}`:`${Fn(o)}:${Fn(a)}`}function xu(e,t){const n=new Map;if(!e||!Array.isArray(t))return n;const r=e;for(const o of t){if((o==null?void 0:o.type)!=="array"||!o.sourceBlockId)continue;const a=Array.isArray(o.value)?o.value:[];a.forEach((i,l)=>{if(l!==0)return;const s=o.sourceBlockId;if(!(!s||!r[s]))for(const u of Ur(r,s))n.set(u,i||{})}),a.forEach((i,l)=>{var u;if(l===0)return;const s=(u=o.rowIds)==null?void 0:u[l-1];if(!(!s||!r[s]))for(const c of Ur(r,s))n.set(c,i||{})})}return n}const DC={Text:["text"],Heading:["text"],Button:["text","url"],Image:["url"],Avatar:["imageUrl"],Logo:["url"],Rating:["value","max"],Progress:["value","max"],Container:["linkHref"]};function FC(e){return e?DC[e]:void 0}const za=PC.create();za.registerHelper("helperMissing",function(...e){const t=e[e.length-1];return new za.SafeString(`{{${t.name}}}`)});const ps=new Map;function HC(e){let t=ps.get(e);return t||(t=za.compile(e,{noEscape:!0,strict:!1}),ps.set(e,t)),t}const gs=new WeakMap;function vu(e){const t=gs.get(e);if(t)return t;const n=GC(e);return gs.set(e,n),n}function GC(e){const t={};for(const n of e)if(!(!n||!n.id)){if(n.type==="array"){if(!Array.isArray(n.value)||n.value.length===0)continue;const r=new Map;for(const a of n.itemFields??[])((a==null?void 0:a.type)==="date"||(a==null?void 0:a.type)==="time"||(a==null?void 0:a.type)==="datetime")&&a.id&&r.set(a.id,a);const o=n.value.map(a=>{const i={};if(a&&typeof a=="object")for(const l of Object.keys(a)){const s=a[l];if(s==null||s==="")continue;const u=r.get(l);if((u==null?void 0:u.type)==="datetime"){const c=Ir(l,String(s),r,"date"),h=Ir(l,String(s),r,"time"),d={date:c,time:h};Object.defineProperty(d,"toString",{value:()=>[c,h].filter(Boolean).join(" "),enumerable:!1}),i[l]=d}else i[l]=u?Ir(l,String(s),r):s}return i});Object.defineProperty(o,"toString",{value:()=>`{{${n.id}}}`,enumerable:!1}),t[n.id]=o;continue}if(n.type==="datetime"){const r=n.id,o=typeof n.value=="string"?n.value:"";if(!o){const u={date:`{{${r}.date}}`,time:`{{${r}.time}}`};Object.defineProperty(u,"toString",{value:()=>`{{${r}}}`,enumerable:!1}),t[r]=u;continue}const a=n.dateFormat??Wr,i=a==="relative"?Yo(r,o):La(o,a,{tz:n.dateTz}),l=Zr(o,n.timeFormat??Yn,{tz:n.dateTz}),s={date:i,time:l};Object.defineProperty(s,"toString",{value:()=>[i,l].filter(Boolean).join(" "),enumerable:!1}),t[r]=s;continue}if(!(typeof n.value!="string"||n.value==="")){if(n.type==="date"){const r=n.dateFormat??Wr;t[n.id]=r==="relative"?Yo(n.id,n.value):La(n.value,r,{tz:n.dateTz});continue}if(n.type==="time"){t[n.id]=Zr(n.value,n.timeFormat??Yn,{tz:n.dateTz});continue}t[n.id]=n.value}}return t}function bi(e){var r,o;const t=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;if(Array.isArray(t))return t;const n=e==null?void 0:e.formFields;return Array.isArray(n)?n:[]}const UC=/\{\{\s*#each\s+([\w.[\]]+)\s*\}\}([\s\S]*?)\{\{\s*\/each\s*\}\}/g;function WC(e,t){const n=new Map;if(e.indexOf("#each")===-1)return{masked:e,restore:n};let r=0;return{masked:e.replace(UC,(a,i)=>{const l=t[i];if(Array.isArray(l)&&l.length>0)return a;const u="HB_EACH_"+r+++"_";return n.set(u,a),u}),restore:n}}const ku=/\{\{\s*this\.([\w]+)(?:\.(date|time))?\s*\}\}/g;function ZC(e){const t=new Map;if(!Array.isArray(e))return t;for(const n of e)if(!((n==null?void 0:n.type)!=="array"||!Array.isArray(n.itemFields)))for(const r of n.itemFields)((r==null?void 0:r.type)==="date"||(r==null?void 0:r.type)==="time"||(r==null?void 0:r.type)==="datetime")&&r.id&&!t.has(r.id)&&t.set(r.id,r);return t}function ms(e,t,n){const r=n.dateFormat??Wr;return r==="relative"?Yo(e,t):La(t,r,{tz:n.dateTz})}function Ir(e,t,n,r){const o=n.get(e);if(!o)return t;if(o.type==="time")return Zr(t,o.timeFormat??Yn,{tz:o.dateTz});if(o.type==="datetime"){const a=Zr(t,o.timeFormat??Yn,{tz:o.dateTz});if(r==="time")return a;const i=ms(e,t,o);return r==="date"?i:[i,a].filter(Boolean).join(" ")}return ms(e,t,o)}function qC(e,t,n){return e.replace(ku,(r,o,a)=>{const i=t==null?void 0:t[o];return i==null||i===""?r:n?Ir(o,String(i),n,a):String(i)})}function sn(e,t,n){if(!e)return e??"";if(e.indexOf("{{")===-1)return e;let r=e;if(n&&(r=qC(r,n,ZC(t)),r.indexOf("{{")===-1)||!t||t.length===0)return r;try{const o=t&&t.length>0?vu(t):{},{masked:a,restore:i}=WC(r,o),l=new Map;let s=a;if(a.indexOf("{{")!==-1&&a.indexOf("#each")===-1){let c=0;s=a.replace(ku,h=>{const d="HB_THIS_"+c+++"_";return l.set(d,h),d})}let u=HC(s)(o);for(const[c,h]of l)u=u.split(c).join(h);if(i.size>0)for(const[c,h]of i)u=u.split(c).join(h);return u}catch{return r}}function wu(e,t,n,r){var s,u,c,h,d,f,p,b,x,w,k;if(!e||(!t||t.length===0)&&!n)return e;if(e.type==="TabsBlock"){const S=(u=(s=e.data)==null?void 0:s.props)==null?void 0:u.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.label;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=Array.isArray(_==null?void 0:_.contentChildrenIds)?_.contentChildrenIds[0]:void 0,R=I&&r?r.get(I):n,N=sn(C,t,R??null);N!==C&&(v||(v=S.map(M=>({...M}))),v[y]={...v[y],label:N})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="List"){const S=(h=(c=e.data)==null?void 0:c.props)==null?void 0:h.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{const C=_==null?void 0:_.text;if(typeof C!="string"||C.indexOf("{{")===-1)return;const I=sn(C,t,n);I!==C&&(v||(v=S.map(R=>({...R}))),v[y]={...v[y],text:I})}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Breadcrumb"){const S=(f=(d=e.data)==null?void 0:d.props)==null?void 0:f.items;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{for(const C of["label","href"]){const I=_==null?void 0:_[C];if(typeof I!="string"||I.indexOf("{{")===-1)continue;const R=sn(I,t,n);R!==I&&(v||(v=S.map(N=>({...N}))),v[y]={...v[y],[C]:R})}}),v?{...e,data:{...e.data,props:{...e.data.props,items:v}}}:e}if(e.type==="Table"){const S=(b=(p=e.data)==null?void 0:p.props)==null?void 0:b.cells;if(!Array.isArray(S)||S.length===0)return e;let v=null;return S.forEach((_,y)=>{if(typeof _!="string"||_.indexOf("{{")===-1)return;const C=sn(_,t,n);C!==_&&(v||(v=[...S]),v[y]=C)}),v?{...e,data:{...e.data,props:{...e.data.props,cells:v}}}:e}let o=e;if(e.type==="Container"){const S=(w=(x=e.data)==null?void 0:x.style)==null?void 0:w.backgroundImage;if(typeof S=="string"&&S.indexOf("{{")!==-1){const v=sn(S,t,n);v!==S&&(o={...o,data:{...o.data,style:{...o.data.style,backgroundImage:v}}})}}const a=FC(o.type);if(!a)return o;const i=(k=o.data)==null?void 0:k.props;if(!i)return o;let l=null;for(const S of a){const v=i[S];if(typeof v!="string"||v.indexOf("{{")===-1)continue;const _=sn(v,t,n);_!==v&&(l||(l={...i}),l[S]=_)}return l?{...o,data:{...o.data,props:l}}:o}function xi(e,t){var l;if(!e)return e;const n=t??bi(e);let r={...e},o=!1;const a=xu(e,n);if(n&&n.length>0&&(Object.keys(vu(n)).length>0||a.size>0))for(const s of Object.keys(r)){const u=r[s],c=wu(u,n,a.get(s),a);c!==u&&(r[s]=c,o=!0)}const i=r.root;if(((l=i==null?void 0:i.data)==null?void 0:l.formFields)!==void 0){const{formFields:s,...u}=i.data;r.root={...i,data:u},o=!0}return o?r:e}const bs=Object.fromEntries(ft.map(e=>[e.key,e.value]));function Vt(e){return!!e&&typeof e=="object"&&"top"in e&&"left"in e}function vi(e){return e.includes("linear-gradient")||e.includes("radial-gradient")||e.includes("repeating-linear-gradient")}function VC(e,t){const n=e.borderColor??(t==null?void 0:t.borderColor)??null;if(!n)return"";if(n==="transparent")return"border:none!important";const r=Vt(e.borderWidth)?e.borderWidth:Vt(t==null?void 0:t.borderWidth)?t==null?void 0:t.borderWidth:null;return vi(n)?`padding:${(r==null?void 0:r.top)??0}px ${(r==null?void 0:r.right)??0}px ${(r==null?void 0:r.bottom)??0}px ${(r==null?void 0:r.left)??0}px!important`:[`border-top:${(r==null?void 0:r.top)??0}px solid ${n}!important`,`border-right:${(r==null?void 0:r.right)??0}px solid ${n}!important`,`border-bottom:${(r==null?void 0:r.bottom)??0}px solid ${n}!important`,`border-left:${(r==null?void 0:r.left)??0}px solid ${n}!important`].join(";")}function YC(e,t,n){const r=t.borderColor??(n==null?void 0:n.borderColor)??null;if(!r||!vi(r))return"";const o=t.padding;if(!Vt(o))return"";const a=`padding:${o.top}px ${o.right}px ${o.bottom}px ${o.left}px!important`;return`${e}>.container-block>.container-block-inner{${a}}`}function KC(e,t){const n=[],r=e.borderColor!==void 0||e.borderWidth!==void 0,o=vi((t==null?void 0:t.borderColor)??"");if(r||e.padding!==void 0&&o){const i=VC(e,t);i&&n.push(i)}const a=e.backgroundSize==="none";a&&n.push("background-image:none!important");for(const i of Object.keys(e)){const l=e[i];if(l!=null)switch(i){case"borderColor":case"borderWidth":break;case"fontSize":n.push(`font-size:${l}px!important`);break;case"fontFamily":bs[l]&&n.push(`font-family:${bs[l]}!important`);break;case"fontWeight":n.push(`font-weight:${l}!important`);break;case"fontStyle":n.push(`font-style:${l}!important`);break;case"textDecoration":n.push(`text-decoration:${l}!important`);break;case"lineHeight":n.push(`line-height:${l}!important`);break;case"textAlign":n.push(`text-align:${l}!important`);break;case"buttonTextAlign":n.push(`justify-content:${l==="center"?"center":l==="right"?"flex-end":"flex-start"}!important`);break;case"padding":Vt(l)&&!o&&n.push(`padding:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"margin":Vt(l)&&n.push(`margin:${l.top}px ${l.right}px ${l.bottom}px ${l.left}px!important`);break;case"marginBottom":n.push(`margin-bottom:${l}px!important`);break;case"width":n.push(`width:${typeof l=="number"?`${l}px`:l}!important`);break;case"height":n.push(`height:${typeof l=="number"?`${l}px`:l}!important`);break;case"backgroundImage":n.push(l&&!a?`background-image:url("${String(l).replace(/"/g,'\\"')}")!important`:"background-image:none!important");break;case"backgroundSize":a||n.push(`background-size:${l}!important`);break;case"backgroundRepeat":n.push(`background-repeat:${l}!important`);break;case"activeFontSize":n.push(`--ahd-tabs-active-font-size:${typeof l=="number"?`${l}px`:l}`);break;case"showActiveBorder":n.push(`--ahd-tabs-active-border-color:${l?"currentColor":"transparent"}`);break;case"tabGap":n.push(`--ahd-tabs-tab-gap:${l}px`);break;case"contentGap":n.push(`--ahd-tabs-content-gap:${l}px`);break;case"navWidth":n.push(`--ahd-tabs-nav-width:${l}px`);break;case"starSize":n.push(`--ahd-rating-star-size:${l}px`);break;case"starGap":n.push(`--ahd-rating-star-gap:${l}px`);break;case"arrowSize":n.push(`--ahd-carousel-arrow-size:${l}px`),n.push(`--ahd-carousel-chevron-size:${Math.max(12,Math.min(40,Math.round(Number(l)*.5)))}px`);break;case"dotSize":n.push(`--ahd-carousel-dot-size:${l}px`);break;case"slideGap":n.push(`--ahd-carousel-slide-gap:${l}px`);break;case"buttonSize":n.push(`--ahd-pgn-btn-size:${l}px`);break;case"buttonGap":n.push(`--ahd-pgn-btn-gap:${l}px`);break;case"buttonRadius":n.push(`--ahd-pgn-btn-radius:${l}px`);break;case"controlGap":n.push(`--ahd-pgn-control-gap:${l}px`);break;case"borderRadius":if(typeof l=="number")n.push(`border-radius:${l}px!important`);else if(l&&typeof l=="object"){const{topLeft:s=0,topRight:u=0,bottomRight:c=0,bottomLeft:h=0}=l;n.push(`border-radius:${s}px ${u}px ${c}px ${h}px!important`)}else n.push(`border-radius:${l}!important`);break}}return n.join(";")}function JC(e){const t=[];for(const n of Object.keys(e)){const r=e[n];if(r!=null)switch(n){case"lineHeight":t.push(`--ahd-divider-thickness:${r}px!important`);break;case"height":{const o=typeof r=="number"?`${r}px`:r;t.push(`height:${o}!important`),t.push(`--ahd-iframe-height:${o}`),t.push(`--ahd-calendly-height:${o}`),t.push(`--ahd-demo-height:${o}`);break}case"width":{const o=typeof r=="number"?`${r}px`:r;t.push(`--ahd-iframe-width:${o}`),t.push(`--ahd-calendly-width:${o}`),t.push(`--ahd-demo-width:${o}`);break}case"blockPadding":Vt(r)&&t.push(`padding:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break;case"blockMargin":Vt(r)&&t.push(`margin:${r.top}px ${r.right}px ${r.bottom}px ${r.left}px!important`);break}}return t.join(";")}function XC(e){return`${e}>.text-block>div,${e}>.heading-block-wrapper>.heading-block`}function QC(e){if(e==null)return"";const t=Number(e);return t>0?"display:-webkit-box!important;-webkit-line-clamp:"+t+"!important;-webkit-box-orient:vertical!important;overflow:hidden!important":"display:block!important;overflow:visible!important"}function xs(e,t){if(!t)return null;const n=e??{},r={};for(const o of Object.keys(t)){const a=t[o],i=n[o],l=!!a&&typeof a=="object"&&!Array.isArray(a)&&!!i&&typeof i=="object"&&!Array.isArray(i);r[o]=l?{...i,...a}:a}return r}function eA(e,t,n,r){if(!t)return"";const o=`#${e}`,a=nA(o),i=XC(o),l=[],s=(c,h)=>{const d=xs(n,h==null?void 0:h.style),f=xs(r,h==null?void 0:h.props),p=[d?KC(d,n):"",f?JC(f):""].filter(Boolean).join(";"),b=d?YC(o,d,n):"",x=[p?`${a}{${p}}`:"",b,h!=null&&h.hidden?`${o}{display:none}`:""].filter(Boolean).join("");if(x&&l.push(`${c}{${x}}`),h!=null&&h.style&&"lineClamp"in h.style){const w=QC(d==null?void 0:d.lineClamp);w&&l.push(`${c}{${i}{${w}}}`)}};s(Kt,t.tablet),s(`@media (max-width:${Be}px)`,t.mobile);const u=oA(e,t,n,r);return u&&l.push(u),l.join("")}function tA(e,t){return t?e?{...e,...t}:t:e}function ja(e,t){return(t==null?void 0:t.blockMargin)??(e==null?void 0:e.margin)??(t==null?void 0:t.margin)??null}function vs(e,t,n){const r=ja(e,t),o=ja(n==null?void 0:n.style,n==null?void 0:n.props);return tA(r,o)}function Uo(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 nA(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 rA(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 oA(e,t,n,r){if(!t)return"";const o=`#${e}`,a=rA(o),i=ja(n,r),l=Uo(i),s=Uo(vs(n,r,t.tablet)),u=Uo(vs(n,r,t.mobile));return s===l&&u===l?"":`
|
|
605
|
+
${Kt} { ${a} { width: ${s} !important; max-width: 100% !important; } }
|
|
606
|
+
@media (max-width:${Be}px) { ${a} { width: ${u} !important; max-width: 100% !important; } }
|
|
607
|
+
`.trim()}const aA=e=>{var r,o;const t=!!((r=e==null?void 0:e.props)!=null&&r.decorative),n=((o=e==null?void 0:e.props)==null?void 0:o.alt)??"";return t?m.jsx("div",{"aria-hidden":"true",role:"presentation",style:{display:"contents"},children:m.jsx(rl,{...e,props:{...(e==null?void 0:e.props)??{},alt:""}})}):m.jsx(rl,{...e,props:{...(e==null?void 0:e.props)??{},alt:n}})},iA=({props:e})=>m.jsx("div",{"aria-hidden":"true",className:"spacer-block",style:{height:(e==null?void 0:e.height)??P0.height}}),lA=w1,Su=V.createContext({}),ks=V.createContext(!1),sA=typeof window<"u"?V.useLayoutEffect:V.useEffect;function $u(e){var n,r;const t=(r=(n=e==null?void 0:e.root)==null?void 0:n.data)==null?void 0:r.formFields;return Array.isArray(t)?t:[]}const ws=new WeakMap;function cA(e){if(!e||typeof e!="object")return new Map;let t=ws.get(e);return t||(t=xu(e,$u(e)),ws.set(e,t)),t}const _u=V.createContext({});function uA(){return V.useContext(Su)}function dA(){return V.useContext(_u)}const Cu={ColumnsContainer:{schema:Jx,Component:Qx},FlexColumns:{schema:ev,Component:lv},Grid:{schema:xv,Component:Sv},ButtonGroup:{schema:nk,Component:rk},Container:{schema:Uv,Component:Sc},EmailLayout:{schema:t1,Component:lA},Accordion:{schema:ak,Component:sk},PricingAccordion:{schema:uk,Component:hk},TabsBlock:{schema:gk,Component:Sk},Carousel:{schema:_k,Component:Ik},Pagination:{schema:Ek,Component:Dk},Rating:{schema:Fk,Component:Wk},Progress:{schema:Vk,Component:ew},Marquee:{schema:tw,Component:gw},Timer:{schema:xw,Component:yw},Avatar:{schema:Fg,Component:aA},Button:{schema:Tm,Component:Nm},Divider:{schema:Dm,Component:Fm},Heading:{schema:Xm,Component:Qm},Html:{schema:Ib,Component:Nb},Image:{schema:qb,Component:Yb},Logo:{schema:d0,Component:f0},Video:{schema:y0,Component:N0},IFrame:{schema:vx,Component:Sx},Calendly:{schema:Cx,Component:Ix},YouTubeUrl:{schema:hx,Component:px},Spacer:{schema:E0,Component:iA},SkipLink:{schema:p2,Component:Kc},AccessibilityTools:{schema:m2,Component:eu},Stepper:{schema:N1,Component:E1},List:{schema:F1,Component:G1},Text:{schema:ax,Component:lx},Mdx:{schema:c$,Component:f$},QuillBlock:{schema:$$,Component:C$},DemoPicker:{schema:A$,Component:e=>m.jsx(I$,{...e})},MenuPicker:{schema:N$,Component:e=>m.jsx(Y$,{...e})},Breadcrumb:{schema:e2,Component:s2},FormsPicker:{schema:c2,Component:e=>m.jsx(f2,{...e})},AppBannerPicker:{schema:w2,Component:e=>m.jsx(_2,{...e})},FaqPicker:{schema:C2,Component:e=>m.jsx(I2,{...e})},Table:{schema:R2,Component:N2}},Au=Mx(Cu),hA=xn($(),Au),fA=Px(Cu);function Te({id:e}){var _,y,C,I,R,N,M;const t=uA(),{staticRender:n,injectElementIds:r,mainBlockId:o,hoistedSkipLinkId:a,hoistedA11yToolsId:i}=dA(),l=t[e];if(a&&e===a&&(l==null?void 0:l.type)==="SkipLink"||i&&e===i&&(l==null?void 0:l.type)==="AccessibilityTools")return null;const s=o&&e===o&&(l==null?void 0:l.type)==="Container"?{...l,data:{...l.data,props:{...((_=l.data)==null?void 0:_.props)??{},elementId:"main-content"}}}:l,u=$u(t),c=cA(t),h=c.get(e),d=wu(s,u,h,c),f=d,p=(f==null?void 0:f.type)==="Container"?m.jsx(Sc,{...f.data,blockId:e}):m.jsx(fA,{...f});if(e==="root")return p;const b=!!((y=f==null?void 0:f.data)!=null&&y.hidden),x=n&&r?`ahd-${e}`:e,w=eA(x,(C=f==null?void 0:f.data)==null?void 0:C.responsive,(I=f==null?void 0:f.data)==null?void 0:I.style,(R=f==null?void 0:f.data)==null?void 0:R.props),S=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]).has(f==null?void 0:f.type)?(M=(N=f==null?void 0:f.data)==null?void 0:N.props)==null?void 0:M.animation:null,v=S&&S.type&&S.type!=="none"?{"data-animate-type":S.type,"data-animate-trigger":S.trigger??"load","data-animate-speed":S.speed??"medium","data-animate-delay":S.delay??0,...S.disableOnMobile?{"data-animate-disable-mobile":"true"}:{}}:{};return n&&r?m.jsxs("div",{id:x,className:"ahd-block-wrapper",style:b?{display:"none"}:void 0,...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]}):m.jsxs("div",{id:x,style:{scrollMarginTop:"80px",...b?{display:"none"}:null},...v,children:[w&&m.jsx("style",{dangerouslySetInnerHTML:{__html:w}}),p]})}function Kn({document:e,rootBlockId:t,staticRender:n,injectElementIds:r,isBanner:o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}){const s=V.useMemo(()=>({staticRender:!!n,injectElementIds:!!r,isBanner:!!o,mainBlockId:a,hoistedSkipLinkId:i,hoistedA11yToolsId:l}),[n,r,o,a,i,l]),u=V.useContext(ks),c=V.useRef(null);return sA(()=>{n||u||c.current&&(pm(c.current),gm(c.current))},[n,u,e,t]),m.jsx("div",{ref:c,style:{display:"contents"},children:m.jsx(Su.Provider,{value:e,children:m.jsx(_u.Provider,{value:s,children:m.jsx(ks.Provider,{value:!0,children:m.jsx(Te,{id:t})})})})})}function pA(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="SkipLink")return t}function gA(e){for(const[t,n]of Object.entries(e??{}))if((n==null?void 0:n.type)==="AccessibilityTools")return t}function mA(e,t){const n=new Set;function r(o){var s,u,c,h;if(n.has(o))return;n.add(o);const a=e[o];if(!a)return;if(a.type==="Container"&&((u=(s=a.data)==null?void 0:s.props)==null?void 0:u.tag)==="main")return o;const i=((c=a.data)==null?void 0:c.props)??{},l=[];Array.isArray(i.childrenIds)&&l.push(i.childrenIds),Array.isArray((h=a.data)==null?void 0:h.childrenIds)&&l.push(a.data.childrenIds),Array.isArray(i.columns)&&i.columns.forEach(d=>{Array.isArray(d==null?void 0:d.childrenIds)&&l.push(d.childrenIds)});for(const d of l)for(const f of d){const p=r(f);if(p)return p}}return r(t)}const bA=()=>`<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,""")}">`,xA=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="TabsBlock"),vA=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="DemoPicker"),kA=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Carousel"),wA=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Pagination"),SA=e=>Object.values(e??{}).some(t=>(t==null?void 0:t.type)==="Timer"),$A=new Set(["Image","Container","Button","Avatar","Logo","Heading","Text"]),Ss=e=>Object.values(e??{}).some(t=>{var n,r,o;return $A.has(t==null?void 0:t.type)&&((o=(r=(n=t==null?void 0:t.data)==null?void 0:n.props)==null?void 0:r.animation)==null?void 0:o.type)&&t.data.props.animation.type!=="none"}),Cn="https://pagepilot.fabbuilder.com/scripts",_A=`${Cn}/pagePilotTabs.js`,CA=`${Cn}/pagePilotCarousel.js`,AA=`${Cn}/pagePilotPagination.js`,yA=`${Cn}/pagePilotDemoScale.js`,IA=`${Cn}/pagePilotTimer.js`,RA=`${Cn}/pagePilotAnimation.js`,TA=`
|
|
540
608
|
@keyframes ahd-anim-fade-in { from { opacity: 0; } to { opacity: 1; } }
|
|
541
609
|
@keyframes ahd-anim-slide-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
|
|
542
610
|
@keyframes ahd-anim-slide-right { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
|
|
@@ -549,8 +617,8 @@ ${Dt} { ${i} { width: ${s} !important; max-width: 100% !important; } }
|
|
|
549
617
|
80% { transform: translateY(-2px); }
|
|
550
618
|
100% { opacity: 1; transform: translateY(0); }
|
|
551
619
|
}
|
|
552
|
-
`.trim(),
|
|
553
|
-
${
|
|
620
|
+
`.trim(),yu=`
|
|
621
|
+
${TA}
|
|
554
622
|
|
|
555
623
|
/* Elements that animate on scroll/hover/click start hidden so there is no
|
|
556
624
|
flash of the final state before the trigger fires. Load-triggered elements
|
|
@@ -570,7 +638,7 @@ html.ahd-anim-ready [data-animate-type]:not([data-animate-trigger="load"]):not(.
|
|
|
570
638
|
animation-fill-mode: both;
|
|
571
639
|
animation-timing-function: ease-out;
|
|
572
640
|
}
|
|
573
|
-
`.trim(),
|
|
641
|
+
`.trim(),NA=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{}:;,>~+])\s*/g,"$1").replace(/\s+/g," ").replace(/;}/g,"}").trim(),EA=(e,t=!1)=>NA(`
|
|
574
642
|
|
|
575
643
|
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css');
|
|
576
644
|
|
|
@@ -644,22 +712,12 @@ ${t?`.ahd-page-container {
|
|
|
644
712
|
|
|
645
713
|
.ahd-page-root {
|
|
646
714
|
all: initial;
|
|
647
|
-
/* "all: initial" also resets the inherited color-scheme to "normal", which
|
|
648
|
-
would force every light-dark() token below this node to its light value
|
|
649
|
-
even though the [data-ahd-theme] wrapper above asked for "light dark".
|
|
650
|
-
Re-inherit it so the theme scope actually reaches the blocks. */
|
|
651
|
-
color-scheme: inherit;
|
|
652
715
|
display: block;
|
|
653
716
|
box-sizing: border-box;
|
|
654
717
|
font-family: Inter, "Helvetica Neue", "Arial Nova", "Nimbus Sans", Arial, sans-serif;
|
|
655
718
|
font-size: 16px;
|
|
656
719
|
line-height: 1.5;
|
|
657
|
-
/* Baseline text color every page inherits. The "all: initial" above resets
|
|
658
|
-
inherited color, so this cannot be overridden from an ancestor — it has to
|
|
659
|
-
carry its own dark value. The plain declaration first keeps browsers
|
|
660
|
-
without light-dark() support rendering exactly as before. */
|
|
661
720
|
color: #262626;
|
|
662
|
-
color: light-dark(#262626, #cccccc);
|
|
663
721
|
-webkit-text-size-adjust: 100%;
|
|
664
722
|
-moz-text-size-adjust: 100%;
|
|
665
723
|
-ms-text-size-adjust: 100%;
|
|
@@ -728,26 +786,13 @@ ${t?`.ahd-page-container {
|
|
|
728
786
|
the element still wins over it. */
|
|
729
787
|
.ahd-page-root .container-block-inner {
|
|
730
788
|
background-color: #ffffff;
|
|
731
|
-
background-color: light-dark(#ffffff, #121212);
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
/* light-dark() above resolves against the OS. When the runtime in
|
|
735
|
-
pageScripts.ts pins the fragment to the HOST page's theme instead, these
|
|
736
|
-
explicit scopes take over — they are what make a dark host site render this
|
|
737
|
-
dark while the OS sits on light. Plain values, so no light-dark() support
|
|
738
|
-
is required once a theme is pinned. */
|
|
739
|
-
[data-ahd-theme="light"] .ahd-page-root .container-block-inner {
|
|
740
|
-
background-color: #ffffff;
|
|
741
|
-
}
|
|
742
|
-
[data-ahd-theme="dark"] .ahd-page-root .container-block-inner {
|
|
743
|
-
background-color: #121212;
|
|
744
789
|
}
|
|
745
790
|
|
|
746
791
|
/* Padding is authored per device (Desktop/Tablet/Mobile tabs) and published as
|
|
747
792
|
scoped @media CSS per block — see Reader/responsiveCss.ts. These breakpoints
|
|
748
793
|
therefore carry only overflow/sizing guards; they must NOT clamp padding, or
|
|
749
794
|
they would override the value the author explicitly set for the device. */
|
|
750
|
-
@media (max-width: ${
|
|
795
|
+
@media (max-width: ${ze}px) {
|
|
751
796
|
.ahd-page-root .container-block {
|
|
752
797
|
max-width: 100% !important;
|
|
753
798
|
}
|
|
@@ -795,7 +840,7 @@ ${t?`.ahd-page-container {
|
|
|
795
840
|
}
|
|
796
841
|
|
|
797
842
|
|
|
798
|
-
@media (max-width: ${
|
|
843
|
+
@media (max-width: ${Be}px) {
|
|
799
844
|
/* The page's own padding is authored per device on the Style tab (see
|
|
800
845
|
EmailLayout's emailLayoutResponsive.ts, which emits scoped @media CSS for it)
|
|
801
846
|
and must NOT be force-zeroed here — a blanket rule at this selector beat the
|
|
@@ -854,7 +899,7 @@ ${t?`.ahd-page-container {
|
|
|
854
899
|
|
|
855
900
|
/* Layout-content zeroing only — the block's OWN padding is authored per device
|
|
856
901
|
and must not be clamped here. */
|
|
857
|
-
@media (max-width: ${
|
|
902
|
+
@media (max-width: ${ze}px) {
|
|
858
903
|
.ahd-page-root .email-layout-content:has(.faq-picker-block) {
|
|
859
904
|
padding: 0 !important;
|
|
860
905
|
}
|
|
@@ -863,13 +908,13 @@ ${t?`.ahd-page-container {
|
|
|
863
908
|
}
|
|
864
909
|
}
|
|
865
910
|
|
|
866
|
-
@container ahd-page (max-width: ${
|
|
911
|
+
@container ahd-page (max-width: ${ze}px) {
|
|
867
912
|
.ahd-page-root .email-layout-content:has(.faq-picker-block) {
|
|
868
913
|
padding: 0 !important;
|
|
869
914
|
}
|
|
870
915
|
}
|
|
871
916
|
|
|
872
|
-
@media (max-width: ${
|
|
917
|
+
@media (max-width: ${ze}px) {
|
|
873
918
|
.ahd-page-root .email-layout-content:has(.app-banner-picker-block) {
|
|
874
919
|
padding: 0 !important;
|
|
875
920
|
}
|
|
@@ -878,7 +923,7 @@ ${t?`.ahd-page-container {
|
|
|
878
923
|
}
|
|
879
924
|
}
|
|
880
925
|
|
|
881
|
-
@container ahd-page (max-width: ${
|
|
926
|
+
@container ahd-page (max-width: ${ze}px) {
|
|
882
927
|
.ahd-page-root .email-layout-content:has(.app-banner-picker-block) {
|
|
883
928
|
padding: 0 !important;
|
|
884
929
|
}
|
|
@@ -947,37 +992,37 @@ table[style*="maxHeight"] {
|
|
|
947
992
|
table-layout: fixed !important;
|
|
948
993
|
}
|
|
949
994
|
|
|
950
|
-
${
|
|
995
|
+
${yu}
|
|
951
996
|
|
|
952
|
-
`),
|
|
997
|
+
`),PA=[{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'}],MA={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]},OA=(e,t)=>{const n=e.replace(/ /g,"+");return t.length===1&&t[0]===400?n:`${n}:wght@${t.join(";")}`},LA=`https://fonts.googleapis.com/css2?${Object.entries(MA).map(([e,t])=>`family=${OA(e,t)}`).join("&")}&display=swap`,Iu=PA.filter(e=>e.key!=="inherit").map(e=>({label:e.label,css:e.value}));Iu.map(e=>e.css);const zA=e=>e.replace(/"/g,'\\"');Iu.map(e=>{const t=zA(e.css);return`
|
|
953
998
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value="${t}"]::before,
|
|
954
999
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value="${t}"]::before {
|
|
955
1000
|
content: '${e.label}';
|
|
956
1001
|
font-family: ${e.css};
|
|
957
1002
|
}`}).join(`
|
|
958
|
-
`);const
|
|
1003
|
+
`);const jA=e=>{let t=0;const n=e.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(r,o,a)=>{t++;const i=String(a).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s+/g," ").replace(/\s*([{};:,])\s*/g,"$1").trim();return`<style${o}>${i}</style>`});return console.log("[renderToStaticMarkup] minified",t,"style block(s)"),n};function ki(e,{rootBlockId:t,seo:n,injectElementIds:r,minifyCss:o,lang:a,skipLink:i,accessibilityTools:l,includePageCSS:s,headHtml:u,bodyBottomHtml:c,isBanner:h,injectTabsScrollSyncScript:d=!0,injectCarouselScript:f=!0,injectPaginationScript:p=!0,injectFontAssets:b=!0,injectTimerScript:x=!0,injectAnimationScript:w=!0}){var Ae;const k=((Ae=e==null?void 0:e[t])==null?void 0:Ae.data)??{};a??k.lang;const S=i??k.skipLink??void 0,v=l??k.accessibilityTools??void 0,_=Object.values(e??{}).some(ee=>(ee==null?void 0:ee.type)==="SkipLink"),y=Object.values(e??{}).some(ee=>(ee==null?void 0:ee.type)==="AccessibilityTools");!_&&(S==null||S.enabled);const C=!y&&!!(v!=null&&v.enabled),I=C?Jc(v):"",R=C?Xc(v):"",N=C?Qc():"",M=d&&xA(e),P=f&&kA(e),O=p&&wA(e),H=x&&SA(e),B=vA(e),Z=w&&Ss(e),F=Ss(e),Y=m.jsxs("div",{style:{margin:0,padding:0},"data-ahd-tpl-root":"true",children:[s&&m.jsx("style",{dangerouslySetInnerHTML:{__html:EA(void 0,!1)}}),I&&m.jsx("style",{dangerouslySetInnerHTML:{__html:I}}),F&&m.jsx("style",{dangerouslySetInnerHTML:{__html:yu}}),b&&m.jsx("link",{rel:"stylesheet",href:LA}),m.jsx("style",{children:`.gc-tooltip * {
|
|
959
1004
|
margin: 0;
|
|
960
1005
|
padding: 0;
|
|
961
1006
|
box-sizing: border-box;
|
|
962
1007
|
}
|
|
963
1008
|
.gc-tooltip .gc-close { display: none !important; }
|
|
964
|
-
.gc-tooltip .gc-copyright { display: none !important; }`}),
|
|
965
|
-
|
|
966
|
-
<html lang="${vr(c)}">
|
|
1009
|
+
.gc-tooltip .gc-copyright { display: none !important; }`}),m.jsx("style",{dangerouslySetInnerHTML:{__html:Ja}}),R&&m.jsx("div",{dangerouslySetInnerHTML:{__html:R}}),N&&m.jsx("script",{dangerouslySetInnerHTML:{__html:N}}),(()=>{const ee=pA(e),me=gA(e),ve=mA(e,t),ue=ee?e[ee]:null,q=me?e[me]:null,K=ve?m.jsx(Kn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,mainBlockId:ve,hoistedSkipLinkId:ee,hoistedA11yToolsId:me}):m.jsx("main",{id:"main-content",tabIndex:-1,children:m.jsx(Kn,{document:e,rootBlockId:t,staticRender:!0,injectElementIds:!!r,isBanner:!!h,hoistedSkipLinkId:ee,hoistedA11yToolsId:me})});return m.jsxs(m.Fragment,{children:[ue&&m.jsx(Kc,{...ue.data??{}}),h?K:m.jsx("div",{className:"ahd-page-root",children:K}),q&&m.jsx(eu,{...q.data??{}})]})})(),M&&m.jsx("script",{src:_A,defer:!0}),P&&m.jsx("script",{src:CA,defer:!0}),O&&m.jsx("script",{src:AA,defer:!0}),H&&m.jsx("script",{src:IA,defer:!0}),B&&m.jsx("script",{src:yA,defer:!0}),Z&&m.jsx("script",{src:RA,defer:!0})]}),J=Hu.renderToStaticMarkup(Y);let te=o?jA(J):J;const X=bA(),ae=te.lastIndexOf("</div>");return te=ae!==-1?te.slice(0,ae)+X+te.slice(ae):te+X,u&&(te=te.replace("</head>",`${u}</head>`)),c&&(te=te.replace("</body>",`${c}</body>`)),te}function Ru(e){return((e==null?void 0:e.sectionType)||"internal")==="external"}function BA(e){var t;return String((e==null?void 0:e.identifier)||((t=e==null?void 0:e.metadata)==null?void 0:t.identifier)||"")}function DA(e){const t=BA(e);return t?`<div id="${Rr(t)}"></div>`:""}function FA(e,t={}){var a;if(!e)return"";const n=t.rootBlockId??"root",r=((a=e==null?void 0:e[n])==null?void 0:a.data)??{},o=t.rootOverrides??{};try{return ki(e,{rootBlockId:n,injectElementIds:!0,minifyCss:!0,includePageCSS:!0,lang:o.lang??r.lang,skipLink:o.skipLink??r.skipLink,accessibilityTools:o.accessibilityTools??r.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectPaginationScript:t.injectPaginationScript,injectAnimationScript:t.injectAnimationScript,injectFontAssets:t.injectFontAssets,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner,seo:t.seo})}catch(i){return console.error("[PagePilotEditor] renderToStaticMarkup failed:",i),""}}function Rr(e){return String(e).replace(/&/g,"&").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function HA(e,t,n={}){var d,f,p;const r=t.find(b=>!Ru(b)),o=((p=(f=(d=r==null?void 0:r.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)??{},a=n.lang||o.lang||"en",i=n.canvasColor||o.canvasColor||"#FFFFFF",l=n.fontFamily||(typeof o.fontFamily=="string"?o.fontFamily:"Inter, system-ui, sans-serif"),s=n.seoTitle?`<title>${Rr(n.seoTitle)}</title>`:"",u=n.seoDescription?`<meta name="description" content="${Rr(n.seoDescription)}" />`:"",c=n.extraHead??"",h=n.extraBodyBottom??"";return`<!doctype html>
|
|
1010
|
+
<html lang="${Rr(a)}">
|
|
967
1011
|
<head>
|
|
968
1012
|
<meta charset="utf-8" />
|
|
969
1013
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
970
|
-
${
|
|
971
|
-
${
|
|
1014
|
+
${s}
|
|
1015
|
+
${u}
|
|
972
1016
|
<style>
|
|
973
1017
|
html, body { margin: 0; padding: 0; }
|
|
974
|
-
body { background: ${
|
|
1018
|
+
body { background: ${i}; font-family: ${l}; }
|
|
975
1019
|
* { box-sizing: border-box; }
|
|
976
1020
|
</style>
|
|
977
|
-
${
|
|
1021
|
+
${c}
|
|
978
1022
|
</head>
|
|
979
1023
|
<body>
|
|
980
|
-
${
|
|
981
|
-
${
|
|
1024
|
+
${e}
|
|
1025
|
+
${h}
|
|
982
1026
|
</body>
|
|
983
|
-
</html>`,sectionHtml:r,flushedSections:i}}function Fk(e){var i,a,l,s,c,u,h,d,f,p,b;if(!e)return[];const t=e.configuration??{},n=(a=(i=t==null?void 0:t.root)==null?void 0:i.data)==null?void 0:a.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const o=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(o){const x=new Set,w=[];for(const S of o){const k=(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(k))for(const v of k)!(v!=null&&v.id)||x.has(v.id)||(x.add(v.id),w.push(v))}if(w.length>0)return w}const r=(b=(p=(f=(d=(h=t==null?void 0:t.step)==null?void 0:h.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)==null?void 0:b.formFields;return Array.isArray(r)&&r.length>0?r:Array.isArray(e.formFields)?e.formFields:[]}function Hk(e){var n,o,r,i,a,l,s;if(!e||typeof e!="object")return null;const t=e.configuration;if(!t||typeof t!="object")return null;if(t.root)return t;if(t.isIndividualBlock&&typeof t.rootBlockId=="string"&&t.blocks&&typeof t.blocks=="object"&&t.blocks[t.rootBlockId]){const c=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:c}}}}return(r=(o=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:o.document)!=null&&r.root?t.content.contentMetadata.document:(a=(i=t.contentMetadata)==null?void 0:i.document)!=null&&a.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function El(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,o)=>n==null?n:n[o],e)}function Ba(e,t){if(t){const n=El(e,t);if(Array.isArray(n))return n;const o=Ba(e);if(o){const r=o.map(i=>El(i,t)).filter(i=>i&&typeof i=="object");if(r.length>0)return r}}if(Array.isArray(e))return e;if(e&&typeof e=="object"){for(const n of["data","rows","results","items","records"])if(Array.isArray(e[n]))return e[n]}return null}function Gk(e,t){if(!t||t.length===0){const o={};for(const[r,i]of Object.entries(e))i!=null&&(o[r]=String(i));return o}const n={};for(const o of t){const r=e[o.id];r!=null&&r!==""&&(n[o.id]=String(r))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function Uk(e,t,n,o){if(typeof AbortController>"u")return n(e,t);const r=new AbortController,i=setTimeout(()=>r.abort(),o);try{return await n(e,{...t,signal:r.signal})}finally{clearTimeout(i)}}async function $c(e,t={}){var h;const n=Array.isArray(e)?e:[],o=n.filter(d=>{var f,p;return((f=d==null?void 0:d.dataSource)==null?void 0:f.type)==="api"&&((p=d==null?void 0:d.dataSource)==null?void 0:p.apiUrl)});if(o.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const r=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!r){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const f of o)(h=t.onError)==null||h.call(t,f,d);return{fields:n,attempted:o.length,refreshed:0,errors:Object.fromEntries(o.map(f=>[f.id,d.message]))}}const i=t.timeoutMs??1e4,a={};let l=0;const s=await Promise.all(o.map(async d=>{var x;const{apiUrl:f,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const w=await Uk(f,{method:p,headers:{Accept:"application/json",...t.headers}},r,i);if(!w.ok)throw new Error(`GET ${f} → HTTP ${w.status}`);const S=await w.json(),k=Ba(S,b);if(!k)throw new Error(`GET ${f} → response had no array of rows`);const v=k.map(_=>Gk(_,d.itemFields));return l+=1,{id:d.id,value:v}}catch(w){const S=w instanceof Error?w:new Error(String(w));return a[d.id]=S.message,(x=t.onError)==null||x.call(t,d,S),null}}));if(l===0)return{fields:n,attempted:o.length,refreshed:0,errors:a};const c=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>c.has(d.id)?{...d,value:c.get(d.id)}:d),attempted:o.length,refreshed:l,errors:a}}async function kc(e,t={}){var o,r;const n=(r=(o=e==null?void 0:e.root)==null?void 0:o.data)==null?void 0:r.formFields;return $c(Array.isArray(n)?n:[],t)}function _c(e,t){if(!e)return t();$i(e);try{return t()}finally{$i(null)}}function Wk(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function Zk(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function Vk(e){const t=e;return!!(t.templateId&&t.baseUrl)}function qk(e){if(!e||typeof e!="object")return e;const t=Oa(e);return!t||t.length===0?e:La(e,t)}async function Ml(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=Oa(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let o=n,r=null;return t.refreshApiDataSources&&(r=await kc(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),o=r.fields),{document:La(e,o),apiRefresh:r}}const Yk=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 Kk(e){var o,r,i;const t=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};return{type:"Text",data:{props:{text:typeof t.html=="string"&&t.html||typeof t.text=="string"&&t.text||typeof t.markdown=="string"&&t.markdown||""},style:((r=e==null?void 0:e.data)==null?void 0:r.style)??{},hidden:(i=e==null?void 0:e.data)==null?void 0:i.hidden}}}function Cc(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[o,r]of Object.entries(e)){const i=r==null?void 0:r.type;i&&!Yk.has(i)?(n[o]=Kk(r),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${o}" has unsupported type "${i}" — coerced to Text.`)):n[o]=r}return t?n:e}function Da(e,t){var a;if(!e)return"";const n=t.rootBlockId??"root",o=qk(e),r=Cc(o),i=((a=r==null?void 0:r[n])==null?void 0:a.data)??{};return _c(t.recordType,()=>ja(r,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??i.lang,skipLink:t.skipLink??i.skipLink,accessibilityTools:t.accessibilityTools??i.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner}))}function Fa(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 Ha(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Ga(e,t,n){const o=await n(e,t);if(!o.ok){const r=await o.text().catch(()=>"");return{ok:!1,body:null,status:o.status,text:r}}return{ok:!0,body:await o.json(),status:o.status,text:""}}async function Ac(e,t,n){var c;const{wrapInDocumentShell:o=!0,headHtml:r,bodyBottomHtml:i}=n,a=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(a.length===0){const{document:u}=await Ml(((c=t==null?void 0:t.contentMetadata)==null?void 0:c.document)??e,n);return Da(u,{...n,recordType:n.recordType??"page"})}const l=await Promise.all(a.map(async u=>{var p;const h=(p=u==null?void 0:u.contentMetadata)==null?void 0:p.document;if(!h)return u;const{document:d}=await Ml(h,n),f=Cc(d);return{...u,contentMetadata:{...u.contentMetadata??{},document:f}}})),{html:s}=_c(n.recordType??"page",()=>Dk(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:o,seoTitle:(t==null?void 0:t.metaTitle)??(t==null?void 0:t.title)??(t==null?void 0:t.name),seoDescription:t==null?void 0:t.metaDescription,lang:n.lang??(t==null?void 0:t.lang),extraHead:r??(t==null?void 0:t.head)??"",extraBodyBottom:i??(t==null?void 0:t.bodyBottom)??""}));return s}async function Jk(e,t){const{baseUrl:n,tenantId:o,pageId:r}=t,a=`${n.replace(/\/+$/,"")}/tenant/${o}/page/${r}`,l=Fa(t),s=await Ga(a,{method:"GET",headers:Ha(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${a} → ${s.status}${s.text?`: ${s.text}`:""}`);return Ac(e,s.body,{...t,fetchFn:l})}async function Xk(e,t){var d,f;const{baseUrl:n,tenantId:o,pagePath:r,cache:i=!1,update:a=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${o}/pagebypath/${encodeURIComponent(r)}?cache=${i}&update=${a}`,c=Fa(t),u=await Ga(s,{method:"GET",headers:Ha(t)},c);if(!u.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${u.status}${u.text?`: ${u.text}`:""}`);const h=((d=u.body)==null?void 0:d.data)??((f=u.body)==null?void 0:f.payload)??u.body;return Ac(e,h,{...t,fetchFn:c})}async function Qk(e){const{baseUrl:t,tenantId:n,templateId:o,isGlobal:r=!1}=e,i=t.replace(/\/+$/,""),a=Fa(e),l=r?`${i}/global-template/${o}`:`${i}/tenant/${n}/template/${o}`,s=r?{"Content-Type":"application/json"}:Ha(e),c=await Ga(l,{method:"GET",headers:s},a);if(c.ok)return c.body;throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${l} → ${c.status}${c.text?`: ${c.text}`:""}`)}function e_(e,t){if(!t)return e;const n=new Map;for(const r of e)r!=null&&r.id&&n.set(r.id,r);if(Array.isArray(t)){for(const r of t){if(!(r!=null&&r.id))continue;const a={...n.get(r.id)??{id:r.id,name:r.id,type:"text"},...r};n.set(r.id,a)}return Array.from(n.values())}const o=Object.entries(t).filter(([,r])=>r!=null);if(o.length===0)return e;for(const[r,i]of o){const a=String(i),l=n.get(r);l?n.set(r,{...l,value:a}):n.set(r,{id:r,name:r,type:"text",value:a})}return Array.from(n.values())}async function t_(e,t){const n=await Qk(t),o=Hk(n)??(e&&Object.keys(e).length>0?e:null);if(!o)return"";const r=Fk(n),i=e_(r,t.variables),a=La(o,i);return Da(a,t)}function n_(e,t){return Vk(t)?t_(e,t):Zk(t)?Xk(e,t):Wk(t)?Jk(e,t):Da(e,t)}function o_(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function r_(e,t){e.data&&(Array.isArray(e.data.childrenIds)&&(e.data.childrenIds=e.data.childrenIds.map(n=>t[n]??n)),e.data.props&&(Array.isArray(e.data.props.childrenIds)&&(e.data.props.childrenIds=e.data.props.childrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.startChildrenIds)&&(e.data.props.startChildrenIds=e.data.props.startChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.endChildrenIds)&&(e.data.props.endChildrenIds=e.data.props.endChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.columns)&&(e.data.props.columns=e.data.props.columns.map(n=>({...n,childrenIds:(n.childrenIds||[]).map(o=>t[o]??o)}))),Array.isArray(e.data.props.cells)&&(e.data.props.cells=e.data.props.cells.map(n=>n===null||typeof n!="object"?n:{...n,childrenIds:(n.childrenIds||[]).map(o=>t[o]??o)})),Array.isArray(e.data.props.items)&&(e.data.props.items=e.data.props.items.map(n=>({...n,...n.titleChildrenIds!==void 0?{titleChildrenIds:(n.titleChildrenIds||[]).map(o=>t[o]??o)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(o=>t[o]??o)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(o=>t[o]??o)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(o=>t[o]??o)}:{}})))))}function Ot(e,t){const n=Ma(e,t),o={};n.forEach(i=>{o[i]=o_()});const r={};return n.forEach(i=>{const a=JSON.parse(JSON.stringify(e[i]));r_(a,o),r[o[i]]=a}),{newBlocks:r,idMap:o,newRootId:o[t]}}function a_(e,t,n){var o,r,i,a;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const c=s;if(c.data&&Array.isArray(c.data.childrenIds)&&c.data.childrenIds.includes(t)){const u=c.data.childrenIds.indexOf(t),h=[...c.data.childrenIds];return h.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,childrenIds:h}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.childrenIds)&&c.data.props.childrenIds.includes(t)){const u=c.data.props.childrenIds.indexOf(t),h=[...c.data.props.childrenIds];return h.splice(u+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,childrenIds:h}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.columns)){const u=c.data.props.columns;for(let h=0;h<u.length;h++){const d=u[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,columns:p}}}}}}}if(c.data&&c.data.props&&Array.isArray(c.data.props.cells)){const u=c.data.props.cells;for(let h=0;h<u.length;h++){const d=u[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=u.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,cells:p}}}}}}}if(c.type==="PricingAccordion"&&((o=c.data)!=null&&o.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=Array.isArray(u[h].cardChildrenIds)?u[h].cardChildrenIds:[],f=Array.isArray(u[h].detailChildrenIds)?u[h].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[f,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),w=u.map(S=>({...S,cardChildrenIds:Array.isArray(S.cardChildrenIds)?[...S.cardChildrenIds]:[],detailChildrenIds:Array.isArray(S.detailChildrenIds)?[...S.detailChildrenIds]:[]}));return w[h][b].splice(x+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:w}}}}}}}if((c.type==="TabsBlock"||c.type==="VerticalAccordion"||c.type==="Carousel"||c.type==="Marquee"||c.type==="Pagination")&&((r=c.data)!=null&&r.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=Array.isArray(u[h].contentChildrenIds)?u[h].contentChildrenIds:[];if(d.includes(t)){const f=d.indexOf(t),p=u.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[h].contentChildrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:p}}}}}}}if(c.type==="MenuPicker"&&((i=c.data)!=null&&i.props))for(const u of["startChildrenIds","endChildrenIds"]){const h=Array.isArray(c.data.props[u])?c.data.props[u]:[];if(h.includes(t)){const d=h.indexOf(t),f=[...h];return f.splice(d+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,[u]:f}}}}}}if(c.type==="Accordion"&&((a=c.data)!=null&&a.props)&&Array.isArray(c.data.props.items)){const u=c.data.props.items;for(let h=0;h<u.length;h++){const d=u[h],f=Array.isArray(d.titleChildrenIds)?d.titleChildrenIds:[],p=Array.isArray(d.contentChildrenIds)?d.contentChildrenIds:[];if(f.includes(t)){const b=f.indexOf(t),x=u.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=u.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...c,data:{...c.data,props:{...c.data.props,items:x}}}}}}}}return null}function i_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="FlexColumns")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:i,columnIndex:s}}}return null}function l_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(!((a==null?void 0:a.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:i,cellIndex:s}}}return null}function s_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){if((a==null?void 0:a.type)!=="Pagination")continue;const l=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((r=l[s])==null?void 0:r.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:i,cellIndex:s}}}return null}function c_(e,t){var n,o,r;for(const[i,a]of Object.entries(e)){const l=a==null?void 0:a.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(o=(n=a==null?void 0:a.data)==null?void 0:n.props)==null?void 0:o.items;if(Array.isArray(s)){for(let c=0;c<s.length;c++)if(Array.isArray((r=s[c])==null?void 0:r.contentChildrenIds)&&s[c].contentChildrenIds.includes(t))return{parentId:i,itemIndex:c,parentType:l}}}return null}function Pl(e,t,n){var d,f,p;if(!e[t])return null;const o=e[t];if((o==null?void 0:o.type)==="TabsBlock"){const x=Array.isArray((f=(d=o.data)==null?void 0:d.props)==null?void 0:f.items)?o.data.props.items:[];if(x.length>=10)return null;const w=x[0]??{},S=Array.isArray(w.contentChildrenIds)?w.contentChildrenIds:[];let k={...e};const v=[];let _=null;for(const I of S){if(!k[I])continue;const{newBlocks:R,newRootId:E}=Ot(k,I);k={...k,...R},v.push(E),_||(_=E)}const y=_??t,C=[...x,{label:w.label??`Tab ${x.length+1}`,contentChildrenIds:v}];return k={...k,[t]:{...o,data:{...o.data,props:{...o.data.props,items:C}}}},{updatedDocument:k,newRootId:y}}const r=l_(e,n);if(r){const b=e[r.gridId],x=b.data.props??{},w=x.columnsCount??2,S=x.rowsCount??2,k=Array.isArray(x.cells)?x.cells:[],_=k.some(M=>(M==null?void 0:M.colStart)!=null||(M==null?void 0:M.rowStart)!=null||(M==null?void 0:M.colSpan)!=null||(M==null?void 0:M.rowSpan)!=null)?k.length:w*S,y=Array.from({length:_},(M,O)=>k[O]??{childrenIds:[]});let C=y.findIndex((M,O)=>O>r.cellIndex&&(!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0));if(C===-1&&(C=y.findIndex(M=>!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0)),C===-1)return null;const{newBlocks:I,newRootId:R}=Ot(e,t),E=y.map((M,O)=>O===C?{...M,childrenIds:[...(M==null?void 0:M.childrenIds)??[],R]}:M);return{updatedDocument:{...e,...I,[r.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:E}}}},newRootId:R}}const i=s_(e,n);if(i){const b=e[i.paginationId],x=b.data.props??{},w=x.columnsCount??2,S=x.rowsCount??2,k=Array.isArray(x.cells)?x.cells:[],v=Math.max(w*S,k.length),_=Array.from({length:v},(P,M)=>k[M]??{childrenIds:[]});let y=_.findIndex((P,M)=>M>i.cellIndex&&(!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0));y===-1&&(y=_.findIndex(P=>!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0)),y===-1&&(_.push({childrenIds:[]}),y=_.length-1);const{newBlocks:C,newRootId:I}=Ot(e,t),R=_.map((P,M)=>M===y?{...P,childrenIds:[...(P==null?void 0:P.childrenIds)??[],I]}:P);return{updatedDocument:{...e,...C,[i.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:R}}}},newRootId:I}}const a=i_(e,n);if(a){const b=e[a.flexId],x=b.data.props??{},w=x.columnsCount??2,S=Array.isArray(x.columns)?x.columns:[],k=Array.from({length:w},(R,E)=>S[E]??{childrenIds:[]});let v=k.findIndex((R,E)=>E>a.columnIndex&&(!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0));if(v===-1&&(v=k.findIndex(R=>!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0)),v===-1)return null;const{newBlocks:_,newRootId:y}=Ot(e,t),C=k.map((R,E)=>E===v?{...R,childrenIds:[...(R==null?void 0:R.childrenIds)??[],y]}:R);return{updatedDocument:{...e,..._,[a.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:C}}}},newRootId:y}}const l=c_(e,n);if(l){let b=e[l.parentId],x=Array.isArray((p=b.data.props)==null?void 0:p.items)?b.data.props.items:[],w=e,S=x.findIndex((C,I)=>I>l.itemIndex&&(!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0));if(S===-1&&(S=x.findIndex(C=>!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0)),S===-1)if(l.parentType==="TabsBlock"&&x.length<10){const C=[...x,{label:`Tab ${x.length+1}`,contentChildrenIds:[]}];w={...w,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:C}}}},b=w[l.parentId],x=C,S=x.length-1}else return null;const{newBlocks:k,newRootId:v}=Ot(w,t),_=x.map((C,I)=>I===S?{...C,...l.parentType==="TabsBlock"&&!(C!=null&&C.label)?{label:`Tab ${I+1}`}:{},contentChildrenIds:[...(C==null?void 0:C.contentChildrenIds)??[],v]}:C);return{updatedDocument:{...w,...k,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:_}}}},newRootId:v}}const{newBlocks:s,newRootId:c}=Ot(e,t),u={...e,...s},h=a_(u,n,c);return h&&(u[h.parentId]=h.updatedParent),{updatedDocument:u,newRootId:c}}function yc(e,t){const n=r=>Array.isArray(r)?r.filter(i=>!t.has(i)):r,o={};for(const[r,i]of Object.entries(e)){if(t.has(r))continue;const a=i;if(!(a!=null&&a.data)){o[r]=a;continue}const l={...a.data};if(Array.isArray(l.childrenIds)&&(l.childrenIds=n(l.childrenIds)),l.props){const s={...l.props};Array.isArray(s.childrenIds)&&(s.childrenIds=n(s.childrenIds)),Array.isArray(s.startChildrenIds)&&(s.startChildrenIds=n(s.startChildrenIds)),Array.isArray(s.endChildrenIds)&&(s.endChildrenIds=n(s.endChildrenIds)),Array.isArray(s.columns)&&(s.columns=s.columns.map(c=>({...c,childrenIds:n(c.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(c=>c===null||typeof c!="object"?c:{...c,childrenIds:n(c.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(c=>({...c,...c.titleChildrenIds!==void 0?{titleChildrenIds:n(c.titleChildrenIds)}:{},...c.contentChildrenIds!==void 0?{contentChildrenIds:n(c.contentChildrenIds)}:{},...c.cardChildrenIds!==void 0?{cardChildrenIds:n(c.cardChildrenIds)}:{},...c.detailChildrenIds!==void 0?{detailChildrenIds:n(c.detailChildrenIds)}:{}}))),l.props=s}o[r]={...a,data:l}}return o}function u_(e){var o;const t=e==null?void 0:e.type,n=((o=e==null?void 0:e.data)==null?void 0:o.props)??{};if(t==="Grid"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],s=a.some(u=>(u==null?void 0:u.colStart)!=null||(u==null?void 0:u.rowStart)!=null||(u==null?void 0:u.colSpan)!=null||(u==null?void 0:u.rowSpan)!=null)?a.length:r*i,c=Array.from({length:s},(u,h)=>{var d;return{childrenIds:Array.isArray((d=a[h])==null?void 0:d.childrenIds)?a[h].childrenIds:[]}});return{slotCount:s,slots:c}}if(t==="FlexColumns"){const r=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),i=Array.isArray(n.columns)?n.columns:[],a=Array.from({length:r},(l,s)=>{var c;return{childrenIds:Array.isArray((c=i[s])==null?void 0:c.childrenIds)?i[s].childrenIds:[]}});return{slotCount:r,slots:a}}if(t==="Carousel"||t==="Marquee"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="TabsBlock"){const r=Array.isArray(n.items)?n.items:[],i=r.length,a=r.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:i,slots:a}}if(t==="Pagination"){const r=n.columnsCount??2,i=n.rowsCount??2,a=Array.isArray(n.cells)?n.cells:[],l=Math.max(r*i,a.length),s=Array.from({length:l},(c,u)=>{var h;return{childrenIds:Array.isArray((h=a[u])==null?void 0:h.childrenIds)?a[u].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function Bn(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const eo=new WeakMap;function Eo(e,t){const n=e[t];if(!n||typeof n!="object")return null;const o=eo.get(n);if(o!==void 0)return o&&o.containerId===t?o:o&&{...o,containerId:t};if(!Bn(n.type))return eo.set(n,null),null;const r=u_(n);if(!r)return eo.set(n,null),null;const{slotCount:i,slots:a}=r,l=a.findIndex(u=>u.childrenIds.length>0),s=a.filter(u=>u.childrenIds.length===0).length,c={containerId:t,type:n.type,slotCount:i,slots:a,firstFilledSlot:l,emptySlotCount:s};return eo.set(n,c),c}function ua(e,t){for(const[n,o]of Object.entries(e)){if(!Bn(o==null?void 0:o.type))continue;const r=Eo(e,n);if(r!=null&&r.slots.some(i=>i.childrenIds.includes(t)))return n}return null}function Ic(e,t,n,o){var c;const r=e[t];if(!r||!Bn(r.type))return e;const i=((c=r.data)==null?void 0:c.props)??{};if(r.type==="Grid"){let u=i.columnsCount??2,h=i.rowsCount??2;if(u*h>=n)return e;o==="columns"?u=Math.max(u,Math.ceil(n/Math.max(1,h))):h=Math.max(h,Math.ceil(n/Math.max(1,u)));const d=u*h,f=Array.isArray(i.cells)?i.cells:[],p=Array.from({length:d},(b,x)=>f[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:u,rowsCount:h,cells:p}}}}}if(r.type==="Carousel"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,20),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="Marquee"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,30),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="TabsBlock"){const h=Array.isArray(i.items)?i.items:[];if(h.length>=n)return e;const d=Math.min(n,10),f=Array.from({length:d},(p,b)=>h[b]??{label:`Tab ${b+1}`,contentChildrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,items:f}}}}}if(r.type==="Pagination"){const u=i.columnsCount??2,h=i.rowsCount??2,d=Array.isArray(i.cells)?i.cells:[];if(Math.max(u*h,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,cells:p}}}}}if((i.columnsCount??(Array.isArray(i.columns)?i.columns.length:2))>=n)return e;const l=Array.isArray(i.columns)?i.columns:[],s=Array.from({length:n},(u,h)=>l[h]??{childrenIds:[]});return{...e,[t]:{...r,data:{...r.data,props:{...i,columnsCount:n,columns:s}}}}}function Rc(e,t,n){var c;const o=e[t];if(!o||!Bn(o.type))return e;const r=Eo(e,t);if(!r)return e;let i=-1;r.slots.forEach((u,h)=>{u.childrenIds.length>0&&(i=h)});const a=Math.max(n,i+1,1);if(a>=r.slotCount)return e;const l=((c=o.data)==null?void 0:c.props)??{};if(o.type==="Pagination"){const u=(l.columnsCount??2)*(l.rowsCount??2),h=Math.max(a,u);if(h>=r.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,cells:d.slice(0,h)}}}}}if(o.type==="Carousel"||o.type==="Marquee"||o.type==="TabsBlock"){const u=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,items:u.slice(0,a)}}}}}if(o.type==="Grid"){const u=l.columnsCount??2,h=l.rowsCount??2,d=Math.max(1,Math.ceil(a/Math.max(1,u)));if(d>=h)return e;const f=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,rowsCount:d,cells:f.slice(0,u*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...o,data:{...o.data,props:{...l,columnsCount:a,columns:s.slice(0,a)}}}}}function d_(e,t,n,o="columns"){const r=t==null?void 0:t.sourceBlockId;if(!r||!e[r])return null;const i=Math.max(1,n);let a=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===i)return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<i){let h=!1;for(;s<i;){const d=l.length>0?l[l.length-1]:r;let f=Pl(a,r,d);if(!f){const p=ua(a,r);if(!p){h=!0;break}const b=Eo(a,p),x=((b==null?void 0:b.slotCount)??0)+(i-s),w=Ic(a,p,x,o);if(w===a){h=!0;break}if(a=w,f=Pl(a,r,d),!f){h=!0;break}}a=f.updatedDocument,l=[...l,f.newRootId],s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:h}}const c=i,u=l.slice(c-1);if(u.length>0){const h=new Set;for(const f of u)for(const p of Ma(a,f))h.add(p);a=yc(a,h);const d=ua(a,r);d&&(a=Rc(a,d,c)),l=l.slice(0,c-1),s=1+l.length}return{document:a,sourceBlockId:r,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=Mn;exports.ReaderBlock=Re;exports.ReaderBlockSchema=vc;exports.ReaderDocumentSchema=Ck;exports.cloneSubtree=Ot;exports.extractApiRows=Ba;exports.findRepeatableContainerOf=ua;exports.getRepeatableContainerInfo=Eo;exports.growContainerToFit=Ic;exports.isRepeatableContainerType=Bn;exports.reconcileRepeatFieldRowCount=d_;exports.refreshApiDataSources=$c;exports.refreshDocumentApiDataSources=kc;exports.removeSubtree=yc;exports.renderToStaticHtml=n_;exports.renderToStaticMarkup=ja;exports.shrinkContainerToFit=Rc;
|
|
1027
|
+
</html>`}function GA(e,t={}){const n=t.includeExternalSections??!0,r=t.wrapInDocumentShell??!0,o=[],a=e.map(l=>{var c;if(Ru(l)){const h=DA(l);return n&&h&&o.push(h),{...l,content:h}}const s=(c=l==null?void 0:l.contentMetadata)==null?void 0:c.document;if(!s)return l!=null&&l.content&&o.push(String(l.content)),l;const u=FA(s,t);return u&&o.push(u),{...l,content:u,contentMetadata:{...l.contentMetadata??{},document:s}}}),i=o.join(`
|
|
1028
|
+
`);return r?{html:HA(i,e,t),sectionHtml:o,flushedSections:a}:{html:i,sectionHtml:o,flushedSections:a}}function UA(e){var a,i,l,s,u,c,h,d,f,p,b;if(!e)return[];const t=e.configuration??{},n=(i=(a=t==null?void 0:t.root)==null?void 0:a.data)==null?void 0:i.formFields;if(Array.isArray(n)&&n.length>0)return n;if(t!=null&&t.isIndividualBlock&&Array.isArray(t.formFields)&&t.formFields.length>0)return t.formFields;const r=Array.isArray(t==null?void 0:t.steps)?t.steps:Array.isArray(t==null?void 0:t.slides)?t.slides:null;if(r){const x=new Set,w=[];for(const k of r){const S=(c=(u=(s=(l=k==null?void 0:k.contentMetadata)==null?void 0:l.document)==null?void 0:s.root)==null?void 0:u.data)==null?void 0:c.formFields;if(Array.isArray(S))for(const v of S)!(v!=null&&v.id)||x.has(v.id)||(x.add(v.id),w.push(v))}if(w.length>0)return w}const o=(b=(p=(f=(d=(h=t==null?void 0:t.step)==null?void 0:h.contentMetadata)==null?void 0:d.document)==null?void 0:f.root)==null?void 0:p.data)==null?void 0:b.formFields;return Array.isArray(o)&&o.length>0?o:Array.isArray(e.formFields)?e.formFields:[]}function WA(e){var n,r,o,a,i,l,s;if(!e||typeof e!="object")return null;const t=e.configuration;if(!t||typeof t!="object")return null;if(t.root)return t;if(t.isIndividualBlock&&typeof t.rootBlockId=="string"&&t.blocks&&typeof t.blocks=="object"&&t.blocks[t.rootBlockId]){const u=Array.isArray(t.formFields)?t.formFields:[];return{...t.blocks,root:{type:"EmailLayout",data:{backdropColor:"#FFFFFF",canvasColor:"#FFFFFF",textColor:"#262626",fontFamily:"MODERN_SANS",childrenIds:[t.rootBlockId],maxWidth:"100%",formFields:u}}}}return(o=(r=(n=t.content)==null?void 0:n.contentMetadata)==null?void 0:r.document)!=null&&o.root?t.content.contentMetadata.document:(i=(a=t.contentMetadata)==null?void 0:a.document)!=null&&i.root?t.contentMetadata.document:(s=(l=e.contentMetadata)==null?void 0:l.document)!=null&&s.root?e.contentMetadata.document:null}function $s(e,t){return t.split(".").map(n=>n.trim()).filter(Boolean).reduce((n,r)=>n==null?n:n[r],e)}function wi(e,t){if(t){const n=$s(e,t);if(Array.isArray(n))return n;const r=wi(e);if(r){const o=r.map(a=>$s(a,t)).filter(a=>a&&typeof a=="object");if(o.length>0)return o}}if(Array.isArray(e))return e;if(e&&typeof e=="object"){for(const n of["data","rows","results","items","records"])if(Array.isArray(e[n]))return e[n]}return null}function ZA(e,t){if(!t||t.length===0){const r={};for(const[o,a]of Object.entries(e))a!=null&&(r[o]=String(a));return r}const n={};for(const r of t){const o=e[r.id];o!=null&&o!==""&&(n[r.id]=String(o))}return e.id!==void 0&&n.id===void 0&&(n.id=String(e.id)),n}async function qA(e,t,n,r){if(typeof AbortController>"u")return n(e,t);const o=new AbortController,a=setTimeout(()=>o.abort(),r);try{return await n(e,{...t,signal:o.signal})}finally{clearTimeout(a)}}async function Tu(e,t={}){var h;const n=Array.isArray(e)?e:[],r=n.filter(d=>{var f,p;return((f=d==null?void 0:d.dataSource)==null?void 0:f.type)==="api"&&((p=d==null?void 0:d.dataSource)==null?void 0:p.apiUrl)});if(r.length===0)return{fields:n,attempted:0,refreshed:0,errors:{}};const o=t.fetchFn??(typeof fetch<"u"?fetch:void 0);if(!o){const d=new Error("[pagepilot-visual-editor] refreshApiDataSources: global fetch is not available — pass `fetchFn`.");for(const f of r)(h=t.onError)==null||h.call(t,f,d);return{fields:n,attempted:r.length,refreshed:0,errors:Object.fromEntries(r.map(f=>[f.id,d.message]))}}const a=t.timeoutMs??1e4,i={};let l=0;const s=await Promise.all(r.map(async d=>{var x;const{apiUrl:f,apiMethod:p="GET",apiItemPath:b}=d.dataSource;try{const w=await qA(f,{method:p,headers:{Accept:"application/json",...t.headers}},o,a);if(!w.ok)throw new Error(`GET ${f} → HTTP ${w.status}`);const k=await w.json(),S=wi(k,b);if(!S)throw new Error(`GET ${f} → response had no array of rows`);const v=S.map(_=>ZA(_,d.itemFields));return l+=1,{id:d.id,value:v}}catch(w){const k=w instanceof Error?w:new Error(String(w));return i[d.id]=k.message,(x=t.onError)==null||x.call(t,d,k),null}}));if(l===0)return{fields:n,attempted:r.length,refreshed:0,errors:i};const u=new Map(s.filter(Boolean).map(d=>[d.id,d.value]));return{fields:n.map(d=>u.has(d.id)?{...d,value:u.get(d.id)}:d),attempted:r.length,refreshed:l,errors:i}}async function Nu(e,t={}){var r,o;const n=(o=(r=e==null?void 0:e.root)==null?void 0:r.data)==null?void 0:o.formFields;return Tu(Array.isArray(n)?n:[],t)}function Eu(e,t){if(!e)return t();ol(e);try{return t()}finally{ol(null)}}function VA(e){const t=e;return!!(t.pageId&&t.baseUrl&&t.tenantId)}function YA(e){const t=e;return!!(t.pagePath&&t.baseUrl&&t.tenantId)}function KA(e){const t=e;return!!(t.templateId&&t.baseUrl)}function JA(e){if(!e||typeof e!="object")return e;const t=bi(e);return!t||t.length===0?e:xi(e,t)}async function _s(e,t){if(!e||typeof e!="object")return{document:e,apiRefresh:null};const n=bi(e);if(!n||n.length===0)return{document:e,apiRefresh:null};let r=n,o=null;return t.refreshApiDataSources&&(o=await Nu(e,{fetchFn:t.fetchFn,headers:t.apiDataSourceHeaders,timeoutMs:t.apiDataSourceTimeoutMs,onError:t.onApiDataSourceError}),r=o.fields),{document:xi(e,r),apiRefresh:o}}const XA=new Set(["ColumnsContainer","FlexColumns","Grid","ButtonGroup","Container","EmailLayout","Accordion","PricingAccordion","TabsBlock","Carousel","Rating","Progress","Marquee","Timer","Pagination","Table","DemoPicker","MenuPicker","Breadcrumb","FormsPicker","AppBannerPicker","FaqPicker","Avatar","Button","Divider","Heading","Html","Image","Logo","Video","IFrame","Calendly","YouTubeUrl","Spacer","SkipLink","AccessibilityTools","Stepper","List","Text","Mdx","QuillBlock"]);function QA(e){var r,o,a;const t=((r=e==null?void 0:e.data)==null?void 0:r.props)??{};return{type:"Text",data:{props:{text:typeof t.html=="string"&&t.html||typeof t.text=="string"&&t.text||typeof t.markdown=="string"&&t.markdown||""},style:((o=e==null?void 0:e.data)==null?void 0:o.style)??{},hidden:(a=e==null?void 0:e.data)==null?void 0:a.hidden}}}function Pu(e){if(!e||typeof e!="object")return e;let t=!1;const n={};for(const[r,o]of Object.entries(e)){const a=o==null?void 0:o.type;a&&!XA.has(a)?(n[r]=QA(o),t=!0,console.warn(`[pagepilot-visual-editor] renderToStaticHtml: block "${r}" has unsupported type "${a}" — coerced to Text.`)):n[r]=o}return t?n:e}function Si(e,t){var i;if(!e)return"";const n=t.rootBlockId??"root",r=JA(e),o=Pu(r),a=((i=o==null?void 0:o[n])==null?void 0:i.data)??{};return Eu(t.recordType,()=>ki(o,{rootBlockId:n,injectElementIds:t.injectElementIds??!0,minifyCss:t.minifyCss??!0,includePageCSS:t.includePageCSS??!0,lang:t.lang??a.lang,skipLink:t.skipLink??a.skipLink,accessibilityTools:t.accessibilityTools??a.accessibilityTools,injectTabsScrollSyncScript:t.injectTabsScrollSyncScript,injectCarouselScript:t.injectCarouselScript,injectFontAssets:t.injectFontAssets,seo:t.seo,headHtml:t.headHtml,bodyBottomHtml:t.bodyBottomHtml,isBanner:t.isBanner}))}function $i(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 _i(e){const t={"Content-Type":"application/json"};return e.authToken&&(t.Authorization=`Bearer ${e.authToken}`),t}async function Ci(e,t,n){const r=await n(e,t);if(!r.ok){const o=await r.text().catch(()=>"");return{ok:!1,body:null,status:r.status,text:o}}return{ok:!0,body:await r.json(),status:r.status,text:""}}async function Mu(e,t,n){var u;const{wrapInDocumentShell:r=!0,headHtml:o,bodyBottomHtml:a}=n,i=Array.isArray(t==null?void 0:t.sections)?t.sections:[];if(i.length===0){const{document:c}=await _s(((u=t==null?void 0:t.contentMetadata)==null?void 0:u.document)??e,n);return Si(c,{...n,recordType:n.recordType??"page"})}const l=await Promise.all(i.map(async c=>{var p;const h=(p=c==null?void 0:c.contentMetadata)==null?void 0:p.document;if(!h)return c;const{document:d}=await _s(h,n),f=Pu(d);return{...c,contentMetadata:{...c.contentMetadata??{},document:f}}})),{html:s}=Eu(n.recordType??"page",()=>GA(l,{rootBlockId:n.rootBlockId,injectTabsScrollSyncScript:n.injectTabsScrollSyncScript,injectCarouselScript:n.injectCarouselScript,injectFontAssets:n.injectFontAssets,isBanner:n.isBanner,seo:n.seo,wrapInDocumentShell:r,seoTitle:(t==null?void 0:t.metaTitle)??(t==null?void 0:t.title)??(t==null?void 0:t.name),seoDescription:t==null?void 0:t.metaDescription,lang:n.lang??(t==null?void 0:t.lang),extraHead:o??(t==null?void 0:t.head)??"",extraBodyBottom:a??(t==null?void 0:t.bodyBottom)??""}));return s}async function ey(e,t){const{baseUrl:n,tenantId:r,pageId:o}=t,i=`${n.replace(/\/+$/,"")}/tenant/${r}/page/${o}`,l=$i(t),s=await Ci(i,{method:"GET",headers:_i(t)},l);if(!s.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${i} → ${s.status}${s.text?`: ${s.text}`:""}`);return Mu(e,s.body,{...t,fetchFn:l})}async function ty(e,t){var d,f;const{baseUrl:n,tenantId:r,pagePath:o,cache:a=!1,update:i=!0}=t,s=`${n.replace(/\/+$/,"")}/tenant/${r}/pagebypath/${encodeURIComponent(o)}?cache=${a}&update=${i}`,u=$i(t),c=await Ci(s,{method:"GET",headers:_i(t)},u);if(!c.ok)throw new Error(`[pagepilot-visual-editor] renderToStaticHtml: GET ${s} → ${c.status}${c.text?`: ${c.text}`:""}`);const h=((d=c.body)==null?void 0:d.data)??((f=c.body)==null?void 0:f.payload)??c.body;return Mu(e,h,{...t,fetchFn:u})}async function ny(e){const{baseUrl:t,tenantId:n,templateId:r,isGlobal:o=!1}=e,a=t.replace(/\/+$/,""),i=$i(e),l=o?`${a}/global-template/${r}`:`${a}/tenant/${n}/template/${r}`,s=o?{"Content-Type":"application/json"}:_i(e),u=await Ci(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 ry(e,t){if(!t)return e;const n=new Map;for(const o of e)o!=null&&o.id&&n.set(o.id,o);if(Array.isArray(t)){for(const o of t){if(!(o!=null&&o.id))continue;const i={...n.get(o.id)??{id:o.id,name:o.id,type:"text"},...o};n.set(o.id,i)}return Array.from(n.values())}const r=Object.entries(t).filter(([,o])=>o!=null);if(r.length===0)return e;for(const[o,a]of r){const i=String(a),l=n.get(o);l?n.set(o,{...l,value:i}):n.set(o,{id:o,name:o,type:"text",value:i})}return Array.from(n.values())}async function oy(e,t){const n=await ny(t),r=WA(n)??(e&&Object.keys(e).length>0?e:null);if(!r)return"";const o=UA(n),a=ry(o,t.variables),i=xi(r,a);return Si(i,t)}function ay(e,t){return KA(t)?oy(e,t):YA(t)?ty(e,t):VA(t)?ey(e,t):Si(e,t)}function iy(){return`block-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}function ly(e,t){e.data&&(Array.isArray(e.data.childrenIds)&&(e.data.childrenIds=e.data.childrenIds.map(n=>t[n]??n)),e.data.props&&(Array.isArray(e.data.props.childrenIds)&&(e.data.props.childrenIds=e.data.props.childrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.startChildrenIds)&&(e.data.props.startChildrenIds=e.data.props.startChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.endChildrenIds)&&(e.data.props.endChildrenIds=e.data.props.endChildrenIds.map(n=>t[n]??n)),Array.isArray(e.data.props.columns)&&(e.data.props.columns=e.data.props.columns.map(n=>({...n,childrenIds:(n.childrenIds||[]).map(r=>t[r]??r)}))),Array.isArray(e.data.props.cells)&&(e.data.props.cells=e.data.props.cells.map(n=>n===null||typeof n!="object"?n:{...n,childrenIds:(n.childrenIds||[]).map(r=>t[r]??r)})),Array.isArray(e.data.props.items)&&(e.data.props.items=e.data.props.items.map(n=>({...n,...n.titleChildrenIds!==void 0?{titleChildrenIds:(n.titleChildrenIds||[]).map(r=>t[r]??r)}:{},...n.contentChildrenIds!==void 0?{contentChildrenIds:(n.contentChildrenIds||[]).map(r=>t[r]??r)}:{},...n.cardChildrenIds!==void 0?{cardChildrenIds:(n.cardChildrenIds||[]).map(r=>t[r]??r)}:{},...n.detailChildrenIds!==void 0?{detailChildrenIds:(n.detailChildrenIds||[]).map(r=>t[r]??r)}:{}})))))}function Ut(e,t){const n=Ur(e,t),r={};n.forEach(a=>{r[a]=iy()});const o={};return n.forEach(a=>{const i=JSON.parse(JSON.stringify(e[a]));ly(i,r),o[r[a]]=i}),{newBlocks:o,idMap:r,newRootId:r[t]}}function sy(e,t,n){var r,o,a,i;for(const[l,s]of Object.entries(e)){if(!s||typeof s!="object")continue;const u=s;if(u.data&&Array.isArray(u.data.childrenIds)&&u.data.childrenIds.includes(t)){const c=u.data.childrenIds.indexOf(t),h=[...u.data.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,childrenIds:h}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.childrenIds)&&u.data.props.childrenIds.includes(t)){const c=u.data.props.childrenIds.indexOf(t),h=[...u.data.props.childrenIds];return h.splice(c+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,childrenIds:h}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.columns)){const c=u.data.props.columns;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,columns:p}}}}}}}if(u.data&&u.data.props&&Array.isArray(u.data.props.cells)){const c=u.data.props.cells;for(let h=0;h<c.length;h++){const d=c[h];if(Array.isArray(d.childrenIds)&&d.childrenIds.includes(t)){const f=d.childrenIds.indexOf(t),p=c.map(b=>({...b,childrenIds:Array.isArray(b.childrenIds)?[...b.childrenIds]:[]}));return p[h].childrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,cells:p}}}}}}}if(u.type==="PricingAccordion"&&((r=u.data)!=null&&r.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].cardChildrenIds)?c[h].cardChildrenIds:[],f=Array.isArray(c[h].detailChildrenIds)?c[h].detailChildrenIds:[];for(const[p,b]of[[d,"cardChildrenIds"],[f,"detailChildrenIds"]])if(p.includes(t)){const x=p.indexOf(t),w=c.map(k=>({...k,cardChildrenIds:Array.isArray(k.cardChildrenIds)?[...k.cardChildrenIds]:[],detailChildrenIds:Array.isArray(k.detailChildrenIds)?[...k.detailChildrenIds]:[]}));return w[h][b].splice(x+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:w}}}}}}}if((u.type==="TabsBlock"||u.type==="VerticalAccordion"||u.type==="Carousel"||u.type==="Marquee"||u.type==="Pagination")&&((o=u.data)!=null&&o.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=Array.isArray(c[h].contentChildrenIds)?c[h].contentChildrenIds:[];if(d.includes(t)){const f=d.indexOf(t),p=c.map(b=>({...b,contentChildrenIds:Array.isArray(b.contentChildrenIds)?[...b.contentChildrenIds]:[]}));return p[h].contentChildrenIds.splice(f+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:p}}}}}}}if(u.type==="MenuPicker"&&((a=u.data)!=null&&a.props))for(const c of["startChildrenIds","endChildrenIds"]){const h=Array.isArray(u.data.props[c])?u.data.props[c]:[];if(h.includes(t)){const d=h.indexOf(t),f=[...h];return f.splice(d+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,[c]:f}}}}}}if(u.type==="Accordion"&&((i=u.data)!=null&&i.props)&&Array.isArray(u.data.props.items)){const c=u.data.props.items;for(let h=0;h<c.length;h++){const d=c[h],f=Array.isArray(d.titleChildrenIds)?d.titleChildrenIds:[],p=Array.isArray(d.contentChildrenIds)?d.contentChildrenIds:[];if(f.includes(t)){const b=f.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].titleChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}if(p.includes(t)){const b=p.indexOf(t),x=c.map(w=>({...w,titleChildrenIds:Array.isArray(w.titleChildrenIds)?[...w.titleChildrenIds]:[],contentChildrenIds:Array.isArray(w.contentChildrenIds)?[...w.contentChildrenIds]:[]}));return x[h].contentChildrenIds.splice(b+1,0,n),{parentId:l,updatedParent:{...u,data:{...u.data,props:{...u.data.props,items:x}}}}}}}}return null}function cy(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="FlexColumns")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.columns;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{flexId:a,columnIndex:s}}}return null}function uy(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(!((i==null?void 0:i.type)!=="Grid"||!Array.isArray(l))){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{gridId:a,cellIndex:s}}}return null}function dy(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){if((i==null?void 0:i.type)!=="Pagination")continue;const l=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.cells;if(Array.isArray(l)){for(let s=0;s<l.length;s++)if(Array.isArray((o=l[s])==null?void 0:o.childrenIds)&&l[s].childrenIds.includes(t))return{paginationId:a,cellIndex:s}}}return null}function hy(e,t){var n,r,o;for(const[a,i]of Object.entries(e)){const l=i==null?void 0:i.type;if(l!=="Carousel"&&l!=="Marquee"&&l!=="TabsBlock")continue;const s=(r=(n=i==null?void 0:i.data)==null?void 0:n.props)==null?void 0:r.items;if(Array.isArray(s)){for(let u=0;u<s.length;u++)if(Array.isArray((o=s[u])==null?void 0:o.contentChildrenIds)&&s[u].contentChildrenIds.includes(t))return{parentId:a,itemIndex:u,parentType:l}}}return null}function Cs(e,t,n){var d,f,p;if(!e[t])return null;const r=e[t];if((r==null?void 0:r.type)==="TabsBlock"){const x=Array.isArray((f=(d=r.data)==null?void 0:d.props)==null?void 0:f.items)?r.data.props.items:[];if(x.length>=10)return null;const w=x[0]??{},k=Array.isArray(w.contentChildrenIds)?w.contentChildrenIds:[];let S={...e};const v=[];let _=null;for(const I of k){if(!S[I])continue;const{newBlocks:R,newRootId:N}=Ut(S,I);S={...S,...R},v.push(N),_||(_=N)}const y=_??t,C=[...x,{label:w.label??`Tab ${x.length+1}`,contentChildrenIds:v}];return S={...S,[t]:{...r,data:{...r.data,props:{...r.data.props,items:C}}}},{updatedDocument:S,newRootId:y}}const o=uy(e,n);if(o){const b=e[o.gridId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],_=S.some(P=>(P==null?void 0:P.colStart)!=null||(P==null?void 0:P.rowStart)!=null||(P==null?void 0:P.colSpan)!=null||(P==null?void 0:P.rowSpan)!=null)?S.length:w*k,y=Array.from({length:_},(P,O)=>S[O]??{childrenIds:[]});let C=y.findIndex((P,O)=>O>o.cellIndex&&(!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0));if(C===-1&&(C=y.findIndex(P=>!Array.isArray(P==null?void 0:P.childrenIds)||P.childrenIds.length===0)),C===-1)return null;const{newBlocks:I,newRootId:R}=Ut(e,t),N=y.map((P,O)=>O===C?{...P,childrenIds:[...(P==null?void 0:P.childrenIds)??[],R]}:P);return{updatedDocument:{...e,...I,[o.gridId]:{...b,data:{...b.data,props:{...b.data.props,cells:N}}}},newRootId:R}}const a=dy(e,n);if(a){const b=e[a.paginationId],x=b.data.props??{},w=x.columnsCount??2,k=x.rowsCount??2,S=Array.isArray(x.cells)?x.cells:[],v=Math.max(w*k,S.length),_=Array.from({length:v},(M,P)=>S[P]??{childrenIds:[]});let y=_.findIndex((M,P)=>P>a.cellIndex&&(!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0));y===-1&&(y=_.findIndex(M=>!Array.isArray(M==null?void 0:M.childrenIds)||M.childrenIds.length===0)),y===-1&&(_.push({childrenIds:[]}),y=_.length-1);const{newBlocks:C,newRootId:I}=Ut(e,t),R=_.map((M,P)=>P===y?{...M,childrenIds:[...(M==null?void 0:M.childrenIds)??[],I]}:M);return{updatedDocument:{...e,...C,[a.paginationId]:{...b,data:{...b.data,props:{...b.data.props,cells:R}}}},newRootId:I}}const i=cy(e,n);if(i){const b=e[i.flexId],x=b.data.props??{},w=x.columnsCount??2,k=Array.isArray(x.columns)?x.columns:[],S=Array.from({length:w},(R,N)=>k[N]??{childrenIds:[]});let v=S.findIndex((R,N)=>N>i.columnIndex&&(!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0));if(v===-1&&(v=S.findIndex(R=>!Array.isArray(R==null?void 0:R.childrenIds)||R.childrenIds.length===0)),v===-1)return null;const{newBlocks:_,newRootId:y}=Ut(e,t),C=S.map((R,N)=>N===v?{...R,childrenIds:[...(R==null?void 0:R.childrenIds)??[],y]}:R);return{updatedDocument:{...e,..._,[i.flexId]:{...b,data:{...b.data,props:{...b.data.props,columns:C}}}},newRootId:y}}const l=hy(e,n);if(l){let b=e[l.parentId],x=Array.isArray((p=b.data.props)==null?void 0:p.items)?b.data.props.items:[],w=e,k=x.findIndex((C,I)=>I>l.itemIndex&&(!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0));if(k===-1&&(k=x.findIndex(C=>!Array.isArray(C==null?void 0:C.contentChildrenIds)||C.contentChildrenIds.length===0)),k===-1)if(l.parentType==="TabsBlock"&&x.length<10){const C=[...x,{label:`Tab ${x.length+1}`,contentChildrenIds:[]}];w={...w,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:C}}}},b=w[l.parentId],x=C,k=x.length-1}else return null;const{newBlocks:S,newRootId:v}=Ut(w,t),_=x.map((C,I)=>I===k?{...C,...l.parentType==="TabsBlock"&&!(C!=null&&C.label)?{label:`Tab ${I+1}`}:{},contentChildrenIds:[...(C==null?void 0:C.contentChildrenIds)??[],v]}:C);return{updatedDocument:{...w,...S,[l.parentId]:{...b,data:{...b.data,props:{...b.data.props,items:_}}}},newRootId:v}}const{newBlocks:s,newRootId:u}=Ut(e,t),c={...e,...s},h=sy(c,n,u);return h&&(c[h.parentId]=h.updatedParent),{updatedDocument:c,newRootId:u}}function Ou(e,t){const n=o=>Array.isArray(o)?o.filter(a=>!t.has(a)):o,r={};for(const[o,a]of Object.entries(e)){if(t.has(o))continue;const i=a;if(!(i!=null&&i.data)){r[o]=i;continue}const l={...i.data};if(Array.isArray(l.childrenIds)&&(l.childrenIds=n(l.childrenIds)),l.props){const s={...l.props};Array.isArray(s.childrenIds)&&(s.childrenIds=n(s.childrenIds)),Array.isArray(s.startChildrenIds)&&(s.startChildrenIds=n(s.startChildrenIds)),Array.isArray(s.endChildrenIds)&&(s.endChildrenIds=n(s.endChildrenIds)),Array.isArray(s.columns)&&(s.columns=s.columns.map(u=>({...u,childrenIds:n(u.childrenIds)}))),Array.isArray(s.cells)&&(s.cells=s.cells.map(u=>u===null||typeof u!="object"?u:{...u,childrenIds:n(u.childrenIds)})),Array.isArray(s.items)&&(s.items=s.items.map(u=>({...u,...u.titleChildrenIds!==void 0?{titleChildrenIds:n(u.titleChildrenIds)}:{},...u.contentChildrenIds!==void 0?{contentChildrenIds:n(u.contentChildrenIds)}:{},...u.cardChildrenIds!==void 0?{cardChildrenIds:n(u.cardChildrenIds)}:{},...u.detailChildrenIds!==void 0?{detailChildrenIds:n(u.detailChildrenIds)}:{}}))),l.props=s}r[o]={...i,data:l}}return r}function fy(e){var r;const t=e==null?void 0:e.type,n=((r=e==null?void 0:e.data)==null?void 0:r.props)??{};if(t==="Grid"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],s=i.some(c=>(c==null?void 0:c.colStart)!=null||(c==null?void 0:c.rowStart)!=null||(c==null?void 0:c.colSpan)!=null||(c==null?void 0:c.rowSpan)!=null)?i.length:o*a,u=Array.from({length:s},(c,h)=>{var d;return{childrenIds:Array.isArray((d=i[h])==null?void 0:d.childrenIds)?i[h].childrenIds:[]}});return{slotCount:s,slots:u}}if(t==="FlexColumns"){const o=n.columnsCount??(Array.isArray(n.columns)?n.columns.length:2),a=Array.isArray(n.columns)?n.columns:[],i=Array.from({length:o},(l,s)=>{var u;return{childrenIds:Array.isArray((u=a[s])==null?void 0:u.childrenIds)?a[s].childrenIds:[]}});return{slotCount:o,slots:i}}if(t==="Carousel"||t==="Marquee"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="TabsBlock"){const o=Array.isArray(n.items)?n.items:[],a=o.length,i=o.map(l=>({childrenIds:Array.isArray(l==null?void 0:l.contentChildrenIds)?l.contentChildrenIds:[]}));return{slotCount:a,slots:i}}if(t==="Pagination"){const o=n.columnsCount??2,a=n.rowsCount??2,i=Array.isArray(n.cells)?n.cells:[],l=Math.max(o*a,i.length),s=Array.from({length:l},(u,c)=>{var h;return{childrenIds:Array.isArray((h=i[c])==null?void 0:h.childrenIds)?i[c].childrenIds:[]}});return{slotCount:l,slots:s}}return null}function or(e){return e==="Grid"||e==="FlexColumns"||e==="Carousel"||e==="Marquee"||e==="Pagination"||e==="TabsBlock"}const vr=new WeakMap;function no(e,t){const n=e[t];if(!n||typeof n!="object")return null;const r=vr.get(n);if(r!==void 0)return r&&r.containerId===t?r:r&&{...r,containerId:t};if(!or(n.type))return vr.set(n,null),null;const o=fy(n);if(!o)return vr.set(n,null),null;const{slotCount:a,slots:i}=o,l=i.findIndex(c=>c.childrenIds.length>0),s=i.filter(c=>c.childrenIds.length===0).length,u={containerId:t,type:n.type,slotCount:a,slots:i,firstFilledSlot:l,emptySlotCount:s};return vr.set(n,u),u}function Ba(e,t){for(const[n,r]of Object.entries(e)){if(!or(r==null?void 0:r.type))continue;const o=no(e,n);if(o!=null&&o.slots.some(a=>a.childrenIds.includes(t)))return n}return null}function Lu(e,t,n,r){var u;const o=e[t];if(!o||!or(o.type))return e;const a=((u=o.data)==null?void 0:u.props)??{};if(o.type==="Grid"){let c=a.columnsCount??2,h=a.rowsCount??2;if(c*h>=n)return e;r==="columns"?c=Math.max(c,Math.ceil(n/Math.max(1,h))):h=Math.max(h,Math.ceil(n/Math.max(1,c)));const d=c*h,f=Array.isArray(a.cells)?a.cells:[],p=Array.from({length:d},(b,x)=>f[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:c,rowsCount:h,cells:p}}}}}if(o.type==="Carousel"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,20),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Marquee"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,30),f=Array.from({length:d},(p,b)=>h[b]??{contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="TabsBlock"){const h=Array.isArray(a.items)?a.items:[];if(h.length>=n)return e;const d=Math.min(n,10),f=Array.from({length:d},(p,b)=>h[b]??{label:`Tab ${b+1}`,contentChildrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,items:f}}}}}if(o.type==="Pagination"){const c=a.columnsCount??2,h=a.rowsCount??2,d=Array.isArray(a.cells)?a.cells:[];if(Math.max(c*h,d.length)>=n)return e;const p=Array.from({length:n},(b,x)=>d[x]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,cells:p}}}}}if((a.columnsCount??(Array.isArray(a.columns)?a.columns.length:2))>=n)return e;const l=Array.isArray(a.columns)?a.columns:[],s=Array.from({length:n},(c,h)=>l[h]??{childrenIds:[]});return{...e,[t]:{...o,data:{...o.data,props:{...a,columnsCount:n,columns:s}}}}}function zu(e,t,n){var u;const r=e[t];if(!r||!or(r.type))return e;const o=no(e,t);if(!o)return e;let a=-1;o.slots.forEach((c,h)=>{c.childrenIds.length>0&&(a=h)});const i=Math.max(n,a+1,1);if(i>=o.slotCount)return e;const l=((u=r.data)==null?void 0:u.props)??{};if(r.type==="Pagination"){const c=(l.columnsCount??2)*(l.rowsCount??2),h=Math.max(i,c);if(h>=o.slotCount)return e;const d=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,cells:d.slice(0,h)}}}}}if(r.type==="Carousel"||r.type==="Marquee"||r.type==="TabsBlock"){const c=Array.isArray(l.items)?l.items:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,items:c.slice(0,i)}}}}}if(r.type==="Grid"){const c=l.columnsCount??2,h=l.rowsCount??2,d=Math.max(1,Math.ceil(i/Math.max(1,c)));if(d>=h)return e;const f=Array.isArray(l.cells)?l.cells:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,rowsCount:d,cells:f.slice(0,c*d)}}}}}const s=Array.isArray(l.columns)?l.columns:[];return{...e,[t]:{...r,data:{...r.data,props:{...l,columnsCount:i,columns:s.slice(0,i)}}}}}function py(e,t,n,r="columns"){const o=t==null?void 0:t.sourceBlockId;if(!o||!e[o])return null;const a=Math.max(1,n);let i=e,l=Array.isArray(t.rowIds)?[...t.rowIds]:[],s=1+l.length;if(s===a)return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1};if(s<a){let h=!1;for(;s<a;){const d=l.length>0?l[l.length-1]:o;let f=Cs(i,o,d);if(!f){const p=Ba(i,o);if(!p){h=!0;break}const b=no(i,p),x=((b==null?void 0:b.slotCount)??0)+(a-s),w=Lu(i,p,x,r);if(w===i){h=!0;break}if(i=w,f=Cs(i,o,d),!f){h=!0;break}}i=f.updatedDocument,l=[...l,f.newRootId],s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:h}}const u=a,c=l.slice(u-1);if(c.length>0){const h=new Set;for(const f of c)for(const p of Ur(i,f))h.add(p);i=Ou(i,h);const d=Ba(i,o);d&&(i=zu(i,d,u)),l=l.slice(0,u-1),s=1+l.length}return{document:i,sourceBlockId:o,rowIds:l,achievedRowCount:s,capacityLimited:!1}}exports.Reader=Kn;exports.ReaderBlock=Te;exports.ReaderBlockSchema=Au;exports.ReaderDocumentSchema=hA;exports.cloneSubtree=Ut;exports.extractApiRows=wi;exports.findRepeatableContainerOf=Ba;exports.getRepeatableContainerInfo=no;exports.growContainerToFit=Lu;exports.isRepeatableContainerType=or;exports.reconcileRepeatFieldRowCount=py;exports.refreshApiDataSources=Tu;exports.refreshDocumentApiDataSources=Nu;exports.removeSubtree=Ou;exports.renderToStaticHtml=ay;exports.renderToStaticMarkup=ki;exports.shrinkContainerToFit=zu;
|