@emailmaker/emailmaker 1.0.111-dev.7 → 1.0.111-dev.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +1 -1
  2. package/{emailmaker-core.3e49164c.js → emailmaker-core.e66b6bbd.js} +1 -1
  3. package/emailmaker-esm.js +3 -3
  4. package/emailmaker.d.ts +27 -27
  5. package/emailmaker.js +9 -3
  6. package/iframe/js/amp.DVZOiCd2.js +1 -1
  7. package/iframe/js/chunk.oX6nCJbK.js +1 -1
  8. package/iframe/js/iframe-eblock.js +1 -1
  9. package/iframe/js/iframe.js +1 -1
  10. package/iframe/js/rules.BSaCN7eK.js +1 -1
  11. package/iframe/js/sanitize-html.Brggoo7U.js +1 -1
  12. package/package.json +1 -1
  13. package/runtime/@ant-design/cssinjs/index.js +1 -1
  14. package/runtime/@ant-design/icons/index.js +1 -1
  15. package/runtime/THIRD_PARTY_LICENSES.txt +38 -1
  16. package/runtime/antd/index.js +1 -1
  17. package/runtime/dayjs/index.js +1 -1
  18. package/runtime/uuid/index.js +1 -1
  19. package/static/core/{42aed026.js → 147560ac.js} +1 -1
  20. package/static/core/{a006f6f7.js → 1503d3c5.js} +1 -1
  21. package/static/core/{35624a31.js → 29b5cf4c.js} +1 -1
  22. package/static/core/{a1a8a556.js → 38431fd5.js} +1 -1
  23. package/static/core/{7692b5d1.js → 3c618aaa.js} +1 -1
  24. package/static/core/{3e187db3.js → 3da55a10.js} +1 -1
  25. package/static/core/{c173a170.js → 4c9ffe8a.js} +1 -1
  26. package/static/core/{1533d54f.js → 6c508e07.js} +3 -3
  27. package/static/core/{695f6357.js → 6df5e514.js} +1 -1
  28. package/static/core/{a15add90.js → 73e3b6fe.js} +1 -1
  29. package/static/core/{549d710f.js → a207410a.js} +1 -1
  30. package/static/core/{6f768da1.js → a2f4a86d.js} +1 -1
  31. package/static/core/{c0a64fe8.js → d19f3661.js} +1 -1
  32. package/static/core/{1f86e870.js → ea9209aa.js} +1 -1
  33. package/static/runtime/es-BM3Z0tyv.js +444 -0
  34. package/static/runtime/es-aqetrgqU.js +5 -0
  35. package/static/runtime/es-su3SZyyq.js +72 -0
  36. package/ui-kit/index.js +8 -8
  37. package/vite/index.cjs +1 -1
  38. package/vite/index.js +1 -1
  39. package/static/runtime/DownloadOutlined-D8I-Z3GJ.js +0 -57
  40. package/static/runtime/es-BC0iT53n.js +0 -387
  41. package/static/runtime/es-DSH7b6d8.js +0 -4
  42. package/static/runtime/es-XShFVIAB.js +0 -1
  43. package/static/runtime/objectWithoutProperties-7yjmsvQX.js +0 -2
  44. /package/iframe/{iframe-eblock.3e49164c.html → iframe-eblock.e66b6bbd.html} +0 -0
  45. /package/iframe/{iframe.3e49164c.html → iframe.e66b6bbd.html} +0 -0
  46. /package/static/runtime/{dayjs.min-BL8gJgHn.js → dayjs.min-CoDbPFFV.js} +0 -0
  47. /package/static/runtime/{dist-Cgj1taBx.js → dist-DkqHVs-N.js} +0 -0
@@ -1,4 +1,4 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-emailmaker`,`true`),e.appendChild(document.createTextNode(`@import "https://fonts.googleapis.com/css2?family=Geologica:wght@300;600&display=swap";@import "https://fonts.googleapis.com/css2?family=Geologica:wght@300;600&display=swap";html,body{width:100%;height:100%}.blocks-app input::-ms-clear{display:none}.blocks-app input::-ms-reveal{display:none}.blocks-app *,.blocks-app :before,.blocks-app :after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:#0000;font-family:sans-serif;line-height:1.15}.blocks-app [tabindex="-1"]:focus{outline:none}.blocks-app hr{box-sizing:content-box;height:0;overflow:visible}.blocks-app h1,.blocks-app h2,.blocks-app h3,.blocks-app h4,.blocks-app h5,.blocks-app h6{margin-top:0;margin-bottom:.5em;font-weight:500}.blocks-app p{margin-top:0;margin-bottom:1em}.blocks-app abbr[title],.blocks-app abbr[data-original-title]{cursor:help;border-bottom:0;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.blocks-app address{font-style:normal;line-height:inherit;margin-bottom:1em}.blocks-app input[type=text],.blocks-app input[type=password],.blocks-app input[type=number],.blocks-app textarea{-webkit-appearance:none}.blocks-app ol,.blocks-app ul,.blocks-app dl{margin-top:0;margin-bottom:1em}.blocks-app ol ol,.blocks-app ul ul,.blocks-app ol ul,.blocks-app ul ol{margin-bottom:0}.blocks-app dt{font-weight:500}.blocks-app dd{margin-bottom:.5em;margin-left:0}.blocks-app blockquote{margin:0 0 1em}.blocks-app dfn{font-style:italic}.blocks-app b,.blocks-app strong{font-weight:bolder}.blocks-app small{font-size:80%}.blocks-app sub,.blocks-app sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.blocks-app sub{bottom:-.25em}.blocks-app sup{top:-.5em}.blocks-app pre,.blocks-app code,.blocks-app kbd,.blocks-app samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}.blocks-app pre{margin-top:0;margin-bottom:1em;overflow:auto}.blocks-app figure{margin:0 0 1em}.blocks-app img{vertical-align:middle;border-style:none}.blocks-app a,.blocks-app area,.blocks-app button,.blocks-app [role=button],.blocks-app input:not([type=range]),.blocks-app label,.blocks-app select,.blocks-app summary,.blocks-app textarea{touch-action:manipulation}.blocks-app table{border-collapse:collapse}.blocks-app caption{text-align:left;caption-side:bottom;padding-top:.75em;padding-bottom:.3em}.blocks-app input,.blocks-app button,.blocks-app select,.blocks-app optgroup,.blocks-app textarea{color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;margin:0}.blocks-app button,.blocks-app input{overflow:visible}.blocks-app button,.blocks-app select{text-transform:none}.blocks-app button,html [type=button],.blocks-app [type=reset],.blocks-app [type=submit]{-webkit-appearance:button}.blocks-app button::-moz-focus-inner{border-style:none;padding:0}.blocks-app [type=button]::-moz-focus-inner{border-style:none;padding:0}.blocks-app [type=reset]::-moz-focus-inner{border-style:none;padding:0}.blocks-app [type=submit]::-moz-focus-inner{border-style:none;padding:0}.blocks-app input[type=radio],.blocks-app input[type=checkbox]{box-sizing:border-box;padding:0}.blocks-app input[type=date],.blocks-app input[type=time],.blocks-app input[type=datetime-local],.blocks-app input[type=month]{-webkit-appearance:listbox}.blocks-app textarea{resize:vertical;overflow:auto}.blocks-app fieldset{border:0;min-width:0;margin:0;padding:0}.blocks-app legend{width:100%;max-width:100%;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal;margin-bottom:.5em;padding:0;display:block}.blocks-app progress{vertical-align:baseline}.blocks-app [type=number]::-webkit-inner-spin-button{height:auto}.blocks-app [type=number]::-webkit-outer-spin-button{height:auto}.blocks-app [type=search]{outline-offset:-2px;-webkit-appearance:none}.blocks-app [type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.blocks-app [type=search]::-webkit-search-decoration{-webkit-appearance:none}.blocks-app ::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.blocks-app output{display:inline-block}.blocks-app summary{display:list-item}.blocks-app template{display:none}.blocks-app [hidden]{display:none!important}.blocks-app mark{background-color:#feffe6;padding:.2em}.blocks-app .blocks-plugin{zoom:var(--appZoom)}.blocks-app .blocks-plugin .ant-layout-sider-children{display:none}.blocks-app *,.blocks-app ul.ai-roles-list *,.blocks-app .ai-response-variant[class*=ai-response] *,.blocks-app ul.buttons-variants [class*=ai-response]{-webkit-user-select:none;user-select:none}.codicon[class*=codicon-]{font:16px/1 codicon!important}.blocks-app .element-card__title,.blocks-app [class*=ai-response],.blocks-app [class*=ai-response] *,.blocks-app .ant-comment-content-detail{-webkit-user-select:text;user-select:text}.blocks-app .code-mode__pane *{-webkit-user-select:auto;user-select:auto}.blocks-app,.blocks-app .ant-app,.blocks-app .ant-app .main,.blocks-app .ant-app .main__pane-content{height:100%}@media (width<=1300px){.blocks-app .ant-app .main{min-width:1270px}}.blocks-app .ant-app [role=button],.blocks-app .ant-app a,.blocks-app .ant-app area,.blocks-app .ant-app button,.blocks-app .ant-app input:not([type=range]),.blocks-app .ant-app label,.blocks-app .ant-app select,.blocks-app .ant-app summary,.blocks-app .ant-app textarea{touch-action:manipulation}.blocks-app .ant-app ::-webkit-scrollbar{width:10px;height:10px}.blocks-app .ant-app ::-webkit-scrollbar-corner{background:0 0}.blocks-app .ant-app ::-webkit-scrollbar-track{background:0 0}.blocks-app .ant-app ::-webkit-scrollbar-thumb{min-height:20px;box-shadow:inset 0 0 0 10px var(--colorFillSecondaryDarken);background-clip:content-box;border:3px solid #0000;border-radius:8px;transition:all .2s}.blocks-app .ant-app ::-webkit-scrollbar-thumb:hover{box-shadow:inset 0 0 0 10px var(--colorTextDisabled)}.blocks-app .ant-app textarea::-webkit-scrollbar-track{margin:10px}.blocks-app .ant-app .ant-btn.ant-btn-icon-only .free-mode-firewall-icon,.blocks-app .ant-app .email-pane .ant-tabs-tab .free-mode-firewall-icon,.blocks-app .ant-app .free-mode-firewall-icon{background-color:var(--colorBgLayout);border-radius:100%;justify-content:center;display:flex;position:absolute;bottom:0;right:0}.blocks-app .ant-app .email-pane .ant-tabs-tab .free-mode-firewall-icon_emailpane{background-color:var(--colorBgContainer);bottom:13px;right:13px}.blocks-app .ant-app .ant-pagination{margin-top:30px}.blocks-app .ant-app .ant-table-wrapper .ant-table{border-radius:calc(var(--borderRadiusXL) * 1px);overflow:hidden;background:0 0!important}.blocks-app .ant-app .ant-table-wrapper .ant-table .ant-table-thead>tr,.blocks-app .ant-app .ant-table-wrapper .ant-table .ant-table-thead>tr>th,.blocks-app .ant-app .ant-table-wrapper .ant-table .ant-table-thead>tr>td{background:0 0!important}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper,.blocks-app .ant-app .email-pane__content-col .selected-td-form__button:not(.ant-btn-text),.blocks-app .ant-app .email-pane__content-col .ant-btn-default{background:var(--colorFillSecondary);border:1px solid #0000!important}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:var(--colorPrimary);background:var(--colorFillSecondary);border-color:#0000}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button{min-height:calc(var(--formControlHeight) * 1px);min-width:calc(var(--formControlHeight) * 1px);padding:0 8px;line-height:1;position:relative}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button.ant-btn-icon-only .ant-btn-icon{justify-content:center;align-items:center;width:100%;height:100%;display:inline-flex}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button.ant-btn-icon-only .anticon{vertical-align:0;justify-content:center;align-items:center;line-height:1;display:inline-flex}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button.ghost-button:before{content:"";z-index:1;cursor:pointer;background-color:#0000;width:385px;height:50px;position:absolute;top:-9px;left:-338px}.blocks-app .ant-app .email-pane__content-col .ant-btn-default:not(:disabled,.ant-btn-disabled,.email-pane__content-col .selected-td-form__button--active):hover{background:var(--colorFillSecondaryDarken);color:inherit;border-color:#0000}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button--active,.blocks-app .ant-app .email-pane__content-col .ant-btn-default.selected-td-form__button--active{background:var(--colorPrimaryBg);color:var(--colorPrimary);border-color:#0000}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button--active:hover{background:var(--colorPrimaryBgHover);color:var(--colorPrimaryTextHover)}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper,.blocks-app .ant-app .email-page .ant-btn{min-width:calc(var(--formControlHeight) * 1px);height:calc(var(--formControlHeight) * 1px);line-height:calc((var(--formControlHeight) - 2) * 1px);text-align:center;padding:0 9px}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper{justify-content:center;align-items:center;padding:0 7px;display:flex}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper>span{display:inline-flex}.blocks-app .ant-app .ant-btn.ant-btn-icon-only.project-page__add-folder{margin-top:26px}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper:not(.ant-radio-button-wrapper-checked):hover{color:inherit;background:var(--colorFillSecondaryDarken)}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper.ant-radio-button-wrapper-checked{background:var(--colorPrimaryBg)}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper.ant-radio-button-wrapper-checked:hover{background:var(--colorPrimaryBgHover);color:var(--colorPrimaryTextHover)}.blocks-app .ant-app .email-pane__content-col .ant-form-item{margin-bottom:calc(var(--formItemMarginBottomMD) * 1px)}.blocks-app .ant-app .email-pane__content-col .ant-form-item.form-item-margin-xs{margin-bottom:calc(var(--formItemMarginBottomXS) * 1px)}.blocks-app .ant-app .selected-td-form__br-input{margin-bottom:8px!important}.blocks-app .ant-app .addon-text-content{font-size:11px;font-weight:600}.blocks-app .ant-app .addon-text-content--icon{align-items:center;font-size:0;line-height:0;display:inline-flex}.blocks-app .ant-app .ant-btn.ant-btn-lg.project-page__folder_menu{text-align:center;width:32px;height:32px;padding:0;line-height:32px}.blocks-app .ant-app .editor .main__pane{overflow:hidden}.blocks-app .ant-app .element-card_block.ant-card-bordered .ant-card-cover .element-card__img-wrapper{background-color:#0000;background-image:linear-gradient(45deg,#0000001a 25%,#0000 0 75%,#0000001a 0),linear-gradient(45deg,#0000001a 25%,#0000 0 75%,#0000001a 0);background-position:0 0,4px 4px;background-repeat:repeat,repeat;background-size:8px 8px;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box}.blocks-app .ant-app .ant-tabs-tabpane{width:100%}.blocks-app .ant-app .ant-tabs-large>.ant-tabs-nav .ant-tabs-tab{padding:18px 0}.blocks-app .ant-app .ant-tabs-content-holder{position:relative}.blocks-app .ant-app #pixie-editor ::-webkit-scrollbar-thumb{border:none}.blocks-app .ant-app .email-pane__bottom .code-mode__pane{border-top:1px solid var(--colorBorder)}.blocks-app .ant-app .container{width:100%;margin:0 auto;padding:0 65px}@media (width<=1550px){.blocks-app .ant-app .container{gap:10px;padding:0 10px}}.blocks-app .ant-app .projects-page__container .container{padding-top:30px}.blocks-app .ant-app .container.email-pane__col-wrapper_pinch{padding-right:0}.blocks-app .ant-app body,.blocks-app .ant-app .ant-layout{transition:background-color .2s ease-in-out}.blocks-app .ant-app p{margin-top:0}.blocks-app .ant-app .ant-layout-content.container{padding-bottom:40px}.blocks-app .ant-app .ant-table-wrapper{width:100%}.blocks-app .ant-app .ant-table{border-radius:16px;overflow:hidden}.blocks-app .ant-app .ant-picker{border-radius:6px}.blocks-app .ant-app .verticalColorpicker.ant-color-picker .ant-color-picker-inner-content{width:340px}.blocks-app .ant-app .ant-color-picker .ant-color-picker-inner-content .ant-color-picker-panel .ant-color-picker-select .ant-color-picker-palette{min-height:160px}.blocks-app .ant-app .easylogic-colorpicker{border-radius:8px}.blocks-app .ant-app .easylogic-colorpicker .colorpicker-body .color{border-radius:8px 8px 0 0}.blocks-app .ant-app .ant-page-header-heading-title{max-width:700px;white-space:unset;box-shadow:none;align-items:baseline;padding:0;font-size:18px;line-height:24px}.blocks-app .ant-app .ant-page-header-heading-title.ant-typography-edit-content{overflow:unset;margin-top:0}.blocks-app .ant-app .ant-page-header-heading-title textarea{background:0 0;font-size:16px;font-weight:500;line-height:20px}.blocks-app .ant-app .ant-page-header-heading-preheader:disabled,.blocks-app .ant-app .ant-page-header-heading-title:disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;pointer-events:none}.blocks-app .ant-app .ant-menu{background:inherit}.blocks-app .ant-app .ant-page-header{background:inherit;margin-bottom:20px;padding:20px 0}@media (width<=1450px){.blocks-app .ant-app .ant-page-header{padding:10px 0}}.blocks-app .ant-app .ant-page-header-heading-left{margin:0;overflow:visible}.blocks-app .ant-app .ant-page-header-heading-extra{margin:0}.blocks-app .ant-app .ant-page-header-heading-sub-title{display:block;overflow:visible}.blocks-app .ant-app .ant-progress-inner{background-color:#fff}.blocks-app .ant-app .dark .ant-progress-inner{background-color:#ffffff14}.blocks-app .ant-app .ant-collapse>.ant-collapse-item>.ant-collapse-header{flex-direction:row-reverse}.blocks-app .ant-app .ant-tabs-tab{justify-content:center}.blocks-app .ant-app .nobr{white-space:nowrap}.blocks-app .ant-app .checkbox-horizontal .ant-row{flex-direction:row-reverse;justify-content:flex-end;align-items:center}.blocks-app .ant-app .checkbox-horizontal .ant-form-item-control{margin-right:10px;flex-grow:0!important;width:auto!important}.blocks-app .ant-app .checkbox-horizontal .ant-form-item-label{padding:0!important}.blocks-app .ant-app .ant-comment .ant-comment-nested{margin-left:24px}.blocks-app .ant-app .ant-comment .ant-comment-avatar{margin-top:-2px;margin-right:8px;position:relative}.blocks-app .ant-app .ant-comment .ant-comment-avatar img{width:24px;height:24px}.blocks-app .ant-app .ant-comment .ant-comment-inner{background:var(--colorBgLayout);border-radius:8px;margin-bottom:12px;padding:12px;display:flex}.blocks-app .ant-app img:not([srcset*=\\.],[src*=\\.],[src*=data\\:image]){display:none}.blocks-app .ant-app .dark .targetted-comment-item>.ant-comment-inner{background:#7030d43b}.blocks-app .ant-app .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before,.blocks-app .blocks-modal .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before{background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);border-top:1px solid var(--colorBorderSecondary);z-index:1;background-position:0 -2px;background-repeat:no-repeat;border-bottom:none;height:20px;bottom:-20px}.blocks-app .ant-app .ant-tabs-top[style*=vh]>.ant-tabs-nav:before,.blocks-app .blocks-modal .ant-tabs-top[style*=vh]>.ant-tabs-nav:before{background:0 0}.dark .blocks-app .ant-app .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before,.dark .blocks-app .blocks-modal .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before{background:linear-gradient(180deg, var(--colorBgBase) -100%, transparent 50%)}.blocks-app .ant-app .ant-tabs-top>.ant-tabs-nav,.blocks-app .blocks-modal .ant-tabs-top>.ant-tabs-nav{margin-bottom:20px}.blocks-app .ant-app .ant-tabs.email-pane__col_settings-inner>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .ant-app .ant-tabs.email-pane__col_settings-inner>div>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .blocks-modal .ant-tabs.email-pane__col_settings-inner>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .blocks-modal .ant-tabs.email-pane__col_settings-inner>div>.ant-tabs-nav .ant-tabs-nav-operations{visibility:hidden;pointer-events:none;position:absolute}.blocks-app .transition-enter{opacity:0}.blocks-app .transition-enter-active{opacity:1;transition:opacity .3s ease-in}.blocks-app .transition-exit{opacity:1}.blocks-app .transition-exit-active{opacity:0;transition:opacity .3s ease-in}.blocks-app #carrotquest-messenger-collapsed-container{z-index:10!important}.blocks-app .carrot-messenger-frame-container{z-index:11!important}.blocks-app .default-mode__pane_editor,.blocks-app .code-mode{z-index:20}@media (height<=700px){.blocks-app .ant-color-picker-presets .ant-collapse-item:last-child{display:none}}@media only screen and (device-width<=480px),only screen and (width<=480px){.blocks-app .email-pane_only_code_mode_mobile .email-pane__row .ant-col:first-child{display:none}.blocks-app .email-pane_only_code_mode_mobile .email-pane__row .ant-col:last-child{width:100%!important}}.blocks-app .em-filemanager .uploadProgress{right:105px!important}.blocks-app .theme-switcher{position:relative;top:2px}.blocks-app .theme-switcher .ant-segmented-item-label{justify-content:center;align-items:center;display:flex}.blocks-app .menu-tariff-widget-anim-enter{opacity:0}.blocks-app .menu-tariff-widget-anim-enter-active{opacity:1;transition:opacity .48s cubic-bezier(.645,.045,.355,1)}.blocks-app .menu-tariff-widget-anim-exit{opacity:1}.blocks-app .menu-tariff-widget-anim-exit-active{opacity:0;transition:opacity .38s cubic-bezier(.645,.045,.355,1)}@media (prefers-reduced-motion:reduce){.blocks-app .menu-tariff-widget-anim-enter,.blocks-app .menu-tariff-widget-anim-enter-active{opacity:1;transition:none!important}.blocks-app .menu-tariff-widget-anim-exit{opacity:1}.blocks-app .menu-tariff-widget-anim-exit-active{opacity:0;transition:none!important}.blocks-app .menu-tariff-widget__expanded-fade{transition:none!important}}.blocks-app .menu-tariff-widget{flex-shrink:0;width:100%;margin-bottom:24px;padding:0 17px}.blocks-app .menu-tariff-widget__expanded-fade{opacity:1;transition:opacity .38s cubic-bezier(.645,.045,.355,1)}.blocks-app .menu-tariff-widget__expanded-fade_hidden{opacity:0;pointer-events:none}.blocks-app .menu-tariff-widget_collapsed{justify-content:center;align-items:center;margin-bottom:24px;padding:0 17px;display:flex}.blocks-app .menu-tariff-widget_collapsed .menu-tariff-widget__badge{margin:0}.blocks-app .menu-tariff-widget__badge{border-radius:4px;justify-content:center;align-items:center;min-height:18px;padding:2px 4px;line-height:1.2;text-decoration:none;display:inline-flex}.blocks-app .menu-tariff-widget__badge-text{color:var(--colorWhite,#fff);white-space:nowrap;font-size:12px;font-weight:300}.blocks-app .menu-tariff-widget__badge_purple{background-color:var(--colorInfo,#8946f8)}.blocks-app .menu-tariff-widget__badge_blue{background-color:var(--colorLink,#2884ff)}.blocks-app .menu-tariff-widget__card{border-radius:8px;flex-direction:column;gap:20px;padding:16px;display:flex;position:relative;overflow:hidden}.blocks-app .menu-tariff-widget__card_light{background-color:var(--colorFillSecondary,#f8f8f8)}.blocks-app .menu-tariff-widget__card_purple{background-color:var(--colorInfo,#8946f8)}.blocks-app .menu-tariff-widget__card_decor{isolation:isolate}.blocks-app .menu-tariff-widget__card_decor:before{content:"";pointer-events:none;z-index:0;border-radius:50%;width:220px;height:220px;position:absolute}.blocks-app .menu-tariff-widget__card_decor_trial:before{opacity:.1;filter:blur(60px);background:#f85243;inset:calc(50% - 208.5px) auto auto calc(50% - 110px);transform:none}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__title_dark{line-height:20px}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__row{align-items:flex-end}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__muted{font-size:14px;line-height:1.2}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__accent-dark{font-size:14px;font-weight:400;line-height:18px}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__note{z-index:2;line-height:1.2;position:relative}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__btn_primary{z-index:3;position:relative}.blocks-app .menu-tariff-widget__card_decor_paid:before{opacity:.4;filter:blur(60px);background:#f85243;inset:calc(50% - 51px) 8px auto auto;transform:none}.blocks-app .menu-tariff-widget__header{z-index:1;flex-direction:column;gap:4px;display:flex;position:relative}.blocks-app .menu-tariff-widget__header-link{max-width:100%;color:inherit;cursor:pointer;border-radius:6px;outline:none;flex-direction:column;align-items:flex-start;gap:4px;text-decoration:none;display:flex}.blocks-app .menu-tariff-widget__header-link:hover{opacity:.92}.blocks-app .menu-tariff-widget__header-link:focus-visible{outline:2px solid var(--colorPrimary,#1677ff);outline-offset:2px}.blocks-app .menu-tariff-widget__title{color:var(--colorWhite,#fff);font-size:16px;font-weight:300;line-height:1.2}.blocks-app .menu-tariff-widget__title_dark{color:var(--colorText,#1f1f1f)}.blocks-app .menu-tariff-widget__desc,.blocks-app .menu-tariff-widget__note{color:var(--colorTextSecondary,#8c8c8c);margin:0;font-size:14px;font-weight:100;line-height:1.2}.blocks-app .menu-tariff-widget__row{flex-wrap:wrap;align-items:baseline;gap:4px;font-size:14px;font-weight:100;line-height:1.2;display:flex}.blocks-app .menu-tariff-widget__row>*{font-weight:100}.blocks-app .menu-tariff-widget__muted{color:var(--colorTextSecondary,#8c8c8c)}.blocks-app .menu-tariff-widget__muted-white{color:#ffffff80}.blocks-app .menu-tariff-widget__date-dark{color:var(--colorTextSecondary,#8c8c8c)}.blocks-app .menu-tariff-widget__date-white{color:var(--colorWhite,#fff)}.blocks-app .menu-tariff-widget__accent-dark{color:var(--colorText,#1f1f1f)}.blocks-app .menu-tariff-widget__accent-white{color:var(--colorWhite,#fff)}.blocks-app .menu-tariff-widget__btn{z-index:1;cursor:pointer;box-sizing:border-box;border:none;border-radius:6px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:32px;padding:8px 12px;font-family:inherit;font-size:14px;font-weight:300;line-height:1.2;text-decoration:none;display:inline-flex;position:relative}.blocks-app .menu-tariff-widget__btn_primary{background-color:var(--colorLink,#2884ff);color:var(--colorWhite,#fff)}.blocks-app .menu-tariff-widget__btn_primary:hover{color:var(--colorWhite,#fff);opacity:.92}.blocks-app .menu-tariff-widget__btn_outline{white-space:nowrap;color:var(--colorWhite,#fff);background-color:#0000;border:1px solid #ffffff80;transition:border-color .2s,color .2s,background-color .2s,opacity .2s}.blocks-app .menu-tariff-widget__btn_outline:hover:not(:disabled){color:var(--colorWhite,#fff);border-color:#ffffffbf}.blocks-app .menu-tariff-widget__btn_outline:disabled{cursor:default;opacity:.95}.blocks-app .menu-tariff-widget__btn-icon{color:currentColor;flex-shrink:0}.blocks-app .menu-tariff-widget__recurring-tooltip-wrap{width:100%;display:block}.blocks-app .ant-layout-sider-collapsed .project-menu .ant-menu-submenu-arrow:before,.blocks-app .ant-layout-sider-collapsed .project-menu .ant-menu-submenu-arrow:after{transition-delay:.3s!important}.blocks-app .project-menu{flex-direction:column;height:100%;display:flex;position:relative}.blocks-app .project-menu__bottom-stack{flex-direction:column;flex-shrink:0;margin-top:auto;display:flex}.blocks-app .project-menu .ant-menu-submenu-arrow:before,.blocks-app .project-menu .ant-menu-submenu-arrow:after{opacity:.5;border-radius:0;height:1px}.blocks-app .project-menu .ant-menu-submenu-arrow{inset-inline-end:8px}.blocks-app .project-menu .ant-menu-item-divider{border-color:#d9d9d9;display:none}.blocks-app .project-menu .ant-menu.ant-menu-root.ant-menu-vertical{border-inline-end:unset}.blocks-app .project-menu__list-item_project>.ant-menu-submenu-title:hover:not(.ant-menu-item-selected,.ant-menu-submenu-selected),.blocks-app .project-menu__list-item_project>.ant-menu-submenu-title{color:var(--colorLink)}.blocks-app .project-menu__list_top.ant-menu{height:70px;margin-bottom:auto}.blocks-app .project-menu__list_top.ant-menu .ant-menu-submenu-title:hover{background-color:#0000}.blocks-app .project-menu__list_second.ant-menu-vertical .ant-menu-item,.blocks-app .project-menu__list_second.ant-menu-vertical .ant-menu-submenu-title,.blocks-app .project-menu__list_second.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title{margin-top:6px;margin-bottom:8px;padding:0 26px}.blocks-app .project-menu__list.project-menu__list_second.ant-menu:not(.ant-menu-horizontal) li{width:unset;border-radius:8px;margin:4px 17px 8px;padding:0 11px;font-size:16px}.blocks-app .project-menu__list.project-menu__list_second.ant-menu:not(.ant-menu-horizontal) li .ant-menu-title-content{font-size:16px}.blocks-app .project-menu__list.project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) li:not(.ant-menu-submenu){width:unset;border-radius:8px;margin:4px 17px 8px;padding:0 12px}.blocks-app .project-menu__list.project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) li:not(.ant-menu-submenu) .ant-menu-submenu-title{width:100%;min-width:20px;margin:0}.blocks-app .project-menu__list.project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) li.ant-menu-submenu{border-radius:8px;margin:4px 17px 8px}.blocks-app .project-menu__list.project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) li.ant-menu-submenu .ant-menu-submenu-title{border-radius:8px;width:100%;margin:0;padding:0 12px}.blocks-app .project-menu__list-item .user-profile__avatar{display:inline-flex}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item{height:54px;margin:auto 17px}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_logo,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item_logo,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_logo,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item_logo{width:calc(100% - 16px);margin:8px;padding:0 8px}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item>.project-menu__block,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item>.project-menu__block,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item>.project-menu__block,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item>.project-menu__block{pointer-events:auto;cursor:pointer}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_project .ant-menu-submenu-title,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item_project .ant-menu-submenu-title,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_project .ant-menu-submenu-title,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item_project .ant-menu-submenu-title{align-items:center;display:flex}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_project .ant-menu-title-content,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item_project .ant-menu-title-content,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_project .ant-menu-title-content,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item_project .ant-menu-title-content{white-space:nowrap;max-width:150px;height:25px;margin-top:4px;line-height:normal;display:inline-block;overflow:hidden;text-overflow:ellipsis!important}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item>.project-menu__block.ant-menu-item-icon,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item>.project-menu__block.ant-menu-item-icon,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item>.project-menu__block.ant-menu-item-icon,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item>.project-menu__block.ant-menu-item-icon{height:54px;line-height:54px;display:flex;align-items:center!important}.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item.ant-menu-item>.ant-menu-item-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item.ant-menu-submenu>.ant-menu-submenu-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_project.ant-menu-item.project-menu__list-item.ant-menu-item>.ant-menu-item-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_project.ant-menu-item.project-menu__list-item.ant-menu-submenu>.ant-menu-submenu-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item.ant-menu-item>.ant-menu-item-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item.ant-menu-submenu>.ant-menu-submenu-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_logo.ant-menu-item.project-menu__list-item.ant-menu-item>.ant-menu-item-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_logo.ant-menu-item.project-menu__list-item.ant-menu-submenu>.ant-menu-submenu-title{width:100%;height:70px;margin:0;padding:0 6px;line-height:70px}.blocks-app .project-menu .user-profile__avatar{border-radius:50%;overflow:hidden}.blocks-app .project-menu .user-profile__avatar.ant-menu-item-icon{display:inline-flex}.blocks-app .project-menu .project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:var(--colorInfo);border-color:var(--colorInfo);color:#fff;border-radius:8px;margin:4px 18px 8px;padding:0 12px}.blocks-app .project-menu .project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected:hover{background-color:var(--colorInfoHover);border-color:var(--colorInfoHover)}.blocks-app .project-menu__block-button{text-transform:uppercase;border-radius:8px;width:32px;min-width:32px;padding:0;font-size:18px;font-weight:600;line-height:32px}.blocks-app .project-menu__submenu-popup.ant-menu,.blocks-app .project-menu__submenu-popup .ant-menu{background:var(--colorBgContainer);width:320px;box-shadow:var(--boxShadowSecondary);border-radius:12px;padding:0;overflow:hidden}.blocks-app .project-menu__submenu-popup .ant-menu-submenu-title,.blocks-app .project-menu__submenu-popup .ant-menu-item{border-radius:0}.blocks-app .project-menu__submenu-popup .ant-menu-item-group{margin:0;padding:24px 16px;position:relative}.blocks-app .project-menu__submenu-popup .ant-menu.ant-menu-light .ant-menu-item-group-title,.blocks-app .project-menu__submenu-popup .ant-menu-item-group-title{color:#000;padding:0 8px 24px;font-size:18px;font-weight:500;line-height:1}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list{margin:0;padding:0}.blocks-app .project-menu__submenu-popup .ant-menu-item-divider:not(.project-menu__projects-section-divider){display:none}.blocks-app .project-menu__submenu-popup .ant-menu-item-divider.project-menu__projects-section-divider{clear:both;border:0;border-top:1px solid var(--colorSplit);margin:0 -16px;display:block}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item{background:0 0;border-radius:6px;align-items:center;width:100%;height:auto;min-height:32px;margin:0 0 8px;padding:0;line-height:1.35;display:flex}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .project-menu__frequent-project-item.ant-menu-item{padding-inline:0}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item:last-child{margin-bottom:0}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item .ant-menu-title-content{flex:1;margin:0;overflow:hidden}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item.ant-menu-item-active,.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item:hover{background:var(--colorFillQuaternary);color:inherit}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item.ant-menu-item-selected{background:0 0}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item.ant-menu-item-selected:hover{background:var(--colorFillQuaternary)}.blocks-app .project-menu__submenu-popup .project-menu__recent-row{box-sizing:border-box;justify-content:space-between;align-items:center;gap:4px;width:100%;min-height:32px;padding:0 8px;display:flex}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-title{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;font-size:14px;font-weight:300;line-height:19px;overflow:hidden;color:var(--colorLink)!important}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item:hover .project-menu__recent-row-title,.blocks-app .project-menu__submenu-popup .project-menu__recent-row-title:hover{color:var(--colorText)!important}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-sep{background:var(--colorSplit);flex:none;width:1px;height:16px;margin:0 2px}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-mail{box-sizing:border-box;min-width:72px;height:32px;color:var(--colorText);border-radius:6px;flex:none;justify-content:flex-start;align-items:center;margin:0 -8px 0 0;padding:8px;font-size:14px;font-weight:400;line-height:19px;display:inline-flex}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-mail-icon{flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;line-height:0;display:inline-flex}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-mail-icon .anticon{flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-mail-icon svg{flex-shrink:0;display:block}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-mail-count{flex-shrink:0;margin-left:4px}.blocks-app .project-menu__submenu-popup .project-menu__all-projects-item.ant-menu-item{background:var(--colorBgContainer);margin:0;border-radius:6px;align-items:center;width:calc(100% - 32px);height:auto;margin-block:16px;margin-inline:16px;padding:8px;line-height:19px;display:flex}.blocks-app .project-menu__submenu-popup .project-menu__all-projects-item.ant-menu-item .ant-menu-item-icon{font-size:16px}.blocks-app .project-menu__submenu-popup .project-menu__all-projects-item.ant-menu-item .ant-menu-title-content{color:var(--colorText);font-size:14px;font-weight:300}.blocks-app .project-menu__submenu-popup.project-menu__submenu-popup .ant-menu.ant-menu-light .ant-menu-item-group-title,.blocks-app .project-menu__submenu-popup.project-menu__submenu-popup .ant-menu-item-group-title{color:#000}.blocks-app .project-menu-profile-popup{box-sizing:border-box;border-radius:16px;width:244px;min-width:244px;max-width:244px;padding:0;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.blocks-app .project-menu-profile-popup .ant-menu{background:var(--colorBgContainer);width:100%;box-shadow:none;border-radius:16px;overflow:hidden}.blocks-app .project-menu-profile-popup .ant-menu-sub{padding:0}.blocks-app .project-menu-profile-popup .ant-menu-item-group{max-width:100%;margin:0}.blocks-app .project-menu-profile-popup .ant-menu-item-group-title{height:auto;margin:0;padding:0;line-height:normal}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list{flex-direction:column;align-items:stretch;gap:4px;display:flex;margin:0!important;padding:16px 8px!important}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list .ant-menu-item{box-sizing:border-box;width:100%;height:auto;min-height:32px;color:var(--colorText);background:var(--colorBgContainer);border-radius:6px;flex-direction:row;align-items:center;margin:0;font-size:14px;font-weight:300;line-height:1.2;display:flex;padding:8px 12px!important}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list .ant-menu-item .ant-menu-item-icon{justify-content:center;align-items:center;min-width:16px;margin-inline-end:0;font-size:16px;line-height:0;display:inline-flex}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list .ant-menu-item .ant-menu-title-content{white-space:nowrap;text-overflow:ellipsis;flex:auto;min-width:0;font-weight:300;line-height:1.2;overflow:hidden}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list .ant-menu-item .ant-menu-title-content a{color:inherit;font-weight:300}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list .ant-menu-item-icon{font-size:16px}.blocks-app .ant-app .project-menu-profile-popup .ant-menu.ant-menu-sub .ant-menu-item-group>ul.ant-menu-item-group-list,.blocks-app .ant-app .project-menu-profile-popup .ant-menu .ant-menu-item-group>ul.ant-menu-item-group-list{margin:0!important;padding:16px 8px!important}.blocks-app .ant-app .project-menu-profile-popup .ant-menu .ant-menu-item-group .ant-menu-item-group-list .ant-menu-item,.blocks-app .ant-app .project-menu-profile-popup .ant-menu .ant-menu-item-group .ant-menu-item-group-list .ant-menu-submenu-title{padding:12px 8px!important}.blocks-app .project-menu-profile-popup__header{box-sizing:border-box;border-bottom:1px solid var(--colorBorderSecondary);flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;width:100%;padding:16px;display:flex}.blocks-app .project-menu-profile-popup__avatar{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex;overflow:hidden}.blocks-app .project-menu-profile-popup__meta{flex-direction:column;width:100%;min-width:0;display:flex}.blocks-app .project-menu-profile-popup__name{color:var(--colorText);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:300;line-height:1.2;overflow:hidden}.blocks-app .project-menu-profile-popup__email{color:var(--colorTextSecondary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:300;line-height:1.2;overflow:hidden}.blocks-app .account-settings .ant-input-number{width:100%}.blocks-app .account-settings .ant-checkbox-wrapper{margin:0 4px 0 8px}.blocks-app .account-settings-security-tab-content,.blocks-app .account-settings-codeiditor-tab-content{min-height:258px}body{margin:0}.blocks-app .ant-menu-submenu-placement-rightTop:before,.blocks-app .ant-menu-submenu-placement-rightTop:after{display:none!important}.blocks-app .main{overflow:hidden}.blocks-app .main__pane-layout{height:100%;min-height:100%}.blocks-app .main__pane{height:100%;transition:height .2s cubic-bezier(0,0,.2,1);position:relative}.blocks-app .main__pane_editor{z-index:2;box-shadow:0 10px 60px #2223}.blocks-app .main__pane .ant-layout-sider-trigger{flex-direction:column;justify-content:center;display:flex;overflow:hidden}.blocks-app .main__pane-trigger{justify-content:space-between;width:200px;display:flex}.blocks-app .main__pane-trigger .anticon-menu-unfold,.blocks-app .main__pane-trigger:hover .anticon-menu{display:none}.blocks-app .main__pane-trigger:hover .anticon-menu-unfold,.blocks-app .main__pane-trigger .anticon-menu{display:inline-flex}.blocks-app .main__panes-resizer{position:relative}.blocks-app .main__panes-resizer:before{content:"";background-color:#0000;border-bottom:2px solid #0000;width:100%;height:10px;transition:border-color .2s;position:absolute;bottom:0;left:0;right:0}.blocks-app .main__panes-resizer:hover{cursor:row-resize}.blocks-app .main__panes-resizer:hover:before{border-color:var(--colorPrimary)}.blocks-app .main__pane-close-btn{z-index:21;bottom:0;left:50%;transform:translate(-50%)}.blocks-app .main__pane-close-btn.ant-btn{border:0;border-radius:25px 25px 0 0;width:50px;height:25px;padding:0;position:absolute}.blocks-app .main__pane-close-btn .anticon{border-radius:50px 50px 0 0;outline:0 solid #188fff40;align-items:flex-end;height:100%;transition:all .1s cubic-bezier(0,0,.2,1)}.blocks-app .main__pane-close-btn .anticon.show-halo{outline-width:12px}.blocks-app .main__pane-close-btn .anticon.opened{align-items:flex-start;transform:rotate(180deg)}.blocks-app .main__pane-trigger .anticon.anticon-menu-fold{display:inline-flex}.blocks-app .main__pane-trigger.ant-btn{z-index:1;width:100%;height:70px;box-shadow:none;background:0 0;border:0;display:block;position:absolute;top:0;left:0;right:0}.blocks-app .main__pane-trigger.ant-btn:hover,.blocks-app .main__pane-trigger.ant-btn:focus{background:0 0}.blocks-app .main__pane-trigger.ant-btn:empty{visibility:visible;width:100%;display:block}.blocks-app .main__menu{z-index:11;height:100%;position:sticky;top:0}.blocks-app .main__menu>div{border-right:1px solid;border-color:inherit}.blocks-app .main__menu:not(.ant-layout-sider-collapsed){margin-right:-180px;top:0;left:0;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d}.blocks-app body.dark .main__menu:not(.ant-layout-sider-collapsed){box-shadow:0 3px 6px -4px #0000007a,0 6px 16px #00000052,0 9px 28px 8px #0003}.blocks-app .main__menu.main__menu_lock{box-shadow:none;margin-right:0}.blocks-app body.dark .main__menu.main__menu_lock{box-shadow:none}.blocks-app .main__menu *{text-overflow:unset!important}@media (width<=1400px){.blocks-app .main__menu .ant-layout-sider-zero-width-trigger{z-index:100000;top:50%;text-align:center;visibility:visible;width:20px;height:60px;font-size:16px;inset-inline-start:0;transform:translateY(-30px);box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #0000000f}.blocks-app .main__menu .ant-layout-sider-zero-width-trigger-right{visibility:hidden}}.blocks-app .main__content-wrapper{position:relative}@media (width<=1550px){.blocks-app .main__header{padding:0 20px 0 40px!important}}.blocks-app .ant-layout .ant-layout-sider-trigger{text-align:left;border-bottom:none;padding:0 30px}.blocks-app .ant-layout-sider-light .ant-layout-sider-trigger{background:0 0}.blocks-app .ant-btn.project-menu__block-button{padding:0!important}.blocks-app .groups-management__group-select label{width:100%}.blocks-app .groups-management__group-select label:after{display:none}.blocks-app .groups-management__group_menu{border-color:var(--colorFillSecondaryDarken)}.blocks-app .email-settings{height:100%;display:flex}.blocks-app .email-settings__collapse{flex-direction:column;width:100%;max-height:100%;display:flex;overflow:hidden}.blocks-app .email-settings__collapse.ant-collapse{border:0}.blocks-app .email-settings__collapse-panel:last-child.ant-collapse-item-active{padding-bottom:12px}.blocks-app .email-settings__collapse-panel.ant-collapse-item{min-height:50px;overflow:hidden}.blocks-app .email-settings__collapse-panel-content{width:100%}.blocks-app .email-settings .ant-collapse-content-box{padding:0 2px 0 12px;overflow:hidden}.blocks-app .upload-bg-image{margin-bottom:calc(var(--formItemMarginBottomXS) * 1px)}.blocks-app .upload-bg-image__inner-wrap{border:calc(var(--borderWidth) * 1px) solid var(--colorFillSecondaryDarken);border-radius:calc(var(--borderRadius) * 1px);cursor:pointer;background-color:var(--colorBgContainer);justify-content:space-between;align-items:center;transition:all .2s linear .2s;display:flex}.blocks-app .upload-bg-image__inner-wrap:hover{border-color:var(--borderColorHover)}.blocks-app .upload-bg-image__uploader{width:calc((var(--formControlHeight) - var(--borderWidth) * 2 + 1) * 1px);height:calc((var(--formControlHeight) - var(--borderWidth) * 2) * 1px);border-radius:calc(var(--borderRadius) * .8px);border:none;border-right:1px solid var(--colorFillSecondaryDarken);flex-shrink:0;margin-right:10px;overflow:hidden}.blocks-app .upload-bg-image__uploader-content{background:0 0;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;font-size:11px;display:flex}.blocks-app .upload-bg-image__uploader-content-inner{width:inherit;height:inherit;position:relative}.blocks-app .upload-bg-image__uploader-img-wrap{width:inherit;height:inherit;z-index:1;border:none;position:absolute;overflow:hidden}.blocks-app .upload-bg-image__uploader-img-wrap:after{opacity:0;content:"";transition:opacity .3s;position:absolute;inset:0}.blocks-app .upload-bg-image__uploader-content:hover .upload-bg-image__uploader-img-wrap:after{opacity:1}.blocks-app .upload-bg-image .upload-bg-image__empty{border-top:2px solid var(--colorError);z-index:2;width:27px;position:absolute;top:16px;left:3px;transform:rotate(-45deg)}.blocks-app .upload-bg-image .inputGroup{flex-direction:column;width:100%;display:flex}.blocks-app .upload-bg-image .image-size{color:var(--colorTextTertiary);padding-right:15px;font-size:12px}.blocks-app .upload-bg-image .image-empty-text,.blocks-app .upload-bg-image .image-size-splitter{color:var(--colorTextQuaternary)}.blocks-app .upload-bg-image__edit,.blocks-app .upload-bg-image__edit-menu{color:var(--colorLink);right:calc((var(--borderWidth) + 2) * 1px);padding:6px;line-height:1;position:absolute}.blocks-app .upload-bg-image__edit{right:calc((var(--borderWidth) + 32) * 1px);position:absolute}.blocks-app .upload-bg-image__uploader-icons-wrap{z-index:2;width:inherit;height:inherit;opacity:1;cursor:pointer;justify-content:center;align-items:center;transition:opacity .3s;display:flex;position:relative}.blocks-app .upload-bg-image__uploader-content:hover .upload-bg-image__uploader-icons-wrap{opacity:.85}.blocks-app .upload-bg-image__uploader-icons-wrap-upload{z-index:1;width:inherit;height:inherit;opacity:.8;cursor:pointer;justify-content:center;align-items:center;transition:opacity .3s;display:flex;position:relative}.blocks-app .upload-bg-image__uploader-content:hover .upload-bg-image__uploader-icons-wrap-upload{opacity:.85}.blocks-app .upload-bg-image__uploader-icons-wrap-upload .upload-bg-image__uploader-content:empty{background-color:var(--colorFillSecondary);border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .upload-bg-image__uploader-link,.blocks-app .upload-bg-image__uploader-link:hover{color:#fff}.blocks-app .upload-bg-image__uploader-icon{color:#fff;margin:0 3px;font-size:14px}.blocks-app .upload-bg-image__uploader-img{object-fit:cover;width:100%;height:100%;display:block!important}.blocks-app .upload-bg-image__uploader-img-placeholder{width:100%;height:100%;display:block}.blocks-app .upload-bg-image__uploader-icon-btn{cursor:pointer;background:0 0;border:0;margin:0;padding:0}.blocks-app .upload-bg-image__input{border-color:var(--colorFillSecondaryDarken)}.blocks-app .upload-bg-image__uploader .ant-upload-select{cursor:pointer;width:100%;height:100%;display:block}.blocks-app .upload-bg-image__uploader .ant-upload-select .ant-upload{width:100%;height:100%;display:block}.dark .blocks-app .upload-bg-image__uploader{border-right:1px solid var(--colorBorder)}.blocks-app #content_appearance_panel_form button.ant-btn:not(.ant-btn-primary):hover{border-color:#d9d9d9}.blocks-app .section-title-bull{color:var(--colorTextQuaternary)}.blocks-app .appearance-panel__content-styles{flex-direction:column;height:100%;min-height:0;display:flex}.blocks-app .appearance-panel__content-styles.ant-tabs{height:100%;min-height:0}.blocks-app .appearance-panel__content-styles .ant-tabs-content-holder,.blocks-app .appearance-panel__content-styles .ant-tabs-content,.blocks-app .appearance-panel__content-styles .ant-tabs-tabpane,.blocks-app .appearance-panel__content-styles .ant-tabs-tabpane-active,.blocks-app .appearance-panel__content-styles .email-settings__collapse-panel-content,.blocks-app .appearance-panel__content-styles .appearance-panel,.blocks-app .appearance-panel__content-styles .element-controls{min-height:0}.blocks-app .appearance-panel__content-styles .ant-tabs-content-holder,.blocks-app .appearance-panel__content-styles .ant-tabs-content,.blocks-app .appearance-panel__content-styles .ant-tabs-tabpane-active,.blocks-app .appearance-panel__content-styles .email-settings__collapse-panel-content,.blocks-app .appearance-panel__content-styles .appearance-panel{flex-direction:column;flex:1;display:flex}.blocks-app .appearance-panel__content-styles .ant-tabs-content-holder{overflow:hidden auto}.blocks-app .appearance-panel__content-styles .ant-tabs-content,.blocks-app .appearance-panel__content-styles .ant-tabs-tabpane-active{overflow:visible}.blocks-app .blocks-search{height:100%;min-height:0;overflow:visible}.blocks-app .blocks-search .ant-select-clear{right:30px}.blocks-app .blocks-search form{z-index:1;width:85%;padding:16px 0 0 24px;position:absolute;top:0;left:0}.blocks-app .blocks-search__form{display:none}.blocks-app .blocks-search__form.is_search{display:block}.blocks-app .blocks-search__divider-wrapper{z-index:1;margin-top:12px;position:relative}.blocks-app .blocks-search__divider{pointer-events:none;width:auto;height:20px;margin:24px 0 0;position:absolute;bottom:-20px;left:-24px;right:-13px}.blocks-app .blocks-search__type-wrapper{min-width:35%;min-height:0;padding:20px 24px 14px 0;overflow-y:auto}.blocks-app .blocks-search__type-wrapper ul{padding:0}.blocks-app .blocks-search__type-wrapper li{cursor:pointer;color:var(--colorTextSecondary);text-align:left;margin-bottom:12px;line-height:1.2;list-style:none}.blocks-app .blocks-search__type-wrapper li.active{color:var(--colorLink)}.blocks-app .blocks-search__type-wrapper li:hover{color:var(--colorLinkHover)}.blocks-app .blocks-search__result-wrapper{height:100%;min-height:0;margin-left:-24px;margin-right:-24px;padding-left:24px;display:flex;position:relative}.blocks-app .blocks-search__result-wrapper:after{content:"";background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);z-index:1;width:100%;height:20px;position:absolute;top:0;left:0}.blocks-app .blocks-search__result-wrapper.is_search:after{top:72px}.dark .blocks-app .blocks-search__result-wrapper:after{background:linear-gradient(180deg, var(--colorBgBase) -100%, transparent 50%)}.blocks-app .blocks-search__result-wrapper.is_search{flex:auto;min-width:0;margin-left:0;margin-right:-14px;padding-top:20px;padding-left:0;padding-right:6px;display:block;position:static;overflow:hidden auto}.blocks-app .blocks-search__blocks-wrapper{min-width:65%;min-height:0;padding-top:20px;padding-left:10px;padding-right:14px;overflow-y:scroll}.blocks-app .blocks-search__result-holder{opacity:0}.blocks-app .blocks-search__blocks-wrapper.is_search{box-sizing:border-box;width:100%;min-width:0;padding-top:0;padding-left:4px;padding-right:0}.blocks-app .blocks-search__result{margin-bottom:14px}.blocks-app .ant-dropdown .ant-dropdown-menu .blocks-search__result__menu-item{padding:9px}.blocks-app .blocks-search__result-header{z-index:2;justify-content:space-between;padding:4px 10px;font-size:13px;display:none;position:relative;box-shadow:0 5px 20px #00000012}.blocks-app .blocks-search__result-global-mark{z-index:10;pointer-events:none;position:absolute;top:1px;right:1px}.blocks-app .blocks-search__result-body{background:var(--colorBgElevated);border:1px solid var(--colorBorder);border-radius:calc(var(--borderRadiusSM) * 1px);text-align:center;cursor:grab;background-color:var(--controlTmpOutline);min-height:13px;padding:0;transition:all .3s cubic-bezier(.645,.045,.355,1);position:relative;overflow:hidden}.blocks-app .blocks-search__result-body:hover{border-color:var(--colorTextDisabled);cursor:grab!important}.blocks-app .blocks-search__result-body:active{cursor:grabbing}.blocks-app .blocks-search__result-body .blocks-search__result-html span{color:#bfbfbf}.blocks-app .blocks-search__result-body:after{content:"";z-index:1;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.blocks-app .blocks-search__result-html{transform-origin:0 0;text-align:left;min-width:660px;height:100%;overflow-x:visible}.blocks-app .blocks-search__result-html>table{margin:0 auto}.blocks-app .blocks-search__result-html table{border-collapse:initial}.blocks-app .blocks-search .em-dragging-element .blocks-search__result-body{background-color:var(--controlTmpOutline)}.blocks-app .blocks-search .em-ghost-element{border-radius:calc(var(--borderRadiusXL) * 1px);overflow:hidden;background-color:var(--colorBgContainer)!important}.blocks-app .email-pane .ant-tabs .blocks-search__result-divider.ant-divider-horizontal{width:100%;margin-left:0;margin-right:0}.blocks-app .blocks-search.is_search{display:flex}.blocks-app .blocks-search.is_search .blocks-search__type-wrapper{min-width:33%;padding-right:0}.blocks-app .block-search__preview{background-color:var(--colorBgContainer);border-radius:calc(var(--borderRadiusXL) * 1px);box-shadow:var(--boxShadow);opacity:0;border:1px solid #fff;width:668px;padding:3px;transition:opacity .3s,transform .3s;position:absolute;top:0;left:-15px;transform:translate(-99%)}.blocks-app .block-search__preview-title{color:var(--colorTextSecondary);padding:8px 15px;font-size:14px}.blocks-app .block-search__preview-content{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadiusLG) * 1px);overflow:hidden}.blocks-app .block-search__preview-content table{border-collapse:initial}.dark .blocks-app .block-search__preview{border-color:#4f4f4f}.blocks-app .email-pane__col-wrapper_reverse .block-search__preview{left:auto;right:-15px;transform:translate(99%)}.blocks-app .block-global-badge{color:var(--colorTextSecondary);pointer-events:auto;justify-content:center;align-items:center;line-height:0;display:inline-flex}.blocks-app .block-global-badge svg{display:block}.blocks-app .block-global-badge--tile{box-sizing:border-box;background-color:#ffffffb8;border-radius:6px;width:24px;min-width:24px;height:24px;min-height:24px;padding:0;box-shadow:0 1px 2px #0000001a}.blocks-app .block-global-badge--tile svg{flex-shrink:0}.blocks-app body.dark .block-global-badge--tile,.dark .blocks-app .block-global-badge--tile{color:#ffffffe0;background-color:#0000008c;box-shadow:0 1px 3px #00000059}.blocks-app .selected-element-panel__columns-settings__controls__field{background:var(--colorBgElevated);border:calc(var(--borderWidth) * 1px) solid var(--colorFillSecondaryDarken);transition:all .2s linear .2s}.blocks-app .selected-element-panel__columns-settings__controls__field:hover{border-color:var(--borderColorHover)}.blocks-app .selected-element-panel__columns-settings__controls__field:focus,.blocks-app .selected-element-panel__columns-settings__controls__field:focus-within{border-color:var(--colorPrimaryBorder);box-shadow:0 0 0 2px #0591ff1a}.blocks-app .selected-element-panel__columns-settings__controls__column.current .selected-element-panel__columns-settings__controls__field{background:var(--colorPrimaryBg);border-color:var(--colorPrimaryBorder)}.blocks-app .structures{margin-left:-3px;margin-right:-3px;overflow:visible}.blocks-app .structures__list{margin-bottom:-10px}.blocks-app .structures__item{box-sizing:border-box;cursor:grab;flex-direction:row;justify-content:center;align-items:center;width:100%;min-width:100%;height:50px;margin-bottom:20px;padding:0;display:flex}.blocks-app .structures__item:hover .structures__item-row{background:var(--colorFillTertiary);border:#0000;box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #00000017}.dark .blocks-app .structures__item:hover .structures__item-row{background:var(--colorBgSpotlight)}.blocks-app .structures__item-row{background:var(--colorFillSecondary);border-radius:calc(var(--borderRadius) * 1.2px);width:97%;height:100%;padding:6px 3px;transition:box-shadow .3s,border-color .3s,background-color .3s}.blocks-app .structures__item-col{border-radius:calc(var(--borderRadius) * 1px);border:1px solid var(--controlItemBgActiveHover);background:var(--controlItemBgActive);width:100%;height:100%}.dark .blocks-app .structures__item-col{border-color:var(--colorBgElevated);background:var(--colorFillTertiary)}.blocks-app .em-dragging-element .structures__item .structures__item-row{background-color:var(--controlTmpOutline);box-shadow:none}.dark .blocks-app .em-dragging-element .structures__item .structures__item-row{background:var(--controlTmpOutline)}.blocks-app .em-dragging-element .structures__item .structures__item-row .structures__item-col{opacity:0;border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .em-ghost-element{background-color:var(--colorBgContainer);border-radius:calc(var(--borderRadiusXL) * 1px)}.blocks-app .em-ghost-element .structures__item-col{opacity:1!important}.dark .blocks-app .em-ghost-element{background:var(--colorBgSpotlight)}@media (width<=1550px){.blocks-app .structures__item{margin-bottom:16px}.blocks-app .structures__item:last-child{margin-bottom:20px}}.blocks-app .atoms{overflow:visible}.blocks-app .atoms__list{margin-bottom:20px;transition:opacity .2s}.blocks-app .atoms__item{box-sizing:border-box;border-radius:calc(var(--borderRadius) * 1px);width:109px;height:70px;color:var(--colorTextSecondary);background:var(--colorFillSecondary);flex-direction:column;justify-content:center;align-items:center;padding:5px;display:flex;position:relative}.blocks-app .atoms__item.ant-card-hoverable{cursor:grab!important}.blocks-app .atoms__item:hover{border-color:var(--colorBgElevated)}.dark .blocks-app .atoms__item:hover{border-color:var(--colorTextDisabled);background:var(--colorBorder)}.blocks-app .atoms__item_inactive{opacity:.5;cursor:default}.blocks-app .atoms__item_inactive:hover{border-color:var(--colorBorder)}.blocks-app .atoms__item.ai:before{content:"AI";color:#fff;background-color:var(--colorInfo);text-align:center;border-radius:0 calc(var(--borderRadius) * 1px) 0 calc(var(--borderRadiusSM) * 1px);width:36px;padding:1px 5px;font-size:12px;line-height:1.2;display:inline-block;position:absolute;top:0;right:0}.blocks-app .atoms__item.amp:before{content:"AMP";color:#fff;background-color:var(--colorPrimary);text-align:center;border-radius:0 8px 0 5px;width:36px;padding:1px 5px;font-size:12px;line-height:1.2;display:inline-block;position:absolute;top:0;right:0}.blocks-app .atoms .anticon{color:var(--colorTextSecondary);font-size:28px}.blocks-app .atoms .em-dragging-element .atoms__item{background-color:var(--controlTmpOutline)}.blocks-app .atoms .em-ghost-element{background-color:var(--colorBgContainer)!important;border:1px solid var(--colorBorder)!important}.blocks-app .atoms .atom-title{color:var(--colorTextTertiary);text-align:center;font-size:13px;line-height:1}.blocks-app .discuss-wrapper{flex-direction:column;flex:1;height:100%;min-height:0;display:flex}.blocks-app .discuss-wrapper .ant-tabs-content-holder,.blocks-app .discuss-wrapper .ant-tabs-content,.blocks-app .discuss-wrapper .ant-tabs-tabpane,.blocks-app .discuss-wrapper .ant-tabs-tabpane-active{flex-direction:column;flex:1;min-height:0;display:flex}.blocks-app .discuss-wrapper .ant-tabs-tabpane-active{overflow:hidden}.blocks-app .discuss-wrapper .discuss-main{flex-direction:column;height:100%;min-height:0;display:flex;position:relative;overflow:hidden}.blocks-app .discuss-main>.comment-list{flex:auto;min-height:0;margin-bottom:24px;overflow:hidden auto}.blocks-app .discuss-main>form{flex-shrink:0}.blocks-app .discuss-main .ant-comment .ant-comment-content-author-name{color:var(--colorTextBase);font-weight:500;transition:color .3s;font-size:14px!important;line-height:1.4!important}.blocks-app .discuss-main .comment-item-noavatar .ant-comment-content-detail{margin-left:0}.blocks-app .discuss-main .ant-comment-content-detail p{white-space:normal;margin:0 0 16px;line-height:1.4}.blocks-app .discuss-main .ant-comment-content-detail :not(.ant-btn,.buttons-variants,.buttons-variants *){-webkit-user-select:text;user-select:text}.blocks-app .discuss-main .ant-dropdown-trigger{z-index:1;margin:-36px 0 -1px -24px;padding:36px 0 1px 24px;position:relative}.blocks-app .discuss-main .ant-comment-nested .ant-dropdown-trigger{margin-left:-18px;padding-left:18px}.blocks-app .discuss-main .ant-comment-inner{transition:all .5s}.blocks-app .discuss-main .ant-comment.active>.ant-comment-inner{background:#efdbff}.blocks-app .discuss-main .targetted-comment-item>.ant-comment-inner{background:var(--colorInfoBg);cursor:pointer}.blocks-app .discuss-main .ant-comment-actions{opacity:.6;margin-top:6px;transition:all .3s cubic-bezier(.645,.045,.355,1);display:none}.blocks-app .discuss-main .ant-form-item-control-input-content{margin-left:2px}.blocks-app .discuss-main .ant-tooltip-inner{text-align:center}.blocks-app .discuss-main .replyEditMode{opacity:.5;display:none}.blocks-app .discuss-main .icon-target{font-size:16px;transform:translateY(5%)}.blocks-app .discuss-main .comment-icon-target{border-radius:8px;margin-left:5px;padding:0 8px 2px}.blocks-app .discuss-main .comment-icon-target:hover{cursor:pointer}.blocks-app .discuss-main .ant-btn.ant-btn-primary.button-target.button-target_choose{background:var(--colorInfo)}.blocks-app .discuss-main .ant-space button{margin-right:0}.blocks-app .countdown-color .color-picker-input__picker-holder{z-index:auto;left:auto;right:-10px}.blocks-app .ant-picker-dropdown.ant-picker-dropdown-placement-bottomLeft{position:fixed}.blocks-app .email-pane .box-shadow-control .ant-collapse-content,.blocks-app .email-pane .border-control .ant-collapse-content,.blocks-app .box-shadow-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box,.blocks-app .border-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{overflow:visible}.blocks-app .selected-text-common-form__border-radio{position:relative}.blocks-app .selected-text-common-form__border-radio:after{content:"·";border:3px solid var(--colorPrimary);border-radius:50%;font-size:0;line-height:0;position:absolute;top:2px;right:2px}.blocks-app .selected-text-common-form__border-col{margin-top:22px;margin-bottom:10px}@media (width<=1840px){.blocks-app .selected-text-common-form__border-col{margin-top:0}}.blocks-app .selected-text-common-form__border-item.ant-form-item .ant-row{flex-direction:row;align-items:center}.blocks-app .selected-text-common-form__border-item.ant-form-item .ant-row .ant-col.ant-form-item-label{white-space:nowrap;padding-top:6px}.blocks-app .selected-text-common-form__padding-input{max-width:46px;margin-bottom:0}.blocks-app .selected-text-common-form__padding-input input{text-align:center;padding:4px 8px}.blocks-app .selected-text-common-form__padding-input .ant-input-number-focused input{text-align:left}.blocks-app .selected-text-common-form__button--active,.blocks-app .selected-text-common-form__button--active:focus{color:#40a9ff;border-color:#40a9ff}.blocks-app .selected-text-common-form__br-input{margin-bottom:10px}.blocks-app .selected-text-common-form__tooltip{margin-left:4px}.blocks-app .selected-text-common-form__icon-radius{width:16px;height:100%}.blocks-app .selected-text-common-form__block{margin-bottom:24px}.blocks-app .selected-text-common-form__button_style{padding-left:10px;padding-right:10px;transition:none}.blocks-app .selected-text-common-form__format-toolbar{flex-wrap:wrap;align-items:flex-start;gap:10px;display:flex}.blocks-app .selected-text-common-form__format-toolbar .ant-form-item{margin-bottom:0}.blocks-app .ant-app .bullet-type .ant-select-selector{padding-left:5px}.blocks-app .selected_text_common_form_mobile .ant-form-item{margin:0}.blocks-app .selected_text_common_form_mobile .ant-input-number-affix-wrapper{padding-inline-start:7px}.blocks-app .selected_text_common_form_mobile .ant-select-single:not(.ant-select-customize-input) .ant-select-selector,.blocks-app .selected_text_common_form_mobile .ant-input-number-group .ant-input-number-group-addon{padding:0 7px}.blocks-app .selected_text_common_form_mobile .ant-input-number .ant-input-number-handler-wrap{width:16px}.blocks-app .selected_text_common_form_mobile .ant-select .ant-select-arrow{inset-inline-end:7px;font-size:10px!important}.blocks-app .selected_text_common_form_mobile .ant-divider-vertical{height:46px;top:0}.blocks-app .selected_text_common_form_mobile .selected_text_common_form_mobile__group{padding:6px 0}.blocks-app .selected_text_common_form_mobile .selected-td-form__button{background:var(--colorFillSecondary);width:34px;height:34px;border:1px solid #0000!important}.blocks-app .selected_text_common_form_mobile .ant-btn-default:not(:disabled,.ant-btn-disabled,.email-pane__content-col .selected-td-form__button--active):hover{background:var(--colorFillSecondaryDarken);color:inherit;border-color:#0000}.blocks-app .selected_text_common_form_mobile .selected-td-form__button--active{background:var(--colorPrimaryBg);color:var(--colorPrimary);border-color:#0000}.blocks-app .selected_text_common_form_mobile .selected-td-form__button--active:hover{background:var(--colorPrimaryBgHover)!important;color:var(--colorPrimaryTextHover)!important}.blocks-app .selected_text_common_form_mobile .color-picker-input{width:34px;height:34px}.blocks-app .selected_text_common_form_mobile .color-picker-input .ant-input-affix-wrapper{display:none}.blocks-app .selected_text_common_form_mobile .color-picker-input__control-wrap .ant-color-picker-trigger{border:1px solid var(--colorFillSecondaryDarken);width:34px;height:34px;top:0;left:0}.blocks-app .selected_text_common_form_mobile .ant-radio-button-wrapper{background:var(--colorFillSecondary);height:34px;padding:0 9px;border:1px solid #0000!important}.blocks-app .selected_text_common_form_mobile .ant-radio-button-wrapper:not(.ant-radio-button-wrapper-checked):hover{color:inherit;background:var(--colorFillSecondaryDarken)}.blocks-app .selected_text_common_form_mobile .ant-radio-button-wrapper.ant-radio-button-wrapper-checked{background:var(--colorPrimaryBg);color:var(--colorPrimary)}.blocks-app .selected_text_common_form_mobile .ant-radio-button-wrapper.ant-radio-button-wrapper-checked:hover{background:var(--colorPrimaryBgHover);color:var(--colorPrimaryTextHover)}.blocks-app .selected_text_common_form_mobile .codemode-textalign-dropdown{background-color:var(--colorBgContainer);border-radius:calc(var(--borderRadius) * 1px);box-shadow:var(--boxShadowSecondary);padding:6px}.blocks-app .selected_element_vindent_values{font-size:12px}.blocks-app .selected_element_vindent_values span{cursor:pointer;margin-right:10px}.blocks-app .selected_element_vindent_values span:hover{color:#40a9ff}.blocks-app .selected-td-form__border-side-wrapper{display:inline-flex;position:relative}.blocks-app .selected-td-form__border-side-wrapper label{border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .selected-td-form__border-side-wrapper:hover .selected-td-form__border-side-clear{opacity:1}.blocks-app .selected-td-form__border-side-clear{z-index:1;opacity:0;cursor:pointer;color:var(--colorTextSecondary);background-color:var(--colorBgLayout);border-radius:50%;width:20px;height:20px;transition:opacity .15s;position:absolute;top:-6px;right:-4px}.blocks-app .selected-td-form__border-side-clear:hover{color:var(--colorError)}.blocks-app .selected-td-form__border-radio:after{content:"·";border:3px solid var(--colorPrimary);border-radius:50%;font-size:0;line-height:0;position:absolute;top:2px;right:2px}@media (width<=1840px){.blocks-app .selected-td-form__border-col{margin-top:0}}.blocks-app .selected-td-form__border-item.ant-form-item .ant-row{flex-direction:row;align-items:center}.blocks-app .selected-td-form__border-item.ant-form-item .ant-row .ant-col.ant-form-item-label{white-space:nowrap;padding-top:6px}.blocks-app .selected-td-form__padding-input input{text-align:center;padding:4px 8px}.blocks-app .selected-td-form__padding-input .ant-input-number-focused input{text-align:left}.blocks-app .selected-td-form__button--active,.blocks-app .selected-td-form__button--active:focus{color:#40a9ff;border-color:#40a9ff}.blocks-app .selected-td-form__tooltip{margin-left:4px}.blocks-app .selected-td-form__icon-radius{flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}.blocks-app .selected-td-form__button_style{padding-left:10px;padding-right:10px;transition:none}.blocks-app .selected-td-form__border-radio{position:relative}.blocks-app .selected-td-form__border-radio:after{content:"·";border:3px solid var(--colorPrimary);border-radius:50%;font-size:0;line-height:0;position:absolute;top:2px;left:2px;right:auto}.blocks-app .selected-td-form__border-col{margin-top:0;margin-bottom:0}@media (width<=1840px){.blocks-app .selected-td-form__border-col{margin-top:0}}.blocks-app .selected-td-form__border-item.ant-form-item .ant-col.ant-form-item-label{white-space:nowrap;padding-top:6px}.blocks-app .selected-td-form__padding-input{max-width:50px;margin-bottom:0}.blocks-app .selected-td-form__padding-input input{padding:4px 8px}.blocks-app .selected-td-form__br-input{margin-bottom:10px}.blocks-app .selected-td-form__tooltip{vertical-align:baseline;margin-left:4px}.blocks-app .selected-td-form__icon-radius{width:16px;height:100%}.blocks-app .selected-td-form__block{margin-bottom:24px}.blocks-app .carousel__slide{background-color:var(--colorFillQuaternary);border-radius:calc(var(--borderRadius) * 1px);margin-bottom:calc(var(--formItemMarginBottomXS) * 1px);border:calc(var(--borderWidth) * 1px) solid var(--colorFillSecondaryDarken);padding:10px}.blocks-app .email-pane .box-shadow-control .ant-collapse-content,.blocks-app .email-pane .border-control .ant-collapse-content,.blocks-app .box-shadow-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box,.blocks-app .border-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{overflow:visible}.blocks-app .selected-image-form__add-title{margin-top:-15px;margin-bottom:30px}.blocks-app .selected-image-form__add-title span{cursor:pointer}.blocks-app .selected-image-form__add-title span:hover{color:#40a9ff}.blocks-app .email-pane .box-shadow-control .ant-collapse-content,.blocks-app .email-pane .border-control .ant-collapse-content,.blocks-app .box-shadow-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box,.blocks-app .border-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{overflow:visible}.blocks-app .selected-social-form{box-sizing:border-box;min-width:0;padding:0 0 16px}.blocks-app .selected-social-form .selected-social-form__form{padding:0 0 8px}.blocks-app .selected-social-form .selected-social-form__align-block{margin-bottom:16px}.blocks-app .selected-social-form .selected-social-form__align-block .ant-form-item,.blocks-app .selected-social-form .selected-social-form__section{margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__section--bordered{border-top:1px solid var(--colorBorderSecondary,#f0f0f0);margin-top:16px;padding-top:16px}.blocks-app .selected-social-form .selected-social-form__section-title{color:var(--colorText,#000000e0);margin:0 0 16px;font-size:14px;font-weight:400;line-height:1.2}.blocks-app .selected-social-form .selected-social-form__field-row{margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__field-icon{color:var(--colorTextSecondary,#8c8c8c)}.blocks-app .selected-social-form .selected-social-form__input-full{width:100%}.blocks-app .selected-social-form .selected-social-form__items{flex-direction:column;gap:6px;margin-bottom:6px;display:flex}.blocks-app .selected-social-form .selected-social-form__card{border:1px solid var(--colorBorderSecondary,#f0f0f0);background:var(--colorFillTertiary,#f8f8f8);border-radius:6px;padding:12px;transition:border-color .15s,box-shadow .15s,opacity .15s}.blocks-app .selected-social-form .selected-social-form__card--dragging{opacity:.72}.blocks-app .selected-social-form .selected-social-form__card--drag-over{border-color:var(--colorPrimary);box-shadow:0 0 0 1px var(--colorPrimary)}.blocks-app .selected-social-form .selected-social-form__card-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-main{flex:auto;align-items:center;gap:8px;min-width:0;display:flex}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__drag-handle{width:24px;height:24px;color:var(--colorTextSecondary,#8c8c8c);cursor:grab;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;margin:0;padding:0;transition:color .15s,background-color .15s;display:inline-flex}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__drag-handle:hover{color:var(--colorText,#000000e0);background:var(--colorFillSecondary,#f0f0f0)}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__drag-handle:active{cursor:grabbing}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__drag-handle:focus-visible{outline:2px solid var(--colorPrimary);outline-offset:1px}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__drag-handle .anticon{font-size:14px;transform:rotate(90deg)}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-remove.ant-btn{box-sizing:border-box;aspect-ratio:1;width:24px;min-width:24px;max-width:24px;height:24px;min-height:24px;max-height:24px;color:var(--colorTextSecondary,#8c8c8c);background:0 0;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;padding:0;line-height:1;transition:color .15s,background-color .15s;display:inline-flex}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-remove.ant-btn .anticon{justify-content:center;align-items:center;line-height:0;display:inline-flex}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-remove.ant-btn svg{width:18px;height:18px;display:block}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-remove.ant-btn:hover{color:var(--colorText,#000000e0);background:var(--colorFillSecondary,#f0f0f0)}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-remove.ant-btn:focus-visible{outline:2px solid var(--colorPrimary);outline-offset:1px}.blocks-app .selected-social-form .selected-social-form__card-title{min-width:0;color:var(--colorText,#000000e0);flex:auto;font-size:14px;font-weight:300;line-height:1.2}.blocks-app .selected-social-form .selected-social-form__card-field.ant-row{margin-bottom:8px}.blocks-app .selected-social-form .selected-social-form__card-field.ant-row:last-child{margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__bg-color-row{width:100%;margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__bg-color-row .ant-col .ant-form-item{max-width:none;margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__bg-color-row .ant-form-item-control-input-content,.blocks-app .selected-social-form .selected-social-form__meta-block{width:100%}.blocks-app .selected-social-form .selected-social-form__meta-toggle-row{flex-wrap:wrap;align-items:center;display:flex}.blocks-app .selected-social-form .selected-social-form__meta-fields{flex-direction:column;gap:6px;width:100%;display:flex}.blocks-app .selected-social-form .selected-social-form__meta-fields .ant-form-item{margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__meta-fields .ant-form-item-control-input-content{width:100%}.blocks-app .selected-social-form .selected-social-form__platform-row{align-items:flex-start;gap:8px;width:100%;margin-bottom:8px;display:flex}.blocks-app .selected-social-form .selected-social-form__platform-field{flex:auto;min-width:0;margin-bottom:0!important}.blocks-app .selected-social-form .selected-social-form__platform-edit.ant-btn{box-sizing:border-box;width:calc(var(--formControlHeight) * 1px);min-width:calc(var(--formControlHeight) * 1px);max-width:calc(var(--formControlHeight) * 1px);height:calc(var(--formControlHeight) * 1px);min-height:calc(var(--formControlHeight) * 1px);max-height:calc(var(--formControlHeight) * 1px);line-height:calc((var(--formControlHeight) - 2) * 1px);color:var(--colorTextSecondary,#8c8c8c);border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex}.blocks-app .selected-social-form .selected-social-form__platform-edit.ant-btn.ant-btn-icon-only .ant-btn-icon{justify-content:center;align-items:center;width:100%;height:100%;line-height:0;display:inline-flex}.blocks-app .selected-social-form .selected-social-form__platform-edit.ant-btn.ant-btn-icon-only .ant-btn-icon svg{display:block}.blocks-app .selected-social-form .selected-social-form__platform-edit.ant-btn:hover{color:var(--colorText,#000000e0);background:var(--colorFillSecondary,#f0f0f0)}.blocks-app .selected-social-form .selected-social-form__platform-edit.ant-btn:focus-visible{outline:2px solid var(--colorPrimary);outline-offset:1px}.blocks-app .selected-social-form .selected-social-form__platform-select{width:100%}.blocks-app .selected-social-form .selected-social-form__platform-select.ant-select-single .ant-select-selector .ant-select-selection-item{align-self:center;align-items:center;line-height:1.2;display:flex}.blocks-app .selected-social-form .selected-social-form__platform-select .ant-select-arrow{color:var(--colorTextSecondary,#8c8c8c)}.blocks-app .selected-social-form .selected-social-form__platform-select .ant-select-arrow svg{width:16px;height:16px}.blocks-app .selected-social-form .selected-social-form__platform-option{align-items:center;gap:4px;min-width:0;line-height:1.2;display:flex}.blocks-app .selected-social-form .selected-social-form__platform-option img{flex-shrink:0;width:30px;height:30px;margin-left:-6px;display:block}.blocks-app .selected-social-form .selected-social-form__platform-option-text{white-space:nowrap;text-overflow:ellipsis;line-height:1.2;overflow:hidden}.blocks-app .selected-social-form .selected-social-form__add-bar{background:var(--colorFillTertiary,#f8f8f8);height:32px;color:var(--colorText,#000000e0);border-radius:6px;justify-content:center;align-items:center;gap:8px;margin-top:0;padding:8px 12px;font-size:14px;font-weight:300;line-height:1.2;display:flex}.blocks-app .selected-social-form .selected-social-form__add-bar:not(:disabled):hover{background:var(--colorFillSecondary,#f0f0f0);color:var(--colorText,#000000e0)}.blocks-app .selected-social-form__platform-dropdown .ant-select-item-option{align-items:center}.blocks-app .selected-social-form__platform-dropdown .ant-select-item-option-content{align-items:center;min-height:0;line-height:1.2;display:flex}.blocks-app .selected-social-form__platform-dropdown .selected-social-form__platform-option{gap:0}.blocks-app .selected-social-form__platform-dropdown .selected-social-form__platform-option img{width:30px;height:30px;margin-left:-6px}.blocks-app .selected-social-form .ant-input-affix-wrapper .ant-input-suffix{flex-shrink:0;align-items:center;display:inline-flex}.blocks-app .selected-social-form .ant-input-affix-wrapper .ant-input-clear-icon:not(.ant-input-clear-icon-hidden){color:var(--colorTextSecondary,#8c8c8c)}.blocks-app .selected-social-form .ant-input-affix-wrapper .ant-input-clear-icon:not(.ant-input-clear-icon-hidden) .anticon{vertical-align:0;justify-content:center;align-items:center;line-height:0;display:inline-flex}.blocks-app .selected-social-form .ant-input-affix-wrapper .ant-input-clear-icon:not(.ant-input-clear-icon-hidden) svg{width:16px;height:16px;display:block}.blocks-app .selected-social-form .ant-input-affix-wrapper .ant-input-clear-icon:not(.ant-input-clear-icon-hidden):hover{color:var(--colorText,#000000e0)}.blocks-app .ant-app .email-pane__content-col .selected-social-form .ant-form-item.selected-social-form__card-field{margin-bottom:8px}.blocks-app .ant-app .email-pane__content-col .selected-social-form .ant-form-item.selected-social-form__card-field:last-child{margin-bottom:0}.blocks-app .email-pane .selected-social-form form.selected-social-form__form.element-controls,.blocks-app .email-pane .email-pane__collapse-wrapper.mobile-properties .selected-social-form form.selected-social-form__form.element-controls{height:auto;max-height:none}.blocks-app .ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-header{padding:20px 0;font-size:14px}.blocks-app .ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding-left:0;padding-right:0}.blocks-app .ant-collapse.hidden-props .ant-alert{margin-bottom:24px}.blocks-app .selected_form-mobile-props{padding:24px 14px 0 24px}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .selected-element-panel-content.selected-element-panel__hidden{visibility:hidden;opacity:0;height:0}.blocks-app .email-properties__collapse-panel .selected-element-panel-content{height:100%}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .selected-element-panel-content{width:auto;box-shadow:var(--boxShadowSecondary);border-radius:calc(var(--borderRadius) * 1px);border:none;margin:0;padding:0 6px;transition:opacity .2s;position:absolute;top:-60px;left:50%;transform:translate(-50%)}.blocks-app .em-analytics__email-tab-properties,.blocks-app .em-analytics__email-tab-history{z-index:999;position:absolute}.blocks-app .em-analytics__email-tab-properties .email-pane__collapse-wrapper,.blocks-app .em-analytics__email-tab-history .email-pane__collapse-wrapper{z-index:999;box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #0000000f}.blocks-app .email-pane__col-wrapper_pinch .em-analytics__email-tab-properties .email-pane__collapse-wrapper,.blocks-app .email-pane__col-wrapper_pinch .em-analytics__email-tab-history .email-pane__collapse-wrapper{box-shadow:none}.blocks-app .selected-element-panel{height:100%;overflow:visible}.blocks-app .selected-element-panel button.selected-element-panel__extra-btn,.blocks-app .selected-element-panel__extra-btn button{height:24px;padding:0 7px}.blocks-app .selected-element-panel-content{position:relative}.blocks-app .selected-element-panel-content.column-settings-show_onecol{padding-top:75px}.blocks-app .selected-element-panel__columns-settings{z-index:1;width:100%;position:relative}.blocks-app .selected-element-panel__columns-settings__header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px;display:flex}.blocks-app .selected-element-panel__columns-settings__header-title{color:var(--colorText);font-size:14px;line-height:1.5}.blocks-app .selected-element-panel__columns-settings__title{white-space:nowrap;text-overflow:ellipsis;margin-bottom:20px;font-size:16px;font-weight:500;line-height:20px;overflow:hidden}.blocks-app .selected-element-panel__columns-settings__links{white-space:nowrap;justify-content:flex-end;align-items:center;gap:8px;margin-left:auto;font-size:14px;display:flex}.blocks-app .selected-element-panel__columns-settings__links span{color:var(--colorLink);cursor:pointer}.blocks-app .selected-element-panel__columns-settings__links span:hover{color:#40a9ff}.blocks-app .selected-element-panel__columns-settings__links__add{align-items:center;gap:4px;display:inline-flex}.blocks-app .selected-element-panel__columns-settings__links__add.noactive,.blocks-app .selected-element-panel__columns-settings__links__add.noactive span{color:#00000073;cursor:not-allowed}.blocks-app .selected-element-panel__columns-settings__controls{align-items:center;gap:8px;display:flex}.blocks-app .selected-element-panel__columns-settings__controls__column{align-items:center;min-width:40px;display:flex;position:relative}.blocks-app .selected-element-panel__columns-settings__controls__column:first-child .selected-element-panel__columns-settings__controls__divider{visibility:hidden}.blocks-app .selected-element-panel__columns-settings__controls__column__remove{text-align:center;box-sizing:border-box;cursor:pointer;z-index:1;color:#000000d9;background-color:#fff;border-radius:50%;width:25px;height:25px;padding-top:2px;font-size:14px;display:none;position:absolute;top:-11px;left:-10px;box-shadow:0 0 7px -2px #00000059}.blocks-app .selected-element-panel__columns-settings__controls__column__remove:hover{box-shadow:0 0 7px -2px #000000b3}.blocks-app .selected-element-panel__columns-settings__controls__column:hover .selected-element-panel__columns-settings__controls__column__remove{display:block}.blocks-app .selected-element-panel__columns-settings__controls__field{text-align:center;border-radius:6px;width:100%;height:45px}.blocks-app .selected-element-panel__columns-settings__controls__field .ant-input-number{background:0 0;border:none}.blocks-app .selected-element-panel__columns-settings__controls__field .ant-input-number .ant-input-number-input{text-align:center;height:43px}.blocks-app .selected-element-panel__columns-settings__controls__divider{cursor:w-resize}.blocks-app .selected-element-panel__columns-settings__divider-wrapper{display:none}.blocks-app .selected-element-panel .selected-element-panel__columns-settings__divider-wrapper{display:block;position:relative}.blocks-app .selected-element-panel .selected-element-panel__columns-settings__divider{width:calc(100% + 80px);height:20px;margin:24px -40px 0;position:absolute;bottom:-20px}.blocks-app .selected-element-panel__content_abs{border:1px solid var(--colorBorder);z-index:100;background-color:var(--colorBgContainer);border-top:none;border-radius:0 0 8px 8px;width:100%;max-width:1400px;min-height:15px;margin-bottom:15px;transition:all .5s;display:flex;position:sticky;top:0;left:0}.blocks-app .selected-element-panel__mobile-switch{background-color:var(--colorPrimary)}.blocks-app .selected-element-panel__mobile-switch.ant-switch-checked{background-color:var(--colorInfo)}.blocks-app #selected_element_form_desktop_props .ant-alert-info .ant-alert-message{color:var(--colorInfoText)}.blocks-app .ant-app .selected_form-mobile-switch{margin-bottom:20px;font-size:16px;font-weight:500}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number:focus,.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-focused,.blocks-app .ant-app .selected_form-mobile-props .ant-input:focus,.blocks-app .ant-app .selected_form-mobile-props .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector,.blocks-app .ant-app .selected_form-mobile-props .ant-input-affix-wrapper:focus,.blocks-app .ant-app .selected_form-mobile-props .ant-input-affix-wrapper-focused{border-color:var(--colorInfo);box-shadow:var(--colorInfoBg) 0 0 0 2px!important}.blocks-app .ant-app .selected_form-mobile-props .ant-select:not(.ant-select-disabled):hover .ant-select-selector{border-color:var(--colorInfo)}.blocks-app .ant-app .selected_form-mobile-props .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:#edd3ed}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within{box-shadow:var(--colorInfoBg) 0 0 0 2px!important}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-group-addon:last-child,.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within>.ant-input-number:first-child{border-color:var(--colorInfo)}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-affix-wrapper:not(:last-child){border-right-color:var(--colorFillSecondaryDarken)}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group-addon .ant-select-open .ant-select-selector,.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group-addon .ant-select-focused .ant-select-selector,.blocks-app .ant-app .selected_form-mobile-props .ant-radio-button-wrapper:hover,.blocks-app .ant-app .selected_form-mobile-props .ant-collapse>.ant-collapse-item>.ant-collapse-header:hover{color:var(--colorInfo)}.blocks-app .ant-app .selected_form-mobile-props .ant-btn-background-ghost.ant-btn-primary{color:var(--colorInfo);border-color:var(--colorInfo)}.blocks-app .ant-app .selected_form-mobile-props .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child,.blocks-app .ant-app .selected_form-mobile-props .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),.blocks-app .ant-app .selected_form-mobile-props .selected-td-form__button--active{background-color:var(--colorInfoBg)!important;color:var(--colorInfoText)!important}.blocks-app .ant-app .selected_form-mobile-props .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):before,.blocks-app .ant-app .selected_form-mobile-props .ant-switch-checked{background-color:var(--colorInfoTextActive)}.blocks-app .ant-app .selected_form-mobile-props .ant-switch.ant-switch-checked:hover:not(.ant-switch-disabled){background-color:var(--colorInfoHover)}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-handler:hover .ant-input-number-handler-up-inner,.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-handler:hover .ant-input-number-handler-down-inner{color:var(--colorInfo)}.blocks-app .ant-app .selected_form-mobile-props .ant-alert-info{background-color:var(--colorInfoBg);border:none}.blocks-app .ant-app .selected_form-mobile-props .ant-alert-info .ant-alert-message{color:var(--colorInfoText)}.blocks-app .selected-element-panel__extra-btn-container{position:absolute;top:13px;right:50px}.blocks-app .selected-element-panel__extra-btn-container .ant-btn-text:disabled{color:var(--colorTextQuaternary)}.blocks-app .email-properties__collapse .ant-tabs-content>.ant-tabs-tabpane{height:100%}.blocks-app .ant-app .columns-presets{width:100%;margin-bottom:calc(var(--formItemMarginBottomMD) * 1px);align-items:center;gap:7px;display:flex}.blocks-app .ant-app .columns-presets .ant-btn{flex:1;min-width:0;padding:7px 9px;line-height:1!important}.blocks-app .email-pane__collapse-wrapper .ant-modal-close{width:24px;height:24px;font-size:16px}.blocks-app .email-pane__collapse-wrapper .ant-modal-close .anticon{line-height:0}.blocks-app .modal-select-role__cards-grid{grid-gap:20px;grid-template-columns:repeat(auto-fit,322px);padding:10px 24px 24px;display:grid}.blocks-app .modal-select-role .element-card__select-role{cursor:pointer;height:300px}.blocks-app .modal-select-role .element-card__select-role img{cursor:pointer;background-color:#fff;width:100%}.blocks-app .modal-select-role .element-card__select-role .ant-card-body{height:50px}.blocks-app .modal-select-role__title-wrapper{display:inline-block}.blocks-app .ai-response-paragraph{margin-bottom:16px}.blocks-app .em-analytics__email-tab-discuss{overflow:auto!important}.blocks-app .discuss-ai-wrapper{flex-direction:column;flex:1;height:100%;min-height:0;display:flex}.blocks-app .discuss-ai-wrapper .ant-tabs-content-holder,.blocks-app .discuss-ai-wrapper .ant-tabs-content,.blocks-app .discuss-ai-wrapper .ant-tabs-tabpane,.blocks-app .discuss-ai-wrapper .ant-tabs-tabpane-active{flex-direction:column;flex:1;min-height:0;display:flex}.blocks-app .discuss-ai-wrapper .ant-tabs-content{overflow:hidden auto}.blocks-app .discuss-ai-wrapper .discuss-main{min-height:0}.blocks-app .ant-tabs-content .discuss-ai{background-color:#fafafa;border:1px solid #f1ebeb;border-radius:8px;margin:0 0 20px;padding:24px 36px 0}.dark .blocks-app .ant-tabs-content .discuss-ai{background-color:#181818;border-color:#262626}.blocks-app .discuss-main{margin:0}.blocks-app .discuss-main__form{position:relative}.blocks-app .discuss-main__buttons{justify-content:space-between;display:flex}.blocks-app .discuss-main .ant-comment-actions{margin-top:6px}.blocks-app .discuss-main>.comment-list{margin-bottom:40px}.blocks-app .discuss-main>form{padding-bottom:20px}.blocks-app .discuss-main .ant-comment-actions{opacity:.6;transition:all .3s cubic-bezier(.645,.045,.355,1)}.blocks-app .discuss-main .ant-comment-content:hover .ant-comment-actions{opacity:1}.blocks-app .discuss-main .replyEditMode{opacity:.5}.blocks-app .modal-select-role{max-height:1400px}.blocks-app .modal-select-role .element-card.element-card_select-role .ant-card-cover{border:none;height:auto}.blocks-app .modal-select-role .element-card .ant-card-body{height:auto}.blocks-app .modal-select-role__cards-grid{grid-gap:20px;grid-template-columns:repeat(3,260px);width:auto;padding:10px 24px 24px;display:grid}.blocks-app .modal-select-role .element-card_select-role{cursor:pointer}.blocks-app .modal-select-role .element-card_select-role img,.blocks-app .modal-select-role .element-card__no-img{background-color:#fff}@media (width<=1200px){.blocks-app .modal-select-role__cards-grid{grid-template-columns:repeat(4,240px);width:auto}.blocks-app .modal-select-role .element-card__title{font-size:15px}}.blocks-app .ant-comment .ant-comment-avatar{cursor:auto}.blocks-app .ant-comment .ant-comment-avatar .anticon-robot{background:var(--colorInfo)}.blocks-app .ant-comment .ant-comment-avatar .anticon-user{background:var(--colorPrimary)}.blocks-app .ant-comment.ai-comment .ant-comment-avatar .anticon-robot{background:var(--colorInfo)}.blocks-app .ant-comment.ai-comment .ant-comment-avatar .anticon-user{background:var(--colorPrimary)}.blocks-app .ant-comment.ai-comment .ai-guide__example{border-left:1px solid #3b91ff;padding-left:15px;font-style:italic}.blocks-app .ant-comment.ai-comment .ai-guide__example strong{font-weight:500}.blocks-app .ant-comment-content-detail{margin-top:16px;margin-left:-30px}.blocks-app .ant-comment-content-detail p{white-space:normal;margin:16px 0;line-height:1.4}.blocks-app .ant-comment-content-detail ul{margin:16px 0}.blocks-app .ant-comment-content-detail .buttons-variants{white-space:normal;margin-left:0;padding-left:0}.blocks-app body.dark .ant-comment-content-detail .buttons-variants .ant-btn-default:hover{background:#e6f7ff}.blocks-app .ant-comment-content-detail .buttons-variants li{white-space:normal;margin-bottom:4px}.blocks-app .ant-comment-content-detail .buttons-variants .ant-btn.ant-btn-sm{text-align:left;height:auto;padding:4px 7px;line-height:1.4}.blocks-app .ant-comment-content-detail .ai-response-variant{margin:15px 0}.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-title,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-preheader,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-copy{cursor:pointer;background-color:#1890ff33;border-radius:4px;margin:4px 0;padding:3px 8px;line-height:1.4;transition:all .3s;display:block}.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-title:hover,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-preheader:hover,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-copy:hover{color:#000}.blocks-app body.dark .ant-comment-content-detail .ai-response-variant .ai-response-title:hover,.blocks-app body.dark .ant-comment-content-detail .ai-response-variant .ai-response-preheader:hover,.blocks-app body.dark .ant-comment-content-detail .ai-response-variant .ai-response-copy:hover{color:#fff}.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-title:hover,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-preheader:hover,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-copy:hover{background-color:#1890ff55}.blocks-app #email_iframe{vertical-align:top;background-color:#f8f8f8;border:0;width:1px;min-width:100%}.blocks-app .iframe-provider+#email_iframe{pointer-events:none}.blocks-app .iframe-provider{width:100%;height:100%;position:absolute;top:0;left:0}.blocks-app .anticon-history{transform:scaleX(-1)}.blocks-app .history-panel{border-right:1px solid var(--colorBorder);flex-direction:column;justify-content:space-between;height:100%;display:flex;box-shadow:-12px 0 48px 16px #00000008,-9px 0 28px #0000000d,-6px 0 16px -8px #00000014}.blocks-app .history-panel__sider{z-index:11;background:var(--colorBgContainer);height:100%;position:absolute;top:0;bottom:0;left:80px}.blocks-app .history-panel__list-header,.blocks-app .history-panel__header{justify-content:space-between;align-items:center;padding:0 24px 9px;font-weight:500;display:flex}.blocks-app .history-panel__list-header :last-child{min-width:60px}.blocks-app .history-panel__header{padding-left:24px;padding-right:24px}.blocks-app .history-panel__list-header:before{background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);border-top:1px solid var(--colorBorderSecondary);content:"";z-index:1;background-position:0 -2px;background-repeat:no-repeat;border-bottom:none;height:20px;position:absolute;inset:30px 0 -20px}.dark .blocks-app .history-panel__list-header:before{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.blocks-app .history-panel__header-title{font-size:14px;font-style:normal;line-height:24px}.blocks-app body.dark .history-panel__header-title{color:#fff}.blocks-app .history-panel__header-close{color:#00000073;margin-right:-16px}.blocks-app body.dark .history-panel__header-close{color:#fff}.blocks-app .history-panel__list{height:100%;margin:10px -24px 0}.blocks-app .history-panel__list .ant-list-header{border:none;margin-bottom:5px;padding:0;font-weight:500}.blocks-app .history-panel__list .ant-spin-nested-loading,.blocks-app .history-panel__list .ant-spin-container{height:100%}.blocks-app .history-panel__list .ant-list-items{height:calc(100% - 30px);overflow:auto}.blocks-app .history-panel__list .ant-list-item{cursor:pointer;border:none;padding:9px 24px}.blocks-app .history-panel__list .ant-list-item:hover{background-color:var(--colorFillQuaternary)}.blocks-app .history-panel__list .ant-btn.ant-btn-sm{border:none;height:22px;line-height:1;padding:0!important}.blocks-app .history-panel .ant-list-item{padding:9px 0}.blocks-app .history-panel__list-date,.blocks-app .history-panel__list-header .history-panel__list-date{min-width:130px}.blocks-app .history-panel__list-author{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.blocks-app .history-panel__restore{opacity:0;visibility:hidden}.blocks-app .history-panel__item_active{background-color:var(--colorFillSecondary)}.blocks-app body.dark .history-panel__item_active{background:#111b26}.blocks-app .history-panel__item_active .history-panel__restore{opacity:1;visibility:visible}.blocks-app .ant-layout-sider.history-panel__sider .ant-layout-sider-children{opacity:1;width:500px;height:100%;transition:opacity .5s;position:absolute;right:0}.blocks-app .ant-layout-sider-collapsed.history-panel__sider .ant-layout-sider-children{opacity:0}.blocks-app .optimise-wrapper{flex-direction:column;flex:1;height:100%;min-height:0;display:flex}.blocks-app .optimise-wrapper .ant-tabs-content-holder,.blocks-app .optimise-wrapper .ant-tabs-content,.blocks-app .optimise-wrapper .ant-tabs-tabpane,.blocks-app .optimise-wrapper .ant-tabs-tabpane-active{flex-direction:column;flex:1;min-height:0;display:flex}.blocks-app .optimise-wrapper .ant-tabs-content{overflow:hidden auto}.blocks-app .optimise{background:0 0;border:none;min-height:0}.blocks-app .optimise.ant-collapse>.ant-collapse-item:last-child{border-bottom:none!important}.blocks-app .optimise .ant-list-item-meta-title{-webkit-user-select:text;user-select:text}.blocks-app .optimise__summary{justify-content:space-between;width:100%;display:flex}.blocks-app .optimise__summary>div:not(:last-child){margin-right:10px}.blocks-app .optimise__summary h4{line-height:1}.blocks-app .optimise .ant-divider.ant-divider-horizontal{border-top:1px solid var(--colorBorderSecondary);background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);width:calc(100% + 50px);margin:26px -25px}.blocks-app .optimise.ant-collapse>.ant-collapse-item{border-bottom:1px solid var(--colorBorderSecondary)}.blocks-app .optimise.ant-collapse>.ant-collapse-item .ant-collapse-header{padding:12px 0 12px 24px}.blocks-app .optimise.ant-collapse>.ant-collapse-item .ant-collapse-content{border-top:none}.blocks-app .optimise.ant-collapse>.ant-collapse-item .ant-collapse-content-box{padding:24px 14px 12px 24px;overflow-y:hidden;padding-top:0!important;padding-right:24px!important}.blocks-app .optimise .valid{white-space:nowrap;color:var(--colorSuccessText)}.blocks-app .optimise .error{white-space:nowrap;color:var(--colorErrorText)}.blocks-app .optimise .warning{white-space:nowrap;color:var(--colorWarningText)}.blocks-app .optimise__title-wrapper{justify-content:space-between;align-items:flex-start;width:100%;display:flex}.blocks-app .optimise__title-wrapper h5{width:70%}.blocks-app .optimise__link{-webkit-user-select:text;user-select:text}.blocks-app .optimise__link:hover{color:var(--colorLinkHover)!important}.blocks-app .email-pane .optimise .ant-collapse-content{height:calc(100% - 184px)}.blocks-app .optimise__image-item .image-item__meta_fail .ant-list-item-meta-avatar{background:linear-gradient(45deg, var(--colorBorder) 25%, transparent 0, transparent 75%, var(--colorBorder) 0), linear-gradient(45deg, var(--colorBorder) 25%, transparent 0, transparent 75%, var(--colorBorder) 0);background-position:0 0,4px 4px;background-size:8px 8px;border-radius:6px}.blocks-app .optimise__image-item .image-item__meta.ant-list-item-meta{align-items:stretch}.blocks-app .optimise__image-item .image-item__image{cursor:pointer;object-fit:contain;border-radius:calc(var(--borderRadius) * 1px);background:linear-gradient(45deg, var(--colorBorder) 25%, transparent 0, transparent 75%, var(--colorBorder) 0), linear-gradient(45deg, var(--colorBorder) 25%, transparent 0, transparent 75%, var(--colorBorder) 0);background-position:0 0,4px 4px;background-size:8px 8px}.blocks-app .optimise__image-item .image-item__image+.ant-image-mask{border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .optimise__image-item .image-item__image_fail{height:92px!important}.blocks-app .optimise .ant-list .ant-list-item .ant-list-item-meta .ant-list-item-meta-avatar{margin-inline-end:12px}.blocks-app .optimise .warnings{color:var(--colorWarningText)}.blocks-app .optimise .errors{color:var(--colorErrorText)}.blocks-app .optimise .valid{color:var(--colorSuccessText)}.blocks-app .optimise__button.warnings{border-color:var(--colorWarningBorder);background:var(--colorWarningBg)}.blocks-app .optimise__button.warnings:not(.ant-tag-checkable-checked):hover{border-color:var(--colorWarningBorderHover);color:var(--colorWarningTextHover);background:var(--colorWarningBgHover)}.blocks-app .optimise__button.warnings_active{color:#fff;background-color:var(--colorWarningActive);border-color:var(--colorWarningActive)}.blocks-app .optimise__button.errors{border-color:var(--colorErrorBorder);background:var(--colorErrorBg)}.blocks-app .optimise__button.errors:not(.ant-tag-checkable-checked):hover{border-color:var(--colorErrorBorderHover);color:var(--colorErrorTextHover);background:var(--colorErrorBgHover)}.blocks-app .optimise__button.errors_active{color:#fff;background-color:var(--colorErrorActive);border-color:var(--colorErrorActive)}.blocks-app .optimise__button.valid{border-color:var(--colorSuccessBorder);background:var(--colorSuccessBg)}.blocks-app .optimise__button.valid:not(.ant-tag-checkable-checked):hover{border-color:var(--colorSuccessBorderHover);color:var(--colorSuccessTextHover);background:var(--colorSuccessBgHover)}.blocks-app .optimise__button.valid_active{color:#fff;background-color:var(--colorSuccessActive);border-color:var(--colorSuccessActive)}.blocks-app .optimise .ant-alert-info{width:100%;margin-top:5px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__divider-no-margin.selected-td-form__divider{margin-top:0;margin-bottom:0}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-col.optimise__col-align-right{text-align:right}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-row.optimise__row-mb-24{margin-bottom:24px}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-row.optimise__row-mb-16{margin-bottom:16px}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-row.optimise__row-mb-14{margin-bottom:14px}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-row.optimise__row-mb-12{margin-bottom:12px}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-row.optimise__row-mb-8{margin-bottom:8px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__link-blue.ant-typography{color:#177ddc;text-decoration:underline}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-image.optimise__image-auto-height{height:auto}.blocks-app .ant-app .email-pane .ant-tabs .optimise__text-clickable.ant-typography{cursor:pointer}.blocks-app .ant-app .email-pane .ant-tabs .optimise__valid-title.ant-typography{margin:0;font-size:14px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__valid-title-space.ant-space{flex-wrap:wrap}.blocks-app .ant-app .email-pane .ant-tabs .optimise__alert-custom.ant-alert{width:100%;padding:14px 14px 10px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__summary-title.ant-typography{margin-bottom:0}.blocks-app .ant-app .email-pane .ant-tabs .optimise__summary-label{font-size:12px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__spam-score-title.ant-typography{margin:0}.blocks-app .ant-app .email-pane .ant-tabs .optimise__spam-score-value{margin-right:12px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__spam-score-text.ant-typography{margin-right:12px;font-size:20px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__spam-report-score.ant-typography{font-size:20px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__spam-report-description{margin-left:12px}.blocks-app .img-preview{background-color:var(--colorBgContainer);border-radius:calc(var(--borderRadiusXL) * 1px);box-shadow:var(--boxShadow);opacity:0;border:1px solid #fff;max-width:668px;padding:3px;transition:opacity .3s,transform .3s;position:absolute;top:0;left:-15px;transform:translate(-99%)}.blocks-app .img-preview-content{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadiusLG) * 1px);background:linear-gradient(45deg, var(--colorBorder) 25%, transparent 25%, transparent 75%, var(--colorBorder) 75%), linear-gradient(45deg, var(--colorBorder) 25%, transparent 25%, transparent 75%, var(--colorBorder) 75%);background-position:0 0,4px 4px;background-size:8px 8px;overflow:hidden}.blocks-app .img-preview-content table{border-collapse:initial}.dark .blocks-app .img-preview{border-color:#4f4f4f}.blocks-app .browser-extension-warning-modal__footer{justify-content:center;margin-top:24px;display:flex}.blocks-app .form-editor-calendar-panel.panel-form{height:100%;min-height:0;max-height:100%}.blocks-app .form-editor-calendar-panel .panel-form__body.form-editor-calendar-panel__body{-webkit-overflow-scrolling:touch;flex:1;min-width:0;min-height:0;overflow:hidden auto}.blocks-app .form-editor-calendar-panel .panel-form__body-content{box-sizing:border-box;min-height:0}.blocks-app .form-editor-calendar-panel__title{font-size:16px;font-weight:600}.blocks-app .form-editor-calendar-panel__inner{box-sizing:border-box;padding:16px 20px 32px}.blocks-app .form-editor-calendar.ant-form-vertical>.ant-form-item{margin-bottom:20px}.blocks-app .form-editor-calendar__label-with-info{align-items:center;gap:6px;display:inline-flex}.blocks-app .form-editor-calendar__info-icon{color:var(--colorTextSecondary);cursor:help;display:inline-flex}.blocks-app .form-editor-calendar__section-divider{margin:16px 0 20px}.blocks-app .form-editor-calendar__more-btn{margin-bottom:12px}.blocks-app .form-editor-calendar__expanded{flex-direction:column;gap:0;margin-top:8px;display:flex}.blocks-app .form-editor-calendar__expanded>.form-section:first-child>.form-section__header .form-section__title{padding-top:12px}.blocks-app .form-editor-calendar__section.form-section .form-section__body{padding-top:8px;padding-bottom:18px}.blocks-app .form-editor-calendar__bg-preview{align-items:center;gap:12px;margin-top:4px;padding-top:12px;display:flex}.blocks-app .form-editor-calendar__bg-chip{border-radius:calc(var(--borderRadius) * 1px);border:1px solid var(--colorBorderSecondary);justify-content:center;align-items:center;min-width:40px;height:36px;padding:0 10px;line-height:1;display:inline-flex}.blocks-app .form-editor-calendar__bg-chip--active{box-shadow:0 0 0 1px var(--colorPrimaryBg)}.blocks-app .form-editor-calendar__full-width{width:100%}.blocks-app .form-editor-calendar__typography-stack{flex-direction:column;gap:16px;display:flex}.blocks-app .form-editor-calendar .form-border-radius-inputs,.blocks-app .form-editor-calendar .em-form-border-inputs{margin-top:4px}.blocks-app .form-editor-dropdown-list-panel.panel-form{height:100%;min-height:0;max-height:100%}.blocks-app .form-editor-dropdown-list-panel .panel-form__body.form-editor-dropdown-list-panel__body{-webkit-overflow-scrolling:touch;flex:1;min-width:0;min-height:0;overflow:hidden auto}.blocks-app .form-editor-dropdown-list-panel .panel-form__body-content{box-sizing:border-box;min-height:0}.blocks-app .form-editor-dropdown-list-panel__title{font-size:16px;font-weight:600}.blocks-app .form-editor-dropdown-list-panel__inner{box-sizing:border-box;padding:16px 20px 32px}.blocks-app .form-editor-dropdown.ant-form-vertical>.ant-form-item{margin-bottom:20px}.blocks-app .form-editor-dropdown__section-divider{margin:16px 0 20px}.blocks-app .form-editor-dropdown__more-btn{margin-bottom:12px}.blocks-app .form-editor-dropdown__bg-preview{flex-direction:column;gap:8px;margin-top:4px;padding-top:8px;display:flex}.blocks-app .form-editor-dropdown__trigger-mock{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;justify-content:space-between;align-items:center;gap:8px;min-height:32px;padding:4px 11px;display:flex}.blocks-app .form-editor-dropdown__trigger-mock-text{min-width:0;color:var(--colorTextQuaternary,var(--colorTextSecondary));text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:12px;line-height:1.3;overflow:hidden}.blocks-app .form-editor-dropdown__trigger-mock-arrow{flex-shrink:0;align-items:center;line-height:0;display:inline-flex}.blocks-app .form-editor-dropdown__list-mock{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;flex-direction:column;gap:4px;padding:8px 10px;display:flex}.blocks-app .form-editor-dropdown__list-mock-item{color:var(--colorText);font-size:12px;line-height:1.4}.blocks-app .form-editor-dropdown__section.form-section .form-section__body{padding-top:8px;padding-bottom:18px}.blocks-app .form-editor-dropdown__expanded{flex-direction:column;gap:0;margin-top:8px;display:flex}.blocks-app .form-editor-dropdown__expanded>.form-section:first-child>.form-section__header .form-section__title{padding-top:12px}.blocks-app .form-editor-dropdown__full-width{width:100%}.blocks-app .form-editor-dropdown .form-border-radius-inputs,.blocks-app .form-editor-dropdown .em-form-border-inputs{margin-top:4px}.blocks-app .form-editor-radio-panel.panel-form{height:100%;min-height:0;max-height:100%}.blocks-app .form-editor-radio-panel .panel-form__body.form-editor-radio-panel__body{-webkit-overflow-scrolling:touch;flex:1;min-width:0;min-height:0;overflow:hidden auto}.blocks-app .form-editor-radio-panel .panel-form__body-content{box-sizing:border-box;min-height:0}.blocks-app .form-editor-radio-panel__title{font-size:16px;font-weight:600}.blocks-app .form-editor-radio-panel__inner{box-sizing:border-box;padding:16px 20px 32px}.blocks-app .form-editor-radio.ant-form-vertical>.ant-form-item{margin-bottom:20px}.blocks-app .form-editor-radio__default-radios.em-radio.ant-radio-group,.blocks-app .form-editor-radio__shape-radios.em-radio.ant-radio-group{flex-wrap:wrap;align-items:center;gap:8px 24px;display:flex}.blocks-app .form-editor-radio__icon-toggle-group.em-radio.ant-radio-group{flex-wrap:nowrap;gap:6px;display:flex}.blocks-app .form-editor-radio__icon-toggle-group .ant-radio-button-wrapper{justify-content:center;align-items:center;min-width:32px;padding-inline:10px;line-height:1;display:inline-flex}.blocks-app .form-editor-radio__inner-section-divider{margin:12px 0 16px}.blocks-app .form-editor-radio__position-block,.blocks-app .form-editor-radio__layout-form-item.ant-form-item,.blocks-app .form-editor-radio__align-form-item.ant-form-item{margin-bottom:0}.blocks-app .form-editor-radio__align-block{margin-top:16px}.blocks-app .form-editor-radio__section-divider{margin:16px 0 20px}.blocks-app .form-editor-radio__more-btn{margin-bottom:12px}.blocks-app .form-editor-radio__bg-preview{flex-direction:column;gap:8px;margin-top:4px;padding-top:8px;display:flex}.blocks-app .form-editor-radio__preview-panel{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;flex-direction:column;gap:6px;padding:10px;display:flex}.blocks-app .form-editor-radio__preview-row{border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;align-items:center;gap:10px;min-height:28px;padding:4px 8px;display:flex}.blocks-app .form-editor-radio__preview-dot{border:2px solid var(--colorBorderSecondary);box-sizing:border-box;border-radius:50%;flex-shrink:0;width:14px;height:14px}.blocks-app .form-editor-radio__preview-dot--selected{border-style:solid}.blocks-app .form-editor-radio__preview-label{color:var(--colorText);font-size:12px;line-height:1.3}.blocks-app .form-editor-radio__section.form-section .form-section__body{padding-top:8px;padding-bottom:18px}.blocks-app .form-editor-radio__expanded{flex-direction:column;gap:0;margin-top:8px;display:flex}.blocks-app .form-editor-radio__expanded>.form-section:first-child>.form-section__header .form-section__title{padding-top:12px}.blocks-app .form-editor-radio__full-width{width:100%}.blocks-app .form-editor-radio__micro-label{color:var(--colorTextSecondary);margin-bottom:0;font-size:12px;line-height:1.2;display:block}.blocks-app .form-editor-radio .form-border-radius-inputs,.blocks-app .form-editor-radio .em-form-border-inputs{margin-top:4px}.blocks-app .form-editor-checkbox-panel.panel-form{height:100%;min-height:0;max-height:100%}.blocks-app .form-editor-checkbox-panel .panel-form__body.form-editor-checkbox-panel__body{-webkit-overflow-scrolling:touch;flex:1;min-width:0;min-height:0;overflow:hidden auto}.blocks-app .form-editor-checkbox-panel .panel-form__body-content{box-sizing:border-box;min-height:0}.blocks-app .form-editor-checkbox-panel__title{font-size:16px;font-weight:600}.blocks-app .form-editor-checkbox-panel__inner{box-sizing:border-box;padding:16px 20px 32px}.blocks-app .form-editor-checkbox.ant-form-vertical>.ant-form-item{margin-bottom:20px}.blocks-app .form-editor-checkbox__label-with-info{align-items:center;gap:6px;display:inline-flex}.blocks-app .form-editor-checkbox__info-icon{color:var(--colorTextSecondary);cursor:help;display:inline-flex}.blocks-app .form-editor-checkbox__default-radios.em-radio.ant-radio-group,.blocks-app .form-editor-checkbox__shape-radios.em-radio.ant-radio-group{flex-wrap:wrap;align-items:center;gap:8px 24px;display:flex}.blocks-app .form-editor-checkbox__icon-toggle-group.em-radio.ant-radio-group{flex-wrap:nowrap;gap:6px;display:flex}.blocks-app .form-editor-checkbox__icon-toggle-group .ant-radio-button-wrapper{justify-content:center;align-items:center;min-width:32px;padding-inline:10px;line-height:1;display:inline-flex}.blocks-app .form-editor-checkbox__inner-section-divider{margin:12px 0 16px}.blocks-app .form-editor-checkbox__align-form-item.ant-form-item{margin-bottom:0}.blocks-app .form-editor-checkbox__align-block{margin-top:16px}.blocks-app .form-editor-checkbox__align-columns{flex-wrap:wrap;align-items:flex-start;gap:16px 24px;display:flex}.blocks-app .form-editor-checkbox__align-column{flex:140px;min-width:108px}.blocks-app .form-editor-checkbox__section-divider{margin:16px 0 20px}.blocks-app .form-editor-checkbox__more-btn{margin-bottom:12px}.blocks-app .form-editor-checkbox__bg-preview{flex-direction:column;gap:8px;margin-top:4px;padding-top:8px;display:flex}.blocks-app .form-editor-checkbox__preview-panel{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;flex-direction:column;gap:6px;padding:10px;display:flex}.blocks-app .form-editor-checkbox__preview-row{box-sizing:border-box;align-items:center;gap:10px;min-height:28px;padding:4px 0;display:flex}.blocks-app .form-editor-checkbox__preview-checkbox{box-sizing:border-box;border-style:solid;border-width:2px;flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}.blocks-app .form-editor-checkbox__preview-checkbox--round{border-radius:50%}.blocks-app .form-editor-checkbox__preview-checkbox--square{border-radius:2px}.blocks-app .form-editor-checkbox__preview-label{color:var(--colorText);font-size:12px;line-height:1.3}.blocks-app .form-editor-checkbox__section.form-section .form-section__body{padding-top:8px;padding-bottom:18px}.blocks-app .form-editor-checkbox__expanded{flex-direction:column;gap:0;margin-top:8px;display:flex}.blocks-app .form-editor-checkbox__expanded>.form-section:first-child>.form-section__header .form-section__title{padding-top:12px}.blocks-app .form-editor-checkbox__full-width{width:100%}.blocks-app .form-editor-checkbox__micro-label{color:var(--colorTextSecondary);margin-bottom:0;font-size:12px;line-height:1.2;display:block}.blocks-app .form-editor-checkbox .form-border-radius-inputs,.blocks-app .form-editor-checkbox .em-form-border-inputs{margin-top:4px}.blocks-app .form-editor-input-panel.panel-form{height:100%;min-height:0;max-height:100%}.blocks-app .form-editor-input-panel .panel-form__body.form-editor-input-panel__body{-webkit-overflow-scrolling:touch;flex:1;min-width:0;min-height:0;overflow:hidden auto}.blocks-app .form-editor-input-panel .panel-form__body-content{box-sizing:border-box;min-height:0}.blocks-app .form-editor-input-panel__title{font-size:16px;font-weight:600}.blocks-app .form-editor-input-panel__inner{box-sizing:border-box;padding:16px 20px 32px}.blocks-app .form-editor-input.ant-form-vertical>.ant-form-item{margin-bottom:20px}.blocks-app .form-editor-input__icon-toggle-group.em-radio.ant-radio-group{flex-wrap:nowrap;gap:6px;display:flex}.blocks-app .form-editor-input__icon-toggle-group .ant-radio-button-wrapper{justify-content:center;align-items:center;min-width:32px;padding-inline:10px;line-height:1;display:inline-flex}.blocks-app .form-editor-input__align-form-item.ant-form-item{margin-bottom:0}.blocks-app .form-editor-input__align-columns{flex-wrap:wrap;align-items:flex-start;gap:16px 24px;display:flex}.blocks-app .form-editor-input__align-column{flex:140px;min-width:108px}.blocks-app .form-editor-input__section-divider{margin:16px 0 20px}.blocks-app .form-editor-input__more-btn{margin-bottom:12px}.blocks-app .form-editor-input__bg-preview{margin-top:4px;padding-top:8px}.blocks-app .form-editor-input__preview-panel{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;padding:10px}.blocks-app .form-editor-input__preview-input{border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;text-align:left;border-style:solid;border-width:1px;width:100%;min-height:32px;padding:6px 11px;font-size:14px;line-height:1.4}.blocks-app .form-editor-input__preview-placeholder-bit{opacity:.65}.blocks-app .form-editor-input__section.form-section .form-section__body{padding-top:8px;padding-bottom:18px}.blocks-app .form-editor-input__expanded{flex-direction:column;gap:0;margin-top:8px;display:flex}.blocks-app .form-editor-input__expanded>.form-section:first-child>.form-section__header .form-section__title{padding-top:12px}.blocks-app .form-editor-input__full-width{width:100%}.blocks-app .form-editor-input .form-border-radius-inputs,.blocks-app .form-editor-input .em-form-border-inputs{margin-top:4px}.blocks-app .form-editor-input__padding-row{flex-wrap:wrap;align-items:flex-start;gap:8px;width:100%;display:flex}.blocks-app .form-editor-input__padding-field.ant-form-item{flex:120px;min-width:100px;max-width:calc(50% - 4px);margin-bottom:0}.blocks-app .form-editor-input__padding-link-btn{flex:0 0 32px;justify-content:center;align-items:center;width:32px;height:32px;padding:0;display:inline-flex}.blocks-app .form-editor-input__advanced-block{flex-direction:column;gap:8px;width:100%;display:flex}.blocks-app .form-editor-input__advanced-block+.form-editor-input__advanced-block{margin-top:16px}.blocks-app .form-editor-input__advanced-switch-row{align-items:center;gap:12px;width:100%;padding:6px 0;display:flex}.blocks-app .form-editor-input__advanced-switch-label{color:var(--colorText);flex:auto;min-width:0;margin:0;font-size:14px;line-height:1.3}.blocks-app .form-editor-input__advanced-description{margin:0;font-size:12px;line-height:1.35;display:block}.blocks-app .form-editor-input__visibility-row{flex-wrap:wrap;align-items:center;gap:12px 16px;width:100%;display:flex}.blocks-app .form-editor-input__visibility-form-item.ant-form-item,.blocks-app .form-editor-input__direction-form-item.ant-form-item{margin-bottom:0}.blocks-app .form-editor-input__visibility-segment.ant-radio-group,.blocks-app .form-editor-input__visibility-amp.ant-radio-group{flex-wrap:wrap;gap:6px;display:flex}.blocks-app .form-editor-input__visibility-segment .ant-radio-button-wrapper,.blocks-app .form-editor-input__visibility-amp .ant-radio-button-wrapper{justify-content:center;align-items:center;display:inline-flex}.blocks-app .email-pane{position:relative}.blocks-app .email-pane__loader{z-index:10;background-color:#fff6;width:100%;height:100%;position:fixed;top:0;left:0}.dark .blocks-app .email-pane__loader{background-color:#0006}.blocks-app .email-pane__paths{border-top:1px solid var(--colorBorder);z-index:10;background-color:var(--colorBgContainer);justify-content:space-between;align-items:center;width:100%;transition:all .5s;display:flex;position:sticky;bottom:0;left:0}.blocks-app .email-pane__paths>div{color:var(--colorTextTertiary);padding:3px 15px}.blocks-app .email-pane__paths .ant-breadcrumb{white-space:nowrap;overflow:auto hidden}.blocks-app .email-pane__paths .ant-breadcrumb ol{flex-wrap:nowrap;padding-right:10px}.blocks-app .email-pane__paths .ant-breadcrumb li{position:relative}.blocks-app .email-pane__paths .ant-breadcrumb li:hover>span{color:var(--colorPrimary)}.blocks-app .email-pane__paths .ant-breadcrumb li>span{color:var(--colorTextSecondary);cursor:pointer;padding:3px 15px;display:block}.blocks-app .email-pane__paths .ant-breadcrumb li>span span{align-items:center;gap:4px;display:flex}.blocks-app .email-pane__paths .ant-breadcrumb li:after{content:"";border-style:solid;border-width:15px 0 15px 10px;border-color:transparent transparent transparent var(--colorBgContainer);width:0;height:0;transition:all .5s;position:absolute;top:50%;right:-5px;transform:translateY(-50%)}.blocks-app .email-pane__paths .ant-breadcrumb li:before{content:"";border-style:solid;border-width:15px 0 15px 10px;border-color:transparent transparent transparent var(--colorBorder);width:0;height:0;transition:all .5s;position:absolute;top:50%;right:-6px;transform:translateY(-50%)}.blocks-app .email-pane__code-size{white-space:nowrap;margin-left:auto;padding:3px 15px;font-size:14px}.blocks-app .email-pane__code-size_exceeded{color:var(--colorError)}.blocks-app .email-pane .ant-btn-primary.mobile_view{background-color:var(--colorInfo)}.blocks-app .email-pane .ant-btn-primary.mobile_view:hover{background-color:var(--colorInfoHover)}.blocks-app .email-pane .ant-tabs .ant-tabs-tab-btn{transition:none}.blocks-app .email-pane .ant-tabs-extra-content{justify-content:center;align-items:center;display:flex}.blocks-app .email-pane .ant-tabs-extra-content .ant-segmented_editor-mode{margin-top:22px;transform:rotate(90deg)}.blocks-app .email-pane .ant-tabs-extra-content .ant-segmented_editor-mode .ant-segmented-item-label{min-height:40px;padding:0;line-height:40px}.blocks-app .email-pane .ant-tabs-extra-content .ant-segmented_editor-mode .ant-segmented-item-icon{width:28px;height:40px;display:inline-block;transform:rotate(-90deg)}.blocks-app .email-pane .ant-tabs-extra-content .ant-segmented_editor-mode .ant-segmented-item-icon .anticon{position:relative}.blocks-app .email-pane .email-pane_code-mode .email-pane__col-wrapper{transition:all .5s;padding-top:0!important}.blocks-app .blocks-plugin .email-pane .email-pane_code-mode .email-pane__resizable{padding-top:60px;transition:all .5s}.blocks-app .email-pane .email-pane_code-mode:not(.email-pane_is-mobile,.email-pane_code-mode-bottom) .email-pane__col-wrapper{padding-top:0!important}.blocks-app .email-pane .email-pane_code-mode:not(.email-pane_is-mobile,.email-pane_code-mode-bottom) .email-pane__left .email-pane__content-col_main{border-width:0;border-radius:0;margin-left:0;margin-right:0;border-top-width:0!important;border-bottom-width:0!important;border-right-width:0!important}.blocks-app .email-pane .email-pane_code-mode:not(.email-pane_is-mobile,.email-pane_code-mode-bottom) .email-pane__right .email-pane__content-col_main{border-width:0;border-radius:0;margin-left:0;margin-right:0;border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important}.blocks-app .blocks-plugin .email-pane .email-pane_code-mode:not(.email-pane_is-mobile,.email-pane_code-mode-bottom) .email-pane__resizable{max-width:calc(100% - 2px);margin-bottom:0;padding-top:0}.blocks-app .email-pane .selected-td-form__padding-input .ant-input-number-focused input{text-align:left}.blocks-app .email-pane .selected-td-form__padding-input input{text-align:center}.blocks-app .email-pane .email-pane__comment-counter{background-color:var(--colorInfo);color:var(--colorWhite);border:none}.blocks-app .email-pane .element-controls{width:100%;height:100%}.blocks-app .email-pane #selected_element_form_desktop_props{height:100%}.blocks-app .email-pane .ant-tabs .ant-divider-horizontal.selected-td-form__divider{border-top:1px solid var(--colorBorderSecondary);background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);width:calc(100% + 50px);margin:26px -23px}.dark .blocks-app .email-pane .ant-tabs .ant-divider-horizontal.selected-td-form__divider{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.blocks-app .email-pane .ant-tabs .element-controls .selected-td-form__divider{margin-top:0;margin-bottom:0}.blocks-app .email-pane .ant-tabs .blocks-search__divider{pointer-events:none;width:auto;height:20px;margin:24px 0 0;position:absolute;bottom:-20px;left:-24px;right:-13px}.blocks-app .email-pane .ant-tabs ::-webkit-scrollbar-thumb{box-shadow:inset 0 0 0 10px var(--colorFillSecondary)}.blocks-app .email-pane .ant-tabs ::-webkit-scrollbar-thumb:hover{box-shadow:inset 0 0 0 10px var(--colorFill)}.blocks-app .email-pane .ant-tabs .blocks-search__empty-shadow{height:100%;position:relative}.blocks-app .email-pane .ant-tabs .blocks-search__empty-shadow:after{content:"";background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);z-index:1;width:calc(100% + 48px);height:20px;margin-left:-24px;position:absolute;top:0;left:0}.blocks-app .email-pane .ant-tabs .blocks-search__empty-wrapper{height:calc(100% + 10px);margin:0 -24px;padding:24px 14px 0 24px;position:relative;overflow:scroll}.blocks-app .email-pane__container{scroll-behavior:smooth;min-height:100%;padding-top:0}.blocks-app .email-pane_code-mode .email-pane__container{overflow:unset;height:unset;padding-bottom:0;position:relative}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .email-pane__container>.selected-element-panel{z-index:101;pointer-events:none;height:0;position:absolute;inset:0 0 auto}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .email-pane__container>.selected-element-panel>div{pointer-events:auto}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .email-pane__container>.selected-element-panel .selected-element-panel-content.selected-element-panel__content_abs{width:fit-content;max-width:calc(100% - 24px);min-height:auto;display:block}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .email-pane__container>.selected-element-panel .selected-element-panel-content.selected-element-panel__content_abs form.element-controls{height:auto;min-height:auto}.blocks-app .email-pane__col-wrapper{flex-wrap:nowrap;gap:30px;display:flex;position:relative}.blocks-app .email-pane__col-wrapper .email-pane__col_settings{margin-top:30px}.blocks-app .email-pane__col-wrapper .email-pane__col_settings-inner{border-radius:8px;position:sticky;top:30px;left:0}.blocks-app .ant-app .email-pane__col-wrapper_reverse{flex-direction:row-reverse}.blocks-app .email-pane .email-pane__sizeSwitcher:not(.email-pane__pinch,.email-pane__right) .email-pane__col-wrapper{top:-114px}.blocks-app .email-pane_code-mode .email-pane__code-divider{opacity:0;cursor:ew-resize;background-color:var(--colorPrimary);width:5px;height:100%;transition:opacity .4s;position:absolute}.blocks-app .email-pane_code-mode .email-pane__code-divider:hover,.blocks-app .email-pane_code-mode .email-pane__code-divider:active{opacity:1;background-color:var(--colorPrimary)}.blocks-app .email-pane_code-mode.email-pane .email-pane__row:not(.email-pane__bottom,.email-pane__sizeSwitcher) .email-pane__content-col_main{border-radius:0;border:0 solid var(--colorBorder)!important;margin:0!important}.blocks-app .email-pane_code-mode.email-pane .email-pane__row:not(.email-pane__bottom,.email-pane__sizeSwitcher) [class^=device-width__] button{display:none}.blocks-app .email-pane_code-mode .email-pane__left{flex-direction:row}.blocks-app .email-pane_code-mode .email-pane__left>div:first-child{border-right:1px solid var(--colorBorder);overflow-y:auto!important}.blocks-app .email-pane_code-mode .email-pane__left .email-pane__handle.left{display:none}.blocks-app .email-pane_code-mode .email-pane__left .email-pane__code-divider{left:-2px}.blocks-app .email-pane_code-mode .email-pane__right{flex-direction:row-reverse}.blocks-app .email-pane_code-mode .email-pane__right>div:first-child{border-left:1px solid var(--colorBorder);overflow-y:auto!important}.blocks-app .email-pane_code-mode .email-pane__right .email-pane__handle.right{display:none}.blocks-app .email-pane_code-mode .email-pane__right .email-pane__code-divider{right:-2px}.blocks-app .email-pane_code-mode .email-pane__bottom{max-width:unset;flex-direction:column;margin:0}.blocks-app .email-pane_code-mode .email-pane__bottom .email-pane__col-wrapper{width:100%;margin:0 auto}.blocks-app .email-pane_code-mode .email-pane__bottom .email-pane__code-divider{opacity:0;cursor:ns-resize;z-index:10;width:100%;height:2px;top:-2px}.blocks-app .email-pane_code-mode .email-pane__bottom .email-pane__code-divider:hover,.blocks-app .email-pane_code-mode .email-pane__bottom .email-pane__code-divider:active{opacity:1;background-color:var(--colorPrimary)}.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper{gap:0;height:100%;padding-left:3px}.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper .email-pane__col.email-pane__col_preview{overflow-y:scroll;height:100%!important}@media (width<=1590px){.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper .email-pane__col.email-pane__col_preview{overflow-x:hidden}}.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper .ant-tabs-content-holder{border-radius:0}.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper.email-pane__col-wrapper_reverse .email-pane__col.email-pane__col_preview{padding-left:10px;padding-right:0}.blocks-app .email-pane__left .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper.email-pane__col-wrapper_reverse .email-pane__col.email-pane__col_preview{padding-left:65px;padding-right:0}.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper .ant-tabs-right>.ant-tabs-nav .ant-tabs-tab{height:53px;padding-top:6px;padding-left:6px;padding-right:6px}.blocks-app .email-pane .email-pane.email-pane_code-mode .email-pane__col-wrapper_reverse .email-pane__col.email-pane__col_preview{padding-right:0}.blocks-app .email-pane .email-pane.email-pane_code-mode .email-pane__col-wrapper_pinch.email-pane__col-wrapper{padding-left:0}.blocks-app .email-pane .email-pane__right.email-pane__sizeSwitcher .email-pane__col.email-pane__col_preview{padding-left:0;padding-right:35px;overflow:visible}.blocks-app .email-pane .email-pane__right.email-pane__sizeSwitcher .email-pane__col.email-pane__col_preview .email-pane__content-col.email-pane__content-col_main{border-width:1px}.blocks-app .email-pane .email-pane__left.email-pane__sizeSwitcher .email-pane__col.email-pane__col_preview{padding-left:65px!important;padding-right:0!important}.blocks-app .email-pane .email-pane__right .email-pane__col-wrapper_reverse .email-pane__col.email-pane__col_preview,.blocks-app .email-pane .email-pane__left.email-pane__sizeSwitcher .email-pane__col-wrapper_reverse .email-pane__col.email-pane__col_preview{padding-left:0!important;padding-right:0!important}.blocks-app .email-pane .email-pane__right:not(.email-pane__pinch) .email-pane__col-wrapper_pinch.email-pane__col-wrapper{padding-left:0;padding-right:65px}.blocks-app .email-pane .email-pane__right.email-pane__pinch.email-pane__sizeSwitcher .email-pane__col-wrapper_pinch.email-pane__col-wrapper{padding-left:0}.blocks-app .email-pane .email-pane__right.email-pane__pinch.email-pane__sizeSwitcher .email-pane__col-wrapper_pinch.email-pane__col-wrapper .email-pane__col_preview{padding-left:0;padding-right:65px}.blocks-app .email-pane .email-pane__reverse .email-pane__col-wrapper_pinch.email-pane__col-wrapper{padding-left:0}.blocks-app .email-pane .email-pane__sizeSwitcher .email-pane__col.email-pane__col_preview{padding-top:30px}.blocks-app .email-pane .email-pane__sizeSwitcher .email-pane__col-wrapper_pinch .email-pane__col.email-pane__col_preview{padding:60px 2px 0}.blocks-app .email-pane .email-pane__reverse.email-pane__sizeSwitcher .email-pane__col.email-pane__col_preview{padding-right:65px}.blocks-app .email-pane .email-pane.email-pane_code-mode .email-pane__right .email-pane__col.email-pane__col_preview,.blocks-app .email-pane .email-pane.email-pane_code-mode .email-pane__left .email-pane__col.email-pane__col_preview{padding-top:0}.blocks-app .email-pane .email-pane__right .email-pane__col_preview,.blocks-app .email-pane .email-pane__left .email-pane__col_preview{padding-left:0;padding-right:0}.blocks-app .email-pane .email-pane.email-pane_code-mode .email-pane__col-wrapper_pinch.email-pane__col-wrapper .email-pane__col.email-pane__col_preview{height:100%!important}.blocks-app .email-pane .email-pane__sizes-panel-wrapper{z-index:5;position:sticky;top:30px;left:15px}.blocks-app .email-pane .email-pane__right .email-pane__sizes-panel-wrapper{left:auto;right:15px}.blocks-app .email-pane .email-pane__right.email-pane__sizeSwitcher .email-pane__sizes-panel-wrapper{display:none}.blocks-app .email-pane .email-pane__pinch .email-pane__sizes-panel-wrapper{position:absolute;top:12px;left:calc(50% - 266px)}.blocks-app .email-pane .email-pane__reverse .email-pane__sizes-panel-wrapper{left:auto;right:calc(50% - 266px)}.blocks-app .email-pane .email-pane__reverse.email-pane__left.email-pane__pinch .email-pane__sizes-panel-wrapper{display:none;left:15px;right:auto}.blocks-app .email-pane .email-pane__sizes-panel{background-color:var(--colorBgElevated);border:1px solid var(--colorBorder);border-radius:34px}.blocks-app .email-pane__header{padding-right:10px}.blocks-app .email-pane__header .header__left{margin-left:0}.blocks-app .email-pane__header .header__logo{float:left;height:auto;margin-top:5px;margin-right:26px;padding-right:0;font-size:22px!important}.blocks-app .email-pane__header__title{align-items:center;width:100%;display:flex}.blocks-app .email-pane__header__title__project a{white-space:nowrap;text-overflow:ellipsis;flex:1;max-width:190px;display:flex;overflow:hidden}.blocks-app .email-pane__header__title__project{float:left;margin-top:10px}.blocks-app .email-pane__header__title__project a:hover{color:var(--colorPrimary)}.blocks-app .email-pane__header__title .ant-typography{white-space:nowrap;text-overflow:ellipsis;flex:1;margin:10px 0 10px 20px;padding:0;display:flex;overflow:hidden}.blocks-app .email-pane__row{flex-wrap:nowrap;justify-content:space-between;gap:30px;height:100%;position:relative}.blocks-app .email-pane_path-enabled .email-pane__row{height:calc(100% - 29px)}.blocks-app .email-pane_code-mode .email-pane__row{gap:0;height:calc(100% - 29px);padding:0}.blocks-app .email-pane__col_settings{border-color:var(--colorBorder);height:100%;margin-right:50px;position:sticky;top:0;bottom:60px;overflow:visible}.blocks-app .email-pane__col_disabled.email-pane__content-col_tabs.email-pane__content-col{width:68px;min-width:68px;margin-right:0}.blocks-app .email-pane__col_settings-inner{height:100%;max-height:100%;margin-right:0}.blocks-app .email-pane__col_settings-inner_reverse{flex-direction:row-reverse}.blocks-app .email-pane__col_settings-inner_reverse .email-pane__tab-bar.ant-tabs-nav{margin-left:0;margin-right:8px}.blocks-app .email-pane__col_settings-inner_reverse .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab-btn>span{line-height:1}.blocks-app .email-pane__col .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab-btn>span{height:24px;margin-right:0;font-size:20px}.blocks-app .email-pane__col-wrapper_pinch .email-pane__col .email-pane__tab-bar.ant-tabs-nav{border-left:1px solid var(--colorBorderSecondary);background:var(--colorBgContainer)}.blocks-app .email-pane__reverse .email-pane__col-wrapper_pinch .email-pane__col .email-pane__tab-bar.ant-tabs-nav{border-left:none}.blocks-app .email-pane__col .email-pane__col_settings-inner_reverse{border-right:1px solid var(--colorBorder)}.blocks-app .email-pane_view .email-pane__col{height:calc(100vh - 48px);top:0;bottom:0;overflow:auto}.blocks-app .email-pane__col_settings{height:calc(100vh - 76px);position:sticky;top:10px;bottom:60px;overflow:auto}.blocks-app .email-pane_view .email-pane__col_settings{height:calc(100vh - 48px)}.blocks-app .email-pane__col_settings-collapsed{flex:0 0;max-width:0}.blocks-app .email-pane__col_preview{scroll-behavior:smooth}.blocks-app .email-pane_code-mode .email-pane__row:not(.email-pane__bottom) .email-pane__col_preview{overflow:auto;width:100%!important}.blocks-app .email-pane__col_preview-collapsed{flex:0 0 100%;width:100%;max-width:100%}.blocks-app .email-pane__col_settings{z-index:11;height:100%;position:sticky;top:20px;bottom:60px;overflow:visible}.blocks-app .email-pane__col_settings-inner{height:100%;max-height:100%}.blocks-app .email-pane__col_menu{margin-left:20px}.blocks-app .email-pane__col .ant-modal-close{top:14px;width:34px;height:34px;font-size:16px;position:absolute;inset-inline-end:12px;padding:0!important}.blocks-app .email-pane__col_code-mode .ant-menu-vertical.element-preview-menu__list_discuss li.ant-menu-item{text-align:center}.blocks-app .email-pane__col__alert{z-index:100;width:40%;max-width:400px;bottom:40px;left:10px;position:absolute!important}.blocks-app .email-pane__collapse-wrapper{background-color:var(--colorBgContainer);border:1px solid var(--colorBgContainer);border-radius:calc(var(--borderRadiusXL) * 1px);flex-direction:column;align-self:flex-start;height:auto;min-height:0;max-height:100%;display:flex;overflow:hidden}.dark .blocks-app .email-pane__collapse-wrapper{border:1px solid var(--colorBorderSecondary)}.blocks-app .email-pane__collapse-wrapper_disabled{display:none}.blocks-app .email-pane__collapse-wrapper>*{min-height:0;max-height:100%}.blocks-app .email-pane__collapse-wrapper .ant-tabs-content-holder{border-radius:0 0 calc(var(--borderRadiusXL) * 1px) calc(var(--borderRadiusXL) * 1px);border:none;margin:0 -1px -1px;transition:all .3s;overflow:hidden}.blocks-app .email-pane__collapse-wrapper .selected_form-mobile-props-title,.blocks-app .email-pane__collapse-wrapper .selected_form-desktop-props-title{opacity:0;will-change:transform, height;padding-top:0;transition:height .45s cubic-bezier(.16,1,.3,1),margin-top .45s cubic-bezier(.16,1,.3,1),transform .45s cubic-bezier(.16,1,.3,1),opacity .3s ease-out;transform:translateY(-100%)}@keyframes em-mobile-props-title-slide-in{0%{opacity:0;height:0;transform:translateY(-100%)}to{opacity:1;height:32px;transform:translateY(0)}}.blocks-app .email-pane__collapse-wrapper #selected_element_form_desktop_props{transition:all .1s}.blocks-app .email-pane__collapse-wrapper .selected_form-props-wrapper_optimize{padding-top:0}.blocks-app .ant-app .email-pane__collapse-wrapper .selected_form-mobile-props-title,.blocks-app .ant-app .email-pane__collapse-wrapper .selected_form-desktop-props-title{background-color:var(--colorInfoBg);border:none;border-radius:0;height:0;padding:0 24px;top:0;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .panel-form__body{border:1px solid var(--colorInfo);border-radius:0 0 calc(var(--borderRadius) * 2px) calc(var(--borderRadius) * 2px);scrollbar-gutter:auto;flex-direction:column;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .panel-form__body-content{flex-direction:column;flex:1;min-height:0;padding:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .panel-form__body-content>div{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:var(--colorInfo)}.blocks-app .email-pane__collapse-wrapper.mobile-properties .ant-tabs .ant-tabs-ink-bar{background:var(--colorInfo)}.blocks-app .email-pane__collapse-wrapper.mobile-properties .email-properties__collapse:after{display:none}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected-element-panel-content{flex-direction:column;flex:1;min-height:0;padding:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected-element-panel{flex-direction:column;flex:1;min-height:0;padding-left:0;padding-right:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected-element-panel>div{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties form.element-controls{flex-direction:column;height:100%;min-height:0;display:flex}.blocks-app .email-pane__collapse-wrapper.mobile-properties #selected_element_form_desktop_props{min-height:0;padding:24px var(--panel-form-padding-x,24px) 0;flex:1;overflow:hidden auto}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected_form-mobile-props-wrapper{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected_form-mobile-props-header{flex-shrink:0}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected_form-mobile-props{scrollbar-gutter:stable;flex:1;min-height:0;overflow:hidden auto}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected-element-panel__float-blocks-settings{display:none}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected_form-desktop-props-title{opacity:1;height:32px;animation:.45s cubic-bezier(.16,1,.3,1) both em-mobile-props-title-slide-in;transform:translateY(0)}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected_form-mobile-props-title{z-index:1;border:none;border-bottom:1px solid var(--colorBorderSecondary);background-color:var(--colorInfoBg);padding:5px 24px;transform:translateY(0)}.blocks-app .email-pane__collapse-wrapper.mobile-view .ant-tabs-tab:first-child:hover{color:var(--colorInfo)}.blocks-app .email-pane__collapse-wrapper.mobile-view .selected_form-mobile-props-title{opacity:1;height:32px;animation:.45s cubic-bezier(.16,1,.3,1) both em-mobile-props-title-slide-in;transform:translateY(0)}.blocks-app .email-pane__collapse-wrapper.mobile-view .selected_form-mobile-props-title .ant-alert-message{color:var(--colorInfoText)}.blocks-app .email-pane__collapse-wrapper_build{flex:1;align-self:stretch;height:100%}.blocks-app .email-pane__collapse-wrapper_build>.email-pane__collapse{flex:1;min-height:0}.blocks-app .email-pane__collapse-wrapper_build>.email-pane__collapse>.ant-tabs-content-holder{flex:1;min-height:0;display:flex}.blocks-app .email-pane__collapse-wrapper_build>.email-pane__collapse>.ant-tabs-content-holder>.ant-tabs-content{height:100%;min-height:0}.blocks-app .email-pane__collapse-wrapper_build>.email-pane__collapse>.ant-tabs-content-holder>.ant-tabs-content>.ant-tabs-tabpane-active{flex-direction:column;flex:1;min-height:0;display:flex}.blocks-app .email-pane__col-wrapper_pinch .email-pane__collapse-wrapper{border:none;border-left:1px solid var(--colorBorder);border-radius:0;height:100%}.blocks-app .email-pane__collapse{flex-direction:column;flex:1;width:100%;height:100%;min-height:0;max-height:100%;display:flex;overflow:hidden}.blocks-app .email-pane__collapse.ant-collapse{border:0}.blocks-app .email-pane__collapse-panel.ant-collapse-item{min-height:50px;overflow:hidden}.blocks-app .email-pane__comment-counter{border-radius:10px;width:27px;height:16px;margin:5px;padding:0 6px;font-size:12px}.blocks-app .email-pane__add-new-element-btn{width:100%;margin-bottom:60px}.blocks-app .email-pane__tab-bar.ant-tabs-nav{z-index:1;width:60px;margin-bottom:0;margin-left:8px;margin-right:0;top:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab-active{border-radius:8px;border-right:none!important}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tabpane,.blocks-app .ant-tabs-left>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab{padding-left:0}.blocks-app .ant-tabs-left>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-top:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-nav-list{background:var(--colorBgContainer);border-radius:8px;flex:none;padding:0 0 4px;box-shadow:0 2px 10px #0500380a}.blocks-app .email-pane__col-wrapper_pinch .email-pane__tab-bar.ant-tabs-nav .ant-tabs-nav-list{box-shadow:none;border-radius:0;height:100%}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-nav-wrap{overflow:unset;flex:none}.blocks-app .email-pane__tab-bar.ant-tabs-nav+.ant-tabs-content-holder{border-left:none;margin-left:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav+.ant-tabs-content-holder .ant-tabs-content>.ant-tabs-tabpane{padding-left:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab:first-child,.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab:nth-child(2),.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab:nth-child(3){display:none}.blocks-app .email-pane__col-wrapper_pinch .email-pane__tab-bar.ant-tabs-nav{margin-left:0;margin-right:0}.blocks-app .email-pane .ant-tabs-right>.ant-tabs-content-holder,.blocks-app .email-pane .ant-tabs-right>div>.ant-tabs-content-holder{border-right:none;margin-right:0}.blocks-app .email-pane .ant-tabs-left>.ant-tabs-nav .ant-tabs-tab{border:1px solid #0000;height:60px;padding:14px 24px}@media (width<=1550px){.blocks-app .email-pane .ant-tabs-left>.ant-tabs-nav .ant-tabs-tab{height:50px}}.blocks-app .email-pane .ant-collapse-content{box-sizing:content-box;height:calc(100% - 50px);margin-top:-1px;overflow:auto}.blocks-app .email-pane .ant-tabs-content{height:100%;max-height:100%}.blocks-app .email-pane .ant-collapse-content-box,.blocks-app .email-pane .secondary-tabs .ant-tabs-content{height:100%;padding-bottom:0;position:relative;overflow:hidden scroll}.blocks-app .email-pane__comment-counter{position:absolute;top:-4px;right:0}@media (width<=1550px){.blocks-app .email-pane__comment-counter{right:-5px}}.blocks-app .email-pane__content-col_disable{pointer-events:none}.blocks-app .email-pane .header__project{vertical-align:middle;align-items:center;height:28px;padding-top:0;display:inline-flex}.blocks-app .email-pane .header__project .ant-avatar.ant-avatar-circle{min-width:28px}.blocks-app .email-pane_view .header__project{pointer-events:none}.blocks-app .email-pane__pane{height:100%;transition:height .2s cubic-bezier(0,0,.2,1);position:relative}.blocks-app .email-pane__panes{height:calc(100vh - 48px);display:flex;overflow:auto}.blocks-app .email-pane__panes-resizer{z-index:2;position:relative}.blocks-app .email-pane__panes-resizer:before{content:"";background-color:#0000;border-left:2px solid #0000;width:10px;height:100%;transition:border-color .2s;position:absolute;inset:0}.blocks-app .email-pane__panes-resizer:hover{cursor:col-resize}.blocks-app .email-pane__panes-resizer:hover:before{border-color:var(--colorPrimary)}.blocks-app .email-pane__footer{z-index:2;border-top:1px solid #d9d9d9;height:28px;display:none;position:relative}.blocks-app .email-pane:not(.email-pane_view) .email-pane__pane-content{height:100%;position:absolute;inset:0;overflow:hidden}.blocks-app .email-pane__pane_main .email-pane:not(.email-pane_view) .email-pane__pane-content{overflow:auto}.blocks-app .email-pane:not(.email-pane_view) .email-pane__pane-content .email-pane__pane_editor{height:100%;overflow:visible}.blocks-app .email-pane:not(.email-pane_view) .email-pane__pane-content .email-pane__pane_editor .email-pane__pane-content{height:100%}.blocks-app .email-pane__buttons{text-align:right}.blocks-app .email-pane__buttons .ant-space.ant-space-horizontal.ant-space-align-center{display:flex}.blocks-app .email-pane__buttons button{width:46px;height:24px;margin-left:8px;padding:0}.blocks-app .email-pane__iframe-scroll-bottom,.blocks-app .email-pane__iframe-scroll-top{z-index:10;width:100%;height:50px;display:none;position:sticky;left:0;right:0}.blocks-app .email-pane__iframe-scroll-top{margin-bottom:-50px;top:0}.blocks-app .email-pane__iframe-scroll-bottom{margin-top:-50px;bottom:0}.blocks-app .email-pane__list{border:none;line-height:20px}.blocks-app .email-pane__list.ant-menu-horizontal>.ant-menu-item{padding:0 14px}.blocks-app .email-pane__list.ant-menu-horizontal>.ant-menu-item:after{content:none}.blocks-app .email-pane__list-item_active{color:var(--colorPrimaryTextHover)}.blocks-app .ant-menu-item .email-pane__list-item-icon.anticon{font-size:20px}.blocks-app .email-pane__list-item:hover .email-pane__list-item-icon.anticon,.blocks-app .email-pane__list-item_active.ant-menu-item .email-pane__list-item-icon.anticon{color:var(--colorPrimaryTextHover)}.blocks-app .email-pane__list-item.ant-menu-item.ant-menu-item-selected,.blocks-app .email-pane__list-item.ant-menu-item-disabled:hover .email-pane__list-item-icon.anticon{color:inherit}.blocks-app .email-pane__content-col.email-pane__content-col_menu{min-width:462px;margin-left:0}.blocks-app .email-pane__content-col_menu-left{margin-right:10px}.blocks-app .email-pane__code-mode{margin-top:10px;display:flex}.blocks-app .email-pane__code-mode .email-pane__panes{width:100%}.blocks-app .email-pane__code-mode .email-pane__panes+.email-pane__content-col.email-pane__content-col_menu,.blocks-app .email-pane__code-mode .email-pane__content-col.email-pane__content-col_menu:not(.email-pane__content-col_menu-right){width:60px;min-width:60px;margin-top:5px;margin-left:10px;margin-right:10px}.blocks-app .email-pane__code-mode .email-pane__content-col.email-pane__content-col_menu.email-pane__content-col_menu-right{width:50px;min-width:50px;margin-top:5px;margin-left:10px;margin-right:10px}.blocks-app .email-pane__col_code-mode{top:0}.blocks-app .email-pane__comments-icon-wrapper{text-align:center;cursor:pointer;width:50px;height:60px;margin-right:5px;padding:13px 21px;position:relative}.blocks-app .email-pane__comments-icon-wrapper:hover{color:#999da0}.blocks-app .email-pane__comment-counter{color:#000000d9;width:auto;min-width:28px;height:18px;text-shadow:none;border:1px solid #fff;border-radius:10px;margin:5px;padding:0 6px;font-size:12px;position:absolute;top:-8px;right:-10px}.blocks-app body.dark .email-pane__comment-counter{color:#f0f0f0;border-color:#1f1f1f}.blocks-app .email-pane__col-wrapper_pinch .email-pane__comment-counter{right:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tabpane,.blocks-app .ant-tabs-left>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab{padding-left:0}.blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab{padding-right:0}.blocks-app .ant-tabs-left>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-top:0}.blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{z-index:1;margin-top:0}.blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab .ant-tabs-tab-btn{background:0 0;border-radius:6px;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{background:var(--controlItemBgActive)}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-nav-list .ant-tabs-ink-bar{box-sizing:border-box;background:#fff;border:none;border-radius:6px;width:60px;margin:0 2px;display:none;box-shadow:0 2px 8px -2px #0000000d,0 1px 4px -1px #00000012,0 0 1px #00000014}.blocks-app .email-pane__tab-bar.ant-tabs-nav+.ant-tabs-content-holder{border-left:none;width:397px;margin-left:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav+.ant-tabs-content-holder .ant-tabs-content>.ant-tabs-tabpane{padding-left:0;padding-right:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab:first-child{display:none}.blocks-app .email-pane .ant-tabs-left>.ant-tabs-nav .ant-tabs-tab,.blocks-app .email-pane .ant-tabs-right>.ant-tabs-nav .ant-tabs-tab{border:none;height:56px;padding:4px 4px 0}.blocks-app .email-pane .ant-tabs-tab .anticon{margin-right:0;font-size:20px}.blocks-app .email-pane__code-mode:not(.email-pane__col_preview-collapsed){padding-left:60px}.blocks-app .email-pane__content-col_tabs.email-pane__content-col{margin-left:0;margin-right:0;transition:all .3s cubic-bezier(.075,.82,.165,1);top:30px}@media (width<=1350px){.blocks-app .email-pane__content-col_tabs.email-pane__content-col{transform-origin:0 0;transform:scale(.83)}}.blocks-app .email-pane__col-wrapper_pinch .email-pane__content-col_tabs.email-pane__content-col{margin-top:0;top:0;height:100%!important}.blocks-app .email-pane .email-pane__col-wrapper_pinch .blocks-search__empty-wrapper{height:calc(100% - 30px)}.blocks-app .email-pane__col_preview-collapsed{margin-left:70px}.blocks-app .email-pane .email-pane__content-col_main{border:1px solid var(--colorBorder);border-radius:calc(var(--borderRadiusXL) * 1px);margin-left:-2px;margin-right:-2px;transition:border-color .4s;overflow:hidden auto}.blocks-app .email-pane .secondary-tabs.secondary-tabs_unset_scroll .ant-tabs-nav:after{display:none}.blocks-app .email-pane .secondary-tabs.secondary-tabs_unset_scroll .ant-tabs-content{overflow-y:hidden;padding-top:0!important;padding-right:24px!important}.blocks-app .email-pane__col.email-pane__col_preview{flex-direction:column;justify-content:flex-start;align-items:center;max-width:1600px;margin:0;padding:0 2px;display:flex}.blocks-app .email-pane__sizes{border:1px solid var(--colorBorder);z-index:10;opacity:.9;border-top:none;border-radius:0 0 8px 8px;justify-content:center;width:100%;height:15px;min-height:15px;margin-bottom:15px;transition:all .5s;display:flex;position:sticky;top:0;left:0}.blocks-app .email-pane__sizes:hover{opacity:1}.blocks-app .email-pane_code-mode .email-pane__row:not(.email-pane__bottom) .email-pane__sizes{border-width:0;height:0;min-height:0;margin-bottom:0}.blocks-app .email-pane__sizes .email-pane__width-selectors-wrapper{justify-content:center;width:100%;display:flex}.blocks-app .email-pane__sizes .device-width__theme{border-right:1px solid var(--colorBorder);background-color:var(--colorBgElevated);flex-shrink:0;width:36px;transition:all .3s;position:relative}.blocks-app .email-pane__sizes .device-width__theme .email-pane__theme-toggle{margin:0}.blocks-app .email-pane__sizes [class^=device-width__]{border-right:1px solid var(--colorBorder);background-color:var(--colorBgElevated);cursor:pointer;transition:all .3s;position:relative}.blocks-app .email-pane__sizes [class^=device-width__]:first-child{border-bottom-left-radius:calc(var(--borderRadius) * 1px)}.blocks-app .email-pane__sizes [class^=device-width__]:last-child{border-bottom-right-radius:calc(var(--borderRadius) * 1px);border:none}.blocks-app .ant-app .email-pane__sizes [class^=device-width__] button{color:var(--colorTextDescription);width:24px;min-width:24px;height:24px;line-height:1}.blocks-app .ant-app .email-pane__sizes [class^=device-width__] button:hover{background:var(--colorPrimaryBg)}.blocks-app .email-pane__sizes .device-width__320{text-align:center;color:var(--colorText);font-size:12px;line-height:15px}.blocks-app .email-pane__sizes.device-width__full-hovered [class^=device-width__],.blocks-app .email-pane__sizes.device-width__768-hovered [class*=__768],.blocks-app .email-pane__sizes.device-width__768-hovered [class*=__425],.blocks-app .email-pane__sizes.device-width__768-hovered [class*=__375],.blocks-app .email-pane__sizes.device-width__768-hovered [class*=__320],.blocks-app .email-pane__sizes.device-width__425-hovered [class*=__425],.blocks-app .email-pane__sizes.device-width__425-hovered [class*=__375],.blocks-app .email-pane__sizes.device-width__425-hovered [class*=__320],.blocks-app .email-pane__sizes.device-width__375-hovered [class*=__375],.blocks-app .email-pane__sizes.device-width__375-hovered [class*=__320],.blocks-app .email-pane__sizes.device-width__320-hovered [class*=__320]{background:var(--colorPrimaryBg)}.blocks-app .email-pane__resizable{width:100%;margin-bottom:29px;transition:max-width .5s;position:relative}.blocks-app .blocks-plugin .email-pane__resizable{padding:0 2px}.blocks-app .email-pane__resizable_drag{transition:none}.blocks-app .email-pane__resizable .email-pane__handle{box-sizing:border-box;opacity:0;cursor:ew-resize;width:5px;height:100%;transition:opacity .4s;position:absolute}.blocks-app .email-pane_code-mode .email-pane__row:not(.email-pane__bottom) .email-pane__resizable .email-pane__handle{pointer-events:none}.blocks-app .email-pane__resizable .email-pane__handle:hover,.blocks-app .email-pane__resizable .email-pane__handle:active{opacity:1}.blocks-app .email-pane__resizable .email-pane__handle.left{left:0}.blocks-app .email-pane__resizable .email-pane__handle.right{right:0}.blocks-app .email-pane__left .email-pane__resizable,.blocks-app .email-pane__right .email-pane__resizable{margin-bottom:0}.blocks-app .email-pane__tooltip{margin-right:20px}.blocks-app .email-pane .ant-layout-content.container.email-pane__container{padding-bottom:0}.blocks-app .email-pane .ant-tabs-tabpane.ant-tabs-tabpane-active.em-analytics__email-tab-build{border-top-left-radius:0}.blocks-app .email-pane .ant-tabs-large.secondary-tabs .ant-tabs-nav-list{padding-left:24px}.blocks-app .email-pane .ant-tabs-large.secondary-tabs .ant-tabs-nav{margin-bottom:0}.blocks-app .email-pane .ant-tabs-large.secondary-tabs .ant-tabs-tab .ant-tabs-tab-btn{font-size:14px;font-weight:400}.blocks-app .email-pane .ant-tabs-large.secondary-tabs .ant-tabs-tab+.ant-tabs-tab{margin:0 0 0 20px}.blocks-app .email-pane .ant-tabs-large.secondary-tabs .ant-tabs-content{padding:24px 13px 4px 24px}.blocks-app .email-pane .ant-tabs-large.secondary-tabs.secondary-tabs_optimise .ant-tabs-content{padding:0 25px}.blocks-app .email-pane .ant-tabs-large.secondary-tabs.email-properties__collapse .ant-tabs-content{padding-bottom:0}.blocks-app .email-pane.email-pane_no-element-navigation .ant-tabs-large.secondary-tabs.email-properties__collapse .ant-tabs-content{padding-top:0}.blocks-app .email-pane .email-properties__collapse{position:relative}.blocks-app .email-pane .email-properties__collapse:after{content:"";background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);border-top:1px solid var(--colorBorderSecondary);z-index:1;width:100%;height:20px;position:absolute;top:58px;left:0}.dark .blocks-app .email-pane .email-properties__collapse:after{background:linear-gradient(180deg, var(--colorBgBase) -100%, transparent 50%)}.blocks-app .email-pane .ant-tooltip{pointer-events:none}.blocks-app .email-pane__blocks-search{overflow-clip-margin:40px;flex-direction:column;height:calc(100% - 44px);min-height:0;display:flex;overflow:clip}.blocks-app .email-pane__blocks-search label.ant-segmented-item{margin-top:0}.blocks-app .email-pane__blocks-panel,.blocks-app .email-pane__blocks-panel-body{height:100%}.blocks-app .email-pane__blocks-panel-header{flex-shrink:0}.blocks-app .email-pane__blocks-panel-results{display:none}.blocks-app .email-pane__blocks-panel-results_visible{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.blocks-app .email-pane__blocks-panel_scrollable,.blocks-app .email-pane__blocks-panel_scrollable{overflow-clip-margin:40px;flex-direction:column;flex:1;min-height:0;display:flex;overflow:clip}.blocks-app .email-pane__blocks-panel_scrollable .email-pane__blocks-panel-body{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.blocks-app .email-pane .email-pane__blocks-search .ant-segmented{position:relative;top:-7px}@media screen and (width<=700px){.blocks-app .email-pane_view .email-pane__buttons{display:none}.blocks-app .email-pane__content{margin:0;padding-right:0}.blocks-app .email-pane__content .email-pane__content-col_main{min-width:100%}.blocks-app .email-pane__content .email-pane__content-col_menu{display:none}.blocks-app .email-pane__content .email-pane__content-col_menu+.email-pane__resizer{border-left:none;border-right:2px solid #0000}.blocks-app .email-pane__content .email-pane__content-col_menu+.email-pane__resizer:hover{border-color:var(--colorPrimary)}}.blocks-app .ant-menu-vertical.element-preview-menu__list_discuss li.ant-menu-item{text-align:right;padding:0 10px}.blocks-app .ant-tooltip{pointer-events:none}@media (width<=1550px){.blocks-app .email-pane .ant-tabs .secondary-tabs.email-pane__collapse:not(.secondary-tabs_unset_scroll):after{margin-top:44px}}.dark .blocks-app .email-pane .ant-tabs .blocks-search__empty-shadow:after{background:linear-gradient(180deg, var(--colorBgBase) -100%, transparent 50%)}.dark .blocks-app .ant-app .email-pane .ant-tabs-extra-content .ant-segmented_editor-mode{background-color:#121212}.blocks-app .collaborator-list{position:absolute;bottom:30px}.blocks-app .ant-app .email-pane__col-wrapper_pinch .ant-switch.ant-switch_editor-mode{width:48px}.blocks-app .ant-app .email-pane__col-wrapper_pinch .ant-switch.ant-switch_editor-mode.ant-switch-checked{background:var(--controlItemBgActive)}.blocks-app .ant-app .email-pane__col-wrapper_pinch .ant-switch.ant-switch_editor-mode.ant-switch-checked .ant-switch-inner-checked{color:var(--colorPrimary)}.blocks-app .email-preview-menu__versions .ant-btn,.blocks-app .email-preview-menu__code .ant-btn,.blocks-app .email-preview-menu__preview .ant-btn,.blocks-app .email-preview-menu__test{justify-content:center;align-items:center;display:inline-flex}.blocks-app .email-preview-menu__list-item-icon{align-items:center;display:inline-flex}.blocks-app .email-preview-menu_right{margin-left:auto}.blocks-app .email-preview-menu_new{align-items:center;padding-right:22px;display:flex}.blocks-app .email-preview-menu .email-preview-menu__history *{pointer-events:none}.blocks-app .ant-menu.email-preview-menu__list{border:0}.blocks-app .ant-menu-vertical .ant-menu-item.email-preview-menu__list-item{margin-top:0;padding:0 10px}.blocks-app .ant-menu-vertical .ant-menu-item.email-preview-menu__list-item_disabled{cursor:not-allowed}.blocks-app .ant-menu-vertical .ant-menu-item.email-preview-menu__list-item:hover .ant-menu-item.email-preview-menu__list-item_disabled .anticon.email-preview-menu__list-item-icon{color:inherit}.blocks-app .ant-menu-vertical .ant-menu-item.email-preview-menu__list-item a{width:40px;height:40px;margin-left:-10px;display:block}.blocks-app .ant-menu-vertical .ant-menu-item.email-preview-menu__list-item a .email-preview-menu__list-item-icon{margin-left:10px}.blocks-app .ant-menu-item .anticon.email-preview-menu__list-item-icon{font-size:20px}.blocks-app .ant-menu-item .anticon.email-preview-menu__list-item-icon_revert{transform:scaleX(-1)}.blocks-app .email-preview-menu__list-item:hover .anticon.email-preview-menu__list-item-icon,.blocks-app .ant-menu-item.email-preview-menu__list-item_active .anticon.email-preview-menu__list-item-icon{color:var(--colorPrimaryHover)}.blocks-app .ant-menu-item.ant-menu-item-selected.email-preview-menu__list-item,.blocks-app .ant-menu-item-disabled.email-preview-menu__list-item:hover .anticon.email-preview-menu__list-item-icon{color:inherit}.blocks-app .ant-menu-vertical>.email-preview-menu__list__scroll-buttons{cursor:default;text-align:center;height:auto;margin:0;padding:0}.blocks-app .ant-menu-vertical>.email-preview-menu__list__scroll-buttons .ant-space{display:block}.blocks-app .ant-menu-vertical>.email-preview-menu__list__scroll-buttons button{width:40px;height:40px;box-shadow:none;text-shadow:none;background:0 0;border:none;margin-bottom:8px;padding:0;display:block}.blocks-app .ant-menu-vertical>.email-preview-menu__list__scroll-buttons button .anticon{font-size:20px;transition:color .3s}.blocks-app .ant-menu-vertical>.email-preview-menu__list__scroll-buttons button .anticon :hover{color:var(--colorPrimaryHover)}.blocks-app .ant-menu-vertical .email-preview-menu__list__divider{border-top:2px solid var(--colorBorder);width:20px;min-width:auto;margin:20px 0}.blocks-app .ant-menu-vertical .email-preview-menu__list__divider.second-devider{margin-left:10px}.blocks-app .code-size-warning-modal .ant-modal-content{padding:32px}.blocks-app .code-size-warning-modal__content{flex-direction:column;display:flex}.blocks-app .code-size-warning-modal__icon{color:var(--colorWarning);margin-bottom:16px;font-size:64px}.blocks-app .code-size-warning-modal__icon .anticon{display:block}.blocks-app .code-size-warning-modal__title{color:var(--colorText);margin:0 0 12px;font-size:18px;font-weight:600}.blocks-app .code-size-warning-modal__message{color:var(--colorTextSecondary);margin-bottom:24px;font-size:14px;line-height:1.6}.blocks-app .code-size-warning-modal__message p{margin:0 0 12px}.blocks-app .code-size-warning-modal__message p:last-child{margin-bottom:0}.blocks-app .code-size-warning-modal__message strong{color:var(--colorError);font-weight:600}.blocks-app .code-size-warning-modal__image{width:100%;margin-bottom:24px}.blocks-app .code-size-warning-modal__image-placeholder{border-radius:8px;width:100%;height:200px;display:flex}.blocks-app .code-size-warning-modal__image-placeholder img{object-fit:contain;max-width:100%;max-height:100%}.blocks-app .code-size-warning-modal__actions{width:100%;display:flex}.blocks-app .code-size-warning-modal__actions .ant-btn{min-width:140px}.blocks-app .em-export-platforms-submenu .ant-dropdown-menu{max-height:420px;overflow-y:auto}.blocks-app .app-logo{color:#000;line-height:1.35;display:inline-block}.blocks-app .app-logo:hover{color:#000}.blocks-app .em-analytics__email-save .ant-btn-loading-icon .anticon,.blocks-app .em-analytics__block-save .ant-btn-loading-icon .anticon{font-size:16px}.blocks-app .main__ribbon{background:var(--colorInfo);min-height:43px;color:var(--colorTextLightSolid);flex-direction:row;justify-content:center;align-items:center;font-size:16px;display:flex}.blocks-app .main__ribbon button{background:var(--colorInfoTextHover)}.blocks-app .main__ribbon button:hover{background:var(--colorInfoHover)!important}.blocks-app .main__ribbon .main__ribbon-resend.ant-btn.ant-btn-sm{padding-block:5px;padding-inline:14px}.blocks-app .header{box-sizing:content-box;border-bottom:1px solid;height:70px;min-height:70px}.blocks-app .header_blocks{padding-right:10px}.blocks-app .header_main{z-index:1}.blocks-app .header__container{justify-content:space-between;align-items:center;gap:30px;min-height:70px;transition:opacity .3s;display:flex}.blocks-app .header__logo,.blocks-app .header__project{white-space:nowrap;text-overflow:ellipsis;max-width:220px;display:block;overflow:hidden}.blocks-app .header__logo{padding-top:10px}.blocks-app .header h2,.blocks-app .header h3{margin:0}.blocks-app .header__right{max-height:40px}.blocks-app .header__right .header__action-btn.ant-btn{align-items:center;height:34px;min-height:34px;padding-block:0;display:inline-flex}.blocks-app .header__right .ant-space.ant-space-horizontal.ant-space-align-center{align-items:center;display:flex}.blocks-app .header__right,.blocks-app .header__left{display:flex}.blocks-app .header__left .ant-space,.blocks-app .header__left .ant-space .ant-space-item:last-child{flex-grow:1}.blocks-app .header .project-menu__list-item{cursor:pointer;transition:color .3s}.blocks-app .header .project-menu__list-item:hover{color:#40a9ff}.blocks-app .header .project-menu__list-item svg{width:1.2em;height:1.2em;vertical-align:inherit}.blocks-app .header .project-menu__list-item .anticon-bell svg{width:1.4em;height:1.4em}.blocks-app .header .ant-typography{margin-bottom:0}.blocks-app .foo-title{color:#fff;letter-spacing:1px;background:#9254de;border-radius:3px;margin-top:-10px;margin-left:-4px;padding:0 7px;font-size:13px;font-weight:500;position:absolute}.blocks-app .email-page-header__dropdown-menu{top:10px}.blocks-app .email-page-header__email-id{color:var(--colorTextTertiary)}.blocks-app .email-page-header .button{cursor:pointer}.blocks-app .anticon.anticon-edit.email-page-header__icon-edit{color:#8c8c8c;margin-left:6px;font-size:16px}.blocks-app .ant-typography-edit:hover .anticon.anticon-edit.email-page-header__icon-edit{color:var(--colorPrimaryHover)}.blocks-app .ant-page-header-heading{max-width:700px;transition:all .2s;position:relative}.blocks-app .ant-page-header-heading svg{cursor:pointer;opacity:0;justify-content:center;width:0;height:0;transition:all .2s .2s;position:absolute;top:0;right:3px}.blocks-app .ant-page-header-heading svg:hover{color:var(--colorPrimaryHover)}.blocks-app .ant-page-header-heading.focus{background-color:var(--colorFillSecondary);border-radius:calc(var(--borderRadiusSM) * 1px);padding:0 8px}.blocks-app .ant-page-header-heading.focus svg{opacity:1;width:20px;height:20px;top:2px}.blocks-app .ant-page-header-heading.ant-page-header-heading_preheader.focus svg{top:0}.blocks-app .ant-page-header-heading_preheader .anticon{top:-2px}.blocks-app .email-page-header .ant-page-header-heading-left{flex-grow:1;overflow:visible}.blocks-app .email-page-header .ant-page-header-back{align-self:flex-start;margin-right:0;padding-top:8px}.blocks-app div.ant-typography-edit-content.ant-page-header-heading-preheader,.blocks-app div.ant-typography-edit-content.ant-page-header-heading-title{margin-top:0;margin-bottom:0;inset-inline-start:0}.blocks-app .header__left .ant-form-item-control-input,.blocks-app .header__left .ant-form-item-control-input-content{line-height:normal;min-height:auto!important}.blocks-app .header__left .ant-page-header-heading-title{white-space:pre-wrap;text-overflow:ellipsis;border-radius:0;flex-grow:1;min-height:auto;padding:0 20px 0 0;font-weight:500;line-height:1;overflow:visible}.blocks-app .header__left .ant-page-header-heading-preheader{max-width:700px;min-height:auto;box-shadow:none;text-overflow:ellipsis;white-space:nowrap;border-radius:0;padding:0 20px 0 0;display:block;overflow:hidden;line-height:20px!important}.blocks-app .header__left .ant-skeleton.ant-skeleton-element{width:100%;display:block}.blocks-app .ant-page-header-heading-title,.blocks-app .ant-page-header-heading-preheader{background:0 0;padding:0;box-shadow:none!important;border:none!important;transition:none!important}.blocks-app .ant-page-header-heading-preheader{color:var(--colorTextSecondary);min-height:auto}.blocks-app .subject_preheader_form__title{width:80px;color:var(--colorTextTertiary);white-space:nowrap}.blocks-app .ant-page-header-heading-title{line-height:22px!important}.blocks-app .email-page-header .ant-typography{align-items:center;margin-bottom:0;padding:0 12px;display:flex}.blocks-app .email-page-header .ant-typography-edit-content{margin-top:-10px;padding:0;top:5px;left:auto}.blocks-app .email-page-header .ant-input{font-size:inherit;font-weight:inherit}.blocks-app .email-page-header .ant-page-header-heading-extra>*{margin-left:8px}.blocks-app header .ant-btn.email-page-header__btn_extra{width:32px;padding:0}.blocks-app .modal-new-block__icon-create{width:16px;margin-bottom:-2px;margin-right:10px}.blocks-app .modal-footer{justify-content:flex-end;padding:8px 0;display:flex}.blocks-app .modal-spinner{justify-content:center;align-items:center;height:108px;display:flex}@media (width<=1550px){.blocks-app .email-pane__col_settings{margin-left:48px;margin-right:32px}}.blocks-app .em-dragging-element{border-radius:8px}.blocks-app .em-dragging-element>div{box-shadow:none!important}.blocks-app .em-dragging-element .blocks-search__result-html,.blocks-app .em-dragging-element span,.blocks-app .em-dragging-element .atoms__item:before{visibility:hidden}.blocks-app .em-ghost-element.blocks-search__result-html,.blocks-app .em-ghost-element span,.blocks-app .em-ghost-element.atoms__item:before{visibility:visible!important}.blocks-app .em-ghost-element table{border-collapse:initial}.blocks-app .element-card__img{cursor:pointer;width:100%;transition:transform 1s linear}.blocks-app .element-card__img:hover{transition:none}.blocks-app .element-card__img-wrapper,.blocks-app .element-card__no-img,.blocks-app .element-card__title-wrapper{cursor:pointer;border-radius:12px;position:relative;overflow:hidden}.blocks-app .element-card__corner-badges{z-index:3;pointer-events:none;flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:absolute;top:6px;right:6px;width:auto!important}.blocks-app .element-card__corner-badges .element-card__is-template-wrapper{border-radius:calc(var(--borderRadius) * 1px) calc(var(--borderRadius) * 1px) calc(var(--borderRadius) * 1px) calc(var(--borderRadius) * 1px);margin:0;position:static}.blocks-app .element-card__is-template-wrapper{color:#fff;background-color:var(--colorPrimaryHover);text-align:center;padding:4px 8px;font-size:12px;line-height:1.2;display:inline-block;position:absolute;top:0;right:0;border-radius:0 calc(var(--borderRadiusXL) * 1px) 0 calc(var(--borderRadius) * 1px)!important;width:auto!important}.blocks-app .element-card__tags-wrapper{align-items:left;pointer-events:none;justify-content:left;padding:14px 10px;display:inline-flex;position:absolute;bottom:0}.blocks-app .element-card__tags-wrapper .ant-space{pointer-events:all;justify-content:left}.blocks-app .element-card__date{margin-bottom:8px;line-height:22px}.blocks-app .element-card__lock{float:right}.blocks-app .element-card__title{line-clamp:3;-webkit-line-clamp:3;text-overflow:ellipsis;white-space:normal;word-break:break-word;-webkit-box-orient:vertical;max-height:72px;margin-bottom:0;padding-bottom:4px;font-size:18px;line-height:24px;display:-webkit-box;overflow:hidden}.blocks-app .element-card__title .anticon-lock{margin-right:4px}.blocks-app .element-card__title.ant-btn{white-space:normal;display:-webkit-box}.blocks-app .element-card .ant-card-actions{height:40px}.blocks-app .element-card .ant-card-actions>li{margin:8px 0}.blocks-app .element-card .ant-card-cover{margin-top:0;margin-left:0;margin-right:0;padding:3px;position:relative;overflow:hidden}.blocks-app .element-card .ant-card-body{flex-direction:column;padding:8px 18px;display:flex}.blocks-app .element-card .ant-card-body .ant-card-body__left{flex-direction:column;flex:1;min-width:0;display:flex}.blocks-app .element-card .ant-card-body .ant-card-body__left .element-card__date{margin-top:auto}.blocks-app .element-card .ant-card-body .element-card__title-row{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.blocks-app .element-card .ant-card-body .element-card__title-row a{flex:1;min-width:0}.blocks-app .element-card .ant-card-body .element-card__title-row .element-card_menu{flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;margin-left:8px;padding:0;display:inline-flex}.blocks-app .element-card.element-card_email .ant-card-cover,.blocks-app .element-card.element-card_new-email .ant-card-cover{height:240px}.blocks-app .element-card.element-card_new-email .ant-card-body{text-align:center}.blocks-app .element-card .ant-tag{cursor:pointer}.blocks-app .element-card .ant-tag:hover{background-color:var(--colorPrimaryHover)!important}@media (width<=1450px){.blocks-app .element-card.element-card_email .ant-card-cover{height:240px}}.blocks-app .ant-dropdown-menu-popup.element-card__folder-submenu ul.ant-dropdown-menu.ant-dropdown-menu-sub,.blocks-app .element-card__folder-submenu.ant-dropdown-menu-popup ul.ant-dropdown-menu.ant-dropdown-menu-sub{max-height:70vh;overflow:hidden auto}.blocks-app .element-card__img-wrapper,.blocks-app .element-card__no-img{width:100%;height:100%;display:block}.blocks-app .element-card__img-wrapper,.blocks-app .element-card__no-img,.blocks-app .element-card__title-wrapper{cursor:pointer}.blocks-app .element-card__title-wrapper{display:inline-block}.blocks-app .element-card__tags-wrapper{justify-content:left;align-items:flex-start;padding:14px 10px;display:inline-flex;position:absolute;bottom:0}.blocks-app .element-card__tags-wrapper .ant-space{justify-content:left}.blocks-app .element-card__date{margin-bottom:8px;font-size:13px;line-height:1.5}.blocks-app .element-card__title{text-overflow:ellipsis;width:225px;margin-bottom:0;padding-left:0;font-size:16px;line-height:24px;display:block;overflow:hidden;text-align:left!important}.blocks-app .element-card__title svg{margin-right:5px;position:relative;top:2px}.blocks-app .element-card_template .element-card__title{width:272px;padding:0}.blocks-app .element-card_template .element-card__title span{text-overflow:ellipsis;width:100%;display:inline-block;overflow:hidden}.blocks-app .element-card .ant-card-actions{z-index:2;border-top:1px solid #f5f5f5;height:40px}.blocks-app .element-card .ant-card-actions>li{border:none;margin:0;padding:8px}.blocks-app .element-card .ant-card-cover{overflow:hidden}.blocks-app .element-card.element-card_email .ant-card-cover,.blocks-app .element-card.element-card_block .ant-card-cover,.blocks-app .element-card.element-card_new-email .ant-card-cover{border:none;position:relative}.blocks-app .element-card.element-card_new-email .ant-card-cover{height:240px}.blocks-app .element-card.element-card_new-email .ant-card-body{text-align:center;height:calc(100% - 240px)}.blocks-app .element-card.element-card_block .ant-card-cover{height:240px}.blocks-app .element-card.element-card_block .ant-card-cover .ant-skeleton{display:none}.blocks-app .element-card .ant-tag{cursor:pointer;margin-right:0}.blocks-app .element-card__ant-card-cover{height:240px}.blocks-app .element-card .ant-card-body{flex-direction:row;justify-content:space-between;gap:10px;height:calc(100% - 240px);display:flex}.blocks-app .element-card .ant-card-body:after,.blocks-app .element-card .ant-card-body:before{display:none}.blocks-app .element-card .ant-card-body__left{flex-direction:column;justify-content:space-between;display:flex}.blocks-app .element-card .ant-card-body__right{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,visibility .2s ease-in-out;display:block}.blocks-app .element-card .ant-card-body__right .ant-btn{align-items:center;padding:4px 7px;display:flex}.blocks-app .element-card:hover .ant-card-body__right,.blocks-app .element-card .ant-card-body__right:hover,:is(.blocks-app .element-card:has(.ant-card-body__right .ant-btn.ant-dropdown-open) .ant-card-body__right,.blocks-app .element-card:has(.ant-card-body__right .ant-dropdown-open) .ant-card-body__right){opacity:1;visibility:visible}.blocks-app .template-page .element-card_email .ant-card-cover,.blocks-app .template-page .element-card_new-email .ant-card-cover{height:370px}.blocks-app .template-page__container .element-card_template-empty .ant-card-body{height:0;padding:0}.blocks-app .template-page__container .ant-card-body{flex-direction:column;height:48px;padding:8px 18px;display:flex}@media (width<=1450px){.blocks-app .element-card.element-card_email .ant-card-cover{height:240px}.blocks-app .ant-card-body,.blocks-app .template-page__container .ant-card-body{height:calc(100% - 240px)}}.blocks-app .cards-search{height:100%;overflow:visible}.blocks-app .cards-search .ant-row{justify-content:left;gap:30px}.blocks-app .cards-search .ant-form-item{margin-bottom:0}.blocks-app .cards-search form{position:relative;overflow:visible}.blocks-app .cards-search__tags-select,.blocks-app .cards-search__by-title{width:322px}.blocks-app .cards-search .ant-select-clear{right:30px}.blocks-app .cards-search__type-select{width:175px}.blocks-app .cards-search__toolbar-input.ant-input-affix-wrapper{box-sizing:border-box;border-radius:calc(var(--borderRadius) * 1px);background:var(--colorBgContainer);border-color:var(--colorBorder);align-items:center;width:100%;height:32px;min-height:32px;padding:0 8px;font-size:14px;display:inline-flex}.blocks-app .cards-search__toolbar-input.ant-input-affix-wrapper .ant-input{font-size:14px;font-weight:300;line-height:1.2}.blocks-app .cards-search__toolbar-input.ant-input-affix-wrapper .ant-input::placeholder{font-weight:500}.blocks-app .cards-search__toolbar-input.ant-input-affix-wrapper.ant-input-affix-wrapper-focused{border-color:var(--colorPrimary)}.blocks-app .cards-search__toolbar-search-icon{color:var(--colorTextSecondary);margin-inline-end:4px;font-size:16px}.blocks-app .ant-table .ant-tag:hover{background-color:var(--colorPrimaryHover)!important}.blocks-app .element-card.element-card_email.element-card_template-empty .ant-card-cover{height:100px}.blocks-app .element-card{width:100%}.blocks-app .ant-app .ant-card .ant-card-cover>.element-card__empty-template{padding:26px 18px 26px 14px;display:flex}.blocks-app .element-card__empty-template__text{flex-direction:column;margin-left:16px;display:flex}.blocks-app .element-card__empty-template__title{margin-bottom:5px;font-size:16px;line-height:18px}.blocks-app .element-card__empty-template__description{color:var(--colorTextTertiary);font-size:14px;line-height:16px}.blocks-app .element-card__group-tag.ant-tag{border-radius:14px;justify-content:space-between;align-items:center;padding-right:3px;display:flex}.blocks-app .element-card__group-tag.ant-tag:not(.element-card__group-tag_close){background:#1677ff}.blocks-app .element-card__group-tag.ant-tag.element-card__group-tag_close{color:#000000e0;background:#fff;border-color:#0000}.blocks-app .element-card__group-tag.ant-tag .anticon{cursor:pointer;margin-left:8px}.blocks-app .element-card__group-tag-wrapper{justify-content:space-between;max-width:990px;display:flex}@media (width<=1550px){.blocks-app .element-card__group-tag-wrapper{justify-content:space-between;max-width:960px;display:flex}}.blocks-app .project-page__list .selectedEmailsBar>.ant-space-horizontal:last-child{margin-inline-end:-11px}.blocks-app .project-page__list .selectedEmailsBar{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.blocks-app .project-page__list .emailCard{flex-direction:column;display:flex;position:relative}.blocks-app .project-page__list .emailCard>.ant-card,.blocks-app .project-page__list .emailCard>.element-card{flex-direction:column;flex:1;min-height:0;display:flex}.blocks-app .project-page__list .emailCard .ant-card-body{flex-direction:column;flex:1;display:flex}.blocks-app .selectedEmailCheckbox{z-index:2;opacity:0;pointer-events:none;transition:opacity .15s ease-in-out;position:absolute;top:8px;left:8px}.blocks-app .selectedEmailCheckbox .ant-checkbox{box-sizing:border-box;background-color:#fff;border:2px solid #fff;border-radius:4px;width:20px;height:20px}.blocks-app .selectedEmailCheckbox .ant-checkbox .ant-checkbox-inner{box-sizing:border-box;background-color:#fff;border:1px solid #d9d9d9;width:16px;height:16px;transition:all .3s;border-radius:2px!important}.blocks-app .table__container .selectedEmailCheckbox .ant-checkbox .ant-checkbox-inner{border:none}.blocks-app .selectedEmailCheckbox .ant-checkbox .ant-checkbox-inner:after{top:50%;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;inset-inline-start:21.5%;transform:rotate(45deg)scale(0)translate(-50%,-50%)}.blocks-app .selectedEmailCheckbox .ant-checkbox.ant-checkbox-checked{border-color:var(--colorPrimary)}.blocks-app .selectedEmailCheckbox .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--colorPrimary);border-color:var(--colorPrimary)}.blocks-app .selectedEmailCheckbox .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner:after{opacity:1;transform:rotate(45deg)scale(1)translate(-50%,-50%)}.blocks-app .emailCard:hover .selectedEmailCheckbox,.blocks-app .project-page__cards-grid--show-checkboxes .selectedEmailCheckbox{opacity:1;pointer-events:auto}.blocks-app .selectedEmailsBar{font-weight:500}.blocks-app .selectedEmailsBar .cards-search{width:650px;max-width:650px}@media (width<=1400px){.blocks-app .selectedEmailsBar .cards-search{width:520px;max-width:520px}}.blocks-app .selectedEmailsBar .cards-search__by-title{width:100%}.blocks-app .emails-table__toolbar-sort.ant-select:not(.ant-select-disabled):hover .ant-select-selector,.blocks-app .emails-table__toolbar-sort.ant-select .ant-select-selector{border-radius:calc(var(--borderRadius) * 1px);background:var(--colorBgContainer);border-color:var(--colorBorder);align-items:center;min-height:32px;padding-top:0;padding-bottom:0}.blocks-app .emails-table__toolbar-sort.ant-select-focused:not(.ant-select-disabled) .ant-select-selector{border-color:var(--colorPrimary)}.blocks-app .emails-table__toolbar-sort.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{line-height:30px}.blocks-app .emails-table__title{line-clamp:3;-webkit-line-clamp:3;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.blocks-app .emails-table__author-avatar.ant-avatar{font-size:12px}.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu{border-radius:12px;padding:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item{border-radius:6px;height:auto;min-height:32px;padding:8px;line-height:normal}.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-icon{font-size:16px}.blocks-app .projects-table__actions-menu-icon{color:var(--colorText);font-size:16px}.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-danger .projects-table__actions-menu-icon{color:var(--colorError)}.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-danger:hover .projects-table__actions-menu-icon,.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-danger:hover .ant-dropdown-menu-item-icon,.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-danger.ant-dropdown-menu-item-active .projects-table__actions-menu-icon,.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-danger.ant-dropdown-menu-item-active .ant-dropdown-menu-item-icon{color:var(--colorTextLightSolid)}.blocks-app .projects-table__actions-trigger{box-sizing:border-box;cursor:pointer;justify-content:center;align-items:center;display:inline-flex}.blocks-app .projects-table__actions-trigger--card{background:0 0;border:1px solid #0000;border-radius:6px;width:32px;height:32px}.blocks-app .projects-table__actions-trigger--card:hover,.blocks-app .projects-table__actions-trigger--card.ant-dropdown-open,.blocks-app .projects-table__actions-trigger--table:hover,.blocks-app .projects-table__actions-trigger--table.ant-dropdown-open{background:#e6f4ff;border-color:#2884ff}.blocks-app .projects-table__actions-trigger-icon{color:var(--colorTextSecondary);font-size:16px}.blocks-app .projects-table__actions-trigger--card:hover .projects-table__actions-trigger-icon,.blocks-app .projects-table__actions-trigger--card.ant-dropdown-open .projects-table__actions-trigger-icon,.blocks-app .projects-table__actions-trigger--table:hover .projects-table__actions-trigger-icon,.blocks-app .projects-table__actions-trigger--table.ant-dropdown-open .projects-table__actions-trigger-icon{color:#2884ff}.blocks-app .projects-table__actions-trigger--table{background:0 0;border:1px solid #0000;border-radius:6px;width:32px;height:32px;margin:auto;position:absolute;inset:0}.blocks-app .emails-table__folder-submenu.ant-dropdown-menu-popup ul.ant-dropdown-menu.ant-dropdown-menu-sub{max-height:70vh;overflow:hidden auto}.blocks-app .project-page__list .ant-pagination{text-align:center;justify-content:center;align-items:center;gap:8px;display:flex}.blocks-app .project-page__list .ant-pagination .ant-pagination-item:not(.ant-pagination-item-active),.blocks-app .project-page__list .ant-pagination .ant-pagination-item:not(.ant-pagination-item-active):hover,.blocks-app .project-page__list .ant-pagination .ant-pagination-item:not(.ant-pagination-item-active):focus-visible{box-shadow:none;border-color:#0000;background-color:#0000!important}.blocks-app .template-page__header.ant-page-header{margin-bottom:20px;padding-left:0;padding-right:0}.blocks-app .template-page__cards-grid{grid-gap:50px;grid-template-columns:repeat(auto-fit,322px);margin-bottom:50px;display:grid}.blocks-app .template-page__list{position:relative}.blocks-app .template-page__loader{z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.blocks-app .template-page .ant-page-header-heading-title{width:310px}.blocks-app .template-page .ant-page-header-heading-left,.blocks-app .template-page .ant-page-header-heading-sub-title{overflow:visible}.blocks-app .payment-card-logos-row{opacity:.5;flex-flow:wrap;justify-content:center;align-items:center;gap:16px;display:flex}.blocks-app .payment-card-logos-row__img{object-fit:contain;pointer-events:none;-webkit-user-select:none;user-select:none;flex-shrink:0;width:auto;display:block}.blocks-app .payment-card-logos-row__img--mir{height:14px}.blocks-app .payment-card-logos-row__img--sbp{height:16px}.blocks-app .payment-card-logos-row__img--visa{height:12px}.blocks-app .payment-card-logos-row__img--mastercard{height:14px}.blocks-app .extra-limit-package-modal.ant-modal{max-width:calc(100vw - 24px)}.blocks-app .extra-limit-package-modal .ant-modal-content{border-radius:16px;padding:0;overflow:hidden;box-shadow:0 12px 24px -4px #191d3a14}.blocks-app .extra-limit-package-modal .ant-modal-header{display:none}.blocks-app .extra-limit-package-modal .ant-modal-content .ant-modal-body{padding:0}.blocks-app .extra-limit-package-modal__wrap{background:var(--colorBgContainer);flex-direction:column;align-items:center;width:400px;max-width:100%;display:flex}.blocks-app .extra-limit-package-modal__header{box-sizing:border-box;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;min-height:34px;padding:8px 8px 0;display:flex}.blocks-app .extra-limit-package-modal__close{background:var(--colorBgContainer);width:34px;height:34px;color:var(--colorTextSecondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;margin:0;padding:0;transition:background .15s,color .15s;display:flex}.blocks-app .extra-limit-package-modal__close:hover{background:var(--colorFillTertiary);color:var(--colorText)}.blocks-app .extra-limit-package-modal__close .anticon{font-size:16px}.blocks-app .extra-limit-package-modal__body{box-sizing:border-box;flex-direction:column;align-items:center;gap:16px;width:100%;padding:0 40px 24px;display:flex}.blocks-app .extra-limit-package-modal__title{text-align:center;max-width:320px;color:var(--colorText);margin:0;font-size:18px;font-weight:600;line-height:100%}.blocks-app .extra-limit-package-modal__subtitle{text-align:center;max-width:320px;color:var(--colorTextSecondary);margin:0;font-size:14px;font-weight:100;line-height:120%}.blocks-app .extra-limit-package-modal__package-banner{box-sizing:border-box;background:var(--colorFillQuaternary);border-radius:8px;width:100%;max-width:320px;padding:23px 8px}.blocks-app .extra-limit-package-modal__package-content{flex-direction:row;justify-content:center;align-items:center;gap:8px;height:40px;display:flex}.blocks-app .extra-limit-package-modal__package-plus{color:#8946fb;font-size:40px;font-weight:100;line-height:1}.blocks-app .extra-limit-package-modal__package-amount{color:#8946fb;font-size:40px;font-weight:400;line-height:1}.blocks-app .extra-limit-package-modal__package-icon{box-sizing:border-box;border:1px solid #8946fb;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.blocks-app .extra-limit-package-modal__divider{border:none;border-top:1px solid var(--colorBorderSecondary);width:100%;height:0;margin:0}.blocks-app .extra-limit-package-modal__footer{box-sizing:border-box;flex-direction:column;align-items:stretch;gap:16px;width:100%;min-height:147px;padding:16px 40px 32px;display:flex}.blocks-app .extra-limit-package-modal__payment-label{width:100%;max-width:320px;color:var(--colorText);text-align:center;align-self:center;margin:0;font-size:16px;font-weight:400;line-height:1.2}.blocks-app .extra-limit-package-modal__payment-buttons{flex-flow:wrap;justify-content:space-between;align-self:center;align-items:center;gap:10px;width:100%;max-width:320px;display:flex}.blocks-app .extra-limit-package-modal__pay-btn-wrap{flex:1;justify-content:center;min-width:0;display:flex}.blocks-app .extra-limit-package-modal__pay-btn-wrap--card{flex:.88}.blocks-app .extra-limit-package-modal__pay-btn-wrap--invoice{flex:1.12}.blocks-app .extra-limit-package-modal__pay-btn{width:100%;min-width:0;height:auto;min-height:32px;box-shadow:none;white-space:nowrap;text-align:center;border-radius:6px;flex:1;justify-content:center;align-items:center;gap:4px;padding:8px 10px;font-size:14px;font-weight:400;line-height:1.25;display:inline-flex}.blocks-app .extra-limit-package-modal__pay-btn .anticon{flex-shrink:0}.blocks-app .extra-limit-package-modal__pay-btn--card.ant-btn-primary{color:#fff;background:#2884ff;border-color:#2884ff}.blocks-app .extra-limit-package-modal__pay-btn--card.ant-btn-primary:hover:not(:disabled){background:#1a75f0;border-color:#1a75f0}.blocks-app .extra-limit-package-modal__pay-btn--card.ant-btn-primary:disabled{opacity:.5}.blocks-app .extra-limit-package-modal__pay-btn--invoice.ant-btn-default{border-color:var(--colorBorder);color:var(--colorText);background:var(--colorBgContainer);white-space:nowrap;padding:8px;font-size:13px}.blocks-app .extra-limit-package-modal__pay-btn--invoice.ant-btn-default .ant-btn-icon+span{white-space:nowrap}.blocks-app .extra-limit-package-modal__pay-btn--invoice.ant-btn-default:hover:not(:disabled){color:#2884ff;border-color:#2884ff}.blocks-app .extra-limit-package-modal__pay-btn--invoice.ant-btn-default:disabled{opacity:.5}.blocks-app .extra-limit-package-modal__card-logos{flex-direction:column;align-self:center;align-items:center;width:100%;max-width:320px;display:flex}.blocks-app .billing-banner-modal.ant-modal{max-width:calc(100vw - 24px)}.blocks-app .billing-banner-modal .ant-modal-content{border-radius:16px;padding:0;overflow:hidden;box-shadow:0 12px 24px -4px #191d3a14}.blocks-app .billing-banner-modal .ant-modal-header{display:none}.blocks-app .billing-banner-modal .ant-modal-content .ant-modal-body{padding:0}.blocks-app .billing-banner-modal__wrap{background:var(--colorBgContainer);flex-direction:column;align-items:center;width:400px;max-width:100%;display:flex}.blocks-app .billing-banner-modal__header{box-sizing:border-box;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;min-height:34px;padding:8px 8px 0;display:flex}.blocks-app .billing-banner-modal__close{background:var(--colorBgContainer);width:34px;height:34px;color:var(--colorTextSecondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;margin:0;padding:0;transition:background .15s,color .15s;display:flex}.blocks-app .billing-banner-modal__close:hover{background:var(--colorFillTertiary);color:var(--colorText)}.blocks-app .billing-banner-modal__close .anticon{font-size:16px}.blocks-app .billing-banner-modal__body{box-sizing:border-box;flex-direction:column;align-items:center;gap:16px;width:100%;padding:0 40px 24px;display:flex}.blocks-app .billing-banner-modal__title{text-align:center;max-width:320px;color:var(--colorText);margin:0;font-size:18px;font-weight:400;line-height:100%}.blocks-app .billing-banner-modal__subtitle{text-align:center;max-width:320px;color:var(--colorTextSecondary);margin:0;font-size:14px;font-weight:100;line-height:120%}.blocks-app .billing-banner-modal__banner{isolation:isolate;box-sizing:border-box;border-radius:8px;flex-direction:row;align-items:flex-start;gap:16px;width:100%;max-width:320px;min-height:98px;padding:16px;display:flex;position:relative;overflow:hidden}.blocks-app .billing-banner-modal__banner--accent,.blocks-app .billing-banner-modal__banner--warning{background:#8946fb}.blocks-app .billing-banner-modal__banner--warning:before{content:"";opacity:.4;filter:blur(60px);z-index:0;pointer-events:none;background:#f85243;border-radius:50%;width:335px;height:335px;position:absolute;top:50%;right:-167px;transform:translateY(-50%)}.blocks-app .billing-banner-modal__banner--success{background:#c4b5fd}.blocks-app .billing-banner-modal__banner--ai-usage-center{flex-direction:column;justify-content:center;align-items:center;min-height:98px;padding:16px 8px}.blocks-app .billing-banner-modal__banner--package-bonus{flex-direction:column;justify-content:center;align-items:center;gap:40px;height:auto;min-height:86px;padding:23px 8px}.blocks-app .billing-banner-modal__banner-inner{z-index:1;flex-direction:row;align-items:flex-start;gap:16px;width:100%;display:flex;position:relative}.blocks-app .billing-banner-modal__banner-inner--center{justify-content:center;align-items:center}.blocks-app .billing-banner-modal__plan-col{flex-direction:column;flex:1;align-items:flex-start;gap:8px;min-width:0;display:flex}.blocks-app .billing-banner-modal__plan-name{color:#fff;margin:0;font-size:18px;font-weight:400;line-height:100%}.blocks-app .billing-banner-modal__date-row{flex-flow:wrap;align-content:flex-start;align-items:flex-start;column-gap:4px;font-size:14px;line-height:19px;display:flex}.blocks-app .billing-banner-modal__date-label{color:#e6f4ff;font-weight:100}.blocks-app .billing-banner-modal__date-value{color:#fff;font-weight:400}.blocks-app .billing-banner-modal__remaining-label{color:#e6f4ff;margin:0;font-size:18px;font-weight:400;line-height:100%}.blocks-app .billing-banner-modal__remaining-row{flex-direction:row;align-items:flex-end;gap:8px;display:flex}.blocks-app .billing-banner-modal__days-number{color:#fff;font-size:40px;font-weight:100;line-height:100%}.blocks-app .billing-banner-modal__days-unit{color:#e6f4ff;padding-bottom:4px;font-size:14px;font-weight:100;line-height:19px}.blocks-app .billing-banner-modal__icon-circle{color:#fff;border:1px solid #ffffffd9;border-radius:32px;flex:none;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.blocks-app .billing-banner-modal__icon-circle .anticon{font-size:18px}.blocks-app .billing-banner-modal__ai-metric-row{flex-flow:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.blocks-app .billing-banner-modal__ai-metric-num{color:#fff;font-size:40px;font-weight:400;line-height:100%}.blocks-app .billing-banner-modal__ai-metric-of{color:#e6f4ff;white-space:nowrap;flex:none;font-size:14px;font-style:normal;font-weight:100;line-height:19px}.blocks-app .billing-banner-modal__package-row{z-index:1;flex-direction:row;justify-content:center;align-items:center;gap:8px;width:auto;display:flex;position:relative}.blocks-app .billing-banner-modal__package-plus-sign{color:#fff;justify-content:center;align-items:center;min-width:26px;font-size:40px;font-weight:300;line-height:100%;display:flex}.blocks-app .billing-banner-modal__package-amount{color:#fff;align-items:center;min-width:0;font-size:40px;font-weight:600;line-height:100%;display:flex}.blocks-app .billing-banner-modal__icon-circle--package{border:1px solid #fff;border-radius:38px;width:34px;height:34px;padding:8px}.blocks-app .billing-banner-modal__icon-circle--package .anticon{font-size:16px}.blocks-app .billing-banner-modal__divider{border:none;border-top:1px solid var(--colorBorderSecondary);width:100%;height:0;margin:0}.blocks-app .billing-banner-modal__footer{box-sizing:border-box;flex-direction:row;justify-content:center;align-items:flex-start;gap:10px;width:100%;padding:16px 40px;display:flex}.blocks-app .billing-banner-modal__footer .billing-banner-modal__btn-pay.ant-btn-primary{box-sizing:border-box;max-width:100%;height:auto;min-height:32px;box-shadow:none;white-space:normal;background:#2884ff;border-color:#2884ff;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:400;line-height:1.2}.blocks-app .billing-banner-modal__footer .billing-banner-modal__btn-pay.ant-btn-primary:hover{background:#1a75f0;border-color:#1a75f0}.blocks-app .billing-banner-modal__footer:not(.billing-banner-modal__footer--pay-single) .billing-banner-modal__btn-pay.ant-btn-primary{width:auto;min-width:99px}.blocks-app .billing-banner-modal__footer--dual{flex-wrap:wrap;justify-content:space-between;align-items:center}.blocks-app .billing-banner-modal__footer--pay-single{align-items:center}.blocks-app .billing-banner-modal__footer--pay-single .billing-banner-modal__btn-pay.ant-btn-primary{flex:0 auto;align-self:center;width:auto;min-width:99px}.blocks-app .billing-banner-modal__btn-autopay.ant-btn-default{border-color:var(--colorBorder);width:206px;min-width:34px;height:32px;color:var(--colorText);background:var(--colorBgContainer);box-shadow:none;border-radius:6px;justify-content:center;align-items:center;gap:4px;padding:8px 16px;font-size:14px;font-weight:400;line-height:19px;display:inline-flex}.blocks-app .billing-banner-modal__btn-autopay.ant-btn-default:hover{color:#2884ff;border-color:#2884ff}.blocks-app .billing-banner-modal__btn-autopay.ant-btn-default .anticon{font-size:16px}.blocks-app .billing-banner-modal__footer--single .billing-banner-modal__btn-autopay.ant-btn-default{width:206px;min-width:206px}.blocks-app .billing-banner-modal__footer--package-single{flex-direction:column;justify-content:center;align-items:center;padding:16px 0}.blocks-app .plan-checkout-choice-modal.ant-modal{max-width:calc(100vw - 24px)}.blocks-app .plan-checkout-choice-modal .ant-modal-content{border-radius:16px;padding:0;overflow:hidden;box-shadow:0 12px 24px -4px #191d3a14}.blocks-app .plan-checkout-choice-modal .ant-modal-header{display:none}.blocks-app .plan-checkout-choice-modal .ant-modal-content .ant-modal-body{padding:0}.blocks-app .plan-checkout-choice-modal__wrap{background:var(--colorBgContainer);flex-direction:column;align-items:center;width:400px;max-width:100%;display:flex}.blocks-app .plan-checkout-choice-modal__header{box-sizing:border-box;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;min-height:34px;padding:8px 8px 0;display:flex}.blocks-app .plan-checkout-choice-modal__close{background:var(--colorBgContainer);width:34px;height:34px;color:var(--colorTextSecondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;margin:0;padding:0;transition:background .15s,color .15s;display:flex}.blocks-app .plan-checkout-choice-modal__close:hover{background:var(--colorFillTertiary);color:var(--colorText)}.blocks-app .plan-checkout-choice-modal__close .anticon{font-size:16px}.blocks-app .plan-checkout-choice-modal__body{box-sizing:border-box;flex-direction:column;align-items:center;gap:16px;width:100%;padding:0 40px 24px;display:flex}.blocks-app .plan-checkout-choice-modal__title{text-align:center;width:100%;max-width:320px;color:var(--colorText);margin:0;font-size:18px;font-weight:600;line-height:100%}.blocks-app .plan-checkout-choice-modal__subtitle{text-align:center;width:100%;max-width:320px;color:var(--colorTextSecondary);margin:0;font-size:14px;font-weight:100;line-height:120%}.blocks-app .plan-checkout-choice-modal__plan-card{box-sizing:border-box;background:var(--colorFillQuaternary);border-radius:8px;flex-direction:column;align-items:stretch;gap:16px;width:100%;padding:16px 24px;display:flex}.blocks-app .plan-checkout-choice-modal__plan-name{color:#8946fb;margin:0;font-size:18px;font-weight:400;line-height:100%}.blocks-app .plan-checkout-choice-modal__feature-list{flex-direction:column;gap:8px;width:100%;margin:0;padding:0;list-style:none;display:flex}.blocks-app .plan-checkout-choice-modal__feature-item{flex-direction:row;align-items:center;gap:8px;margin:0;padding:0;display:flex}.blocks-app .plan-checkout-choice-modal__feature-check{background:var(--colorBgContainer);border-radius:16px;flex-shrink:0;justify-content:center;align-items:center;padding:4px;display:flex}.blocks-app .plan-checkout-choice-modal__feature-check-icon{color:#52c41a;font-size:8px}.blocks-app .plan-checkout-choice-modal__feature-text{min-width:0;color:var(--colorText);flex:auto;font-size:14px;font-weight:100;line-height:normal}.blocks-app .plan-checkout-choice-modal__divider{border:none;border-top:1px solid var(--colorBorderSecondary);width:100%;height:0;margin:0}.blocks-app .plan-checkout-choice-modal__footer{box-sizing:border-box;flex-direction:column;align-items:stretch;gap:16px;width:100%;padding:16px 40px 32px;display:flex}.blocks-app .plan-checkout-choice-modal__payment-label{text-align:center;width:100%;max-width:320px;color:var(--colorText);align-self:center;margin:0;font-size:18px;font-weight:400;line-height:1.2}.blocks-app .plan-checkout-choice-modal__payment-buttons{flex-flow:wrap;align-items:center;gap:10px;width:100%;display:flex}.blocks-app .plan-checkout-choice-modal__pay-btn-wrap{flex:1;justify-content:center;min-width:0;display:flex}.blocks-app .plan-checkout-choice-modal__pay-btn-wrap--card{flex:.88}.blocks-app .plan-checkout-choice-modal__pay-btn-wrap--invoice{flex:1.12}.blocks-app .plan-checkout-choice-modal__pay-btn{width:100%;min-width:0;height:auto;min-height:32px;box-shadow:none;white-space:nowrap;text-align:center;border-radius:6px;flex:1;justify-content:center;align-items:center;gap:4px;padding:8px 10px;font-size:14px;font-weight:400;line-height:1.25;display:inline-flex}.blocks-app .plan-checkout-choice-modal__pay-btn .anticon{flex-shrink:0;font-size:16px}.blocks-app .plan-checkout-choice-modal__pay-btn--primary.ant-btn-primary{color:#fff;background:#2884ff;border-color:#2884ff}.blocks-app .plan-checkout-choice-modal__pay-btn--primary.ant-btn-primary:hover:not(:disabled){background:#1a75f0;border-color:#1a75f0}.blocks-app .plan-checkout-choice-modal__pay-btn--primary.ant-btn-primary:disabled{opacity:.5}.blocks-app .plan-checkout-choice-modal__pay-btn--outline.ant-btn-default{border-color:var(--colorBorder);color:var(--colorText);background:var(--colorBgContainer);white-space:nowrap;padding:8px;font-size:13px}.blocks-app .plan-checkout-choice-modal__pay-btn--outline.ant-btn-default .ant-btn-icon+span{white-space:nowrap}.blocks-app .plan-checkout-choice-modal__pay-btn--outline.ant-btn-default:hover:not(:disabled){color:#2884ff;border-color:#2884ff}.blocks-app .tariff-invoice-request-modal.ant-modal{max-width:calc(100vw - 24px)}.blocks-app .tariff-invoice-request-modal .ant-modal-content{max-width:100%;overflow:hidden}.blocks-app .tariff-invoice-request-modal .ant-modal-body{box-sizing:border-box;max-height:min(78vh,720px);padding:12px 24px 16px 0;overflow:hidden auto}.blocks-app .tariff-invoice-request-modal .ant-modal-footer{flex-wrap:wrap}.blocks-app .tariff-invoice-request-modal .ant-form{max-width:100%}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();__emailmaker__.define(`static/core/1533d54f.js`,`require,exports,module,static/core/68277bd8.js,static/core/f246e3aa.js,static/core/a1a8a556.js,static/core/de9b2072.js,static/core/bc353e4f.js,static/core/c12270fa2.js,static/core/35624a31.js,static/core/7692b5d1.js,static/core/5949a3cd2.js,static/core/549d710f.js,static/core/1f86e870.js,static/core/c0a64fe8.js,static/core/a15add90.js,static/core/42aed026.js,static/core/3e187db3.js,react,prop-types,react-dom,react-router-dom,react/jsx-runtime,antd,react-dom/client,classnames,@ant-design/icons,dayjs`.split(`,`),function(e,t,n){let r=e(`./68277bd8.js`),i=e(`./35624a31.js`),a=e(`./1f86e870.js`),o=e(`./549d710f.js`),s=e(`./f246e3aa.js`),c=e(`./de9b2072.js`),l=e(`./bc353e4f.js`),u=e(`./3e187db3.js`),d=e(`./c12270fa2.js`),f=e(`./5949a3cd2.js`),p=e(`./7692b5d1.js`),m=e(`./a15add90.js`),h=e(`./42aed026.js`),g=e(`./c0a64fe8.js`),_=e(`./a1a8a556.js`),v=e(`react`),y=r.l(v,1);v=r.l(v);let b=e(`prop-types`);b=r.l(b);let x=e(`react-dom`);x=r.l(x);let S=e(`react-router-dom`),C=e(`react/jsx-runtime`),w=e(`antd`),T=e(`react-dom/client`),E=e(`classnames`);E=r.l(E);let D=e(`@ant-design/icons`),O=e(`dayjs`);O=r.l(O);let k=e(`@ant-design/cssinjs`);var A=Function(`url`,`return import(url)`);function j(e){if(typeof e!=`function`)return!1;try{return Reflect.construct(String,[],e),!0}catch{return!1}}function M(e){return typeof e==`object`&&!!e&&`type`in e&&`url`in e}function N(e){return e}var P=class{_map=new Map;_optionsMap=new Map;_readyMap=new Map;_resolveMap=new Map;_initializingPlugins=new Map;_creatingPlugins=new Set;_initializedPlugins=new Set;_creationOrder=[];_lifecycleListeners=new Set;_activated=!1;constructor(e,t){this._context=e,this._pluginRegistry=t}activate(){return this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}activateSync(){this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}onLifecycle(e){return this._lifecycleListeners.add(e),{dispose:()=>this._lifecycleListeners.delete(e)}}_emitLifecycle(e){for(let t of Array.from(this._lifecycleListeners))try{t(e)}catch{}}async _resolveEntry(e){if(typeof e==`string`||typeof e==`symbol`){let t=await this._pluginRegistry.getAsync(e);if(!t)throw Error(`Plugin "${String(e)}" not registered.`);return{ctor:t}}if(typeof e==`function`)return e.length===0?{ctor:await e()}:{ctor:e};if(Array.isArray(e)){let[t,n]=e;if(typeof t==`function`)return{ctor:t,options:n};let r=await this._pluginRegistry.getAsync(t);if(!r)throw Error(`Plugin "${String(t)}" not registered.`);return{ctor:r,options:n}}if(M(e))return this._resolveDescriptor(e);throw Error(`Unknown plugin entry format: ${JSON.stringify(e)}`)}async _resolveDescriptor(e){let t=e.resolve??(e.type===`umd`?`window`:`module`);if(e.type===`esm`){let n=await A(e.url);if(t===`module`)return{ctor:n.default??n};if(t===`registry`&&e.name){let t=await this._pluginRegistry.getAsync(e.name);if(!t)throw Error(`Plugin "${e.name}" not found in registry after ESM load`);return{ctor:t}}}if(e.type===`umd`){if(await this._loadScript(e.url),t===`window`&&e.name){let t=globalThis[e.name];if(!t)throw Error(`Plugin "${e.name}" not found on window after script load`);return{ctor:t}}if(t===`registry`&&e.name){let t=await this._pluginRegistry.getAsync(e.name);if(!t)throw Error(`Plugin "${e.name}" not found in registry after script load`);return{ctor:t}}}throw Error(`Cannot resolve descriptor: type=${e.type}, resolve=${t}, name=${e.name??`none`}`)}_loadScript(e){return new Promise((t,n)=>{if(typeof document>`u`){n(Error(`Cannot load UMD script in non-browser environment`));return}let r=document.createElement(`script`);r.src=e,r.onload=()=>t(),r.onerror=()=>n(Error(`Failed to load script: ${e}`)),document.head.appendChild(r)})}initSync(e){let t=[];for(let n of e){let e=this._getOrCreate(n,void 0);t.push(e)}this._activated=!0,this._startPluginsBatch(t)}async init(e){let t=[],n=new Set;for(let r of e){let{ctor:e,options:i}=await this._resolveEntry(r),a=this._getOrCreate(e,i);n.has(a)||(n.add(a),t.push(a))}this._activated=!0,await this._startPluginsBatch(t)}async setPlugins(e){let t=new Set,n=[];for(let r of e){let e=await this._resolveEntry(r);t.add(e.ctor),n.push(e)}let r=[];this._map.forEach((e,n)=>{t.has(n)||r.push({key:n,plugin:e})});for(let e=r.length-1;e>=0;e--){let{key:t,plugin:n}=r[e];await this._initializingPlugins.get(n),await this._disposePlugin(n,n.constructor.name),this._map.delete(t),this._optionsMap.delete(t),this._readyMap.delete(n),this._resolveMap.delete(n),this._initializingPlugins.delete(n),this._initializedPlugins.delete(n);let i=this._creationOrder.indexOf(n);i>=0&&this._creationOrder.splice(i,1)}let i=[],a=new Set;for(let{ctor:e,options:t}of n){let n=this._getOrCreate(e,t);a.has(n)||(a.add(n),i.push(n))}this._activated=!0,await this._startPluginsBatch(i)}isReady(e){return this._initializedPlugins.has(e)}ready(e){return this._initializingPlugins.get(e)??this._readyMap.get(e)??Promise.resolve()}async waitFor(e,t){if(this._pluginRegistry.has(e))return this.useByKeyAsync(e);let{timeout:n}=t??{};return await new Promise((t,r)=>{let i,a=!1,o=()=>{a||(a=!0,i&&clearTimeout(i),this._pluginRegistry.off(e,o),t())};this._pluginRegistry.on(e,o),n!==void 0&&n>0&&(i=setTimeout(()=>{a||(a=!0,this._pluginRegistry.off(e,o),r(Error(`waitFor("${String(e)}") timed out after ${n}ms`)))},n))}),this.useByKeyAsync(e)}useByKey(e){let t=this._pluginRegistry.get(e);if(!t)throw Error(`Plugin "${String(e)}" not registered or not loaded yet. Use useByKeyAsync() for async plugins.`);let n=this._getOrCreate(t);return this._activated&&this._startPluginsBatch([n]),n}async useByKeyAsync(e){let t=await this._pluginRegistry.getAsync(e);if(!t)throw Error(`Plugin "${String(e)}" not registered.`);let n=this._getOrCreate(t);return this._activated&&await this._startPluginsBatch([n]),n}useByCtor(e,t){let n=this._getOrCreate(e,t);return this._activated&&this._startPluginsBatch([n]),n}use(e){return typeof e==`function`?this.useByCtor(e):this.useByKey(e)}async useAsync(e){let{ctor:t,options:n}=await this._resolveEntry(e),r=this._getOrCreate(t,n);return this._activated&&await this._startPluginsBatch([r]),r}_getOrCreate(e,t){let n=e;if(!this._map.has(n)){t!==void 0&&this._optionsMap.set(n,t);let r=this._optionsMap.get(n),i=this._createPluginInstance(e,r),a=i.constructor.name;this._emitLifecycle({type:`created`,plugin:i,name:a}),N(i).required?.(),this._map.set(n,i),this._creationOrder.push(i),this._setupReadyPromise(i)}return this._map.get(n)}_createPluginInstance(e,t){let n=e;if(this._creatingPlugins.has(n))throw Error(`Cyclic dependency for plugin ${e.name}`);this._creatingPlugins.add(n);try{return j(e)?new e(this._context,t):e(this._context,t)||{}}finally{this._creatingPlugins.delete(n)}}_setupReadyPromise(e){let t=new Promise(t=>{this._resolveMap.set(e,t)});this._readyMap.set(e,t)}async _startPluginsBatch(e){let t=Array.from(new Set(e)),n=new Set,r=[];for(let e of t){if(this._initializedPlugins.has(e))continue;let t=this._initializingPlugins.get(e);if(t){n.add(t);continue}r.push(e)}if(r.length>0){let e=this._runBatchLifecycle(r);for(let t of r)this._initializingPlugins.set(t,e);n.add(e),e.finally(()=>{for(let t of r)this._initializingPlugins.get(t)===e&&this._initializingPlugins.delete(t)})}await Promise.all(n)}async _runBatchLifecycle(e){let t=[];for(let n of e){let e=n.constructor.name;this._emitLifecycle({type:`init:start`,plugin:n,name:e});try{await N(n).init?.(),this._emitLifecycle({type:`init:success`,plugin:n,name:e}),t.push(n)}catch(t){this._emitLifecycle({type:`init:error`,plugin:n,name:e,error:t})}}for(let e of t){let t=e.constructor.name;this._emitLifecycle({type:`afterInit:start`,plugin:e,name:t});try{await N(e).afterInit?.(),this._emitLifecycle({type:`afterInit:success`,plugin:e,name:t})}catch(n){this._emitLifecycle({type:`afterInit:error`,plugin:e,name:t,error:n})}}for(let t of e)this._initializedPlugins.add(t),this._resolveMap.get(t)?.(),this._resolveMap.delete(t)}async _disposePlugin(e,t){this._emitLifecycle({type:`dispose:start`,plugin:e,name:t});try{await N(e).dispose?.(),this._emitLifecycle({type:`dispose:success`,plugin:e,name:t})}catch(n){this._emitLifecycle({type:`dispose:error`,plugin:e,name:t,error:n})}}async dispose(){for(let e=this._creationOrder.length-1;e>=0;e--){let t=this._creationOrder[e];await this._initializingPlugins.get(t),await this._disposePlugin(t,t.constructor.name)}this._map.clear(),this._optionsMap.clear(),this._readyMap.clear(),this._resolveMap.clear(),this._initializingPlugins.clear(),this._initializedPlugins.clear(),this._creationOrder.length=0,this._lifecycleListeners.clear()}getStatus(){return Array.from(this._map.values()).map(e=>({name:e.constructor.name,initialized:this._initializedPlugins.has(e)}))}};function F(e){i.it(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||c.i(e)===`object`&&t===`[object Date]`?new Date(e.getTime()):typeof e==`number`||t===`[object Number]`?new Date(e):new Date(NaN)}var I=({size:e=24,color:t=`currentColor`,...n})=>y.createElement(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,stroke:t,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...n},y.createElement(`path`,{d:`M22 11.086v.92a10 10 0 1 1-5.93-9.14M22 4 12 14.01l-3-3`}));I.displayName=`CheckCircleBroken`;var L=({size:e=24,color:t=`currentColor`,...n})=>y.createElement(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,stroke:t,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...n},y.createElement(`path`,{d:`m6 6 2-2m0 0L6 2m2 2H6a4 4 0 0 0-4 4m16 10-2 2m0 0 2 2m-2-2h2a4 4 0 0 0 4-4M10.189 6.5a6 6 0 1 1 7.311 7.311M14 16a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z`}));L.displayName=`CoinsSwap02`;var R=document.querySelectorAll(`link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]`),z=document.querySelectorAll(`link[rel=stylesheet][media*=prefers-color-scheme][media*=light]`),B=e=>{if(typeof e!=`string`)return!1;let t=e.trim();return t.length>0&&!/\s/.test(t)},V=e=>{let t,n;e===`system`?(t=i.oi,n=i.ai):(t=e===`light`?`all`:i.ei,n=e===`dark`?`all`:i.ei),[...z].forEach(e=>{e.media=t}),[...R].forEach(e=>{e.media=n})},H=(e={})=>{let t=document.querySelector(`head`),n=document.createElement(`style`);if(n.type=`text/css`,n.dataset.themeVaribalse=!0,n.setAttribute(`data-emailmaker`,`true`),Object.entries(e).length){let r=``;Object.entries(e).forEach(([e,t])=>{typeof t!=`object`&&(r+=`\t--${e}: ${t};\n`)}),r=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${r}}`,n.appendChild(document.createTextNode(r));let i=t.querySelector(`[data-theme-varibalse="true"]`);i?t.replaceChild(n,i):t.insertBefore(n,t.firstChild)}},ee=e=>{if(!B(e))return;let t=e.trim(),n=document.body;n.classList.contains(t)||setTimeout(()=>{n.classList.remove(t===`dark`?i.qr:i.Ar),n.classList.add(t)},200)},U=()=>{let e=i.et();return(0,v.useCallback)(()=>{let t=window.localStorage.getItem(i.Yr.em_color_scheme),n=matchMedia(`(prefers-color-scheme: dark)`).matches?i.Ar:i.qr,r=t||n;e({operation:i.Wr.UPDATE_PREVIEW,theme:r})},[e])},W={defaultMerge:Symbol(`deepmerge-ts: default merge`),skip:Symbol(`deepmerge-ts: skip`)};W.defaultMerge;function G(e,t){return t}function K(e){return typeof e!=`object`||!e?0:Array.isArray(e)?2:X(e)?1:e instanceof Set?3:e instanceof Map?4:5}function q(e){let t=new Set;for(let n of e)for(let e of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(e);return t}function J(e,t){return typeof e==`object`&&Object.prototype.propertyIsEnumerable.call(e,t)}function Y(e){return{*[Symbol.iterator](){for(let t of e)for(let e of t)yield e}}}var te=new Set([`[object Object]`,`[object Module]`]);function X(e){if(!te.has(Object.prototype.toString.call(e)))return!1;let{constructor:t}=e;if(t===void 0)return!0;let n=t.prototype;return!(typeof n!=`object`||!n||!te.has(Object.prototype.toString.call(n))||!n.hasOwnProperty(`isPrototypeOf`))}function ne(e,t,n){let r={};for(let i of q(e)){let a=[];for(let t of e)J(t,i)&&a.push(t[i]);if(a.length===0)continue;let o=ue(a,t,t.metaDataUpdater(n,{key:i,parents:e}));o!==W.skip&&(i===`__proto__`?Object.defineProperty(r,i,{value:o,configurable:!0,enumerable:!0,writable:!0}):r[i]=o)}return r}function re(e){return e.flat()}function ie(e){return new Set(Y(e))}function ae(e){return new Map(Y(e))}function oe(e){return e.at(-1)}var Z=Object.freeze({__proto__:null,mergeArrays:re,mergeMaps:ae,mergeOthers:oe,mergeRecords:ne,mergeSets:ie});function se(...e){return ce({})(...e)}function ce(e,t){let n=le(e,r);function r(...e){return ue(e,n,t)}return r}function le(e,t){return{defaultMergeFunctions:Z,mergeFunctions:{...Z,...Object.fromEntries(Object.entries(e).filter(([e,t])=>Object.hasOwn(Z,e)).map(([e,t])=>t===!1?[e,oe]:[e,t]))},metaDataUpdater:e.metaDataUpdater??G,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,actions:W}}function ue(e,t,n){if(e.length===0)return;if(e.length===1)return he(e,t,n);let r=K(e[0]);if(r!==0&&r!==5){for(let i=1;i<e.length;i++)if(K(e[i])!==r)return he(e,t,n)}switch(r){case 1:return de(e,t,n);case 2:return fe(e,t,n);case 3:return pe(e,t,n);case 4:return me(e,t,n);default:return he(e,t,n)}}function de(e,t,n){let r=t.mergeFunctions.mergeRecords(e,t,n);return r===W.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function fe(e,t,n){let r=t.mergeFunctions.mergeArrays(e,t,n);return r===W.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function pe(e,t,n){let r=t.mergeFunctions.mergeSets(e,t,n);return r===W.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function me(e,t,n){let r=t.mergeFunctions.mergeMaps(e,t,n);return r===W.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function he(e,t,n){let r=t.mergeFunctions.mergeOthers(e,t,n);return r===W.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}var ge=({children:e})=>{let[t,n]=(0,v.useState)([]),r=p.m(i.ua),a=p.m(i.la),o=p.m(i.da),s=i.X(),c=(0,v.useCallback)(e=>{n(t=>e===void 0?[]:t.filter(t=>t.id!==e))},[n]),l=(0,v.useCallback)(e=>{n(t=>{let n=t.find(t=>t.id===e.id);return n?t.map(e=>e===n?{...e,...n}:e):[...t,{...e,visible:!0}]})},[n]),u=(0,v.useCallback)(e=>{n(t=>{let n=t.find(t=>t.id===e.id);return n?t.map(e=>e===n?{...e,...n}:e):t})},[n]),d=(0,v.useCallback)(()=>s,[s]);return(0,v.useEffect)(()=>{let e=new i.Da;return e.addDisposable(r(l)),e.addDisposable(o(u)),e.addDisposable(a(c)),()=>e.dispose()},[r,a,o,l,c,u]),(0,C.jsxs)(C.Fragment,{children:[t.map(({id:e,content:t,props:n,visible:r,onOk:i,onClose:a,modalProps:o,...s})=>(0,C.jsx)(w.Modal,{open:r,onCancel:()=>c(e),onOk:async()=>{i&&await i(),c(e)},afterClose:a,getContainer:d,...o,...s,children:typeof t==`function`?v.default.createElement(t,n):t},e)),e]})},_e=p.zt(),ve={colorDarken1:`rgba(0, 0, 0, 0.08)`,colorFillSecondaryDarken:`rgba(0, 0, 0, 0.1)`,formControlHeight:34,borderWidth:1,borderColorHover:`#C5C5C5`,formItemMarginBottomMD:20,formItemMarginBottomXS:8,colorSecondaryH:265.03,colorSecondaryS:`63.92%`,colorSecondaryL:`50%`,colorSecondaryBgH:273,colorSecondaryBgS:`100%`,colorSecondaryBgL:`93%`,appZoom:1},ye={colorDarken1:`rgba(0, 0, 0, 0.9)`,colorFillSecondaryDarken:`rgba(255, 255, 255, 0.16)`,formControlHeight:34,borderWidth:1,borderColorHover:`rgba(255, 255, 255, 0.3)`,formItemMarginBottomMD:20,formItemMarginBottomXS:8,appZoom:1},be=se(p.Ut,{token:ve}),xe=se(p.Ht,{token:ye});function Se({children:e}){let t=i.cr(u.S),n=i.cr(i.n),r=window.localStorage.getItem(i.Yr.em_color_scheme),a=matchMedia(`(prefers-color-scheme: dark)`).matches?i.Ar:i.qr,[o,s]=(0,v.useState)(r||a),c=i.Wt(),l=i.lr(),d=U();(0,v.useEffect)(()=>{let e=i.ii.isPlugin?n?.theme:r||a;s(e),ee(e),l(u.I(e===`dark`?`vs-${e}`:i.qr)),d()},[r,t,a,n?.theme,c.pathEnabled,l,d]);let f=(0,v.useCallback)(e=>{e&&e!==`system`?(V(e),localStorage.setItem(i.Yr.em_color_scheme,e)):localStorage.removeItem(i.Yr.em_color_scheme)},[]);(0,v.useEffect)(()=>{let e=n?.theme,t=localStorage.getItem(i.Yr.em_color_scheme);e&&e!==t&&f(e)},[n,f]);let h=(0,v.useCallback)(()=>{f(localStorage.getItem(i.Yr.em_color_scheme))},[f]);(0,v.useEffect)(()=>{h()},[h]);let g=i.cr(i.Ft),[_,y]=(0,v.useState)(o===`light`?be:xe),[b]=(0,v.useState)(1);(0,v.useEffect)(()=>{let e=o===`light`?be:xe,t=g[o],n=t?se(e,t):e;y({...n,token:{...n.token,appZoom:b}})},[y,o,g,b]);let x=i.X();return(0,C.jsx)(p.Bt,{theme:_,getPopupContainer:(0,v.useCallback)(()=>x,[x]),children:(0,C.jsx)(k.StyleProvider,{transformers:[_e],children:(0,C.jsx)(ge,{children:(0,C.jsx)(p.Wt,{children:(0,C.jsx)(m.n,{children:e})})})})})}var Ce=({onLoad:e,children:t})=>{(0,v.useEffect)(()=>{e&&e()},[e]);let n=i.lr();return(0,v.useMemo)(()=>n(i.Gt.endpoints.getMe.initiate({})),[n]),t},we=r.a((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),Te=r.a((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),Ee=r.a((e=>{var t=we(),n=Te(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),s.TYPED_ARRAY_SUPPORT;function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){let t=e.length<0?0:_(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(Z(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){let t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||se(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(Z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(Z(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return ne(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return ae(e).length;default:if(i)return r?-1:ne(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return F(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return I(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(Z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,se(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(se(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return oe(ne(t,e.length-n),e,n,r)}function E(e,t,n,r){return oe(re(t),e,n,r)}function D(e,t,n,r){return oe(ae(t),e,n,r)}function O(e,t,n,r){return oe(ie(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return M(r)}var j=4096;function M(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=ce[e[r]];return i}function I(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function L(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=le(function(e){e>>>=0,J(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Y(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=le(function(e){e>>>=0,J(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Y(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=le(function(e){e>>>=0,J(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Y(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=le(function(e){e>>>=0,J(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Y(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!1,52,8)};function R(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;R(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;R(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function z(e,t,n,r,i){q(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function B(e,t,n,r,i){q(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=le(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=le(function(e,t=0){return B(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);R(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=le(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=le(function(e,t=0){return B(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function V(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function H(e,t,r,i,a){return t=+t,r>>>=0,a||V(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)};function ee(e,t,r,i,a){return t=+t,r>>>=0,a||V(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return ee(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return ee(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};var U={};function W(e,t,n){U[e]=class extends n{constructor(){super(),Object.defineProperty(this,`message`,{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,`code`,{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}W(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),W(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),W(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=G(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=G(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function G(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function K(e,t,n){J(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&Y(t,e.length-(n+1))}function q(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new U.ERR_OUT_OF_RANGE(`value`,i,e)}K(r,i,a)}function J(e,t){if(typeof e!=`number`)throw new U.ERR_INVALID_ARG_TYPE(t,`number`,e)}function Y(e,t,n){throw Math.floor(e)===e?t<0?new U.ERR_BUFFER_OUT_OF_BOUNDS:new U.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(J(e,n),new U.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}var te=/[^+/0-9A-Za-z-_]/g;function X(e){if(e=e.split(`=`)[0],e=e.trim().replace(te,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function ne(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function re(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function ie(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function ae(e){return t.toByteArray(X(e))}function oe(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function se(e){return e!==e}var ce=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function le(e){return typeof BigInt>`u`?ue:e}function ue(){throw Error(`BigInt not supported`)}})),De=r.a(((e,t)=>{s.n();var n=Ee(),r=n.Buffer,i={},a;for(a in n)n.hasOwnProperty(a)&&(a===`SlowBuffer`||a===`Buffer`||(i[a]=n[a]));var o=i.Buffer={};for(a in r)r.hasOwnProperty(a)&&(a===`allocUnsafe`||a===`allocUnsafeSlow`||(o[a]=r[a]));if(i.Buffer.prototype=r.prototype,(!o.from||o.from===Uint8Array.from)&&(o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type `+typeof e);if(e&&e.length===void 0)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);return r(e,t,n)}),o.alloc||=function(e,t,n){if(typeof e!=`number`)throw TypeError(`The "size" argument must be of type number. Received type `+typeof e);if(e<0||e>=2*(1<<30))throw RangeError(`The value "`+e+`" is invalid for option "size"`);var i=r(e);return!t||t.length===0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},!i.kStringMaxLength)try{i.kStringMaxLength=s.t.binding(`buffer`).kStringMaxLength}catch{}i.constants||(i.constants={MAX_LENGTH:i.kMaxLength},i.kStringMaxLength&&(i.constants.MAX_STRING_LENGTH=i.kStringMaxLength)),t.exports=i})),Oe=r.a((e=>{var t=``;e.PrependBOM=n;function n(e,t){this.encoder=e,this.addBOM=!0}n.prototype.write=function(e){return this.addBOM&&=(e=t+e,!1),this.encoder.write(e)},n.prototype.end=function(){return this.encoder.end()},e.StripBOM=r;function r(e,t){this.decoder=e,this.pass=!1,this.options=t||{}}r.prototype.write=function(e){var n=this.decoder.write(e);return this.pass||!n?n:(n[0]===t&&(n=n.slice(1),typeof this.options.stripBOM==`function`&&this.options.stripBOM()),this.pass=!0,n)},r.prototype.end=function(){return this.decoder.end()}})),ke=r.a(((e,t)=>{var n=Ee(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),Ae=r.a((e=>{var t=ke().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),je=r.a(((e,t)=>{var n=De().Buffer;t.exports={utf8:{type:`_internal`,bomAware:!0},cesu8:{type:`_internal`,bomAware:!0},unicode11utf8:`utf8`,ucs2:{type:`_internal`,bomAware:!0},utf16le:`ucs2`,binary:{type:`_internal`},base64:{type:`_internal`},hex:{type:`_internal`},_internal:r};function r(e,t){this.enc=e.encodingName,this.bomAware=e.bomAware,this.enc===`base64`?this.encoder=s:this.enc===`cesu8`&&(this.enc=`utf8`,this.encoder=c,n.from(`eda0bdedb2a9`,`hex`).toString()!==`💩`&&(this.decoder=l,this.defaultCharUnicode=t.defaultCharUnicode))}r.prototype.encoder=o,r.prototype.decoder=a;var i=Ae().StringDecoder;i.prototype.end||(i.prototype.end=function(){});function a(e,t){this.decoder=new i(t.enc)}a.prototype.write=function(e){return n.isBuffer(e)||(e=n.from(e)),this.decoder.write(e)},a.prototype.end=function(){return this.decoder.end()};function o(e,t){this.enc=t.enc}o.prototype.write=function(e){return n.from(e,this.enc)},o.prototype.end=function(){};function s(e,t){this.prevStr=``}s.prototype.write=function(e){e=this.prevStr+e;var t=e.length-e.length%4;return this.prevStr=e.slice(t),e=e.slice(0,t),n.from(e,`base64`)},s.prototype.end=function(){return n.from(this.prevStr,`base64`)};function c(e,t){}c.prototype.write=function(e){for(var t=n.alloc(e.length*3),r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?t[r++]=a:a<2048?(t[r++]=192+(a>>>6),t[r++]=128+(a&63)):(t[r++]=224+(a>>>12),t[r++]=128+(a>>>6&63),t[r++]=128+(a&63))}return t.slice(0,r)},c.prototype.end=function(){};function l(e,t){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=t.defaultCharUnicode}l.prototype.write=function(e){for(var t=this.acc,n=this.contBytes,r=this.accBytes,i=``,a=0;a<e.length;a++){var o=e[a];(o&192)==128?n>0?(t=t<<6|o&63,n--,r++,n===0&&(r===2&&t<128&&t>0||r===3&&t<2048?i+=this.defaultCharUnicode:i+=String.fromCharCode(t))):i+=this.defaultCharUnicode:(n>0&&(i+=this.defaultCharUnicode,n=0),o<128?i+=String.fromCharCode(o):o<224?(t=o&31,n=1,r=1):o<240?(t=o&15,n=2,r=1):i+=this.defaultCharUnicode)}return this.acc=t,this.contBytes=n,this.accBytes=r,i},l.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e}})),Me=r.a((e=>{var t=De().Buffer;e._utf32=n;function n(e,t){this.iconv=t,this.bomAware=!0,this.isLE=e.isLE}e.utf32le={type:`_utf32`,isLE:!0},e.utf32be={type:`_utf32`,isLE:!1},e.ucs4le=`utf32le`,e.ucs4be=`utf32be`,n.prototype.encoder=r,n.prototype.decoder=i;function r(e,t){this.isLE=t.isLE,this.highSurrogate=0}r.prototype.write=function(e){for(var n=t.from(e,`ucs2`),r=t.alloc(n.length*2),i=this.isLE?r.writeUInt32LE:r.writeUInt32BE,a=0,o=0;o<n.length;o+=2){var s=n.readUInt16LE(o),c=55296<=s&&s<56320,l=56320<=s&&s<57344;if(this.highSurrogate)if(c||!l)i.call(r,this.highSurrogate,a),a+=4;else{var u=(this.highSurrogate-55296<<10|s-56320)+65536;i.call(r,u,a),a+=4,this.highSurrogate=0;continue}c?this.highSurrogate=s:(i.call(r,s,a),a+=4,this.highSurrogate=0)}return a<r.length&&(r=r.slice(0,a)),r},r.prototype.end=function(){if(this.highSurrogate){var e=t.alloc(4);return this.isLE?e.writeUInt32LE(this.highSurrogate,0):e.writeUInt32BE(this.highSurrogate,0),this.highSurrogate=0,e}};function i(e,t){this.isLE=t.isLE,this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}i.prototype.write=function(e){if(e.length===0)return``;var n=0,r=0,i=t.alloc(e.length+4),o=0,s=this.isLE,c=this.overflow,l=this.badChar;if(c.length>0){for(;n<e.length&&c.length<4;n++)c.push(e[n]);c.length===4&&(r=s?c[n]|c[n+1]<<8|c[n+2]<<16|c[n+3]<<24:c[n+3]|c[n+2]<<8|c[n+1]<<16|c[n]<<24,c.length=0,o=a(i,o,r,l))}for(;n<e.length-3;n+=4)r=s?e[n]|e[n+1]<<8|e[n+2]<<16|e[n+3]<<24:e[n+3]|e[n+2]<<8|e[n+1]<<16|e[n]<<24,o=a(i,o,r,l);for(;n<e.length;n++)c.push(e[n]);return i.slice(0,o).toString(`ucs2`)};function a(e,t,n,r){if((n<0||n>1114111)&&(n=r),n>=65536){n-=65536;var i=55296|n>>10;e[t++]=i&255,e[t++]=i>>8;var n=56320|n&1023}return e[t++]=n&255,e[t++]=n>>8,t}i.prototype.end=function(){this.overflow.length=0},e.utf32=o,e.ucs4=`utf32`;function o(e,t){this.iconv=t}o.prototype.encoder=s,o.prototype.decoder=c;function s(e,t){e||={},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(e.defaultEncoding||`utf-32le`,e)}s.prototype.write=function(e){return this.encoder.write(e)},s.prototype.end=function(){return this.encoder.end()};function c(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}c.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<32)return``;var t=l(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var n=``,r=0;r<this.initialBufs.length;r++)n+=this.decoder.write(this.initialBufs[r]);return this.initialBufs.length=this.initialBufsLen=0,n}return this.decoder.write(e)},c.prototype.end=function(){if(!this.decoder){var e=l(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t=``,n=0;n<this.initialBufs.length;n++)t+=this.decoder.write(this.initialBufs[n]);var r=this.decoder.end();return r&&(t+=r),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function l(e,t){var n=[],r=0,i=0,a=0,o=0,s=0;outer_loop:for(var c=0;c<e.length;c++)for(var l=e[c],u=0;u<l.length;u++)if(n.push(l[u]),n.length===4){if(r===0){if(n[0]===255&&n[1]===254&&n[2]===0&&n[3]===0)return`utf-32le`;if(n[0]===0&&n[1]===0&&n[2]===254&&n[3]===255)return`utf-32be`}if((n[0]!==0||n[1]>16)&&a++,(n[3]!==0||n[2]>16)&&i++,n[0]===0&&n[1]===0&&(n[2]!==0||n[3]!==0)&&s++,(n[0]!==0||n[1]!==0)&&n[2]===0&&n[3]===0&&o++,n.length=0,r++,r>=100)break outer_loop}return s-a>o-i?`utf-32be`:s-a<o-i?`utf-32le`:t||`utf-32le`}})),Ne=r.a((e=>{var t=De().Buffer;e.utf16be=n;function n(){}n.prototype.encoder=r,n.prototype.decoder=i,n.prototype.bomAware=!0;function r(){}r.prototype.write=function(e){for(var n=t.from(e,`ucs2`),r=0;r<n.length;r+=2){var i=n[r];n[r]=n[r+1],n[r+1]=i}return n},r.prototype.end=function(){};function i(){this.overflowByte=-1}i.prototype.write=function(e){if(e.length==0)return``;var n=t.alloc(e.length+1),r=0,i=0;for(this.overflowByte!==-1&&(n[0]=e[0],n[1]=this.overflowByte,r=1,i=2);r<e.length-1;r+=2,i+=2)n[i]=e[r+1],n[i+1]=e[r];return this.overflowByte=r==e.length-1?e[e.length-1]:-1,n.slice(0,i).toString(`ucs2`)},i.prototype.end=function(){this.overflowByte=-1},e.utf16=a;function a(e,t){this.iconv=t}a.prototype.encoder=o,a.prototype.decoder=s;function o(e,t){e||={},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(`utf-16le`,e)}o.prototype.write=function(e){return this.encoder.write(e)},o.prototype.end=function(){return this.encoder.end()};function s(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}s.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<16)return``;var t=c(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var n=``,r=0;r<this.initialBufs.length;r++)n+=this.decoder.write(this.initialBufs[r]);return this.initialBufs.length=this.initialBufsLen=0,n}return this.decoder.write(e)},s.prototype.end=function(){if(!this.decoder){var e=c(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t=``,n=0;n<this.initialBufs.length;n++)t+=this.decoder.write(this.initialBufs[n]);var r=this.decoder.end();return r&&(t+=r),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function c(e,t){var n=[],r=0,i=0,a=0;outer_loop:for(var o=0;o<e.length;o++)for(var s=e[o],c=0;c<s.length;c++)if(n.push(s[c]),n.length===2){if(r===0){if(n[0]===255&&n[1]===254)return`utf-16le`;if(n[0]===254&&n[1]===255)return`utf-16be`}if(n[0]===0&&n[1]!==0&&a++,n[0]!==0&&n[1]===0&&i++,n.length=0,r++,r>=100)break outer_loop}return a>i?`utf-16be`:a<i?`utf-16le`:t||`utf-16le`}})),Pe=r.a((e=>{var t=De().Buffer;e.utf7=n,e.unicode11utf7=`utf7`;function n(e,t){this.iconv=t}n.prototype.encoder=i,n.prototype.decoder=a,n.prototype.bomAware=!0;var r=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function i(e,t){this.iconv=t.iconv}i.prototype.write=function(e){return t.from(e.replace(r,function(e){return`+`+(e===`+`?``:this.iconv.encode(e,`utf16-be`).toString(`base64`).replace(/=+$/,``))+`-`}.bind(this)))},i.prototype.end=function(){};function a(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=``}for(var o=/[A-Za-z0-9\/+]/,s=[],c=0;c<256;c++)s[c]=o.test(String.fromCharCode(c));var l=43,u=45,d=38;a.prototype.write=function(e){for(var n=``,r=0,i=this.inBase64,a=this.base64Accum,o=0;o<e.length;o++)if(!i)e[o]==l&&(n+=this.iconv.decode(e.slice(r,o),`ascii`),r=o+1,i=!0);else if(!s[e[o]]){if(o==r&&e[o]==u)n+=`+`;else{var c=a+this.iconv.decode(e.slice(r,o),`ascii`);n+=this.iconv.decode(t.from(c,`base64`),`utf16-be`)}e[o]!=u&&o--,r=o+1,i=!1,a=``}if(!i)n+=this.iconv.decode(e.slice(r),`ascii`);else{var c=a+this.iconv.decode(e.slice(r),`ascii`),d=c.length-c.length%8;a=c.slice(d),c=c.slice(0,d),n+=this.iconv.decode(t.from(c,`base64`),`utf16-be`)}return this.inBase64=i,this.base64Accum=a,n},a.prototype.end=function(){var e=``;return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(t.from(this.base64Accum,`base64`),`utf16-be`)),this.inBase64=!1,this.base64Accum=``,e},e.utf7imap=f;function f(e,t){this.iconv=t}f.prototype.encoder=p,f.prototype.decoder=m,f.prototype.bomAware=!0;function p(e,n){this.iconv=n.iconv,this.inBase64=!1,this.base64Accum=t.alloc(6),this.base64AccumIdx=0}p.prototype.write=function(e){for(var n=this.inBase64,r=this.base64Accum,i=this.base64AccumIdx,a=t.alloc(e.length*5+10),o=0,s=0;s<e.length;s++){var c=e.charCodeAt(s);32<=c&&c<=126?(n&&=(i>0&&(o+=a.write(r.slice(0,i).toString(`base64`).replace(/\//g,`,`).replace(/=+$/,``),o),i=0),a[o++]=u,!1),n||(a[o++]=c,c===d&&(a[o++]=u))):(n||=(a[o++]=d,!0),n&&(r[i++]=c>>8,r[i++]=c&255,i==r.length&&(o+=a.write(r.toString(`base64`).replace(/\//g,`,`),o),i=0)))}return this.inBase64=n,this.base64AccumIdx=i,a.slice(0,o)},p.prototype.end=function(){var e=t.alloc(10),n=0;return this.inBase64&&=(this.base64AccumIdx>0&&(n+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString(`base64`).replace(/\//g,`,`).replace(/=+$/,``),n),this.base64AccumIdx=0),e[n++]=u,!1),e.slice(0,n)};function m(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=``}var h=s.slice();h[44]=!0,m.prototype.write=function(e){for(var n=``,r=0,i=this.inBase64,a=this.base64Accum,o=0;o<e.length;o++)if(!i)e[o]==d&&(n+=this.iconv.decode(e.slice(r,o),`ascii`),r=o+1,i=!0);else if(!h[e[o]]){if(o==r&&e[o]==u)n+=`&`;else{var s=a+this.iconv.decode(e.slice(r,o),`ascii`).replace(/,/g,`/`);n+=this.iconv.decode(t.from(s,`base64`),`utf16-be`)}e[o]!=u&&o--,r=o+1,i=!1,a=``}if(!i)n+=this.iconv.decode(e.slice(r),`ascii`);else{var s=a+this.iconv.decode(e.slice(r),`ascii`).replace(/,/g,`/`),c=s.length-s.length%8;a=s.slice(c),s=s.slice(0,c),n+=this.iconv.decode(t.from(s,`base64`),`utf16-be`)}return this.inBase64=i,this.base64Accum=a,n},m.prototype.end=function(){var e=``;return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(t.from(this.base64Accum,`base64`),`utf16-be`)),this.inBase64=!1,this.base64Accum=``,e}})),Fe=r.a((e=>{var t=De().Buffer;e._sbcs=n;function n(e,n){if(!e)throw Error(`SBCS codec is called without the data.`);if(!e.chars||e.chars.length!==128&&e.chars.length!==256)throw Error(`Encoding '`+e.type+`' has incorrect 'chars' (must be of len 128 or 256)`);if(e.chars.length===128){for(var r=``,i=0;i<128;i++)r+=String.fromCharCode(i);e.chars=r+e.chars}this.decodeBuf=t.from(e.chars,`ucs2`);for(var a=t.alloc(65536,n.defaultCharSingleByte.charCodeAt(0)),i=0;i<e.chars.length;i++)a[e.chars.charCodeAt(i)]=i;this.encodeBuf=a}n.prototype.encoder=r,n.prototype.decoder=i;function r(e,t){this.encodeBuf=t.encodeBuf}r.prototype.write=function(e){for(var n=t.alloc(e.length),r=0;r<e.length;r++)n[r]=this.encodeBuf[e.charCodeAt(r)];return n},r.prototype.end=function(){};function i(e,t){this.decodeBuf=t.decodeBuf}i.prototype.write=function(e){for(var n=this.decodeBuf,r=t.alloc(e.length*2),i=0,a=0,o=0;o<e.length;o++)i=e[o]*2,a=o*2,r[a]=n[i],r[a+1]=n[i+1];return r.toString(`ucs2`)},i.prototype.end=function(){}})),Ie=r.a(((e,t)=>{t.exports={10029:`maccenteuro`,maccenteuro:{type:`_sbcs`,chars:`ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`},808:`cp808`,ibm808:`cp808`,cp808:{type:`_sbcs`,chars:`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■\xA0`},mik:{type:`_sbcs`,chars:`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},cp720:{type:`_sbcs`,chars:`€éâ„à†çêëèïّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■\xA0`},ascii8bit:`ascii`,usascii:`ascii`,ansix34:`ascii`,ansix341968:`ascii`,ansix341986:`ascii`,csascii:`ascii`,cp367:`ascii`,ibm367:`ascii`,isoir6:`ascii`,iso646us:`ascii`,iso646irv:`ascii`,us:`ascii`,latin1:`iso88591`,latin2:`iso88592`,latin3:`iso88593`,latin4:`iso88594`,latin5:`iso88599`,latin6:`iso885910`,latin7:`iso885913`,latin8:`iso885914`,latin9:`iso885915`,latin10:`iso885916`,csisolatin1:`iso88591`,csisolatin2:`iso88592`,csisolatin3:`iso88593`,csisolatin4:`iso88594`,csisolatincyrillic:`iso88595`,csisolatinarabic:`iso88596`,csisolatingreek:`iso88597`,csisolatinhebrew:`iso88598`,csisolatin5:`iso88599`,csisolatin6:`iso885910`,l1:`iso88591`,l2:`iso88592`,l3:`iso88593`,l4:`iso88594`,l5:`iso88599`,l6:`iso885910`,l7:`iso885913`,l8:`iso885914`,l9:`iso885915`,l10:`iso885916`,isoir14:`iso646jp`,isoir57:`iso646cn`,isoir100:`iso88591`,isoir101:`iso88592`,isoir109:`iso88593`,isoir110:`iso88594`,isoir144:`iso88595`,isoir127:`iso88596`,isoir126:`iso88597`,isoir138:`iso88598`,isoir148:`iso88599`,isoir157:`iso885910`,isoir166:`tis620`,isoir179:`iso885913`,isoir199:`iso885914`,isoir203:`iso885915`,isoir226:`iso885916`,cp819:`iso88591`,ibm819:`iso88591`,cyrillic:`iso88595`,arabic:`iso88596`,arabic8:`iso88596`,ecma114:`iso88596`,asmo708:`iso88596`,greek:`iso88597`,greek8:`iso88597`,ecma118:`iso88597`,elot928:`iso88597`,hebrew:`iso88598`,hebrew8:`iso88598`,turkish:`iso88599`,turkish8:`iso88599`,thai:`iso885911`,thai8:`iso885911`,celtic:`iso885914`,celtic8:`iso885914`,isoceltic:`iso885914`,tis6200:`tis620`,tis62025291:`tis620`,tis62025330:`tis620`,1e4:`macroman`,10006:`macgreek`,10007:`maccyrillic`,10079:`maciceland`,10081:`macturkish`,cspc8codepage437:`cp437`,cspc775baltic:`cp775`,cspc850multilingual:`cp850`,cspcp852:`cp852`,cspc862latinhebrew:`cp862`,cpgr:`cp869`,msee:`cp1250`,mscyrl:`cp1251`,msansi:`cp1252`,msgreek:`cp1253`,msturk:`cp1254`,mshebr:`cp1255`,msarab:`cp1256`,winbaltrim:`cp1257`,cp20866:`koi8r`,20866:`koi8r`,ibm878:`koi8r`,cskoi8r:`koi8r`,cp21866:`koi8u`,21866:`koi8u`,ibm1168:`koi8u`,strk10482002:`rk1048`,tcvn5712:`tcvn`,tcvn57121:`tcvn`,gb198880:`iso646cn`,cn:`iso646cn`,csiso14jisc6220ro:`iso646jp`,jisc62201969ro:`iso646jp`,jp:`iso646jp`,cshproman8:`hproman8`,r8:`hproman8`,roman8:`hproman8`,xroman8:`hproman8`,ibm1051:`hproman8`,mac:`macintosh`,csmacintosh:`macintosh`}})),Le=r.a(((e,t)=>{t.exports={437:`cp437`,737:`cp737`,775:`cp775`,850:`cp850`,852:`cp852`,855:`cp855`,856:`cp856`,857:`cp857`,858:`cp858`,860:`cp860`,861:`cp861`,862:`cp862`,863:`cp863`,864:`cp864`,865:`cp865`,866:`cp866`,869:`cp869`,874:`windows874`,922:`cp922`,1046:`cp1046`,1124:`cp1124`,1125:`cp1125`,1129:`cp1129`,1133:`cp1133`,1161:`cp1161`,1162:`cp1162`,1163:`cp1163`,1250:`windows1250`,1251:`windows1251`,1252:`windows1252`,1253:`windows1253`,1254:`windows1254`,1255:`windows1255`,1256:`windows1256`,1257:`windows1257`,1258:`windows1258`,28591:`iso88591`,28592:`iso88592`,28593:`iso88593`,28594:`iso88594`,28595:`iso88595`,28596:`iso88596`,28597:`iso88597`,28598:`iso88598`,28599:`iso88599`,28600:`iso885910`,28601:`iso885911`,28603:`iso885913`,28604:`iso885914`,28605:`iso885915`,28606:`iso885916`,windows874:{type:`_sbcs`,chars:`€����…�����������‘’“”•–—��������\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����`},win874:`windows874`,cp874:`windows874`,windows1250:{type:`_sbcs`,chars:`€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź\xA0ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙`},win1250:`windows1250`,cp1250:`windows1250`,windows1251:{type:`_sbcs`,chars:`ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ\xA0ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя`},win1251:`windows1251`,cp1251:`windows1251`,windows1252:{type:`_sbcs`,chars:`€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`},win1252:`windows1252`,cp1252:`windows1252`,windows1253:{type:`_sbcs`,chars:`€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›����\xA0΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�`},win1253:`windows1253`,cp1253:`windows1253`,windows1254:{type:`_sbcs`,chars:`€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ`},win1254:`windows1254`,cp1254:`windows1254`,windows1255:{type:`_sbcs`,chars:`€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›����\xA0¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�`},win1255:`windows1255`,cp1255:`windows1255`,windows1256:{type:`_sbcs`,chars:`€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں\xA0،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے`},win1256:`windows1256`,cp1256:`windows1256`,windows1257:{type:`_sbcs`,chars:`€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛�\xA0�¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙`},win1257:`windows1257`,cp1257:`windows1257`,windows1258:{type:`_sbcs`,chars:`€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ`},win1258:`windows1258`,cp1258:`windows1258`,iso88591:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`},cp28591:`iso88591`,iso88592:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙`},cp28592:`iso88592`,iso88593:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙`},cp28593:`iso88593`,iso88594:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙`},cp28594:`iso88594`,iso88595:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ`},cp28595:`iso88595`,iso88596:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������`},cp28596:`iso88596`,iso88597:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�`},cp28597:`iso88597`,iso88598:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0�¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�`},cp28598:`iso88598`,iso88599:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ`},cp28599:`iso88599`,iso885910:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ`},cp28600:`iso885910`,iso885911:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����`},cp28601:`iso885911`,iso885913:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’`},cp28603:`iso885913`,iso885914:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ`},cp28604:`iso885914`,iso885915:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`},cp28605:`iso885915`,iso885916:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ`},cp28606:`iso885916`,cp437:{type:`_sbcs`,chars:`ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},ibm437:`cp437`,csibm437:`cp437`,cp737:{type:`_sbcs`,chars:`ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■\xA0`},ibm737:`cp737`,csibm737:`cp737`,cp775:{type:`_sbcs`,chars:`ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■\xA0`},ibm775:`cp775`,csibm775:`cp775`,cp850:{type:`_sbcs`,chars:`ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■\xA0`},ibm850:`cp850`,csibm850:`cp850`,cp852:{type:`_sbcs`,chars:`ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■\xA0`},ibm852:`cp852`,csibm852:`cp852`,cp855:{type:`_sbcs`,chars:`ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■\xA0`},ibm855:`cp855`,csibm855:`cp855`,cp856:{type:`_sbcs`,chars:`אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■\xA0`},ibm856:`cp856`,csibm856:`cp856`,cp857:{type:`_sbcs`,chars:`ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■\xA0`},ibm857:`cp857`,csibm857:`cp857`,cp858:{type:`_sbcs`,chars:`ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■\xA0`},ibm858:`cp858`,csibm858:`cp858`,cp860:{type:`_sbcs`,chars:`ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},ibm860:`cp860`,csibm860:`cp860`,cp861:{type:`_sbcs`,chars:`ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},ibm861:`cp861`,csibm861:`cp861`,cp862:{type:`_sbcs`,chars:`אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},ibm862:`cp862`,csibm862:`cp862`,cp863:{type:`_sbcs`,chars:`ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},ibm863:`cp863`,csibm863:`cp863`,cp864:{type:`_sbcs`,chars:`\0\x07\b
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.setAttribute(`data-emailmaker`,`true`),e.appendChild(document.createTextNode(`@import "https://fonts.googleapis.com/css2?family=Geologica:wght@300;600&display=swap";@import "https://fonts.googleapis.com/css2?family=Geologica:wght@300;600&display=swap";html,body{width:100%;height:100%}.blocks-app input::-ms-clear{display:none}.blocks-app input::-ms-reveal{display:none}.blocks-app *,.blocks-app :before,.blocks-app :after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:#0000;font-family:sans-serif;line-height:1.15}.blocks-app [tabindex="-1"]:focus{outline:none}.blocks-app hr{box-sizing:content-box;height:0;overflow:visible}.blocks-app h1,.blocks-app h2,.blocks-app h3,.blocks-app h4,.blocks-app h5,.blocks-app h6{margin-top:0;margin-bottom:.5em;font-weight:500}.blocks-app p{margin-top:0;margin-bottom:1em}.blocks-app abbr[title],.blocks-app abbr[data-original-title]{cursor:help;border-bottom:0;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.blocks-app address{font-style:normal;line-height:inherit;margin-bottom:1em}.blocks-app input[type=text],.blocks-app input[type=password],.blocks-app input[type=number],.blocks-app textarea{-webkit-appearance:none}.blocks-app ol,.blocks-app ul,.blocks-app dl{margin-top:0;margin-bottom:1em}.blocks-app ol ol,.blocks-app ul ul,.blocks-app ol ul,.blocks-app ul ol{margin-bottom:0}.blocks-app dt{font-weight:500}.blocks-app dd{margin-bottom:.5em;margin-left:0}.blocks-app blockquote{margin:0 0 1em}.blocks-app dfn{font-style:italic}.blocks-app b,.blocks-app strong{font-weight:bolder}.blocks-app small{font-size:80%}.blocks-app sub,.blocks-app sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.blocks-app sub{bottom:-.25em}.blocks-app sup{top:-.5em}.blocks-app pre,.blocks-app code,.blocks-app kbd,.blocks-app samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}.blocks-app pre{margin-top:0;margin-bottom:1em;overflow:auto}.blocks-app figure{margin:0 0 1em}.blocks-app img{vertical-align:middle;border-style:none}.blocks-app a,.blocks-app area,.blocks-app button,.blocks-app [role=button],.blocks-app input:not([type=range]),.blocks-app label,.blocks-app select,.blocks-app summary,.blocks-app textarea{touch-action:manipulation}.blocks-app table{border-collapse:collapse}.blocks-app caption{text-align:left;caption-side:bottom;padding-top:.75em;padding-bottom:.3em}.blocks-app input,.blocks-app button,.blocks-app select,.blocks-app optgroup,.blocks-app textarea{color:inherit;font-size:inherit;font-family:inherit;line-height:inherit;margin:0}.blocks-app button,.blocks-app input{overflow:visible}.blocks-app button,.blocks-app select{text-transform:none}.blocks-app button,html [type=button],.blocks-app [type=reset],.blocks-app [type=submit]{-webkit-appearance:button}.blocks-app button::-moz-focus-inner{border-style:none;padding:0}.blocks-app [type=button]::-moz-focus-inner{border-style:none;padding:0}.blocks-app [type=reset]::-moz-focus-inner{border-style:none;padding:0}.blocks-app [type=submit]::-moz-focus-inner{border-style:none;padding:0}.blocks-app input[type=radio],.blocks-app input[type=checkbox]{box-sizing:border-box;padding:0}.blocks-app input[type=date],.blocks-app input[type=time],.blocks-app input[type=datetime-local],.blocks-app input[type=month]{-webkit-appearance:listbox}.blocks-app textarea{resize:vertical;overflow:auto}.blocks-app fieldset{border:0;min-width:0;margin:0;padding:0}.blocks-app legend{width:100%;max-width:100%;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal;margin-bottom:.5em;padding:0;display:block}.blocks-app progress{vertical-align:baseline}.blocks-app [type=number]::-webkit-inner-spin-button{height:auto}.blocks-app [type=number]::-webkit-outer-spin-button{height:auto}.blocks-app [type=search]{outline-offset:-2px;-webkit-appearance:none}.blocks-app [type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.blocks-app [type=search]::-webkit-search-decoration{-webkit-appearance:none}.blocks-app ::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}.blocks-app output{display:inline-block}.blocks-app summary{display:list-item}.blocks-app template{display:none}.blocks-app [hidden]{display:none!important}.blocks-app mark{background-color:#feffe6;padding:.2em}.blocks-app .blocks-plugin{zoom:var(--appZoom)}.blocks-app .blocks-plugin .ant-layout-sider-children{display:none}.blocks-app *,.blocks-app ul.ai-roles-list *,.blocks-app .ai-response-variant[class*=ai-response] *,.blocks-app ul.buttons-variants [class*=ai-response]{-webkit-user-select:none;user-select:none}.codicon[class*=codicon-]{font:16px/1 codicon!important}.blocks-app .element-card__title,.blocks-app [class*=ai-response],.blocks-app [class*=ai-response] *,.blocks-app .ant-comment-content-detail{-webkit-user-select:text;user-select:text}.blocks-app .code-mode__pane *{-webkit-user-select:auto;user-select:auto}.blocks-app,.blocks-app .ant-app,.blocks-app .ant-app .main,.blocks-app .ant-app .main__pane-content{height:100%}@media (width<=1300px){.blocks-app .ant-app .main{min-width:1270px}}.blocks-app .ant-app [role=button],.blocks-app .ant-app a,.blocks-app .ant-app area,.blocks-app .ant-app button,.blocks-app .ant-app input:not([type=range]),.blocks-app .ant-app label,.blocks-app .ant-app select,.blocks-app .ant-app summary,.blocks-app .ant-app textarea{touch-action:manipulation}.blocks-app .ant-app ::-webkit-scrollbar{width:10px;height:10px}.blocks-app .ant-app ::-webkit-scrollbar-corner{background:0 0}.blocks-app .ant-app ::-webkit-scrollbar-track{background:0 0}.blocks-app .ant-app ::-webkit-scrollbar-thumb{min-height:20px;box-shadow:inset 0 0 0 10px var(--colorFillSecondaryDarken);background-clip:content-box;border:3px solid #0000;border-radius:8px;transition:all .2s}.blocks-app .ant-app ::-webkit-scrollbar-thumb:hover{box-shadow:inset 0 0 0 10px var(--colorTextDisabled)}.blocks-app .ant-app textarea::-webkit-scrollbar-track{margin:10px}.blocks-app .ant-app .ant-btn.ant-btn-icon-only .free-mode-firewall-icon,.blocks-app .ant-app .email-pane .ant-tabs-tab .free-mode-firewall-icon,.blocks-app .ant-app .free-mode-firewall-icon{background-color:var(--colorBgLayout);border-radius:100%;justify-content:center;display:flex;position:absolute;bottom:0;right:0}.blocks-app .ant-app .email-pane .ant-tabs-tab .free-mode-firewall-icon_emailpane{background-color:var(--colorBgContainer);bottom:13px;right:13px}.blocks-app .ant-app .ant-pagination{margin-top:30px}.blocks-app .ant-app .ant-table-wrapper .ant-table{border-radius:calc(var(--borderRadiusXL) * 1px);overflow:hidden;background:0 0!important}.blocks-app .ant-app .ant-table-wrapper .ant-table .ant-table-thead>tr,.blocks-app .ant-app .ant-table-wrapper .ant-table .ant-table-thead>tr>th,.blocks-app .ant-app .ant-table-wrapper .ant-table .ant-table-thead>tr>td{background:0 0!important}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper,.blocks-app .ant-app .email-pane__content-col .selected-td-form__button:not(.ant-btn-text),.blocks-app .ant-app .email-pane__content-col .ant-btn-default{background:var(--colorFillSecondary);border:1px solid #0000!important}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled){color:var(--colorPrimary);background:var(--colorFillSecondary);border-color:#0000}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button{min-height:calc(var(--formControlHeight) * 1px);min-width:calc(var(--formControlHeight) * 1px);padding:0 8px;line-height:1;position:relative}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button.ant-btn-icon-only .ant-btn-icon{justify-content:center;align-items:center;width:100%;height:100%;display:inline-flex}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button.ant-btn-icon-only .anticon{vertical-align:0;justify-content:center;align-items:center;line-height:1;display:inline-flex}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button.ghost-button:before{content:"";z-index:1;cursor:pointer;background-color:#0000;width:385px;height:50px;position:absolute;top:-9px;left:-338px}.blocks-app .ant-app .email-pane__content-col .ant-btn-default:not(:disabled,.ant-btn-disabled,.email-pane__content-col .selected-td-form__button--active):hover{background:var(--colorFillSecondaryDarken);color:inherit;border-color:#0000}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button--active,.blocks-app .ant-app .email-pane__content-col .ant-btn-default.selected-td-form__button--active{background:var(--colorPrimaryBg);color:var(--colorPrimary);border-color:#0000}.blocks-app .ant-app .email-pane__content-col .selected-td-form__button--active:hover{background:var(--colorPrimaryBgHover);color:var(--colorPrimaryTextHover)}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper,.blocks-app .ant-app .email-page .ant-btn{min-width:calc(var(--formControlHeight) * 1px);height:calc(var(--formControlHeight) * 1px);line-height:calc((var(--formControlHeight) - 2) * 1px);text-align:center;padding:0 9px}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper{justify-content:center;align-items:center;padding:0 7px;display:flex}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper>span{display:inline-flex}.blocks-app .ant-app .ant-btn.ant-btn-icon-only.project-page__add-folder{margin-top:26px}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper:not(.ant-radio-button-wrapper-checked):hover{color:inherit;background:var(--colorFillSecondaryDarken)}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper.ant-radio-button-wrapper-checked{background:var(--colorPrimaryBg)}.blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper.ant-radio-button-wrapper-checked:hover{background:var(--colorPrimaryBgHover);color:var(--colorPrimaryTextHover)}.blocks-app .ant-app .email-pane__content-col .ant-form-item{margin-bottom:calc(var(--formItemMarginBottomMD) * 1px)}.blocks-app .ant-app .email-pane__content-col .ant-form-item.form-item-margin-xs{margin-bottom:calc(var(--formItemMarginBottomXS) * 1px)}.blocks-app .ant-app .selected-td-form__br-input{margin-bottom:8px!important}.blocks-app .ant-app .addon-text-content{font-size:11px;font-weight:600}.blocks-app .ant-app .addon-text-content--icon{align-items:center;font-size:0;line-height:0;display:inline-flex}.blocks-app .ant-app .ant-btn.ant-btn-lg.project-page__folder_menu{text-align:center;width:32px;height:32px;padding:0;line-height:32px}.blocks-app .ant-app .editor .main__pane{overflow:hidden}.blocks-app .ant-app .element-card_block.ant-card-bordered .ant-card-cover .element-card__img-wrapper{background-color:#0000;background-image:linear-gradient(45deg,#0000001a 25%,#0000 0 75%,#0000001a 0),linear-gradient(45deg,#0000001a 25%,#0000 0 75%,#0000001a 0);background-position:0 0,4px 4px;background-repeat:repeat,repeat;background-size:8px 8px;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box}.blocks-app .ant-app .ant-tabs-tabpane{width:100%}.blocks-app .ant-app .ant-tabs-large>.ant-tabs-nav .ant-tabs-tab{padding:18px 0}.blocks-app .ant-app .ant-tabs-content-holder{position:relative}.blocks-app .ant-app #pixie-editor ::-webkit-scrollbar-thumb{border:none}.blocks-app .ant-app .email-pane__bottom .code-mode__pane{border-top:1px solid var(--colorBorder)}.blocks-app .ant-app .container{width:100%;margin:0 auto;padding:0 65px}@media (width<=1550px){.blocks-app .ant-app .container{gap:10px;padding:0 10px}}.blocks-app .ant-app .projects-page__container .container{padding-top:30px}.blocks-app .ant-app .container.email-pane__col-wrapper_pinch{padding-right:0}.blocks-app .ant-app body,.blocks-app .ant-app .ant-layout{transition:background-color .2s ease-in-out}.blocks-app .ant-app p{margin-top:0}.blocks-app .ant-app .ant-layout-content.container{padding-bottom:40px}.blocks-app .ant-app .ant-table-wrapper{width:100%}.blocks-app .ant-app .ant-table{border-radius:16px;overflow:hidden}.blocks-app .ant-app .ant-picker{border-radius:6px}.blocks-app .ant-app .verticalColorpicker.ant-color-picker .ant-color-picker-inner-content{width:340px}.blocks-app .ant-app .ant-color-picker .ant-color-picker-inner-content .ant-color-picker-panel .ant-color-picker-select .ant-color-picker-palette{min-height:160px}.blocks-app .ant-app .easylogic-colorpicker{border-radius:8px}.blocks-app .ant-app .easylogic-colorpicker .colorpicker-body .color{border-radius:8px 8px 0 0}.blocks-app .ant-app .ant-page-header-heading-title{max-width:700px;white-space:unset;box-shadow:none;align-items:baseline;padding:0;font-size:18px;line-height:24px}.blocks-app .ant-app .ant-page-header-heading-title.ant-typography-edit-content{overflow:unset;margin-top:0}.blocks-app .ant-app .ant-page-header-heading-title textarea{background:0 0;font-size:16px;font-weight:500;line-height:20px}.blocks-app .ant-app .ant-page-header-heading-preheader:disabled,.blocks-app .ant-app .ant-page-header-heading-title:disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;pointer-events:none}.blocks-app .ant-app .ant-menu{background:inherit}.blocks-app .ant-app .ant-page-header{background:inherit;margin-bottom:20px;padding:20px 0}@media (width<=1450px){.blocks-app .ant-app .ant-page-header{padding:10px 0}}.blocks-app .ant-app .ant-page-header-heading-left{margin:0;overflow:visible}.blocks-app .ant-app .ant-page-header-heading-extra{margin:0}.blocks-app .ant-app .ant-page-header-heading-sub-title{display:block;overflow:visible}.blocks-app .ant-app .ant-progress-inner{background-color:#fff}.blocks-app .ant-app .dark .ant-progress-inner{background-color:#ffffff14}.blocks-app .ant-app .ant-collapse>.ant-collapse-item>.ant-collapse-header{flex-direction:row-reverse}.blocks-app .ant-app .ant-tabs-tab{justify-content:center}.blocks-app .ant-app .nobr{white-space:nowrap}.blocks-app .ant-app .checkbox-horizontal .ant-row{flex-direction:row-reverse;justify-content:flex-end;align-items:center}.blocks-app .ant-app .checkbox-horizontal .ant-form-item-control{margin-right:10px;flex-grow:0!important;width:auto!important}.blocks-app .ant-app .checkbox-horizontal .ant-form-item-label{padding:0!important}.blocks-app .ant-app .ant-comment .ant-comment-nested{margin-left:24px}.blocks-app .ant-app .ant-comment .ant-comment-avatar{margin-top:-2px;margin-right:8px;position:relative}.blocks-app .ant-app .ant-comment .ant-comment-avatar img{width:24px;height:24px}.blocks-app .ant-app .ant-comment .ant-comment-inner{background:var(--colorBgLayout);border-radius:8px;margin-bottom:12px;padding:12px;display:flex}.blocks-app .ant-app img:not([srcset*=\\.],[src*=\\.],[src*=data\\:image]){display:none}.blocks-app .ant-app .dark .targetted-comment-item>.ant-comment-inner{background:#7030d43b}.blocks-app .ant-app .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before,.blocks-app .blocks-modal .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before{background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);border-top:1px solid var(--colorBorderSecondary);z-index:1;background-position:0 -2px;background-repeat:no-repeat;border-bottom:none;height:20px;bottom:-20px}.blocks-app .ant-app .ant-tabs-top[style*=vh]>.ant-tabs-nav:before,.blocks-app .blocks-modal .ant-tabs-top[style*=vh]>.ant-tabs-nav:before{background:0 0}.dark .blocks-app .ant-app .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before,.dark .blocks-app .blocks-modal .ant-tabs-top:not(.secondary-tabs_unset_scroll)>.ant-tabs-nav:before{background:linear-gradient(180deg, var(--colorBgBase) -100%, transparent 50%)}.blocks-app .ant-app .ant-tabs-top>.ant-tabs-nav,.blocks-app .blocks-modal .ant-tabs-top>.ant-tabs-nav{margin-bottom:20px}.blocks-app .ant-app .ant-tabs.email-pane__col_settings-inner>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .ant-app .ant-tabs.email-pane__col_settings-inner>div>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .blocks-modal .ant-tabs.email-pane__col_settings-inner>.ant-tabs-nav .ant-tabs-nav-operations,.blocks-app .blocks-modal .ant-tabs.email-pane__col_settings-inner>div>.ant-tabs-nav .ant-tabs-nav-operations{visibility:hidden;pointer-events:none;position:absolute}.blocks-app .transition-enter{opacity:0}.blocks-app .transition-enter-active{opacity:1;transition:opacity .3s ease-in}.blocks-app .transition-exit{opacity:1}.blocks-app .transition-exit-active{opacity:0;transition:opacity .3s ease-in}.blocks-app #carrotquest-messenger-collapsed-container{z-index:10!important}.blocks-app .carrot-messenger-frame-container{z-index:11!important}.blocks-app .default-mode__pane_editor,.blocks-app .code-mode{z-index:20}@media (height<=700px){.blocks-app .ant-color-picker-presets .ant-collapse-item:last-child{display:none}}@media only screen and (device-width<=480px),only screen and (width<=480px){.blocks-app .email-pane_only_code_mode_mobile .email-pane__row .ant-col:first-child{display:none}.blocks-app .email-pane_only_code_mode_mobile .email-pane__row .ant-col:last-child{width:100%!important}}.blocks-app .em-filemanager .uploadProgress{right:105px!important}.blocks-app .theme-switcher{position:relative;top:2px}.blocks-app .theme-switcher .ant-segmented-item-label{justify-content:center;align-items:center;display:flex}.blocks-app .menu-tariff-widget-anim-enter{opacity:0}.blocks-app .menu-tariff-widget-anim-enter-active{opacity:1;transition:opacity .48s cubic-bezier(.645,.045,.355,1)}.blocks-app .menu-tariff-widget-anim-exit{opacity:1}.blocks-app .menu-tariff-widget-anim-exit-active{opacity:0;transition:opacity .38s cubic-bezier(.645,.045,.355,1)}@media (prefers-reduced-motion:reduce){.blocks-app .menu-tariff-widget-anim-enter,.blocks-app .menu-tariff-widget-anim-enter-active{opacity:1;transition:none!important}.blocks-app .menu-tariff-widget-anim-exit{opacity:1}.blocks-app .menu-tariff-widget-anim-exit-active{opacity:0;transition:none!important}.blocks-app .menu-tariff-widget__expanded-fade{transition:none!important}}.blocks-app .menu-tariff-widget{flex-shrink:0;width:100%;margin-bottom:24px;padding:0 17px}.blocks-app .menu-tariff-widget__expanded-fade{opacity:1;transition:opacity .38s cubic-bezier(.645,.045,.355,1)}.blocks-app .menu-tariff-widget__expanded-fade_hidden{opacity:0;pointer-events:none}.blocks-app .menu-tariff-widget_collapsed{justify-content:center;align-items:center;margin-bottom:24px;padding:0 17px;display:flex}.blocks-app .menu-tariff-widget_collapsed .menu-tariff-widget__badge{margin:0}.blocks-app .menu-tariff-widget__badge{border-radius:4px;justify-content:center;align-items:center;min-height:18px;padding:2px 4px;line-height:1.2;text-decoration:none;display:inline-flex}.blocks-app .menu-tariff-widget__badge-text{color:var(--colorWhite,#fff);white-space:nowrap;font-size:12px;font-weight:300}.blocks-app .menu-tariff-widget__badge_purple{background-color:var(--colorInfo,#8946f8)}.blocks-app .menu-tariff-widget__badge_blue{background-color:var(--colorLink,#2884ff)}.blocks-app .menu-tariff-widget__card{border-radius:8px;flex-direction:column;gap:20px;padding:16px;display:flex;position:relative;overflow:hidden}.blocks-app .menu-tariff-widget__card_light{background-color:var(--colorFillSecondary,#f8f8f8)}.blocks-app .menu-tariff-widget__card_purple{background-color:var(--colorInfo,#8946f8)}.blocks-app .menu-tariff-widget__card_decor{isolation:isolate}.blocks-app .menu-tariff-widget__card_decor:before{content:"";pointer-events:none;z-index:0;border-radius:50%;width:220px;height:220px;position:absolute}.blocks-app .menu-tariff-widget__card_decor_trial:before{opacity:.1;filter:blur(60px);background:#f85243;inset:calc(50% - 208.5px) auto auto calc(50% - 110px);transform:none}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__title_dark{line-height:20px}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__row{align-items:flex-end}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__muted{font-size:14px;line-height:1.2}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__accent-dark{font-size:14px;font-weight:400;line-height:18px}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__note{z-index:2;line-height:1.2;position:relative}.blocks-app .menu-tariff-widget__card_decor_trial .menu-tariff-widget__btn_primary{z-index:3;position:relative}.blocks-app .menu-tariff-widget__card_decor_paid:before{opacity:.4;filter:blur(60px);background:#f85243;inset:calc(50% - 51px) 8px auto auto;transform:none}.blocks-app .menu-tariff-widget__header{z-index:1;flex-direction:column;gap:4px;display:flex;position:relative}.blocks-app .menu-tariff-widget__header-link{max-width:100%;color:inherit;cursor:pointer;border-radius:6px;outline:none;flex-direction:column;align-items:flex-start;gap:4px;text-decoration:none;display:flex}.blocks-app .menu-tariff-widget__header-link:hover{opacity:.92}.blocks-app .menu-tariff-widget__header-link:focus-visible{outline:2px solid var(--colorPrimary,#1677ff);outline-offset:2px}.blocks-app .menu-tariff-widget__title{color:var(--colorWhite,#fff);font-size:16px;font-weight:300;line-height:1.2}.blocks-app .menu-tariff-widget__title_dark{color:var(--colorText,#1f1f1f)}.blocks-app .menu-tariff-widget__desc,.blocks-app .menu-tariff-widget__note{color:var(--colorTextSecondary,#8c8c8c);margin:0;font-size:14px;font-weight:100;line-height:1.2}.blocks-app .menu-tariff-widget__row{flex-wrap:wrap;align-items:baseline;gap:4px;font-size:14px;font-weight:100;line-height:1.2;display:flex}.blocks-app .menu-tariff-widget__row>*{font-weight:100}.blocks-app .menu-tariff-widget__muted{color:var(--colorTextSecondary,#8c8c8c)}.blocks-app .menu-tariff-widget__muted-white{color:#ffffff80}.blocks-app .menu-tariff-widget__date-dark{color:var(--colorTextSecondary,#8c8c8c)}.blocks-app .menu-tariff-widget__date-white{color:var(--colorWhite,#fff)}.blocks-app .menu-tariff-widget__accent-dark{color:var(--colorText,#1f1f1f)}.blocks-app .menu-tariff-widget__accent-white{color:var(--colorWhite,#fff)}.blocks-app .menu-tariff-widget__btn{z-index:1;cursor:pointer;box-sizing:border-box;border:none;border-radius:6px;justify-content:center;align-items:center;gap:8px;width:100%;min-height:32px;padding:8px 12px;font-family:inherit;font-size:14px;font-weight:300;line-height:1.2;text-decoration:none;display:inline-flex;position:relative}.blocks-app .menu-tariff-widget__btn_primary{background-color:var(--colorLink,#2884ff);color:var(--colorWhite,#fff)}.blocks-app .menu-tariff-widget__btn_primary:hover{color:var(--colorWhite,#fff);opacity:.92}.blocks-app .menu-tariff-widget__btn_outline{white-space:nowrap;color:var(--colorWhite,#fff);background-color:#0000;border:1px solid #ffffff80;transition:border-color .2s,color .2s,background-color .2s,opacity .2s}.blocks-app .menu-tariff-widget__btn_outline:hover:not(:disabled){color:var(--colorWhite,#fff);border-color:#ffffffbf}.blocks-app .menu-tariff-widget__btn_outline:disabled{cursor:default;opacity:.95}.blocks-app .menu-tariff-widget__btn-icon{color:currentColor;flex-shrink:0}.blocks-app .menu-tariff-widget__recurring-tooltip-wrap{width:100%;display:block}.blocks-app .ant-layout-sider-collapsed .project-menu .ant-menu-submenu-arrow:before,.blocks-app .ant-layout-sider-collapsed .project-menu .ant-menu-submenu-arrow:after{transition-delay:.3s!important}.blocks-app .project-menu{flex-direction:column;height:100%;display:flex;position:relative}.blocks-app .project-menu__bottom-stack{flex-direction:column;flex-shrink:0;margin-top:auto;display:flex}.blocks-app .project-menu .ant-menu-submenu-arrow:before,.blocks-app .project-menu .ant-menu-submenu-arrow:after{opacity:.5;border-radius:0;height:1px}.blocks-app .project-menu .ant-menu-submenu-arrow{inset-inline-end:8px}.blocks-app .project-menu .ant-menu-item-divider{border-color:#d9d9d9;display:none}.blocks-app .project-menu .ant-menu.ant-menu-root.ant-menu-vertical{border-inline-end:unset}.blocks-app .project-menu__list-item_project>.ant-menu-submenu-title:hover:not(.ant-menu-item-selected,.ant-menu-submenu-selected),.blocks-app .project-menu__list-item_project>.ant-menu-submenu-title{color:var(--colorLink)}.blocks-app .project-menu__list_top.ant-menu{height:70px;margin-bottom:auto}.blocks-app .project-menu__list_top.ant-menu .ant-menu-submenu-title:hover{background-color:#0000}.blocks-app .project-menu__list_second.ant-menu-vertical .ant-menu-item,.blocks-app .project-menu__list_second.ant-menu-vertical .ant-menu-submenu-title,.blocks-app .project-menu__list_second.ant-menu.ant-menu-inline-collapsed>.ant-menu-submenu>.ant-menu-submenu-title{margin-top:6px;margin-bottom:8px;padding:0 26px}.blocks-app .project-menu__list.project-menu__list_second.ant-menu:not(.ant-menu-horizontal) li{width:unset;border-radius:8px;margin:4px 17px 8px;padding:0 11px;font-size:16px}.blocks-app .project-menu__list.project-menu__list_second.ant-menu:not(.ant-menu-horizontal) li .ant-menu-title-content{font-size:16px}.blocks-app .project-menu__list.project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) li:not(.ant-menu-submenu){width:unset;border-radius:8px;margin:4px 17px 8px;padding:0 12px}.blocks-app .project-menu__list.project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) li:not(.ant-menu-submenu) .ant-menu-submenu-title{width:100%;min-width:20px;margin:0}.blocks-app .project-menu__list.project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) li.ant-menu-submenu{border-radius:8px;margin:4px 17px 8px}.blocks-app .project-menu__list.project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) li.ant-menu-submenu .ant-menu-submenu-title{border-radius:8px;width:100%;margin:0;padding:0 12px}.blocks-app .project-menu__list-item .user-profile__avatar{display:inline-flex}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item{height:54px;margin:auto 17px}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_logo,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item_logo,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_logo,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item_logo{width:calc(100% - 16px);margin:8px;padding:0 8px}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item>.project-menu__block,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item>.project-menu__block,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item>.project-menu__block,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item>.project-menu__block{pointer-events:auto;cursor:pointer}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_project .ant-menu-submenu-title,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item_project .ant-menu-submenu-title,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_project .ant-menu-submenu-title,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item_project .ant-menu-submenu-title{align-items:center;display:flex}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_project .ant-menu-title-content,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item_project .ant-menu-title-content,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item_project .ant-menu-title-content,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item_project .ant-menu-title-content{white-space:nowrap;max-width:150px;height:25px;margin-top:4px;line-height:normal;display:inline-block;overflow:hidden;text-overflow:ellipsis!important}.blocks-app .project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item>.project-menu__block.ant-menu-item-icon,.blocks-app .project-menu__list-item_project.ant-menu-item.project-menu__list-item>.project-menu__block.ant-menu-item-icon,.blocks-app .project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item>.project-menu__block.ant-menu-item-icon,.blocks-app .project-menu__list-item_logo.ant-menu-item.project-menu__list-item>.project-menu__block.ant-menu-item-icon{height:54px;line-height:54px;display:flex;align-items:center!important}.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item.ant-menu-item>.ant-menu-item-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_project.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item.ant-menu-submenu>.ant-menu-submenu-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_project.ant-menu-item.project-menu__list-item.ant-menu-item>.ant-menu-item-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_project.ant-menu-item.project-menu__list-item.ant-menu-submenu>.ant-menu-submenu-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item.ant-menu-item>.ant-menu-item-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_logo.ant-menu-submenu.ant-menu-submenu-vertical.project-menu__list-item.ant-menu-submenu>.ant-menu-submenu-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_logo.ant-menu-item.project-menu__list-item.ant-menu-item>.ant-menu-item-title,.blocks-app .project-menu__list.ant-menu-vertical>.project-menu__list-item_logo.ant-menu-item.project-menu__list-item.ant-menu-submenu>.ant-menu-submenu-title{width:100%;height:70px;margin:0;padding:0 6px;line-height:70px}.blocks-app .project-menu .user-profile__avatar{border-radius:50%;overflow:hidden}.blocks-app .project-menu .user-profile__avatar.ant-menu-item-icon{display:inline-flex}.blocks-app .project-menu .project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected{background-color:var(--colorInfo);border-color:var(--colorInfo);color:#fff;border-radius:8px;margin:4px 18px 8px;padding:0 12px}.blocks-app .project-menu .project-menu__list_bottom.ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected:hover{background-color:var(--colorInfoHover);border-color:var(--colorInfoHover)}.blocks-app .project-menu__block-button{text-transform:uppercase;border-radius:8px;width:32px;min-width:32px;padding:0;font-size:18px;font-weight:600;line-height:32px}.blocks-app .project-menu__submenu-popup.ant-menu,.blocks-app .project-menu__submenu-popup .ant-menu{background:var(--colorBgContainer);width:320px;box-shadow:var(--boxShadowSecondary);border-radius:12px;padding:0;overflow:hidden}.blocks-app .project-menu__submenu-popup .ant-menu-submenu-title,.blocks-app .project-menu__submenu-popup .ant-menu-item{border-radius:0}.blocks-app .project-menu__submenu-popup .ant-menu-item-group{margin:0;padding:24px 16px;position:relative}.blocks-app .project-menu__submenu-popup .ant-menu.ant-menu-light .ant-menu-item-group-title,.blocks-app .project-menu__submenu-popup .ant-menu-item-group-title{color:#000;padding:0 8px 24px;font-size:18px;font-weight:500;line-height:1}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list{margin:0;padding:0}.blocks-app .project-menu__submenu-popup .ant-menu-item-divider:not(.project-menu__projects-section-divider){display:none}.blocks-app .project-menu__submenu-popup .ant-menu-item-divider.project-menu__projects-section-divider{clear:both;border:0;border-top:1px solid var(--colorSplit);margin:0 -16px;display:block}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item{background:0 0;border-radius:6px;align-items:center;width:100%;height:auto;min-height:32px;margin:0 0 8px;padding:0;line-height:1.35;display:flex}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .project-menu__frequent-project-item.ant-menu-item{padding-inline:0}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item:last-child{margin-bottom:0}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item .ant-menu-title-content{flex:1;margin:0;overflow:hidden}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item.ant-menu-item-active,.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item:hover{background:var(--colorFillQuaternary);color:inherit}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item.ant-menu-item-selected{background:0 0}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item.ant-menu-item-selected:hover{background:var(--colorFillQuaternary)}.blocks-app .project-menu__submenu-popup .project-menu__recent-row{box-sizing:border-box;justify-content:space-between;align-items:center;gap:4px;width:100%;min-height:32px;padding:0 8px;display:flex}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-title{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;font-size:14px;font-weight:300;line-height:19px;overflow:hidden;color:var(--colorLink)!important}.blocks-app .project-menu__submenu-popup .ant-menu-item-group-list .ant-menu-item:hover .project-menu__recent-row-title,.blocks-app .project-menu__submenu-popup .project-menu__recent-row-title:hover{color:var(--colorText)!important}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-sep{background:var(--colorSplit);flex:none;width:1px;height:16px;margin:0 2px}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-mail{box-sizing:border-box;min-width:72px;height:32px;color:var(--colorText);border-radius:6px;flex:none;justify-content:flex-start;align-items:center;margin:0 -8px 0 0;padding:8px;font-size:14px;font-weight:400;line-height:19px;display:inline-flex}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-mail-icon{flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;line-height:0;display:inline-flex}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-mail-icon .anticon{flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-mail-icon svg{flex-shrink:0;display:block}.blocks-app .project-menu__submenu-popup .project-menu__recent-row-mail-count{flex-shrink:0;margin-left:4px}.blocks-app .project-menu__submenu-popup .project-menu__all-projects-item.ant-menu-item{background:var(--colorBgContainer);margin:0;border-radius:6px;align-items:center;width:calc(100% - 32px);height:auto;margin-block:16px;margin-inline:16px;padding:8px;line-height:19px;display:flex}.blocks-app .project-menu__submenu-popup .project-menu__all-projects-item.ant-menu-item .ant-menu-item-icon{font-size:16px}.blocks-app .project-menu__submenu-popup .project-menu__all-projects-item.ant-menu-item .ant-menu-title-content{color:var(--colorText);font-size:14px;font-weight:300}.blocks-app .project-menu__submenu-popup.project-menu__submenu-popup .ant-menu.ant-menu-light .ant-menu-item-group-title,.blocks-app .project-menu__submenu-popup.project-menu__submenu-popup .ant-menu-item-group-title{color:#000}.blocks-app .project-menu-profile-popup{box-sizing:border-box;border-radius:16px;width:244px;min-width:244px;max-width:244px;padding:0;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.blocks-app .project-menu-profile-popup .ant-menu{background:var(--colorBgContainer);width:100%;box-shadow:none;border-radius:16px;overflow:hidden}.blocks-app .project-menu-profile-popup .ant-menu-sub{padding:0}.blocks-app .project-menu-profile-popup .ant-menu-item-group{max-width:100%;margin:0}.blocks-app .project-menu-profile-popup .ant-menu-item-group-title{height:auto;margin:0;padding:0;line-height:normal}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list{flex-direction:column;align-items:stretch;gap:4px;display:flex;margin:0!important;padding:16px 8px!important}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list .ant-menu-item{box-sizing:border-box;width:100%;height:auto;min-height:32px;color:var(--colorText);background:var(--colorBgContainer);border-radius:6px;flex-direction:row;align-items:center;margin:0;font-size:14px;font-weight:300;line-height:1.2;display:flex;padding:8px 12px!important}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list .ant-menu-item .ant-menu-item-icon{justify-content:center;align-items:center;min-width:16px;margin-inline-end:0;font-size:16px;line-height:0;display:inline-flex}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list .ant-menu-item .ant-menu-title-content{white-space:nowrap;text-overflow:ellipsis;flex:auto;min-width:0;font-weight:300;line-height:1.2;overflow:hidden}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list .ant-menu-item .ant-menu-title-content a{color:inherit;font-weight:300}.blocks-app .project-menu-profile-popup .ant-menu-item-group-list .ant-menu-item-icon{font-size:16px}.blocks-app .ant-app .project-menu-profile-popup .ant-menu.ant-menu-sub .ant-menu-item-group>ul.ant-menu-item-group-list,.blocks-app .ant-app .project-menu-profile-popup .ant-menu .ant-menu-item-group>ul.ant-menu-item-group-list{margin:0!important;padding:16px 8px!important}.blocks-app .ant-app .project-menu-profile-popup .ant-menu .ant-menu-item-group .ant-menu-item-group-list .ant-menu-item,.blocks-app .ant-app .project-menu-profile-popup .ant-menu .ant-menu-item-group .ant-menu-item-group-list .ant-menu-submenu-title{padding:12px 8px!important}.blocks-app .project-menu-profile-popup__header{box-sizing:border-box;border-bottom:1px solid var(--colorBorderSecondary);flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;width:100%;padding:16px;display:flex}.blocks-app .project-menu-profile-popup__avatar{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex;overflow:hidden}.blocks-app .project-menu-profile-popup__meta{flex-direction:column;width:100%;min-width:0;display:flex}.blocks-app .project-menu-profile-popup__name{color:var(--colorText);text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:300;line-height:1.2;overflow:hidden}.blocks-app .project-menu-profile-popup__email{color:var(--colorTextSecondary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:300;line-height:1.2;overflow:hidden}.blocks-app .account-settings .ant-input-number{width:100%}.blocks-app .account-settings .ant-checkbox-wrapper{margin:0 4px 0 8px}.blocks-app .account-settings-security-tab-content,.blocks-app .account-settings-codeiditor-tab-content{min-height:258px}body{margin:0}.blocks-app .ant-menu-submenu-placement-rightTop:before,.blocks-app .ant-menu-submenu-placement-rightTop:after{display:none!important}.blocks-app .main{overflow:hidden}.blocks-app .main__pane-layout{height:100%;min-height:100%}.blocks-app .main__pane{height:100%;transition:height .2s cubic-bezier(0,0,.2,1);position:relative}.blocks-app .main__pane_editor{z-index:2;box-shadow:0 10px 60px #2223}.blocks-app .main__pane .ant-layout-sider-trigger{flex-direction:column;justify-content:center;display:flex;overflow:hidden}.blocks-app .main__pane-trigger{justify-content:space-between;width:200px;display:flex}.blocks-app .main__pane-trigger .anticon-menu-unfold,.blocks-app .main__pane-trigger:hover .anticon-menu{display:none}.blocks-app .main__pane-trigger:hover .anticon-menu-unfold,.blocks-app .main__pane-trigger .anticon-menu{display:inline-flex}.blocks-app .main__panes-resizer{position:relative}.blocks-app .main__panes-resizer:before{content:"";background-color:#0000;border-bottom:2px solid #0000;width:100%;height:10px;transition:border-color .2s;position:absolute;bottom:0;left:0;right:0}.blocks-app .main__panes-resizer:hover{cursor:row-resize}.blocks-app .main__panes-resizer:hover:before{border-color:var(--colorPrimary)}.blocks-app .main__pane-close-btn{z-index:21;bottom:0;left:50%;transform:translate(-50%)}.blocks-app .main__pane-close-btn.ant-btn{border:0;border-radius:25px 25px 0 0;width:50px;height:25px;padding:0;position:absolute}.blocks-app .main__pane-close-btn .anticon{border-radius:50px 50px 0 0;outline:0 solid #188fff40;align-items:flex-end;height:100%;transition:all .1s cubic-bezier(0,0,.2,1)}.blocks-app .main__pane-close-btn .anticon.show-halo{outline-width:12px}.blocks-app .main__pane-close-btn .anticon.opened{align-items:flex-start;transform:rotate(180deg)}.blocks-app .main__pane-trigger .anticon.anticon-menu-fold{display:inline-flex}.blocks-app .main__pane-trigger.ant-btn{z-index:1;width:100%;height:70px;box-shadow:none;background:0 0;border:0;display:block;position:absolute;top:0;left:0;right:0}.blocks-app .main__pane-trigger.ant-btn:hover,.blocks-app .main__pane-trigger.ant-btn:focus{background:0 0}.blocks-app .main__pane-trigger.ant-btn:empty{visibility:visible;width:100%;display:block}.blocks-app .main__menu{z-index:11;height:100%;position:sticky;top:0}.blocks-app .main__menu>div{border-right:1px solid;border-color:inherit}.blocks-app .main__menu:not(.ant-layout-sider-collapsed){margin-right:-180px;top:0;left:0;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d}.blocks-app body.dark .main__menu:not(.ant-layout-sider-collapsed){box-shadow:0 3px 6px -4px #0000007a,0 6px 16px #00000052,0 9px 28px 8px #0003}.blocks-app .main__menu.main__menu_lock{box-shadow:none;margin-right:0}.blocks-app body.dark .main__menu.main__menu_lock{box-shadow:none}.blocks-app .main__menu *{text-overflow:unset!important}@media (width<=1400px){.blocks-app .main__menu .ant-layout-sider-zero-width-trigger{z-index:100000;top:50%;text-align:center;visibility:visible;width:20px;height:60px;font-size:16px;inset-inline-start:0;transform:translateY(-30px);box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #0000000f}.blocks-app .main__menu .ant-layout-sider-zero-width-trigger-right{visibility:hidden}}.blocks-app .main__content-wrapper{position:relative}@media (width<=1550px){.blocks-app .main__header{padding:0 20px 0 40px!important}}.blocks-app .ant-layout .ant-layout-sider-trigger{text-align:left;border-bottom:none;padding:0 30px}.blocks-app .ant-layout-sider-light .ant-layout-sider-trigger{background:0 0}.blocks-app .ant-btn.project-menu__block-button{padding:0!important}.blocks-app .groups-management__group-select label{width:100%}.blocks-app .groups-management__group-select label:after{display:none}.blocks-app .groups-management__group_menu{border-color:var(--colorFillSecondaryDarken)}.blocks-app .email-settings{height:100%;display:flex}.blocks-app .email-settings__collapse{flex-direction:column;width:100%;max-height:100%;display:flex;overflow:hidden}.blocks-app .email-settings__collapse.ant-collapse{border:0}.blocks-app .email-settings__collapse-panel:last-child.ant-collapse-item-active{padding-bottom:12px}.blocks-app .email-settings__collapse-panel.ant-collapse-item{min-height:50px;overflow:hidden}.blocks-app .email-settings__collapse-panel-content{width:100%}.blocks-app .email-settings .ant-collapse-content-box{padding:0 2px 0 12px;overflow:hidden}.blocks-app .upload-bg-image{margin-bottom:calc(var(--formItemMarginBottomXS) * 1px)}.blocks-app .upload-bg-image__inner-wrap{border:calc(var(--borderWidth) * 1px) solid var(--colorFillSecondaryDarken);border-radius:calc(var(--borderRadius) * 1px);cursor:pointer;background-color:var(--colorBgContainer);justify-content:space-between;align-items:center;transition:all .2s linear .2s;display:flex}.blocks-app .upload-bg-image__inner-wrap:hover{border-color:var(--borderColorHover)}.blocks-app .upload-bg-image__uploader{width:calc((var(--formControlHeight) - var(--borderWidth) * 2 + 1) * 1px);height:calc((var(--formControlHeight) - var(--borderWidth) * 2) * 1px);border-radius:calc(var(--borderRadius) * .8px);border:none;border-right:1px solid var(--colorFillSecondaryDarken);flex-shrink:0;margin-right:10px;overflow:hidden}.blocks-app .upload-bg-image__uploader-content{background:0 0;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;font-size:11px;display:flex}.blocks-app .upload-bg-image__uploader-content-inner{width:inherit;height:inherit;position:relative}.blocks-app .upload-bg-image__uploader-img-wrap{width:inherit;height:inherit;z-index:1;border:none;position:absolute;overflow:hidden}.blocks-app .upload-bg-image__uploader-img-wrap:after{opacity:0;content:"";transition:opacity .3s;position:absolute;inset:0}.blocks-app .upload-bg-image__uploader-content:hover .upload-bg-image__uploader-img-wrap:after{opacity:1}.blocks-app .upload-bg-image .upload-bg-image__empty{border-top:2px solid var(--colorError);z-index:2;width:27px;position:absolute;top:16px;left:3px;transform:rotate(-45deg)}.blocks-app .upload-bg-image .inputGroup{flex-direction:column;width:100%;display:flex}.blocks-app .upload-bg-image .image-size{color:var(--colorTextTertiary);padding-right:15px;font-size:12px}.blocks-app .upload-bg-image .image-empty-text,.blocks-app .upload-bg-image .image-size-splitter{color:var(--colorTextQuaternary)}.blocks-app .upload-bg-image__edit,.blocks-app .upload-bg-image__edit-menu{color:var(--colorLink);right:calc((var(--borderWidth) + 2) * 1px);padding:6px;line-height:1;position:absolute}.blocks-app .upload-bg-image__edit{right:calc((var(--borderWidth) + 32) * 1px);position:absolute}.blocks-app .upload-bg-image__uploader-icons-wrap{z-index:2;width:inherit;height:inherit;opacity:1;cursor:pointer;justify-content:center;align-items:center;transition:opacity .3s;display:flex;position:relative}.blocks-app .upload-bg-image__uploader-content:hover .upload-bg-image__uploader-icons-wrap{opacity:.85}.blocks-app .upload-bg-image__uploader-icons-wrap-upload{z-index:1;width:inherit;height:inherit;opacity:.8;cursor:pointer;justify-content:center;align-items:center;transition:opacity .3s;display:flex;position:relative}.blocks-app .upload-bg-image__uploader-content:hover .upload-bg-image__uploader-icons-wrap-upload{opacity:.85}.blocks-app .upload-bg-image__uploader-icons-wrap-upload .upload-bg-image__uploader-content:empty{background-color:var(--colorFillSecondary);border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .upload-bg-image__uploader-link,.blocks-app .upload-bg-image__uploader-link:hover{color:#fff}.blocks-app .upload-bg-image__uploader-icon{color:#fff;margin:0 3px;font-size:14px}.blocks-app .upload-bg-image__uploader-img{object-fit:cover;width:100%;height:100%;display:block!important}.blocks-app .upload-bg-image__uploader-img-placeholder{width:100%;height:100%;display:block}.blocks-app .upload-bg-image__uploader-icon-btn{cursor:pointer;background:0 0;border:0;margin:0;padding:0}.blocks-app .upload-bg-image__input{border-color:var(--colorFillSecondaryDarken)}.blocks-app .upload-bg-image__uploader .ant-upload-select{cursor:pointer;width:100%;height:100%;display:block}.blocks-app .upload-bg-image__uploader .ant-upload-select .ant-upload{width:100%;height:100%;display:block}.dark .blocks-app .upload-bg-image__uploader{border-right:1px solid var(--colorBorder)}.blocks-app #content_appearance_panel_form button.ant-btn:not(.ant-btn-primary):hover{border-color:#d9d9d9}.blocks-app .section-title-bull{color:var(--colorTextQuaternary)}.blocks-app .appearance-panel__content-styles{flex-direction:column;height:100%;min-height:0;display:flex}.blocks-app .appearance-panel__content-styles.ant-tabs{height:100%;min-height:0}.blocks-app .appearance-panel__content-styles .ant-tabs-content-holder,.blocks-app .appearance-panel__content-styles .ant-tabs-content,.blocks-app .appearance-panel__content-styles .ant-tabs-tabpane,.blocks-app .appearance-panel__content-styles .ant-tabs-tabpane-active,.blocks-app .appearance-panel__content-styles .email-settings__collapse-panel-content,.blocks-app .appearance-panel__content-styles .appearance-panel,.blocks-app .appearance-panel__content-styles .element-controls{min-height:0}.blocks-app .appearance-panel__content-styles .ant-tabs-content-holder,.blocks-app .appearance-panel__content-styles .ant-tabs-content,.blocks-app .appearance-panel__content-styles .ant-tabs-tabpane-active,.blocks-app .appearance-panel__content-styles .email-settings__collapse-panel-content,.blocks-app .appearance-panel__content-styles .appearance-panel{flex-direction:column;flex:1;display:flex}.blocks-app .appearance-panel__content-styles .ant-tabs-content-holder{overflow:hidden auto}.blocks-app .appearance-panel__content-styles .ant-tabs-content,.blocks-app .appearance-panel__content-styles .ant-tabs-tabpane-active{overflow:visible}.blocks-app .blocks-search{height:100%;min-height:0;overflow:visible}.blocks-app .blocks-search .ant-select-clear{right:30px}.blocks-app .blocks-search form{z-index:1;width:85%;padding:16px 0 0 24px;position:absolute;top:0;left:0}.blocks-app .blocks-search__form{display:none}.blocks-app .blocks-search__form.is_search{display:block}.blocks-app .blocks-search__divider-wrapper{z-index:1;margin-top:12px;position:relative}.blocks-app .blocks-search__divider{pointer-events:none;width:auto;height:20px;margin:24px 0 0;position:absolute;bottom:-20px;left:-24px;right:-13px}.blocks-app .blocks-search__type-wrapper{min-width:35%;min-height:0;padding:20px 24px 14px 0;overflow-y:auto}.blocks-app .blocks-search__type-wrapper ul{padding:0}.blocks-app .blocks-search__type-wrapper li{cursor:pointer;color:var(--colorTextSecondary);text-align:left;margin-bottom:12px;line-height:1.2;list-style:none}.blocks-app .blocks-search__type-wrapper li.active{color:var(--colorLink)}.blocks-app .blocks-search__type-wrapper li:hover{color:var(--colorLinkHover)}.blocks-app .blocks-search__result-wrapper{height:100%;min-height:0;margin-left:-24px;margin-right:-24px;padding-left:24px;display:flex;position:relative}.blocks-app .blocks-search__result-wrapper:after{content:"";background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);z-index:1;width:100%;height:20px;position:absolute;top:0;left:0}.blocks-app .blocks-search__result-wrapper.is_search:after{top:72px}.dark .blocks-app .blocks-search__result-wrapper:after{background:linear-gradient(180deg, var(--colorBgBase) -100%, transparent 50%)}.blocks-app .blocks-search__result-wrapper.is_search{flex:auto;min-width:0;margin-left:0;margin-right:-14px;padding-top:20px;padding-left:0;padding-right:6px;display:block;position:static;overflow:hidden auto}.blocks-app .blocks-search__blocks-wrapper{min-width:65%;min-height:0;padding-top:20px;padding-left:10px;padding-right:14px;overflow-y:scroll}.blocks-app .blocks-search__result-holder{opacity:0}.blocks-app .blocks-search__blocks-wrapper.is_search{box-sizing:border-box;width:100%;min-width:0;padding-top:0;padding-left:4px;padding-right:0}.blocks-app .blocks-search__result{margin-bottom:14px}.blocks-app .ant-dropdown .ant-dropdown-menu .blocks-search__result__menu-item{padding:9px}.blocks-app .blocks-search__result-header{z-index:2;justify-content:space-between;padding:4px 10px;font-size:13px;display:none;position:relative;box-shadow:0 5px 20px #00000012}.blocks-app .blocks-search__result-global-mark{z-index:10;pointer-events:none;position:absolute;top:1px;right:1px}.blocks-app .blocks-search__result-body{background:var(--colorBgElevated);border:1px solid var(--colorBorder);border-radius:calc(var(--borderRadiusSM) * 1px);text-align:center;cursor:grab;background-color:var(--controlTmpOutline);min-height:13px;padding:0;transition:all .3s cubic-bezier(.645,.045,.355,1);position:relative;overflow:hidden}.blocks-app .blocks-search__result-body:hover{border-color:var(--colorTextDisabled);cursor:grab!important}.blocks-app .blocks-search__result-body:active{cursor:grabbing}.blocks-app .blocks-search__result-body .blocks-search__result-html span{color:#bfbfbf}.blocks-app .blocks-search__result-body:after{content:"";z-index:1;width:100%;height:100%;display:block;position:absolute;top:0;left:0}.blocks-app .blocks-search__result-html{transform-origin:0 0;text-align:left;min-width:660px;height:100%;overflow-x:visible}.blocks-app .blocks-search__result-html>table{margin:0 auto}.blocks-app .blocks-search__result-html table{border-collapse:initial}.blocks-app .blocks-search .em-dragging-element .blocks-search__result-body{background-color:var(--controlTmpOutline)}.blocks-app .blocks-search .em-ghost-element{border-radius:calc(var(--borderRadiusXL) * 1px);overflow:hidden;background-color:var(--colorBgContainer)!important}.blocks-app .email-pane .ant-tabs .blocks-search__result-divider.ant-divider-horizontal{width:100%;margin-left:0;margin-right:0}.blocks-app .blocks-search.is_search{display:flex}.blocks-app .blocks-search.is_search .blocks-search__type-wrapper{min-width:33%;padding-right:0}.blocks-app .block-search__preview{background-color:var(--colorBgContainer);border-radius:calc(var(--borderRadiusXL) * 1px);box-shadow:var(--boxShadow);opacity:0;border:1px solid #fff;width:668px;padding:3px;transition:opacity .3s,transform .3s;position:absolute;top:0;left:-15px;transform:translate(-99%)}.blocks-app .block-search__preview-title{color:var(--colorTextSecondary);padding:8px 15px;font-size:14px}.blocks-app .block-search__preview-content{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadiusLG) * 1px);overflow:hidden}.blocks-app .block-search__preview-content table{border-collapse:initial}.dark .blocks-app .block-search__preview{border-color:#4f4f4f}.blocks-app .email-pane__col-wrapper_reverse .block-search__preview{left:auto;right:-15px;transform:translate(99%)}.blocks-app .block-global-badge{color:var(--colorTextSecondary);pointer-events:auto;justify-content:center;align-items:center;line-height:0;display:inline-flex}.blocks-app .block-global-badge svg{display:block}.blocks-app .block-global-badge--tile{box-sizing:border-box;background-color:#ffffffb8;border-radius:6px;width:24px;min-width:24px;height:24px;min-height:24px;padding:0;box-shadow:0 1px 2px #0000001a}.blocks-app .block-global-badge--tile svg{flex-shrink:0}.blocks-app body.dark .block-global-badge--tile,.dark .blocks-app .block-global-badge--tile{color:#ffffffe0;background-color:#0000008c;box-shadow:0 1px 3px #00000059}.blocks-app .selected-element-panel__columns-settings__controls__field{background:var(--colorBgElevated);border:calc(var(--borderWidth) * 1px) solid var(--colorFillSecondaryDarken);transition:all .2s linear .2s}.blocks-app .selected-element-panel__columns-settings__controls__field:hover{border-color:var(--borderColorHover)}.blocks-app .selected-element-panel__columns-settings__controls__field:focus,.blocks-app .selected-element-panel__columns-settings__controls__field:focus-within{border-color:var(--colorPrimaryBorder);box-shadow:0 0 0 2px #0591ff1a}.blocks-app .selected-element-panel__columns-settings__controls__column.current .selected-element-panel__columns-settings__controls__field{background:var(--colorPrimaryBg);border-color:var(--colorPrimaryBorder)}.blocks-app .structures{margin-left:-3px;margin-right:-3px;overflow:visible}.blocks-app .structures__list{margin-bottom:-10px}.blocks-app .structures__item{box-sizing:border-box;cursor:grab;flex-direction:row;justify-content:center;align-items:center;width:100%;min-width:100%;height:50px;margin-bottom:20px;padding:0;display:flex}.blocks-app .structures__item:hover .structures__item-row{background:var(--colorFillTertiary);border:#0000;box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #00000017}.dark .blocks-app .structures__item:hover .structures__item-row{background:var(--colorBgSpotlight)}.blocks-app .structures__item-row{background:var(--colorFillSecondary);border-radius:calc(var(--borderRadius) * 1.2px);width:97%;height:100%;padding:6px 3px;transition:box-shadow .3s,border-color .3s,background-color .3s}.blocks-app .structures__item-col{border-radius:calc(var(--borderRadius) * 1px);border:1px solid var(--controlItemBgActiveHover);background:var(--controlItemBgActive);width:100%;height:100%}.dark .blocks-app .structures__item-col{border-color:var(--colorBgElevated);background:var(--colorFillTertiary)}.blocks-app .em-dragging-element .structures__item .structures__item-row{background-color:var(--controlTmpOutline);box-shadow:none}.dark .blocks-app .em-dragging-element .structures__item .structures__item-row{background:var(--controlTmpOutline)}.blocks-app .em-dragging-element .structures__item .structures__item-row .structures__item-col{opacity:0;border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .em-ghost-element{background-color:var(--colorBgContainer);border-radius:calc(var(--borderRadiusXL) * 1px)}.blocks-app .em-ghost-element .structures__item-col{opacity:1!important}.dark .blocks-app .em-ghost-element{background:var(--colorBgSpotlight)}@media (width<=1550px){.blocks-app .structures__item{margin-bottom:16px}.blocks-app .structures__item:last-child{margin-bottom:20px}}.blocks-app .atoms{overflow:visible}.blocks-app .atoms__list{margin-bottom:20px;transition:opacity .2s}.blocks-app .atoms__item{box-sizing:border-box;border-radius:calc(var(--borderRadius) * 1px);width:109px;height:70px;color:var(--colorTextSecondary);background:var(--colorFillSecondary);flex-direction:column;justify-content:center;align-items:center;padding:5px;display:flex;position:relative}.blocks-app .atoms__item.ant-card-hoverable{cursor:grab!important}.blocks-app .atoms__item:hover{border-color:var(--colorBgElevated)}.dark .blocks-app .atoms__item:hover{border-color:var(--colorTextDisabled);background:var(--colorBorder)}.blocks-app .atoms__item_inactive{opacity:.5;cursor:default}.blocks-app .atoms__item_inactive:hover{border-color:var(--colorBorder)}.blocks-app .atoms__item.ai:before{content:"AI";color:#fff;background-color:var(--colorInfo);text-align:center;border-radius:0 calc(var(--borderRadius) * 1px) 0 calc(var(--borderRadiusSM) * 1px);width:36px;padding:1px 5px;font-size:12px;line-height:1.2;display:inline-block;position:absolute;top:0;right:0}.blocks-app .atoms__item.amp:before{content:"AMP";color:#fff;background-color:var(--colorPrimary);text-align:center;border-radius:0 8px 0 5px;width:36px;padding:1px 5px;font-size:12px;line-height:1.2;display:inline-block;position:absolute;top:0;right:0}.blocks-app .atoms .anticon{color:var(--colorTextSecondary);font-size:28px}.blocks-app .atoms .em-dragging-element .atoms__item{background-color:var(--controlTmpOutline)}.blocks-app .atoms .em-ghost-element{background-color:var(--colorBgContainer)!important;border:1px solid var(--colorBorder)!important}.blocks-app .atoms .atom-title{color:var(--colorTextTertiary);text-align:center;font-size:13px;line-height:1}.blocks-app .discuss-wrapper{flex-direction:column;flex:1;height:100%;min-height:0;display:flex}.blocks-app .discuss-wrapper .ant-tabs-content-holder,.blocks-app .discuss-wrapper .ant-tabs-content,.blocks-app .discuss-wrapper .ant-tabs-tabpane,.blocks-app .discuss-wrapper .ant-tabs-tabpane-active{flex-direction:column;flex:1;min-height:0;display:flex}.blocks-app .discuss-wrapper .ant-tabs-tabpane-active{overflow:hidden}.blocks-app .discuss-wrapper .discuss-main{flex-direction:column;height:100%;min-height:0;display:flex;position:relative;overflow:hidden}.blocks-app .discuss-main>.comment-list{flex:auto;min-height:0;margin-bottom:24px;overflow:hidden auto}.blocks-app .discuss-main>form{flex-shrink:0}.blocks-app .discuss-main .ant-comment .ant-comment-content-author-name{color:var(--colorTextBase);font-weight:500;transition:color .3s;font-size:14px!important;line-height:1.4!important}.blocks-app .discuss-main .comment-item-noavatar .ant-comment-content-detail{margin-left:0}.blocks-app .discuss-main .ant-comment-content-detail p{white-space:normal;margin:0 0 16px;line-height:1.4}.blocks-app .discuss-main .ant-comment-content-detail :not(.ant-btn,.buttons-variants,.buttons-variants *){-webkit-user-select:text;user-select:text}.blocks-app .discuss-main .ant-dropdown-trigger{z-index:1;margin:-36px 0 -1px -24px;padding:36px 0 1px 24px;position:relative}.blocks-app .discuss-main .ant-comment-nested .ant-dropdown-trigger{margin-left:-18px;padding-left:18px}.blocks-app .discuss-main .ant-comment-inner{transition:all .5s}.blocks-app .discuss-main .ant-comment.active>.ant-comment-inner{background:#efdbff}.blocks-app .discuss-main .targetted-comment-item>.ant-comment-inner{background:var(--colorInfoBg);cursor:pointer}.blocks-app .discuss-main .ant-comment-actions{opacity:.6;margin-top:6px;transition:all .3s cubic-bezier(.645,.045,.355,1);display:none}.blocks-app .discuss-main .ant-form-item-control-input-content{margin-left:2px}.blocks-app .discuss-main .ant-tooltip-inner{text-align:center}.blocks-app .discuss-main .replyEditMode{opacity:.5;display:none}.blocks-app .discuss-main .icon-target{font-size:16px;transform:translateY(5%)}.blocks-app .discuss-main .comment-icon-target{border-radius:8px;margin-left:5px;padding:0 8px 2px}.blocks-app .discuss-main .comment-icon-target:hover{cursor:pointer}.blocks-app .discuss-main .ant-btn.ant-btn-primary.button-target.button-target_choose{background:var(--colorInfo)}.blocks-app .discuss-main .ant-space button{margin-right:0}.blocks-app .countdown-color .color-picker-input__picker-holder{z-index:auto;left:auto;right:-10px}.blocks-app .ant-picker-dropdown.ant-picker-dropdown-placement-bottomLeft{position:fixed}.blocks-app .email-pane .box-shadow-control .ant-collapse-content,.blocks-app .email-pane .border-control .ant-collapse-content,.blocks-app .box-shadow-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box,.blocks-app .border-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{overflow:visible}.blocks-app .selected-text-common-form__border-radio{position:relative}.blocks-app .selected-text-common-form__border-radio:after{content:"·";border:3px solid var(--colorPrimary);border-radius:50%;font-size:0;line-height:0;position:absolute;top:2px;right:2px}.blocks-app .selected-text-common-form__border-col{margin-top:22px;margin-bottom:10px}@media (width<=1840px){.blocks-app .selected-text-common-form__border-col{margin-top:0}}.blocks-app .selected-text-common-form__border-item.ant-form-item .ant-row{flex-direction:row;align-items:center}.blocks-app .selected-text-common-form__border-item.ant-form-item .ant-row .ant-col.ant-form-item-label{white-space:nowrap;padding-top:6px}.blocks-app .selected-text-common-form__padding-input{max-width:46px;margin-bottom:0}.blocks-app .selected-text-common-form__padding-input input{text-align:center;padding:4px 8px}.blocks-app .selected-text-common-form__padding-input .ant-input-number-focused input{text-align:left}.blocks-app .selected-text-common-form__button--active,.blocks-app .selected-text-common-form__button--active:focus{color:#40a9ff;border-color:#40a9ff}.blocks-app .selected-text-common-form__br-input{margin-bottom:10px}.blocks-app .selected-text-common-form__tooltip{margin-left:4px}.blocks-app .selected-text-common-form__icon-radius{width:16px;height:100%}.blocks-app .selected-text-common-form__block{margin-bottom:24px}.blocks-app .selected-text-common-form__button_style{padding-left:10px;padding-right:10px;transition:none}.blocks-app .selected-text-common-form__format-toolbar{flex-wrap:wrap;align-items:flex-start;gap:10px;display:flex}.blocks-app .selected-text-common-form__format-toolbar .ant-form-item{margin-bottom:0}.blocks-app .ant-app .bullet-type .ant-select-selector{padding-left:5px}.blocks-app .selected_text_common_form_mobile .ant-form-item{margin:0}.blocks-app .selected_text_common_form_mobile .ant-input-number-affix-wrapper{padding-inline-start:7px}.blocks-app .selected_text_common_form_mobile .ant-select-single:not(.ant-select-customize-input) .ant-select-selector,.blocks-app .selected_text_common_form_mobile .ant-input-number-group .ant-input-number-group-addon{padding:0 7px}.blocks-app .selected_text_common_form_mobile .ant-input-number .ant-input-number-handler-wrap{width:16px}.blocks-app .selected_text_common_form_mobile .ant-select .ant-select-arrow{inset-inline-end:7px;font-size:10px!important}.blocks-app .selected_text_common_form_mobile .ant-divider-vertical{height:46px;top:0}.blocks-app .selected_text_common_form_mobile .selected_text_common_form_mobile__group{padding:6px 0}.blocks-app .selected_text_common_form_mobile .selected-td-form__button{background:var(--colorFillSecondary);width:34px;height:34px;border:1px solid #0000!important}.blocks-app .selected_text_common_form_mobile .ant-btn-default:not(:disabled,.ant-btn-disabled,.email-pane__content-col .selected-td-form__button--active):hover{background:var(--colorFillSecondaryDarken);color:inherit;border-color:#0000}.blocks-app .selected_text_common_form_mobile .selected-td-form__button--active{background:var(--colorPrimaryBg);color:var(--colorPrimary);border-color:#0000}.blocks-app .selected_text_common_form_mobile .selected-td-form__button--active:hover{background:var(--colorPrimaryBgHover)!important;color:var(--colorPrimaryTextHover)!important}.blocks-app .selected_text_common_form_mobile .color-picker-input{width:34px;height:34px}.blocks-app .selected_text_common_form_mobile .color-picker-input .ant-input-affix-wrapper{display:none}.blocks-app .selected_text_common_form_mobile .color-picker-input__control-wrap .ant-color-picker-trigger{border:1px solid var(--colorFillSecondaryDarken);width:34px;height:34px;top:0;left:0}.blocks-app .selected_text_common_form_mobile .ant-radio-button-wrapper{background:var(--colorFillSecondary);height:34px;padding:0 9px;border:1px solid #0000!important}.blocks-app .selected_text_common_form_mobile .ant-radio-button-wrapper:not(.ant-radio-button-wrapper-checked):hover{color:inherit;background:var(--colorFillSecondaryDarken)}.blocks-app .selected_text_common_form_mobile .ant-radio-button-wrapper.ant-radio-button-wrapper-checked{background:var(--colorPrimaryBg);color:var(--colorPrimary)}.blocks-app .selected_text_common_form_mobile .ant-radio-button-wrapper.ant-radio-button-wrapper-checked:hover{background:var(--colorPrimaryBgHover);color:var(--colorPrimaryTextHover)}.blocks-app .selected_text_common_form_mobile .codemode-textalign-dropdown{background-color:var(--colorBgContainer);border-radius:calc(var(--borderRadius) * 1px);box-shadow:var(--boxShadowSecondary);padding:6px}.blocks-app .selected_element_vindent_values{font-size:12px}.blocks-app .selected_element_vindent_values span{cursor:pointer;margin-right:10px}.blocks-app .selected_element_vindent_values span:hover{color:#40a9ff}.blocks-app .selected-td-form__border-side-wrapper{display:inline-flex;position:relative}.blocks-app .selected-td-form__border-side-wrapper label{border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .selected-td-form__border-side-wrapper:hover .selected-td-form__border-side-clear{opacity:1}.blocks-app .selected-td-form__border-side-clear{z-index:1;opacity:0;cursor:pointer;color:var(--colorTextSecondary);background-color:var(--colorBgLayout);border-radius:50%;width:20px;height:20px;transition:opacity .15s;position:absolute;top:-6px;right:-4px}.blocks-app .selected-td-form__border-side-clear:hover{color:var(--colorError)}.blocks-app .selected-td-form__border-radio:after{content:"·";border:3px solid var(--colorPrimary);border-radius:50%;font-size:0;line-height:0;position:absolute;top:2px;right:2px}@media (width<=1840px){.blocks-app .selected-td-form__border-col{margin-top:0}}.blocks-app .selected-td-form__border-item.ant-form-item .ant-row{flex-direction:row;align-items:center}.blocks-app .selected-td-form__border-item.ant-form-item .ant-row .ant-col.ant-form-item-label{white-space:nowrap;padding-top:6px}.blocks-app .selected-td-form__padding-input input{text-align:center;padding:4px 8px}.blocks-app .selected-td-form__padding-input .ant-input-number-focused input{text-align:left}.blocks-app .selected-td-form__button--active,.blocks-app .selected-td-form__button--active:focus{color:#40a9ff;border-color:#40a9ff}.blocks-app .selected-td-form__tooltip{margin-left:4px}.blocks-app .selected-td-form__icon-radius{flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}.blocks-app .selected-td-form__button_style{padding-left:10px;padding-right:10px;transition:none}.blocks-app .selected-td-form__border-radio{position:relative}.blocks-app .selected-td-form__border-radio:after{content:"·";border:3px solid var(--colorPrimary);border-radius:50%;font-size:0;line-height:0;position:absolute;top:2px;left:2px;right:auto}.blocks-app .selected-td-form__border-col{margin-top:0;margin-bottom:0}@media (width<=1840px){.blocks-app .selected-td-form__border-col{margin-top:0}}.blocks-app .selected-td-form__border-item.ant-form-item .ant-col.ant-form-item-label{white-space:nowrap;padding-top:6px}.blocks-app .selected-td-form__padding-input{max-width:50px;margin-bottom:0}.blocks-app .selected-td-form__padding-input input{padding:4px 8px}.blocks-app .selected-td-form__br-input{margin-bottom:10px}.blocks-app .selected-td-form__tooltip{vertical-align:baseline;margin-left:4px}.blocks-app .selected-td-form__icon-radius{width:16px;height:100%}.blocks-app .selected-td-form__block{margin-bottom:24px}.blocks-app .carousel__slide{background-color:var(--colorFillQuaternary);border-radius:calc(var(--borderRadius) * 1px);margin-bottom:calc(var(--formItemMarginBottomXS) * 1px);border:calc(var(--borderWidth) * 1px) solid var(--colorFillSecondaryDarken);padding:10px}.blocks-app .email-pane .box-shadow-control .ant-collapse-content,.blocks-app .email-pane .border-control .ant-collapse-content,.blocks-app .box-shadow-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box,.blocks-app .border-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{overflow:visible}.blocks-app .selected-image-form__add-title{margin-top:-15px;margin-bottom:30px}.blocks-app .selected-image-form__add-title span{cursor:pointer}.blocks-app .selected-image-form__add-title span:hover{color:#40a9ff}.blocks-app .email-pane .box-shadow-control .ant-collapse-content,.blocks-app .email-pane .border-control .ant-collapse-content,.blocks-app .box-shadow-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box,.blocks-app .border-control.ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{overflow:visible}.blocks-app .selected-social-form{box-sizing:border-box;min-width:0;padding:0 0 16px}.blocks-app .selected-social-form .selected-social-form__form{padding:0 0 8px}.blocks-app .selected-social-form .selected-social-form__align-block{margin-bottom:16px}.blocks-app .selected-social-form .selected-social-form__align-block .ant-form-item,.blocks-app .selected-social-form .selected-social-form__section{margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__section--bordered{border-top:1px solid var(--colorBorderSecondary,#f0f0f0);margin-top:16px;padding-top:16px}.blocks-app .selected-social-form .selected-social-form__section-title{color:var(--colorText,#000000e0);margin:0 0 16px;font-size:14px;font-weight:400;line-height:1.2}.blocks-app .selected-social-form .selected-social-form__field-row{margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__field-icon{color:var(--colorTextSecondary,#8c8c8c)}.blocks-app .selected-social-form .selected-social-form__input-full{width:100%}.blocks-app .selected-social-form .selected-social-form__items{flex-direction:column;gap:6px;margin-bottom:6px;display:flex}.blocks-app .selected-social-form .selected-social-form__card{border:1px solid var(--colorBorderSecondary,#f0f0f0);background:var(--colorFillTertiary,#f8f8f8);border-radius:6px;padding:12px;transition:border-color .15s,box-shadow .15s,opacity .15s}.blocks-app .selected-social-form .selected-social-form__card--dragging{opacity:.72}.blocks-app .selected-social-form .selected-social-form__card--drag-over{border-color:var(--colorPrimary);box-shadow:0 0 0 1px var(--colorPrimary)}.blocks-app .selected-social-form .selected-social-form__card-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-main{flex:auto;align-items:center;gap:8px;min-width:0;display:flex}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__drag-handle{width:24px;height:24px;color:var(--colorTextSecondary,#8c8c8c);cursor:grab;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;margin:0;padding:0;transition:color .15s,background-color .15s;display:inline-flex}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__drag-handle:hover{color:var(--colorText,#000000e0);background:var(--colorFillSecondary,#f0f0f0)}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__drag-handle:active{cursor:grabbing}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__drag-handle:focus-visible{outline:2px solid var(--colorPrimary);outline-offset:1px}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__drag-handle .anticon{font-size:14px;transform:rotate(90deg)}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-remove.ant-btn{box-sizing:border-box;aspect-ratio:1;width:24px;min-width:24px;max-width:24px;height:24px;min-height:24px;max-height:24px;color:var(--colorTextSecondary,#8c8c8c);background:0 0;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;padding:0;line-height:1;transition:color .15s,background-color .15s;display:inline-flex}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-remove.ant-btn .anticon{justify-content:center;align-items:center;line-height:0;display:inline-flex}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-remove.ant-btn svg{width:18px;height:18px;display:block}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-remove.ant-btn:hover{color:var(--colorText,#000000e0);background:var(--colorFillSecondary,#f0f0f0)}.blocks-app .selected-social-form .selected-social-form__card-head .selected-social-form__card-head-remove.ant-btn:focus-visible{outline:2px solid var(--colorPrimary);outline-offset:1px}.blocks-app .selected-social-form .selected-social-form__card-title{min-width:0;color:var(--colorText,#000000e0);flex:auto;font-size:14px;font-weight:300;line-height:1.2}.blocks-app .selected-social-form .selected-social-form__card-field.ant-row{margin-bottom:8px}.blocks-app .selected-social-form .selected-social-form__card-field.ant-row:last-child{margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__bg-color-row{width:100%;margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__bg-color-row .ant-col .ant-form-item{max-width:none;margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__bg-color-row .ant-form-item-control-input-content,.blocks-app .selected-social-form .selected-social-form__meta-block{width:100%}.blocks-app .selected-social-form .selected-social-form__meta-toggle-row{flex-wrap:wrap;align-items:center;display:flex}.blocks-app .selected-social-form .selected-social-form__meta-fields{flex-direction:column;gap:6px;width:100%;display:flex}.blocks-app .selected-social-form .selected-social-form__meta-fields .ant-form-item{margin-bottom:0}.blocks-app .selected-social-form .selected-social-form__meta-fields .ant-form-item-control-input-content{width:100%}.blocks-app .selected-social-form .selected-social-form__platform-row{align-items:flex-start;gap:8px;width:100%;margin-bottom:8px;display:flex}.blocks-app .selected-social-form .selected-social-form__platform-field{flex:auto;min-width:0;margin-bottom:0!important}.blocks-app .selected-social-form .selected-social-form__platform-edit.ant-btn{box-sizing:border-box;width:calc(var(--formControlHeight) * 1px);min-width:calc(var(--formControlHeight) * 1px);max-width:calc(var(--formControlHeight) * 1px);height:calc(var(--formControlHeight) * 1px);min-height:calc(var(--formControlHeight) * 1px);max-height:calc(var(--formControlHeight) * 1px);line-height:calc((var(--formControlHeight) - 2) * 1px);color:var(--colorTextSecondary,#8c8c8c);border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex}.blocks-app .selected-social-form .selected-social-form__platform-edit.ant-btn.ant-btn-icon-only .ant-btn-icon{justify-content:center;align-items:center;width:100%;height:100%;line-height:0;display:inline-flex}.blocks-app .selected-social-form .selected-social-form__platform-edit.ant-btn.ant-btn-icon-only .ant-btn-icon svg{display:block}.blocks-app .selected-social-form .selected-social-form__platform-edit.ant-btn:hover{color:var(--colorText,#000000e0);background:var(--colorFillSecondary,#f0f0f0)}.blocks-app .selected-social-form .selected-social-form__platform-edit.ant-btn:focus-visible{outline:2px solid var(--colorPrimary);outline-offset:1px}.blocks-app .selected-social-form .selected-social-form__platform-select{width:100%}.blocks-app .selected-social-form .selected-social-form__platform-select.ant-select-single .ant-select-selector .ant-select-selection-item{align-self:center;align-items:center;line-height:1.2;display:flex}.blocks-app .selected-social-form .selected-social-form__platform-select .ant-select-arrow{color:var(--colorTextSecondary,#8c8c8c)}.blocks-app .selected-social-form .selected-social-form__platform-select .ant-select-arrow svg{width:16px;height:16px}.blocks-app .selected-social-form .selected-social-form__platform-option{align-items:center;gap:4px;min-width:0;line-height:1.2;display:flex}.blocks-app .selected-social-form .selected-social-form__platform-option img{flex-shrink:0;width:30px;height:30px;margin-left:-6px;display:block}.blocks-app .selected-social-form .selected-social-form__platform-option-text{white-space:nowrap;text-overflow:ellipsis;line-height:1.2;overflow:hidden}.blocks-app .selected-social-form .selected-social-form__add-bar{background:var(--colorFillTertiary,#f8f8f8);height:32px;color:var(--colorText,#000000e0);border-radius:6px;justify-content:center;align-items:center;gap:8px;margin-top:0;padding:8px 12px;font-size:14px;font-weight:300;line-height:1.2;display:flex}.blocks-app .selected-social-form .selected-social-form__add-bar:not(:disabled):hover{background:var(--colorFillSecondary,#f0f0f0);color:var(--colorText,#000000e0)}.blocks-app .selected-social-form__platform-dropdown .ant-select-item-option{align-items:center}.blocks-app .selected-social-form__platform-dropdown .ant-select-item-option-content{align-items:center;min-height:0;line-height:1.2;display:flex}.blocks-app .selected-social-form__platform-dropdown .selected-social-form__platform-option{gap:0}.blocks-app .selected-social-form__platform-dropdown .selected-social-form__platform-option img{width:30px;height:30px;margin-left:-6px}.blocks-app .selected-social-form .ant-input-affix-wrapper .ant-input-suffix{flex-shrink:0;align-items:center;display:inline-flex}.blocks-app .selected-social-form .ant-input-affix-wrapper .ant-input-clear-icon:not(.ant-input-clear-icon-hidden){color:var(--colorTextSecondary,#8c8c8c)}.blocks-app .selected-social-form .ant-input-affix-wrapper .ant-input-clear-icon:not(.ant-input-clear-icon-hidden) .anticon{vertical-align:0;justify-content:center;align-items:center;line-height:0;display:inline-flex}.blocks-app .selected-social-form .ant-input-affix-wrapper .ant-input-clear-icon:not(.ant-input-clear-icon-hidden) svg{width:16px;height:16px;display:block}.blocks-app .selected-social-form .ant-input-affix-wrapper .ant-input-clear-icon:not(.ant-input-clear-icon-hidden):hover{color:var(--colorText,#000000e0)}.blocks-app .ant-app .email-pane__content-col .selected-social-form .ant-form-item.selected-social-form__card-field{margin-bottom:8px}.blocks-app .ant-app .email-pane__content-col .selected-social-form .ant-form-item.selected-social-form__card-field:last-child{margin-bottom:0}.blocks-app .email-pane .selected-social-form form.selected-social-form__form.element-controls,.blocks-app .email-pane .email-pane__collapse-wrapper.mobile-properties .selected-social-form form.selected-social-form__form.element-controls{height:auto;max-height:none}.blocks-app .ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-header{padding:20px 0;font-size:14px}.blocks-app .ant-collapse.hidden-props>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding-left:0;padding-right:0}.blocks-app .ant-collapse.hidden-props .ant-alert{margin-bottom:24px}.blocks-app .selected_form-mobile-props{padding:24px 14px 0 24px}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .selected-element-panel-content.selected-element-panel__hidden{visibility:hidden;opacity:0;height:0}.blocks-app .email-properties__collapse-panel .selected-element-panel-content{height:100%}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .selected-element-panel-content{width:auto;box-shadow:var(--boxShadowSecondary);border-radius:calc(var(--borderRadius) * 1px);border:none;margin:0;padding:0 6px;transition:opacity .2s;position:absolute;top:-60px;left:50%;transform:translate(-50%)}.blocks-app .em-analytics__email-tab-properties,.blocks-app .em-analytics__email-tab-history{z-index:999;position:absolute}.blocks-app .em-analytics__email-tab-properties .email-pane__collapse-wrapper,.blocks-app .em-analytics__email-tab-history .email-pane__collapse-wrapper{z-index:999;box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #0000000f}.blocks-app .email-pane__col-wrapper_pinch .em-analytics__email-tab-properties .email-pane__collapse-wrapper,.blocks-app .email-pane__col-wrapper_pinch .em-analytics__email-tab-history .email-pane__collapse-wrapper{box-shadow:none}.blocks-app .selected-element-panel{height:100%;overflow:visible}.blocks-app .selected-element-panel button.selected-element-panel__extra-btn,.blocks-app .selected-element-panel__extra-btn button{height:24px;padding:0 7px}.blocks-app .selected-element-panel-content{position:relative}.blocks-app .selected-element-panel-content.column-settings-show_onecol{padding-top:75px}.blocks-app .selected-element-panel__columns-settings{z-index:1;width:100%;position:relative}.blocks-app .selected-element-panel__columns-settings__header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px;display:flex}.blocks-app .selected-element-panel__columns-settings__header-title{color:var(--colorText);font-size:14px;line-height:1.5}.blocks-app .selected-element-panel__columns-settings__title{white-space:nowrap;text-overflow:ellipsis;margin-bottom:20px;font-size:16px;font-weight:500;line-height:20px;overflow:hidden}.blocks-app .selected-element-panel__columns-settings__links{white-space:nowrap;justify-content:flex-end;align-items:center;gap:8px;margin-left:auto;font-size:14px;display:flex}.blocks-app .selected-element-panel__columns-settings__links span{color:var(--colorLink);cursor:pointer}.blocks-app .selected-element-panel__columns-settings__links span:hover{color:#40a9ff}.blocks-app .selected-element-panel__columns-settings__links__add{align-items:center;gap:4px;display:inline-flex}.blocks-app .selected-element-panel__columns-settings__links__add.noactive,.blocks-app .selected-element-panel__columns-settings__links__add.noactive span{color:#00000073;cursor:not-allowed}.blocks-app .selected-element-panel__columns-settings__controls{align-items:center;gap:8px;display:flex}.blocks-app .selected-element-panel__columns-settings__controls__column{align-items:center;min-width:40px;display:flex;position:relative}.blocks-app .selected-element-panel__columns-settings__controls__column:first-child .selected-element-panel__columns-settings__controls__divider{visibility:hidden}.blocks-app .selected-element-panel__columns-settings__controls__column__remove{text-align:center;box-sizing:border-box;cursor:pointer;z-index:1;color:#000000d9;background-color:#fff;border-radius:50%;width:25px;height:25px;padding-top:2px;font-size:14px;display:none;position:absolute;top:-11px;left:-10px;box-shadow:0 0 7px -2px #00000059}.blocks-app .selected-element-panel__columns-settings__controls__column__remove:hover{box-shadow:0 0 7px -2px #000000b3}.blocks-app .selected-element-panel__columns-settings__controls__column:hover .selected-element-panel__columns-settings__controls__column__remove{display:block}.blocks-app .selected-element-panel__columns-settings__controls__field{text-align:center;border-radius:6px;width:100%;height:45px}.blocks-app .selected-element-panel__columns-settings__controls__field .ant-input-number{background:0 0;border:none}.blocks-app .selected-element-panel__columns-settings__controls__field .ant-input-number .ant-input-number-input{text-align:center;height:43px}.blocks-app .selected-element-panel__columns-settings__controls__divider{cursor:w-resize}.blocks-app .selected-element-panel__columns-settings__divider-wrapper{display:none}.blocks-app .selected-element-panel .selected-element-panel__columns-settings__divider-wrapper{display:block;position:relative}.blocks-app .selected-element-panel .selected-element-panel__columns-settings__divider{width:calc(100% + 80px);height:20px;margin:24px -40px 0;position:absolute;bottom:-20px}.blocks-app .selected-element-panel__content_abs{border:1px solid var(--colorBorder);z-index:100;background-color:var(--colorBgContainer);border-top:none;border-radius:0 0 8px 8px;width:100%;max-width:1400px;min-height:15px;margin-bottom:15px;transition:all .5s;display:flex;position:sticky;top:0;left:0}.blocks-app .selected-element-panel__mobile-switch{background-color:var(--colorPrimary)}.blocks-app .selected-element-panel__mobile-switch.ant-switch-checked{background-color:var(--colorInfo)}.blocks-app #selected_element_form_desktop_props .ant-alert-info .ant-alert-message{color:var(--colorInfoText)}.blocks-app .ant-app .selected_form-mobile-switch{margin-bottom:20px;font-size:16px;font-weight:500}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number:focus,.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-focused,.blocks-app .ant-app .selected_form-mobile-props .ant-input:focus,.blocks-app .ant-app .selected_form-mobile-props .ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector,.blocks-app .ant-app .selected_form-mobile-props .ant-input-affix-wrapper:focus,.blocks-app .ant-app .selected_form-mobile-props .ant-input-affix-wrapper-focused{border-color:var(--colorInfo);box-shadow:var(--colorInfoBg) 0 0 0 2px!important}.blocks-app .ant-app .selected_form-mobile-props .ant-select:not(.ant-select-disabled):hover .ant-select-selector{border-color:var(--colorInfo)}.blocks-app .ant-app .selected_form-mobile-props .ant-select-item-option-selected:not(.ant-select-item-option-disabled){background-color:#edd3ed}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within{box-shadow:var(--colorInfoBg) 0 0 0 2px!important}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-affix-wrapper:not(:last-child),.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-group-addon:last-child,.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within>.ant-input-number:first-child{border-color:var(--colorInfo)}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group:not(.ant-input-number-wrapper-disabled):focus-within .ant-input-number-affix-wrapper:not(:last-child){border-right-color:var(--colorFillSecondaryDarken)}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group-addon .ant-select-open .ant-select-selector,.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-group-addon .ant-select-focused .ant-select-selector,.blocks-app .ant-app .selected_form-mobile-props .ant-radio-button-wrapper:hover,.blocks-app .ant-app .selected_form-mobile-props .ant-collapse>.ant-collapse-item>.ant-collapse-header:hover{color:var(--colorInfo)}.blocks-app .ant-app .selected_form-mobile-props .ant-btn-background-ghost.ant-btn-primary{color:var(--colorInfo);border-color:var(--colorInfo)}.blocks-app .ant-app .selected_form-mobile-props .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):first-child,.blocks-app .ant-app .selected_form-mobile-props .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled),.blocks-app .ant-app .selected_form-mobile-props .selected-td-form__button--active{background-color:var(--colorInfoBg)!important;color:var(--colorInfoText)!important}.blocks-app .ant-app .selected_form-mobile-props .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):before,.blocks-app .ant-app .selected_form-mobile-props .ant-switch-checked{background-color:var(--colorInfoTextActive)}.blocks-app .ant-app .selected_form-mobile-props .ant-switch.ant-switch-checked:hover:not(.ant-switch-disabled){background-color:var(--colorInfoHover)}.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-handler:hover .ant-input-number-handler-up-inner,.blocks-app .ant-app .selected_form-mobile-props .ant-input-number-handler:hover .ant-input-number-handler-down-inner{color:var(--colorInfo)}.blocks-app .ant-app .selected_form-mobile-props .ant-alert-info{background-color:var(--colorInfoBg);border:none}.blocks-app .ant-app .selected_form-mobile-props .ant-alert-info .ant-alert-message{color:var(--colorInfoText)}.blocks-app .selected-element-panel__extra-btn-container{position:absolute;top:13px;right:50px}.blocks-app .selected-element-panel__extra-btn-container .ant-btn-text:disabled{color:var(--colorTextQuaternary)}.blocks-app .email-properties__collapse .ant-tabs-content>.ant-tabs-tabpane{height:100%}.blocks-app .ant-app .columns-presets{width:100%;margin-bottom:calc(var(--formItemMarginBottomMD) * 1px);align-items:center;gap:7px;display:flex}.blocks-app .ant-app .columns-presets .ant-btn{flex:1;min-width:0;padding:7px 9px;line-height:1!important}.blocks-app .email-pane__collapse-wrapper .ant-modal-close{width:24px;height:24px;font-size:16px}.blocks-app .email-pane__collapse-wrapper .ant-modal-close .anticon{line-height:0}.blocks-app .modal-select-role__cards-grid{grid-gap:20px;grid-template-columns:repeat(auto-fit,322px);padding:10px 24px 24px;display:grid}.blocks-app .modal-select-role .element-card__select-role{cursor:pointer;height:300px}.blocks-app .modal-select-role .element-card__select-role img{cursor:pointer;background-color:#fff;width:100%}.blocks-app .modal-select-role .element-card__select-role .ant-card-body{height:50px}.blocks-app .modal-select-role__title-wrapper{display:inline-block}.blocks-app .ai-response-paragraph{margin-bottom:16px}.blocks-app .em-analytics__email-tab-discuss{overflow:auto!important}.blocks-app .discuss-ai-wrapper{flex-direction:column;flex:1;height:100%;min-height:0;display:flex}.blocks-app .discuss-ai-wrapper .ant-tabs-content-holder,.blocks-app .discuss-ai-wrapper .ant-tabs-content,.blocks-app .discuss-ai-wrapper .ant-tabs-tabpane,.blocks-app .discuss-ai-wrapper .ant-tabs-tabpane-active{flex-direction:column;flex:1;min-height:0;display:flex}.blocks-app .discuss-ai-wrapper .ant-tabs-content{overflow:hidden auto}.blocks-app .discuss-ai-wrapper .discuss-main{min-height:0}.blocks-app .ant-tabs-content .discuss-ai{background-color:#fafafa;border:1px solid #f1ebeb;border-radius:8px;margin:0 0 20px;padding:24px 36px 0}.dark .blocks-app .ant-tabs-content .discuss-ai{background-color:#181818;border-color:#262626}.blocks-app .discuss-main{margin:0}.blocks-app .discuss-main__form{position:relative}.blocks-app .discuss-main__buttons{justify-content:space-between;display:flex}.blocks-app .discuss-main .ant-comment-actions{margin-top:6px}.blocks-app .discuss-main>.comment-list{margin-bottom:40px}.blocks-app .discuss-main>form{padding-bottom:20px}.blocks-app .discuss-main .ant-comment-actions{opacity:.6;transition:all .3s cubic-bezier(.645,.045,.355,1)}.blocks-app .discuss-main .ant-comment-content:hover .ant-comment-actions{opacity:1}.blocks-app .discuss-main .replyEditMode{opacity:.5}.blocks-app .modal-select-role{max-height:1400px}.blocks-app .modal-select-role .element-card.element-card_select-role .ant-card-cover{border:none;height:auto}.blocks-app .modal-select-role .element-card .ant-card-body{height:auto}.blocks-app .modal-select-role__cards-grid{grid-gap:20px;grid-template-columns:repeat(3,260px);width:auto;padding:10px 24px 24px;display:grid}.blocks-app .modal-select-role .element-card_select-role{cursor:pointer}.blocks-app .modal-select-role .element-card_select-role img,.blocks-app .modal-select-role .element-card__no-img{background-color:#fff}@media (width<=1200px){.blocks-app .modal-select-role__cards-grid{grid-template-columns:repeat(4,240px);width:auto}.blocks-app .modal-select-role .element-card__title{font-size:15px}}.blocks-app .ant-comment .ant-comment-avatar{cursor:auto}.blocks-app .ant-comment .ant-comment-avatar .anticon-robot{background:var(--colorInfo)}.blocks-app .ant-comment .ant-comment-avatar .anticon-user{background:var(--colorPrimary)}.blocks-app .ant-comment.ai-comment .ant-comment-avatar .anticon-robot{background:var(--colorInfo)}.blocks-app .ant-comment.ai-comment .ant-comment-avatar .anticon-user{background:var(--colorPrimary)}.blocks-app .ant-comment.ai-comment .ai-guide__example{border-left:1px solid #3b91ff;padding-left:15px;font-style:italic}.blocks-app .ant-comment.ai-comment .ai-guide__example strong{font-weight:500}.blocks-app .ant-comment-content-detail{margin-top:16px;margin-left:-30px}.blocks-app .ant-comment-content-detail p{white-space:normal;margin:16px 0;line-height:1.4}.blocks-app .ant-comment-content-detail ul{margin:16px 0}.blocks-app .ant-comment-content-detail .buttons-variants{white-space:normal;margin-left:0;padding-left:0}.blocks-app body.dark .ant-comment-content-detail .buttons-variants .ant-btn-default:hover{background:#e6f7ff}.blocks-app .ant-comment-content-detail .buttons-variants li{white-space:normal;margin-bottom:4px}.blocks-app .ant-comment-content-detail .buttons-variants .ant-btn.ant-btn-sm{text-align:left;height:auto;padding:4px 7px;line-height:1.4}.blocks-app .ant-comment-content-detail .ai-response-variant{margin:15px 0}.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-title,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-preheader,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-copy{cursor:pointer;background-color:#1890ff33;border-radius:4px;margin:4px 0;padding:3px 8px;line-height:1.4;transition:all .3s;display:block}.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-title:hover,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-preheader:hover,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-copy:hover{color:#000}.blocks-app body.dark .ant-comment-content-detail .ai-response-variant .ai-response-title:hover,.blocks-app body.dark .ant-comment-content-detail .ai-response-variant .ai-response-preheader:hover,.blocks-app body.dark .ant-comment-content-detail .ai-response-variant .ai-response-copy:hover{color:#fff}.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-title:hover,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-preheader:hover,.blocks-app .ant-comment-content-detail .ai-response-variant .ai-response-copy:hover{background-color:#1890ff55}.blocks-app #email_iframe{vertical-align:top;background-color:#f8f8f8;border:0;width:1px;min-width:100%}.blocks-app .iframe-provider+#email_iframe{pointer-events:none}.blocks-app .iframe-provider{width:100%;height:100%;position:absolute;top:0;left:0}.blocks-app .anticon-history{transform:scaleX(-1)}.blocks-app .history-panel{border-right:1px solid var(--colorBorder);flex-direction:column;justify-content:space-between;height:100%;display:flex;box-shadow:-12px 0 48px 16px #00000008,-9px 0 28px #0000000d,-6px 0 16px -8px #00000014}.blocks-app .history-panel__sider{z-index:11;background:var(--colorBgContainer);height:100%;position:absolute;top:0;bottom:0;left:80px}.blocks-app .history-panel__list-header,.blocks-app .history-panel__header{justify-content:space-between;align-items:center;padding:0 24px 9px;font-weight:500;display:flex}.blocks-app .history-panel__list-header :last-child{min-width:60px}.blocks-app .history-panel__header{padding-left:24px;padding-right:24px}.blocks-app .history-panel__list-header:before{background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);border-top:1px solid var(--colorBorderSecondary);content:"";z-index:1;background-position:0 -2px;background-repeat:no-repeat;border-bottom:none;height:20px;position:absolute;inset:30px 0 -20px}.dark .blocks-app .history-panel__list-header:before{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.blocks-app .history-panel__header-title{font-size:14px;font-style:normal;line-height:24px}.blocks-app body.dark .history-panel__header-title{color:#fff}.blocks-app .history-panel__header-close{color:#00000073;margin-right:-16px}.blocks-app body.dark .history-panel__header-close{color:#fff}.blocks-app .history-panel__list{height:100%;margin:10px -24px 0}.blocks-app .history-panel__list .ant-list-header{border:none;margin-bottom:5px;padding:0;font-weight:500}.blocks-app .history-panel__list .ant-spin-nested-loading,.blocks-app .history-panel__list .ant-spin-container{height:100%}.blocks-app .history-panel__list .ant-list-items{height:calc(100% - 30px);overflow:auto}.blocks-app .history-panel__list .ant-list-item{cursor:pointer;border:none;padding:9px 24px}.blocks-app .history-panel__list .ant-list-item:hover{background-color:var(--colorFillQuaternary)}.blocks-app .history-panel__list .ant-btn.ant-btn-sm{border:none;height:22px;line-height:1;padding:0!important}.blocks-app .history-panel .ant-list-item{padding:9px 0}.blocks-app .history-panel__list-date,.blocks-app .history-panel__list-header .history-panel__list-date{min-width:130px}.blocks-app .history-panel__list-author{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.blocks-app .history-panel__restore{opacity:0;visibility:hidden}.blocks-app .history-panel__item_active{background-color:var(--colorFillSecondary)}.blocks-app body.dark .history-panel__item_active{background:#111b26}.blocks-app .history-panel__item_active .history-panel__restore{opacity:1;visibility:visible}.blocks-app .ant-layout-sider.history-panel__sider .ant-layout-sider-children{opacity:1;width:500px;height:100%;transition:opacity .5s;position:absolute;right:0}.blocks-app .ant-layout-sider-collapsed.history-panel__sider .ant-layout-sider-children{opacity:0}.blocks-app .optimise-wrapper{flex-direction:column;flex:1;height:100%;min-height:0;display:flex}.blocks-app .optimise-wrapper .ant-tabs-content-holder,.blocks-app .optimise-wrapper .ant-tabs-content,.blocks-app .optimise-wrapper .ant-tabs-tabpane,.blocks-app .optimise-wrapper .ant-tabs-tabpane-active{flex-direction:column;flex:1;min-height:0;display:flex}.blocks-app .optimise-wrapper .ant-tabs-content{overflow:hidden auto}.blocks-app .optimise{background:0 0;border:none;min-height:0}.blocks-app .optimise.ant-collapse>.ant-collapse-item:last-child{border-bottom:none!important}.blocks-app .optimise .ant-list-item-meta-title{-webkit-user-select:text;user-select:text}.blocks-app .optimise__summary{justify-content:space-between;width:100%;display:flex}.blocks-app .optimise__summary>div:not(:last-child){margin-right:10px}.blocks-app .optimise__summary h4{line-height:1}.blocks-app .optimise .ant-divider.ant-divider-horizontal{border-top:1px solid var(--colorBorderSecondary);background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);width:calc(100% + 50px);margin:26px -25px}.blocks-app .optimise.ant-collapse>.ant-collapse-item{border-bottom:1px solid var(--colorBorderSecondary)}.blocks-app .optimise.ant-collapse>.ant-collapse-item .ant-collapse-header{padding:12px 0 12px 24px}.blocks-app .optimise.ant-collapse>.ant-collapse-item .ant-collapse-content{border-top:none}.blocks-app .optimise.ant-collapse>.ant-collapse-item .ant-collapse-content-box{padding:24px 14px 12px 24px;overflow-y:hidden;padding-top:0!important;padding-right:24px!important}.blocks-app .optimise .valid{white-space:nowrap;color:var(--colorSuccessText)}.blocks-app .optimise .error{white-space:nowrap;color:var(--colorErrorText)}.blocks-app .optimise .warning{white-space:nowrap;color:var(--colorWarningText)}.blocks-app .optimise__title-wrapper{justify-content:space-between;align-items:flex-start;width:100%;display:flex}.blocks-app .optimise__title-wrapper h5{width:70%}.blocks-app .optimise__link{-webkit-user-select:text;user-select:text}.blocks-app .optimise__link:hover{color:var(--colorLinkHover)!important}.blocks-app .email-pane .optimise .ant-collapse-content{height:calc(100% - 184px)}.blocks-app .optimise__image-item .image-item__meta_fail .ant-list-item-meta-avatar{background:linear-gradient(45deg, var(--colorBorder) 25%, transparent 0, transparent 75%, var(--colorBorder) 0), linear-gradient(45deg, var(--colorBorder) 25%, transparent 0, transparent 75%, var(--colorBorder) 0);background-position:0 0,4px 4px;background-size:8px 8px;border-radius:6px}.blocks-app .optimise__image-item .image-item__meta.ant-list-item-meta{align-items:stretch}.blocks-app .optimise__image-item .image-item__image{cursor:pointer;object-fit:contain;border-radius:calc(var(--borderRadius) * 1px);background:linear-gradient(45deg, var(--colorBorder) 25%, transparent 0, transparent 75%, var(--colorBorder) 0), linear-gradient(45deg, var(--colorBorder) 25%, transparent 0, transparent 75%, var(--colorBorder) 0);background-position:0 0,4px 4px;background-size:8px 8px}.blocks-app .optimise__image-item .image-item__image+.ant-image-mask{border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .optimise__image-item .image-item__image_fail{height:92px!important}.blocks-app .optimise .ant-list .ant-list-item .ant-list-item-meta .ant-list-item-meta-avatar{margin-inline-end:12px}.blocks-app .optimise .warnings{color:var(--colorWarningText)}.blocks-app .optimise .errors{color:var(--colorErrorText)}.blocks-app .optimise .valid{color:var(--colorSuccessText)}.blocks-app .optimise__button.warnings{border-color:var(--colorWarningBorder);background:var(--colorWarningBg)}.blocks-app .optimise__button.warnings:not(.ant-tag-checkable-checked):hover{border-color:var(--colorWarningBorderHover);color:var(--colorWarningTextHover);background:var(--colorWarningBgHover)}.blocks-app .optimise__button.warnings_active{color:#fff;background-color:var(--colorWarningActive);border-color:var(--colorWarningActive)}.blocks-app .optimise__button.errors{border-color:var(--colorErrorBorder);background:var(--colorErrorBg)}.blocks-app .optimise__button.errors:not(.ant-tag-checkable-checked):hover{border-color:var(--colorErrorBorderHover);color:var(--colorErrorTextHover);background:var(--colorErrorBgHover)}.blocks-app .optimise__button.errors_active{color:#fff;background-color:var(--colorErrorActive);border-color:var(--colorErrorActive)}.blocks-app .optimise__button.valid{border-color:var(--colorSuccessBorder);background:var(--colorSuccessBg)}.blocks-app .optimise__button.valid:not(.ant-tag-checkable-checked):hover{border-color:var(--colorSuccessBorderHover);color:var(--colorSuccessTextHover);background:var(--colorSuccessBgHover)}.blocks-app .optimise__button.valid_active{color:#fff;background-color:var(--colorSuccessActive);border-color:var(--colorSuccessActive)}.blocks-app .optimise .ant-alert-info{width:100%;margin-top:5px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__divider-no-margin.selected-td-form__divider{margin-top:0;margin-bottom:0}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-col.optimise__col-align-right{text-align:right}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-row.optimise__row-mb-24{margin-bottom:24px}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-row.optimise__row-mb-16{margin-bottom:16px}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-row.optimise__row-mb-14{margin-bottom:14px}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-row.optimise__row-mb-12{margin-bottom:12px}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-row.optimise__row-mb-8{margin-bottom:8px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__link-blue.ant-typography{color:#177ddc;text-decoration:underline}.blocks-app .ant-app .email-pane .ant-tabs .optimise .ant-image.optimise__image-auto-height{height:auto}.blocks-app .ant-app .email-pane .ant-tabs .optimise__text-clickable.ant-typography{cursor:pointer}.blocks-app .ant-app .email-pane .ant-tabs .optimise__valid-title.ant-typography{margin:0;font-size:14px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__valid-title-space.ant-space{flex-wrap:wrap}.blocks-app .ant-app .email-pane .ant-tabs .optimise__alert-custom.ant-alert{width:100%;padding:14px 14px 10px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__summary-title.ant-typography{margin-bottom:0}.blocks-app .ant-app .email-pane .ant-tabs .optimise__summary-label{font-size:12px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__spam-score-title.ant-typography{margin:0}.blocks-app .ant-app .email-pane .ant-tabs .optimise__spam-score-value{margin-right:12px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__spam-score-text.ant-typography{margin-right:12px;font-size:20px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__spam-report-score.ant-typography{font-size:20px}.blocks-app .ant-app .email-pane .ant-tabs .optimise__spam-report-description{margin-left:12px}.blocks-app .img-preview{background-color:var(--colorBgContainer);border-radius:calc(var(--borderRadiusXL) * 1px);box-shadow:var(--boxShadow);opacity:0;border:1px solid #fff;max-width:668px;padding:3px;transition:opacity .3s,transform .3s;position:absolute;top:0;left:-15px;transform:translate(-99%)}.blocks-app .img-preview-content{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadiusLG) * 1px);background:linear-gradient(45deg, var(--colorBorder) 25%, transparent 25%, transparent 75%, var(--colorBorder) 75%), linear-gradient(45deg, var(--colorBorder) 25%, transparent 25%, transparent 75%, var(--colorBorder) 75%);background-position:0 0,4px 4px;background-size:8px 8px;overflow:hidden}.blocks-app .img-preview-content table{border-collapse:initial}.dark .blocks-app .img-preview{border-color:#4f4f4f}.blocks-app .browser-extension-warning-modal__footer{justify-content:center;margin-top:24px;display:flex}.blocks-app .form-editor-calendar-panel.panel-form{height:100%;min-height:0;max-height:100%}.blocks-app .form-editor-calendar-panel .panel-form__body.form-editor-calendar-panel__body{-webkit-overflow-scrolling:touch;flex:1;min-width:0;min-height:0;overflow:hidden auto}.blocks-app .form-editor-calendar-panel .panel-form__body-content{box-sizing:border-box;min-height:0}.blocks-app .form-editor-calendar-panel__title{font-size:16px;font-weight:600}.blocks-app .form-editor-calendar-panel__inner{box-sizing:border-box;padding:16px 20px 32px}.blocks-app .form-editor-calendar.ant-form-vertical>.ant-form-item{margin-bottom:20px}.blocks-app .form-editor-calendar__label-with-info{align-items:center;gap:6px;display:inline-flex}.blocks-app .form-editor-calendar__info-icon{color:var(--colorTextSecondary);cursor:help;display:inline-flex}.blocks-app .form-editor-calendar__section-divider{margin:16px 0 20px}.blocks-app .form-editor-calendar__more-btn{margin-bottom:12px}.blocks-app .form-editor-calendar__expanded{flex-direction:column;gap:0;margin-top:8px;display:flex}.blocks-app .form-editor-calendar__expanded>.form-section:first-child>.form-section__header .form-section__title{padding-top:12px}.blocks-app .form-editor-calendar__section.form-section .form-section__body{padding-top:8px;padding-bottom:18px}.blocks-app .form-editor-calendar__bg-preview{align-items:center;gap:12px;margin-top:4px;padding-top:12px;display:flex}.blocks-app .form-editor-calendar__bg-chip{border-radius:calc(var(--borderRadius) * 1px);border:1px solid var(--colorBorderSecondary);justify-content:center;align-items:center;min-width:40px;height:36px;padding:0 10px;line-height:1;display:inline-flex}.blocks-app .form-editor-calendar__bg-chip--active{box-shadow:0 0 0 1px var(--colorPrimaryBg)}.blocks-app .form-editor-calendar__full-width{width:100%}.blocks-app .form-editor-calendar__typography-stack{flex-direction:column;gap:16px;display:flex}.blocks-app .form-editor-calendar .form-border-radius-inputs,.blocks-app .form-editor-calendar .em-form-border-inputs{margin-top:4px}.blocks-app .form-editor-dropdown-list-panel.panel-form{height:100%;min-height:0;max-height:100%}.blocks-app .form-editor-dropdown-list-panel .panel-form__body.form-editor-dropdown-list-panel__body{-webkit-overflow-scrolling:touch;flex:1;min-width:0;min-height:0;overflow:hidden auto}.blocks-app .form-editor-dropdown-list-panel .panel-form__body-content{box-sizing:border-box;min-height:0}.blocks-app .form-editor-dropdown-list-panel__title{font-size:16px;font-weight:600}.blocks-app .form-editor-dropdown-list-panel__inner{box-sizing:border-box;padding:16px 20px 32px}.blocks-app .form-editor-dropdown.ant-form-vertical>.ant-form-item{margin-bottom:20px}.blocks-app .form-editor-dropdown__section-divider{margin:16px 0 20px}.blocks-app .form-editor-dropdown__more-btn{margin-bottom:12px}.blocks-app .form-editor-dropdown__bg-preview{flex-direction:column;gap:8px;margin-top:4px;padding-top:8px;display:flex}.blocks-app .form-editor-dropdown__trigger-mock{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;justify-content:space-between;align-items:center;gap:8px;min-height:32px;padding:4px 11px;display:flex}.blocks-app .form-editor-dropdown__trigger-mock-text{min-width:0;color:var(--colorTextQuaternary,var(--colorTextSecondary));text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:12px;line-height:1.3;overflow:hidden}.blocks-app .form-editor-dropdown__trigger-mock-arrow{flex-shrink:0;align-items:center;line-height:0;display:inline-flex}.blocks-app .form-editor-dropdown__list-mock{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;flex-direction:column;gap:4px;padding:8px 10px;display:flex}.blocks-app .form-editor-dropdown__list-mock-item{color:var(--colorText);font-size:12px;line-height:1.4}.blocks-app .form-editor-dropdown__section.form-section .form-section__body{padding-top:8px;padding-bottom:18px}.blocks-app .form-editor-dropdown__expanded{flex-direction:column;gap:0;margin-top:8px;display:flex}.blocks-app .form-editor-dropdown__expanded>.form-section:first-child>.form-section__header .form-section__title{padding-top:12px}.blocks-app .form-editor-dropdown__full-width{width:100%}.blocks-app .form-editor-dropdown .form-border-radius-inputs,.blocks-app .form-editor-dropdown .em-form-border-inputs{margin-top:4px}.blocks-app .form-editor-radio-panel.panel-form{height:100%;min-height:0;max-height:100%}.blocks-app .form-editor-radio-panel .panel-form__body.form-editor-radio-panel__body{-webkit-overflow-scrolling:touch;flex:1;min-width:0;min-height:0;overflow:hidden auto}.blocks-app .form-editor-radio-panel .panel-form__body-content{box-sizing:border-box;min-height:0}.blocks-app .form-editor-radio-panel__title{font-size:16px;font-weight:600}.blocks-app .form-editor-radio-panel__inner{box-sizing:border-box;padding:16px 20px 32px}.blocks-app .form-editor-radio.ant-form-vertical>.ant-form-item{margin-bottom:20px}.blocks-app .form-editor-radio__default-radios.em-radio.ant-radio-group,.blocks-app .form-editor-radio__shape-radios.em-radio.ant-radio-group{flex-wrap:wrap;align-items:center;gap:8px 24px;display:flex}.blocks-app .form-editor-radio__icon-toggle-group.em-radio.ant-radio-group{flex-wrap:nowrap;gap:6px;display:flex}.blocks-app .form-editor-radio__icon-toggle-group .ant-radio-button-wrapper{justify-content:center;align-items:center;min-width:32px;padding-inline:10px;line-height:1;display:inline-flex}.blocks-app .form-editor-radio__inner-section-divider{margin:12px 0 16px}.blocks-app .form-editor-radio__position-block,.blocks-app .form-editor-radio__layout-form-item.ant-form-item,.blocks-app .form-editor-radio__align-form-item.ant-form-item{margin-bottom:0}.blocks-app .form-editor-radio__align-block{margin-top:16px}.blocks-app .form-editor-radio__section-divider{margin:16px 0 20px}.blocks-app .form-editor-radio__more-btn{margin-bottom:12px}.blocks-app .form-editor-radio__bg-preview{flex-direction:column;gap:8px;margin-top:4px;padding-top:8px;display:flex}.blocks-app .form-editor-radio__preview-panel{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;flex-direction:column;gap:6px;padding:10px;display:flex}.blocks-app .form-editor-radio__preview-row{border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;align-items:center;gap:10px;min-height:28px;padding:4px 8px;display:flex}.blocks-app .form-editor-radio__preview-dot{border:2px solid var(--colorBorderSecondary);box-sizing:border-box;border-radius:50%;flex-shrink:0;width:14px;height:14px}.blocks-app .form-editor-radio__preview-dot--selected{border-style:solid}.blocks-app .form-editor-radio__preview-label{color:var(--colorText);font-size:12px;line-height:1.3}.blocks-app .form-editor-radio__section.form-section .form-section__body{padding-top:8px;padding-bottom:18px}.blocks-app .form-editor-radio__expanded{flex-direction:column;gap:0;margin-top:8px;display:flex}.blocks-app .form-editor-radio__expanded>.form-section:first-child>.form-section__header .form-section__title{padding-top:12px}.blocks-app .form-editor-radio__full-width{width:100%}.blocks-app .form-editor-radio__micro-label{color:var(--colorTextSecondary);margin-bottom:0;font-size:12px;line-height:1.2;display:block}.blocks-app .form-editor-radio .form-border-radius-inputs,.blocks-app .form-editor-radio .em-form-border-inputs{margin-top:4px}.blocks-app .form-editor-checkbox-panel.panel-form{height:100%;min-height:0;max-height:100%}.blocks-app .form-editor-checkbox-panel .panel-form__body.form-editor-checkbox-panel__body{-webkit-overflow-scrolling:touch;flex:1;min-width:0;min-height:0;overflow:hidden auto}.blocks-app .form-editor-checkbox-panel .panel-form__body-content{box-sizing:border-box;min-height:0}.blocks-app .form-editor-checkbox-panel__title{font-size:16px;font-weight:600}.blocks-app .form-editor-checkbox-panel__inner{box-sizing:border-box;padding:16px 20px 32px}.blocks-app .form-editor-checkbox.ant-form-vertical>.ant-form-item{margin-bottom:20px}.blocks-app .form-editor-checkbox__label-with-info{align-items:center;gap:6px;display:inline-flex}.blocks-app .form-editor-checkbox__info-icon{color:var(--colorTextSecondary);cursor:help;display:inline-flex}.blocks-app .form-editor-checkbox__default-radios.em-radio.ant-radio-group,.blocks-app .form-editor-checkbox__shape-radios.em-radio.ant-radio-group{flex-wrap:wrap;align-items:center;gap:8px 24px;display:flex}.blocks-app .form-editor-checkbox__icon-toggle-group.em-radio.ant-radio-group{flex-wrap:nowrap;gap:6px;display:flex}.blocks-app .form-editor-checkbox__icon-toggle-group .ant-radio-button-wrapper{justify-content:center;align-items:center;min-width:32px;padding-inline:10px;line-height:1;display:inline-flex}.blocks-app .form-editor-checkbox__inner-section-divider{margin:12px 0 16px}.blocks-app .form-editor-checkbox__align-form-item.ant-form-item{margin-bottom:0}.blocks-app .form-editor-checkbox__align-block{margin-top:16px}.blocks-app .form-editor-checkbox__align-columns{flex-wrap:wrap;align-items:flex-start;gap:16px 24px;display:flex}.blocks-app .form-editor-checkbox__align-column{flex:140px;min-width:108px}.blocks-app .form-editor-checkbox__section-divider{margin:16px 0 20px}.blocks-app .form-editor-checkbox__more-btn{margin-bottom:12px}.blocks-app .form-editor-checkbox__bg-preview{flex-direction:column;gap:8px;margin-top:4px;padding-top:8px;display:flex}.blocks-app .form-editor-checkbox__preview-panel{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;flex-direction:column;gap:6px;padding:10px;display:flex}.blocks-app .form-editor-checkbox__preview-row{box-sizing:border-box;align-items:center;gap:10px;min-height:28px;padding:4px 0;display:flex}.blocks-app .form-editor-checkbox__preview-checkbox{box-sizing:border-box;border-style:solid;border-width:2px;flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}.blocks-app .form-editor-checkbox__preview-checkbox--round{border-radius:50%}.blocks-app .form-editor-checkbox__preview-checkbox--square{border-radius:2px}.blocks-app .form-editor-checkbox__preview-label{color:var(--colorText);font-size:12px;line-height:1.3}.blocks-app .form-editor-checkbox__section.form-section .form-section__body{padding-top:8px;padding-bottom:18px}.blocks-app .form-editor-checkbox__expanded{flex-direction:column;gap:0;margin-top:8px;display:flex}.blocks-app .form-editor-checkbox__expanded>.form-section:first-child>.form-section__header .form-section__title{padding-top:12px}.blocks-app .form-editor-checkbox__full-width{width:100%}.blocks-app .form-editor-checkbox__micro-label{color:var(--colorTextSecondary);margin-bottom:0;font-size:12px;line-height:1.2;display:block}.blocks-app .form-editor-checkbox .form-border-radius-inputs,.blocks-app .form-editor-checkbox .em-form-border-inputs{margin-top:4px}.blocks-app .form-editor-input-panel.panel-form{height:100%;min-height:0;max-height:100%}.blocks-app .form-editor-input-panel .panel-form__body.form-editor-input-panel__body{-webkit-overflow-scrolling:touch;flex:1;min-width:0;min-height:0;overflow:hidden auto}.blocks-app .form-editor-input-panel .panel-form__body-content{box-sizing:border-box;min-height:0}.blocks-app .form-editor-input-panel__title{font-size:16px;font-weight:600}.blocks-app .form-editor-input-panel__inner{box-sizing:border-box;padding:16px 20px 32px}.blocks-app .form-editor-input.ant-form-vertical>.ant-form-item{margin-bottom:20px}.blocks-app .form-editor-input__icon-toggle-group.em-radio.ant-radio-group{flex-wrap:nowrap;gap:6px;display:flex}.blocks-app .form-editor-input__icon-toggle-group .ant-radio-button-wrapper{justify-content:center;align-items:center;min-width:32px;padding-inline:10px;line-height:1;display:inline-flex}.blocks-app .form-editor-input__align-form-item.ant-form-item{margin-bottom:0}.blocks-app .form-editor-input__align-columns{flex-wrap:wrap;align-items:flex-start;gap:16px 24px;display:flex}.blocks-app .form-editor-input__align-column{flex:140px;min-width:108px}.blocks-app .form-editor-input__section-divider{margin:16px 0 20px}.blocks-app .form-editor-input__more-btn{margin-bottom:12px}.blocks-app .form-editor-input__bg-preview{margin-top:4px;padding-top:8px}.blocks-app .form-editor-input__preview-panel{border:1px solid var(--colorBorderSecondary);border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;padding:10px}.blocks-app .form-editor-input__preview-input{border-radius:calc(var(--borderRadius) * 1px);box-sizing:border-box;text-align:left;border-style:solid;border-width:1px;width:100%;min-height:32px;padding:6px 11px;font-size:14px;line-height:1.4}.blocks-app .form-editor-input__preview-placeholder-bit{opacity:.65}.blocks-app .form-editor-input__section.form-section .form-section__body{padding-top:8px;padding-bottom:18px}.blocks-app .form-editor-input__expanded{flex-direction:column;gap:0;margin-top:8px;display:flex}.blocks-app .form-editor-input__expanded>.form-section:first-child>.form-section__header .form-section__title{padding-top:12px}.blocks-app .form-editor-input__full-width{width:100%}.blocks-app .form-editor-input .form-border-radius-inputs,.blocks-app .form-editor-input .em-form-border-inputs{margin-top:4px}.blocks-app .form-editor-input__padding-row{flex-wrap:wrap;align-items:flex-start;gap:8px;width:100%;display:flex}.blocks-app .form-editor-input__padding-field.ant-form-item{flex:120px;min-width:100px;max-width:calc(50% - 4px);margin-bottom:0}.blocks-app .form-editor-input__padding-link-btn{flex:0 0 32px;justify-content:center;align-items:center;width:32px;height:32px;padding:0;display:inline-flex}.blocks-app .form-editor-input__advanced-block{flex-direction:column;gap:8px;width:100%;display:flex}.blocks-app .form-editor-input__advanced-block+.form-editor-input__advanced-block{margin-top:16px}.blocks-app .form-editor-input__advanced-switch-row{align-items:center;gap:12px;width:100%;padding:6px 0;display:flex}.blocks-app .form-editor-input__advanced-switch-label{color:var(--colorText);flex:auto;min-width:0;margin:0;font-size:14px;line-height:1.3}.blocks-app .form-editor-input__advanced-description{margin:0;font-size:12px;line-height:1.35;display:block}.blocks-app .form-editor-input__visibility-row{flex-wrap:wrap;align-items:center;gap:12px 16px;width:100%;display:flex}.blocks-app .form-editor-input__visibility-form-item.ant-form-item,.blocks-app .form-editor-input__direction-form-item.ant-form-item{margin-bottom:0}.blocks-app .form-editor-input__visibility-segment.ant-radio-group,.blocks-app .form-editor-input__visibility-amp.ant-radio-group{flex-wrap:wrap;gap:6px;display:flex}.blocks-app .form-editor-input__visibility-segment .ant-radio-button-wrapper,.blocks-app .form-editor-input__visibility-amp .ant-radio-button-wrapper{justify-content:center;align-items:center;display:inline-flex}.blocks-app .email-pane{position:relative}.blocks-app .email-pane__loader{z-index:10;background-color:#fff6;width:100%;height:100%;position:fixed;top:0;left:0}.dark .blocks-app .email-pane__loader{background-color:#0006}.blocks-app .email-pane__paths{border-top:1px solid var(--colorBorder);z-index:10;background-color:var(--colorBgContainer);justify-content:space-between;align-items:center;width:100%;transition:all .5s;display:flex;position:sticky;bottom:0;left:0}.blocks-app .email-pane__paths>div{color:var(--colorTextTertiary);padding:3px 15px}.blocks-app .email-pane__paths .ant-breadcrumb{white-space:nowrap;overflow:auto hidden}.blocks-app .email-pane__paths .ant-breadcrumb ol{flex-wrap:nowrap;padding-right:10px}.blocks-app .email-pane__paths .ant-breadcrumb li{position:relative}.blocks-app .email-pane__paths .ant-breadcrumb li:hover>span{color:var(--colorPrimary)}.blocks-app .email-pane__paths .ant-breadcrumb li>span{color:var(--colorTextSecondary);cursor:pointer;padding:3px 15px;display:block}.blocks-app .email-pane__paths .ant-breadcrumb li>span span{align-items:center;gap:4px;display:flex}.blocks-app .email-pane__paths .ant-breadcrumb li:after{content:"";border-style:solid;border-width:15px 0 15px 10px;border-color:transparent transparent transparent var(--colorBgContainer);width:0;height:0;transition:all .5s;position:absolute;top:50%;right:-5px;transform:translateY(-50%)}.blocks-app .email-pane__paths .ant-breadcrumb li:before{content:"";border-style:solid;border-width:15px 0 15px 10px;border-color:transparent transparent transparent var(--colorBorder);width:0;height:0;transition:all .5s;position:absolute;top:50%;right:-6px;transform:translateY(-50%)}.blocks-app .email-pane__code-size{white-space:nowrap;margin-left:auto;padding:3px 15px;font-size:14px}.blocks-app .email-pane__code-size_exceeded{color:var(--colorError)}.blocks-app .email-pane .ant-btn-primary.mobile_view{background-color:var(--colorInfo)}.blocks-app .email-pane .ant-btn-primary.mobile_view:hover{background-color:var(--colorInfoHover)}.blocks-app .email-pane .ant-tabs .ant-tabs-tab-btn{transition:none}.blocks-app .email-pane .ant-tabs-extra-content{justify-content:center;align-items:center;display:flex}.blocks-app .email-pane .ant-tabs-extra-content .ant-segmented_editor-mode{margin-top:22px;transform:rotate(90deg)}.blocks-app .email-pane .ant-tabs-extra-content .ant-segmented_editor-mode .ant-segmented-item-label{min-height:40px;padding:0;line-height:40px}.blocks-app .email-pane .ant-tabs-extra-content .ant-segmented_editor-mode .ant-segmented-item-icon{width:28px;height:40px;display:inline-block;transform:rotate(-90deg)}.blocks-app .email-pane .ant-tabs-extra-content .ant-segmented_editor-mode .ant-segmented-item-icon .anticon{position:relative}.blocks-app .email-pane .email-pane_code-mode .email-pane__col-wrapper{transition:all .5s;padding-top:0!important}.blocks-app .blocks-plugin .email-pane .email-pane_code-mode .email-pane__resizable{padding-top:60px;transition:all .5s}.blocks-app .email-pane .email-pane_code-mode:not(.email-pane_is-mobile,.email-pane_code-mode-bottom) .email-pane__col-wrapper{padding-top:0!important}.blocks-app .email-pane .email-pane_code-mode:not(.email-pane_is-mobile,.email-pane_code-mode-bottom) .email-pane__left .email-pane__content-col_main{border-width:0;border-radius:0;margin-left:0;margin-right:0;border-top-width:0!important;border-bottom-width:0!important;border-right-width:0!important}.blocks-app .email-pane .email-pane_code-mode:not(.email-pane_is-mobile,.email-pane_code-mode-bottom) .email-pane__right .email-pane__content-col_main{border-width:0;border-radius:0;margin-left:0;margin-right:0;border-top-width:0!important;border-bottom-width:0!important;border-left-width:0!important}.blocks-app .blocks-plugin .email-pane .email-pane_code-mode:not(.email-pane_is-mobile,.email-pane_code-mode-bottom) .email-pane__resizable{max-width:calc(100% - 2px);margin-bottom:0;padding-top:0}.blocks-app .email-pane .selected-td-form__padding-input .ant-input-number-focused input{text-align:left}.blocks-app .email-pane .selected-td-form__padding-input input{text-align:center}.blocks-app .email-pane .email-pane__comment-counter{background-color:var(--colorInfo);color:var(--colorWhite);border:none}.blocks-app .email-pane .element-controls{width:100%;height:100%}.blocks-app .email-pane #selected_element_form_desktop_props{height:100%}.blocks-app .email-pane .ant-tabs .ant-divider-horizontal.selected-td-form__divider{border-top:1px solid var(--colorBorderSecondary);background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);width:calc(100% + 50px);margin:26px -23px}.dark .blocks-app .email-pane .ant-tabs .ant-divider-horizontal.selected-td-form__divider{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.blocks-app .email-pane .ant-tabs .element-controls .selected-td-form__divider{margin-top:0;margin-bottom:0}.blocks-app .email-pane .ant-tabs .blocks-search__divider{pointer-events:none;width:auto;height:20px;margin:24px 0 0;position:absolute;bottom:-20px;left:-24px;right:-13px}.blocks-app .email-pane .ant-tabs ::-webkit-scrollbar-thumb{box-shadow:inset 0 0 0 10px var(--colorFillSecondary)}.blocks-app .email-pane .ant-tabs ::-webkit-scrollbar-thumb:hover{box-shadow:inset 0 0 0 10px var(--colorFill)}.blocks-app .email-pane .ant-tabs .blocks-search__empty-shadow{height:100%;position:relative}.blocks-app .email-pane .ant-tabs .blocks-search__empty-shadow:after{content:"";background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);z-index:1;width:calc(100% + 48px);height:20px;margin-left:-24px;position:absolute;top:0;left:0}.blocks-app .email-pane .ant-tabs .blocks-search__empty-wrapper{height:calc(100% + 10px);margin:0 -24px;padding:24px 14px 0 24px;position:relative;overflow:scroll}.blocks-app .email-pane__container{scroll-behavior:smooth;min-height:100%;padding-top:0}.blocks-app .email-pane_code-mode .email-pane__container{overflow:unset;height:unset;padding-bottom:0;position:relative}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .email-pane__container>.selected-element-panel{z-index:101;pointer-events:none;height:0;position:absolute;inset:0 0 auto}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .email-pane__container>.selected-element-panel>div{pointer-events:auto}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .email-pane__container>.selected-element-panel .selected-element-panel-content.selected-element-panel__content_abs{width:fit-content;max-width:calc(100% - 24px);min-height:auto;display:block}.blocks-app .email-pane_code-mode:not(.email-pane_code-mode-bottom) .email-pane__container>.selected-element-panel .selected-element-panel-content.selected-element-panel__content_abs form.element-controls{height:auto;min-height:auto}.blocks-app .email-pane__col-wrapper{flex-wrap:nowrap;gap:30px;display:flex;position:relative}.blocks-app .email-pane__col-wrapper .email-pane__col_settings{margin-top:30px}.blocks-app .email-pane__col-wrapper .email-pane__col_settings-inner{border-radius:8px;position:sticky;top:30px;left:0}.blocks-app .ant-app .email-pane__col-wrapper_reverse{flex-direction:row-reverse}.blocks-app .email-pane .email-pane__sizeSwitcher:not(.email-pane__pinch,.email-pane__right) .email-pane__col-wrapper{top:-114px}.blocks-app .email-pane_code-mode .email-pane__code-divider{opacity:0;cursor:ew-resize;background-color:var(--colorPrimary);width:5px;height:100%;transition:opacity .4s;position:absolute}.blocks-app .email-pane_code-mode .email-pane__code-divider:hover,.blocks-app .email-pane_code-mode .email-pane__code-divider:active{opacity:1;background-color:var(--colorPrimary)}.blocks-app .email-pane_code-mode.email-pane .email-pane__row:not(.email-pane__bottom,.email-pane__sizeSwitcher) .email-pane__content-col_main{border-radius:0;border:0 solid var(--colorBorder)!important;margin:0!important}.blocks-app .email-pane_code-mode.email-pane .email-pane__row:not(.email-pane__bottom,.email-pane__sizeSwitcher) [class^=device-width__] button{display:none}.blocks-app .email-pane_code-mode .email-pane__left{flex-direction:row}.blocks-app .email-pane_code-mode .email-pane__left>div:first-child{border-right:1px solid var(--colorBorder);overflow-y:auto!important}.blocks-app .email-pane_code-mode .email-pane__left .email-pane__handle.left{display:none}.blocks-app .email-pane_code-mode .email-pane__left .email-pane__code-divider{left:-2px}.blocks-app .email-pane_code-mode .email-pane__right{flex-direction:row-reverse}.blocks-app .email-pane_code-mode .email-pane__right>div:first-child{border-left:1px solid var(--colorBorder);overflow-y:auto!important}.blocks-app .email-pane_code-mode .email-pane__right .email-pane__handle.right{display:none}.blocks-app .email-pane_code-mode .email-pane__right .email-pane__code-divider{right:-2px}.blocks-app .email-pane_code-mode .email-pane__bottom{max-width:unset;flex-direction:column;margin:0}.blocks-app .email-pane_code-mode .email-pane__bottom .email-pane__col-wrapper{width:100%;margin:0 auto}.blocks-app .email-pane_code-mode .email-pane__bottom .email-pane__code-divider{opacity:0;cursor:ns-resize;z-index:10;width:100%;height:2px;top:-2px}.blocks-app .email-pane_code-mode .email-pane__bottom .email-pane__code-divider:hover,.blocks-app .email-pane_code-mode .email-pane__bottom .email-pane__code-divider:active{opacity:1;background-color:var(--colorPrimary)}.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper{gap:0;height:100%;padding-left:3px}.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper .email-pane__col.email-pane__col_preview{overflow-y:scroll;height:100%!important}@media (width<=1590px){.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper .email-pane__col.email-pane__col_preview{overflow-x:hidden}}.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper .ant-tabs-content-holder{border-radius:0}.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper.email-pane__col-wrapper_reverse .email-pane__col.email-pane__col_preview{padding-left:10px;padding-right:0}.blocks-app .email-pane__left .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper.email-pane__col-wrapper_reverse .email-pane__col.email-pane__col_preview{padding-left:65px;padding-right:0}.blocks-app .email-pane .email-pane__col-wrapper_pinch.email-pane__col-wrapper .ant-tabs-right>.ant-tabs-nav .ant-tabs-tab{height:53px;padding-top:6px;padding-left:6px;padding-right:6px}.blocks-app .email-pane .email-pane.email-pane_code-mode .email-pane__col-wrapper_reverse .email-pane__col.email-pane__col_preview{padding-right:0}.blocks-app .email-pane .email-pane.email-pane_code-mode .email-pane__col-wrapper_pinch.email-pane__col-wrapper{padding-left:0}.blocks-app .email-pane .email-pane__right.email-pane__sizeSwitcher .email-pane__col.email-pane__col_preview{padding-left:0;padding-right:35px;overflow:visible}.blocks-app .email-pane .email-pane__right.email-pane__sizeSwitcher .email-pane__col.email-pane__col_preview .email-pane__content-col.email-pane__content-col_main{border-width:1px}.blocks-app .email-pane .email-pane__left.email-pane__sizeSwitcher .email-pane__col.email-pane__col_preview{padding-left:65px!important;padding-right:0!important}.blocks-app .email-pane .email-pane__right .email-pane__col-wrapper_reverse .email-pane__col.email-pane__col_preview,.blocks-app .email-pane .email-pane__left.email-pane__sizeSwitcher .email-pane__col-wrapper_reverse .email-pane__col.email-pane__col_preview{padding-left:0!important;padding-right:0!important}.blocks-app .email-pane .email-pane__right:not(.email-pane__pinch) .email-pane__col-wrapper_pinch.email-pane__col-wrapper{padding-left:0;padding-right:65px}.blocks-app .email-pane .email-pane__right.email-pane__pinch.email-pane__sizeSwitcher .email-pane__col-wrapper_pinch.email-pane__col-wrapper{padding-left:0}.blocks-app .email-pane .email-pane__right.email-pane__pinch.email-pane__sizeSwitcher .email-pane__col-wrapper_pinch.email-pane__col-wrapper .email-pane__col_preview{padding-left:0;padding-right:65px}.blocks-app .email-pane .email-pane__reverse .email-pane__col-wrapper_pinch.email-pane__col-wrapper{padding-left:0}.blocks-app .email-pane .email-pane__sizeSwitcher .email-pane__col.email-pane__col_preview{padding-top:30px}.blocks-app .email-pane .email-pane__sizeSwitcher .email-pane__col-wrapper_pinch .email-pane__col.email-pane__col_preview{padding:60px 2px 0}.blocks-app .email-pane .email-pane__reverse.email-pane__sizeSwitcher .email-pane__col.email-pane__col_preview{padding-right:65px}.blocks-app .email-pane .email-pane.email-pane_code-mode .email-pane__right .email-pane__col.email-pane__col_preview,.blocks-app .email-pane .email-pane.email-pane_code-mode .email-pane__left .email-pane__col.email-pane__col_preview{padding-top:0}.blocks-app .email-pane .email-pane__right .email-pane__col_preview,.blocks-app .email-pane .email-pane__left .email-pane__col_preview{padding-left:0;padding-right:0}.blocks-app .email-pane .email-pane.email-pane_code-mode .email-pane__col-wrapper_pinch.email-pane__col-wrapper .email-pane__col.email-pane__col_preview{height:100%!important}.blocks-app .email-pane .email-pane__sizes-panel-wrapper{z-index:5;position:sticky;top:30px;left:15px}.blocks-app .email-pane .email-pane__right .email-pane__sizes-panel-wrapper{left:auto;right:15px}.blocks-app .email-pane .email-pane__right.email-pane__sizeSwitcher .email-pane__sizes-panel-wrapper{display:none}.blocks-app .email-pane .email-pane__pinch .email-pane__sizes-panel-wrapper{position:absolute;top:12px;left:calc(50% - 266px)}.blocks-app .email-pane .email-pane__reverse .email-pane__sizes-panel-wrapper{left:auto;right:calc(50% - 266px)}.blocks-app .email-pane .email-pane__reverse.email-pane__left.email-pane__pinch .email-pane__sizes-panel-wrapper{display:none;left:15px;right:auto}.blocks-app .email-pane .email-pane__sizes-panel{background-color:var(--colorBgElevated);border:1px solid var(--colorBorder);border-radius:34px}.blocks-app .email-pane__header{padding-right:10px}.blocks-app .email-pane__header .header__left{margin-left:0}.blocks-app .email-pane__header .header__logo{float:left;height:auto;margin-top:5px;margin-right:26px;padding-right:0;font-size:22px!important}.blocks-app .email-pane__header__title{align-items:center;width:100%;display:flex}.blocks-app .email-pane__header__title__project a{white-space:nowrap;text-overflow:ellipsis;flex:1;max-width:190px;display:flex;overflow:hidden}.blocks-app .email-pane__header__title__project{float:left;margin-top:10px}.blocks-app .email-pane__header__title__project a:hover{color:var(--colorPrimary)}.blocks-app .email-pane__header__title .ant-typography{white-space:nowrap;text-overflow:ellipsis;flex:1;margin:10px 0 10px 20px;padding:0;display:flex;overflow:hidden}.blocks-app .email-pane__row{flex-wrap:nowrap;justify-content:space-between;gap:30px;height:100%;position:relative}.blocks-app .email-pane_path-enabled .email-pane__row{height:calc(100% - 29px)}.blocks-app .email-pane_code-mode .email-pane__row{gap:0;height:calc(100% - 29px);padding:0}.blocks-app .email-pane__col_settings{border-color:var(--colorBorder);height:100%;margin-right:50px;position:sticky;top:0;bottom:60px;overflow:visible}.blocks-app .email-pane__col_disabled.email-pane__content-col_tabs.email-pane__content-col{width:68px;min-width:68px;margin-right:0}.blocks-app .email-pane__col_settings-inner{height:100%;max-height:100%;margin-right:0}.blocks-app .email-pane__col_settings-inner_reverse{flex-direction:row-reverse}.blocks-app .email-pane__col_settings-inner_reverse .email-pane__tab-bar.ant-tabs-nav{margin-left:0;margin-right:8px}.blocks-app .email-pane__col_settings-inner_reverse .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab-btn>span{line-height:1}.blocks-app .email-pane__col .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab-btn>span{height:24px;margin-right:0;font-size:20px}.blocks-app .email-pane__col-wrapper_pinch .email-pane__col .email-pane__tab-bar.ant-tabs-nav{border-left:1px solid var(--colorBorderSecondary);background:var(--colorBgContainer)}.blocks-app .email-pane__reverse .email-pane__col-wrapper_pinch .email-pane__col .email-pane__tab-bar.ant-tabs-nav{border-left:none}.blocks-app .email-pane__col .email-pane__col_settings-inner_reverse{border-right:1px solid var(--colorBorder)}.blocks-app .email-pane_view .email-pane__col{height:calc(100vh - 48px);top:0;bottom:0;overflow:auto}.blocks-app .email-pane__col_settings{height:calc(100vh - 76px);position:sticky;top:10px;bottom:60px;overflow:auto}.blocks-app .email-pane_view .email-pane__col_settings{height:calc(100vh - 48px)}.blocks-app .email-pane__col_settings-collapsed{flex:0 0;max-width:0}.blocks-app .email-pane__col_preview{scroll-behavior:smooth}.blocks-app .email-pane_code-mode .email-pane__row:not(.email-pane__bottom) .email-pane__col_preview{overflow:auto;width:100%!important}.blocks-app .email-pane__col_preview-collapsed{flex:0 0 100%;width:100%;max-width:100%}.blocks-app .email-pane__col_settings{z-index:11;height:100%;position:sticky;top:20px;bottom:60px;overflow:visible}.blocks-app .email-pane__col_settings-inner{height:100%;max-height:100%}.blocks-app .email-pane__col_menu{margin-left:20px}.blocks-app .email-pane__col .ant-modal-close{top:14px;width:34px;height:34px;font-size:16px;position:absolute;inset-inline-end:12px;padding:0!important}.blocks-app .email-pane__col_code-mode .ant-menu-vertical.element-preview-menu__list_discuss li.ant-menu-item{text-align:center}.blocks-app .email-pane__col__alert{z-index:100;width:40%;max-width:400px;bottom:40px;left:10px;position:absolute!important}.blocks-app .email-pane__collapse-wrapper{background-color:var(--colorBgContainer);border:1px solid var(--colorBgContainer);border-radius:calc(var(--borderRadiusXL) * 1px);flex-direction:column;align-self:flex-start;height:auto;min-height:0;max-height:100%;display:flex;overflow:hidden}.dark .blocks-app .email-pane__collapse-wrapper{border:1px solid var(--colorBorderSecondary)}.blocks-app .email-pane__collapse-wrapper_disabled{display:none}.blocks-app .email-pane__collapse-wrapper>*{min-height:0;max-height:100%}.blocks-app .email-pane__collapse-wrapper .ant-tabs-content-holder{border-radius:0 0 calc(var(--borderRadiusXL) * 1px) calc(var(--borderRadiusXL) * 1px);border:none;margin:0 -1px -1px;transition:all .3s;overflow:hidden}.blocks-app .email-pane__collapse-wrapper .selected_form-mobile-props-title,.blocks-app .email-pane__collapse-wrapper .selected_form-desktop-props-title{opacity:0;will-change:transform, height;padding-top:0;transition:height .45s cubic-bezier(.16,1,.3,1),margin-top .45s cubic-bezier(.16,1,.3,1),transform .45s cubic-bezier(.16,1,.3,1),opacity .3s ease-out;transform:translateY(-100%)}@keyframes em-mobile-props-title-slide-in{0%{opacity:0;height:0;transform:translateY(-100%)}to{opacity:1;height:32px;transform:translateY(0)}}.blocks-app .email-pane__collapse-wrapper #selected_element_form_desktop_props{transition:all .1s}.blocks-app .email-pane__collapse-wrapper .selected_form-props-wrapper_optimize{padding-top:0}.blocks-app .ant-app .email-pane__collapse-wrapper .selected_form-mobile-props-title,.blocks-app .ant-app .email-pane__collapse-wrapper .selected_form-desktop-props-title{background-color:var(--colorInfoBg);border:none;border-radius:0;height:0;padding:0 24px;top:0;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .panel-form__body{border:1px solid var(--colorInfo);border-radius:0 0 calc(var(--borderRadius) * 2px) calc(var(--borderRadius) * 2px);scrollbar-gutter:auto;flex-direction:column;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .panel-form__body-content{flex-direction:column;flex:1;min-height:0;padding:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .panel-form__body-content>div{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{color:var(--colorInfo)}.blocks-app .email-pane__collapse-wrapper.mobile-properties .ant-tabs .ant-tabs-ink-bar{background:var(--colorInfo)}.blocks-app .email-pane__collapse-wrapper.mobile-properties .email-properties__collapse:after{display:none}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected-element-panel-content{flex-direction:column;flex:1;min-height:0;padding:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected-element-panel{flex-direction:column;flex:1;min-height:0;padding-left:0;padding-right:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected-element-panel>div{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties form.element-controls{flex-direction:column;height:100%;min-height:0;display:flex}.blocks-app .email-pane__collapse-wrapper.mobile-properties #selected_element_form_desktop_props{min-height:0;padding:24px var(--panel-form-padding-x,24px) 0;flex:1;overflow:hidden auto}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected_form-mobile-props-wrapper{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected_form-mobile-props-header{flex-shrink:0}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected_form-mobile-props{scrollbar-gutter:stable;flex:1;min-height:0;overflow:hidden auto}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected-element-panel__float-blocks-settings{display:none}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected_form-desktop-props-title{opacity:1;height:32px;animation:.45s cubic-bezier(.16,1,.3,1) both em-mobile-props-title-slide-in;transform:translateY(0)}.blocks-app .email-pane__collapse-wrapper.mobile-properties .selected_form-mobile-props-title{z-index:1;border:none;border-bottom:1px solid var(--colorBorderSecondary);background-color:var(--colorInfoBg);padding:5px 24px;transform:translateY(0)}.blocks-app .email-pane__collapse-wrapper.mobile-view .ant-tabs-tab:first-child:hover{color:var(--colorInfo)}.blocks-app .email-pane__collapse-wrapper.mobile-view .selected_form-mobile-props-title{opacity:1;height:32px;animation:.45s cubic-bezier(.16,1,.3,1) both em-mobile-props-title-slide-in;transform:translateY(0)}.blocks-app .email-pane__collapse-wrapper.mobile-view .selected_form-mobile-props-title .ant-alert-message{color:var(--colorInfoText)}.blocks-app .email-pane__collapse-wrapper_build{flex:1;align-self:stretch;height:100%}.blocks-app .email-pane__collapse-wrapper_build>.email-pane__collapse{flex:1;min-height:0}.blocks-app .email-pane__collapse-wrapper_build>.email-pane__collapse>.ant-tabs-content-holder{flex:1;min-height:0;display:flex}.blocks-app .email-pane__collapse-wrapper_build>.email-pane__collapse>.ant-tabs-content-holder>.ant-tabs-content{height:100%;min-height:0}.blocks-app .email-pane__collapse-wrapper_build>.email-pane__collapse>.ant-tabs-content-holder>.ant-tabs-content>.ant-tabs-tabpane-active{flex-direction:column;flex:1;min-height:0;display:flex}.blocks-app .email-pane__col-wrapper_pinch .email-pane__collapse-wrapper{border:none;border-left:1px solid var(--colorBorder);border-radius:0;height:100%}.blocks-app .email-pane__collapse{flex-direction:column;flex:1;width:100%;height:100%;min-height:0;max-height:100%;display:flex;overflow:hidden}.blocks-app .email-pane__collapse.ant-collapse{border:0}.blocks-app .email-pane__collapse-panel.ant-collapse-item{min-height:50px;overflow:hidden}.blocks-app .email-pane__comment-counter{border-radius:10px;width:27px;height:16px;margin:5px;padding:0 6px;font-size:12px}.blocks-app .email-pane__add-new-element-btn{width:100%;margin-bottom:60px}.blocks-app .email-pane__tab-bar.ant-tabs-nav{z-index:1;width:60px;margin-bottom:0;margin-left:8px;margin-right:0;top:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab-active{border-radius:8px;border-right:none!important}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tabpane,.blocks-app .ant-tabs-left>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab{padding-left:0}.blocks-app .ant-tabs-left>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab,.blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-top:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-nav-list{background:var(--colorBgContainer);border-radius:8px;flex:none;padding:0 0 4px;box-shadow:0 2px 10px #0500380a}.blocks-app .email-pane__col-wrapper_pinch .email-pane__tab-bar.ant-tabs-nav .ant-tabs-nav-list{box-shadow:none;border-radius:0;height:100%}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-nav-wrap{overflow:unset;flex:none}.blocks-app .email-pane__tab-bar.ant-tabs-nav+.ant-tabs-content-holder{border-left:none;margin-left:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav+.ant-tabs-content-holder .ant-tabs-content>.ant-tabs-tabpane{padding-left:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab:first-child,.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab:nth-child(2),.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab:nth-child(3){display:none}.blocks-app .email-pane__col-wrapper_pinch .email-pane__tab-bar.ant-tabs-nav{margin-left:0;margin-right:0}.blocks-app .email-pane .ant-tabs-right>.ant-tabs-content-holder,.blocks-app .email-pane .ant-tabs-right>div>.ant-tabs-content-holder{border-right:none;margin-right:0}.blocks-app .email-pane .ant-tabs-left>.ant-tabs-nav .ant-tabs-tab{border:1px solid #0000;height:60px;padding:14px 24px}@media (width<=1550px){.blocks-app .email-pane .ant-tabs-left>.ant-tabs-nav .ant-tabs-tab{height:50px}}.blocks-app .email-pane .ant-collapse-content{box-sizing:content-box;height:calc(100% - 50px);margin-top:-1px;overflow:auto}.blocks-app .email-pane .ant-tabs-content{height:100%;max-height:100%}.blocks-app .email-pane .ant-collapse-content-box,.blocks-app .email-pane .secondary-tabs .ant-tabs-content{height:100%;padding-bottom:0;position:relative;overflow:hidden scroll}.blocks-app .email-pane__comment-counter{position:absolute;top:-4px;right:0}@media (width<=1550px){.blocks-app .email-pane__comment-counter{right:-5px}}.blocks-app .email-pane__content-col_disable{pointer-events:none}.blocks-app .email-pane .header__project{vertical-align:middle;align-items:center;height:28px;padding-top:0;display:inline-flex}.blocks-app .email-pane .header__project .ant-avatar.ant-avatar-circle{min-width:28px}.blocks-app .email-pane_view .header__project{pointer-events:none}.blocks-app .email-pane__pane{height:100%;transition:height .2s cubic-bezier(0,0,.2,1);position:relative}.blocks-app .email-pane__panes{height:calc(100vh - 48px);display:flex;overflow:auto}.blocks-app .email-pane__panes-resizer{z-index:2;position:relative}.blocks-app .email-pane__panes-resizer:before{content:"";background-color:#0000;border-left:2px solid #0000;width:10px;height:100%;transition:border-color .2s;position:absolute;inset:0}.blocks-app .email-pane__panes-resizer:hover{cursor:col-resize}.blocks-app .email-pane__panes-resizer:hover:before{border-color:var(--colorPrimary)}.blocks-app .email-pane__footer{z-index:2;border-top:1px solid #d9d9d9;height:28px;display:none;position:relative}.blocks-app .email-pane:not(.email-pane_view) .email-pane__pane-content{height:100%;position:absolute;inset:0;overflow:hidden}.blocks-app .email-pane__pane_main .email-pane:not(.email-pane_view) .email-pane__pane-content{overflow:auto}.blocks-app .email-pane:not(.email-pane_view) .email-pane__pane-content .email-pane__pane_editor{height:100%;overflow:visible}.blocks-app .email-pane:not(.email-pane_view) .email-pane__pane-content .email-pane__pane_editor .email-pane__pane-content{height:100%}.blocks-app .email-pane__buttons{text-align:right}.blocks-app .email-pane__buttons .ant-space.ant-space-horizontal.ant-space-align-center{display:flex}.blocks-app .email-pane__buttons button{width:46px;height:24px;margin-left:8px;padding:0}.blocks-app .email-pane__iframe-scroll-bottom,.blocks-app .email-pane__iframe-scroll-top{z-index:10;width:100%;height:50px;display:none;position:sticky;left:0;right:0}.blocks-app .email-pane__iframe-scroll-top{margin-bottom:-50px;top:0}.blocks-app .email-pane__iframe-scroll-bottom{margin-top:-50px;bottom:0}.blocks-app .email-pane__list{border:none;line-height:20px}.blocks-app .email-pane__list.ant-menu-horizontal>.ant-menu-item{padding:0 14px}.blocks-app .email-pane__list.ant-menu-horizontal>.ant-menu-item:after{content:none}.blocks-app .email-pane__list-item_active{color:var(--colorPrimaryTextHover)}.blocks-app .ant-menu-item .email-pane__list-item-icon.anticon{font-size:20px}.blocks-app .email-pane__list-item:hover .email-pane__list-item-icon.anticon,.blocks-app .email-pane__list-item_active.ant-menu-item .email-pane__list-item-icon.anticon{color:var(--colorPrimaryTextHover)}.blocks-app .email-pane__list-item.ant-menu-item.ant-menu-item-selected,.blocks-app .email-pane__list-item.ant-menu-item-disabled:hover .email-pane__list-item-icon.anticon{color:inherit}.blocks-app .email-pane__content-col.email-pane__content-col_menu{min-width:462px;margin-left:0}.blocks-app .email-pane__content-col_menu-left{margin-right:10px}.blocks-app .email-pane__code-mode{margin-top:10px;display:flex}.blocks-app .email-pane__code-mode .email-pane__panes{width:100%}.blocks-app .email-pane__code-mode .email-pane__panes+.email-pane__content-col.email-pane__content-col_menu,.blocks-app .email-pane__code-mode .email-pane__content-col.email-pane__content-col_menu:not(.email-pane__content-col_menu-right){width:60px;min-width:60px;margin-top:5px;margin-left:10px;margin-right:10px}.blocks-app .email-pane__code-mode .email-pane__content-col.email-pane__content-col_menu.email-pane__content-col_menu-right{width:50px;min-width:50px;margin-top:5px;margin-left:10px;margin-right:10px}.blocks-app .email-pane__col_code-mode{top:0}.blocks-app .email-pane__comments-icon-wrapper{text-align:center;cursor:pointer;width:50px;height:60px;margin-right:5px;padding:13px 21px;position:relative}.blocks-app .email-pane__comments-icon-wrapper:hover{color:#999da0}.blocks-app .email-pane__comment-counter{color:#000000d9;width:auto;min-width:28px;height:18px;text-shadow:none;border:1px solid #fff;border-radius:10px;margin:5px;padding:0 6px;font-size:12px;position:absolute;top:-8px;right:-10px}.blocks-app body.dark .email-pane__comment-counter{color:#f0f0f0;border-color:#1f1f1f}.blocks-app .email-pane__col-wrapper_pinch .email-pane__comment-counter{right:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tabpane,.blocks-app .ant-tabs-left>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab{padding-left:0}.blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab{padding-right:0}.blocks-app .ant-tabs-left>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{margin-top:0}.blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab{z-index:1;margin-top:0}.blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab .ant-tabs-tab-btn{background:0 0;border-radius:6px;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn{background:var(--controlItemBgActive)}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-nav-list .ant-tabs-ink-bar{box-sizing:border-box;background:#fff;border:none;border-radius:6px;width:60px;margin:0 2px;display:none;box-shadow:0 2px 8px -2px #0000000d,0 1px 4px -1px #00000012,0 0 1px #00000014}.blocks-app .email-pane__tab-bar.ant-tabs-nav+.ant-tabs-content-holder{border-left:none;width:397px;margin-left:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav+.ant-tabs-content-holder .ant-tabs-content>.ant-tabs-tabpane{padding-left:0;padding-right:0}.blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab:first-child{display:none}.blocks-app .email-pane .ant-tabs-left>.ant-tabs-nav .ant-tabs-tab,.blocks-app .email-pane .ant-tabs-right>.ant-tabs-nav .ant-tabs-tab{border:none;height:56px;padding:4px 4px 0}.blocks-app .email-pane .ant-tabs-tab .anticon{margin-right:0;font-size:20px}.blocks-app .email-pane__code-mode:not(.email-pane__col_preview-collapsed){padding-left:60px}.blocks-app .email-pane__content-col_tabs.email-pane__content-col{margin-left:0;margin-right:0;transition:all .3s cubic-bezier(.075,.82,.165,1);top:30px}@media (width<=1350px){.blocks-app .email-pane__content-col_tabs.email-pane__content-col{transform-origin:0 0;transform:scale(.83)}}.blocks-app .email-pane__col-wrapper_pinch .email-pane__content-col_tabs.email-pane__content-col{margin-top:0;top:0;height:100%!important}.blocks-app .email-pane .email-pane__col-wrapper_pinch .blocks-search__empty-wrapper{height:calc(100% - 30px)}.blocks-app .email-pane__col_preview-collapsed{margin-left:70px}.blocks-app .email-pane .email-pane__content-col_main{border:1px solid var(--colorBorder);border-radius:calc(var(--borderRadiusXL) * 1px);margin-left:-2px;margin-right:-2px;transition:border-color .4s;overflow:hidden auto}.blocks-app .email-pane .secondary-tabs.secondary-tabs_unset_scroll .ant-tabs-nav:after{display:none}.blocks-app .email-pane .secondary-tabs.secondary-tabs_unset_scroll .ant-tabs-content{overflow-y:hidden;padding-top:0!important;padding-right:24px!important}.blocks-app .email-pane__col.email-pane__col_preview{flex-direction:column;justify-content:flex-start;align-items:center;max-width:1600px;margin:0;padding:0 2px;display:flex}.blocks-app .email-pane__sizes{border:1px solid var(--colorBorder);z-index:10;opacity:.9;border-top:none;border-radius:0 0 8px 8px;justify-content:center;width:100%;height:15px;min-height:15px;margin-bottom:15px;transition:all .5s;display:flex;position:sticky;top:0;left:0}.blocks-app .email-pane__sizes:hover{opacity:1}.blocks-app .email-pane_code-mode .email-pane__row:not(.email-pane__bottom) .email-pane__sizes{border-width:0;height:0;min-height:0;margin-bottom:0}.blocks-app .email-pane__sizes .email-pane__width-selectors-wrapper{justify-content:center;width:100%;display:flex}.blocks-app .email-pane__sizes .device-width__theme{border-right:1px solid var(--colorBorder);background-color:var(--colorBgElevated);flex-shrink:0;width:36px;transition:all .3s;position:relative}.blocks-app .email-pane__sizes .device-width__theme .email-pane__theme-toggle{margin:0}.blocks-app .email-pane__sizes [class^=device-width__]{border-right:1px solid var(--colorBorder);background-color:var(--colorBgElevated);cursor:pointer;transition:all .3s;position:relative}.blocks-app .email-pane__sizes [class^=device-width__]:first-child{border-bottom-left-radius:calc(var(--borderRadius) * 1px)}.blocks-app .email-pane__sizes [class^=device-width__]:last-child{border-bottom-right-radius:calc(var(--borderRadius) * 1px);border:none}.blocks-app .ant-app .email-pane__sizes [class^=device-width__] button{color:var(--colorTextDescription);width:24px;min-width:24px;height:24px;line-height:1}.blocks-app .ant-app .email-pane__sizes [class^=device-width__] button:hover{background:var(--colorPrimaryBg)}.blocks-app .email-pane__sizes .device-width__320{text-align:center;color:var(--colorText);font-size:12px;line-height:15px}.blocks-app .email-pane__sizes.device-width__full-hovered [class^=device-width__],.blocks-app .email-pane__sizes.device-width__768-hovered [class*=__768],.blocks-app .email-pane__sizes.device-width__768-hovered [class*=__425],.blocks-app .email-pane__sizes.device-width__768-hovered [class*=__375],.blocks-app .email-pane__sizes.device-width__768-hovered [class*=__320],.blocks-app .email-pane__sizes.device-width__425-hovered [class*=__425],.blocks-app .email-pane__sizes.device-width__425-hovered [class*=__375],.blocks-app .email-pane__sizes.device-width__425-hovered [class*=__320],.blocks-app .email-pane__sizes.device-width__375-hovered [class*=__375],.blocks-app .email-pane__sizes.device-width__375-hovered [class*=__320],.blocks-app .email-pane__sizes.device-width__320-hovered [class*=__320]{background:var(--colorPrimaryBg)}.blocks-app .email-pane__resizable{width:100%;margin-bottom:29px;transition:max-width .5s;position:relative}.blocks-app .blocks-plugin .email-pane__resizable{padding:0 2px}.blocks-app .email-pane__resizable_drag{transition:none}.blocks-app .email-pane__resizable .email-pane__handle{box-sizing:border-box;opacity:0;cursor:ew-resize;width:5px;height:100%;transition:opacity .4s;position:absolute}.blocks-app .email-pane_code-mode .email-pane__row:not(.email-pane__bottom) .email-pane__resizable .email-pane__handle{pointer-events:none}.blocks-app .email-pane__resizable .email-pane__handle:hover,.blocks-app .email-pane__resizable .email-pane__handle:active{opacity:1}.blocks-app .email-pane__resizable .email-pane__handle.left{left:0}.blocks-app .email-pane__resizable .email-pane__handle.right{right:0}.blocks-app .email-pane__left .email-pane__resizable,.blocks-app .email-pane__right .email-pane__resizable{margin-bottom:0}.blocks-app .email-pane__tooltip{margin-right:20px}.blocks-app .email-pane .ant-layout-content.container.email-pane__container{padding-bottom:0}.blocks-app .email-pane .ant-tabs-tabpane.ant-tabs-tabpane-active.em-analytics__email-tab-build{border-top-left-radius:0}.blocks-app .email-pane .ant-tabs-large.secondary-tabs .ant-tabs-nav-list{padding-left:24px}.blocks-app .email-pane .ant-tabs-large.secondary-tabs .ant-tabs-nav{margin-bottom:0}.blocks-app .email-pane .ant-tabs-large.secondary-tabs .ant-tabs-tab .ant-tabs-tab-btn{font-size:14px;font-weight:400}.blocks-app .email-pane .ant-tabs-large.secondary-tabs .ant-tabs-tab+.ant-tabs-tab{margin:0 0 0 20px}.blocks-app .email-pane .ant-tabs-large.secondary-tabs .ant-tabs-content{padding:24px 13px 4px 24px}.blocks-app .email-pane .ant-tabs-large.secondary-tabs.secondary-tabs_optimise .ant-tabs-content{padding:0 25px}.blocks-app .email-pane .ant-tabs-large.secondary-tabs.email-properties__collapse .ant-tabs-content{padding-bottom:0}.blocks-app .email-pane.email-pane_no-element-navigation .ant-tabs-large.secondary-tabs.email-properties__collapse .ant-tabs-content{padding-top:0}.blocks-app .email-pane .email-properties__collapse{position:relative}.blocks-app .email-pane .email-properties__collapse:after{content:"";background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);border-top:1px solid var(--colorBorderSecondary);z-index:1;width:100%;height:20px;position:absolute;top:58px;left:0}.dark .blocks-app .email-pane .email-properties__collapse:after{background:linear-gradient(180deg, var(--colorBgBase) -100%, transparent 50%)}.blocks-app .email-pane .ant-tooltip{pointer-events:none}.blocks-app .email-pane__blocks-search{overflow-clip-margin:40px;flex-direction:column;height:calc(100% - 44px);min-height:0;display:flex;overflow:clip}.blocks-app .email-pane__blocks-search label.ant-segmented-item{margin-top:0}.blocks-app .email-pane__blocks-panel,.blocks-app .email-pane__blocks-panel-body{height:100%}.blocks-app .email-pane__blocks-panel-header{flex-shrink:0}.blocks-app .email-pane__blocks-panel-results{display:none}.blocks-app .email-pane__blocks-panel-results_visible{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.blocks-app .email-pane__blocks-panel_scrollable,.blocks-app .email-pane__blocks-panel_scrollable{overflow-clip-margin:40px;flex-direction:column;flex:1;min-height:0;display:flex;overflow:clip}.blocks-app .email-pane__blocks-panel_scrollable .email-pane__blocks-panel-body{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.blocks-app .email-pane .email-pane__blocks-search .ant-segmented{position:relative;top:-7px}@media screen and (width<=700px){.blocks-app .email-pane_view .email-pane__buttons{display:none}.blocks-app .email-pane__content{margin:0;padding-right:0}.blocks-app .email-pane__content .email-pane__content-col_main{min-width:100%}.blocks-app .email-pane__content .email-pane__content-col_menu{display:none}.blocks-app .email-pane__content .email-pane__content-col_menu+.email-pane__resizer{border-left:none;border-right:2px solid #0000}.blocks-app .email-pane__content .email-pane__content-col_menu+.email-pane__resizer:hover{border-color:var(--colorPrimary)}}.blocks-app .ant-menu-vertical.element-preview-menu__list_discuss li.ant-menu-item{text-align:right;padding:0 10px}.blocks-app .ant-tooltip{pointer-events:none}@media (width<=1550px){.blocks-app .email-pane .ant-tabs .secondary-tabs.email-pane__collapse:not(.secondary-tabs_unset_scroll):after{margin-top:44px}}.dark .blocks-app .email-pane .ant-tabs .blocks-search__empty-shadow:after{background:linear-gradient(180deg, var(--colorBgBase) -100%, transparent 50%)}.dark .blocks-app .ant-app .email-pane .ant-tabs-extra-content .ant-segmented_editor-mode{background-color:#121212}.blocks-app .collaborator-list{position:absolute;bottom:30px}.blocks-app .ant-app .email-pane__col-wrapper_pinch .ant-switch.ant-switch_editor-mode{width:48px}.blocks-app .ant-app .email-pane__col-wrapper_pinch .ant-switch.ant-switch_editor-mode.ant-switch-checked{background:var(--controlItemBgActive)}.blocks-app .ant-app .email-pane__col-wrapper_pinch .ant-switch.ant-switch_editor-mode.ant-switch-checked .ant-switch-inner-checked{color:var(--colorPrimary)}.blocks-app .email-preview-menu__versions .ant-btn,.blocks-app .email-preview-menu__code .ant-btn,.blocks-app .email-preview-menu__preview .ant-btn,.blocks-app .email-preview-menu__test{justify-content:center;align-items:center;display:inline-flex}.blocks-app .email-preview-menu__list-item-icon{align-items:center;display:inline-flex}.blocks-app .email-preview-menu_right{margin-left:auto}.blocks-app .email-preview-menu_new{align-items:center;padding-right:22px;display:flex}.blocks-app .email-preview-menu .email-preview-menu__history *{pointer-events:none}.blocks-app .ant-menu.email-preview-menu__list{border:0}.blocks-app .ant-menu-vertical .ant-menu-item.email-preview-menu__list-item{margin-top:0;padding:0 10px}.blocks-app .ant-menu-vertical .ant-menu-item.email-preview-menu__list-item_disabled{cursor:not-allowed}.blocks-app .ant-menu-vertical .ant-menu-item.email-preview-menu__list-item:hover .ant-menu-item.email-preview-menu__list-item_disabled .anticon.email-preview-menu__list-item-icon{color:inherit}.blocks-app .ant-menu-vertical .ant-menu-item.email-preview-menu__list-item a{width:40px;height:40px;margin-left:-10px;display:block}.blocks-app .ant-menu-vertical .ant-menu-item.email-preview-menu__list-item a .email-preview-menu__list-item-icon{margin-left:10px}.blocks-app .ant-menu-item .anticon.email-preview-menu__list-item-icon{font-size:20px}.blocks-app .ant-menu-item .anticon.email-preview-menu__list-item-icon_revert{transform:scaleX(-1)}.blocks-app .email-preview-menu__list-item:hover .anticon.email-preview-menu__list-item-icon,.blocks-app .ant-menu-item.email-preview-menu__list-item_active .anticon.email-preview-menu__list-item-icon{color:var(--colorPrimaryHover)}.blocks-app .ant-menu-item.ant-menu-item-selected.email-preview-menu__list-item,.blocks-app .ant-menu-item-disabled.email-preview-menu__list-item:hover .anticon.email-preview-menu__list-item-icon{color:inherit}.blocks-app .ant-menu-vertical>.email-preview-menu__list__scroll-buttons{cursor:default;text-align:center;height:auto;margin:0;padding:0}.blocks-app .ant-menu-vertical>.email-preview-menu__list__scroll-buttons .ant-space{display:block}.blocks-app .ant-menu-vertical>.email-preview-menu__list__scroll-buttons button{width:40px;height:40px;box-shadow:none;text-shadow:none;background:0 0;border:none;margin-bottom:8px;padding:0;display:block}.blocks-app .ant-menu-vertical>.email-preview-menu__list__scroll-buttons button .anticon{font-size:20px;transition:color .3s}.blocks-app .ant-menu-vertical>.email-preview-menu__list__scroll-buttons button .anticon :hover{color:var(--colorPrimaryHover)}.blocks-app .ant-menu-vertical .email-preview-menu__list__divider{border-top:2px solid var(--colorBorder);width:20px;min-width:auto;margin:20px 0}.blocks-app .ant-menu-vertical .email-preview-menu__list__divider.second-devider{margin-left:10px}.blocks-app .code-size-warning-modal .ant-modal-content{padding:32px}.blocks-app .code-size-warning-modal__content{flex-direction:column;display:flex}.blocks-app .code-size-warning-modal__icon{color:var(--colorWarning);margin-bottom:16px;font-size:64px}.blocks-app .code-size-warning-modal__icon .anticon{display:block}.blocks-app .code-size-warning-modal__title{color:var(--colorText);margin:0 0 12px;font-size:18px;font-weight:600}.blocks-app .code-size-warning-modal__message{color:var(--colorTextSecondary);margin-bottom:24px;font-size:14px;line-height:1.6}.blocks-app .code-size-warning-modal__message p{margin:0 0 12px}.blocks-app .code-size-warning-modal__message p:last-child{margin-bottom:0}.blocks-app .code-size-warning-modal__message strong{color:var(--colorError);font-weight:600}.blocks-app .code-size-warning-modal__image{width:100%;margin-bottom:24px}.blocks-app .code-size-warning-modal__image-placeholder{border-radius:8px;width:100%;height:200px;display:flex}.blocks-app .code-size-warning-modal__image-placeholder img{object-fit:contain;max-width:100%;max-height:100%}.blocks-app .code-size-warning-modal__actions{width:100%;display:flex}.blocks-app .code-size-warning-modal__actions .ant-btn{min-width:140px}.blocks-app .em-export-platforms-submenu .ant-dropdown-menu{max-height:420px;overflow-y:auto}.blocks-app .app-logo{color:#000;line-height:1.35;display:inline-block}.blocks-app .app-logo:hover{color:#000}.blocks-app .em-analytics__email-save .ant-btn-loading-icon .anticon,.blocks-app .em-analytics__block-save .ant-btn-loading-icon .anticon{font-size:16px}.blocks-app .main__ribbon{background:var(--colorInfo);min-height:43px;color:var(--colorTextLightSolid);flex-direction:row;justify-content:center;align-items:center;font-size:16px;display:flex}.blocks-app .main__ribbon button{background:var(--colorInfoTextHover)}.blocks-app .main__ribbon button:hover{background:var(--colorInfoHover)!important}.blocks-app .main__ribbon .main__ribbon-resend.ant-btn.ant-btn-sm{padding-block:5px;padding-inline:14px}.blocks-app .header{box-sizing:content-box;border-bottom:1px solid;height:70px;min-height:70px}.blocks-app .header_blocks{padding-right:10px}.blocks-app .header_main{z-index:1}.blocks-app .header__container{justify-content:space-between;align-items:center;gap:30px;min-height:70px;transition:opacity .3s;display:flex}.blocks-app .header__logo,.blocks-app .header__project{white-space:nowrap;text-overflow:ellipsis;max-width:220px;display:block;overflow:hidden}.blocks-app .header__logo{padding-top:10px}.blocks-app .header h2,.blocks-app .header h3{margin:0}.blocks-app .header__right{max-height:40px}.blocks-app .header__right .header__action-btn.ant-btn{align-items:center;height:34px;min-height:34px;padding-block:0;display:inline-flex}.blocks-app .header__right .ant-space.ant-space-horizontal.ant-space-align-center{align-items:center;display:flex}.blocks-app .header__right,.blocks-app .header__left{display:flex}.blocks-app .header__left .ant-space,.blocks-app .header__left .ant-space .ant-space-item:last-child{flex-grow:1}.blocks-app .header .project-menu__list-item{cursor:pointer;transition:color .3s}.blocks-app .header .project-menu__list-item:hover{color:#40a9ff}.blocks-app .header .project-menu__list-item svg{width:1.2em;height:1.2em;vertical-align:inherit}.blocks-app .header .project-menu__list-item .anticon-bell svg{width:1.4em;height:1.4em}.blocks-app .header .ant-typography{margin-bottom:0}.blocks-app .foo-title{color:#fff;letter-spacing:1px;background:#9254de;border-radius:3px;margin-top:-10px;margin-left:-4px;padding:0 7px;font-size:13px;font-weight:500;position:absolute}.blocks-app .email-page-header__dropdown-menu{top:10px}.blocks-app .email-page-header__email-id{color:var(--colorTextTertiary)}.blocks-app .email-page-header .button{cursor:pointer}.blocks-app .anticon.anticon-edit.email-page-header__icon-edit{color:#8c8c8c;margin-left:6px;font-size:16px}.blocks-app .ant-typography-edit:hover .anticon.anticon-edit.email-page-header__icon-edit{color:var(--colorPrimaryHover)}.blocks-app .ant-page-header-heading{max-width:700px;transition:all .2s;position:relative}.blocks-app .ant-page-header-heading svg{cursor:pointer;opacity:0;justify-content:center;width:0;height:0;transition:all .2s .2s;position:absolute;top:0;right:3px}.blocks-app .ant-page-header-heading svg:hover{color:var(--colorPrimaryHover)}.blocks-app .ant-page-header-heading.focus{background-color:var(--colorFillSecondary);border-radius:calc(var(--borderRadiusSM) * 1px);padding:0 8px}.blocks-app .ant-page-header-heading.focus svg{opacity:1;width:20px;height:20px;top:2px}.blocks-app .ant-page-header-heading.ant-page-header-heading_preheader.focus svg{top:0}.blocks-app .ant-page-header-heading_preheader .anticon{top:-2px}.blocks-app .email-page-header .ant-page-header-heading-left{flex-grow:1;overflow:visible}.blocks-app .email-page-header .ant-page-header-back{align-self:flex-start;margin-right:0;padding-top:8px}.blocks-app div.ant-typography-edit-content.ant-page-header-heading-preheader,.blocks-app div.ant-typography-edit-content.ant-page-header-heading-title{margin-top:0;margin-bottom:0;inset-inline-start:0}.blocks-app .header__left .ant-form-item-control-input,.blocks-app .header__left .ant-form-item-control-input-content{line-height:normal;min-height:auto!important}.blocks-app .header__left .ant-page-header-heading-title{white-space:pre-wrap;text-overflow:ellipsis;border-radius:0;flex-grow:1;min-height:auto;padding:0 20px 0 0;font-weight:500;line-height:1;overflow:visible}.blocks-app .header__left .ant-page-header-heading-preheader{max-width:700px;min-height:auto;box-shadow:none;text-overflow:ellipsis;white-space:nowrap;border-radius:0;padding:0 20px 0 0;display:block;overflow:hidden;line-height:20px!important}.blocks-app .header__left .ant-skeleton.ant-skeleton-element{width:100%;display:block}.blocks-app .ant-page-header-heading-title,.blocks-app .ant-page-header-heading-preheader{background:0 0;padding:0;box-shadow:none!important;border:none!important;transition:none!important}.blocks-app .ant-page-header-heading-preheader{color:var(--colorTextSecondary);min-height:auto}.blocks-app .subject_preheader_form__title{width:80px;color:var(--colorTextTertiary);white-space:nowrap}.blocks-app .ant-page-header-heading-title{line-height:22px!important}.blocks-app .email-page-header .ant-typography{align-items:center;margin-bottom:0;padding:0 12px;display:flex}.blocks-app .email-page-header .ant-typography-edit-content{margin-top:-10px;padding:0;top:5px;left:auto}.blocks-app .email-page-header .ant-input{font-size:inherit;font-weight:inherit}.blocks-app .email-page-header .ant-page-header-heading-extra>*{margin-left:8px}.blocks-app header .ant-btn.email-page-header__btn_extra{width:32px;padding:0}.blocks-app .modal-new-block__icon-create{width:16px;margin-bottom:-2px;margin-right:10px}.blocks-app .modal-footer{justify-content:flex-end;padding:8px 0;display:flex}.blocks-app .modal-spinner{justify-content:center;align-items:center;height:108px;display:flex}@media (width<=1550px){.blocks-app .email-pane__col_settings{margin-left:48px;margin-right:32px}}.blocks-app .em-dragging-element{border-radius:8px}.blocks-app .em-dragging-element>div{box-shadow:none!important}.blocks-app .em-dragging-element .blocks-search__result-html,.blocks-app .em-dragging-element span,.blocks-app .em-dragging-element .atoms__item:before{visibility:hidden}.blocks-app .em-ghost-element.blocks-search__result-html,.blocks-app .em-ghost-element span,.blocks-app .em-ghost-element.atoms__item:before{visibility:visible!important}.blocks-app .em-ghost-element table{border-collapse:initial}.blocks-app .element-card__img{cursor:pointer;width:100%;transition:transform 1s linear}.blocks-app .element-card__img:hover{transition:none}.blocks-app .element-card__img-wrapper,.blocks-app .element-card__no-img,.blocks-app .element-card__title-wrapper{cursor:pointer;border-radius:12px;position:relative;overflow:hidden}.blocks-app .element-card__corner-badges{z-index:3;pointer-events:none;flex-direction:column;align-items:flex-end;gap:6px;display:flex;position:absolute;top:6px;right:6px;width:auto!important}.blocks-app .element-card__corner-badges .element-card__is-template-wrapper{border-radius:calc(var(--borderRadius) * 1px) calc(var(--borderRadius) * 1px) calc(var(--borderRadius) * 1px) calc(var(--borderRadius) * 1px);margin:0;position:static}.blocks-app .element-card__is-template-wrapper{color:#fff;background-color:var(--colorPrimaryHover);text-align:center;padding:4px 8px;font-size:12px;line-height:1.2;display:inline-block;position:absolute;top:0;right:0;border-radius:0 calc(var(--borderRadiusXL) * 1px) 0 calc(var(--borderRadius) * 1px)!important;width:auto!important}.blocks-app .element-card__tags-wrapper{align-items:left;pointer-events:none;justify-content:left;padding:14px 10px;display:inline-flex;position:absolute;bottom:0}.blocks-app .element-card__tags-wrapper .ant-space{pointer-events:all;justify-content:left}.blocks-app .element-card__date{margin-bottom:8px;line-height:22px}.blocks-app .element-card__lock{float:right}.blocks-app .element-card__title{line-clamp:3;-webkit-line-clamp:3;text-overflow:ellipsis;white-space:normal;word-break:break-word;-webkit-box-orient:vertical;max-height:72px;margin-bottom:0;padding-bottom:4px;font-size:18px;line-height:24px;display:-webkit-box;overflow:hidden}.blocks-app .element-card__title .anticon-lock{margin-right:4px}.blocks-app .element-card__title.ant-btn{white-space:normal;display:-webkit-box}.blocks-app .element-card .ant-card-actions{height:40px}.blocks-app .element-card .ant-card-actions>li{margin:8px 0}.blocks-app .element-card .ant-card-cover{margin-top:0;margin-left:0;margin-right:0;padding:3px;position:relative;overflow:hidden}.blocks-app .element-card .ant-card-body{flex-direction:column;padding:8px 18px;display:flex}.blocks-app .element-card .ant-card-body .ant-card-body__left{flex-direction:column;flex:1;min-width:0;display:flex}.blocks-app .element-card .ant-card-body .ant-card-body__left .element-card__date{margin-top:auto}.blocks-app .element-card .ant-card-body .element-card__title-row{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.blocks-app .element-card .ant-card-body .element-card__title-row a{flex:1;min-width:0}.blocks-app .element-card .ant-card-body .element-card__title-row .element-card_menu{flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;margin-left:8px;padding:0;display:inline-flex}.blocks-app .element-card.element-card_email .ant-card-cover,.blocks-app .element-card.element-card_new-email .ant-card-cover{height:240px}.blocks-app .element-card.element-card_new-email .ant-card-body{text-align:center}.blocks-app .element-card .ant-tag{cursor:pointer}.blocks-app .element-card .ant-tag:hover{background-color:var(--colorPrimaryHover)!important}@media (width<=1450px){.blocks-app .element-card.element-card_email .ant-card-cover{height:240px}}.blocks-app .ant-dropdown-menu-popup.element-card__folder-submenu ul.ant-dropdown-menu.ant-dropdown-menu-sub,.blocks-app .element-card__folder-submenu.ant-dropdown-menu-popup ul.ant-dropdown-menu.ant-dropdown-menu-sub{max-height:70vh;overflow:hidden auto}.blocks-app .element-card__img-wrapper,.blocks-app .element-card__no-img{width:100%;height:100%;display:block}.blocks-app .element-card__img-wrapper,.blocks-app .element-card__no-img,.blocks-app .element-card__title-wrapper{cursor:pointer}.blocks-app .element-card__title-wrapper{display:inline-block}.blocks-app .element-card__tags-wrapper{justify-content:left;align-items:flex-start;padding:14px 10px;display:inline-flex;position:absolute;bottom:0}.blocks-app .element-card__tags-wrapper .ant-space{justify-content:left}.blocks-app .element-card__date{margin-bottom:8px;font-size:13px;line-height:1.5}.blocks-app .element-card__title{text-overflow:ellipsis;width:225px;margin-bottom:0;padding-left:0;font-size:16px;line-height:24px;display:block;overflow:hidden;text-align:left!important}.blocks-app .element-card__title svg{margin-right:5px;position:relative;top:2px}.blocks-app .element-card_template .element-card__title{width:272px;padding:0}.blocks-app .element-card_template .element-card__title span{text-overflow:ellipsis;width:100%;display:inline-block;overflow:hidden}.blocks-app .element-card .ant-card-actions{z-index:2;border-top:1px solid #f5f5f5;height:40px}.blocks-app .element-card .ant-card-actions>li{border:none;margin:0;padding:8px}.blocks-app .element-card .ant-card-cover{overflow:hidden}.blocks-app .element-card.element-card_email .ant-card-cover,.blocks-app .element-card.element-card_block .ant-card-cover,.blocks-app .element-card.element-card_new-email .ant-card-cover{border:none;position:relative}.blocks-app .element-card.element-card_new-email .ant-card-cover{height:240px}.blocks-app .element-card.element-card_new-email .ant-card-body{text-align:center;height:calc(100% - 240px)}.blocks-app .element-card.element-card_block .ant-card-cover{height:240px}.blocks-app .element-card.element-card_block .ant-card-cover .ant-skeleton{display:none}.blocks-app .element-card .ant-tag{cursor:pointer;margin-right:0}.blocks-app .element-card__ant-card-cover{height:240px}.blocks-app .element-card .ant-card-body{flex-direction:row;justify-content:space-between;gap:10px;height:calc(100% - 240px);display:flex}.blocks-app .element-card .ant-card-body:after,.blocks-app .element-card .ant-card-body:before{display:none}.blocks-app .element-card .ant-card-body__left{flex-direction:column;justify-content:space-between;display:flex}.blocks-app .element-card .ant-card-body__right{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,visibility .2s ease-in-out;display:block}.blocks-app .element-card .ant-card-body__right .ant-btn{align-items:center;padding:4px 7px;display:flex}.blocks-app .element-card:hover .ant-card-body__right,.blocks-app .element-card .ant-card-body__right:hover,:is(.blocks-app .element-card:has(.ant-card-body__right .ant-btn.ant-dropdown-open) .ant-card-body__right,.blocks-app .element-card:has(.ant-card-body__right .ant-dropdown-open) .ant-card-body__right){opacity:1;visibility:visible}.blocks-app .template-page .element-card_email .ant-card-cover,.blocks-app .template-page .element-card_new-email .ant-card-cover{height:370px}.blocks-app .template-page__container .element-card_template-empty .ant-card-body{height:0;padding:0}.blocks-app .template-page__container .ant-card-body{flex-direction:column;height:48px;padding:8px 18px;display:flex}@media (width<=1450px){.blocks-app .element-card.element-card_email .ant-card-cover{height:240px}.blocks-app .ant-card-body,.blocks-app .template-page__container .ant-card-body{height:calc(100% - 240px)}}.blocks-app .cards-search{height:100%;overflow:visible}.blocks-app .cards-search .ant-row{justify-content:left;gap:30px}.blocks-app .cards-search .ant-form-item{margin-bottom:0}.blocks-app .cards-search form{position:relative;overflow:visible}.blocks-app .cards-search__tags-select,.blocks-app .cards-search__by-title{width:322px}.blocks-app .cards-search .ant-select-clear{right:30px}.blocks-app .cards-search__type-select{width:175px}.blocks-app .cards-search__toolbar-input.ant-input-affix-wrapper{box-sizing:border-box;border-radius:calc(var(--borderRadius) * 1px);background:var(--colorBgContainer);border-color:var(--colorBorder);align-items:center;width:100%;height:32px;min-height:32px;padding:0 8px;font-size:14px;display:inline-flex}.blocks-app .cards-search__toolbar-input.ant-input-affix-wrapper .ant-input{font-size:14px;font-weight:300;line-height:1.2}.blocks-app .cards-search__toolbar-input.ant-input-affix-wrapper .ant-input::placeholder{font-weight:500}.blocks-app .cards-search__toolbar-input.ant-input-affix-wrapper.ant-input-affix-wrapper-focused{border-color:var(--colorPrimary)}.blocks-app .cards-search__toolbar-search-icon{color:var(--colorTextSecondary);margin-inline-end:4px;font-size:16px}.blocks-app .ant-table .ant-tag:hover{background-color:var(--colorPrimaryHover)!important}.blocks-app .element-card.element-card_email.element-card_template-empty .ant-card-cover{height:100px}.blocks-app .element-card{width:100%}.blocks-app .ant-app .ant-card .ant-card-cover>.element-card__empty-template{padding:26px 18px 26px 14px;display:flex}.blocks-app .element-card__empty-template__text{flex-direction:column;margin-left:16px;display:flex}.blocks-app .element-card__empty-template__title{margin-bottom:5px;font-size:16px;line-height:18px}.blocks-app .element-card__empty-template__description{color:var(--colorTextTertiary);font-size:14px;line-height:16px}.blocks-app .element-card__group-tag.ant-tag{border-radius:14px;justify-content:space-between;align-items:center;padding-right:3px;display:flex}.blocks-app .element-card__group-tag.ant-tag:not(.element-card__group-tag_close){background:#1677ff}.blocks-app .element-card__group-tag.ant-tag.element-card__group-tag_close{color:#000000e0;background:#fff;border-color:#0000}.blocks-app .element-card__group-tag.ant-tag .anticon{cursor:pointer;margin-left:8px}.blocks-app .element-card__group-tag-wrapper{justify-content:space-between;max-width:990px;display:flex}@media (width<=1550px){.blocks-app .element-card__group-tag-wrapper{justify-content:space-between;max-width:960px;display:flex}}.blocks-app .project-page__list .selectedEmailsBar>.ant-space-horizontal:last-child{margin-inline-end:-11px}.blocks-app .project-page__list .selectedEmailsBar{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.blocks-app .project-page__list .emailCard{flex-direction:column;display:flex;position:relative}.blocks-app .project-page__list .emailCard>.ant-card,.blocks-app .project-page__list .emailCard>.element-card{flex-direction:column;flex:1;min-height:0;display:flex}.blocks-app .project-page__list .emailCard .ant-card-body{flex-direction:column;flex:1;display:flex}.blocks-app .selectedEmailCheckbox{z-index:2;opacity:0;pointer-events:none;transition:opacity .15s ease-in-out;position:absolute;top:8px;left:8px}.blocks-app .selectedEmailCheckbox .ant-checkbox{box-sizing:border-box;background-color:#fff;border:2px solid #fff;border-radius:4px;width:20px;height:20px}.blocks-app .selectedEmailCheckbox .ant-checkbox .ant-checkbox-inner{box-sizing:border-box;background-color:#fff;border:1px solid #d9d9d9;width:16px;height:16px;transition:all .3s;border-radius:2px!important}.blocks-app .table__container .selectedEmailCheckbox .ant-checkbox .ant-checkbox-inner{border:none}.blocks-app .selectedEmailCheckbox .ant-checkbox .ant-checkbox-inner:after{top:50%;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;inset-inline-start:21.5%;transform:rotate(45deg)scale(0)translate(-50%,-50%)}.blocks-app .selectedEmailCheckbox .ant-checkbox.ant-checkbox-checked{border-color:var(--colorPrimary)}.blocks-app .selectedEmailCheckbox .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner{background-color:var(--colorPrimary);border-color:var(--colorPrimary)}.blocks-app .selectedEmailCheckbox .ant-checkbox.ant-checkbox-checked .ant-checkbox-inner:after{opacity:1;transform:rotate(45deg)scale(1)translate(-50%,-50%)}.blocks-app .emailCard:hover .selectedEmailCheckbox,.blocks-app .project-page__cards-grid--show-checkboxes .selectedEmailCheckbox{opacity:1;pointer-events:auto}.blocks-app .selectedEmailsBar{font-weight:500}.blocks-app .selectedEmailsBar .cards-search{width:650px;max-width:650px}@media (width<=1400px){.blocks-app .selectedEmailsBar .cards-search{width:520px;max-width:520px}}.blocks-app .selectedEmailsBar .cards-search__by-title{width:100%}.blocks-app .emails-table__toolbar-sort.ant-select:not(.ant-select-disabled):hover .ant-select-selector,.blocks-app .emails-table__toolbar-sort.ant-select .ant-select-selector{border-radius:calc(var(--borderRadius) * 1px);background:var(--colorBgContainer);border-color:var(--colorBorder);align-items:center;min-height:32px;padding-top:0;padding-bottom:0}.blocks-app .emails-table__toolbar-sort.ant-select-focused:not(.ant-select-disabled) .ant-select-selector{border-color:var(--colorPrimary)}.blocks-app .emails-table__toolbar-sort.ant-select-single:not(.ant-select-customize-input) .ant-select-selector .ant-select-selection-item{line-height:30px}.blocks-app .emails-table__title{line-clamp:3;-webkit-line-clamp:3;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.blocks-app .emails-table__author-avatar.ant-avatar{font-size:12px}.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu{border-radius:12px;padding:8px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item{border-radius:6px;height:auto;min-height:32px;padding:8px;line-height:normal}.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-icon{font-size:16px}.blocks-app .projects-table__actions-menu-icon{color:var(--colorText);font-size:16px}.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-danger .projects-table__actions-menu-icon{color:var(--colorError)}.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-danger:hover .projects-table__actions-menu-icon,.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-danger:hover .ant-dropdown-menu-item-icon,.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-danger.ant-dropdown-menu-item-active .projects-table__actions-menu-icon,.blocks-app .projects-table__actions-dropdown .projects-table__actions-menu-list.ant-dropdown-menu .ant-dropdown-menu-item-danger.ant-dropdown-menu-item-active .ant-dropdown-menu-item-icon{color:var(--colorTextLightSolid)}.blocks-app .projects-table__actions-trigger{box-sizing:border-box;cursor:pointer;justify-content:center;align-items:center;display:inline-flex}.blocks-app .projects-table__actions-trigger--card{background:0 0;border:1px solid #0000;border-radius:6px;width:32px;height:32px}.blocks-app .projects-table__actions-trigger--card:hover,.blocks-app .projects-table__actions-trigger--card.ant-dropdown-open,.blocks-app .projects-table__actions-trigger--table:hover,.blocks-app .projects-table__actions-trigger--table.ant-dropdown-open{background:#e6f4ff;border-color:#2884ff}.blocks-app .projects-table__actions-trigger-icon{color:var(--colorTextSecondary);font-size:16px}.blocks-app .projects-table__actions-trigger--card:hover .projects-table__actions-trigger-icon,.blocks-app .projects-table__actions-trigger--card.ant-dropdown-open .projects-table__actions-trigger-icon,.blocks-app .projects-table__actions-trigger--table:hover .projects-table__actions-trigger-icon,.blocks-app .projects-table__actions-trigger--table.ant-dropdown-open .projects-table__actions-trigger-icon{color:#2884ff}.blocks-app .projects-table__actions-trigger--table{background:0 0;border:1px solid #0000;border-radius:6px;width:32px;height:32px;margin:auto;position:absolute;inset:0}.blocks-app .emails-table__folder-submenu.ant-dropdown-menu-popup ul.ant-dropdown-menu.ant-dropdown-menu-sub{max-height:70vh;overflow:hidden auto}.blocks-app .project-page__list .ant-pagination{text-align:center;justify-content:center;align-items:center;gap:8px;display:flex}.blocks-app .project-page__list .ant-pagination .ant-pagination-item:not(.ant-pagination-item-active),.blocks-app .project-page__list .ant-pagination .ant-pagination-item:not(.ant-pagination-item-active):hover,.blocks-app .project-page__list .ant-pagination .ant-pagination-item:not(.ant-pagination-item-active):focus-visible{box-shadow:none;border-color:#0000;background-color:#0000!important}.blocks-app .template-page__header.ant-page-header{margin-bottom:20px;padding-left:0;padding-right:0}.blocks-app .template-page__cards-grid{grid-gap:50px;grid-template-columns:repeat(auto-fit,322px);margin-bottom:50px;display:grid}.blocks-app .template-page__list{position:relative}.blocks-app .template-page__loader{z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}.blocks-app .template-page .ant-page-header-heading-title{width:310px}.blocks-app .template-page .ant-page-header-heading-left,.blocks-app .template-page .ant-page-header-heading-sub-title{overflow:visible}.blocks-app .payment-card-logos-row{opacity:.5;flex-flow:wrap;justify-content:center;align-items:center;gap:16px;display:flex}.blocks-app .payment-card-logos-row__img{object-fit:contain;pointer-events:none;-webkit-user-select:none;user-select:none;flex-shrink:0;width:auto;display:block}.blocks-app .payment-card-logos-row__img--mir{height:14px}.blocks-app .payment-card-logos-row__img--sbp{height:16px}.blocks-app .payment-card-logos-row__img--visa{height:12px}.blocks-app .payment-card-logos-row__img--mastercard{height:14px}.blocks-app .extra-limit-package-modal.ant-modal{max-width:calc(100vw - 24px)}.blocks-app .extra-limit-package-modal .ant-modal-content{border-radius:16px;padding:0;overflow:hidden;box-shadow:0 12px 24px -4px #191d3a14}.blocks-app .extra-limit-package-modal .ant-modal-header{display:none}.blocks-app .extra-limit-package-modal .ant-modal-content .ant-modal-body{padding:0}.blocks-app .extra-limit-package-modal__wrap{background:var(--colorBgContainer);flex-direction:column;align-items:center;width:400px;max-width:100%;display:flex}.blocks-app .extra-limit-package-modal__header{box-sizing:border-box;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;min-height:34px;padding:8px 8px 0;display:flex}.blocks-app .extra-limit-package-modal__close{background:var(--colorBgContainer);width:34px;height:34px;color:var(--colorTextSecondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;margin:0;padding:0;transition:background .15s,color .15s;display:flex}.blocks-app .extra-limit-package-modal__close:hover{background:var(--colorFillTertiary);color:var(--colorText)}.blocks-app .extra-limit-package-modal__close .anticon{font-size:16px}.blocks-app .extra-limit-package-modal__body{box-sizing:border-box;flex-direction:column;align-items:center;gap:16px;width:100%;padding:0 40px 24px;display:flex}.blocks-app .extra-limit-package-modal__title{text-align:center;max-width:320px;color:var(--colorText);margin:0;font-size:18px;font-weight:600;line-height:100%}.blocks-app .extra-limit-package-modal__subtitle{text-align:center;max-width:320px;color:var(--colorTextSecondary);margin:0;font-size:14px;font-weight:100;line-height:120%}.blocks-app .extra-limit-package-modal__package-banner{box-sizing:border-box;background:var(--colorFillQuaternary);border-radius:8px;width:100%;max-width:320px;padding:23px 8px}.blocks-app .extra-limit-package-modal__package-content{flex-direction:row;justify-content:center;align-items:center;gap:8px;height:40px;display:flex}.blocks-app .extra-limit-package-modal__package-plus{color:#8946fb;font-size:40px;font-weight:100;line-height:1}.blocks-app .extra-limit-package-modal__package-amount{color:#8946fb;font-size:40px;font-weight:400;line-height:1}.blocks-app .extra-limit-package-modal__package-icon{box-sizing:border-box;border:1px solid #8946fb;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.blocks-app .extra-limit-package-modal__divider{border:none;border-top:1px solid var(--colorBorderSecondary);width:100%;height:0;margin:0}.blocks-app .extra-limit-package-modal__footer{box-sizing:border-box;flex-direction:column;align-items:stretch;gap:16px;width:100%;min-height:147px;padding:16px 40px 32px;display:flex}.blocks-app .extra-limit-package-modal__payment-label{width:100%;max-width:320px;color:var(--colorText);text-align:center;align-self:center;margin:0;font-size:16px;font-weight:400;line-height:1.2}.blocks-app .extra-limit-package-modal__payment-buttons{flex-flow:wrap;justify-content:space-between;align-self:center;align-items:center;gap:10px;width:100%;max-width:320px;display:flex}.blocks-app .extra-limit-package-modal__pay-btn-wrap{flex:1;justify-content:center;min-width:0;display:flex}.blocks-app .extra-limit-package-modal__pay-btn-wrap--card{flex:.88}.blocks-app .extra-limit-package-modal__pay-btn-wrap--invoice{flex:1.12}.blocks-app .extra-limit-package-modal__pay-btn{width:100%;min-width:0;height:auto;min-height:32px;box-shadow:none;white-space:nowrap;text-align:center;border-radius:6px;flex:1;justify-content:center;align-items:center;gap:4px;padding:8px 10px;font-size:14px;font-weight:400;line-height:1.25;display:inline-flex}.blocks-app .extra-limit-package-modal__pay-btn .anticon{flex-shrink:0}.blocks-app .extra-limit-package-modal__pay-btn--card.ant-btn-primary{color:#fff;background:#2884ff;border-color:#2884ff}.blocks-app .extra-limit-package-modal__pay-btn--card.ant-btn-primary:hover:not(:disabled){background:#1a75f0;border-color:#1a75f0}.blocks-app .extra-limit-package-modal__pay-btn--card.ant-btn-primary:disabled{opacity:.5}.blocks-app .extra-limit-package-modal__pay-btn--invoice.ant-btn-default{border-color:var(--colorBorder);color:var(--colorText);background:var(--colorBgContainer);white-space:nowrap;padding:8px;font-size:13px}.blocks-app .extra-limit-package-modal__pay-btn--invoice.ant-btn-default .ant-btn-icon+span{white-space:nowrap}.blocks-app .extra-limit-package-modal__pay-btn--invoice.ant-btn-default:hover:not(:disabled){color:#2884ff;border-color:#2884ff}.blocks-app .extra-limit-package-modal__pay-btn--invoice.ant-btn-default:disabled{opacity:.5}.blocks-app .extra-limit-package-modal__card-logos{flex-direction:column;align-self:center;align-items:center;width:100%;max-width:320px;display:flex}.blocks-app .billing-banner-modal.ant-modal{max-width:calc(100vw - 24px)}.blocks-app .billing-banner-modal .ant-modal-content{border-radius:16px;padding:0;overflow:hidden;box-shadow:0 12px 24px -4px #191d3a14}.blocks-app .billing-banner-modal .ant-modal-header{display:none}.blocks-app .billing-banner-modal .ant-modal-content .ant-modal-body{padding:0}.blocks-app .billing-banner-modal__wrap{background:var(--colorBgContainer);flex-direction:column;align-items:center;width:400px;max-width:100%;display:flex}.blocks-app .billing-banner-modal__header{box-sizing:border-box;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;min-height:34px;padding:8px 8px 0;display:flex}.blocks-app .billing-banner-modal__close{background:var(--colorBgContainer);width:34px;height:34px;color:var(--colorTextSecondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;margin:0;padding:0;transition:background .15s,color .15s;display:flex}.blocks-app .billing-banner-modal__close:hover{background:var(--colorFillTertiary);color:var(--colorText)}.blocks-app .billing-banner-modal__close .anticon{font-size:16px}.blocks-app .billing-banner-modal__body{box-sizing:border-box;flex-direction:column;align-items:center;gap:16px;width:100%;padding:0 40px 24px;display:flex}.blocks-app .billing-banner-modal__title{text-align:center;max-width:320px;color:var(--colorText);margin:0;font-size:18px;font-weight:400;line-height:100%}.blocks-app .billing-banner-modal__subtitle{text-align:center;max-width:320px;color:var(--colorTextSecondary);margin:0;font-size:14px;font-weight:100;line-height:120%}.blocks-app .billing-banner-modal__banner{isolation:isolate;box-sizing:border-box;border-radius:8px;flex-direction:row;align-items:flex-start;gap:16px;width:100%;max-width:320px;min-height:98px;padding:16px;display:flex;position:relative;overflow:hidden}.blocks-app .billing-banner-modal__banner--accent,.blocks-app .billing-banner-modal__banner--warning{background:#8946fb}.blocks-app .billing-banner-modal__banner--warning:before{content:"";opacity:.4;filter:blur(60px);z-index:0;pointer-events:none;background:#f85243;border-radius:50%;width:335px;height:335px;position:absolute;top:50%;right:-167px;transform:translateY(-50%)}.blocks-app .billing-banner-modal__banner--success{background:#c4b5fd}.blocks-app .billing-banner-modal__banner--ai-usage-center{flex-direction:column;justify-content:center;align-items:center;min-height:98px;padding:16px 8px}.blocks-app .billing-banner-modal__banner--package-bonus{flex-direction:column;justify-content:center;align-items:center;gap:40px;height:auto;min-height:86px;padding:23px 8px}.blocks-app .billing-banner-modal__banner-inner{z-index:1;flex-direction:row;align-items:flex-start;gap:16px;width:100%;display:flex;position:relative}.blocks-app .billing-banner-modal__banner-inner--center{justify-content:center;align-items:center}.blocks-app .billing-banner-modal__plan-col{flex-direction:column;flex:1;align-items:flex-start;gap:8px;min-width:0;display:flex}.blocks-app .billing-banner-modal__plan-name{color:#fff;margin:0;font-size:18px;font-weight:400;line-height:100%}.blocks-app .billing-banner-modal__date-row{flex-flow:wrap;align-content:flex-start;align-items:flex-start;column-gap:4px;font-size:14px;line-height:19px;display:flex}.blocks-app .billing-banner-modal__date-label{color:#e6f4ff;font-weight:100}.blocks-app .billing-banner-modal__date-value{color:#fff;font-weight:400}.blocks-app .billing-banner-modal__remaining-label{color:#e6f4ff;margin:0;font-size:18px;font-weight:400;line-height:100%}.blocks-app .billing-banner-modal__remaining-row{flex-direction:row;align-items:flex-end;gap:8px;display:flex}.blocks-app .billing-banner-modal__days-number{color:#fff;font-size:40px;font-weight:100;line-height:100%}.blocks-app .billing-banner-modal__days-unit{color:#e6f4ff;padding-bottom:4px;font-size:14px;font-weight:100;line-height:19px}.blocks-app .billing-banner-modal__icon-circle{color:#fff;border:1px solid #ffffffd9;border-radius:32px;flex:none;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.blocks-app .billing-banner-modal__icon-circle .anticon{font-size:18px}.blocks-app .billing-banner-modal__ai-metric-row{flex-flow:wrap;justify-content:center;align-items:center;gap:8px;display:flex}.blocks-app .billing-banner-modal__ai-metric-num{color:#fff;font-size:40px;font-weight:400;line-height:100%}.blocks-app .billing-banner-modal__ai-metric-of{color:#e6f4ff;white-space:nowrap;flex:none;font-size:14px;font-style:normal;font-weight:100;line-height:19px}.blocks-app .billing-banner-modal__package-row{z-index:1;flex-direction:row;justify-content:center;align-items:center;gap:8px;width:auto;display:flex;position:relative}.blocks-app .billing-banner-modal__package-plus-sign{color:#fff;justify-content:center;align-items:center;min-width:26px;font-size:40px;font-weight:300;line-height:100%;display:flex}.blocks-app .billing-banner-modal__package-amount{color:#fff;align-items:center;min-width:0;font-size:40px;font-weight:600;line-height:100%;display:flex}.blocks-app .billing-banner-modal__icon-circle--package{border:1px solid #fff;border-radius:38px;width:34px;height:34px;padding:8px}.blocks-app .billing-banner-modal__icon-circle--package .anticon{font-size:16px}.blocks-app .billing-banner-modal__divider{border:none;border-top:1px solid var(--colorBorderSecondary);width:100%;height:0;margin:0}.blocks-app .billing-banner-modal__footer{box-sizing:border-box;flex-direction:row;justify-content:center;align-items:flex-start;gap:10px;width:100%;padding:16px 40px;display:flex}.blocks-app .billing-banner-modal__footer .billing-banner-modal__btn-pay.ant-btn-primary{box-sizing:border-box;max-width:100%;height:auto;min-height:32px;box-shadow:none;white-space:normal;background:#2884ff;border-color:#2884ff;border-radius:6px;padding:8px 16px;font-size:14px;font-weight:400;line-height:1.2}.blocks-app .billing-banner-modal__footer .billing-banner-modal__btn-pay.ant-btn-primary:hover{background:#1a75f0;border-color:#1a75f0}.blocks-app .billing-banner-modal__footer:not(.billing-banner-modal__footer--pay-single) .billing-banner-modal__btn-pay.ant-btn-primary{width:auto;min-width:99px}.blocks-app .billing-banner-modal__footer--dual{flex-wrap:wrap;justify-content:space-between;align-items:center}.blocks-app .billing-banner-modal__footer--pay-single{align-items:center}.blocks-app .billing-banner-modal__footer--pay-single .billing-banner-modal__btn-pay.ant-btn-primary{flex:0 auto;align-self:center;width:auto;min-width:99px}.blocks-app .billing-banner-modal__btn-autopay.ant-btn-default{border-color:var(--colorBorder);width:206px;min-width:34px;height:32px;color:var(--colorText);background:var(--colorBgContainer);box-shadow:none;border-radius:6px;justify-content:center;align-items:center;gap:4px;padding:8px 16px;font-size:14px;font-weight:400;line-height:19px;display:inline-flex}.blocks-app .billing-banner-modal__btn-autopay.ant-btn-default:hover{color:#2884ff;border-color:#2884ff}.blocks-app .billing-banner-modal__btn-autopay.ant-btn-default .anticon{font-size:16px}.blocks-app .billing-banner-modal__footer--single .billing-banner-modal__btn-autopay.ant-btn-default{width:206px;min-width:206px}.blocks-app .billing-banner-modal__footer--package-single{flex-direction:column;justify-content:center;align-items:center;padding:16px 0}.blocks-app .plan-checkout-choice-modal.ant-modal{max-width:calc(100vw - 24px)}.blocks-app .plan-checkout-choice-modal .ant-modal-content{border-radius:16px;padding:0;overflow:hidden;box-shadow:0 12px 24px -4px #191d3a14}.blocks-app .plan-checkout-choice-modal .ant-modal-header{display:none}.blocks-app .plan-checkout-choice-modal .ant-modal-content .ant-modal-body{padding:0}.blocks-app .plan-checkout-choice-modal__wrap{background:var(--colorBgContainer);flex-direction:column;align-items:center;width:400px;max-width:100%;display:flex}.blocks-app .plan-checkout-choice-modal__header{box-sizing:border-box;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;min-height:34px;padding:8px 8px 0;display:flex}.blocks-app .plan-checkout-choice-modal__close{background:var(--colorBgContainer);width:34px;height:34px;color:var(--colorTextSecondary);cursor:pointer;border:none;border-radius:6px;justify-content:center;align-items:center;margin:0;padding:0;transition:background .15s,color .15s;display:flex}.blocks-app .plan-checkout-choice-modal__close:hover{background:var(--colorFillTertiary);color:var(--colorText)}.blocks-app .plan-checkout-choice-modal__close .anticon{font-size:16px}.blocks-app .plan-checkout-choice-modal__body{box-sizing:border-box;flex-direction:column;align-items:center;gap:16px;width:100%;padding:0 40px 24px;display:flex}.blocks-app .plan-checkout-choice-modal__title{text-align:center;width:100%;max-width:320px;color:var(--colorText);margin:0;font-size:18px;font-weight:600;line-height:100%}.blocks-app .plan-checkout-choice-modal__subtitle{text-align:center;width:100%;max-width:320px;color:var(--colorTextSecondary);margin:0;font-size:14px;font-weight:100;line-height:120%}.blocks-app .plan-checkout-choice-modal__plan-card{box-sizing:border-box;background:var(--colorFillQuaternary);border-radius:8px;flex-direction:column;align-items:stretch;gap:16px;width:100%;padding:16px 24px;display:flex}.blocks-app .plan-checkout-choice-modal__plan-name{color:#8946fb;margin:0;font-size:18px;font-weight:400;line-height:100%}.blocks-app .plan-checkout-choice-modal__feature-list{flex-direction:column;gap:8px;width:100%;margin:0;padding:0;list-style:none;display:flex}.blocks-app .plan-checkout-choice-modal__feature-item{flex-direction:row;align-items:center;gap:8px;margin:0;padding:0;display:flex}.blocks-app .plan-checkout-choice-modal__feature-check{background:var(--colorBgContainer);border-radius:16px;flex-shrink:0;justify-content:center;align-items:center;padding:4px;display:flex}.blocks-app .plan-checkout-choice-modal__feature-check-icon{color:#52c41a;font-size:8px}.blocks-app .plan-checkout-choice-modal__feature-text{min-width:0;color:var(--colorText);flex:auto;font-size:14px;font-weight:100;line-height:normal}.blocks-app .plan-checkout-choice-modal__divider{border:none;border-top:1px solid var(--colorBorderSecondary);width:100%;height:0;margin:0}.blocks-app .plan-checkout-choice-modal__footer{box-sizing:border-box;flex-direction:column;align-items:stretch;gap:16px;width:100%;padding:16px 40px 32px;display:flex}.blocks-app .plan-checkout-choice-modal__payment-label{text-align:center;width:100%;max-width:320px;color:var(--colorText);align-self:center;margin:0;font-size:18px;font-weight:400;line-height:1.2}.blocks-app .plan-checkout-choice-modal__payment-buttons{flex-flow:wrap;align-items:center;gap:10px;width:100%;display:flex}.blocks-app .plan-checkout-choice-modal__pay-btn-wrap{flex:1;justify-content:center;min-width:0;display:flex}.blocks-app .plan-checkout-choice-modal__pay-btn-wrap--card{flex:.88}.blocks-app .plan-checkout-choice-modal__pay-btn-wrap--invoice{flex:1.12}.blocks-app .plan-checkout-choice-modal__pay-btn{width:100%;min-width:0;height:auto;min-height:32px;box-shadow:none;white-space:nowrap;text-align:center;border-radius:6px;flex:1;justify-content:center;align-items:center;gap:4px;padding:8px 10px;font-size:14px;font-weight:400;line-height:1.25;display:inline-flex}.blocks-app .plan-checkout-choice-modal__pay-btn .anticon{flex-shrink:0;font-size:16px}.blocks-app .plan-checkout-choice-modal__pay-btn--primary.ant-btn-primary{color:#fff;background:#2884ff;border-color:#2884ff}.blocks-app .plan-checkout-choice-modal__pay-btn--primary.ant-btn-primary:hover:not(:disabled){background:#1a75f0;border-color:#1a75f0}.blocks-app .plan-checkout-choice-modal__pay-btn--primary.ant-btn-primary:disabled{opacity:.5}.blocks-app .plan-checkout-choice-modal__pay-btn--outline.ant-btn-default{border-color:var(--colorBorder);color:var(--colorText);background:var(--colorBgContainer);white-space:nowrap;padding:8px;font-size:13px}.blocks-app .plan-checkout-choice-modal__pay-btn--outline.ant-btn-default .ant-btn-icon+span{white-space:nowrap}.blocks-app .plan-checkout-choice-modal__pay-btn--outline.ant-btn-default:hover:not(:disabled){color:#2884ff;border-color:#2884ff}.blocks-app .tariff-invoice-request-modal.ant-modal{max-width:calc(100vw - 24px)}.blocks-app .tariff-invoice-request-modal .ant-modal-content{max-width:100%;overflow:hidden}.blocks-app .tariff-invoice-request-modal .ant-modal-body{box-sizing:border-box;max-height:min(78vh,720px);padding:12px 24px 16px 0;overflow:hidden auto}.blocks-app .tariff-invoice-request-modal .ant-modal-footer{flex-wrap:wrap}.blocks-app .tariff-invoice-request-modal .ant-form{max-width:100%}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();__emailmaker__.define(`static/core/6c508e07.js`,`require,exports,module,static/core/68277bd8.js,static/core/f246e3aa.js,static/core/38431fd5.js,static/core/de9b2072.js,static/core/bc353e4f.js,static/core/c12270fa2.js,static/core/29b5cf4c.js,static/core/3c618aaa.js,static/core/5949a3cd2.js,static/core/a207410a.js,static/core/ea9209aa.js,static/core/d19f3661.js,static/core/73e3b6fe.js,static/core/147560ac.js,static/core/3da55a10.js,react,prop-types,react-dom,react-router-dom,react/jsx-runtime,antd,react-dom/client,classnames,@ant-design/icons,dayjs`.split(`,`),function(e,t,n){let r=e(`./68277bd8.js`),i=e(`./29b5cf4c.js`),a=e(`./ea9209aa.js`),o=e(`./a207410a.js`),s=e(`./f246e3aa.js`),c=e(`./de9b2072.js`),l=e(`./bc353e4f.js`),u=e(`./3da55a10.js`),d=e(`./c12270fa2.js`),f=e(`./5949a3cd2.js`),p=e(`./3c618aaa.js`),m=e(`./73e3b6fe.js`),h=e(`./147560ac.js`),g=e(`./d19f3661.js`),_=e(`./38431fd5.js`),v=e(`react`),y=r.l(v,1);v=r.l(v);let b=e(`prop-types`);b=r.l(b);let x=e(`react-dom`);x=r.l(x);let S=e(`react-router-dom`),C=e(`react/jsx-runtime`),w=e(`antd`),T=e(`react-dom/client`),E=e(`classnames`);E=r.l(E);let D=e(`@ant-design/icons`),O=e(`dayjs`);O=r.l(O);let k=e(`@ant-design/cssinjs`);var A=Function(`url`,`return import(url)`);function j(e){if(typeof e!=`function`)return!1;try{return Reflect.construct(String,[],e),!0}catch{return!1}}function M(e){return typeof e==`object`&&!!e&&`type`in e&&`url`in e}function N(e){return e}var P=class{_map=new Map;_optionsMap=new Map;_readyMap=new Map;_resolveMap=new Map;_initializingPlugins=new Map;_creatingPlugins=new Set;_initializedPlugins=new Set;_creationOrder=[];_lifecycleListeners=new Set;_activated=!1;constructor(e,t){this._context=e,this._pluginRegistry=t}activate(){return this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}activateSync(){this._activated=!0,this._startPluginsBatch(Array.from(this._map.values()))}onLifecycle(e){return this._lifecycleListeners.add(e),{dispose:()=>this._lifecycleListeners.delete(e)}}_emitLifecycle(e){for(let t of Array.from(this._lifecycleListeners))try{t(e)}catch{}}async _resolveEntry(e){if(typeof e==`string`||typeof e==`symbol`){let t=await this._pluginRegistry.getAsync(e);if(!t)throw Error(`Plugin "${String(e)}" not registered.`);return{ctor:t}}if(typeof e==`function`)return e.length===0?{ctor:await e()}:{ctor:e};if(Array.isArray(e)){let[t,n]=e;if(typeof t==`function`)return{ctor:t,options:n};let r=await this._pluginRegistry.getAsync(t);if(!r)throw Error(`Plugin "${String(t)}" not registered.`);return{ctor:r,options:n}}if(M(e))return this._resolveDescriptor(e);throw Error(`Unknown plugin entry format: ${JSON.stringify(e)}`)}async _resolveDescriptor(e){let t=e.resolve??(e.type===`umd`?`window`:`module`);if(e.type===`esm`){let n=await A(e.url);if(t===`module`)return{ctor:n.default??n};if(t===`registry`&&e.name){let t=await this._pluginRegistry.getAsync(e.name);if(!t)throw Error(`Plugin "${e.name}" not found in registry after ESM load`);return{ctor:t}}}if(e.type===`umd`){if(await this._loadScript(e.url),t===`window`&&e.name){let t=globalThis[e.name];if(!t)throw Error(`Plugin "${e.name}" not found on window after script load`);return{ctor:t}}if(t===`registry`&&e.name){let t=await this._pluginRegistry.getAsync(e.name);if(!t)throw Error(`Plugin "${e.name}" not found in registry after script load`);return{ctor:t}}}throw Error(`Cannot resolve descriptor: type=${e.type}, resolve=${t}, name=${e.name??`none`}`)}_loadScript(e){return new Promise((t,n)=>{if(typeof document>`u`){n(Error(`Cannot load UMD script in non-browser environment`));return}let r=document.createElement(`script`);r.src=e,r.onload=()=>t(),r.onerror=()=>n(Error(`Failed to load script: ${e}`)),document.head.appendChild(r)})}initSync(e){let t=[];for(let n of e){let e=this._getOrCreate(n,void 0);t.push(e)}this._activated=!0,this._startPluginsBatch(t)}async init(e){let t=[],n=new Set;for(let r of e){let{ctor:e,options:i}=await this._resolveEntry(r),a=this._getOrCreate(e,i);n.has(a)||(n.add(a),t.push(a))}this._activated=!0,await this._startPluginsBatch(t)}async setPlugins(e){let t=new Set,n=[];for(let r of e){let e=await this._resolveEntry(r);t.add(e.ctor),n.push(e)}let r=[];this._map.forEach((e,n)=>{t.has(n)||r.push({key:n,plugin:e})});for(let e=r.length-1;e>=0;e--){let{key:t,plugin:n}=r[e];await this._initializingPlugins.get(n),await this._disposePlugin(n,n.constructor.name),this._map.delete(t),this._optionsMap.delete(t),this._readyMap.delete(n),this._resolveMap.delete(n),this._initializingPlugins.delete(n),this._initializedPlugins.delete(n);let i=this._creationOrder.indexOf(n);i>=0&&this._creationOrder.splice(i,1)}let i=[],a=new Set;for(let{ctor:e,options:t}of n){let n=this._getOrCreate(e,t);a.has(n)||(a.add(n),i.push(n))}this._activated=!0,await this._startPluginsBatch(i)}isReady(e){return this._initializedPlugins.has(e)}ready(e){return this._initializingPlugins.get(e)??this._readyMap.get(e)??Promise.resolve()}async waitFor(e,t){if(this._pluginRegistry.has(e))return this.useByKeyAsync(e);let{timeout:n}=t??{};return await new Promise((t,r)=>{let i,a=!1,o=()=>{a||(a=!0,i&&clearTimeout(i),this._pluginRegistry.off(e,o),t())};this._pluginRegistry.on(e,o),n!==void 0&&n>0&&(i=setTimeout(()=>{a||(a=!0,this._pluginRegistry.off(e,o),r(Error(`waitFor("${String(e)}") timed out after ${n}ms`)))},n))}),this.useByKeyAsync(e)}useByKey(e){let t=this._pluginRegistry.get(e);if(!t)throw Error(`Plugin "${String(e)}" not registered or not loaded yet. Use useByKeyAsync() for async plugins.`);let n=this._getOrCreate(t);return this._activated&&this._startPluginsBatch([n]),n}async useByKeyAsync(e){let t=await this._pluginRegistry.getAsync(e);if(!t)throw Error(`Plugin "${String(e)}" not registered.`);let n=this._getOrCreate(t);return this._activated&&await this._startPluginsBatch([n]),n}useByCtor(e,t){let n=this._getOrCreate(e,t);return this._activated&&this._startPluginsBatch([n]),n}use(e){return typeof e==`function`?this.useByCtor(e):this.useByKey(e)}async useAsync(e){let{ctor:t,options:n}=await this._resolveEntry(e),r=this._getOrCreate(t,n);return this._activated&&await this._startPluginsBatch([r]),r}_getOrCreate(e,t){let n=e;if(!this._map.has(n)){t!==void 0&&this._optionsMap.set(n,t);let r=this._optionsMap.get(n),i=this._createPluginInstance(e,r),a=i.constructor.name;this._emitLifecycle({type:`created`,plugin:i,name:a}),N(i).required?.(),this._map.set(n,i),this._creationOrder.push(i),this._setupReadyPromise(i)}return this._map.get(n)}_createPluginInstance(e,t){let n=e;if(this._creatingPlugins.has(n))throw Error(`Cyclic dependency for plugin ${e.name}`);this._creatingPlugins.add(n);try{return j(e)?new e(this._context,t):e(this._context,t)||{}}finally{this._creatingPlugins.delete(n)}}_setupReadyPromise(e){let t=new Promise(t=>{this._resolveMap.set(e,t)});this._readyMap.set(e,t)}async _startPluginsBatch(e){let t=Array.from(new Set(e)),n=new Set,r=[];for(let e of t){if(this._initializedPlugins.has(e))continue;let t=this._initializingPlugins.get(e);if(t){n.add(t);continue}r.push(e)}if(r.length>0){let e=this._runBatchLifecycle(r);for(let t of r)this._initializingPlugins.set(t,e);n.add(e),e.finally(()=>{for(let t of r)this._initializingPlugins.get(t)===e&&this._initializingPlugins.delete(t)})}await Promise.all(n)}async _runBatchLifecycle(e){let t=[];for(let n of e){let e=n.constructor.name;this._emitLifecycle({type:`init:start`,plugin:n,name:e});try{await N(n).init?.(),this._emitLifecycle({type:`init:success`,plugin:n,name:e}),t.push(n)}catch(t){this._emitLifecycle({type:`init:error`,plugin:n,name:e,error:t})}}for(let e of t){let t=e.constructor.name;this._emitLifecycle({type:`afterInit:start`,plugin:e,name:t});try{await N(e).afterInit?.(),this._emitLifecycle({type:`afterInit:success`,plugin:e,name:t})}catch(n){this._emitLifecycle({type:`afterInit:error`,plugin:e,name:t,error:n})}}for(let t of e)this._initializedPlugins.add(t),this._resolveMap.get(t)?.(),this._resolveMap.delete(t)}async _disposePlugin(e,t){this._emitLifecycle({type:`dispose:start`,plugin:e,name:t});try{await N(e).dispose?.(),this._emitLifecycle({type:`dispose:success`,plugin:e,name:t})}catch(n){this._emitLifecycle({type:`dispose:error`,plugin:e,name:t,error:n})}}async dispose(){for(let e=this._creationOrder.length-1;e>=0;e--){let t=this._creationOrder[e];await this._initializingPlugins.get(t),await this._disposePlugin(t,t.constructor.name)}this._map.clear(),this._optionsMap.clear(),this._readyMap.clear(),this._resolveMap.clear(),this._initializingPlugins.clear(),this._initializedPlugins.clear(),this._creationOrder.length=0,this._lifecycleListeners.clear()}getStatus(){return Array.from(this._map.values()).map(e=>({name:e.constructor.name,initialized:this._initializedPlugins.has(e)}))}};function F(e){i.it(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||c.i(e)===`object`&&t===`[object Date]`?new Date(e.getTime()):typeof e==`number`||t===`[object Number]`?new Date(e):new Date(NaN)}var I=({size:e=24,color:t=`currentColor`,...n})=>y.createElement(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,stroke:t,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...n},y.createElement(`path`,{d:`M22 11.086v.92a10 10 0 1 1-5.93-9.14M22 4 12 14.01l-3-3`}));I.displayName=`CheckCircleBroken`;var L=({size:e=24,color:t=`currentColor`,...n})=>y.createElement(`svg`,{viewBox:`0 0 24 24`,width:e,height:e,stroke:t,strokeWidth:`2`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,...n},y.createElement(`path`,{d:`m6 6 2-2m0 0L6 2m2 2H6a4 4 0 0 0-4 4m16 10-2 2m0 0 2 2m-2-2h2a4 4 0 0 0 4-4M10.189 6.5a6 6 0 1 1 7.311 7.311M14 16a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z`}));L.displayName=`CoinsSwap02`;var R=document.querySelectorAll(`link[rel=stylesheet][media*=prefers-color-scheme][media*=dark]`),z=document.querySelectorAll(`link[rel=stylesheet][media*=prefers-color-scheme][media*=light]`),B=e=>{if(typeof e!=`string`)return!1;let t=e.trim();return t.length>0&&!/\s/.test(t)},V=e=>{let t,n;e===`system`?(t=i.oi,n=i.ai):(t=e===`light`?`all`:i.ei,n=e===`dark`?`all`:i.ei),[...z].forEach(e=>{e.media=t}),[...R].forEach(e=>{e.media=n})},H=(e={})=>{let t=document.querySelector(`head`),n=document.createElement(`style`);if(n.type=`text/css`,n.dataset.themeVaribalse=!0,n.setAttribute(`data-emailmaker`,`true`),Object.entries(e).length){let r=``;Object.entries(e).forEach(([e,t])=>{typeof t!=`object`&&(r+=`\t--${e}: ${t};\n`)}),r=`.blocks-body, .blocks-app, .ant-modal-root, .ant-tooltip, .ant-notification {\n${r}}`,n.appendChild(document.createTextNode(r));let i=t.querySelector(`[data-theme-varibalse="true"]`);i?t.replaceChild(n,i):t.insertBefore(n,t.firstChild)}},ee=e=>{if(!B(e))return;let t=e.trim(),n=document.body;n.classList.contains(t)||setTimeout(()=>{n.classList.remove(t===`dark`?i.qr:i.Ar),n.classList.add(t)},200)},U=()=>{let e=i.et();return(0,v.useCallback)(()=>{let t=window.localStorage.getItem(i.Yr.em_color_scheme),n=matchMedia(`(prefers-color-scheme: dark)`).matches?i.Ar:i.qr,r=t||n;e({operation:i.Wr.UPDATE_PREVIEW,theme:r})},[e])},W={defaultMerge:Symbol(`deepmerge-ts: default merge`),skip:Symbol(`deepmerge-ts: skip`)};W.defaultMerge;function G(e,t){return t}function K(e){return typeof e!=`object`||!e?0:Array.isArray(e)?2:X(e)?1:e instanceof Set?3:e instanceof Map?4:5}function q(e){let t=new Set;for(let n of e)for(let e of[...Object.keys(n),...Object.getOwnPropertySymbols(n)])t.add(e);return t}function J(e,t){return typeof e==`object`&&Object.prototype.propertyIsEnumerable.call(e,t)}function Y(e){return{*[Symbol.iterator](){for(let t of e)for(let e of t)yield e}}}var te=new Set([`[object Object]`,`[object Module]`]);function X(e){if(!te.has(Object.prototype.toString.call(e)))return!1;let{constructor:t}=e;if(t===void 0)return!0;let n=t.prototype;return!(typeof n!=`object`||!n||!te.has(Object.prototype.toString.call(n))||!n.hasOwnProperty(`isPrototypeOf`))}function ne(e,t,n){let r={};for(let i of q(e)){let a=[];for(let t of e)J(t,i)&&a.push(t[i]);if(a.length===0)continue;let o=ue(a,t,t.metaDataUpdater(n,{key:i,parents:e}));o!==W.skip&&(i===`__proto__`?Object.defineProperty(r,i,{value:o,configurable:!0,enumerable:!0,writable:!0}):r[i]=o)}return r}function re(e){return e.flat()}function ie(e){return new Set(Y(e))}function ae(e){return new Map(Y(e))}function oe(e){return e.at(-1)}var Z=Object.freeze({__proto__:null,mergeArrays:re,mergeMaps:ae,mergeOthers:oe,mergeRecords:ne,mergeSets:ie});function se(...e){return ce({})(...e)}function ce(e,t){let n=le(e,r);function r(...e){return ue(e,n,t)}return r}function le(e,t){return{defaultMergeFunctions:Z,mergeFunctions:{...Z,...Object.fromEntries(Object.entries(e).filter(([e,t])=>Object.hasOwn(Z,e)).map(([e,t])=>t===!1?[e,oe]:[e,t]))},metaDataUpdater:e.metaDataUpdater??G,deepmerge:t,useImplicitDefaultMerging:e.enableImplicitDefaultMerging??!1,actions:W}}function ue(e,t,n){if(e.length===0)return;if(e.length===1)return he(e,t,n);let r=K(e[0]);if(r!==0&&r!==5){for(let i=1;i<e.length;i++)if(K(e[i])!==r)return he(e,t,n)}switch(r){case 1:return de(e,t,n);case 2:return fe(e,t,n);case 3:return pe(e,t,n);case 4:return me(e,t,n);default:return he(e,t,n)}}function de(e,t,n){let r=t.mergeFunctions.mergeRecords(e,t,n);return r===W.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeRecords!==t.defaultMergeFunctions.mergeRecords?t.defaultMergeFunctions.mergeRecords(e,t,n):r}function fe(e,t,n){let r=t.mergeFunctions.mergeArrays(e,t,n);return r===W.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeArrays!==t.defaultMergeFunctions.mergeArrays?t.defaultMergeFunctions.mergeArrays(e):r}function pe(e,t,n){let r=t.mergeFunctions.mergeSets(e,t,n);return r===W.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeSets!==t.defaultMergeFunctions.mergeSets?t.defaultMergeFunctions.mergeSets(e):r}function me(e,t,n){let r=t.mergeFunctions.mergeMaps(e,t,n);return r===W.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeMaps!==t.defaultMergeFunctions.mergeMaps?t.defaultMergeFunctions.mergeMaps(e):r}function he(e,t,n){let r=t.mergeFunctions.mergeOthers(e,t,n);return r===W.defaultMerge||t.useImplicitDefaultMerging&&r===void 0&&t.mergeFunctions.mergeOthers!==t.defaultMergeFunctions.mergeOthers?t.defaultMergeFunctions.mergeOthers(e):r}var ge=({children:e})=>{let[t,n]=(0,v.useState)([]),r=p.m(i.ua),a=p.m(i.la),o=p.m(i.da),s=i.X(),c=(0,v.useCallback)(e=>{n(t=>e===void 0?[]:t.filter(t=>t.id!==e))},[n]),l=(0,v.useCallback)(e=>{n(t=>{let n=t.find(t=>t.id===e.id);return n?t.map(e=>e===n?{...e,...n}:e):[...t,{...e,visible:!0}]})},[n]),u=(0,v.useCallback)(e=>{n(t=>{let n=t.find(t=>t.id===e.id);return n?t.map(e=>e===n?{...e,...n}:e):t})},[n]),d=(0,v.useCallback)(()=>s,[s]);return(0,v.useEffect)(()=>{let e=new i.Da;return e.addDisposable(r(l)),e.addDisposable(o(u)),e.addDisposable(a(c)),()=>e.dispose()},[r,a,o,l,c,u]),(0,C.jsxs)(C.Fragment,{children:[t.map(({id:e,content:t,props:n,visible:r,onOk:i,onClose:a,modalProps:o,...s})=>(0,C.jsx)(w.Modal,{open:r,onCancel:()=>c(e),onOk:async()=>{i&&await i(),c(e)},afterClose:a,getContainer:d,...o,...s,children:typeof t==`function`?v.default.createElement(t,n):t},e)),e]})},_e=p.zt(),ve={colorDarken1:`rgba(0, 0, 0, 0.08)`,colorFillSecondaryDarken:`rgba(0, 0, 0, 0.1)`,formControlHeight:34,borderWidth:1,borderColorHover:`#C5C5C5`,formItemMarginBottomMD:20,formItemMarginBottomXS:8,colorSecondaryH:265.03,colorSecondaryS:`63.92%`,colorSecondaryL:`50%`,colorSecondaryBgH:273,colorSecondaryBgS:`100%`,colorSecondaryBgL:`93%`,appZoom:1},ye={colorDarken1:`rgba(0, 0, 0, 0.9)`,colorFillSecondaryDarken:`rgba(255, 255, 255, 0.16)`,formControlHeight:34,borderWidth:1,borderColorHover:`rgba(255, 255, 255, 0.3)`,formItemMarginBottomMD:20,formItemMarginBottomXS:8,appZoom:1},be=se(p.Ut,{token:ve}),xe=se(p.Ht,{token:ye});function Se({children:e}){let t=i.cr(u.S),n=i.cr(i.n),r=window.localStorage.getItem(i.Yr.em_color_scheme),a=matchMedia(`(prefers-color-scheme: dark)`).matches?i.Ar:i.qr,[o,s]=(0,v.useState)(r||a),c=i.Wt(),l=i.lr(),d=U();(0,v.useEffect)(()=>{let e=i.ii.isPlugin?n?.theme:r||a;s(e),ee(e),l(u.I(e===`dark`?`vs-${e}`:i.qr)),d()},[r,t,a,n?.theme,c.pathEnabled,l,d]);let f=(0,v.useCallback)(e=>{e&&e!==`system`?(V(e),localStorage.setItem(i.Yr.em_color_scheme,e)):localStorage.removeItem(i.Yr.em_color_scheme)},[]);(0,v.useEffect)(()=>{let e=n?.theme,t=localStorage.getItem(i.Yr.em_color_scheme);e&&e!==t&&f(e)},[n,f]);let h=(0,v.useCallback)(()=>{f(localStorage.getItem(i.Yr.em_color_scheme))},[f]);(0,v.useEffect)(()=>{h()},[h]);let g=i.cr(i.Ft),[_,y]=(0,v.useState)(o===`light`?be:xe),[b]=(0,v.useState)(1);(0,v.useEffect)(()=>{let e=o===`light`?be:xe,t=g[o],n=t?se(e,t):e;y({...n,token:{...n.token,appZoom:b}})},[y,o,g,b]);let x=i.X();return(0,C.jsx)(p.Bt,{theme:_,getPopupContainer:(0,v.useCallback)(()=>x,[x]),children:(0,C.jsx)(k.StyleProvider,{transformers:[_e],children:(0,C.jsx)(ge,{children:(0,C.jsx)(p.Wt,{children:(0,C.jsx)(m.n,{children:e})})})})})}var Ce=({onLoad:e,children:t})=>{(0,v.useEffect)(()=>{e&&e()},[e]);let n=i.lr();return(0,v.useMemo)(()=>n(i.Gt.endpoints.getMe.initiate({})),[n]),t},we=r.a((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),Te=r.a((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),Ee=r.a((e=>{var t=we(),n=Te(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),s.TYPED_ARRAY_SUPPORT;function a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,`parent`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,`offset`,{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){let t=e.length<0?0:_(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(Z(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){let t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||se(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(Z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(Z(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return ne(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return ae(e).length;default:if(i)return r?-1:ne(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return F(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return I(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(Z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,se(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0)if(i)n=0;else return-1;if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o;for(o=0;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(se(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return oe(ne(t,e.length-n),e,n,r)}function E(e,t,n,r){return oe(re(t),e,n,r)}function D(e,t,n,r){return oe(ae(t),e,n,r)}function O(e,t,n,r){return oe(ie(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return M(r)}var j=4096;function M(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=ce[e[r]];return i}function I(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function L(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=le(function(e){e>>>=0,J(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Y(e,this.length-8);let r=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=le(function(e){e>>>=0,J(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Y(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=le(function(e){e>>>=0,J(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Y(e,this.length-8);let r=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=le(function(e){e>>>=0,J(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&Y(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!1,52,8)};function R(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;R(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;R(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function z(e,t,n,r,i){q(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function B(e,t,n,r,i){q(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=le(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=le(function(e,t=0){return B(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);R(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);R(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=le(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=le(function(e,t=0){return B(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function V(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function H(e,t,r,i,a){return t=+t,r>>>=0,a||V(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)};function ee(e,t,r,i,a){return t=+t,r>>>=0,a||V(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return ee(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return ee(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};var U={};function W(e,t,n){U[e]=class extends n{constructor(){super(),Object.defineProperty(this,`message`,{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,`code`,{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}W(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),W(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),W(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=G(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=G(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function G(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function K(e,t,n){J(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&Y(t,e.length-(n+1))}function q(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new U.ERR_OUT_OF_RANGE(`value`,i,e)}K(r,i,a)}function J(e,t){if(typeof e!=`number`)throw new U.ERR_INVALID_ARG_TYPE(t,`number`,e)}function Y(e,t,n){throw Math.floor(e)===e?t<0?new U.ERR_BUFFER_OUT_OF_BOUNDS:new U.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(J(e,n),new U.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}var te=/[^+/0-9A-Za-z-_]/g;function X(e){if(e=e.split(`=`)[0],e=e.trim().replace(te,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function ne(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}else if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function re(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function ie(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function ae(e){return t.toByteArray(X(e))}function oe(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Z(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function se(e){return e!==e}var ce=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function le(e){return typeof BigInt>`u`?ue:e}function ue(){throw Error(`BigInt not supported`)}})),De=r.a(((e,t)=>{s.n();var n=Ee(),r=n.Buffer,i={},a;for(a in n)n.hasOwnProperty(a)&&(a===`SlowBuffer`||a===`Buffer`||(i[a]=n[a]));var o=i.Buffer={};for(a in r)r.hasOwnProperty(a)&&(a===`allocUnsafe`||a===`allocUnsafeSlow`||(o[a]=r[a]));if(i.Buffer.prototype=r.prototype,(!o.from||o.from===Uint8Array.from)&&(o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type `+typeof e);if(e&&e.length===void 0)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);return r(e,t,n)}),o.alloc||=function(e,t,n){if(typeof e!=`number`)throw TypeError(`The "size" argument must be of type number. Received type `+typeof e);if(e<0||e>=2*(1<<30))throw RangeError(`The value "`+e+`" is invalid for option "size"`);var i=r(e);return!t||t.length===0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},!i.kStringMaxLength)try{i.kStringMaxLength=s.t.binding(`buffer`).kStringMaxLength}catch{}i.constants||(i.constants={MAX_LENGTH:i.kMaxLength},i.kStringMaxLength&&(i.constants.MAX_STRING_LENGTH=i.kStringMaxLength)),t.exports=i})),Oe=r.a((e=>{var t=``;e.PrependBOM=n;function n(e,t){this.encoder=e,this.addBOM=!0}n.prototype.write=function(e){return this.addBOM&&=(e=t+e,!1),this.encoder.write(e)},n.prototype.end=function(){return this.encoder.end()},e.StripBOM=r;function r(e,t){this.decoder=e,this.pass=!1,this.options=t||{}}r.prototype.write=function(e){var n=this.decoder.write(e);return this.pass||!n?n:(n[0]===t&&(n=n.slice(1),typeof this.options.stripBOM==`function`&&this.options.stripBOM()),this.pass=!0,n)},r.prototype.end=function(){return this.decoder.end()}})),ke=r.a(((e,t)=>{var n=Ee(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),Ae=r.a((e=>{var t=ke().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),je=r.a(((e,t)=>{var n=De().Buffer;t.exports={utf8:{type:`_internal`,bomAware:!0},cesu8:{type:`_internal`,bomAware:!0},unicode11utf8:`utf8`,ucs2:{type:`_internal`,bomAware:!0},utf16le:`ucs2`,binary:{type:`_internal`},base64:{type:`_internal`},hex:{type:`_internal`},_internal:r};function r(e,t){this.enc=e.encodingName,this.bomAware=e.bomAware,this.enc===`base64`?this.encoder=s:this.enc===`cesu8`&&(this.enc=`utf8`,this.encoder=c,n.from(`eda0bdedb2a9`,`hex`).toString()!==`💩`&&(this.decoder=l,this.defaultCharUnicode=t.defaultCharUnicode))}r.prototype.encoder=o,r.prototype.decoder=a;var i=Ae().StringDecoder;i.prototype.end||(i.prototype.end=function(){});function a(e,t){this.decoder=new i(t.enc)}a.prototype.write=function(e){return n.isBuffer(e)||(e=n.from(e)),this.decoder.write(e)},a.prototype.end=function(){return this.decoder.end()};function o(e,t){this.enc=t.enc}o.prototype.write=function(e){return n.from(e,this.enc)},o.prototype.end=function(){};function s(e,t){this.prevStr=``}s.prototype.write=function(e){e=this.prevStr+e;var t=e.length-e.length%4;return this.prevStr=e.slice(t),e=e.slice(0,t),n.from(e,`base64`)},s.prototype.end=function(){return n.from(this.prevStr,`base64`)};function c(e,t){}c.prototype.write=function(e){for(var t=n.alloc(e.length*3),r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?t[r++]=a:a<2048?(t[r++]=192+(a>>>6),t[r++]=128+(a&63)):(t[r++]=224+(a>>>12),t[r++]=128+(a>>>6&63),t[r++]=128+(a&63))}return t.slice(0,r)},c.prototype.end=function(){};function l(e,t){this.acc=0,this.contBytes=0,this.accBytes=0,this.defaultCharUnicode=t.defaultCharUnicode}l.prototype.write=function(e){for(var t=this.acc,n=this.contBytes,r=this.accBytes,i=``,a=0;a<e.length;a++){var o=e[a];(o&192)==128?n>0?(t=t<<6|o&63,n--,r++,n===0&&(r===2&&t<128&&t>0||r===3&&t<2048?i+=this.defaultCharUnicode:i+=String.fromCharCode(t))):i+=this.defaultCharUnicode:(n>0&&(i+=this.defaultCharUnicode,n=0),o<128?i+=String.fromCharCode(o):o<224?(t=o&31,n=1,r=1):o<240?(t=o&15,n=2,r=1):i+=this.defaultCharUnicode)}return this.acc=t,this.contBytes=n,this.accBytes=r,i},l.prototype.end=function(){var e=0;return this.contBytes>0&&(e+=this.defaultCharUnicode),e}})),Me=r.a((e=>{var t=De().Buffer;e._utf32=n;function n(e,t){this.iconv=t,this.bomAware=!0,this.isLE=e.isLE}e.utf32le={type:`_utf32`,isLE:!0},e.utf32be={type:`_utf32`,isLE:!1},e.ucs4le=`utf32le`,e.ucs4be=`utf32be`,n.prototype.encoder=r,n.prototype.decoder=i;function r(e,t){this.isLE=t.isLE,this.highSurrogate=0}r.prototype.write=function(e){for(var n=t.from(e,`ucs2`),r=t.alloc(n.length*2),i=this.isLE?r.writeUInt32LE:r.writeUInt32BE,a=0,o=0;o<n.length;o+=2){var s=n.readUInt16LE(o),c=55296<=s&&s<56320,l=56320<=s&&s<57344;if(this.highSurrogate)if(c||!l)i.call(r,this.highSurrogate,a),a+=4;else{var u=(this.highSurrogate-55296<<10|s-56320)+65536;i.call(r,u,a),a+=4,this.highSurrogate=0;continue}c?this.highSurrogate=s:(i.call(r,s,a),a+=4,this.highSurrogate=0)}return a<r.length&&(r=r.slice(0,a)),r},r.prototype.end=function(){if(this.highSurrogate){var e=t.alloc(4);return this.isLE?e.writeUInt32LE(this.highSurrogate,0):e.writeUInt32BE(this.highSurrogate,0),this.highSurrogate=0,e}};function i(e,t){this.isLE=t.isLE,this.badChar=t.iconv.defaultCharUnicode.charCodeAt(0),this.overflow=[]}i.prototype.write=function(e){if(e.length===0)return``;var n=0,r=0,i=t.alloc(e.length+4),o=0,s=this.isLE,c=this.overflow,l=this.badChar;if(c.length>0){for(;n<e.length&&c.length<4;n++)c.push(e[n]);c.length===4&&(r=s?c[n]|c[n+1]<<8|c[n+2]<<16|c[n+3]<<24:c[n+3]|c[n+2]<<8|c[n+1]<<16|c[n]<<24,c.length=0,o=a(i,o,r,l))}for(;n<e.length-3;n+=4)r=s?e[n]|e[n+1]<<8|e[n+2]<<16|e[n+3]<<24:e[n+3]|e[n+2]<<8|e[n+1]<<16|e[n]<<24,o=a(i,o,r,l);for(;n<e.length;n++)c.push(e[n]);return i.slice(0,o).toString(`ucs2`)};function a(e,t,n,r){if((n<0||n>1114111)&&(n=r),n>=65536){n-=65536;var i=55296|n>>10;e[t++]=i&255,e[t++]=i>>8;var n=56320|n&1023}return e[t++]=n&255,e[t++]=n>>8,t}i.prototype.end=function(){this.overflow.length=0},e.utf32=o,e.ucs4=`utf32`;function o(e,t){this.iconv=t}o.prototype.encoder=s,o.prototype.decoder=c;function s(e,t){e||={},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(e.defaultEncoding||`utf-32le`,e)}s.prototype.write=function(e){return this.encoder.write(e)},s.prototype.end=function(){return this.encoder.end()};function c(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}c.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<32)return``;var t=l(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var n=``,r=0;r<this.initialBufs.length;r++)n+=this.decoder.write(this.initialBufs[r]);return this.initialBufs.length=this.initialBufsLen=0,n}return this.decoder.write(e)},c.prototype.end=function(){if(!this.decoder){var e=l(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t=``,n=0;n<this.initialBufs.length;n++)t+=this.decoder.write(this.initialBufs[n]);var r=this.decoder.end();return r&&(t+=r),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function l(e,t){var n=[],r=0,i=0,a=0,o=0,s=0;outer_loop:for(var c=0;c<e.length;c++)for(var l=e[c],u=0;u<l.length;u++)if(n.push(l[u]),n.length===4){if(r===0){if(n[0]===255&&n[1]===254&&n[2]===0&&n[3]===0)return`utf-32le`;if(n[0]===0&&n[1]===0&&n[2]===254&&n[3]===255)return`utf-32be`}if((n[0]!==0||n[1]>16)&&a++,(n[3]!==0||n[2]>16)&&i++,n[0]===0&&n[1]===0&&(n[2]!==0||n[3]!==0)&&s++,(n[0]!==0||n[1]!==0)&&n[2]===0&&n[3]===0&&o++,n.length=0,r++,r>=100)break outer_loop}return s-a>o-i?`utf-32be`:s-a<o-i?`utf-32le`:t||`utf-32le`}})),Ne=r.a((e=>{var t=De().Buffer;e.utf16be=n;function n(){}n.prototype.encoder=r,n.prototype.decoder=i,n.prototype.bomAware=!0;function r(){}r.prototype.write=function(e){for(var n=t.from(e,`ucs2`),r=0;r<n.length;r+=2){var i=n[r];n[r]=n[r+1],n[r+1]=i}return n},r.prototype.end=function(){};function i(){this.overflowByte=-1}i.prototype.write=function(e){if(e.length==0)return``;var n=t.alloc(e.length+1),r=0,i=0;for(this.overflowByte!==-1&&(n[0]=e[0],n[1]=this.overflowByte,r=1,i=2);r<e.length-1;r+=2,i+=2)n[i]=e[r+1],n[i+1]=e[r];return this.overflowByte=r==e.length-1?e[e.length-1]:-1,n.slice(0,i).toString(`ucs2`)},i.prototype.end=function(){this.overflowByte=-1},e.utf16=a;function a(e,t){this.iconv=t}a.prototype.encoder=o,a.prototype.decoder=s;function o(e,t){e||={},e.addBOM===void 0&&(e.addBOM=!0),this.encoder=t.iconv.getEncoder(`utf-16le`,e)}o.prototype.write=function(e){return this.encoder.write(e)},o.prototype.end=function(){return this.encoder.end()};function s(e,t){this.decoder=null,this.initialBufs=[],this.initialBufsLen=0,this.options=e||{},this.iconv=t.iconv}s.prototype.write=function(e){if(!this.decoder){if(this.initialBufs.push(e),this.initialBufsLen+=e.length,this.initialBufsLen<16)return``;var t=c(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(t,this.options);for(var n=``,r=0;r<this.initialBufs.length;r++)n+=this.decoder.write(this.initialBufs[r]);return this.initialBufs.length=this.initialBufsLen=0,n}return this.decoder.write(e)},s.prototype.end=function(){if(!this.decoder){var e=c(this.initialBufs,this.options.defaultEncoding);this.decoder=this.iconv.getDecoder(e,this.options);for(var t=``,n=0;n<this.initialBufs.length;n++)t+=this.decoder.write(this.initialBufs[n]);var r=this.decoder.end();return r&&(t+=r),this.initialBufs.length=this.initialBufsLen=0,t}return this.decoder.end()};function c(e,t){var n=[],r=0,i=0,a=0;outer_loop:for(var o=0;o<e.length;o++)for(var s=e[o],c=0;c<s.length;c++)if(n.push(s[c]),n.length===2){if(r===0){if(n[0]===255&&n[1]===254)return`utf-16le`;if(n[0]===254&&n[1]===255)return`utf-16be`}if(n[0]===0&&n[1]!==0&&a++,n[0]!==0&&n[1]===0&&i++,n.length=0,r++,r>=100)break outer_loop}return a>i?`utf-16be`:a<i?`utf-16le`:t||`utf-16le`}})),Pe=r.a((e=>{var t=De().Buffer;e.utf7=n,e.unicode11utf7=`utf7`;function n(e,t){this.iconv=t}n.prototype.encoder=i,n.prototype.decoder=a,n.prototype.bomAware=!0;var r=/[^A-Za-z0-9'\(\),-\.\/:\? \n\r\t]+/g;function i(e,t){this.iconv=t.iconv}i.prototype.write=function(e){return t.from(e.replace(r,function(e){return`+`+(e===`+`?``:this.iconv.encode(e,`utf16-be`).toString(`base64`).replace(/=+$/,``))+`-`}.bind(this)))},i.prototype.end=function(){};function a(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=``}for(var o=/[A-Za-z0-9\/+]/,s=[],c=0;c<256;c++)s[c]=o.test(String.fromCharCode(c));var l=43,u=45,d=38;a.prototype.write=function(e){for(var n=``,r=0,i=this.inBase64,a=this.base64Accum,o=0;o<e.length;o++)if(!i)e[o]==l&&(n+=this.iconv.decode(e.slice(r,o),`ascii`),r=o+1,i=!0);else if(!s[e[o]]){if(o==r&&e[o]==u)n+=`+`;else{var c=a+this.iconv.decode(e.slice(r,o),`ascii`);n+=this.iconv.decode(t.from(c,`base64`),`utf16-be`)}e[o]!=u&&o--,r=o+1,i=!1,a=``}if(!i)n+=this.iconv.decode(e.slice(r),`ascii`);else{var c=a+this.iconv.decode(e.slice(r),`ascii`),d=c.length-c.length%8;a=c.slice(d),c=c.slice(0,d),n+=this.iconv.decode(t.from(c,`base64`),`utf16-be`)}return this.inBase64=i,this.base64Accum=a,n},a.prototype.end=function(){var e=``;return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(t.from(this.base64Accum,`base64`),`utf16-be`)),this.inBase64=!1,this.base64Accum=``,e},e.utf7imap=f;function f(e,t){this.iconv=t}f.prototype.encoder=p,f.prototype.decoder=m,f.prototype.bomAware=!0;function p(e,n){this.iconv=n.iconv,this.inBase64=!1,this.base64Accum=t.alloc(6),this.base64AccumIdx=0}p.prototype.write=function(e){for(var n=this.inBase64,r=this.base64Accum,i=this.base64AccumIdx,a=t.alloc(e.length*5+10),o=0,s=0;s<e.length;s++){var c=e.charCodeAt(s);32<=c&&c<=126?(n&&=(i>0&&(o+=a.write(r.slice(0,i).toString(`base64`).replace(/\//g,`,`).replace(/=+$/,``),o),i=0),a[o++]=u,!1),n||(a[o++]=c,c===d&&(a[o++]=u))):(n||=(a[o++]=d,!0),n&&(r[i++]=c>>8,r[i++]=c&255,i==r.length&&(o+=a.write(r.toString(`base64`).replace(/\//g,`,`),o),i=0)))}return this.inBase64=n,this.base64AccumIdx=i,a.slice(0,o)},p.prototype.end=function(){var e=t.alloc(10),n=0;return this.inBase64&&=(this.base64AccumIdx>0&&(n+=e.write(this.base64Accum.slice(0,this.base64AccumIdx).toString(`base64`).replace(/\//g,`,`).replace(/=+$/,``),n),this.base64AccumIdx=0),e[n++]=u,!1),e.slice(0,n)};function m(e,t){this.iconv=t.iconv,this.inBase64=!1,this.base64Accum=``}var h=s.slice();h[44]=!0,m.prototype.write=function(e){for(var n=``,r=0,i=this.inBase64,a=this.base64Accum,o=0;o<e.length;o++)if(!i)e[o]==d&&(n+=this.iconv.decode(e.slice(r,o),`ascii`),r=o+1,i=!0);else if(!h[e[o]]){if(o==r&&e[o]==u)n+=`&`;else{var s=a+this.iconv.decode(e.slice(r,o),`ascii`).replace(/,/g,`/`);n+=this.iconv.decode(t.from(s,`base64`),`utf16-be`)}e[o]!=u&&o--,r=o+1,i=!1,a=``}if(!i)n+=this.iconv.decode(e.slice(r),`ascii`);else{var s=a+this.iconv.decode(e.slice(r),`ascii`).replace(/,/g,`/`),c=s.length-s.length%8;a=s.slice(c),s=s.slice(0,c),n+=this.iconv.decode(t.from(s,`base64`),`utf16-be`)}return this.inBase64=i,this.base64Accum=a,n},m.prototype.end=function(){var e=``;return this.inBase64&&this.base64Accum.length>0&&(e=this.iconv.decode(t.from(this.base64Accum,`base64`),`utf16-be`)),this.inBase64=!1,this.base64Accum=``,e}})),Fe=r.a((e=>{var t=De().Buffer;e._sbcs=n;function n(e,n){if(!e)throw Error(`SBCS codec is called without the data.`);if(!e.chars||e.chars.length!==128&&e.chars.length!==256)throw Error(`Encoding '`+e.type+`' has incorrect 'chars' (must be of len 128 or 256)`);if(e.chars.length===128){for(var r=``,i=0;i<128;i++)r+=String.fromCharCode(i);e.chars=r+e.chars}this.decodeBuf=t.from(e.chars,`ucs2`);for(var a=t.alloc(65536,n.defaultCharSingleByte.charCodeAt(0)),i=0;i<e.chars.length;i++)a[e.chars.charCodeAt(i)]=i;this.encodeBuf=a}n.prototype.encoder=r,n.prototype.decoder=i;function r(e,t){this.encodeBuf=t.encodeBuf}r.prototype.write=function(e){for(var n=t.alloc(e.length),r=0;r<e.length;r++)n[r]=this.encodeBuf[e.charCodeAt(r)];return n},r.prototype.end=function(){};function i(e,t){this.decodeBuf=t.decodeBuf}i.prototype.write=function(e){for(var n=this.decodeBuf,r=t.alloc(e.length*2),i=0,a=0,o=0;o<e.length;o++)i=e[o]*2,a=o*2,r[a]=n[i],r[a+1]=n[i+1];return r.toString(`ucs2`)},i.prototype.end=function(){}})),Ie=r.a(((e,t)=>{t.exports={10029:`maccenteuro`,maccenteuro:{type:`_sbcs`,chars:`ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»…\xA0ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`},808:`cp808`,ibm808:`cp808`,cp808:{type:`_sbcs`,chars:`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№€■\xA0`},mik:{type:`_sbcs`,chars:`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя└┴┬├─┼╣║╚╔╩╦╠═╬┐░▒▓│┤№§╗╝┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},cp720:{type:`_sbcs`,chars:`€éâ„à†çêëèïّْô¤ـûùءآأؤ£إئابةتثجحخدذرزسشص«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ضطظعغفµقكلمنهوىي≡ًٌٍَُِ≈°∙·√ⁿ²■\xA0`},ascii8bit:`ascii`,usascii:`ascii`,ansix34:`ascii`,ansix341968:`ascii`,ansix341986:`ascii`,csascii:`ascii`,cp367:`ascii`,ibm367:`ascii`,isoir6:`ascii`,iso646us:`ascii`,iso646irv:`ascii`,us:`ascii`,latin1:`iso88591`,latin2:`iso88592`,latin3:`iso88593`,latin4:`iso88594`,latin5:`iso88599`,latin6:`iso885910`,latin7:`iso885913`,latin8:`iso885914`,latin9:`iso885915`,latin10:`iso885916`,csisolatin1:`iso88591`,csisolatin2:`iso88592`,csisolatin3:`iso88593`,csisolatin4:`iso88594`,csisolatincyrillic:`iso88595`,csisolatinarabic:`iso88596`,csisolatingreek:`iso88597`,csisolatinhebrew:`iso88598`,csisolatin5:`iso88599`,csisolatin6:`iso885910`,l1:`iso88591`,l2:`iso88592`,l3:`iso88593`,l4:`iso88594`,l5:`iso88599`,l6:`iso885910`,l7:`iso885913`,l8:`iso885914`,l9:`iso885915`,l10:`iso885916`,isoir14:`iso646jp`,isoir57:`iso646cn`,isoir100:`iso88591`,isoir101:`iso88592`,isoir109:`iso88593`,isoir110:`iso88594`,isoir144:`iso88595`,isoir127:`iso88596`,isoir126:`iso88597`,isoir138:`iso88598`,isoir148:`iso88599`,isoir157:`iso885910`,isoir166:`tis620`,isoir179:`iso885913`,isoir199:`iso885914`,isoir203:`iso885915`,isoir226:`iso885916`,cp819:`iso88591`,ibm819:`iso88591`,cyrillic:`iso88595`,arabic:`iso88596`,arabic8:`iso88596`,ecma114:`iso88596`,asmo708:`iso88596`,greek:`iso88597`,greek8:`iso88597`,ecma118:`iso88597`,elot928:`iso88597`,hebrew:`iso88598`,hebrew8:`iso88598`,turkish:`iso88599`,turkish8:`iso88599`,thai:`iso885911`,thai8:`iso885911`,celtic:`iso885914`,celtic8:`iso885914`,isoceltic:`iso885914`,tis6200:`tis620`,tis62025291:`tis620`,tis62025330:`tis620`,1e4:`macroman`,10006:`macgreek`,10007:`maccyrillic`,10079:`maciceland`,10081:`macturkish`,cspc8codepage437:`cp437`,cspc775baltic:`cp775`,cspc850multilingual:`cp850`,cspcp852:`cp852`,cspc862latinhebrew:`cp862`,cpgr:`cp869`,msee:`cp1250`,mscyrl:`cp1251`,msansi:`cp1252`,msgreek:`cp1253`,msturk:`cp1254`,mshebr:`cp1255`,msarab:`cp1256`,winbaltrim:`cp1257`,cp20866:`koi8r`,20866:`koi8r`,ibm878:`koi8r`,cskoi8r:`koi8r`,cp21866:`koi8u`,21866:`koi8u`,ibm1168:`koi8u`,strk10482002:`rk1048`,tcvn5712:`tcvn`,tcvn57121:`tcvn`,gb198880:`iso646cn`,cn:`iso646cn`,csiso14jisc6220ro:`iso646jp`,jisc62201969ro:`iso646jp`,jp:`iso646jp`,cshproman8:`hproman8`,r8:`hproman8`,roman8:`hproman8`,xroman8:`hproman8`,ibm1051:`hproman8`,mac:`macintosh`,csmacintosh:`macintosh`}})),Le=r.a(((e,t)=>{t.exports={437:`cp437`,737:`cp737`,775:`cp775`,850:`cp850`,852:`cp852`,855:`cp855`,856:`cp856`,857:`cp857`,858:`cp858`,860:`cp860`,861:`cp861`,862:`cp862`,863:`cp863`,864:`cp864`,865:`cp865`,866:`cp866`,869:`cp869`,874:`windows874`,922:`cp922`,1046:`cp1046`,1124:`cp1124`,1125:`cp1125`,1129:`cp1129`,1133:`cp1133`,1161:`cp1161`,1162:`cp1162`,1163:`cp1163`,1250:`windows1250`,1251:`windows1251`,1252:`windows1252`,1253:`windows1253`,1254:`windows1254`,1255:`windows1255`,1256:`windows1256`,1257:`windows1257`,1258:`windows1258`,28591:`iso88591`,28592:`iso88592`,28593:`iso88593`,28594:`iso88594`,28595:`iso88595`,28596:`iso88596`,28597:`iso88597`,28598:`iso88598`,28599:`iso88599`,28600:`iso885910`,28601:`iso885911`,28603:`iso885913`,28604:`iso885914`,28605:`iso885915`,28606:`iso885916`,windows874:{type:`_sbcs`,chars:`€����…�����������‘’“”•–—��������\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����`},win874:`windows874`,cp874:`windows874`,windows1250:{type:`_sbcs`,chars:`€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź\xA0ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙`},win1250:`windows1250`,cp1250:`windows1250`,windows1251:{type:`_sbcs`,chars:`ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ\xA0ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя`},win1251:`windows1251`,cp1251:`windows1251`,windows1252:{type:`_sbcs`,chars:`€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`},win1252:`windows1252`,cp1252:`windows1252`,windows1253:{type:`_sbcs`,chars:`€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›����\xA0΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�`},win1253:`windows1253`,cp1253:`windows1253`,windows1254:{type:`_sbcs`,chars:`€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ`},win1254:`windows1254`,cp1254:`windows1254`,windows1255:{type:`_sbcs`,chars:`€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›����\xA0¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹֺֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�`},win1255:`windows1255`,cp1255:`windows1255`,windows1256:{type:`_sbcs`,chars:`€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں\xA0،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے`},win1256:`windows1256`,cp1256:`windows1256`,windows1257:{type:`_sbcs`,chars:`€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛�\xA0�¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙`},win1257:`windows1257`,cp1257:`windows1257`,windows1258:{type:`_sbcs`,chars:`€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ`},win1258:`windows1258`,cp1258:`windows1258`,iso88591:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`},cp28591:`iso88591`,iso88592:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ą˘Ł¤ĽŚ§¨ŠŞŤŹ­ŽŻ°ą˛ł´ľśˇ¸šşťź˝žżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙`},cp28592:`iso88592`,iso88593:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ħ˘£¤�Ĥ§¨İŞĞĴ­�ݰħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙`},cp28593:`iso88593`,iso88594:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄĸŖ¤Ĩϧ¨ŠĒĢŦ­Ž¯°ą˛ŗ´ĩšēģŧŊžŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎĪĐŅŌĶÔÕÖרŲÚÛÜŨŪßāáâãäåæįčéęëėíîīđņōķôõö÷øųúûüũū˙`},cp28594:`iso88594`,iso88595:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ЁЂЃЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђѓєѕіїјљњћќ§ўџ`},cp28595:`iso88595`,iso88596:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0���¤�������،­�������������؛���؟�ءآأؤإئابةتثجحخدذرزسشصضطظعغ�����ـفقكلمنهوىيًٌٍَُِّْ�������������`},cp28596:`iso88596`,iso88597:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0‘’£€₯¦§¨©ͺ«¬­�―°±²³΄΅Ά·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�`},cp28597:`iso88597`,iso88598:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0�¢£¤¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾��������������������������������‗אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�`},cp28598:`iso88598`,iso88599:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ`},cp28599:`iso88599`,iso885910:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄĒĢĪĨͧĻĐŠŦŽ­ŪŊ°ąēģīĩķ·ļđšŧž―ūŋĀÁÂÃÄÅÆĮČÉĘËĖÍÎÏÐŅŌÓÔÕÖŨØŲÚÛÜÝÞßāáâãäåæįčéęëėíîïðņōóôõöũøųúûüýþĸ`},cp28600:`iso885910`,iso885911:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����`},cp28601:`iso885911`,iso885913:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0”¢£¤„¦§Ø©Ŗ«¬­®Æ°±²³“µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž’`},cp28603:`iso885913`,iso885914:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0Ḃḃ£ĊċḊ§Ẁ©ẂḋỲ­®ŸḞḟĠġṀṁ¶ṖẁṗẃṠỳẄẅṡÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŴÑÒÓÔÕÖṪØÙÚÛÜÝŶßàáâãäåæçèéêëìíîïŵñòóôõöṫøùúûüýŷÿ`},cp28604:`iso885914`,iso885915:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£€¥Š§š©ª«¬­®¯°±²³Žµ¶·ž¹º»ŒœŸ¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`},cp28605:`iso885915`,iso885916:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ĄąŁ€„Чš©Ș«Ź­źŻ°±ČłŽ”¶·žčș»ŒœŸżÀÁÂĂÄĆÆÇÈÉÊËÌÍÎÏĐŃÒÓÔŐÖŚŰÙÚÛÜĘȚßàáâăäćæçèéêëìíîïđńòóôőöśűùúûüęțÿ`},cp28606:`iso885916`,cp437:{type:`_sbcs`,chars:`ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},ibm437:`cp437`,csibm437:`cp437`,cp737:{type:`_sbcs`,chars:`ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■\xA0`},ibm737:`cp737`,csibm737:`cp737`,cp775:{type:`_sbcs`,chars:`ĆüéāäģåćłēŖŗīŹÄÅÉæÆōöĢ¢ŚśÖÜø£Ø×¤ĀĪóŻżź”¦©®¬½¼Ł«»░▒▓│┤ĄČĘĖ╣║╗╝ĮŠ┐└┴┬├─┼ŲŪ╚╔╩╦╠═╬Žąčęėįšųūž┘┌█▄▌▐▀ÓßŌŃõÕµńĶķĻļņĒŅ’­±“¾¶§÷„°∙·¹³²■\xA0`},ibm775:`cp775`,csibm775:`cp775`,cp850:{type:`_sbcs`,chars:`ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■\xA0`},ibm850:`cp850`,csibm850:`cp850`,cp852:{type:`_sbcs`,chars:`ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■\xA0`},ibm852:`cp852`,csibm852:`cp852`,cp855:{type:`_sbcs`,chars:`ђЂѓЃёЁєЄѕЅіІїЇјЈљЉњЊћЋќЌўЎџЏюЮъЪаАбБцЦдДеЕфФгГ«»░▒▓│┤хХиИ╣║╗╝йЙ┐└┴┬├─┼кК╚╔╩╦╠═╬¤лЛмМнНоОп┘┌█▄Пя▀ЯрРсСтТуУжЖвВьЬ№­ыЫзЗшШэЭщЩчЧ§■\xA0`},ibm855:`cp855`,csibm855:`cp855`,cp856:{type:`_sbcs`,chars:`אבגדהוזחטיךכלםמןנסעףפץצקרשת�£�×����������®¬½¼�«»░▒▓│┤���©╣║╗╝¢¥┐└┴┬├─┼��╚╔╩╦╠═╬¤���������┘┌█▄¦�▀������µ�������¯´­±‗¾¶§÷¸°¨·¹³²■\xA0`},ibm856:`cp856`,csibm856:`cp856`,cp857:{type:`_sbcs`,chars:`ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■\xA0`},ibm857:`cp857`,csibm857:`cp857`,cp858:{type:`_sbcs`,chars:`ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈ€ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■\xA0`},ibm858:`cp858`,csibm858:`cp858`,cp860:{type:`_sbcs`,chars:`ÇüéâãàÁçêÊèÍÔìÃÂÉÀÈôõòÚùÌÕÜ¢£Ù₧ÓáíóúñѪº¿Ò¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},ibm860:`cp860`,csibm860:`cp860`,cp861:{type:`_sbcs`,chars:`ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},ibm861:`cp861`,csibm861:`cp861`,cp862:{type:`_sbcs`,chars:`אבגדהוזחטיךכלםמןנסעףפץצקרשת¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},ibm862:`cp862`,csibm862:`cp862`,cp863:{type:`_sbcs`,chars:`ÇüéâÂà¶çêëèïî‗À§ÉÈÊôËÏûù¤ÔÜ¢£ÙÛƒ¦´óú¨¸³¯Î⌐¬½¼¾«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},ibm863:`cp863`,csibm863:`cp863`,cp864:{type:`_sbcs`,chars:`\0\x07\b
2
2
  \v\f\r\x1B !"#$٪&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~°·∙√▒─│┼┤┬├┴┐┌└┘β∞φ±½¼≈«»ﻷﻸ��ﻻﻼ�\xA0­ﺂ£¤ﺄ��ﺎﺏﺕﺙ،ﺝﺡﺥ٠١٢٣٤٥٦٧٨٩ﻑ؛ﺱﺵﺹ؟¢ﺀﺁﺃﺅﻊﺋﺍﺑﺓﺗﺛﺟﺣﺧﺩﺫﺭﺯﺳﺷﺻﺿﻁﻅﻋﻏ¦¬÷×ﻉـﻓﻗﻛﻟﻣﻧﻫﻭﻯﻳﺽﻌﻎﻍﻡﹽّﻥﻩﻬﻰﻲﻐﻕﻵﻶﻝﻙﻱ■�`},ibm864:`cp864`,csibm864:`cp864`,cp865:{type:`_sbcs`,chars:`ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\xA0`},ibm865:`cp865`,csibm865:`cp865`,cp866:{type:`_sbcs`,chars:`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■\xA0`},ibm866:`cp866`,csibm866:`cp866`,cp869:{type:`_sbcs`,chars:`������Ά�·¬¦‘’Έ―ΉΊΪΌ��ΎΫ©Ώ²³ά£έήίϊΐόύΑΒΓΔΕΖΗ½ΘΙ«»░▒▓│┤ΚΛΜΝ╣║╗╝ΞΟ┐└┴┬├─┼ΠΡ╚╔╩╦╠═╬ΣΤΥΦΧΨΩαβγ┘┌█▄δε▀ζηθικλμνξοπρσςτ΄­±υφχ§ψ΅°¨ωϋΰώ■\xA0`},ibm869:`cp869`,csibm869:`cp869`,cp922:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖרÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ`},ibm922:`cp922`,csibm922:`cp922`,cp1046:{type:`_sbcs`,chars:`ﺈ×÷ﹱˆ■│─┐┌└┘ﹹﹻﹽﹿﹷﺊﻰﻳﻲﻎﻏﻐﻶﻸﻺﻼ\xA0¤ﺋﺑﺗﺛﺟﺣ،­ﺧﺳ٠١٢٣٤٥٦٧٨٩ﺷ؛ﺻﺿﻊ؟ﻋءآأؤإئابةتثجحخدذرزسشصضطﻇعغﻌﺂﺄﺎﻓـفقكلمنهوىيًٌٍَُِّْﻗﻛﻟﻵﻷﻹﻻﻣﻧﻬﻩ�`},ibm1046:`cp1046`,csibm1046:`cp1046`,cp1124:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ЁЂҐЄЅІЇЈЉЊЋЌ­ЎЏАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя№ёђґєѕіїјљњћќ§ўџ`},ibm1124:`cp1124`,csibm1124:`cp1124`,cp1125:{type:`_sbcs`,chars:`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёҐґЄєІіЇї·√№¤■\xA0`},ibm1125:`cp1125`,csibm1125:`cp1125`,cp1129:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ`},ibm1129:`cp1129`,csibm1129:`cp1129`,cp1133:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0ກຂຄງຈສຊຍດຕຖທນບປຜຝພຟມຢຣລວຫອຮ���ຯະາຳິີຶືຸູຼັົຽ���ເແໂໃໄ່້໊໋໌ໍໆ�ໜໝ₭����������������໐໑໒໓໔໕໖໗໘໙��¢¬¦�`},ibm1133:`cp1133`,csibm1133:`cp1133`,cp1161:{type:`_sbcs`,chars:`��������������������������������่กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู้๊๋€฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛¢¬¦\xA0`},ibm1161:`cp1161`,csibm1161:`cp1161`,cp1162:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����`},ibm1162:`cp1162`,csibm1162:`cp1162`,cp1163:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£€¥¦§œ©ª«¬­®¯°±²³Ÿµ¶·Œ¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ`},ibm1163:`cp1163`,csibm1163:`cp1163`,maccroatian:{type:`_sbcs`,chars:`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®Š™´¨≠ŽØ∞±≤≥∆µ∂∑∏š∫ªºΩžø¿¡¬√ƒ≈ƫȅ\xA0ÀÃÕŒœĐ—“”‘’÷◊�©⁄¤‹›Æ»–·‚„‰ÂćÁčÈÍÎÏÌÓÔđÒÚÛÙıˆ˜¯πË˚¸Êæˇ`},maccyrillic:{type:`_sbcs`,chars:`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤`},macgreek:{type:`_sbcs`,chars:`Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»…\xA0ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�`},maciceland:{type:`_sbcs`,chars:`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`},macroman:{type:`_sbcs`,chars:`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`},macromania:{type:`_sbcs`,chars:`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ĂŞ∞±≤≥¥µ∂∑∏π∫ªºΩăş¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›Ţţ‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`},macthai:{type:`_sbcs`,chars:`«»…“”�•‘’�\xA0กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู​–—฿เแโใไๅๆ็่้๊๋์ํ™๏๐๑๒๓๔๕๖๗๘๙®©����`},macturkish:{type:`_sbcs`,chars:`ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»…\xA0ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ`},macukraine:{type:`_sbcs`,chars:`АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°Ґ£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµґЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»…\xA0ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤`},koi8r:{type:`_sbcs`,chars:`─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ё╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡Ё╢╣╤╥╦╧╨╩╪╫╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ`},koi8u:{type:`_sbcs`,chars:`─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґ╝╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪Ґ╬©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ`},koi8ru:{type:`_sbcs`,chars:`─│┌┐└┘├┤┬┴┼▀▄█▌▐░▒▓⌠■∙√≈≤≥\xA0⌡°²·÷═║╒ёє╔ії╗╘╙╚╛ґў╞╟╠╡ЁЄ╣ІЇ╦╧╨╩╪ҐЎ©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ`},koi8t:{type:`_sbcs`,chars:`қғ‚Ғ„…†‡�‰ҳ‹ҲҷҶ�Қ‘’“”•–—�™�›�����ӯӮё¤ӣ¦§���«¬­®�°±²Ё�Ӣ¶·�№�»���©юабцдефгхийклмнопярстужвьызшэщчъЮАБЦДЕФГХИЙКЛМНОПЯРСТУЖВЬЫЗШЭЩЧЪ`},armscii8:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0�և։)(»«—.՝,-֊…՜՛՞ԱաԲբԳգԴդԵեԶզԷէԸըԹթԺժԻիԼլԽխԾծԿկՀհՁձՂղՃճՄմՅյՆնՇշՈոՉչՊպՋջՌռՍսՎվՏտՐրՑցՒւՓփՔքՕօՖֆ՚�`},rk1048:{type:`_sbcs`,chars:`ЂЃ‚ѓ„…†‡€‰Љ‹ЊҚҺЏђ‘’“”•–—�™љ›њқһџ\xA0ҰұӘ¤Ө¦§Ё©Ғ«¬­®Ү°±Ііөµ¶·ё№ғ»әҢңүАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя`},tcvn:{type:`_sbcs`,chars:`\0ÚỤỪỬỮ\x07\b
3
3
  \v\f\rỨỰỲỶỸÝỴ\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÀẢÃÁẠẶẬÈẺẼÉẸỆÌỈĨÍỊÒỎÕÓỌỘỜỞỠỚỢÙỦŨ\xA0ĂÂÊÔƠƯĐăâêôơưđẶ̀̀̉̃́àảãáạẲằẳẵắẴẮẦẨẪẤỀặầẩẫấậèỂẻẽéẹềểễếệìỉỄẾỒĩíịòỔỏõóọồổỗốộờởỡớợùỖủũúụừửữứựỳỷỹýỵỐ`},georgianacademy:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზთიკლმნოპჟრსტუფქღყშჩცძწჭხჯჰჱჲჳჴჵჶçèéêëìíîïðñòóôõö÷øùúûüýþÿ`},georgianps:{type:`_sbcs`,chars:`€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ\xA0¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿აბგდევზჱთიკლმნჲოპჟრსტჳუფქღყშჩცძწჭხჴჯჰჵæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`},pt154:{type:`_sbcs`,chars:`ҖҒӮғ„…ҶҮҲүҠӢҢҚҺҸҗ‘’“”•–—ҳҷҡӣңқһҹ\xA0ЎўЈӨҘҰ§Ё©Ә«¬ӯ®Ҝ°ұІіҙө¶·ё№ә»јҪҫҝАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя`},viscii:{type:`_sbcs`,chars:`\0ẲẴẪ\x07\b
4
4
  \v\f\rỶỸ\x1BỴ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ẠẮẰẶẤẦẨẬẼẸẾỀỂỄỆỐỒỔỖỘỢỚỜỞỊỎỌỈỦŨỤỲÕắằặấầẩậẽẹếềểễệốồổỗỠƠộờởịỰỨỪỬơớƯÀÁÂÃẢĂẳẵÈÉÊẺÌÍĨỳĐứÒÓÔạỷừửÙÚỹỵÝỡưàáâãảăữẫèéêẻìíĩỉđựòóôõỏọụùúũủýợỮ`},iso646cn:{type:`_sbcs`,chars:`\0\x07\b
@@ -820,9 +820,9 @@ self.addEventListener('message', async (e) => {
820
820
  }
821
821
  })
822
822
  `,pd;function md(e,t){return new Promise(((n,r)=>{pd||=function(e){let t=[];return typeof e==`function`?t.push(`(${e})()`):t.push(e),URL.createObjectURL(new Blob(t))}(fd);let i=new Worker(pd);i.addEventListener(`message`,(function(e){if(t.signal&&t.signal.aborted)i.terminate();else if(e.data.progress===void 0){if(e.data.error)return r(Error(e.data.error)),void i.terminate();n(e.data.file),i.terminate()}else t.onProgress(e.data.progress)})),i.addEventListener(`error`,r),t.signal&&t.signal.addEventListener(`abort`,(()=>{r(t.signal.reason),i.terminate()})),i.postMessage({file:e,imageCompressionLibUrl:t.libURL,options:{...t,onProgress:void 0,signal:void 0}})}))}function hd(e,t){return new Promise((function(n,r){let i,a,o,s,c,l;if(i={...t},o=0,{onProgress:s}=i,i.maxSizeMB=i.maxSizeMB||1/0,c=typeof i.useWebWorker!=`boolean`||i.useWebWorker,delete i.useWebWorker,i.onProgress=e=>{o=e,typeof s==`function`&&s(o)},!(e instanceof Blob||e instanceof Ju))return r(Error(`The file given is not an instance of Blob or File`));if(!/^image/.test(e.type))return r(Error(`The file given is not an image`));if(l=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope,!c||typeof Worker!=`function`||l)return dd(e,i).then(function(e){try{return a=e,f.call(this)}catch(e){return r(e)}}.bind(this),r);var u=function(){try{return f.call(this)}catch(e){return r(e)}}.bind(this),d=function(t){try{return dd(e,i).then((function(e){try{return a=e,u()}catch(e){return r(e)}}),r)}catch(e){return r(e)}};try{return i.libURL=i.libURL||`https://cdn.jsdelivr.net/npm/browser-image-compression@2.0.2/dist/browser-image-compression.js`,md(e,i).then((function(e){try{return a=e,u()}catch{return d()}}),d)}catch{d()}function f(){try{a.name=e.name,a.lastModified=e.lastModified}catch{}try{i.preserveExif&&e.type===`image/jpeg`&&(!i.fileType||i.fileType&&i.fileType===e.type)&&(a=Iu(e,a))}catch{}return n(a)}}))}hd.getDataUrlFromFile=Zu,hd.getFilefromDataUrl=Xu,hd.loadImage=Qu,hd.drawImageInCanvas=nd,hd.drawFileInCanvas=id,hd.canvasToFile=ad,hd.getExifOrientation=cd,hd.handleMaxWidthOrHeight=ld,hd.followExifOrientation=ud,hd.cleanupCanvasMemory=od,hd.isAutoOrientationInBrowser=sd,hd.approximateBelowMaximumCanvasSizeOfBrowser=ed,hd.copyExifWithoutOrientation=Iu,hd.getBrowserName=$u,hd.version=`2.0.2`;var gd=`em-mob-text_align-`,_d=({value:e,onChange:t,onSync:n,fieldName:r,...i})=>{let a=(typeof e==`object`?e?.value:e)??``;return(0,C.jsx)(p.S,{value:a,onChange:e=>{let i={classNamePrefix:gd,value:e};t?.(i),n?.({[r]:i})},...i})},vd=({form:e,elementSettings:t,imgParent:n=!1,name:r=`align`,tooltipTitle:a,typeOfForm:o=`desktop`})=>{let{__:s}=p.v(),c=i.et(),l=i.Wt(),u=o===`mobile`,d=u?`mobileAlign`:r,f={alignLeft:s(`Align left`),alignCenter:s(`Center horizontally`),alignRight:s(`Align right`)};return u?(0,C.jsx)(p.It.Item,{name:d,children:(0,C.jsx)(_d,{fieldName:d,onSync:e=>{c({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:e})},disabled:n&&!t.parent,strokeWidth:l.iconStrokeWidth,tooltipTitle:a,labels:f})}):(0,C.jsx)(p.It.Item,{name:d,children:(0,C.jsx)(p.S,{disabled:n&&!t.parent,strokeWidth:l.iconStrokeWidth,tooltipTitle:a,labels:f})})},yd=({form:e,elementSettings:t,tooltipTitle:n,disabled:r=!1,isNewIconType:a=!1,typeOfForm:o=`desktop`})=>{let{__:s}=p.v(),c=i.et(),l=i.Wt(),u=o===`mobile`,d=u?`mobileVerticalAlign`:`valign`;return(0,C.jsx)(p.It.Item,{name:d,children:(0,C.jsx)(p.C,{...!u&&{value:t.valign,onChange:n=>{e.setFieldsValue({[d]:n}),u||c({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:{[d]:n}})}},disabled:r,isNewIconType:a,strokeWidth:l.iconStrokeWidth,labels:{alignTop:s(`Align top`),alignMiddle:s(`Center vertically`),alignBottom:s(`Align bottom`)}})})},bd=[`mobileBoxShadowHOffset`,`mobileBoxShadowVOffset`,`mobileBoxShadowBlurRadius`,`mobileBoxShadowSpreadRadius`,`mobileBoxShadowColor`,`mobileBoxShadowInset`],xd=({form:e,elementSettings:t,enableSwitch:n,usedColors:r,labels:a,withoutShadowLabel:o})=>{let s=i.et(),c=t.mobileBoxShadow,[l,u]=(0,v.useState)(!c||c.hOffset===0&&c.vOffset===0&&c.blurRadius===0&&c.spreadRadius===0),d=p.It.useWatch(bd,e);return(0,v.useEffect)(()=>{if(!d)return;let[e,t,n,r,i,a]=d;(e===0||e==null)&&(t===0||t==null)&&(n===0||n==null)&&(r===0||r==null)&&(i===``||i==null)&&(a===!1||a===void 0)||u(!1)},[d]),(0,C.jsxs)(C.Fragment,{children:[n&&(0,C.jsx)(`div`,{style:{float:`right`,marginTop:-9,marginRight:50},children:(0,C.jsx)(p.bt,{id:`without-shadow`,label:o,labelSize:`small`,size:`small`,checked:l,onChange:()=>{u(e=>!e),e.setFieldsValue({mobileBoxShadowHOffset:l?``:0,mobileBoxShadowVOffset:l?``:0,mobileBoxShadowBlurRadius:l?``:0,mobileBoxShadowSpreadRadius:l?``:0,mobileBoxShadowColor:``,mobileBoxShadowInset:!1}),s({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:{mobileBoxShadow:{classNamePrefix:`em-mob-box_shadow-`,hOffset:l?null:0,vOffset:l?null:0,blurRadius:l?null:0,spreadRadius:l?null:0,color:null,inset:!1}}})}})}),(0,C.jsx)(`p`,{style:{paddingBottom:`8px`,margin:`-30px 0 0`},children:`\xA0`}),(0,C.jsx)(p.T,{typeOfForm:`mobile`,usedColors:r,labels:a})]})},Sd=({typeOfForm:e=`desktop`,form:t,elementSettings:n,enableSwitch:r=!0})=>{let{__:a}=p.v(),o=i.cr(u.O),s={hOffset:a(`Horizontal offset`),vOffset:a(`Vertical offset`),blurRadius:a(`Blur radius`),spreadRadius:a(`Spread radius`),outside:a(`Outside`),inside:a(`Inside`),shadowDirection:a(`Shadow inside or outside of the element`),usedColors:a(`Used`),recommendedColors:a(`Recommended`)},c=o.usedColors;return e===`mobile`&&t&&n?(0,C.jsx)(xd,{form:t,elementSettings:n,enableSwitch:r,usedColors:c,labels:s,withoutShadowLabel:a(`Without shadow`)}):(0,C.jsx)(p.T,{typeOfForm:e,usedColors:c,labels:s})};Sd.displayName=`SelectedElementFormBoxShadow`;var Cd=({form:e,elementSettings:t,directionControl:n})=>{let{__:r}=p.v();return(0,C.jsx)(p.O,{directionControl:n,className:`selected-element-form-show`,children:(0,C.jsx)(p.It.Item,{name:`show`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.yt.Group,{children:(0,C.jsxs)(p.xt,{size:8,children:[(0,C.jsx)(p.yt.Button,{value:`all`,children:r(`Both`)}),(0,C.jsx)(p.K,{placement:`top`,title:r(`Desktop`),children:(0,C.jsx)(p.yt.Button,{value:`desktop`,children:(0,C.jsx)(m.d,{icon:`DesktopOutlined`})})}),(0,C.jsx)(p.K,{placement:`top`,title:r(`Mobile`),children:(0,C.jsx)(p.yt.Button,{value:`mobile`,children:(0,C.jsx)(m.d,{icon:`MobileOutlined`})})})]})})})})},wd=({form:e,elementSettings:t,handleChangeValues:n})=>{let{__:r}=p.v(),i=(0,v.useRef)(),{token:a}=p.Vt(),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(!1),[u,d]=(0,v.useState)(!1),[f,h]=(0,v.useState)(!1),[g,_]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let e=new URL(`https://emailmaker.ru/?`+t.countdown);s(e.searchParams.get(`font1`).endsWith(`-b`)||e.searchParams.get(`font1`).endsWith(`-bi`)),l(e.searchParams.get(`font1`).endsWith(`-i`)||e.searchParams.get(`font1`).endsWith(`-bi`)),d(e.searchParams.get(`font2`).endsWith(`-b`)||e.searchParams.get(`font2`).endsWith(`-bi`)),h(e.searchParams.get(`font2`).endsWith(`-i`)||e.searchParams.get(`font2`).endsWith(`-bi`)),_(e.searchParams.get(`tp`)===`true`)},[t]);let y=[{value:`-12`,label:r(`-12:00 Apia`)},{value:`-11`,label:r(`-11:00 Pago Pago, Midway Atoll`)},{value:`-10`,label:r(`-10:00 Honolulu, Anchorage`)},{value:`-9`,label:r(`-9:00 Anchorage, Yukon`)},{value:`-8`,label:r(`-8:00 Los Angeles, Vancouver`)},{value:`-7`,label:r(`-7:00 Denver, Phoenix`)},{value:`-6`,label:r(`-6:00 Mexico City, Guadalajara`)},{value:`-5`,label:r(`-5:00 New York, Toronto, Havana`)},{value:`-4`,label:r(`-4:00 Caracas, Santo Domingo`)},{value:`-3`,label:r(`-3:00 Buenos Aires, Santiago, Montevideo`)},{value:`-2`,label:r(`-2:00 South Georgia, Saint Helena`)},{value:`-1`,label:r(`-1:00 Azores, Cape Verde`)},{value:`0`,label:r(`+0:00 London, Lisbon, Dublin`)},{value:`1`,label:r(`+1:00 Paris, Berlin, Rome`)},{value:`2`,label:r(`+2:00 Athens, Kiev, Istanbul`)},{value:`3`,label:r(`+3:00 Istanbul, Doha, Baghdad`)},{value:`4`,label:r(`+4:00 Baku, Dubai, Tbilisi`)},{value:`5`,label:r(`+5:00 Karachi, Tashkent, Islamabad`)},{value:`6`,label:r(`+6:00 Almaty, Dhaka, Bishkek`)},{value:`7`,label:r(`+7:00 Bangkok, Ho Chi Minh City, Jakarta`)},{value:`8`,label:r(`+8:00 Beijing, Hong Kong, Singapore`)},{value:`9`,label:r(`+9:00 Tokyo, Seoul, Jayapura`)},{value:`10`,label:r(`+10:00 Sydney, Melbourne, Port Moresby`)},{value:`11`,label:r(`+11:00 Honiara, Nuku'alofa, Apia`)}],b=[{value:`20`,label:r(`20 s`)},{value:`40`,label:r(`40 s`)},{value:`60`,label:r(`60 s`)}],x=[{value:`arial`,label:`Arial`},{value:`courier-new`,label:`Courier New`},{value:`georgia`,label:`Georgia`},{value:`helvetica`,label:`Helvetica`},{value:`tahoma`,label:`Tahoma`},{value:`times-new-roman`,label:`Times New Roman`},{value:`trebuchet-ms`,label:`Trebuchet MS`},{value:`verdana`,label:`Verdana`},{value:`open-sans`,label:`Open Sans`},{value:`roboto`,label:`Roboto`}],S=e=>e&&e<(0,O.default)().endOf(`day`)-864e5,w=e=>{e.target.closest(`.ant-picker-dropdown`)||i.current?.blur()};return(0,v.useEffect)(()=>(window.addEventListener(`scroll`,w,!0),()=>{window.removeEventListener(`scroll`,w,!0)})),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{label:r(`End time`),name:`countdownTime`,children:(0,C.jsx)(p.Et,{ref:i,format:`DD.MM.YYYY HH:mm`,disabledDate:S,showTime:!0,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),allowClear:!1,allowEmpty:!1})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{label:r(`Time zone`),name:`countdownTimeZone`,style:{width:`100%`},children:(0,C.jsx)(p.St,{placeholder:r(`Select the time zone`),getPopupContainer:()=>document.querySelector(`.email-properties__collapse-panel`),children:y.map(e=>(0,C.jsx)(p.St.Option,{value:e.value,children:e.label},e.value))})})})]}),(0,C.jsxs)(p.At,{gutter:20,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{label:r(`Background color`),name:`countdownBackgroundColor`,className:`countdown-color`,children:(0,C.jsx)(p.Ot,{placeholder:r(`Background color`),usedColors:t.usedColors,usedLabel:r(`Used`),recommendedLabel:r(`Recommended`)})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`countdownTransparency`,valuePropName:`checked`,style:{paddingTop:29},children:(0,C.jsx)(p.bt,{id:`countdownTransparency`,label:r(`Transparency`),labelSize:`small`,size:`small`,onChange:e=>{_(e)}})})})]}),(0,C.jsx)(p.M,{title:r(`Countdown font settings`),compact:!0,children:(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`countdownNumbersFont`,style:{marginBottom:a.formItemMarginBottomXS},children:(0,C.jsx)(p.St,{getPopupContainer:()=>document.querySelector(`.email-properties__collapse-panel`),options:x})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`countdownNumbersColor`,className:`countdown-color`,style:{marginBottom:a.formItemMarginBottomXS},children:(0,C.jsx)(p.Ot,{usedColors:t.usedColors,usedLabel:r(`Used`),recommendedLabel:r(`Recommended`)})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`countdownNumbersFontSize`,children:(0,C.jsx)(p.Tt,{min:12,placeholder:r(`Font size`),prefix:(0,C.jsx)(m.d,{icon:`FontSizeOutlined`}),addonAfter:`px`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(p.K,{placement:`bottom`,title:r(`Strong`),children:(0,C.jsx)(p.It.Item,{name:`countdownNumbersStrong`,children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button selected-td-form__button_style`,{"selected-td-form__button--active":o}),onClick:()=>{let t=!o;e.setFieldValue(`countdownNumbersStrong`,t),n({countdownNumbersStrong:t}),s(t)},children:(0,C.jsx)(m.d,{icon:`BoldOutlined`,className:`selected-td-form__icon-radius`})})})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(p.K,{placement:`bottom`,title:r(`Italic`),children:(0,C.jsx)(p.It.Item,{name:`countdownNumbersItalic`,children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button selected-td-form__button_style`,{"selected-td-form__button--active":c}),onClick:()=>{let t=!c;e.setFieldValue(`countdownNumbersItalic`,t),n({countdownNumbersItalic:t}),l(t)},children:(0,C.jsx)(m.d,{icon:`ItalicOutlined`,className:`selected-td-form__icon-radius`})})})})})]})}),(0,C.jsx)(p.M,{title:r(`Time units font settings`),compact:!0,children:(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`countdownLabelsFont`,style:{marginBottom:a.formItemMarginBottomXS},children:(0,C.jsx)(p.St,{getPopupContainer:()=>document.querySelector(`.email-properties__collapse-panel`),options:x})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`countdownLabelsColor`,className:`countdown-color`,style:{marginBottom:a.formItemMarginBottomXS},children:(0,C.jsx)(p.Ot,{usedColors:t.usedColors,usedLabel:r(`Used`),recommendedLabel:r(`Recommended`)})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`countdownLabelsFontSize`,children:(0,C.jsx)(p.Tt,{min:8,placeholder:r(`Font size`),addonAfter:`px`,prefix:(0,C.jsx)(m.d,{icon:`FontSizeOutlined`})})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(p.K,{placement:`bottom`,title:r(`Strong`),children:(0,C.jsx)(p.It.Item,{name:`countdownLabelsStrong`,children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button selected-td-form__button_style`,{"selected-td-form__button--active":u}),onClick:()=>{let t=!u;e.setFieldValue(`countdownLabelsStrong`,t),n({countdownLabelsStrong:t}),d(t)},children:(0,C.jsx)(m.d,{icon:`BoldOutlined`,className:`selected-td-form__icon-radius`})})})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(p.K,{placement:`bottom`,title:r(`Italic`),children:(0,C.jsx)(p.It.Item,{name:`countdownLabelsItalic`,children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button selected-td-form__button_style`,{"selected-td-form__button--active":f}),onClick:()=>{let t=!f;e.setFieldValue(`countdownLabelsItalic`,t),n({countdownLabelsItalic:t}),h(t)},children:(0,C.jsx)(m.d,{icon:`ItalicOutlined`,className:`selected-td-form__icon-radius`})})})})})]})}),(0,C.jsxs)(p.At,{gutter:10,style:{marginBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{label:r(`Language`),name:`countdownLanguage`,style:{width:`100%`},children:(0,C.jsx)(p.St,{getPopupContainer:()=>document.querySelector(`.email-properties__collapse-panel`),options:[{value:`ru_RU`,label:`Русский`},{value:`en_US`,label:`English`},{value:`uk_UA`,label:`Українська`},{value:`pt_BR`,label:`Português`},{value:`fr-CA`,label:`Français`},{value:`de_DE`,label:`Deutsch`},{value:`pl_PL`,label:`Polski`},{value:`es_ES`,label:`Español`},{value:`tr_TR`,label:`Türkçe`},{value:`lt_LT`,label:`Lietuvių kalba`},{value:`lv_LV`,label:`Latviešu valoda`},{value:`et_EE`,label:`Eesti keel`},{value:`hu_HU`,label:`Magyar`},{value:`el_GR`,label:`Ελληνικά`},{value:`it_IT`,label:`Italiano`}]})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{label:r(`Duration`),name:`countdownDuration`,style:{width:`100%`},children:(0,C.jsx)(p.St,{getPopupContainer:()=>document.querySelector(`.email-properties__collapse-panel`),options:b})})})]})]})};wd.propTypes={form:b.default.shape({setFieldsValue:b.default.func.isRequired}).isRequired,elementSettings:b.default.object.isRequired,tooltipTitle:b.default.string};var Td=({form:e,elementSettings:t})=>{let{__:n}=p.v(),{token:r}=p.Vt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.K,{trigger:[`hover`],title:n(`URL of the video clip.`),placement:`right`,children:(0,C.jsx)(p.It.Item,{name:[`video`,`source`],className:`selected-image-form__alt`,children:(0,C.jsx)(p.jt,{allowClear:!0,placeholder:n(`Video URL`),prefix:(0,C.jsx)(m.d,{icon:`VideoCameraOutlined`})})})}),(0,C.jsx)(p.It.Item,{label:n(`Play button`),name:[`video`,`playButton`],style:{width:`100%`,marginBottom:r.formItemMarginBottomMD+4},children:(0,C.jsxs)(p.St,{getPopupContainer:()=>document.querySelector(`.email-properties__collapse-panel`),children:[(0,C.jsxs)(p.St.Option,{value:`youtube_red`,children:[(0,C.jsx)(m.d,{icon:`YoutubeOutlined`,style:{color:`#FF0000`}}),` `,n(`Youtube Red`)]}),(0,C.jsxs)(p.St.Option,{value:`youtube_black`,children:[(0,C.jsx)(m.d,{icon:`YoutubeOutlined`}),` `,n(`Youtube Black`)]}),(0,C.jsxs)(p.St.Option,{value:`youtube_white`,children:[(0,C.jsx)(m.d,{icon:`YoutubeOutlined`,style:{color:`#aaa`}}),` `,n(`Youtube White`)]}),(0,C.jsxs)(p.St.Option,{value:`vimeo`,children:[(0,C.jsx)(m.d,{icon:`Vimeo`}),` `,n(`Vimeo`)]}),(0,C.jsxs)(p.St.Option,{value:`white_circle`,children:[(0,C.jsx)(m.d,{icon:`PlayCircleOutlined`,style:{color:`#aaa`}}),` `,n(`White circle`)]}),(0,C.jsxs)(p.St.Option,{value:`black_circle`,children:[(0,C.jsx)(m.d,{icon:`PlayCircleOutlined`}),` `,n(`Black circle`)]}),(0,C.jsxs)(p.St.Option,{value:`white_circle_outlined`,children:[(0,C.jsx)(m.d,{icon:`RightCircleOutlined`,style:{color:`#aaa`}}),` `,n(`White circle outlined`)]}),(0,C.jsxs)(p.St.Option,{value:`black_circle_outlined`,children:[(0,C.jsx)(m.d,{icon:`RightCircleOutlined`}),` `,n(`Black circle outlined`)]}),(0,C.jsxs)(p.St.Option,{value:`none`,children:[` `,n(`Without button`)]})]})})]})};Td.propTypes={form:b.default.shape({setFieldsValue:b.default.func.isRequired}).isRequired,elementSettings:b.default.object.isRequired,tooltipTitle:b.default.string};var Ed={marginBottom:10},Dd=()=>{let{__:e}=p.v();return(0,C.jsx)(p.At,{gutter:20,style:Ed,children:(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`ampShow`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.yt.Group,{children:(0,C.jsxs)(p.xt,{size:8,children:[(0,C.jsx)(p.yt.Button,{value:`all`,children:e(`Both`)}),(0,C.jsx)(p.K,{placement:`top`,title:e(`AMP`),children:(0,C.jsx)(p.yt.Button,{value:`amp`,children:`AMP`})}),(0,C.jsx)(p.K,{placement:`top`,title:e(`HTML`),children:(0,C.jsx)(p.yt.Button,{value:`html`,children:`HTML`})})]})})})})})},Od=({form:e,elementSettings:t,boxShadow:n,bordersShow:r,borderRadiusShow:a,boxShadowShow:o,oneBorderRadiusValue:s,setOneBorderRadiusValue:c,hasLink:l,hasAlt:u,hasTitle:d,isOpenSrcReplacer:f,mergeTagItems:h,mergeMenuOpen:g,setMergeMenuOpen:_,cascaderRef:v,linkInputRef:y,linkButtonRef:b,altInputRef:x,altButtonRef:S,titleInputRef:w,titleButtonRef:T,srcReplacerInputRef:D,srcReplacerButtonRef:O,linkProtocol:k,handleLinkProtocolsChange:A,linkButtonHandler:j,linkInputHandler:M,altButtonHandler:N,altInputHandler:P,titleButtonHandler:F,titleInputHandler:I,srcReplacerButtonHandler:L,srcInputHandler:R,handleSelect:z,onChange:B,filter:V,renderSearchOption:H,handleChangeValues:ee,toggleShowBorderHandler:U,toggleShowBorderRadiusHandler:W,toggleShowBoxShadowHandler:G})=>{let{__:K}=p.v(),{token:q}=p.Vt(),J=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.At,{gutter:10,style:{marginBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(vd,{form:e,elementSettings:t,imgParent:!0})}),J.formImageFieldVerticalAlignEnabled&&(0,C.jsx)(p.kt,{span:12,align:`right`,children:(0,C.jsx)(yd,{form:e,elementSettings:t})})]}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`,style:{marginBottom:t.type===`countdown`?15:24}}),t.type===`countdown`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(wd,{form:e,elementSettings:t,handleChangeValues:ee}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`,style:{marginBottom:24}})]}),J.mergeTagsShow&&h&&(0,C.jsx)(p.kt,{span:24,id:`merge_tags_wrapper`,children:(0,C.jsxs)(p.It.Item,{style:{marginBottom:24},children:[(0,C.jsx)(p.Rt,{id:`merge_tags_button`,icon:(0,C.jsx)(m.d,{icon:`MergeTags`}),style:{width:`100%`,display:g?`none`:`inline-flex`},onClick:()=>_(!0),children:K(`Merge tags`)}),(0,C.jsx)(p.Ft,{ref:v,popupClassName:`merge-tags`,options:h,placeholder:K(`Start typing the title`),showSearch:{filter:V,render:H},spellCheck:`false`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),onChange:B,style:{display:g?`block`:`none`},open:g,onKeyDown:e=>{e.key===`Escape`&&_(!1)}})]})}),t.type===`video`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Td,{form:e,elementSettings:t}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`,style:{marginBottom:24}})]}),(t.type===`img`||t.type===`video`)&&(0,C.jsx)(p.It.Item,{style:{marginBottom:0},children:(0,C.jsx)(Zs,{form:e,label:K(`Image path`),name:`src`,placeholder:K(`Image path`),elementSettings:t,tooltipTitle:``})}),(0,C.jsxs)(p.xt,{size:8,style:{marginBottom:!u&&!l&&!d&&!f?q.formItemMarginBottomMD+4:q.formItemMarginBottomXS},children:[(0,C.jsx)(p.K,{title:u||K(`Alternative text`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":!!u}),onClick:N,ref:S,children:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Alt`})})}),J.formFieldImageTitleEnabled&&(0,C.jsx)(p.K,{title:d||K(`Tooltip text`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":!!d}),onClick:F,ref:T,children:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Title`})})}),(0,C.jsx)(p.K,{title:l||K(`Hyperlink URL`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":!!l}),icon:(0,C.jsx)(m.d,{icon:`LinkOutlined`,className:`selected-td-form__icon-radius`}),onClick:j,ref:b})}),J.formImageFieldReplacerEnabled&&(0,C.jsx)(p.K,{title:K(`Image replacer`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":f}),icon:(0,C.jsx)(m.d,{icon:`Replacer`,className:`selected-td-form__icon-radius`}),onClick:L,ref:O})})]}),(!!l||!!u||!!d||!!f)&&(0,C.jsxs)(`div`,{style:{marginBottom:q.formItemMarginBottomMD+4},children:[!!l&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Zc,{show:k===`#`,__:K,style:{marginBottom:q.formItemMarginBottomXS}}),(0,C.jsx)(p.K,{trigger:[`hover`],title:K(`Hyperlink URL`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`link`,className:`selected-image-form__alt`,style:{marginBottom:q.formItemMarginBottomXS},children:(0,C.jsx)(p.jt,{addonBefore:(0,C.jsx)(Xc,{linkProtocol:k,handleLinkProtocolsChange:A,__:K}),placeholder:K(`Hyperlink URL`),allowClear:!0,ref:y,onChange:M,onSelect:z,prefix:(0,C.jsx)(Jc,{linkProtocol:k})})})})]}),!!u&&(0,C.jsx)(p.K,{trigger:[`hover`],title:K(`Alternative text`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`alt`,className:`selected-image-form__alt`,style:{marginBottom:q.formItemMarginBottomXS},children:(0,C.jsx)(p.jt,{placeholder:K(`Alternative text`),allowClear:!0,prefix:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Alt`}),onChange:P,ref:x,onSelect:z})})}),J.formFieldImageTitleEnabled&&!!d&&(0,C.jsx)(p.K,{trigger:[`hover`],title:K(`Tooltip text`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`title`,className:`selected-image-form__alt`,style:{marginBottom:q.formItemMarginBottomXS},children:(0,C.jsx)(p.jt,{placeholder:K(`Enter the title of the image`),allowClear:!0,prefix:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Title`}),onChange:I,ref:w,onSelect:z})})}),!!f&&(0,C.jsx)(p.K,{trigger:[`hover`],title:K(`Image src`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`imgReplacer`,className:`selected-image-form__alt`,style:{marginBottom:q.formItemMarginBottomXS},children:(0,C.jsx)(p.jt,{placeholder:K("Code that will replace the image `src`"),allowClear:!0,prefix:(0,C.jsx)(`span`,{className:`addon-text-content`,children:K(`Image src`)}),onChange:R,ref:D,onSelect:z})})})]}),(0,C.jsx)(p.M,{title:K(`Size`),dividerTop:!0,children:(0,C.jsx)(p.A,{maxWidth:t.maxWidth,showHeight:J.formImageFieldHeightEnabled,showMinMax:!1,gutter:q.marginSM,rowStyle:{marginBottom:J.formImageFieldHeightEnabled?4:24},labels:{width:K(`Width`),height:K(`Height`),minWidth:K(`Minimum width`),maxWidth:K(`Maximum width`)}})}),J.formFieldBorderEnabled&&(0,C.jsx)(p.M,{title:K(`Borders`),collapsible:!0,open:r,onToggle:U,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,elementSettings:t})}),J.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:K(`Border radius`),collapsible:!0,open:a,onToggle:W,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,oneBorderRadiusValue:s,setOneBorderRadiusValue:c,elementSettings:t})}),J.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:K(`Box shadow`),collapsible:!0,open:o,onToggle:G,dividerTop:!0,children:(0,C.jsx)(Sd,{})}),J.formFieldVisibilityEnabled&&(0,C.jsx)(p.M,{title:K(`Display control`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e})}),J.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:K(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})};Od.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,boxShadow:b.default.object,bordersShow:b.default.bool,borderRadiusShow:b.default.bool,boxShadowShow:b.default.bool,oneBorderRadiusValue:b.default.bool,setOneBorderRadiusValue:b.default.func,hasLink:b.default.string,hasAlt:b.default.string,hasTitle:b.default.string,isOpenSrcReplacer:b.default.oneOfType([b.default.bool,b.default.number]),mergeTagItems:b.default.array,mergeMenuOpen:b.default.bool,setMergeMenuOpen:b.default.func,cascaderRef:b.default.object,linkInputRef:b.default.object,linkButtonRef:b.default.object,altInputRef:b.default.object,altButtonRef:b.default.object,titleInputRef:b.default.object,titleButtonRef:b.default.object,srcReplacerInputRef:b.default.object,srcReplacerButtonRef:b.default.object,linkProtocol:b.default.string,handleLinkProtocolsChange:b.default.func,linkButtonHandler:b.default.func,linkInputHandler:b.default.func,altButtonHandler:b.default.func,altInputHandler:b.default.func,titleButtonHandler:b.default.func,titleInputHandler:b.default.func,srcReplacerButtonHandler:b.default.func,srcInputHandler:b.default.func,handleSelect:b.default.func,onChange:b.default.func,filter:b.default.func,renderSearchOption:b.default.func,handleChangeValues:b.default.func,toggleShowBorderHandler:b.default.func,toggleShowBorderRadiusHandler:b.default.func,toggleShowBoxShadowHandler:b.default.func};var kd=({form:e,name:t,elementSettings:n,isPicture:r,tooltipTitle:a})=>{let{__:o}=p.v(),s=i.et(),c=(0,v.useRef)(),[l,u]=(0,v.useState)(n[t]?.value===`auto`),{token:d}=p.Vt(),[f,h]=(0,v.useState)(``);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.K,{title:a,placement:`bottom`,children:(0,C.jsx)(`div`,{children:(0,C.jsx)(p.It.Item,{name:t,style:{marginBottom:d.formItemMarginBottomXS/2},children:(0,C.jsx)(p.I,{ref:c,min:0,max:f,placeholder:o(`Width`),onChange:n=>{u(!1),h(e.getFieldsValue(!0)[t+`Dim`]===`%`?100:``)},prefix:(0,C.jsx)(m.d,{icon:`ColumnWidthOutlined`}),addonAfter:(0,C.jsx)(p.It.Item,{name:t+`Dim`,noStyle:!0,children:ol})})})})}),!r&&(0,C.jsx)(p.bt,{id:`auto-width`,label:o(`Auto`),labelSize:`small`,size:`small`,checked:l,onChange:r=>{c.current.value=null,e.setFieldsValue({[t]:``,[t+`Dim`]:`px`}),u(e=>!e),s({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:n.type,settings:{[t]:{classNamePrefix:`em-mob-width-`,value:l?null:`auto`,dim:``}}})}})]})};kd.propTypes={form:b.default.shape({setFieldsValue:b.default.func.isRequired}).isRequired,elementSettings:b.default.object.isRequired,tooltipTitle:b.default.string};var Ad=({form:e,name:t,elementSettings:n,isPicture:r,tooltipTitle:a})=>{let{__:o}=p.v(),s=i.et(),c=(0,v.useRef)(),[l,u]=(0,v.useState)(n.mobileHeight?.value===`auto`),{token:d}=p.Vt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.K,{title:a,placement:`bottom`,children:(0,C.jsx)(`div`,{children:(0,C.jsx)(p.It.Item,{name:t,style:{marginBottom:d.formItemMarginBottomXS/2},children:(0,C.jsx)(p.I,{ref:c,min:0,placeholder:o(`Height`),onChange:e=>{u(!1)},prefix:(0,C.jsx)(m.d,{icon:`ColumnHeightOutlined`}),addonAfter:`px`})})})}),!r&&(0,C.jsx)(p.bt,{id:`auto-height`,label:o(`Auto`),labelSize:`small`,size:`small`,checked:l,onChange:t=>{c.current.value=null,e.setFieldsValue({mobileHeight:``,mobileHeightDim:`px`}),u(e=>!e),s({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:n.type,settings:{mobileHeight:{classNamePrefix:`em-mob-height-`,value:l?null:`auto`,dim:``}}})}})]})};Ad.propTypes={form:b.default.shape({setFieldsValue:b.default.func.isRequired}).isRequired,elementSettings:b.default.object.isRequired,tooltipTitle:b.default.string};var jd=({form:e,elementSettings:t,boxShadow:n,mobileBordersShow:r,mobileBorderRadiusShow:a,mobileBoxShadowShow:o,mobileSizeShow:s,oneMobileBorderRadiusValue:c,setOneMobileBorderRadiusValue:l,hasLink:u,hasAlt:d,hasTitle:f,linkInputRef:h,linkButtonRef:g,altInputRef:_,altButtonRef:v,titleInputRef:y,titleButtonRef:b,linkInputHandler:x,altButtonHandler:S,altInputHandler:w,titleButtonHandler:T,titleInputHandler:D,linkButtonHandler:O,toggleShowMobileBorderHandler:k,toggleShowMobileBorderRadiusHandler:A,toggleShowMobileBoxShadowHandler:j,toggleShowMobileSizeHandler:M})=>{let{__:N}=p.v(),{token:P}=p.Vt(),F=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.At,{gutter:30,style:{paddingBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(vd,{form:e,elementSettings:t,imgParent:!0,typeOfForm:`mobile`})}),F.formImageFieldVerticalAlignEnabled&&(0,C.jsx)(p.kt,{span:12,align:`right`,children:(0,C.jsx)(yd,{form:e,elementSettings:t,typeOfForm:`mobile`})})]}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`,style:{marginBottom:t.type===`countdown`?15:24}}),t.type===`countdown`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(wd,{form:e,elementSettings:t}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`,style:{marginBottom:24}})]}),t.type===`video`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Td,{form:e,elementSettings:t}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`,style:{marginBottom:24}})]}),(t.type===`img`||t.type===`video`)&&(0,C.jsx)(p.It.Item,{style:{marginBottom:0},children:(0,C.jsx)(Zs,{form:e,label:N(`Image path`),name:`src`,placeholder:N(`Image path`),elementSettings:t,tooltipTitle:``})}),(0,C.jsxs)(p.xt,{size:8,style:{marginBottom:!d&&!u&&!f?P.formItemMarginBottomMD+4:P.formItemMarginBottomXS},children:[(0,C.jsx)(p.K,{title:d||N(`Alternative text`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":!!d}),onClick:S,ref:v,children:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Alt`})})}),F.formFieldImageTitleEnabled&&(0,C.jsx)(p.K,{title:f||N(`Tooltip text`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":!!f}),onClick:T,ref:b,children:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Title`})})}),(0,C.jsx)(p.K,{title:u||N(`Hyperlink URL`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":!!u}),icon:(0,C.jsx)(m.d,{icon:`LinkOutlined`,className:`selected-td-form__icon-radius`}),onClick:O,ref:g})})]}),(!!u||!!d||!!f)&&(0,C.jsxs)(`div`,{style:{marginBottom:P.formItemMarginBottomMD+4},children:[!!u&&(0,C.jsx)(p.K,{trigger:[`hover`],title:N(`Hyperlink URL`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`link`,className:`selected-image-form__alt`,style:{marginBottom:P.formItemMarginBottomXS},children:(0,C.jsx)(p.jt,{ref:h,allowClear:!0,placeholder:N(`Hyperlink URL`),prefix:(0,C.jsx)(m.d,{icon:`LinkOutlined`}),onChange:x})})}),!!d&&(0,C.jsx)(p.K,{trigger:[`hover`],title:N(`Alternative text`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`alt`,className:`selected-image-form__alt`,style:{marginBottom:P.formItemMarginBottomXS},children:(0,C.jsx)(p.jt,{placeholder:N(`Alternative text`),allowClear:!0,prefix:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Alt`}),onChange:w,ref:_})})}),F.formFieldImageTitleEnabled&&!!f&&(0,C.jsx)(p.K,{trigger:[`hover`],title:N(`Tooltip text`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`title`,className:`selected-image-form__alt`,style:{marginBottom:P.formItemMarginBottomXS},children:(0,C.jsx)(p.jt,{placeholder:N(`Tooltip text`),allowClear:!0,prefix:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Title`}),onChange:D,ref:y})})})]}),(0,C.jsx)(p.M,{title:N(`Size`),collapsible:!0,open:s,onToggle:M,dividerTop:!0,children:(0,C.jsxs)(p.At,{gutter:10,style:{paddingBottom:24},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(kd,{form:e,name:`mobileWidth`,elementSettings:t,isPicture:`true`,tooltipTitle:N(`Width`)})}),F.formImageFieldHeightEnabled&&(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(Ad,{form:e,name:`mobileHeight`,elementSettings:t,isPicture:`true`,tooltipTitle:N(`Height`)})})]})}),F.formFieldBorderEnabled&&(0,C.jsx)(p.M,{title:N(`Borders`),collapsible:!0,open:r,onToggle:k,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,typeOfForm:`mobile`})}),F.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:N(`Border radius`),collapsible:!0,open:a,onToggle:A,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,oneBorderRadiusValue:c,setOneBorderRadiusValue:l,elementSettings:t,typeOfForm:`mobile`})}),F.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:N(`Box shadow`),collapsible:!0,open:o,onToggle:j,dividerTop:!0,children:(0,C.jsx)(Sd,{typeOfForm:`mobile`})}),F.formFieldVisibilityEnabled&&(0,C.jsx)(p.M,{title:N(`Display control`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e})}),F.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:N(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})};jd.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,boxShadow:b.default.object,mobileBordersShow:b.default.bool,mobileBorderRadiusShow:b.default.bool,mobileBoxShadowShow:b.default.bool,mobileSizeShow:b.default.bool,oneMobileBorderRadiusValue:b.default.bool,setOneMobileBorderRadiusValue:b.default.func,hasLink:b.default.string,hasAlt:b.default.string,hasTitle:b.default.string,linkInputRef:b.default.object,linkButtonRef:b.default.object,altInputRef:b.default.object,altButtonRef:b.default.object,titleInputRef:b.default.object,titleButtonRef:b.default.object,linkInputHandler:b.default.func,altButtonHandler:b.default.func,altInputHandler:b.default.func,titleButtonHandler:b.default.func,titleInputHandler:b.default.func,linkButtonHandler:b.default.func,toggleShowMobileBorderHandler:b.default.func,toggleShowMobileBorderRadiusHandler:b.default.func,toggleShowMobileBoxShadowHandler:b.default.func,toggleShowMobileSizeHandler:b.default.func};var Md=r.s({default:()=>Nd}),Nd,Pd=r.o((()=>{Nd={"application/1d-interleaved-parityfec":{source:`iana`},"application/3gpdash-qoe-report+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/3gpp-ims+xml":{source:`iana`,compressible:!0},"application/3gpphal+json":{source:`iana`,compressible:!0},"application/3gpphalforms+json":{source:`iana`,compressible:!0},"application/a2l":{source:`iana`},"application/ace+cbor":{source:`iana`},"application/ace+json":{source:`iana`,compressible:!0},"application/ace-groupcomm+cbor":{source:`iana`},"application/ace-trl+cbor":{source:`iana`},"application/activemessage":{source:`iana`},"application/activity+json":{source:`iana`,compressible:!0},"application/aif+cbor":{source:`iana`},"application/aif+json":{source:`iana`,compressible:!0},"application/alto-cdni+json":{source:`iana`,compressible:!0},"application/alto-cdnifilter+json":{source:`iana`,compressible:!0},"application/alto-costmap+json":{source:`iana`,compressible:!0},"application/alto-costmapfilter+json":{source:`iana`,compressible:!0},"application/alto-directory+json":{source:`iana`,compressible:!0},"application/alto-endpointcost+json":{source:`iana`,compressible:!0},"application/alto-endpointcostparams+json":{source:`iana`,compressible:!0},"application/alto-endpointprop+json":{source:`iana`,compressible:!0},"application/alto-endpointpropparams+json":{source:`iana`,compressible:!0},"application/alto-error+json":{source:`iana`,compressible:!0},"application/alto-networkmap+json":{source:`iana`,compressible:!0},"application/alto-networkmapfilter+json":{source:`iana`,compressible:!0},"application/alto-propmap+json":{source:`iana`,compressible:!0},"application/alto-propmapparams+json":{source:`iana`,compressible:!0},"application/alto-tips+json":{source:`iana`,compressible:!0},"application/alto-tipsparams+json":{source:`iana`,compressible:!0},"application/alto-updatestreamcontrol+json":{source:`iana`,compressible:!0},"application/alto-updatestreamparams+json":{source:`iana`,compressible:!0},"application/aml":{source:`iana`},"application/andrew-inset":{source:`iana`,extensions:[`ez`]},"application/appinstaller":{compressible:!1,extensions:[`appinstaller`]},"application/applefile":{source:`iana`},"application/applixware":{source:`apache`,extensions:[`aw`]},"application/appx":{compressible:!1,extensions:[`appx`]},"application/appxbundle":{compressible:!1,extensions:[`appxbundle`]},"application/at+jwt":{source:`iana`},"application/atf":{source:`iana`},"application/atfx":{source:`iana`},"application/atom+xml":{source:`iana`,compressible:!0,extensions:[`atom`]},"application/atomcat+xml":{source:`iana`,compressible:!0,extensions:[`atomcat`]},"application/atomdeleted+xml":{source:`iana`,compressible:!0,extensions:[`atomdeleted`]},"application/atomicmail":{source:`iana`},"application/atomsvc+xml":{source:`iana`,compressible:!0,extensions:[`atomsvc`]},"application/atsc-dwd+xml":{source:`iana`,compressible:!0,extensions:[`dwd`]},"application/atsc-dynamic-event-message":{source:`iana`},"application/atsc-held+xml":{source:`iana`,compressible:!0,extensions:[`held`]},"application/atsc-rdt+json":{source:`iana`,compressible:!0},"application/atsc-rsat+xml":{source:`iana`,compressible:!0,extensions:[`rsat`]},"application/atxml":{source:`iana`},"application/auth-policy+xml":{source:`iana`,compressible:!0},"application/automationml-aml+xml":{source:`iana`,compressible:!0,extensions:[`aml`]},"application/automationml-amlx+zip":{source:`iana`,compressible:!1,extensions:[`amlx`]},"application/bacnet-xdd+zip":{source:`iana`,compressible:!1},"application/batch-smtp":{source:`iana`},"application/bdoc":{compressible:!1,extensions:[`bdoc`]},"application/beep+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/bufr":{source:`iana`},"application/c2pa":{source:`iana`},"application/calendar+json":{source:`iana`,compressible:!0},"application/calendar+xml":{source:`iana`,compressible:!0,extensions:[`xcs`]},"application/call-completion":{source:`iana`},"application/cals-1840":{source:`iana`},"application/captive+json":{source:`iana`,compressible:!0},"application/cbor":{source:`iana`},"application/cbor-seq":{source:`iana`},"application/cccex":{source:`iana`},"application/ccmp+xml":{source:`iana`,compressible:!0},"application/ccxml+xml":{source:`iana`,compressible:!0,extensions:[`ccxml`]},"application/cda+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/cdfx+xml":{source:`iana`,compressible:!0,extensions:[`cdfx`]},"application/cdmi-capability":{source:`iana`,extensions:[`cdmia`]},"application/cdmi-container":{source:`iana`,extensions:[`cdmic`]},"application/cdmi-domain":{source:`iana`,extensions:[`cdmid`]},"application/cdmi-object":{source:`iana`,extensions:[`cdmio`]},"application/cdmi-queue":{source:`iana`,extensions:[`cdmiq`]},"application/cdni":{source:`iana`},"application/ce+cbor":{source:`iana`},"application/cea":{source:`iana`},"application/cea-2018+xml":{source:`iana`,compressible:!0},"application/cellml+xml":{source:`iana`,compressible:!0},"application/cfw":{source:`iana`},"application/cid-edhoc+cbor-seq":{source:`iana`},"application/city+json":{source:`iana`,compressible:!0},"application/city+json-seq":{source:`iana`},"application/clr":{source:`iana`},"application/clue+xml":{source:`iana`,compressible:!0},"application/clue_info+xml":{source:`iana`,compressible:!0},"application/cms":{source:`iana`},"application/cnrp+xml":{source:`iana`,compressible:!0},"application/coap-eap":{source:`iana`},"application/coap-group+json":{source:`iana`,compressible:!0},"application/coap-payload":{source:`iana`},"application/commonground":{source:`iana`},"application/concise-problem-details+cbor":{source:`iana`},"application/conference-info+xml":{source:`iana`,compressible:!0},"application/cose":{source:`iana`},"application/cose-key":{source:`iana`},"application/cose-key-set":{source:`iana`},"application/cose-x509":{source:`iana`},"application/cpl+xml":{source:`iana`,compressible:!0,extensions:[`cpl`]},"application/csrattrs":{source:`iana`},"application/csta+xml":{source:`iana`,compressible:!0},"application/cstadata+xml":{source:`iana`,compressible:!0},"application/csvm+json":{source:`iana`,compressible:!0},"application/cu-seeme":{source:`apache`,extensions:[`cu`]},"application/cwl":{source:`iana`,extensions:[`cwl`]},"application/cwl+json":{source:`iana`,compressible:!0},"application/cwl+yaml":{source:`iana`},"application/cwt":{source:`iana`},"application/cybercash":{source:`iana`},"application/dart":{compressible:!0},"application/dash+xml":{source:`iana`,compressible:!0,extensions:[`mpd`]},"application/dash-patch+xml":{source:`iana`,compressible:!0,extensions:[`mpp`]},"application/dashdelta":{source:`iana`},"application/davmount+xml":{source:`iana`,compressible:!0,extensions:[`davmount`]},"application/dca-rft":{source:`iana`},"application/dcd":{source:`iana`},"application/dec-dx":{source:`iana`},"application/dialog-info+xml":{source:`iana`,compressible:!0},"application/dicom":{source:`iana`,extensions:[`dcm`]},"application/dicom+json":{source:`iana`,compressible:!0},"application/dicom+xml":{source:`iana`,compressible:!0},"application/dii":{source:`iana`},"application/dit":{source:`iana`},"application/dns":{source:`iana`},"application/dns+json":{source:`iana`,compressible:!0},"application/dns-message":{source:`iana`},"application/docbook+xml":{source:`apache`,compressible:!0,extensions:[`dbk`]},"application/dots+cbor":{source:`iana`},"application/dpop+jwt":{source:`iana`},"application/dskpp+xml":{source:`iana`,compressible:!0},"application/dssc+der":{source:`iana`,extensions:[`dssc`]},"application/dssc+xml":{source:`iana`,compressible:!0,extensions:[`xdssc`]},"application/dvcs":{source:`iana`},"application/eat+cwt":{source:`iana`},"application/eat+jwt":{source:`iana`},"application/eat-bun+cbor":{source:`iana`},"application/eat-bun+json":{source:`iana`,compressible:!0},"application/eat-ucs+cbor":{source:`iana`},"application/eat-ucs+json":{source:`iana`,compressible:!0},"application/ecmascript":{source:`apache`,compressible:!0,extensions:[`ecma`]},"application/edhoc+cbor-seq":{source:`iana`},"application/edi-consent":{source:`iana`},"application/edi-x12":{source:`iana`,compressible:!1},"application/edifact":{source:`iana`,compressible:!1},"application/efi":{source:`iana`},"application/elm+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/elm+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.cap+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/emergencycalldata.comment+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.control+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.ecall.msd":{source:`iana`},"application/emergencycalldata.legacyesn+json":{source:`iana`,compressible:!0},"application/emergencycalldata.providerinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:`iana`,compressible:!0},"application/emergencycalldata.veds+xml":{source:`iana`,compressible:!0},"application/emma+xml":{source:`iana`,compressible:!0,extensions:[`emma`]},"application/emotionml+xml":{source:`iana`,compressible:!0,extensions:[`emotionml`]},"application/encaprtp":{source:`iana`},"application/entity-statement+jwt":{source:`iana`},"application/epp+xml":{source:`iana`,compressible:!0},"application/epub+zip":{source:`iana`,compressible:!1,extensions:[`epub`]},"application/eshop":{source:`iana`},"application/exi":{source:`iana`,extensions:[`exi`]},"application/expect-ct-report+json":{source:`iana`,compressible:!0},"application/express":{source:`iana`,extensions:[`exp`]},"application/fastinfoset":{source:`iana`},"application/fastsoap":{source:`iana`},"application/fdf":{source:`iana`,extensions:[`fdf`]},"application/fdt+xml":{source:`iana`,compressible:!0,extensions:[`fdt`]},"application/fhir+json":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fhir+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:`iana`},"application/flexfec":{source:`iana`},"application/font-sfnt":{source:`iana`},"application/font-tdpfr":{source:`iana`,extensions:[`pfr`]},"application/font-woff":{source:`iana`,compressible:!1},"application/framework-attributes+xml":{source:`iana`,compressible:!0},"application/geo+json":{source:`iana`,compressible:!0,extensions:[`geojson`]},"application/geo+json-seq":{source:`iana`},"application/geopackage+sqlite3":{source:`iana`},"application/geopose+json":{source:`iana`,compressible:!0},"application/geoxacml+json":{source:`iana`,compressible:!0},"application/geoxacml+xml":{source:`iana`,compressible:!0},"application/gltf-buffer":{source:`iana`},"application/gml+xml":{source:`iana`,compressible:!0,extensions:[`gml`]},"application/gnap-binding-jws":{source:`iana`},"application/gnap-binding-jwsd":{source:`iana`},"application/gnap-binding-rotation-jws":{source:`iana`},"application/gnap-binding-rotation-jwsd":{source:`iana`},"application/gpx+xml":{source:`apache`,compressible:!0,extensions:[`gpx`]},"application/grib":{source:`iana`},"application/gxf":{source:`apache`,extensions:[`gxf`]},"application/gzip":{source:`iana`,compressible:!1,extensions:[`gz`]},"application/h224":{source:`iana`},"application/held+xml":{source:`iana`,compressible:!0},"application/hjson":{extensions:[`hjson`]},"application/hl7v2+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/http":{source:`iana`},"application/hyperstudio":{source:`iana`,extensions:[`stk`]},"application/ibe-key-request+xml":{source:`iana`,compressible:!0},"application/ibe-pkg-reply+xml":{source:`iana`,compressible:!0},"application/ibe-pp-data":{source:`iana`},"application/iges":{source:`iana`},"application/im-iscomposing+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/index":{source:`iana`},"application/index.cmd":{source:`iana`},"application/index.obj":{source:`iana`},"application/index.response":{source:`iana`},"application/index.vnd":{source:`iana`},"application/inkml+xml":{source:`iana`,compressible:!0,extensions:[`ink`,`inkml`]},"application/iotp":{source:`iana`},"application/ipfix":{source:`iana`,extensions:[`ipfix`]},"application/ipp":{source:`iana`},"application/isup":{source:`iana`},"application/its+xml":{source:`iana`,compressible:!0,extensions:[`its`]},"application/java-archive":{source:`iana`,compressible:!1,extensions:[`jar`,`war`,`ear`]},"application/java-serialized-object":{source:`apache`,compressible:!1,extensions:[`ser`]},"application/java-vm":{source:`apache`,compressible:!1,extensions:[`class`]},"application/javascript":{source:`apache`,charset:`UTF-8`,compressible:!0,extensions:[`js`]},"application/jf2feed+json":{source:`iana`,compressible:!0},"application/jose":{source:`iana`},"application/jose+json":{source:`iana`,compressible:!0},"application/jrd+json":{source:`iana`,compressible:!0},"application/jscalendar+json":{source:`iana`,compressible:!0},"application/jscontact+json":{source:`iana`,compressible:!0},"application/json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`json`,`map`]},"application/json-patch+json":{source:`iana`,compressible:!0},"application/json-seq":{source:`iana`},"application/json5":{extensions:[`json5`]},"application/jsonml+json":{source:`apache`,compressible:!0,extensions:[`jsonml`]},"application/jsonpath":{source:`iana`},"application/jwk+json":{source:`iana`,compressible:!0},"application/jwk-set+json":{source:`iana`,compressible:!0},"application/jwk-set+jwt":{source:`iana`},"application/jwt":{source:`iana`},"application/kpml-request+xml":{source:`iana`,compressible:!0},"application/kpml-response+xml":{source:`iana`,compressible:!0},"application/ld+json":{source:`iana`,compressible:!0,extensions:[`jsonld`]},"application/lgr+xml":{source:`iana`,compressible:!0,extensions:[`lgr`]},"application/link-format":{source:`iana`},"application/linkset":{source:`iana`},"application/linkset+json":{source:`iana`,compressible:!0},"application/load-control+xml":{source:`iana`,compressible:!0},"application/logout+jwt":{source:`iana`},"application/lost+xml":{source:`iana`,compressible:!0,extensions:[`lostxml`]},"application/lostsync+xml":{source:`iana`,compressible:!0},"application/lpf+zip":{source:`iana`,compressible:!1},"application/lxf":{source:`iana`},"application/mac-binhex40":{source:`iana`,extensions:[`hqx`]},"application/mac-compactpro":{source:`apache`,extensions:[`cpt`]},"application/macwriteii":{source:`iana`},"application/mads+xml":{source:`iana`,compressible:!0,extensions:[`mads`]},"application/manifest+json":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`webmanifest`]},"application/marc":{source:`iana`,extensions:[`mrc`]},"application/marcxml+xml":{source:`iana`,compressible:!0,extensions:[`mrcx`]},"application/mathematica":{source:`iana`,extensions:[`ma`,`nb`,`mb`]},"application/mathml+xml":{source:`iana`,compressible:!0,extensions:[`mathml`]},"application/mathml-content+xml":{source:`iana`,compressible:!0},"application/mathml-presentation+xml":{source:`iana`,compressible:!0},"application/mbms-associated-procedure-description+xml":{source:`iana`,compressible:!0},"application/mbms-deregister+xml":{source:`iana`,compressible:!0},"application/mbms-envelope+xml":{source:`iana`,compressible:!0},"application/mbms-msk+xml":{source:`iana`,compressible:!0},"application/mbms-msk-response+xml":{source:`iana`,compressible:!0},"application/mbms-protection-description+xml":{source:`iana`,compressible:!0},"application/mbms-reception-report+xml":{source:`iana`,compressible:!0},"application/mbms-register+xml":{source:`iana`,compressible:!0},"application/mbms-register-response+xml":{source:`iana`,compressible:!0},"application/mbms-schedule+xml":{source:`iana`,compressible:!0},"application/mbms-user-service-description+xml":{source:`iana`,compressible:!0},"application/mbox":{source:`iana`,extensions:[`mbox`]},"application/media-policy-dataset+xml":{source:`iana`,compressible:!0,extensions:[`mpf`]},"application/media_control+xml":{source:`iana`,compressible:!0},"application/mediaservercontrol+xml":{source:`iana`,compressible:!0,extensions:[`mscml`]},"application/merge-patch+json":{source:`iana`,compressible:!0},"application/metalink+xml":{source:`apache`,compressible:!0,extensions:[`metalink`]},"application/metalink4+xml":{source:`iana`,compressible:!0,extensions:[`meta4`]},"application/mets+xml":{source:`iana`,compressible:!0,extensions:[`mets`]},"application/mf4":{source:`iana`},"application/mikey":{source:`iana`},"application/mipc":{source:`iana`},"application/missing-blocks+cbor-seq":{source:`iana`},"application/mmt-aei+xml":{source:`iana`,compressible:!0,extensions:[`maei`]},"application/mmt-usd+xml":{source:`iana`,compressible:!0,extensions:[`musd`]},"application/mods+xml":{source:`iana`,compressible:!0,extensions:[`mods`]},"application/moss-keys":{source:`iana`},"application/moss-signature":{source:`iana`},"application/mosskey-data":{source:`iana`},"application/mosskey-request":{source:`iana`},"application/mp21":{source:`iana`,extensions:[`m21`,`mp21`]},"application/mp4":{source:`iana`,extensions:[`mp4`,`mpg4`,`mp4s`,`m4p`]},"application/mpeg4-generic":{source:`iana`},"application/mpeg4-iod":{source:`iana`},"application/mpeg4-iod-xmt":{source:`iana`},"application/mrb-consumer+xml":{source:`iana`,compressible:!0},"application/mrb-publish+xml":{source:`iana`,compressible:!0},"application/msc-ivr+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msc-mixer+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/msix":{compressible:!1,extensions:[`msix`]},"application/msixbundle":{compressible:!1,extensions:[`msixbundle`]},"application/msword":{source:`iana`,compressible:!1,extensions:[`doc`,`dot`]},"application/mud+json":{source:`iana`,compressible:!0},"application/multipart-core":{source:`iana`},"application/mxf":{source:`iana`,extensions:[`mxf`]},"application/n-quads":{source:`iana`,extensions:[`nq`]},"application/n-triples":{source:`iana`,extensions:[`nt`]},"application/nasdata":{source:`iana`},"application/news-checkgroups":{source:`iana`,charset:`US-ASCII`},"application/news-groupinfo":{source:`iana`,charset:`US-ASCII`},"application/news-transmission":{source:`iana`},"application/nlsml+xml":{source:`iana`,compressible:!0},"application/node":{source:`iana`,extensions:[`cjs`]},"application/nss":{source:`iana`},"application/oauth-authz-req+jwt":{source:`iana`},"application/oblivious-dns-message":{source:`iana`},"application/ocsp-request":{source:`iana`},"application/ocsp-response":{source:`iana`},"application/octet-stream":{source:`iana`,compressible:!0,extensions:[`bin`,`dms`,`lrf`,`mar`,`so`,`dist`,`distz`,`pkg`,`bpk`,`dump`,`elc`,`deploy`,`exe`,`dll`,`deb`,`dmg`,`iso`,`img`,`msi`,`msp`,`msm`,`buffer`]},"application/oda":{source:`iana`,extensions:[`oda`]},"application/odm+xml":{source:`iana`,compressible:!0},"application/odx":{source:`iana`},"application/oebps-package+xml":{source:`iana`,compressible:!0,extensions:[`opf`]},"application/ogg":{source:`iana`,compressible:!1,extensions:[`ogx`]},"application/ohttp-keys":{source:`iana`},"application/omdoc+xml":{source:`apache`,compressible:!0,extensions:[`omdoc`]},"application/onenote":{source:`apache`,extensions:[`onetoc`,`onetoc2`,`onetmp`,`onepkg`,`one`,`onea`]},"application/opc-nodeset+xml":{source:`iana`,compressible:!0},"application/oscore":{source:`iana`},"application/oxps":{source:`iana`,extensions:[`oxps`]},"application/p21":{source:`iana`},"application/p21+zip":{source:`iana`,compressible:!1},"application/p2p-overlay+xml":{source:`iana`,compressible:!0,extensions:[`relo`]},"application/parityfec":{source:`iana`},"application/passport":{source:`iana`},"application/patch-ops-error+xml":{source:`iana`,compressible:!0,extensions:[`xer`]},"application/pdf":{source:`iana`,compressible:!1,extensions:[`pdf`]},"application/pdx":{source:`iana`},"application/pem-certificate-chain":{source:`iana`},"application/pgp-encrypted":{source:`iana`,compressible:!1,extensions:[`pgp`]},"application/pgp-keys":{source:`iana`,extensions:[`asc`]},"application/pgp-signature":{source:`iana`,extensions:[`sig`,`asc`]},"application/pics-rules":{source:`apache`,extensions:[`prf`]},"application/pidf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pidf-diff+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/pkcs10":{source:`iana`,extensions:[`p10`]},"application/pkcs12":{source:`iana`},"application/pkcs7-mime":{source:`iana`,extensions:[`p7m`,`p7c`]},"application/pkcs7-signature":{source:`iana`,extensions:[`p7s`]},"application/pkcs8":{source:`iana`,extensions:[`p8`]},"application/pkcs8-encrypted":{source:`iana`},"application/pkix-attr-cert":{source:`iana`,extensions:[`ac`]},"application/pkix-cert":{source:`iana`,extensions:[`cer`]},"application/pkix-crl":{source:`iana`,extensions:[`crl`]},"application/pkix-pkipath":{source:`iana`,extensions:[`pkipath`]},"application/pkixcmp":{source:`iana`,extensions:[`pki`]},"application/pls+xml":{source:`iana`,compressible:!0,extensions:[`pls`]},"application/poc-settings+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/postscript":{source:`iana`,compressible:!0,extensions:[`ai`,`eps`,`ps`]},"application/ppsp-tracker+json":{source:`iana`,compressible:!0},"application/private-token-issuer-directory":{source:`iana`},"application/private-token-request":{source:`iana`},"application/private-token-response":{source:`iana`},"application/problem+json":{source:`iana`,compressible:!0},"application/problem+xml":{source:`iana`,compressible:!0},"application/provenance+xml":{source:`iana`,compressible:!0,extensions:[`provx`]},"application/provided-claims+jwt":{source:`iana`},"application/prs.alvestrand.titrax-sheet":{source:`iana`},"application/prs.cww":{source:`iana`,extensions:[`cww`]},"application/prs.cyn":{source:`iana`,charset:`7-BIT`},"application/prs.hpub+zip":{source:`iana`,compressible:!1},"application/prs.implied-document+xml":{source:`iana`,compressible:!0},"application/prs.implied-executable":{source:`iana`},"application/prs.implied-object+json":{source:`iana`,compressible:!0},"application/prs.implied-object+json-seq":{source:`iana`},"application/prs.implied-object+yaml":{source:`iana`},"application/prs.implied-structure":{source:`iana`},"application/prs.mayfile":{source:`iana`},"application/prs.nprend":{source:`iana`},"application/prs.plucker":{source:`iana`},"application/prs.rdf-xml-crypt":{source:`iana`},"application/prs.vcfbzip2":{source:`iana`},"application/prs.xsf+xml":{source:`iana`,compressible:!0,extensions:[`xsf`]},"application/pskc+xml":{source:`iana`,compressible:!0,extensions:[`pskcxml`]},"application/pvd+json":{source:`iana`,compressible:!0},"application/qsig":{source:`iana`},"application/raml+yaml":{compressible:!0,extensions:[`raml`]},"application/raptorfec":{source:`iana`},"application/rdap+json":{source:`iana`,compressible:!0},"application/rdf+xml":{source:`iana`,compressible:!0,extensions:[`rdf`,`owl`]},"application/reginfo+xml":{source:`iana`,compressible:!0,extensions:[`rif`]},"application/relax-ng-compact-syntax":{source:`iana`,extensions:[`rnc`]},"application/remote-printing":{source:`apache`},"application/reputon+json":{source:`iana`,compressible:!0},"application/resolve-response+jwt":{source:`iana`},"application/resource-lists+xml":{source:`iana`,compressible:!0,extensions:[`rl`]},"application/resource-lists-diff+xml":{source:`iana`,compressible:!0,extensions:[`rld`]},"application/rfc+xml":{source:`iana`,compressible:!0},"application/riscos":{source:`iana`},"application/rlmi+xml":{source:`iana`,compressible:!0},"application/rls-services+xml":{source:`iana`,compressible:!0,extensions:[`rs`]},"application/route-apd+xml":{source:`iana`,compressible:!0,extensions:[`rapd`]},"application/route-s-tsid+xml":{source:`iana`,compressible:!0,extensions:[`sls`]},"application/route-usd+xml":{source:`iana`,compressible:!0,extensions:[`rusd`]},"application/rpki-checklist":{source:`iana`},"application/rpki-ghostbusters":{source:`iana`,extensions:[`gbr`]},"application/rpki-manifest":{source:`iana`,extensions:[`mft`]},"application/rpki-publication":{source:`iana`},"application/rpki-roa":{source:`iana`,extensions:[`roa`]},"application/rpki-signed-tal":{source:`iana`},"application/rpki-updown":{source:`iana`},"application/rsd+xml":{source:`apache`,compressible:!0,extensions:[`rsd`]},"application/rss+xml":{source:`apache`,compressible:!0,extensions:[`rss`]},"application/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"application/rtploopback":{source:`iana`},"application/rtx":{source:`iana`},"application/samlassertion+xml":{source:`iana`,compressible:!0},"application/samlmetadata+xml":{source:`iana`,compressible:!0},"application/sarif+json":{source:`iana`,compressible:!0},"application/sarif-external-properties+json":{source:`iana`,compressible:!0},"application/sbe":{source:`iana`},"application/sbml+xml":{source:`iana`,compressible:!0,extensions:[`sbml`]},"application/scaip+xml":{source:`iana`,compressible:!0},"application/scim+json":{source:`iana`,compressible:!0},"application/scvp-cv-request":{source:`iana`,extensions:[`scq`]},"application/scvp-cv-response":{source:`iana`,extensions:[`scs`]},"application/scvp-vp-request":{source:`iana`,extensions:[`spq`]},"application/scvp-vp-response":{source:`iana`,extensions:[`spp`]},"application/sdp":{source:`iana`,extensions:[`sdp`]},"application/secevent+jwt":{source:`iana`},"application/senml+cbor":{source:`iana`},"application/senml+json":{source:`iana`,compressible:!0},"application/senml+xml":{source:`iana`,compressible:!0,extensions:[`senmlx`]},"application/senml-etch+cbor":{source:`iana`},"application/senml-etch+json":{source:`iana`,compressible:!0},"application/senml-exi":{source:`iana`},"application/sensml+cbor":{source:`iana`},"application/sensml+json":{source:`iana`,compressible:!0},"application/sensml+xml":{source:`iana`,compressible:!0,extensions:[`sensmlx`]},"application/sensml-exi":{source:`iana`},"application/sep+xml":{source:`iana`,compressible:!0},"application/sep-exi":{source:`iana`},"application/session-info":{source:`iana`},"application/set-payment":{source:`iana`},"application/set-payment-initiation":{source:`iana`,extensions:[`setpay`]},"application/set-registration":{source:`iana`},"application/set-registration-initiation":{source:`iana`,extensions:[`setreg`]},"application/sgml":{source:`iana`},"application/sgml-open-catalog":{source:`iana`},"application/shf+xml":{source:`iana`,compressible:!0,extensions:[`shf`]},"application/sieve":{source:`iana`,extensions:[`siv`,`sieve`]},"application/simple-filter+xml":{source:`iana`,compressible:!0},"application/simple-message-summary":{source:`iana`},"application/simplesymbolcontainer":{source:`iana`},"application/sipc":{source:`iana`},"application/slate":{source:`iana`},"application/smil":{source:`apache`},"application/smil+xml":{source:`iana`,compressible:!0,extensions:[`smi`,`smil`]},"application/smpte336m":{source:`iana`},"application/soap+fastinfoset":{source:`iana`},"application/soap+xml":{source:`iana`,compressible:!0},"application/sparql-query":{source:`iana`,extensions:[`rq`]},"application/sparql-results+xml":{source:`iana`,compressible:!0,extensions:[`srx`]},"application/spdx+json":{source:`iana`,compressible:!0},"application/spirits-event+xml":{source:`iana`,compressible:!0},"application/sql":{source:`iana`,extensions:[`sql`]},"application/srgs":{source:`iana`,extensions:[`gram`]},"application/srgs+xml":{source:`iana`,compressible:!0,extensions:[`grxml`]},"application/sru+xml":{source:`iana`,compressible:!0,extensions:[`sru`]},"application/ssdl+xml":{source:`apache`,compressible:!0,extensions:[`ssdl`]},"application/sslkeylogfile":{source:`iana`},"application/ssml+xml":{source:`iana`,compressible:!0,extensions:[`ssml`]},"application/st2110-41":{source:`iana`},"application/stix+json":{source:`iana`,compressible:!0},"application/stratum":{source:`iana`},"application/swid+cbor":{source:`iana`},"application/swid+xml":{source:`iana`,compressible:!0,extensions:[`swidtag`]},"application/tamp-apex-update":{source:`iana`},"application/tamp-apex-update-confirm":{source:`iana`},"application/tamp-community-update":{source:`iana`},"application/tamp-community-update-confirm":{source:`iana`},"application/tamp-error":{source:`iana`},"application/tamp-sequence-adjust":{source:`iana`},"application/tamp-sequence-adjust-confirm":{source:`iana`},"application/tamp-status-query":{source:`iana`},"application/tamp-status-response":{source:`iana`},"application/tamp-update":{source:`iana`},"application/tamp-update-confirm":{source:`iana`},"application/tar":{compressible:!0},"application/taxii+json":{source:`iana`,compressible:!0},"application/td+json":{source:`iana`,compressible:!0},"application/tei+xml":{source:`iana`,compressible:!0,extensions:[`tei`,`teicorpus`]},"application/tetra_isi":{source:`iana`},"application/thraud+xml":{source:`iana`,compressible:!0,extensions:[`tfi`]},"application/timestamp-query":{source:`iana`},"application/timestamp-reply":{source:`iana`},"application/timestamped-data":{source:`iana`,extensions:[`tsd`]},"application/tlsrpt+gzip":{source:`iana`},"application/tlsrpt+json":{source:`iana`,compressible:!0},"application/tm+json":{source:`iana`,compressible:!0},"application/tnauthlist":{source:`iana`},"application/toc+cbor":{source:`iana`},"application/token-introspection+jwt":{source:`iana`},"application/toml":{source:`iana`,compressible:!0,extensions:[`toml`]},"application/trickle-ice-sdpfrag":{source:`iana`},"application/trig":{source:`iana`,extensions:[`trig`]},"application/trust-chain+json":{source:`iana`,compressible:!0},"application/trust-mark+jwt":{source:`iana`},"application/trust-mark-delegation+jwt":{source:`iana`},"application/ttml+xml":{source:`iana`,compressible:!0,extensions:[`ttml`]},"application/tve-trigger":{source:`iana`},"application/tzif":{source:`iana`},"application/tzif-leap":{source:`iana`},"application/ubjson":{compressible:!1,extensions:[`ubj`]},"application/uccs+cbor":{source:`iana`},"application/ujcs+json":{source:`iana`,compressible:!0},"application/ulpfec":{source:`iana`},"application/urc-grpsheet+xml":{source:`iana`,compressible:!0},"application/urc-ressheet+xml":{source:`iana`,compressible:!0,extensions:[`rsheet`]},"application/urc-targetdesc+xml":{source:`iana`,compressible:!0,extensions:[`td`]},"application/urc-uisocketdesc+xml":{source:`iana`,compressible:!0},"application/vc":{source:`iana`},"application/vc+cose":{source:`iana`},"application/vc+jwt":{source:`iana`},"application/vcard+json":{source:`iana`,compressible:!0},"application/vcard+xml":{source:`iana`,compressible:!0},"application/vemmi":{source:`iana`},"application/vividence.scriptfile":{source:`apache`},"application/vnd.1000minds.decision-model+xml":{source:`iana`,compressible:!0,extensions:[`1km`]},"application/vnd.1ob":{source:`iana`},"application/vnd.3gpp-prose+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3a+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ach+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-prose-pc8+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gnas":{source:`iana`},"application/vnd.3gpp.5gsa2x":{source:`iana`},"application/vnd.3gpp.5gsa2x-local-service-information":{source:`iana`},"application/vnd.3gpp.5gsv2x":{source:`iana`},"application/vnd.3gpp.5gsv2x-local-service-information":{source:`iana`},"application/vnd.3gpp.access-transfer-events+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.bsf+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.crs+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.current-location-discovery+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gmop+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.gtpc":{source:`iana`},"application/vnd.3gpp.interworking-data":{source:`iana`},"application/vnd.3gpp.lpp":{source:`iana`},"application/vnd.3gpp.mc-signalling-ear":{source:`iana`},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-msgstore-ctrl-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:`iana`},"application/vnd.3gpp.mcdata-regroup+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:`iana`},"application/vnd.3gpp.mcdata-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-regroup+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-regroup+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ngap":{source:`iana`},"application/vnd.3gpp.pfcp":{source:`iana`},"application/vnd.3gpp.pic-bw-large":{source:`iana`,extensions:[`plb`]},"application/vnd.3gpp.pic-bw-small":{source:`iana`,extensions:[`psb`]},"application/vnd.3gpp.pic-bw-var":{source:`iana`,extensions:[`pvb`]},"application/vnd.3gpp.pinapp-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.s1ap":{source:`iana`},"application/vnd.3gpp.seal-group-doc+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-location-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-mbms-usage-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-network-qos-management-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-ue-config-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-unicast-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.seal-user-profile-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.sms":{source:`iana`},"application/vnd.3gpp.sms+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.ussd+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp.v2x":{source:`iana`},"application/vnd.3gpp.vae-info+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:`iana`,compressible:!0},"application/vnd.3gpp2.sms":{source:`iana`},"application/vnd.3gpp2.tcap":{source:`iana`,extensions:[`tcap`]},"application/vnd.3lightssoftware.imagescal":{source:`iana`},"application/vnd.3m.post-it-notes":{source:`iana`,extensions:[`pwn`]},"application/vnd.accpac.simply.aso":{source:`iana`,extensions:[`aso`]},"application/vnd.accpac.simply.imp":{source:`iana`,extensions:[`imp`]},"application/vnd.acm.addressxfer+json":{source:`iana`,compressible:!0},"application/vnd.acm.chatbot+json":{source:`iana`,compressible:!0},"application/vnd.acucobol":{source:`iana`,extensions:[`acu`]},"application/vnd.acucorp":{source:`iana`,extensions:[`atc`,`acutc`]},"application/vnd.adobe.air-application-installer-package+zip":{source:`apache`,compressible:!1,extensions:[`air`]},"application/vnd.adobe.flash.movie":{source:`iana`},"application/vnd.adobe.formscentral.fcdt":{source:`iana`,extensions:[`fcdt`]},"application/vnd.adobe.fxp":{source:`iana`,extensions:[`fxp`,`fxpl`]},"application/vnd.adobe.partial-upload":{source:`iana`},"application/vnd.adobe.xdp+xml":{source:`iana`,compressible:!0,extensions:[`xdp`]},"application/vnd.adobe.xfdf":{source:`apache`,extensions:[`xfdf`]},"application/vnd.aether.imp":{source:`iana`},"application/vnd.afpc.afplinedata":{source:`iana`},"application/vnd.afpc.afplinedata-pagedef":{source:`iana`},"application/vnd.afpc.cmoca-cmresource":{source:`iana`},"application/vnd.afpc.foca-charset":{source:`iana`},"application/vnd.afpc.foca-codedfont":{source:`iana`},"application/vnd.afpc.foca-codepage":{source:`iana`},"application/vnd.afpc.modca":{source:`iana`},"application/vnd.afpc.modca-cmtable":{source:`iana`},"application/vnd.afpc.modca-formdef":{source:`iana`},"application/vnd.afpc.modca-mediummap":{source:`iana`},"application/vnd.afpc.modca-objectcontainer":{source:`iana`},"application/vnd.afpc.modca-overlay":{source:`iana`},"application/vnd.afpc.modca-pagesegment":{source:`iana`},"application/vnd.age":{source:`iana`,extensions:[`age`]},"application/vnd.ah-barcode":{source:`apache`},"application/vnd.ahead.space":{source:`iana`,extensions:[`ahead`]},"application/vnd.airzip.filesecure.azf":{source:`iana`,extensions:[`azf`]},"application/vnd.airzip.filesecure.azs":{source:`iana`,extensions:[`azs`]},"application/vnd.amadeus+json":{source:`iana`,compressible:!0},"application/vnd.amazon.ebook":{source:`apache`,extensions:[`azw`]},"application/vnd.amazon.mobi8-ebook":{source:`iana`},"application/vnd.americandynamics.acc":{source:`iana`,extensions:[`acc`]},"application/vnd.amiga.ami":{source:`iana`,extensions:[`ami`]},"application/vnd.amundsen.maze+xml":{source:`iana`,compressible:!0},"application/vnd.android.ota":{source:`iana`},"application/vnd.android.package-archive":{source:`apache`,compressible:!1,extensions:[`apk`]},"application/vnd.anki":{source:`iana`},"application/vnd.anser-web-certificate-issue-initiation":{source:`iana`,extensions:[`cii`]},"application/vnd.anser-web-funds-transfer-initiation":{source:`apache`,extensions:[`fti`]},"application/vnd.antix.game-component":{source:`iana`,extensions:[`atx`]},"application/vnd.apache.arrow.file":{source:`iana`},"application/vnd.apache.arrow.stream":{source:`iana`},"application/vnd.apache.parquet":{source:`iana`},"application/vnd.apache.thrift.binary":{source:`iana`},"application/vnd.apache.thrift.compact":{source:`iana`},"application/vnd.apache.thrift.json":{source:`iana`},"application/vnd.apexlang":{source:`iana`},"application/vnd.api+json":{source:`iana`,compressible:!0},"application/vnd.aplextor.warrp+json":{source:`iana`,compressible:!0},"application/vnd.apothekende.reservation+json":{source:`iana`,compressible:!0},"application/vnd.apple.installer+xml":{source:`iana`,compressible:!0,extensions:[`mpkg`]},"application/vnd.apple.keynote":{source:`iana`,extensions:[`key`]},"application/vnd.apple.mpegurl":{source:`iana`,extensions:[`m3u8`]},"application/vnd.apple.numbers":{source:`iana`,extensions:[`numbers`]},"application/vnd.apple.pages":{source:`iana`,extensions:[`pages`]},"application/vnd.apple.pkpass":{compressible:!1,extensions:[`pkpass`]},"application/vnd.arastra.swi":{source:`apache`},"application/vnd.aristanetworks.swi":{source:`iana`,extensions:[`swi`]},"application/vnd.artisan+json":{source:`iana`,compressible:!0},"application/vnd.artsquare":{source:`iana`},"application/vnd.astraea-software.iota":{source:`iana`,extensions:[`iota`]},"application/vnd.audiograph":{source:`iana`,extensions:[`aep`]},"application/vnd.autodesk.fbx":{extensions:[`fbx`]},"application/vnd.autopackage":{source:`iana`},"application/vnd.avalon+json":{source:`iana`,compressible:!0},"application/vnd.avistar+xml":{source:`iana`,compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:`iana`,compressible:!0,extensions:[`bmml`]},"application/vnd.balsamiq.bmpr":{source:`iana`},"application/vnd.banana-accounting":{source:`iana`},"application/vnd.bbf.usp.error":{source:`iana`},"application/vnd.bbf.usp.msg":{source:`iana`},"application/vnd.bbf.usp.msg+json":{source:`iana`,compressible:!0},"application/vnd.bekitzur-stech+json":{source:`iana`,compressible:!0},"application/vnd.belightsoft.lhzd+zip":{source:`iana`,compressible:!1},"application/vnd.belightsoft.lhzl+zip":{source:`iana`,compressible:!1},"application/vnd.bint.med-content":{source:`iana`},"application/vnd.biopax.rdf+xml":{source:`iana`,compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:`iana`},"application/vnd.blueice.multipass":{source:`iana`,extensions:[`mpm`]},"application/vnd.bluetooth.ep.oob":{source:`iana`},"application/vnd.bluetooth.le.oob":{source:`iana`},"application/vnd.bmi":{source:`iana`,extensions:[`bmi`]},"application/vnd.bpf":{source:`iana`},"application/vnd.bpf3":{source:`iana`},"application/vnd.businessobjects":{source:`iana`,extensions:[`rep`]},"application/vnd.byu.uapi+json":{source:`iana`,compressible:!0},"application/vnd.bzip3":{source:`iana`},"application/vnd.c3voc.schedule+xml":{source:`iana`,compressible:!0},"application/vnd.cab-jscript":{source:`iana`},"application/vnd.canon-cpdl":{source:`iana`},"application/vnd.canon-lips":{source:`iana`},"application/vnd.capasystems-pg+json":{source:`iana`,compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:`iana`},"application/vnd.century-systems.tcp_stream":{source:`iana`},"application/vnd.chemdraw+xml":{source:`iana`,compressible:!0,extensions:[`cdxml`]},"application/vnd.chess-pgn":{source:`iana`},"application/vnd.chipnuts.karaoke-mmd":{source:`iana`,extensions:[`mmd`]},"application/vnd.ciedi":{source:`iana`},"application/vnd.cinderella":{source:`iana`,extensions:[`cdy`]},"application/vnd.cirpack.isdn-ext":{source:`iana`},"application/vnd.citationstyles.style+xml":{source:`iana`,compressible:!0,extensions:[`csl`]},"application/vnd.claymore":{source:`iana`,extensions:[`cla`]},"application/vnd.cloanto.rp9":{source:`iana`,extensions:[`rp9`]},"application/vnd.clonk.c4group":{source:`iana`,extensions:[`c4g`,`c4d`,`c4f`,`c4p`,`c4u`]},"application/vnd.cluetrust.cartomobile-config":{source:`iana`,extensions:[`c11amc`]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:`iana`,extensions:[`c11amz`]},"application/vnd.cncf.helm.chart.content.v1.tar+gzip":{source:`iana`},"application/vnd.cncf.helm.chart.provenance.v1.prov":{source:`iana`},"application/vnd.cncf.helm.config.v1+json":{source:`iana`,compressible:!0},"application/vnd.coffeescript":{source:`iana`},"application/vnd.collabio.xodocuments.document":{source:`iana`},"application/vnd.collabio.xodocuments.document-template":{source:`iana`},"application/vnd.collabio.xodocuments.presentation":{source:`iana`},"application/vnd.collabio.xodocuments.presentation-template":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet":{source:`iana`},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:`iana`},"application/vnd.collection+json":{source:`iana`,compressible:!0},"application/vnd.collection.doc+json":{source:`iana`,compressible:!0},"application/vnd.collection.next+json":{source:`iana`,compressible:!0},"application/vnd.comicbook+zip":{source:`iana`,compressible:!1},"application/vnd.comicbook-rar":{source:`iana`},"application/vnd.commerce-battelle":{source:`iana`},"application/vnd.commonspace":{source:`iana`,extensions:[`csp`]},"application/vnd.contact.cmsg":{source:`iana`,extensions:[`cdbcmsg`]},"application/vnd.coreos.ignition+json":{source:`iana`,compressible:!0},"application/vnd.cosmocaller":{source:`iana`,extensions:[`cmc`]},"application/vnd.crick.clicker":{source:`iana`,extensions:[`clkx`]},"application/vnd.crick.clicker.keyboard":{source:`iana`,extensions:[`clkk`]},"application/vnd.crick.clicker.palette":{source:`iana`,extensions:[`clkp`]},"application/vnd.crick.clicker.template":{source:`iana`,extensions:[`clkt`]},"application/vnd.crick.clicker.wordbank":{source:`iana`,extensions:[`clkw`]},"application/vnd.criticaltools.wbs+xml":{source:`iana`,compressible:!0,extensions:[`wbs`]},"application/vnd.cryptii.pipe+json":{source:`iana`,compressible:!0},"application/vnd.crypto-shade-file":{source:`iana`},"application/vnd.cryptomator.encrypted":{source:`iana`},"application/vnd.cryptomator.vault":{source:`iana`},"application/vnd.ctc-posml":{source:`iana`,extensions:[`pml`]},"application/vnd.ctct.ws+xml":{source:`iana`,compressible:!0},"application/vnd.cups-pdf":{source:`iana`},"application/vnd.cups-postscript":{source:`iana`},"application/vnd.cups-ppd":{source:`iana`,extensions:[`ppd`]},"application/vnd.cups-raster":{source:`iana`},"application/vnd.cups-raw":{source:`iana`},"application/vnd.curl":{source:`iana`},"application/vnd.curl.car":{source:`apache`,extensions:[`car`]},"application/vnd.curl.pcurl":{source:`apache`,extensions:[`pcurl`]},"application/vnd.cyan.dean.root+xml":{source:`iana`,compressible:!0},"application/vnd.cybank":{source:`iana`},"application/vnd.cyclonedx+json":{source:`iana`,compressible:!0},"application/vnd.cyclonedx+xml":{source:`iana`,compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:`iana`,compressible:!1},"application/vnd.d3m-dataset":{source:`iana`},"application/vnd.d3m-problem":{source:`iana`},"application/vnd.dart":{source:`iana`,compressible:!0,extensions:[`dart`]},"application/vnd.data-vision.rdz":{source:`iana`,extensions:[`rdz`]},"application/vnd.datalog":{source:`iana`},"application/vnd.datapackage+json":{source:`iana`,compressible:!0},"application/vnd.dataresource+json":{source:`iana`,compressible:!0},"application/vnd.dbf":{source:`iana`,extensions:[`dbf`]},"application/vnd.dcmp+xml":{source:`iana`,compressible:!0,extensions:[`dcmp`]},"application/vnd.debian.binary-package":{source:`iana`},"application/vnd.dece.data":{source:`iana`,extensions:[`uvf`,`uvvf`,`uvd`,`uvvd`]},"application/vnd.dece.ttml+xml":{source:`iana`,compressible:!0,extensions:[`uvt`,`uvvt`]},"application/vnd.dece.unspecified":{source:`iana`,extensions:[`uvx`,`uvvx`]},"application/vnd.dece.zip":{source:`iana`,extensions:[`uvz`,`uvvz`]},"application/vnd.denovo.fcselayout-link":{source:`iana`,extensions:[`fe_launch`]},"application/vnd.desmume.movie":{source:`iana`},"application/vnd.dir-bi.plate-dl-nosuffix":{source:`iana`},"application/vnd.dm.delegation+xml":{source:`iana`,compressible:!0},"application/vnd.dna":{source:`iana`,extensions:[`dna`]},"application/vnd.document+json":{source:`iana`,compressible:!0},"application/vnd.dolby.mlp":{source:`apache`,extensions:[`mlp`]},"application/vnd.dolby.mobile.1":{source:`iana`},"application/vnd.dolby.mobile.2":{source:`iana`},"application/vnd.doremir.scorecloud-binary-document":{source:`iana`},"application/vnd.dpgraph":{source:`iana`,extensions:[`dpg`]},"application/vnd.dreamfactory":{source:`iana`,extensions:[`dfac`]},"application/vnd.drive+json":{source:`iana`,compressible:!0},"application/vnd.ds-keypoint":{source:`apache`,extensions:[`kpxx`]},"application/vnd.dtg.local":{source:`iana`},"application/vnd.dtg.local.flash":{source:`iana`},"application/vnd.dtg.local.html":{source:`iana`},"application/vnd.dvb.ait":{source:`iana`,extensions:[`ait`]},"application/vnd.dvb.dvbisl+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.dvbj":{source:`iana`},"application/vnd.dvb.esgcontainer":{source:`iana`},"application/vnd.dvb.ipdcdftnotifaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess":{source:`iana`},"application/vnd.dvb.ipdcesgaccess2":{source:`iana`},"application/vnd.dvb.ipdcesgpdd":{source:`iana`},"application/vnd.dvb.ipdcroaming":{source:`iana`},"application/vnd.dvb.iptv.alfec-base":{source:`iana`},"application/vnd.dvb.iptv.alfec-enhancement":{source:`iana`},"application/vnd.dvb.notif-aggregate-root+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-container+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.notif-init+xml":{source:`iana`,compressible:!0},"application/vnd.dvb.pfr":{source:`iana`},"application/vnd.dvb.service":{source:`iana`,extensions:[`svc`]},"application/vnd.dxr":{source:`iana`},"application/vnd.dynageo":{source:`iana`,extensions:[`geo`]},"application/vnd.dzr":{source:`iana`},"application/vnd.easykaraoke.cdgdownload":{source:`iana`},"application/vnd.ecdis-update":{source:`iana`},"application/vnd.ecip.rlp":{source:`iana`},"application/vnd.eclipse.ditto+json":{source:`iana`,compressible:!0},"application/vnd.ecowin.chart":{source:`iana`,extensions:[`mag`]},"application/vnd.ecowin.filerequest":{source:`iana`},"application/vnd.ecowin.fileupdate":{source:`iana`},"application/vnd.ecowin.series":{source:`iana`},"application/vnd.ecowin.seriesrequest":{source:`iana`},"application/vnd.ecowin.seriesupdate":{source:`iana`},"application/vnd.efi.img":{source:`iana`},"application/vnd.efi.iso":{source:`iana`},"application/vnd.eln+zip":{source:`iana`,compressible:!1},"application/vnd.emclient.accessrequest+xml":{source:`iana`,compressible:!0},"application/vnd.enliven":{source:`iana`,extensions:[`nml`]},"application/vnd.enphase.envoy":{source:`iana`},"application/vnd.eprints.data+xml":{source:`iana`,compressible:!0},"application/vnd.epson.esf":{source:`iana`,extensions:[`esf`]},"application/vnd.epson.msf":{source:`iana`,extensions:[`msf`]},"application/vnd.epson.quickanime":{source:`iana`,extensions:[`qam`]},"application/vnd.epson.salt":{source:`iana`,extensions:[`slt`]},"application/vnd.epson.ssf":{source:`iana`,extensions:[`ssf`]},"application/vnd.ericsson.quickcall":{source:`iana`},"application/vnd.erofs":{source:`iana`},"application/vnd.espass-espass+zip":{source:`iana`,compressible:!1},"application/vnd.eszigno3+xml":{source:`iana`,compressible:!0,extensions:[`es3`,`et3`]},"application/vnd.etsi.aoc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.asic-e+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.asic-s+zip":{source:`iana`,compressible:!1},"application/vnd.etsi.cug+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mcid+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.mheg5":{source:`iana`},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.pstn+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.sci+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.simservs+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.timestamp-token":{source:`iana`},"application/vnd.etsi.tsl+xml":{source:`iana`,compressible:!0},"application/vnd.etsi.tsl.der":{source:`iana`},"application/vnd.eu.kasparian.car+json":{source:`iana`,compressible:!0},"application/vnd.eudora.data":{source:`iana`},"application/vnd.evolv.ecig.profile":{source:`iana`},"application/vnd.evolv.ecig.settings":{source:`iana`},"application/vnd.evolv.ecig.theme":{source:`iana`},"application/vnd.exstream-empower+zip":{source:`iana`,compressible:!1},"application/vnd.exstream-package":{source:`iana`},"application/vnd.ezpix-album":{source:`iana`,extensions:[`ez2`]},"application/vnd.ezpix-package":{source:`iana`,extensions:[`ez3`]},"application/vnd.f-secure.mobile":{source:`iana`},"application/vnd.familysearch.gedcom+zip":{source:`iana`,compressible:!1},"application/vnd.fastcopy-disk-image":{source:`iana`},"application/vnd.fdf":{source:`apache`,extensions:[`fdf`]},"application/vnd.fdsn.mseed":{source:`iana`,extensions:[`mseed`]},"application/vnd.fdsn.seed":{source:`iana`,extensions:[`seed`,`dataless`]},"application/vnd.fdsn.stationxml+xml":{source:`iana`,charset:`XML-BASED`,compressible:!0},"application/vnd.ffsns":{source:`iana`},"application/vnd.ficlab.flb+zip":{source:`iana`,compressible:!1},"application/vnd.filmit.zfc":{source:`iana`},"application/vnd.fints":{source:`iana`},"application/vnd.firemonkeys.cloudcell":{source:`iana`},"application/vnd.flographit":{source:`iana`,extensions:[`gph`]},"application/vnd.fluxtime.clip":{source:`iana`,extensions:[`ftc`]},"application/vnd.font-fontforge-sfd":{source:`iana`},"application/vnd.framemaker":{source:`iana`,extensions:[`fm`,`frame`,`maker`,`book`]},"application/vnd.freelog.comic":{source:`iana`},"application/vnd.frogans.fnc":{source:`apache`,extensions:[`fnc`]},"application/vnd.frogans.ltf":{source:`apache`,extensions:[`ltf`]},"application/vnd.fsc.weblaunch":{source:`iana`,extensions:[`fsc`]},"application/vnd.fujifilm.fb.docuworks":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.binder":{source:`iana`},"application/vnd.fujifilm.fb.docuworks.container":{source:`iana`},"application/vnd.fujifilm.fb.jfi+xml":{source:`iana`,compressible:!0},"application/vnd.fujitsu.oasys":{source:`iana`,extensions:[`oas`]},"application/vnd.fujitsu.oasys2":{source:`iana`,extensions:[`oa2`]},"application/vnd.fujitsu.oasys3":{source:`iana`,extensions:[`oa3`]},"application/vnd.fujitsu.oasysgp":{source:`iana`,extensions:[`fg5`]},"application/vnd.fujitsu.oasysprs":{source:`iana`,extensions:[`bh2`]},"application/vnd.fujixerox.art-ex":{source:`iana`},"application/vnd.fujixerox.art4":{source:`iana`},"application/vnd.fujixerox.ddd":{source:`iana`,extensions:[`ddd`]},"application/vnd.fujixerox.docuworks":{source:`iana`,extensions:[`xdw`]},"application/vnd.fujixerox.docuworks.binder":{source:`iana`,extensions:[`xbd`]},"application/vnd.fujixerox.docuworks.container":{source:`iana`},"application/vnd.fujixerox.hbpl":{source:`iana`},"application/vnd.fut-misnet":{source:`iana`},"application/vnd.futoin+cbor":{source:`iana`},"application/vnd.futoin+json":{source:`iana`,compressible:!0},"application/vnd.fuzzysheet":{source:`iana`,extensions:[`fzs`]},"application/vnd.ga4gh.passport+jwt":{source:`iana`},"application/vnd.genomatix.tuxedo":{source:`iana`,extensions:[`txd`]},"application/vnd.genozip":{source:`iana`},"application/vnd.gentics.grd+json":{source:`iana`,compressible:!0},"application/vnd.gentoo.catmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.gentoo.ebuild":{source:`iana`},"application/vnd.gentoo.eclass":{source:`iana`},"application/vnd.gentoo.gpkg":{source:`iana`},"application/vnd.gentoo.manifest":{source:`iana`},"application/vnd.gentoo.pkgmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.gentoo.xpak":{source:`iana`},"application/vnd.geo+json":{source:`apache`,compressible:!0},"application/vnd.geocube+xml":{source:`apache`,compressible:!0},"application/vnd.geogebra.file":{source:`iana`,extensions:[`ggb`]},"application/vnd.geogebra.pinboard":{source:`iana`},"application/vnd.geogebra.slides":{source:`iana`,extensions:[`ggs`]},"application/vnd.geogebra.tool":{source:`iana`,extensions:[`ggt`]},"application/vnd.geometry-explorer":{source:`iana`,extensions:[`gex`,`gre`]},"application/vnd.geonext":{source:`iana`,extensions:[`gxt`]},"application/vnd.geoplan":{source:`iana`,extensions:[`g2w`]},"application/vnd.geospace":{source:`iana`,extensions:[`g3w`]},"application/vnd.gerber":{source:`iana`},"application/vnd.globalplatform.card-content-mgt":{source:`iana`},"application/vnd.globalplatform.card-content-mgt-response":{source:`iana`},"application/vnd.gmx":{source:`iana`,extensions:[`gmx`]},"application/vnd.gnu.taler.exchange+json":{source:`iana`,compressible:!0},"application/vnd.gnu.taler.merchant+json":{source:`iana`,compressible:!0},"application/vnd.google-apps.audio":{},"application/vnd.google-apps.document":{compressible:!1,extensions:[`gdoc`]},"application/vnd.google-apps.drawing":{compressible:!1,extensions:[`gdraw`]},"application/vnd.google-apps.drive-sdk":{compressible:!1},"application/vnd.google-apps.file":{},"application/vnd.google-apps.folder":{compressible:!1},"application/vnd.google-apps.form":{compressible:!1,extensions:[`gform`]},"application/vnd.google-apps.fusiontable":{},"application/vnd.google-apps.jam":{compressible:!1,extensions:[`gjam`]},"application/vnd.google-apps.mail-layout":{},"application/vnd.google-apps.map":{compressible:!1,extensions:[`gmap`]},"application/vnd.google-apps.photo":{},"application/vnd.google-apps.presentation":{compressible:!1,extensions:[`gslides`]},"application/vnd.google-apps.script":{compressible:!1,extensions:[`gscript`]},"application/vnd.google-apps.shortcut":{},"application/vnd.google-apps.site":{compressible:!1,extensions:[`gsite`]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:[`gsheet`]},"application/vnd.google-apps.unknown":{},"application/vnd.google-apps.video":{},"application/vnd.google-earth.kml+xml":{source:`iana`,compressible:!0,extensions:[`kml`]},"application/vnd.google-earth.kmz":{source:`iana`,compressible:!1,extensions:[`kmz`]},"application/vnd.gov.sk.e-form+xml":{source:`apache`,compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:`iana`,compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:`iana`,compressible:!0,extensions:[`xdcf`]},"application/vnd.gpxsee.map+xml":{source:`iana`,compressible:!0},"application/vnd.grafeq":{source:`iana`,extensions:[`gqf`,`gqs`]},"application/vnd.gridmp":{source:`iana`},"application/vnd.groove-account":{source:`iana`,extensions:[`gac`]},"application/vnd.groove-help":{source:`iana`,extensions:[`ghf`]},"application/vnd.groove-identity-message":{source:`iana`,extensions:[`gim`]},"application/vnd.groove-injector":{source:`iana`,extensions:[`grv`]},"application/vnd.groove-tool-message":{source:`iana`,extensions:[`gtm`]},"application/vnd.groove-tool-template":{source:`iana`,extensions:[`tpl`]},"application/vnd.groove-vcard":{source:`iana`,extensions:[`vcg`]},"application/vnd.hal+json":{source:`iana`,compressible:!0},"application/vnd.hal+xml":{source:`iana`,compressible:!0,extensions:[`hal`]},"application/vnd.handheld-entertainment+xml":{source:`iana`,compressible:!0,extensions:[`zmm`]},"application/vnd.hbci":{source:`iana`,extensions:[`hbci`]},"application/vnd.hc+json":{source:`iana`,compressible:!0},"application/vnd.hcl-bireports":{source:`iana`},"application/vnd.hdt":{source:`iana`},"application/vnd.heroku+json":{source:`iana`,compressible:!0},"application/vnd.hhe.lesson-player":{source:`iana`,extensions:[`les`]},"application/vnd.hp-hpgl":{source:`iana`,extensions:[`hpgl`]},"application/vnd.hp-hpid":{source:`iana`,extensions:[`hpid`]},"application/vnd.hp-hps":{source:`iana`,extensions:[`hps`]},"application/vnd.hp-jlyt":{source:`iana`,extensions:[`jlt`]},"application/vnd.hp-pcl":{source:`iana`,extensions:[`pcl`]},"application/vnd.hp-pclxl":{source:`iana`,extensions:[`pclxl`]},"application/vnd.hsl":{source:`iana`},"application/vnd.httphone":{source:`iana`},"application/vnd.hydrostatix.sof-data":{source:`iana`,extensions:[`sfd-hdstx`]},"application/vnd.hyper+json":{source:`iana`,compressible:!0},"application/vnd.hyper-item+json":{source:`iana`,compressible:!0},"application/vnd.hyperdrive+json":{source:`iana`,compressible:!0},"application/vnd.hzn-3d-crossword":{source:`iana`},"application/vnd.ibm.afplinedata":{source:`apache`},"application/vnd.ibm.electronic-media":{source:`iana`},"application/vnd.ibm.minipay":{source:`iana`,extensions:[`mpy`]},"application/vnd.ibm.modcap":{source:`apache`,extensions:[`afp`,`listafp`,`list3820`]},"application/vnd.ibm.rights-management":{source:`iana`,extensions:[`irm`]},"application/vnd.ibm.secure-container":{source:`iana`,extensions:[`sc`]},"application/vnd.iccprofile":{source:`iana`,extensions:[`icc`,`icm`]},"application/vnd.ieee.1905":{source:`iana`},"application/vnd.igloader":{source:`iana`,extensions:[`igl`]},"application/vnd.imagemeter.folder+zip":{source:`iana`,compressible:!1},"application/vnd.imagemeter.image+zip":{source:`iana`,compressible:!1},"application/vnd.immervision-ivp":{source:`iana`,extensions:[`ivp`]},"application/vnd.immervision-ivu":{source:`iana`,extensions:[`ivu`]},"application/vnd.ims.imsccv1p1":{source:`iana`},"application/vnd.ims.imsccv1p2":{source:`iana`},"application/vnd.ims.imsccv1p3":{source:`iana`},"application/vnd.ims.lis.v2.result+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:`iana`,compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:`iana`,compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:`iana`,compressible:!0},"application/vnd.informix-visionary":{source:`apache`},"application/vnd.infotech.project":{source:`iana`},"application/vnd.infotech.project+xml":{source:`iana`,compressible:!0},"application/vnd.innopath.wamp.notification":{source:`iana`},"application/vnd.insors.igm":{source:`iana`,extensions:[`igm`]},"application/vnd.intercon.formnet":{source:`iana`,extensions:[`xpw`,`xpx`]},"application/vnd.intergeo":{source:`iana`,extensions:[`i2g`]},"application/vnd.intertrust.digibox":{source:`iana`},"application/vnd.intertrust.nncp":{source:`iana`},"application/vnd.intu.qbo":{source:`iana`,extensions:[`qbo`]},"application/vnd.intu.qfx":{source:`iana`,extensions:[`qfx`]},"application/vnd.ipfs.ipns-record":{source:`iana`},"application/vnd.ipld.car":{source:`iana`},"application/vnd.ipld.dag-cbor":{source:`iana`},"application/vnd.ipld.dag-json":{source:`iana`},"application/vnd.ipld.raw":{source:`iana`},"application/vnd.iptc.g2.catalogitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:`iana`,compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:`iana`,compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:`iana`,extensions:[`rcprofile`]},"application/vnd.irepository.package+xml":{source:`iana`,compressible:!0,extensions:[`irp`]},"application/vnd.is-xpr":{source:`iana`,extensions:[`xpr`]},"application/vnd.isac.fcs":{source:`iana`,extensions:[`fcs`]},"application/vnd.iso11783-10+zip":{source:`iana`,compressible:!1},"application/vnd.jam":{source:`iana`,extensions:[`jam`]},"application/vnd.japannet-directory-service":{source:`iana`},"application/vnd.japannet-jpnstore-wakeup":{source:`iana`},"application/vnd.japannet-payment-wakeup":{source:`iana`},"application/vnd.japannet-registration":{source:`iana`},"application/vnd.japannet-registration-wakeup":{source:`iana`},"application/vnd.japannet-setstore-wakeup":{source:`iana`},"application/vnd.japannet-verification":{source:`iana`},"application/vnd.japannet-verification-wakeup":{source:`iana`},"application/vnd.jcp.javame.midlet-rms":{source:`iana`,extensions:[`rms`]},"application/vnd.jisp":{source:`iana`,extensions:[`jisp`]},"application/vnd.joost.joda-archive":{source:`iana`,extensions:[`joda`]},"application/vnd.jsk.isdn-ngn":{source:`iana`},"application/vnd.kahootz":{source:`iana`,extensions:[`ktz`,`ktr`]},"application/vnd.kde.karbon":{source:`iana`,extensions:[`karbon`]},"application/vnd.kde.kchart":{source:`iana`,extensions:[`chrt`]},"application/vnd.kde.kformula":{source:`iana`,extensions:[`kfo`]},"application/vnd.kde.kivio":{source:`iana`,extensions:[`flw`]},"application/vnd.kde.kontour":{source:`iana`,extensions:[`kon`]},"application/vnd.kde.kpresenter":{source:`iana`,extensions:[`kpr`,`kpt`]},"application/vnd.kde.kspread":{source:`iana`,extensions:[`ksp`]},"application/vnd.kde.kword":{source:`iana`,extensions:[`kwd`,`kwt`]},"application/vnd.kdl":{source:`iana`},"application/vnd.kenameaapp":{source:`iana`,extensions:[`htke`]},"application/vnd.keyman.kmp+zip":{source:`iana`,compressible:!1},"application/vnd.keyman.kmx":{source:`iana`},"application/vnd.kidspiration":{source:`iana`,extensions:[`kia`]},"application/vnd.kinar":{source:`iana`,extensions:[`kne`,`knp`]},"application/vnd.koan":{source:`iana`,extensions:[`skp`,`skd`,`skt`,`skm`]},"application/vnd.kodak-descriptor":{source:`iana`,extensions:[`sse`]},"application/vnd.las":{source:`iana`},"application/vnd.las.las+json":{source:`iana`,compressible:!0},"application/vnd.las.las+xml":{source:`iana`,compressible:!0,extensions:[`lasxml`]},"application/vnd.laszip":{source:`iana`},"application/vnd.ldev.productlicensing":{source:`iana`},"application/vnd.leap+json":{source:`iana`,compressible:!0},"application/vnd.liberty-request+xml":{source:`iana`,compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:`iana`,extensions:[`lbd`]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:`iana`,compressible:!0,extensions:[`lbe`]},"application/vnd.logipipe.circuit+zip":{source:`iana`,compressible:!1},"application/vnd.loom":{source:`iana`},"application/vnd.lotus-1-2-3":{source:`iana`,extensions:[`123`]},"application/vnd.lotus-approach":{source:`iana`,extensions:[`apr`]},"application/vnd.lotus-freelance":{source:`iana`,extensions:[`pre`]},"application/vnd.lotus-notes":{source:`iana`,extensions:[`nsf`]},"application/vnd.lotus-organizer":{source:`iana`,extensions:[`org`]},"application/vnd.lotus-screencam":{source:`iana`,extensions:[`scm`]},"application/vnd.lotus-wordpro":{source:`iana`,extensions:[`lwp`]},"application/vnd.macports.portpkg":{source:`iana`,extensions:[`portpkg`]},"application/vnd.mapbox-vector-tile":{source:`iana`,extensions:[`mvt`]},"application/vnd.marlin.drm.actiontoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.license+xml":{source:`iana`,compressible:!0},"application/vnd.marlin.drm.mdcf":{source:`iana`},"application/vnd.mason+json":{source:`iana`,compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:`iana`,compressible:!1},"application/vnd.maxmind.maxmind-db":{source:`iana`},"application/vnd.mcd":{source:`iana`,extensions:[`mcd`]},"application/vnd.mdl":{source:`iana`},"application/vnd.mdl-mbsdf":{source:`iana`},"application/vnd.medcalcdata":{source:`iana`,extensions:[`mc1`]},"application/vnd.mediastation.cdkey":{source:`iana`,extensions:[`cdkey`]},"application/vnd.medicalholodeck.recordxr":{source:`iana`},"application/vnd.meridian-slingshot":{source:`iana`},"application/vnd.mermaid":{source:`iana`},"application/vnd.mfer":{source:`iana`,extensions:[`mwf`]},"application/vnd.mfmp":{source:`iana`,extensions:[`mfm`]},"application/vnd.micro+json":{source:`iana`,compressible:!0},"application/vnd.micrografx.flo":{source:`iana`,extensions:[`flo`]},"application/vnd.micrografx.igx":{source:`iana`,extensions:[`igx`]},"application/vnd.microsoft.portable-executable":{source:`iana`},"application/vnd.microsoft.windows.thumbnail-cache":{source:`iana`},"application/vnd.miele+json":{source:`iana`,compressible:!0},"application/vnd.mif":{source:`iana`,extensions:[`mif`]},"application/vnd.minisoft-hp3000-save":{source:`iana`},"application/vnd.mitsubishi.misty-guard.trustweb":{source:`iana`},"application/vnd.mobius.daf":{source:`iana`,extensions:[`daf`]},"application/vnd.mobius.dis":{source:`iana`,extensions:[`dis`]},"application/vnd.mobius.mbk":{source:`iana`,extensions:[`mbk`]},"application/vnd.mobius.mqy":{source:`iana`,extensions:[`mqy`]},"application/vnd.mobius.msl":{source:`iana`,extensions:[`msl`]},"application/vnd.mobius.plc":{source:`iana`,extensions:[`plc`]},"application/vnd.mobius.txf":{source:`iana`,extensions:[`txf`]},"application/vnd.modl":{source:`iana`},"application/vnd.mophun.application":{source:`iana`,extensions:[`mpn`]},"application/vnd.mophun.certificate":{source:`iana`,extensions:[`mpc`]},"application/vnd.motorola.flexsuite":{source:`iana`},"application/vnd.motorola.flexsuite.adsi":{source:`iana`},"application/vnd.motorola.flexsuite.fis":{source:`iana`},"application/vnd.motorola.flexsuite.gotap":{source:`iana`},"application/vnd.motorola.flexsuite.kmr":{source:`iana`},"application/vnd.motorola.flexsuite.ttc":{source:`iana`},"application/vnd.motorola.flexsuite.wem":{source:`iana`},"application/vnd.motorola.iprm":{source:`iana`},"application/vnd.mozilla.xul+xml":{source:`iana`,compressible:!0,extensions:[`xul`]},"application/vnd.ms-3mfdocument":{source:`iana`},"application/vnd.ms-artgalry":{source:`iana`,extensions:[`cil`]},"application/vnd.ms-asf":{source:`iana`},"application/vnd.ms-cab-compressed":{source:`iana`,extensions:[`cab`]},"application/vnd.ms-color.iccprofile":{source:`apache`},"application/vnd.ms-excel":{source:`iana`,compressible:!1,extensions:[`xls`,`xlm`,`xla`,`xlc`,`xlt`,`xlw`]},"application/vnd.ms-excel.addin.macroenabled.12":{source:`iana`,extensions:[`xlam`]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:`iana`,extensions:[`xlsb`]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:`iana`,extensions:[`xlsm`]},"application/vnd.ms-excel.template.macroenabled.12":{source:`iana`,extensions:[`xltm`]},"application/vnd.ms-fontobject":{source:`iana`,compressible:!0,extensions:[`eot`]},"application/vnd.ms-htmlhelp":{source:`iana`,extensions:[`chm`]},"application/vnd.ms-ims":{source:`iana`,extensions:[`ims`]},"application/vnd.ms-lrm":{source:`iana`,extensions:[`lrm`]},"application/vnd.ms-office.activex+xml":{source:`iana`,compressible:!0},"application/vnd.ms-officetheme":{source:`iana`,extensions:[`thmx`]},"application/vnd.ms-opentype":{source:`apache`,compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:[`msg`]},"application/vnd.ms-package.obfuscated-opentype":{source:`apache`},"application/vnd.ms-pki.seccat":{source:`apache`,extensions:[`cat`]},"application/vnd.ms-pki.stl":{source:`apache`,extensions:[`stl`]},"application/vnd.ms-playready.initiator+xml":{source:`iana`,compressible:!0},"application/vnd.ms-powerpoint":{source:`iana`,compressible:!1,extensions:[`ppt`,`pps`,`pot`]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:`iana`,extensions:[`ppam`]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:`iana`,extensions:[`pptm`]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:`iana`,extensions:[`sldm`]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:`iana`,extensions:[`ppsm`]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:`iana`,extensions:[`potm`]},"application/vnd.ms-printdevicecapabilities+xml":{source:`iana`,compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:`apache`,compressible:!0},"application/vnd.ms-printschematicket+xml":{source:`iana`,compressible:!0},"application/vnd.ms-project":{source:`iana`,extensions:[`mpp`,`mpt`]},"application/vnd.ms-tnef":{source:`iana`},"application/vnd.ms-visio.viewer":{extensions:[`vdx`]},"application/vnd.ms-windows.devicepairing":{source:`iana`},"application/vnd.ms-windows.nwprinting.oob":{source:`iana`},"application/vnd.ms-windows.printerpairing":{source:`iana`},"application/vnd.ms-windows.wsd.oob":{source:`iana`},"application/vnd.ms-wmdrm.lic-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.lic-resp":{source:`iana`},"application/vnd.ms-wmdrm.meter-chlg-req":{source:`iana`},"application/vnd.ms-wmdrm.meter-resp":{source:`iana`},"application/vnd.ms-word.document.macroenabled.12":{source:`iana`,extensions:[`docm`]},"application/vnd.ms-word.template.macroenabled.12":{source:`iana`,extensions:[`dotm`]},"application/vnd.ms-works":{source:`iana`,extensions:[`wps`,`wks`,`wcm`,`wdb`]},"application/vnd.ms-wpl":{source:`iana`,extensions:[`wpl`]},"application/vnd.ms-xpsdocument":{source:`iana`,compressible:!1,extensions:[`xps`]},"application/vnd.msa-disk-image":{source:`iana`},"application/vnd.mseq":{source:`iana`,extensions:[`mseq`]},"application/vnd.msgpack":{source:`iana`},"application/vnd.msign":{source:`iana`},"application/vnd.multiad.creator":{source:`iana`},"application/vnd.multiad.creator.cif":{source:`iana`},"application/vnd.music-niff":{source:`iana`},"application/vnd.musician":{source:`iana`,extensions:[`mus`]},"application/vnd.muvee.style":{source:`iana`,extensions:[`msty`]},"application/vnd.mynfc":{source:`iana`,extensions:[`taglet`]},"application/vnd.nacamar.ybrid+json":{source:`iana`,compressible:!0},"application/vnd.nato.bindingdataobject+cbor":{source:`iana`},"application/vnd.nato.bindingdataobject+json":{source:`iana`,compressible:!0},"application/vnd.nato.bindingdataobject+xml":{source:`iana`,compressible:!0,extensions:[`bdo`]},"application/vnd.nato.openxmlformats-package.iepd+zip":{source:`iana`,compressible:!1},"application/vnd.ncd.control":{source:`iana`},"application/vnd.ncd.reference":{source:`iana`},"application/vnd.nearst.inv+json":{source:`iana`,compressible:!0},"application/vnd.nebumind.line":{source:`iana`},"application/vnd.nervana":{source:`iana`},"application/vnd.netfpx":{source:`iana`},"application/vnd.neurolanguage.nlu":{source:`iana`,extensions:[`nlu`]},"application/vnd.nimn":{source:`iana`},"application/vnd.nintendo.nitro.rom":{source:`iana`},"application/vnd.nintendo.snes.rom":{source:`iana`},"application/vnd.nitf":{source:`iana`,extensions:[`ntf`,`nitf`]},"application/vnd.noblenet-directory":{source:`iana`,extensions:[`nnd`]},"application/vnd.noblenet-sealer":{source:`iana`,extensions:[`nns`]},"application/vnd.noblenet-web":{source:`iana`,extensions:[`nnw`]},"application/vnd.nokia.catalogs":{source:`iana`},"application/vnd.nokia.conml+wbxml":{source:`iana`},"application/vnd.nokia.conml+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:`iana`},"application/vnd.nokia.landmark+wbxml":{source:`iana`},"application/vnd.nokia.landmark+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:`iana`,compressible:!0,extensions:[`ac`]},"application/vnd.nokia.n-gage.data":{source:`iana`,extensions:[`ngdat`]},"application/vnd.nokia.n-gage.symbian.install":{source:`apache`,extensions:[`n-gage`]},"application/vnd.nokia.ncd":{source:`iana`},"application/vnd.nokia.pcd+wbxml":{source:`iana`},"application/vnd.nokia.pcd+xml":{source:`iana`,compressible:!0},"application/vnd.nokia.radio-preset":{source:`iana`,extensions:[`rpst`]},"application/vnd.nokia.radio-presets":{source:`iana`,extensions:[`rpss`]},"application/vnd.novadigm.edm":{source:`iana`,extensions:[`edm`]},"application/vnd.novadigm.edx":{source:`iana`,extensions:[`edx`]},"application/vnd.novadigm.ext":{source:`iana`,extensions:[`ext`]},"application/vnd.ntt-local.content-share":{source:`iana`},"application/vnd.ntt-local.file-transfer":{source:`iana`},"application/vnd.ntt-local.ogw_remote-access":{source:`iana`},"application/vnd.ntt-local.sip-ta_remote":{source:`iana`},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:`iana`},"application/vnd.oai.workflows":{source:`iana`},"application/vnd.oai.workflows+json":{source:`iana`,compressible:!0},"application/vnd.oai.workflows+yaml":{source:`iana`},"application/vnd.oasis.opendocument.base":{source:`iana`},"application/vnd.oasis.opendocument.chart":{source:`iana`,extensions:[`odc`]},"application/vnd.oasis.opendocument.chart-template":{source:`iana`,extensions:[`otc`]},"application/vnd.oasis.opendocument.database":{source:`apache`,extensions:[`odb`]},"application/vnd.oasis.opendocument.formula":{source:`iana`,extensions:[`odf`]},"application/vnd.oasis.opendocument.formula-template":{source:`iana`,extensions:[`odft`]},"application/vnd.oasis.opendocument.graphics":{source:`iana`,compressible:!1,extensions:[`odg`]},"application/vnd.oasis.opendocument.graphics-template":{source:`iana`,extensions:[`otg`]},"application/vnd.oasis.opendocument.image":{source:`iana`,extensions:[`odi`]},"application/vnd.oasis.opendocument.image-template":{source:`iana`,extensions:[`oti`]},"application/vnd.oasis.opendocument.presentation":{source:`iana`,compressible:!1,extensions:[`odp`]},"application/vnd.oasis.opendocument.presentation-template":{source:`iana`,extensions:[`otp`]},"application/vnd.oasis.opendocument.spreadsheet":{source:`iana`,compressible:!1,extensions:[`ods`]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:`iana`,extensions:[`ots`]},"application/vnd.oasis.opendocument.text":{source:`iana`,compressible:!1,extensions:[`odt`]},"application/vnd.oasis.opendocument.text-master":{source:`iana`,extensions:[`odm`]},"application/vnd.oasis.opendocument.text-master-template":{source:`iana`},"application/vnd.oasis.opendocument.text-template":{source:`iana`,extensions:[`ott`]},"application/vnd.oasis.opendocument.text-web":{source:`iana`,extensions:[`oth`]},"application/vnd.obn":{source:`iana`},"application/vnd.ocf+cbor":{source:`iana`},"application/vnd.oci.image.manifest.v1+json":{source:`iana`,compressible:!0},"application/vnd.oftn.l10n+json":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:`iana`},"application/vnd.oipf.dae.svg+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.pae.gem":{source:`iana`},"application/vnd.oipf.spdiscovery+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.spdlist+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:`iana`,compressible:!0},"application/vnd.oipf.userprofile+xml":{source:`iana`,compressible:!0},"application/vnd.olpc-sugar":{source:`iana`,extensions:[`xo`]},"application/vnd.oma-scws-config":{source:`iana`},"application/vnd.oma-scws-http-request":{source:`iana`},"application/vnd.oma-scws-http-response":{source:`iana`},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:`apache`,compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.ltkm":{source:`iana`},"application/vnd.oma.bcast.notification+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:`iana`},"application/vnd.oma.bcast.sgboot":{source:`iana`},"application/vnd.oma.bcast.sgdd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.sgdu":{source:`iana`},"application/vnd.oma.bcast.simple-symbol-container":{source:`iana`},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:`apache`,compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:`iana`,compressible:!0},"application/vnd.oma.bcast.stkm":{source:`iana`},"application/vnd.oma.cab-address-book+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:`iana`,compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:`iana`,compressible:!0},"application/vnd.oma.dcd":{source:`iana`},"application/vnd.oma.dcdc":{source:`iana`},"application/vnd.oma.dd2+xml":{source:`iana`,compressible:!0,extensions:[`dd2`]},"application/vnd.oma.drm.risd+xml":{source:`iana`,compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:`iana`},"application/vnd.oma.lwm2m+json":{source:`iana`,compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:`iana`},"application/vnd.oma.pal+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.groups+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:`iana`,compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:`iana`,compressible:!0},"application/vnd.oma.push":{source:`iana`},"application/vnd.oma.scidm.messages+xml":{source:`iana`,compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:`iana`,compressible:!0},"application/vnd.omads-email+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-file+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omads-folder+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.omaloc-supl-init":{source:`iana`},"application/vnd.onepager":{source:`iana`},"application/vnd.onepagertamp":{source:`iana`},"application/vnd.onepagertamx":{source:`iana`},"application/vnd.onepagertat":{source:`iana`},"application/vnd.onepagertatp":{source:`iana`},"application/vnd.onepagertatx":{source:`iana`},"application/vnd.onvif.metadata":{source:`iana`},"application/vnd.openblox.game+xml":{source:`iana`,compressible:!0,extensions:[`obgx`]},"application/vnd.openblox.game-binary":{source:`iana`},"application/vnd.openeye.oeb":{source:`iana`},"application/vnd.openofficeorg.extension":{source:`apache`,extensions:[`oxt`]},"application/vnd.openstreetmap.data+xml":{source:`iana`,compressible:!0,extensions:[`osm`]},"application/vnd.opentimestamps.ots":{source:`iana`},"application/vnd.openvpi.dspx+json":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:`iana`,compressible:!1,extensions:[`pptx`]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:`iana`,extensions:[`sldx`]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:`iana`,extensions:[`ppsx`]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:`iana`,extensions:[`potx`]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:`iana`,compressible:!1,extensions:[`xlsx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:`iana`,extensions:[`xltx`]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:`iana`},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:`iana`,compressible:!1,extensions:[`docx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:`iana`,extensions:[`dotx`]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:`iana`,compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:`iana`,compressible:!0},"application/vnd.oracle.resource+json":{source:`iana`,compressible:!0},"application/vnd.orange.indata":{source:`iana`},"application/vnd.osa.netdeploy":{source:`iana`},"application/vnd.osgeo.mapguide.package":{source:`iana`,extensions:[`mgp`]},"application/vnd.osgi.bundle":{source:`iana`},"application/vnd.osgi.dp":{source:`iana`,extensions:[`dp`]},"application/vnd.osgi.subsystem":{source:`iana`,extensions:[`esa`]},"application/vnd.otps.ct-kip+xml":{source:`iana`,compressible:!0},"application/vnd.oxli.countgraph":{source:`iana`},"application/vnd.pagerduty+json":{source:`iana`,compressible:!0},"application/vnd.palm":{source:`iana`,extensions:[`pdb`,`pqa`,`oprc`]},"application/vnd.panoply":{source:`iana`},"application/vnd.paos.xml":{source:`iana`},"application/vnd.patentdive":{source:`iana`},"application/vnd.patientecommsdoc":{source:`iana`},"application/vnd.pawaafile":{source:`iana`,extensions:[`paw`]},"application/vnd.pcos":{source:`iana`},"application/vnd.pg.format":{source:`iana`,extensions:[`str`]},"application/vnd.pg.osasli":{source:`iana`,extensions:[`ei6`]},"application/vnd.piaccess.application-licence":{source:`iana`},"application/vnd.picsel":{source:`iana`,extensions:[`efif`]},"application/vnd.pmi.widget":{source:`iana`,extensions:[`wg`]},"application/vnd.poc.group-advertisement+xml":{source:`iana`,compressible:!0},"application/vnd.pocketlearn":{source:`iana`,extensions:[`plf`]},"application/vnd.powerbuilder6":{source:`iana`,extensions:[`pbd`]},"application/vnd.powerbuilder6-s":{source:`iana`},"application/vnd.powerbuilder7":{source:`iana`},"application/vnd.powerbuilder7-s":{source:`iana`},"application/vnd.powerbuilder75":{source:`iana`},"application/vnd.powerbuilder75-s":{source:`iana`},"application/vnd.preminet":{source:`iana`},"application/vnd.previewsystems.box":{source:`iana`,extensions:[`box`]},"application/vnd.procrate.brushset":{extensions:[`brushset`]},"application/vnd.procreate.brush":{extensions:[`brush`]},"application/vnd.procreate.dream":{extensions:[`drm`]},"application/vnd.proteus.magazine":{source:`iana`,extensions:[`mgz`]},"application/vnd.psfs":{source:`iana`},"application/vnd.pt.mundusmundi":{source:`iana`},"application/vnd.publishare-delta-tree":{source:`iana`,extensions:[`qps`]},"application/vnd.pvi.ptid1":{source:`iana`,extensions:[`ptid`]},"application/vnd.pwg-multiplexed":{source:`iana`},"application/vnd.pwg-xhtml-print+xml":{source:`iana`,compressible:!0,extensions:[`xhtm`]},"application/vnd.qualcomm.brew-app-res":{source:`iana`},"application/vnd.quarantainenet":{source:`iana`},"application/vnd.quark.quarkxpress":{source:`iana`,extensions:[`qxd`,`qxt`,`qwd`,`qwt`,`qxl`,`qxb`]},"application/vnd.quobject-quoxdocument":{source:`iana`},"application/vnd.radisys.moml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:`iana`,compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:`iana`,compressible:!0},"application/vnd.rainstor.data":{source:`iana`},"application/vnd.rapid":{source:`iana`},"application/vnd.rar":{source:`iana`,extensions:[`rar`]},"application/vnd.realvnc.bed":{source:`iana`,extensions:[`bed`]},"application/vnd.recordare.musicxml":{source:`iana`,extensions:[`mxl`]},"application/vnd.recordare.musicxml+xml":{source:`iana`,compressible:!0,extensions:[`musicxml`]},"application/vnd.relpipe":{source:`iana`},"application/vnd.renlearn.rlprint":{source:`iana`},"application/vnd.resilient.logic":{source:`iana`},"application/vnd.restful+json":{source:`iana`,compressible:!0},"application/vnd.rig.cryptonote":{source:`iana`,extensions:[`cryptonote`]},"application/vnd.rim.cod":{source:`apache`,extensions:[`cod`]},"application/vnd.rn-realmedia":{source:`apache`,extensions:[`rm`]},"application/vnd.rn-realmedia-vbr":{source:`apache`,extensions:[`rmvb`]},"application/vnd.route66.link66+xml":{source:`iana`,compressible:!0,extensions:[`link66`]},"application/vnd.rs-274x":{source:`iana`},"application/vnd.ruckus.download":{source:`iana`},"application/vnd.s3sms":{source:`iana`},"application/vnd.sailingtracker.track":{source:`iana`,extensions:[`st`]},"application/vnd.sar":{source:`iana`},"application/vnd.sbm.cid":{source:`iana`},"application/vnd.sbm.mid2":{source:`iana`},"application/vnd.scribus":{source:`iana`},"application/vnd.sealed.3df":{source:`iana`},"application/vnd.sealed.csf":{source:`iana`},"application/vnd.sealed.doc":{source:`iana`},"application/vnd.sealed.eml":{source:`iana`},"application/vnd.sealed.mht":{source:`iana`},"application/vnd.sealed.net":{source:`iana`},"application/vnd.sealed.ppt":{source:`iana`},"application/vnd.sealed.tiff":{source:`iana`},"application/vnd.sealed.xls":{source:`iana`},"application/vnd.sealedmedia.softseal.html":{source:`iana`},"application/vnd.sealedmedia.softseal.pdf":{source:`iana`},"application/vnd.seemail":{source:`iana`,extensions:[`see`]},"application/vnd.seis+json":{source:`iana`,compressible:!0},"application/vnd.sema":{source:`iana`,extensions:[`sema`]},"application/vnd.semd":{source:`iana`,extensions:[`semd`]},"application/vnd.semf":{source:`iana`,extensions:[`semf`]},"application/vnd.shade-save-file":{source:`iana`},"application/vnd.shana.informed.formdata":{source:`iana`,extensions:[`ifm`]},"application/vnd.shana.informed.formtemplate":{source:`iana`,extensions:[`itp`]},"application/vnd.shana.informed.interchange":{source:`iana`,extensions:[`iif`]},"application/vnd.shana.informed.package":{source:`iana`,extensions:[`ipk`]},"application/vnd.shootproof+json":{source:`iana`,compressible:!0},"application/vnd.shopkick+json":{source:`iana`,compressible:!0},"application/vnd.shp":{source:`iana`},"application/vnd.shx":{source:`iana`},"application/vnd.sigrok.session":{source:`iana`},"application/vnd.simtech-mindmapper":{source:`iana`,extensions:[`twd`,`twds`]},"application/vnd.siren+json":{source:`iana`,compressible:!0},"application/vnd.sketchometry":{source:`iana`},"application/vnd.smaf":{source:`iana`,extensions:[`mmf`]},"application/vnd.smart.notebook":{source:`iana`},"application/vnd.smart.teacher":{source:`iana`,extensions:[`teacher`]},"application/vnd.smintio.portals.archive":{source:`iana`},"application/vnd.snesdev-page-table":{source:`iana`},"application/vnd.software602.filler.form+xml":{source:`iana`,compressible:!0,extensions:[`fo`]},"application/vnd.software602.filler.form-xml-zip":{source:`iana`},"application/vnd.solent.sdkm+xml":{source:`iana`,compressible:!0,extensions:[`sdkm`,`sdkd`]},"application/vnd.spotfire.dxp":{source:`iana`,extensions:[`dxp`]},"application/vnd.spotfire.sfs":{source:`iana`,extensions:[`sfs`]},"application/vnd.sqlite3":{source:`iana`},"application/vnd.sss-cod":{source:`iana`},"application/vnd.sss-dtf":{source:`iana`},"application/vnd.sss-ntf":{source:`iana`},"application/vnd.stardivision.calc":{source:`apache`,extensions:[`sdc`]},"application/vnd.stardivision.draw":{source:`apache`,extensions:[`sda`]},"application/vnd.stardivision.impress":{source:`apache`,extensions:[`sdd`]},"application/vnd.stardivision.math":{source:`apache`,extensions:[`smf`]},"application/vnd.stardivision.writer":{source:`apache`,extensions:[`sdw`,`vor`]},"application/vnd.stardivision.writer-global":{source:`apache`,extensions:[`sgl`]},"application/vnd.stepmania.package":{source:`iana`,extensions:[`smzip`]},"application/vnd.stepmania.stepchart":{source:`iana`,extensions:[`sm`]},"application/vnd.street-stream":{source:`iana`},"application/vnd.sun.wadl+xml":{source:`iana`,compressible:!0,extensions:[`wadl`]},"application/vnd.sun.xml.calc":{source:`apache`,extensions:[`sxc`]},"application/vnd.sun.xml.calc.template":{source:`apache`,extensions:[`stc`]},"application/vnd.sun.xml.draw":{source:`apache`,extensions:[`sxd`]},"application/vnd.sun.xml.draw.template":{source:`apache`,extensions:[`std`]},"application/vnd.sun.xml.impress":{source:`apache`,extensions:[`sxi`]},"application/vnd.sun.xml.impress.template":{source:`apache`,extensions:[`sti`]},"application/vnd.sun.xml.math":{source:`apache`,extensions:[`sxm`]},"application/vnd.sun.xml.writer":{source:`apache`,extensions:[`sxw`]},"application/vnd.sun.xml.writer.global":{source:`apache`,extensions:[`sxg`]},"application/vnd.sun.xml.writer.template":{source:`apache`,extensions:[`stw`]},"application/vnd.sus-calendar":{source:`iana`,extensions:[`sus`,`susp`]},"application/vnd.svd":{source:`iana`,extensions:[`svd`]},"application/vnd.swiftview-ics":{source:`iana`},"application/vnd.sybyl.mol2":{source:`iana`},"application/vnd.sycle+xml":{source:`iana`,compressible:!0},"application/vnd.syft+json":{source:`iana`,compressible:!0},"application/vnd.symbian.install":{source:`apache`,extensions:[`sis`,`sisx`]},"application/vnd.syncml+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xsm`]},"application/vnd.syncml.dm+wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`bdm`]},"application/vnd.syncml.dm+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`xdm`]},"application/vnd.syncml.dm.notification":{source:`iana`},"application/vnd.syncml.dmddf+wbxml":{source:`iana`},"application/vnd.syncml.dmddf+xml":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`ddf`]},"application/vnd.syncml.dmtnds+wbxml":{source:`iana`},"application/vnd.syncml.dmtnds+xml":{source:`iana`,charset:`UTF-8`,compressible:!0},"application/vnd.syncml.ds.notification":{source:`iana`},"application/vnd.tableschema+json":{source:`iana`,compressible:!0},"application/vnd.tao.intent-module-archive":{source:`iana`,extensions:[`tao`]},"application/vnd.tcpdump.pcap":{source:`iana`,extensions:[`pcap`,`cap`,`dmp`]},"application/vnd.think-cell.ppttc+json":{source:`iana`,compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:`iana`,compressible:!0},"application/vnd.tml":{source:`iana`},"application/vnd.tmobile-livetv":{source:`iana`,extensions:[`tmo`]},"application/vnd.tri.onesource":{source:`iana`},"application/vnd.trid.tpt":{source:`iana`,extensions:[`tpt`]},"application/vnd.triscape.mxs":{source:`iana`,extensions:[`mxs`]},"application/vnd.trueapp":{source:`iana`,extensions:[`tra`]},"application/vnd.truedoc":{source:`iana`},"application/vnd.ubisoft.webplayer":{source:`iana`},"application/vnd.ufdl":{source:`iana`,extensions:[`ufd`,`ufdl`]},"application/vnd.uic.osdm+json":{source:`iana`,compressible:!0},"application/vnd.uiq.theme":{source:`iana`,extensions:[`utz`]},"application/vnd.umajin":{source:`iana`,extensions:[`umj`]},"application/vnd.unity":{source:`iana`,extensions:[`unityweb`]},"application/vnd.uoml+xml":{source:`iana`,compressible:!0,extensions:[`uoml`,`uo`]},"application/vnd.uplanet.alert":{source:`iana`},"application/vnd.uplanet.alert-wbxml":{source:`iana`},"application/vnd.uplanet.bearer-choice":{source:`iana`},"application/vnd.uplanet.bearer-choice-wbxml":{source:`iana`},"application/vnd.uplanet.cacheop":{source:`iana`},"application/vnd.uplanet.cacheop-wbxml":{source:`iana`},"application/vnd.uplanet.channel":{source:`iana`},"application/vnd.uplanet.channel-wbxml":{source:`iana`},"application/vnd.uplanet.list":{source:`iana`},"application/vnd.uplanet.list-wbxml":{source:`iana`},"application/vnd.uplanet.listcmd":{source:`iana`},"application/vnd.uplanet.listcmd-wbxml":{source:`iana`},"application/vnd.uplanet.signal":{source:`iana`},"application/vnd.uri-map":{source:`iana`},"application/vnd.valve.source.material":{source:`iana`},"application/vnd.vcx":{source:`iana`,extensions:[`vcx`]},"application/vnd.vd-study":{source:`iana`},"application/vnd.vectorworks":{source:`iana`},"application/vnd.vel+json":{source:`iana`,compressible:!0},"application/vnd.veraison.tsm-report+cbor":{source:`iana`},"application/vnd.veraison.tsm-report+json":{source:`iana`,compressible:!0},"application/vnd.verimatrix.vcas":{source:`iana`},"application/vnd.veritone.aion+json":{source:`iana`,compressible:!0},"application/vnd.veryant.thin":{source:`iana`},"application/vnd.ves.encrypted":{source:`iana`},"application/vnd.vidsoft.vidconference":{source:`iana`},"application/vnd.visio":{source:`iana`,extensions:[`vsd`,`vst`,`vss`,`vsw`,`vsdx`,`vtx`]},"application/vnd.visionary":{source:`iana`,extensions:[`vis`]},"application/vnd.vividence.scriptfile":{source:`iana`},"application/vnd.vocalshaper.vsp4":{source:`iana`},"application/vnd.vsf":{source:`iana`,extensions:[`vsf`]},"application/vnd.wap.sic":{source:`iana`},"application/vnd.wap.slc":{source:`iana`},"application/vnd.wap.wbxml":{source:`iana`,charset:`UTF-8`,extensions:[`wbxml`]},"application/vnd.wap.wmlc":{source:`iana`,extensions:[`wmlc`]},"application/vnd.wap.wmlscriptc":{source:`iana`,extensions:[`wmlsc`]},"application/vnd.wasmflow.wafl":{source:`iana`},"application/vnd.webturbo":{source:`iana`,extensions:[`wtb`]},"application/vnd.wfa.dpp":{source:`iana`},"application/vnd.wfa.p2p":{source:`iana`},"application/vnd.wfa.wsc":{source:`iana`},"application/vnd.windows.devicepairing":{source:`iana`},"application/vnd.wmc":{source:`iana`},"application/vnd.wmf.bootstrap":{source:`iana`},"application/vnd.wolfram.mathematica":{source:`iana`},"application/vnd.wolfram.mathematica.package":{source:`iana`},"application/vnd.wolfram.player":{source:`iana`,extensions:[`nbp`]},"application/vnd.wordlift":{source:`iana`},"application/vnd.wordperfect":{source:`iana`,extensions:[`wpd`]},"application/vnd.wqd":{source:`iana`,extensions:[`wqd`]},"application/vnd.wrq-hp3000-labelled":{source:`iana`},"application/vnd.wt.stf":{source:`iana`,extensions:[`stf`]},"application/vnd.wv.csp+wbxml":{source:`iana`},"application/vnd.wv.csp+xml":{source:`iana`,compressible:!0},"application/vnd.wv.ssp+xml":{source:`iana`,compressible:!0},"application/vnd.xacml+json":{source:`iana`,compressible:!0},"application/vnd.xara":{source:`iana`,extensions:[`xar`]},"application/vnd.xarin.cpj":{source:`iana`},"application/vnd.xecrets-encrypted":{source:`iana`},"application/vnd.xfdl":{source:`iana`,extensions:[`xfdl`]},"application/vnd.xfdl.webform":{source:`iana`},"application/vnd.xmi+xml":{source:`iana`,compressible:!0},"application/vnd.xmpie.cpkg":{source:`iana`},"application/vnd.xmpie.dpkg":{source:`iana`},"application/vnd.xmpie.plan":{source:`iana`},"application/vnd.xmpie.ppkg":{source:`iana`},"application/vnd.xmpie.xlim":{source:`iana`},"application/vnd.yamaha.hv-dic":{source:`iana`,extensions:[`hvd`]},"application/vnd.yamaha.hv-script":{source:`iana`,extensions:[`hvs`]},"application/vnd.yamaha.hv-voice":{source:`iana`,extensions:[`hvp`]},"application/vnd.yamaha.openscoreformat":{source:`iana`,extensions:[`osf`]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:`iana`,compressible:!0,extensions:[`osfpvg`]},"application/vnd.yamaha.remote-setup":{source:`iana`},"application/vnd.yamaha.smaf-audio":{source:`iana`,extensions:[`saf`]},"application/vnd.yamaha.smaf-phrase":{source:`iana`,extensions:[`spf`]},"application/vnd.yamaha.through-ngn":{source:`iana`},"application/vnd.yamaha.tunnel-udpencap":{source:`iana`},"application/vnd.yaoweme":{source:`iana`},"application/vnd.yellowriver-custom-menu":{source:`iana`,extensions:[`cmp`]},"application/vnd.zul":{source:`iana`,extensions:[`zir`,`zirz`]},"application/vnd.zzazz.deck+xml":{source:`iana`,compressible:!0,extensions:[`zaz`]},"application/voicexml+xml":{source:`iana`,compressible:!0,extensions:[`vxml`]},"application/voucher-cms+json":{source:`iana`,compressible:!0},"application/voucher-jws+json":{source:`iana`,compressible:!0},"application/vp":{source:`iana`},"application/vp+cose":{source:`iana`},"application/vp+jwt":{source:`iana`},"application/vq-rtcpxr":{source:`iana`},"application/wasm":{source:`iana`,compressible:!0,extensions:[`wasm`]},"application/watcherinfo+xml":{source:`iana`,compressible:!0,extensions:[`wif`]},"application/webpush-options+json":{source:`iana`,compressible:!0},"application/whoispp-query":{source:`iana`},"application/whoispp-response":{source:`iana`},"application/widget":{source:`iana`,extensions:[`wgt`]},"application/winhlp":{source:`apache`,extensions:[`hlp`]},"application/wita":{source:`iana`},"application/wordperfect5.1":{source:`iana`},"application/wsdl+xml":{source:`iana`,compressible:!0,extensions:[`wsdl`]},"application/wspolicy+xml":{source:`iana`,compressible:!0,extensions:[`wspolicy`]},"application/x-7z-compressed":{source:`apache`,compressible:!1,extensions:[`7z`]},"application/x-abiword":{source:`apache`,extensions:[`abw`]},"application/x-ace-compressed":{source:`apache`,extensions:[`ace`]},"application/x-amf":{source:`apache`},"application/x-apple-diskimage":{source:`apache`,extensions:[`dmg`]},"application/x-arj":{compressible:!1,extensions:[`arj`]},"application/x-authorware-bin":{source:`apache`,extensions:[`aab`,`x32`,`u32`,`vox`]},"application/x-authorware-map":{source:`apache`,extensions:[`aam`]},"application/x-authorware-seg":{source:`apache`,extensions:[`aas`]},"application/x-bcpio":{source:`apache`,extensions:[`bcpio`]},"application/x-bdoc":{compressible:!1,extensions:[`bdoc`]},"application/x-bittorrent":{source:`apache`,extensions:[`torrent`]},"application/x-blender":{extensions:[`blend`]},"application/x-blorb":{source:`apache`,extensions:[`blb`,`blorb`]},"application/x-bzip":{source:`apache`,compressible:!1,extensions:[`bz`]},"application/x-bzip2":{source:`apache`,compressible:!1,extensions:[`bz2`,`boz`]},"application/x-cbr":{source:`apache`,extensions:[`cbr`,`cba`,`cbt`,`cbz`,`cb7`]},"application/x-cdlink":{source:`apache`,extensions:[`vcd`]},"application/x-cfs-compressed":{source:`apache`,extensions:[`cfs`]},"application/x-chat":{source:`apache`,extensions:[`chat`]},"application/x-chess-pgn":{source:`apache`,extensions:[`pgn`]},"application/x-chrome-extension":{extensions:[`crx`]},"application/x-cocoa":{source:`nginx`,extensions:[`cco`]},"application/x-compress":{source:`apache`},"application/x-compressed":{extensions:[`rar`]},"application/x-conference":{source:`apache`,extensions:[`nsc`]},"application/x-cpio":{source:`apache`,extensions:[`cpio`]},"application/x-csh":{source:`apache`,extensions:[`csh`]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:`apache`,extensions:[`deb`,`udeb`]},"application/x-dgc-compressed":{source:`apache`,extensions:[`dgc`]},"application/x-director":{source:`apache`,extensions:[`dir`,`dcr`,`dxr`,`cst`,`cct`,`cxt`,`w3d`,`fgd`,`swa`]},"application/x-doom":{source:`apache`,extensions:[`wad`]},"application/x-dtbncx+xml":{source:`apache`,compressible:!0,extensions:[`ncx`]},"application/x-dtbook+xml":{source:`apache`,compressible:!0,extensions:[`dtb`]},"application/x-dtbresource+xml":{source:`apache`,compressible:!0,extensions:[`res`]},"application/x-dvi":{source:`apache`,compressible:!1,extensions:[`dvi`]},"application/x-envoy":{source:`apache`,extensions:[`evy`]},"application/x-eva":{source:`apache`,extensions:[`eva`]},"application/x-font-bdf":{source:`apache`,extensions:[`bdf`]},"application/x-font-dos":{source:`apache`},"application/x-font-framemaker":{source:`apache`},"application/x-font-ghostscript":{source:`apache`,extensions:[`gsf`]},"application/x-font-libgrx":{source:`apache`},"application/x-font-linux-psf":{source:`apache`,extensions:[`psf`]},"application/x-font-pcf":{source:`apache`,extensions:[`pcf`]},"application/x-font-snf":{source:`apache`,extensions:[`snf`]},"application/x-font-speedo":{source:`apache`},"application/x-font-sunos-news":{source:`apache`},"application/x-font-type1":{source:`apache`,extensions:[`pfa`,`pfb`,`pfm`,`afm`]},"application/x-font-vfont":{source:`apache`},"application/x-freearc":{source:`apache`,extensions:[`arc`]},"application/x-futuresplash":{source:`apache`,extensions:[`spl`]},"application/x-gca-compressed":{source:`apache`,extensions:[`gca`]},"application/x-glulx":{source:`apache`,extensions:[`ulx`]},"application/x-gnumeric":{source:`apache`,extensions:[`gnumeric`]},"application/x-gramps-xml":{source:`apache`,extensions:[`gramps`]},"application/x-gtar":{source:`apache`,extensions:[`gtar`]},"application/x-gzip":{source:`apache`},"application/x-hdf":{source:`apache`,extensions:[`hdf`]},"application/x-httpd-php":{compressible:!0,extensions:[`php`]},"application/x-install-instructions":{source:`apache`,extensions:[`install`]},"application/x-ipynb+json":{compressible:!0,extensions:[`ipynb`]},"application/x-iso9660-image":{source:`apache`,extensions:[`iso`]},"application/x-iwork-keynote-sffkey":{extensions:[`key`]},"application/x-iwork-numbers-sffnumbers":{extensions:[`numbers`]},"application/x-iwork-pages-sffpages":{extensions:[`pages`]},"application/x-java-archive-diff":{source:`nginx`,extensions:[`jardiff`]},"application/x-java-jnlp-file":{source:`apache`,compressible:!1,extensions:[`jnlp`]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:[`kdbx`]},"application/x-latex":{source:`apache`,compressible:!1,extensions:[`latex`]},"application/x-lua-bytecode":{extensions:[`luac`]},"application/x-lzh-compressed":{source:`apache`,extensions:[`lzh`,`lha`]},"application/x-makeself":{source:`nginx`,extensions:[`run`]},"application/x-mie":{source:`apache`,extensions:[`mie`]},"application/x-mobipocket-ebook":{source:`apache`,extensions:[`prc`,`mobi`]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:`apache`,extensions:[`application`]},"application/x-ms-shortcut":{source:`apache`,extensions:[`lnk`]},"application/x-ms-wmd":{source:`apache`,extensions:[`wmd`]},"application/x-ms-wmz":{source:`apache`,extensions:[`wmz`]},"application/x-ms-xbap":{source:`apache`,extensions:[`xbap`]},"application/x-msaccess":{source:`apache`,extensions:[`mdb`]},"application/x-msbinder":{source:`apache`,extensions:[`obd`]},"application/x-mscardfile":{source:`apache`,extensions:[`crd`]},"application/x-msclip":{source:`apache`,extensions:[`clp`]},"application/x-msdos-program":{extensions:[`exe`]},"application/x-msdownload":{source:`apache`,extensions:[`exe`,`dll`,`com`,`bat`,`msi`]},"application/x-msmediaview":{source:`apache`,extensions:[`mvb`,`m13`,`m14`]},"application/x-msmetafile":{source:`apache`,extensions:[`wmf`,`wmz`,`emf`,`emz`]},"application/x-msmoney":{source:`apache`,extensions:[`mny`]},"application/x-mspublisher":{source:`apache`,extensions:[`pub`]},"application/x-msschedule":{source:`apache`,extensions:[`scd`]},"application/x-msterminal":{source:`apache`,extensions:[`trm`]},"application/x-mswrite":{source:`apache`,extensions:[`wri`]},"application/x-netcdf":{source:`apache`,extensions:[`nc`,`cdf`]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:[`pac`]},"application/x-nzb":{source:`apache`,extensions:[`nzb`]},"application/x-perl":{source:`nginx`,extensions:[`pl`,`pm`]},"application/x-pilot":{source:`nginx`,extensions:[`prc`,`pdb`]},"application/x-pkcs12":{source:`apache`,compressible:!1,extensions:[`p12`,`pfx`]},"application/x-pkcs7-certificates":{source:`apache`,extensions:[`p7b`,`spc`]},"application/x-pkcs7-certreqresp":{source:`apache`,extensions:[`p7r`]},"application/x-pki-message":{source:`iana`},"application/x-rar-compressed":{source:`apache`,compressible:!1,extensions:[`rar`]},"application/x-redhat-package-manager":{source:`nginx`,extensions:[`rpm`]},"application/x-research-info-systems":{source:`apache`,extensions:[`ris`]},"application/x-sea":{source:`nginx`,extensions:[`sea`]},"application/x-sh":{source:`apache`,compressible:!0,extensions:[`sh`]},"application/x-shar":{source:`apache`,extensions:[`shar`]},"application/x-shockwave-flash":{source:`apache`,compressible:!1,extensions:[`swf`]},"application/x-silverlight-app":{source:`apache`,extensions:[`xap`]},"application/x-sql":{source:`apache`,extensions:[`sql`]},"application/x-stuffit":{source:`apache`,compressible:!1,extensions:[`sit`]},"application/x-stuffitx":{source:`apache`,extensions:[`sitx`]},"application/x-subrip":{source:`apache`,extensions:[`srt`]},"application/x-sv4cpio":{source:`apache`,extensions:[`sv4cpio`]},"application/x-sv4crc":{source:`apache`,extensions:[`sv4crc`]},"application/x-t3vm-image":{source:`apache`,extensions:[`t3`]},"application/x-tads":{source:`apache`,extensions:[`gam`]},"application/x-tar":{source:`apache`,compressible:!0,extensions:[`tar`]},"application/x-tcl":{source:`apache`,extensions:[`tcl`,`tk`]},"application/x-tex":{source:`apache`,extensions:[`tex`]},"application/x-tex-tfm":{source:`apache`,extensions:[`tfm`]},"application/x-texinfo":{source:`apache`,extensions:[`texinfo`,`texi`]},"application/x-tgif":{source:`apache`,extensions:[`obj`]},"application/x-ustar":{source:`apache`,extensions:[`ustar`]},"application/x-virtualbox-hdd":{compressible:!0,extensions:[`hdd`]},"application/x-virtualbox-ova":{compressible:!0,extensions:[`ova`]},"application/x-virtualbox-ovf":{compressible:!0,extensions:[`ovf`]},"application/x-virtualbox-vbox":{compressible:!0,extensions:[`vbox`]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:[`vbox-extpack`]},"application/x-virtualbox-vdi":{compressible:!0,extensions:[`vdi`]},"application/x-virtualbox-vhd":{compressible:!0,extensions:[`vhd`]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:[`vmdk`]},"application/x-wais-source":{source:`apache`,extensions:[`src`]},"application/x-web-app-manifest+json":{compressible:!0,extensions:[`webapp`]},"application/x-www-form-urlencoded":{source:`iana`,compressible:!0},"application/x-x509-ca-cert":{source:`iana`,extensions:[`der`,`crt`,`pem`]},"application/x-x509-ca-ra-cert":{source:`iana`},"application/x-x509-next-ca-cert":{source:`iana`},"application/x-xfig":{source:`apache`,extensions:[`fig`]},"application/x-xliff+xml":{source:`apache`,compressible:!0,extensions:[`xlf`]},"application/x-xpinstall":{source:`apache`,compressible:!1,extensions:[`xpi`]},"application/x-xz":{source:`apache`,extensions:[`xz`]},"application/x-zip-compressed":{extensions:[`zip`]},"application/x-zmachine":{source:`apache`,extensions:[`z1`,`z2`,`z3`,`z4`,`z5`,`z6`,`z7`,`z8`]},"application/x400-bp":{source:`iana`},"application/xacml+xml":{source:`iana`,compressible:!0},"application/xaml+xml":{source:`apache`,compressible:!0,extensions:[`xaml`]},"application/xcap-att+xml":{source:`iana`,compressible:!0,extensions:[`xav`]},"application/xcap-caps+xml":{source:`iana`,compressible:!0,extensions:[`xca`]},"application/xcap-diff+xml":{source:`iana`,compressible:!0,extensions:[`xdf`]},"application/xcap-el+xml":{source:`iana`,compressible:!0,extensions:[`xel`]},"application/xcap-error+xml":{source:`iana`,compressible:!0},"application/xcap-ns+xml":{source:`iana`,compressible:!0,extensions:[`xns`]},"application/xcon-conference-info+xml":{source:`iana`,compressible:!0},"application/xcon-conference-info-diff+xml":{source:`iana`,compressible:!0},"application/xenc+xml":{source:`iana`,compressible:!0,extensions:[`xenc`]},"application/xfdf":{source:`iana`,extensions:[`xfdf`]},"application/xhtml+xml":{source:`iana`,compressible:!0,extensions:[`xhtml`,`xht`]},"application/xhtml-voice+xml":{source:`apache`,compressible:!0},"application/xliff+xml":{source:`iana`,compressible:!0,extensions:[`xlf`]},"application/xml":{source:`iana`,compressible:!0,extensions:[`xml`,`xsl`,`xsd`,`rng`]},"application/xml-dtd":{source:`iana`,compressible:!0,extensions:[`dtd`]},"application/xml-external-parsed-entity":{source:`iana`},"application/xml-patch+xml":{source:`iana`,compressible:!0},"application/xmpp+xml":{source:`iana`,compressible:!0},"application/xop+xml":{source:`iana`,compressible:!0,extensions:[`xop`]},"application/xproc+xml":{source:`apache`,compressible:!0,extensions:[`xpl`]},"application/xslt+xml":{source:`iana`,compressible:!0,extensions:[`xsl`,`xslt`]},"application/xspf+xml":{source:`apache`,compressible:!0,extensions:[`xspf`]},"application/xv+xml":{source:`iana`,compressible:!0,extensions:[`mxml`,`xhvml`,`xvml`,`xvm`]},"application/yaml":{source:`iana`},"application/yang":{source:`iana`,extensions:[`yang`]},"application/yang-data+cbor":{source:`iana`},"application/yang-data+json":{source:`iana`,compressible:!0},"application/yang-data+xml":{source:`iana`,compressible:!0},"application/yang-patch+json":{source:`iana`,compressible:!0},"application/yang-patch+xml":{source:`iana`,compressible:!0},"application/yang-sid+json":{source:`iana`,compressible:!0},"application/yin+xml":{source:`iana`,compressible:!0,extensions:[`yin`]},"application/zip":{source:`iana`,compressible:!1,extensions:[`zip`]},"application/zip+dotlottie":{extensions:[`lottie`]},"application/zlib":{source:`iana`},"application/zstd":{source:`iana`},"audio/1d-interleaved-parityfec":{source:`iana`},"audio/32kadpcm":{source:`iana`},"audio/3gpp":{source:`iana`,compressible:!1,extensions:[`3gpp`]},"audio/3gpp2":{source:`iana`},"audio/aac":{source:`iana`,extensions:[`adts`,`aac`]},"audio/ac3":{source:`iana`},"audio/adpcm":{source:`apache`,extensions:[`adp`]},"audio/amr":{source:`iana`,extensions:[`amr`]},"audio/amr-wb":{source:`iana`},"audio/amr-wb+":{source:`iana`},"audio/aptx":{source:`iana`},"audio/asc":{source:`iana`},"audio/atrac-advanced-lossless":{source:`iana`},"audio/atrac-x":{source:`iana`},"audio/atrac3":{source:`iana`},"audio/basic":{source:`iana`,compressible:!1,extensions:[`au`,`snd`]},"audio/bv16":{source:`iana`},"audio/bv32":{source:`iana`},"audio/clearmode":{source:`iana`},"audio/cn":{source:`iana`},"audio/dat12":{source:`iana`},"audio/dls":{source:`iana`},"audio/dsr-es201108":{source:`iana`},"audio/dsr-es202050":{source:`iana`},"audio/dsr-es202211":{source:`iana`},"audio/dsr-es202212":{source:`iana`},"audio/dv":{source:`iana`},"audio/dvi4":{source:`iana`},"audio/eac3":{source:`iana`},"audio/encaprtp":{source:`iana`},"audio/evrc":{source:`iana`},"audio/evrc-qcp":{source:`iana`},"audio/evrc0":{source:`iana`},"audio/evrc1":{source:`iana`},"audio/evrcb":{source:`iana`},"audio/evrcb0":{source:`iana`},"audio/evrcb1":{source:`iana`},"audio/evrcnw":{source:`iana`},"audio/evrcnw0":{source:`iana`},"audio/evrcnw1":{source:`iana`},"audio/evrcwb":{source:`iana`},"audio/evrcwb0":{source:`iana`},"audio/evrcwb1":{source:`iana`},"audio/evs":{source:`iana`},"audio/flac":{source:`iana`},"audio/flexfec":{source:`iana`},"audio/fwdred":{source:`iana`},"audio/g711-0":{source:`iana`},"audio/g719":{source:`iana`},"audio/g722":{source:`iana`},"audio/g7221":{source:`iana`},"audio/g723":{source:`iana`},"audio/g726-16":{source:`iana`},"audio/g726-24":{source:`iana`},"audio/g726-32":{source:`iana`},"audio/g726-40":{source:`iana`},"audio/g728":{source:`iana`},"audio/g729":{source:`iana`},"audio/g7291":{source:`iana`},"audio/g729d":{source:`iana`},"audio/g729e":{source:`iana`},"audio/gsm":{source:`iana`},"audio/gsm-efr":{source:`iana`},"audio/gsm-hr-08":{source:`iana`},"audio/ilbc":{source:`iana`},"audio/ip-mr_v2.5":{source:`iana`},"audio/isac":{source:`apache`},"audio/l16":{source:`iana`},"audio/l20":{source:`iana`},"audio/l24":{source:`iana`,compressible:!1},"audio/l8":{source:`iana`},"audio/lpc":{source:`iana`},"audio/matroska":{source:`iana`},"audio/melp":{source:`iana`},"audio/melp1200":{source:`iana`},"audio/melp2400":{source:`iana`},"audio/melp600":{source:`iana`},"audio/mhas":{source:`iana`},"audio/midi":{source:`apache`,extensions:[`mid`,`midi`,`kar`,`rmi`]},"audio/midi-clip":{source:`iana`},"audio/mobile-xmf":{source:`iana`,extensions:[`mxmf`]},"audio/mp3":{compressible:!1,extensions:[`mp3`]},"audio/mp4":{source:`iana`,compressible:!1,extensions:[`m4a`,`mp4a`,`m4b`]},"audio/mp4a-latm":{source:`iana`},"audio/mpa":{source:`iana`},"audio/mpa-robust":{source:`iana`},"audio/mpeg":{source:`iana`,compressible:!1,extensions:[`mpga`,`mp2`,`mp2a`,`mp3`,`m2a`,`m3a`]},"audio/mpeg4-generic":{source:`iana`},"audio/musepack":{source:`apache`},"audio/ogg":{source:`iana`,compressible:!1,extensions:[`oga`,`ogg`,`spx`,`opus`]},"audio/opus":{source:`iana`},"audio/parityfec":{source:`iana`},"audio/pcma":{source:`iana`},"audio/pcma-wb":{source:`iana`},"audio/pcmu":{source:`iana`},"audio/pcmu-wb":{source:`iana`},"audio/prs.sid":{source:`iana`},"audio/qcelp":{source:`iana`},"audio/raptorfec":{source:`iana`},"audio/red":{source:`iana`},"audio/rtp-enc-aescm128":{source:`iana`},"audio/rtp-midi":{source:`iana`},"audio/rtploopback":{source:`iana`},"audio/rtx":{source:`iana`},"audio/s3m":{source:`apache`,extensions:[`s3m`]},"audio/scip":{source:`iana`},"audio/silk":{source:`apache`,extensions:[`sil`]},"audio/smv":{source:`iana`},"audio/smv-qcp":{source:`iana`},"audio/smv0":{source:`iana`},"audio/sofa":{source:`iana`},"audio/sp-midi":{source:`iana`},"audio/speex":{source:`iana`},"audio/t140c":{source:`iana`},"audio/t38":{source:`iana`},"audio/telephone-event":{source:`iana`},"audio/tetra_acelp":{source:`iana`},"audio/tetra_acelp_bb":{source:`iana`},"audio/tone":{source:`iana`},"audio/tsvcis":{source:`iana`},"audio/uemclip":{source:`iana`},"audio/ulpfec":{source:`iana`},"audio/usac":{source:`iana`},"audio/vdvi":{source:`iana`},"audio/vmr-wb":{source:`iana`},"audio/vnd.3gpp.iufp":{source:`iana`},"audio/vnd.4sb":{source:`iana`},"audio/vnd.audiokoz":{source:`iana`},"audio/vnd.celp":{source:`iana`},"audio/vnd.cisco.nse":{source:`iana`},"audio/vnd.cmles.radio-events":{source:`iana`},"audio/vnd.cns.anp1":{source:`iana`},"audio/vnd.cns.inf1":{source:`iana`},"audio/vnd.dece.audio":{source:`iana`,extensions:[`uva`,`uvva`]},"audio/vnd.digital-winds":{source:`iana`,extensions:[`eol`]},"audio/vnd.dlna.adts":{source:`iana`},"audio/vnd.dolby.heaac.1":{source:`iana`},"audio/vnd.dolby.heaac.2":{source:`iana`},"audio/vnd.dolby.mlp":{source:`iana`},"audio/vnd.dolby.mps":{source:`iana`},"audio/vnd.dolby.pl2":{source:`iana`},"audio/vnd.dolby.pl2x":{source:`iana`},"audio/vnd.dolby.pl2z":{source:`iana`},"audio/vnd.dolby.pulse.1":{source:`iana`},"audio/vnd.dra":{source:`iana`,extensions:[`dra`]},"audio/vnd.dts":{source:`iana`,extensions:[`dts`]},"audio/vnd.dts.hd":{source:`iana`,extensions:[`dtshd`]},"audio/vnd.dts.uhd":{source:`iana`},"audio/vnd.dvb.file":{source:`iana`},"audio/vnd.everad.plj":{source:`iana`},"audio/vnd.hns.audio":{source:`iana`},"audio/vnd.lucent.voice":{source:`iana`,extensions:[`lvp`]},"audio/vnd.ms-playready.media.pya":{source:`iana`,extensions:[`pya`]},"audio/vnd.nokia.mobile-xmf":{source:`iana`},"audio/vnd.nortel.vbk":{source:`iana`},"audio/vnd.nuera.ecelp4800":{source:`iana`,extensions:[`ecelp4800`]},"audio/vnd.nuera.ecelp7470":{source:`iana`,extensions:[`ecelp7470`]},"audio/vnd.nuera.ecelp9600":{source:`iana`,extensions:[`ecelp9600`]},"audio/vnd.octel.sbc":{source:`iana`},"audio/vnd.presonus.multitrack":{source:`iana`},"audio/vnd.qcelp":{source:`apache`},"audio/vnd.rhetorex.32kadpcm":{source:`iana`},"audio/vnd.rip":{source:`iana`,extensions:[`rip`]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:`iana`},"audio/vnd.vmx.cvsd":{source:`iana`},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:`iana`,compressible:!1},"audio/vorbis-config":{source:`iana`},"audio/wav":{compressible:!1,extensions:[`wav`]},"audio/wave":{compressible:!1,extensions:[`wav`]},"audio/webm":{source:`apache`,compressible:!1,extensions:[`weba`]},"audio/x-aac":{source:`apache`,compressible:!1,extensions:[`aac`]},"audio/x-aiff":{source:`apache`,extensions:[`aif`,`aiff`,`aifc`]},"audio/x-caf":{source:`apache`,compressible:!1,extensions:[`caf`]},"audio/x-flac":{source:`apache`,extensions:[`flac`]},"audio/x-m4a":{source:`nginx`,extensions:[`m4a`]},"audio/x-matroska":{source:`apache`,extensions:[`mka`]},"audio/x-mpegurl":{source:`apache`,extensions:[`m3u`]},"audio/x-ms-wax":{source:`apache`,extensions:[`wax`]},"audio/x-ms-wma":{source:`apache`,extensions:[`wma`]},"audio/x-pn-realaudio":{source:`apache`,extensions:[`ram`,`ra`]},"audio/x-pn-realaudio-plugin":{source:`apache`,extensions:[`rmp`]},"audio/x-realaudio":{source:`nginx`,extensions:[`ra`]},"audio/x-tta":{source:`apache`},"audio/x-wav":{source:`apache`,extensions:[`wav`]},"audio/xm":{source:`apache`,extensions:[`xm`]},"chemical/x-cdx":{source:`apache`,extensions:[`cdx`]},"chemical/x-cif":{source:`apache`,extensions:[`cif`]},"chemical/x-cmdf":{source:`apache`,extensions:[`cmdf`]},"chemical/x-cml":{source:`apache`,extensions:[`cml`]},"chemical/x-csml":{source:`apache`,extensions:[`csml`]},"chemical/x-pdb":{source:`apache`},"chemical/x-xyz":{source:`apache`,extensions:[`xyz`]},"font/collection":{source:`iana`,extensions:[`ttc`]},"font/otf":{source:`iana`,compressible:!0,extensions:[`otf`]},"font/sfnt":{source:`iana`},"font/ttf":{source:`iana`,compressible:!0,extensions:[`ttf`]},"font/woff":{source:`iana`,extensions:[`woff`]},"font/woff2":{source:`iana`,extensions:[`woff2`]},"image/aces":{source:`iana`,extensions:[`exr`]},"image/apng":{source:`iana`,compressible:!1,extensions:[`apng`]},"image/avci":{source:`iana`,extensions:[`avci`]},"image/avcs":{source:`iana`,extensions:[`avcs`]},"image/avif":{source:`iana`,compressible:!1,extensions:[`avif`]},"image/bmp":{source:`iana`,compressible:!0,extensions:[`bmp`,`dib`]},"image/cgm":{source:`iana`,extensions:[`cgm`]},"image/dicom-rle":{source:`iana`,extensions:[`drle`]},"image/dpx":{source:`iana`,extensions:[`dpx`]},"image/emf":{source:`iana`,extensions:[`emf`]},"image/fits":{source:`iana`,extensions:[`fits`]},"image/g3fax":{source:`iana`,extensions:[`g3`]},"image/gif":{source:`iana`,compressible:!1,extensions:[`gif`]},"image/heic":{source:`iana`,extensions:[`heic`]},"image/heic-sequence":{source:`iana`,extensions:[`heics`]},"image/heif":{source:`iana`,extensions:[`heif`]},"image/heif-sequence":{source:`iana`,extensions:[`heifs`]},"image/hej2k":{source:`iana`,extensions:[`hej2`]},"image/ief":{source:`iana`,extensions:[`ief`]},"image/j2c":{source:`iana`},"image/jaii":{source:`iana`,extensions:[`jaii`]},"image/jais":{source:`iana`,extensions:[`jais`]},"image/jls":{source:`iana`,extensions:[`jls`]},"image/jp2":{source:`iana`,compressible:!1,extensions:[`jp2`,`jpg2`]},"image/jpeg":{source:`iana`,compressible:!1,extensions:[`jpg`,`jpeg`,`jpe`]},"image/jph":{source:`iana`,extensions:[`jph`]},"image/jphc":{source:`iana`,extensions:[`jhc`]},"image/jpm":{source:`iana`,compressible:!1,extensions:[`jpm`,`jpgm`]},"image/jpx":{source:`iana`,compressible:!1,extensions:[`jpx`,`jpf`]},"image/jxl":{source:`iana`,extensions:[`jxl`]},"image/jxr":{source:`iana`,extensions:[`jxr`]},"image/jxra":{source:`iana`,extensions:[`jxra`]},"image/jxrs":{source:`iana`,extensions:[`jxrs`]},"image/jxs":{source:`iana`,extensions:[`jxs`]},"image/jxsc":{source:`iana`,extensions:[`jxsc`]},"image/jxsi":{source:`iana`,extensions:[`jxsi`]},"image/jxss":{source:`iana`,extensions:[`jxss`]},"image/ktx":{source:`iana`,extensions:[`ktx`]},"image/ktx2":{source:`iana`,extensions:[`ktx2`]},"image/naplps":{source:`iana`},"image/pjpeg":{compressible:!1,extensions:[`jfif`]},"image/png":{source:`iana`,compressible:!1,extensions:[`png`]},"image/prs.btif":{source:`iana`,extensions:[`btif`,`btf`]},"image/prs.pti":{source:`iana`,extensions:[`pti`]},"image/pwg-raster":{source:`iana`},"image/sgi":{source:`apache`,extensions:[`sgi`]},"image/svg+xml":{source:`iana`,compressible:!0,extensions:[`svg`,`svgz`]},"image/t38":{source:`iana`,extensions:[`t38`]},"image/tiff":{source:`iana`,compressible:!1,extensions:[`tif`,`tiff`]},"image/tiff-fx":{source:`iana`,extensions:[`tfx`]},"image/vnd.adobe.photoshop":{source:`iana`,compressible:!0,extensions:[`psd`]},"image/vnd.airzip.accelerator.azv":{source:`iana`,extensions:[`azv`]},"image/vnd.clip":{source:`iana`},"image/vnd.cns.inf2":{source:`iana`},"image/vnd.dece.graphic":{source:`iana`,extensions:[`uvi`,`uvvi`,`uvg`,`uvvg`]},"image/vnd.djvu":{source:`iana`,extensions:[`djvu`,`djv`]},"image/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"image/vnd.dwg":{source:`iana`,extensions:[`dwg`]},"image/vnd.dxf":{source:`iana`,extensions:[`dxf`]},"image/vnd.fastbidsheet":{source:`iana`,extensions:[`fbs`]},"image/vnd.fpx":{source:`iana`,extensions:[`fpx`]},"image/vnd.fst":{source:`iana`,extensions:[`fst`]},"image/vnd.fujixerox.edmics-mmr":{source:`iana`,extensions:[`mmr`]},"image/vnd.fujixerox.edmics-rlc":{source:`iana`,extensions:[`rlc`]},"image/vnd.globalgraphics.pgb":{source:`iana`},"image/vnd.microsoft.icon":{source:`iana`,compressible:!0,extensions:[`ico`]},"image/vnd.mix":{source:`iana`},"image/vnd.mozilla.apng":{source:`iana`},"image/vnd.ms-dds":{compressible:!0,extensions:[`dds`]},"image/vnd.ms-modi":{source:`iana`,extensions:[`mdi`]},"image/vnd.ms-photo":{source:`apache`,extensions:[`wdp`]},"image/vnd.net-fpx":{source:`iana`,extensions:[`npx`]},"image/vnd.pco.b16":{source:`iana`,extensions:[`b16`]},"image/vnd.radiance":{source:`iana`},"image/vnd.sealed.png":{source:`iana`},"image/vnd.sealedmedia.softseal.gif":{source:`iana`},"image/vnd.sealedmedia.softseal.jpg":{source:`iana`},"image/vnd.svf":{source:`iana`},"image/vnd.tencent.tap":{source:`iana`,extensions:[`tap`]},"image/vnd.valve.source.texture":{source:`iana`,extensions:[`vtf`]},"image/vnd.wap.wbmp":{source:`iana`,extensions:[`wbmp`]},"image/vnd.xiff":{source:`iana`,extensions:[`xif`]},"image/vnd.zbrush.pcx":{source:`iana`,extensions:[`pcx`]},"image/webp":{source:`iana`,extensions:[`webp`]},"image/wmf":{source:`iana`,extensions:[`wmf`]},"image/x-3ds":{source:`apache`,extensions:[`3ds`]},"image/x-adobe-dng":{extensions:[`dng`]},"image/x-cmu-raster":{source:`apache`,extensions:[`ras`]},"image/x-cmx":{source:`apache`,extensions:[`cmx`]},"image/x-emf":{source:`iana`},"image/x-freehand":{source:`apache`,extensions:[`fh`,`fhc`,`fh4`,`fh5`,`fh7`]},"image/x-icon":{source:`apache`,compressible:!0,extensions:[`ico`]},"image/x-jng":{source:`nginx`,extensions:[`jng`]},"image/x-mrsid-image":{source:`apache`,extensions:[`sid`]},"image/x-ms-bmp":{source:`nginx`,compressible:!0,extensions:[`bmp`]},"image/x-pcx":{source:`apache`,extensions:[`pcx`]},"image/x-pict":{source:`apache`,extensions:[`pic`,`pct`]},"image/x-portable-anymap":{source:`apache`,extensions:[`pnm`]},"image/x-portable-bitmap":{source:`apache`,extensions:[`pbm`]},"image/x-portable-graymap":{source:`apache`,extensions:[`pgm`]},"image/x-portable-pixmap":{source:`apache`,extensions:[`ppm`]},"image/x-rgb":{source:`apache`,extensions:[`rgb`]},"image/x-tga":{source:`apache`,extensions:[`tga`]},"image/x-wmf":{source:`iana`},"image/x-xbitmap":{source:`apache`,extensions:[`xbm`]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:`apache`,extensions:[`xpm`]},"image/x-xwindowdump":{source:`apache`,extensions:[`xwd`]},"message/bhttp":{source:`iana`},"message/cpim":{source:`iana`},"message/delivery-status":{source:`iana`},"message/disposition-notification":{source:`iana`,extensions:[`disposition-notification`]},"message/external-body":{source:`iana`},"message/feedback-report":{source:`iana`},"message/global":{source:`iana`,extensions:[`u8msg`]},"message/global-delivery-status":{source:`iana`,extensions:[`u8dsn`]},"message/global-disposition-notification":{source:`iana`,extensions:[`u8mdn`]},"message/global-headers":{source:`iana`,extensions:[`u8hdr`]},"message/http":{source:`iana`,compressible:!1},"message/imdn+xml":{source:`iana`,compressible:!0},"message/mls":{source:`iana`},"message/news":{source:`apache`},"message/ohttp-req":{source:`iana`},"message/ohttp-res":{source:`iana`},"message/partial":{source:`iana`,compressible:!1},"message/rfc822":{source:`iana`,compressible:!0,extensions:[`eml`,`mime`,`mht`,`mhtml`]},"message/s-http":{source:`apache`},"message/sip":{source:`iana`},"message/sipfrag":{source:`iana`},"message/tracking-status":{source:`iana`},"message/vnd.si.simp":{source:`apache`},"message/vnd.wfa.wsc":{source:`iana`,extensions:[`wsc`]},"model/3mf":{source:`iana`,extensions:[`3mf`]},"model/e57":{source:`iana`},"model/gltf+json":{source:`iana`,compressible:!0,extensions:[`gltf`]},"model/gltf-binary":{source:`iana`,compressible:!0,extensions:[`glb`]},"model/iges":{source:`iana`,compressible:!1,extensions:[`igs`,`iges`]},"model/jt":{source:`iana`,extensions:[`jt`]},"model/mesh":{source:`iana`,compressible:!1,extensions:[`msh`,`mesh`,`silo`]},"model/mtl":{source:`iana`,extensions:[`mtl`]},"model/obj":{source:`iana`,extensions:[`obj`]},"model/prc":{source:`iana`,extensions:[`prc`]},"model/step":{source:`iana`,extensions:[`step`,`stp`,`stpnc`,`p21`,`210`]},"model/step+xml":{source:`iana`,compressible:!0,extensions:[`stpx`]},"model/step+zip":{source:`iana`,compressible:!1,extensions:[`stpz`]},"model/step-xml+zip":{source:`iana`,compressible:!1,extensions:[`stpxz`]},"model/stl":{source:`iana`,extensions:[`stl`]},"model/u3d":{source:`iana`,extensions:[`u3d`]},"model/vnd.bary":{source:`iana`,extensions:[`bary`]},"model/vnd.cld":{source:`iana`,extensions:[`cld`]},"model/vnd.collada+xml":{source:`iana`,compressible:!0,extensions:[`dae`]},"model/vnd.dwf":{source:`iana`,extensions:[`dwf`]},"model/vnd.flatland.3dml":{source:`iana`},"model/vnd.gdl":{source:`iana`,extensions:[`gdl`]},"model/vnd.gs-gdl":{source:`apache`},"model/vnd.gs.gdl":{source:`iana`},"model/vnd.gtw":{source:`iana`,extensions:[`gtw`]},"model/vnd.moml+xml":{source:`iana`,compressible:!0},"model/vnd.mts":{source:`iana`,extensions:[`mts`]},"model/vnd.opengex":{source:`iana`,extensions:[`ogex`]},"model/vnd.parasolid.transmit.binary":{source:`iana`,extensions:[`x_b`]},"model/vnd.parasolid.transmit.text":{source:`iana`,extensions:[`x_t`]},"model/vnd.pytha.pyox":{source:`iana`,extensions:[`pyo`,`pyox`]},"model/vnd.rosette.annotated-data-model":{source:`iana`},"model/vnd.sap.vds":{source:`iana`,extensions:[`vds`]},"model/vnd.usda":{source:`iana`,extensions:[`usda`]},"model/vnd.usdz+zip":{source:`iana`,compressible:!1,extensions:[`usdz`]},"model/vnd.valve.source.compiled-map":{source:`iana`,extensions:[`bsp`]},"model/vnd.vtu":{source:`iana`,extensions:[`vtu`]},"model/vrml":{source:`iana`,compressible:!1,extensions:[`wrl`,`vrml`]},"model/x3d+binary":{source:`apache`,compressible:!1,extensions:[`x3db`,`x3dbz`]},"model/x3d+fastinfoset":{source:`iana`,extensions:[`x3db`]},"model/x3d+vrml":{source:`apache`,compressible:!1,extensions:[`x3dv`,`x3dvz`]},"model/x3d+xml":{source:`iana`,compressible:!0,extensions:[`x3d`,`x3dz`]},"model/x3d-vrml":{source:`iana`,extensions:[`x3dv`]},"multipart/alternative":{source:`iana`,compressible:!1},"multipart/appledouble":{source:`iana`},"multipart/byteranges":{source:`iana`},"multipart/digest":{source:`iana`},"multipart/encrypted":{source:`iana`,compressible:!1},"multipart/form-data":{source:`iana`,compressible:!1},"multipart/header-set":{source:`iana`},"multipart/mixed":{source:`iana`},"multipart/multilingual":{source:`iana`},"multipart/parallel":{source:`iana`},"multipart/related":{source:`iana`,compressible:!1},"multipart/report":{source:`iana`},"multipart/signed":{source:`iana`,compressible:!1},"multipart/vnd.bint.med-plus":{source:`iana`},"multipart/voice-message":{source:`iana`},"multipart/x-mixed-replace":{source:`iana`},"text/1d-interleaved-parityfec":{source:`iana`},"text/cache-manifest":{source:`iana`,compressible:!0,extensions:[`appcache`,`manifest`]},"text/calendar":{source:`iana`,extensions:[`ics`,`ifb`]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:[`coffee`,`litcoffee`]},"text/cql":{source:`iana`},"text/cql-expression":{source:`iana`},"text/cql-identifier":{source:`iana`},"text/css":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`css`]},"text/csv":{source:`iana`,compressible:!0,extensions:[`csv`]},"text/csv-schema":{source:`iana`},"text/directory":{source:`iana`},"text/dns":{source:`iana`},"text/ecmascript":{source:`apache`},"text/encaprtp":{source:`iana`},"text/enriched":{source:`iana`},"text/fhirpath":{source:`iana`},"text/flexfec":{source:`iana`},"text/fwdred":{source:`iana`},"text/gff3":{source:`iana`},"text/grammar-ref-list":{source:`iana`},"text/hl7v2":{source:`iana`},"text/html":{source:`iana`,compressible:!0,extensions:[`html`,`htm`,`shtml`]},"text/jade":{extensions:[`jade`]},"text/javascript":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`js`,`mjs`]},"text/jcr-cnd":{source:`iana`},"text/jsx":{compressible:!0,extensions:[`jsx`]},"text/less":{compressible:!0,extensions:[`less`]},"text/markdown":{source:`iana`,compressible:!0,extensions:[`md`,`markdown`]},"text/mathml":{source:`nginx`,extensions:[`mml`]},"text/mdx":{compressible:!0,extensions:[`mdx`]},"text/mizar":{source:`iana`},"text/n3":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`n3`]},"text/parameters":{source:`iana`,charset:`UTF-8`},"text/parityfec":{source:`iana`},"text/plain":{source:`iana`,compressible:!0,extensions:[`txt`,`text`,`conf`,`def`,`list`,`log`,`in`,`ini`]},"text/provenance-notation":{source:`iana`,charset:`UTF-8`},"text/prs.fallenstein.rst":{source:`iana`},"text/prs.lines.tag":{source:`iana`,extensions:[`dsc`]},"text/prs.prop.logic":{source:`iana`},"text/prs.texi":{source:`iana`},"text/raptorfec":{source:`iana`},"text/red":{source:`iana`},"text/rfc822-headers":{source:`iana`},"text/richtext":{source:`iana`,compressible:!0,extensions:[`rtx`]},"text/rtf":{source:`iana`,compressible:!0,extensions:[`rtf`]},"text/rtp-enc-aescm128":{source:`iana`},"text/rtploopback":{source:`iana`},"text/rtx":{source:`iana`},"text/sgml":{source:`iana`,extensions:[`sgml`,`sgm`]},"text/shaclc":{source:`iana`},"text/shex":{source:`iana`,extensions:[`shex`]},"text/slim":{extensions:[`slim`,`slm`]},"text/spdx":{source:`iana`,extensions:[`spdx`]},"text/strings":{source:`iana`},"text/stylus":{extensions:[`stylus`,`styl`]},"text/t140":{source:`iana`},"text/tab-separated-values":{source:`iana`,compressible:!0,extensions:[`tsv`]},"text/troff":{source:`iana`,extensions:[`t`,`tr`,`roff`,`man`,`me`,`ms`]},"text/turtle":{source:`iana`,charset:`UTF-8`,extensions:[`ttl`]},"text/ulpfec":{source:`iana`},"text/uri-list":{source:`iana`,compressible:!0,extensions:[`uri`,`uris`,`urls`]},"text/vcard":{source:`iana`,compressible:!0,extensions:[`vcard`]},"text/vnd.a":{source:`iana`},"text/vnd.abc":{source:`iana`},"text/vnd.ascii-art":{source:`iana`},"text/vnd.curl":{source:`iana`,extensions:[`curl`]},"text/vnd.curl.dcurl":{source:`apache`,extensions:[`dcurl`]},"text/vnd.curl.mcurl":{source:`apache`,extensions:[`mcurl`]},"text/vnd.curl.scurl":{source:`apache`,extensions:[`scurl`]},"text/vnd.debian.copyright":{source:`iana`,charset:`UTF-8`},"text/vnd.dmclientscript":{source:`iana`},"text/vnd.dvb.subtitle":{source:`iana`,extensions:[`sub`]},"text/vnd.esmertec.theme-descriptor":{source:`iana`,charset:`UTF-8`},"text/vnd.exchangeable":{source:`iana`},"text/vnd.familysearch.gedcom":{source:`iana`,extensions:[`ged`]},"text/vnd.ficlab.flt":{source:`iana`},"text/vnd.fly":{source:`iana`,extensions:[`fly`]},"text/vnd.fmi.flexstor":{source:`iana`,extensions:[`flx`]},"text/vnd.gml":{source:`iana`},"text/vnd.graphviz":{source:`iana`,extensions:[`gv`]},"text/vnd.hans":{source:`iana`},"text/vnd.hgl":{source:`iana`},"text/vnd.in3d.3dml":{source:`iana`,extensions:[`3dml`]},"text/vnd.in3d.spot":{source:`iana`,extensions:[`spot`]},"text/vnd.iptc.newsml":{source:`iana`},"text/vnd.iptc.nitf":{source:`iana`},"text/vnd.latex-z":{source:`iana`},"text/vnd.motorola.reflex":{source:`iana`},"text/vnd.ms-mediapackage":{source:`iana`},"text/vnd.net2phone.commcenter.command":{source:`iana`},"text/vnd.radisys.msml-basic-layout":{source:`iana`},"text/vnd.senx.warpscript":{source:`iana`},"text/vnd.si.uricatalogue":{source:`apache`},"text/vnd.sosi":{source:`iana`},"text/vnd.sun.j2me.app-descriptor":{source:`iana`,charset:`UTF-8`,extensions:[`jad`]},"text/vnd.trolltech.linguist":{source:`iana`,charset:`UTF-8`},"text/vnd.vcf":{source:`iana`},"text/vnd.wap.si":{source:`iana`},"text/vnd.wap.sl":{source:`iana`},"text/vnd.wap.wml":{source:`iana`,extensions:[`wml`]},"text/vnd.wap.wmlscript":{source:`iana`,extensions:[`wmls`]},"text/vnd.zoo.kcl":{source:`iana`},"text/vtt":{source:`iana`,charset:`UTF-8`,compressible:!0,extensions:[`vtt`]},"text/wgsl":{source:`iana`,extensions:[`wgsl`]},"text/x-asm":{source:`apache`,extensions:[`s`,`asm`]},"text/x-c":{source:`apache`,extensions:[`c`,`cc`,`cxx`,`cpp`,`h`,`hh`,`dic`]},"text/x-component":{source:`nginx`,extensions:[`htc`]},"text/x-fortran":{source:`apache`,extensions:[`f`,`for`,`f77`,`f90`]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:[`hbs`]},"text/x-java-source":{source:`apache`,extensions:[`java`]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:[`lua`]},"text/x-markdown":{compressible:!0,extensions:[`mkd`]},"text/x-nfo":{source:`apache`,extensions:[`nfo`]},"text/x-opml":{source:`apache`,extensions:[`opml`]},"text/x-org":{compressible:!0,extensions:[`org`]},"text/x-pascal":{source:`apache`,extensions:[`p`,`pas`]},"text/x-processing":{compressible:!0,extensions:[`pde`]},"text/x-sass":{extensions:[`sass`]},"text/x-scss":{extensions:[`scss`]},"text/x-setext":{source:`apache`,extensions:[`etx`]},"text/x-sfv":{source:`apache`,extensions:[`sfv`]},"text/x-suse-ymp":{compressible:!0,extensions:[`ymp`]},"text/x-uuencode":{source:`apache`,extensions:[`uu`]},"text/x-vcalendar":{source:`apache`,extensions:[`vcs`]},"text/x-vcard":{source:`apache`,extensions:[`vcf`]},"text/xml":{source:`iana`,compressible:!0,extensions:[`xml`]},"text/xml-external-parsed-entity":{source:`iana`},"text/yaml":{compressible:!0,extensions:[`yaml`,`yml`]},"video/1d-interleaved-parityfec":{source:`iana`},"video/3gpp":{source:`iana`,extensions:[`3gp`,`3gpp`]},"video/3gpp-tt":{source:`iana`},"video/3gpp2":{source:`iana`,extensions:[`3g2`]},"video/av1":{source:`iana`},"video/bmpeg":{source:`iana`},"video/bt656":{source:`iana`},"video/celb":{source:`iana`},"video/dv":{source:`iana`},"video/encaprtp":{source:`iana`},"video/evc":{source:`iana`},"video/ffv1":{source:`iana`},"video/flexfec":{source:`iana`},"video/h261":{source:`iana`,extensions:[`h261`]},"video/h263":{source:`iana`,extensions:[`h263`]},"video/h263-1998":{source:`iana`},"video/h263-2000":{source:`iana`},"video/h264":{source:`iana`,extensions:[`h264`]},"video/h264-rcdo":{source:`iana`},"video/h264-svc":{source:`iana`},"video/h265":{source:`iana`},"video/h266":{source:`iana`},"video/iso.segment":{source:`iana`,extensions:[`m4s`]},"video/jpeg":{source:`iana`,extensions:[`jpgv`]},"video/jpeg2000":{source:`iana`},"video/jpm":{source:`apache`,extensions:[`jpm`,`jpgm`]},"video/jxsv":{source:`iana`},"video/lottie+json":{source:`iana`,compressible:!0},"video/matroska":{source:`iana`},"video/matroska-3d":{source:`iana`},"video/mj2":{source:`iana`,extensions:[`mj2`,`mjp2`]},"video/mp1s":{source:`iana`},"video/mp2p":{source:`iana`},"video/mp2t":{source:`iana`,extensions:[`ts`,`m2t`,`m2ts`,`mts`]},"video/mp4":{source:`iana`,compressible:!1,extensions:[`mp4`,`mp4v`,`mpg4`]},"video/mp4v-es":{source:`iana`},"video/mpeg":{source:`iana`,compressible:!1,extensions:[`mpeg`,`mpg`,`mpe`,`m1v`,`m2v`]},"video/mpeg4-generic":{source:`iana`},"video/mpv":{source:`iana`},"video/nv":{source:`iana`},"video/ogg":{source:`iana`,compressible:!1,extensions:[`ogv`]},"video/parityfec":{source:`iana`},"video/pointer":{source:`iana`},"video/quicktime":{source:`iana`,compressible:!1,extensions:[`qt`,`mov`]},"video/raptorfec":{source:`iana`},"video/raw":{source:`iana`},"video/rtp-enc-aescm128":{source:`iana`},"video/rtploopback":{source:`iana`},"video/rtx":{source:`iana`},"video/scip":{source:`iana`},"video/smpte291":{source:`iana`},"video/smpte292m":{source:`iana`},"video/ulpfec":{source:`iana`},"video/vc1":{source:`iana`},"video/vc2":{source:`iana`},"video/vnd.cctv":{source:`iana`},"video/vnd.dece.hd":{source:`iana`,extensions:[`uvh`,`uvvh`]},"video/vnd.dece.mobile":{source:`iana`,extensions:[`uvm`,`uvvm`]},"video/vnd.dece.mp4":{source:`iana`},"video/vnd.dece.pd":{source:`iana`,extensions:[`uvp`,`uvvp`]},"video/vnd.dece.sd":{source:`iana`,extensions:[`uvs`,`uvvs`]},"video/vnd.dece.video":{source:`iana`,extensions:[`uvv`,`uvvv`]},"video/vnd.directv.mpeg":{source:`iana`},"video/vnd.directv.mpeg-tts":{source:`iana`},"video/vnd.dlna.mpeg-tts":{source:`iana`},"video/vnd.dvb.file":{source:`iana`,extensions:[`dvb`]},"video/vnd.fvt":{source:`iana`,extensions:[`fvt`]},"video/vnd.hns.video":{source:`iana`},"video/vnd.iptvforum.1dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.1dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.2dparityfec-1010":{source:`iana`},"video/vnd.iptvforum.2dparityfec-2005":{source:`iana`},"video/vnd.iptvforum.ttsavc":{source:`iana`},"video/vnd.iptvforum.ttsmpeg2":{source:`iana`},"video/vnd.motorola.video":{source:`iana`},"video/vnd.motorola.videop":{source:`iana`},"video/vnd.mpegurl":{source:`iana`,extensions:[`mxu`,`m4u`]},"video/vnd.ms-playready.media.pyv":{source:`iana`,extensions:[`pyv`]},"video/vnd.nokia.interleaved-multimedia":{source:`iana`},"video/vnd.nokia.mp4vr":{source:`iana`},"video/vnd.nokia.videovoip":{source:`iana`},"video/vnd.objectvideo":{source:`iana`},"video/vnd.planar":{source:`iana`},"video/vnd.radgamettools.bink":{source:`iana`},"video/vnd.radgamettools.smacker":{source:`apache`},"video/vnd.sealed.mpeg1":{source:`iana`},"video/vnd.sealed.mpeg4":{source:`iana`},"video/vnd.sealed.swf":{source:`iana`},"video/vnd.sealedmedia.softseal.mov":{source:`iana`},"video/vnd.uvvu.mp4":{source:`iana`,extensions:[`uvu`,`uvvu`]},"video/vnd.vivo":{source:`iana`,extensions:[`viv`]},"video/vnd.youtube.yt":{source:`iana`},"video/vp8":{source:`iana`},"video/vp9":{source:`iana`},"video/webm":{source:`apache`,compressible:!1,extensions:[`webm`]},"video/x-f4v":{source:`apache`,extensions:[`f4v`]},"video/x-fli":{source:`apache`,extensions:[`fli`]},"video/x-flv":{source:`apache`,compressible:!1,extensions:[`flv`]},"video/x-m4v":{source:`apache`,extensions:[`m4v`]},"video/x-matroska":{source:`apache`,compressible:!1,extensions:[`mkv`,`mk3d`,`mks`]},"video/x-mng":{source:`apache`,extensions:[`mng`]},"video/x-ms-asf":{source:`apache`,extensions:[`asf`,`asx`]},"video/x-ms-vob":{source:`apache`,extensions:[`vob`]},"video/x-ms-wm":{source:`apache`,extensions:[`wm`]},"video/x-ms-wmv":{source:`apache`,compressible:!1,extensions:[`wmv`]},"video/x-ms-wmx":{source:`apache`,extensions:[`wmx`]},"video/x-ms-wvx":{source:`apache`,extensions:[`wvx`]},"video/x-msvideo":{source:`apache`,extensions:[`avi`]},"video/x-sgi-movie":{source:`apache`,extensions:[`movie`]},"video/x-smv":{source:`apache`,extensions:[`smv`]},"x-conference/x-cooltalk":{source:`apache`,extensions:[`ice`]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}})),Fd=r.a(((e,t)=>{t.exports=(Pd(),r.c(Md).default)})),Id=r.a(((e,t)=>{var n={"prs.":100,"x-":200,"x.":300,"vnd.":400,default:900},r={nginx:10,apache:20,iana:40,default:30},i={application:1,font:2,audio:2,video:3,default:0};t.exports=function(e,t=`default`){if(e===`application/octet-stream`)return 0;let[a,o]=e.split(`/`),s=n[o.replace(/(\.|x-).*/,`$1`)]||n.default,c=r[t]||r.default,l=i[a]||i.default,u=1-e.length/100;return s+c+l+u}})),Ld=r.a((e=>{var t=Fd(),n=a.q().extname,r=Id(),i=/^\s*([^;\s]*)(?:;|\s|$)/,o=/^text\//i;e.charset=s,e.charsets={lookup:s},e.contentType=c,e.extension=l,e.extensions=Object.create(null),e.lookup=u,e.types=Object.create(null),e._extensionConflicts=[],d(e.extensions,e.types);function s(e){if(!e||typeof e!=`string`)return!1;var n=i.exec(e),r=n&&t[n[1].toLowerCase()];return r&&r.charset?r.charset:n&&o.test(n[1])?`UTF-8`:!1}function c(t){if(!t||typeof t!=`string`)return!1;var n=t.indexOf(`/`)===-1?e.lookup(t):t;if(!n)return!1;if(n.indexOf(`charset`)===-1){var r=e.charset(n);r&&(n+=`; charset=`+r.toLowerCase())}return n}function l(t){if(!t||typeof t!=`string`)return!1;var n=i.exec(t),r=n&&e.extensions[n[1].toLowerCase()];return!r||!r.length?!1:r[0]}function u(t){if(!t||typeof t!=`string`)return!1;var r=n(`x.`+t).toLowerCase().slice(1);return r&&e.types[r]||!1}function d(n,r){Object.keys(t).forEach(function(i){var a=t[i].extensions;if(!(!a||!a.length)){n[i]=a;for(var o=0;o<a.length;o++){var s=a[o];r[s]=f(s,r[s],i);let t=p(s,r[s],i);t!==r[s]&&e._extensionConflicts.push([s,t,r[s]])}}})}function f(e,n,i){return(n?r(n,t[n].source):0)>(i?r(i,t[i].source):0)?n:i}function p(n,r,i){var a=[`nginx`,`apache`,void 0,`iana`],o=r?a.indexOf(t[r].source):0,s=i?a.indexOf(t[i].source):0;return e.types[l]!==`application/octet-stream`&&(o>s||o===s&&e.types[l]?.slice(0,12)===`application/`)||o>s?r:i}})),Rd=r.l(a.K()),zd=r.l(Ld());function Bd(e,t){let n=document.createElement(`input`);n.type=`file`,n.accept=e,n.multiple=!1,n.setAttribute(`data-testid`,`uploadFile`),n.style.position=`absolute`,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n),n.onchange=()=>{n.files?.length&&t(n.files),document.body.removeChild(n)},n.click()}function Vd(e){let t=e.split(`.`);return t[t.length-1].toLowerCase()}var Hd=`index.html`;function Ud(e,t){return e.find(function(e){return e.name.toLowerCase().endsWith(t)})}async function Wd(e,t,n){let{files:r}=await new Rd.default().loadAsync(e),i=Object.keys(r).map(e=>r[e]),o=r[Hd]||Ud(i,Hd)||Ud(i,`.html`)||Ud(i,`.htm`);if(o){let e=o.name.split(`/`),i=document.location.pathname.split(`/`),s=document.location.origin+i.slice(0,i.length-e.length).join(`/`)+`/`,c=await o.async(`text`),l=e.slice(0,e.length-1).join(`/`);return await a.a(c,async e=>{let i=e.document;await a.g(i,async e=>{e=e.replace(`\\`,`/`),e.startsWith(`.`)&&(e=e.substring(1)),e.startsWith(`/`)&&(e=e.substring(1)),e.startsWith(s)&&(e=e.substring(s.length)),l&&!e.match(`^(ht|f)tp(s?)://`)&&(e=`${l}/${e}`);let n=r[e];if(n){let e=n.name;return t(await n.async(`blob`),e)}let i=a.l(e);return t(e,i)}),n&&n(e)})}}async function Gd(e,t,n){return await a.a(e,async e=>{let r=e.document;await a.g(r,async e=>{e=e.replace(`\\`,`/`);let n=a.l(e);return t(e,n)}),n&&n(e)})}async function Kd(t,n,r){if(t)switch(Vd(t.name)){case`zip`:return Wd(t,n,r);case`eml`:{let i=await t.text(),{readEml:a}=await Promise.resolve().then(()=>e(`./1d663a7c2.js`)),o=a(i);if(o instanceof Error)throw o;let s=typeof o==`string`?o:o.html;if(s===void 0)throw Error(`Eml does not contain text/html`);return Gd(s,n,r)}default:return Gd(await t.text(),n,r)}}async function qd(e,t){if(typeof e!=`string`)return e;try{let n=await t({url:a.v(e)});return n?.data,n?.data||null}catch{return null}}function Jd(e,t){if(!e||typeof e!=`string`)return`default.${zd.extension(t)||`bin`}`;if(e.split(`.`).length<2){let n=zd.extension(t);if(n)return`${e}.${n}`}return e}function Yd(e){if(e&&typeof e==`object`&&!Array.isArray(e)&&`code`in e&&`message`in e&&e.data){if(e.data.status===400)return{file_url:null,error:{code:e.code,message:e.message,status:e.data.status}};if(e.data.file_url)return{file_url:e.data.file_url,error:null}}if(Array.isArray(e)&&e.length>0){let t=e[0];if(t&&typeof t==`object`){if(`code`in t&&`message`in t&&t.data?.status===400)return{file_url:null,error:{code:t.code,message:t.message,status:t.data.status}};if(`file_url`in t&&t.file_url)return{file_url:t.file_url,error:null}}}if(e&&typeof e==`object`&&!Array.isArray(e)&&0 in e){if(e.data?.status===400)return{file_url:null,error:{status:e.data.status}};if(e[0]?.file_url)return{file_url:e[0].file_url,error:null}}return{file_url:null,error:null}}function Xd(e,t){if(!e||e.error)return typeof t==`string`?t:``;let n=Yd(e.data);return n.error?typeof t==`string`?t:``:n.file_url?n.file_url:typeof t==`string`?t:``}var Zd=(e,t,n,r)=>async(i,a)=>{try{let o=await qd(i,e);if(!o)return typeof i==`string`?i:``;let s=Jd(a,o.type),c=new File([o],s.toLowerCase());return Xd(await t({user_id:n.id,folder:r.id,file:c}),i)}catch{return typeof i==`string`?i:``}},Qd=e=>t=>{let n=t.document;n.title=n?.title||a.c(e.name)[0]};function $d(e,t,n,r){let i=a.x(e),o=Symbol(`once-handler-${t}`),s=i?e=>{e[o]||(e[o]=!0,n(e))}:n;return i?.addEventListener(t,s,r),window.addEventListener(t,s,r),{dispose:()=>{i?.removeEventListener(t,s,r),window.removeEventListener(t,s,r)}}}function ef(e,t,n,r){let i=a.x(e),o=Symbol(`once-handler-${t}`),s=i?e=>{e[o]||(e[o]=!0,n(e))}:n;return i?.addEventListener(t,s,r),document.addEventListener(t,s,r),{dispose:()=>{i?.removeEventListener(t,s,r),document.removeEventListener(t,s,r)}}}var tf=({elementSettings:e})=>{let{__:t}=p.v(),[n]=p.It.useForm(),r=i.lr(),s=i.Wt(),{projectId:c}=(0,S.useParams)(),l=p.i(),d=i.cr(u.w),f=i.et(),h=i.tt(),{openImagePicker:g}=m.r(),y=i.cr(i.on),b=i.cr(i.fn),x=i.cr(i.n),w=i.cr(i.cn),T=i.cr(i.an),[E]=a.On(),[D,k]=a.En(),[A,j]=(0,v.useState)({name:``,counter:0}),M=(0,v.useRef)(null),N=(0,v.useRef)(null),P=(0,v.useRef)(null),F=(0,v.useRef)(null),I=(0,v.useRef)(null),L=(0,v.useRef)(null),R=(0,v.useRef)(null),z=(0,v.useRef)(null),B=(0,v.useRef)(null),[V,H]=(0,v.useState)({}),[ee,U]=(0,v.useState)(!0),[W,G]=(0,v.useState)(!0),[K,q]=(0,v.useState)(``),[J,Y]=(0,v.useState)(``),[te,X]=(0,v.useState)(``),[ne,re]=(0,v.useState)(!1),[ie,ae]=(0,v.useState)(!1),[oe,Z]=(0,v.useState)(!1),[se,ce]=(0,v.useState)(!1),[le,ue]=(0,v.useState)(!1),[de,fe]=(0,v.useState)(!1),[pe,me]=(0,v.useState)(!1),[he,ge]=(0,v.useState)(!1),[_e,ve]=(0,v.useState)(`https://`),ye=(0,v.useRef)(!1),be=(0,v.useRef)(),[xe,Se]=(0,v.useState)(),[Ce,we]=(0,v.useState)(!1),[Te,Ee]=(0,v.useState)(null),[De,Oe]=(0,v.useState)({start:0,end:0}),[ke,Ae]=(0,v.useState)(!1),[je,Me]=(0,v.useState)(!1),[Ne,Pe]=(0,v.useState)(!1),Fe=w&&T!==`bottom`,Ie=d.hasOwnProperty(`type`)?i.wr:i.Br;(0,v.useEffect)(()=>{Ce&&B.current&&B.current.focus()},[Ce]);let Le=(t,r)=>{let a=document.getElementById(r);if(a){let o=r.substring(r.indexOf(`selected_image_form_`)+20),s=a.value?.substring(0,De.start),c=a.value?.substring(De.end);f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{...e,[o]:s+t+c}}),n.setFieldValue(o,s+t+c),a.focus(),setTimeout(()=>{a.selectionStart=De.start,a.selectionEnd=De.start+t.length},400),Ae(!0)}},Re=i.cr(i.jt);(0,v.useEffect)(()=>{Re?.items?.length&&Se(i.Ut(Re.items,t,(e,t)=>{we(!1),h(i.Wr.SANDBOX_ADD_MERGETAG,e),t.stopPropagation(),t.preventDefault()}))},[Re,Se,t,we,h]);let ze=(t,r)=>{if(we(!1),t){let a=Re.syntax.length>1?xe.findIndex(e=>e.key===r[0].key):0,o=Re.syntax[a].replace(`%value%`,t[t.length-1]);Te?.getAttribute(`id`)===`selected_image_form_title`||Te?.getAttribute(`id`)===`selected_image_form_alt`||Te?.getAttribute(`id`)===`selected_image_form_link`||Te?.getAttribute(`id`)===`selected_image_form_imgReplacer`?Le(o,Te?.getAttribute(`id`)):(n.setFieldValue(`imgReplacer`,o),f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{imgReplacer:o}}))}},Be=(e,t)=>t.some(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1),Ve=(e,t)=>{let n=t.map((t,n)=>{let r=t.label.split(RegExp(`(${e})`,`gi`));return(0,C.jsxs)(`span`,{children:[n!==0&&(0,C.jsx)(`span`,{children:`\xA0/\xA0`}),r.map((t,n)=>t.toLowerCase()===e.toLowerCase()?(0,C.jsx)(`span`,{style:{color:`red`},children:t},n):t)]},t.value)});return(0,C.jsx)(`div`,{title:t.map(e=>e.label).join(` / `),children:n})},He=i.Z();(0,v.useEffect)(()=>{let e=({target:e})=>{e.closest(`[id="merge_tags_wrapper"]`)||Ee(e)},t=({target:e})=>{!e.closest(`.merge-tags`)&&!e.closest(`#merge_tags_button`)&&we(!1)},n=new i.Da;return n.addDisposable($d(He,`focusin`,e)),n.addDisposable($d(He,`click`,t)),()=>{n.dispose()}},[He]);let Ue=({target:e})=>{if(e&&!ke){let{selectionStart:t,selectionEnd:n}=e;Oe({start:t,end:n})}Ae(!1)},We=e.border,Ge=e.mobileBorder,Ke=Object.keys(We).find(e=>We[e]?.width||We[e]?.style||We[e]?.color),qe=Object.keys(Ge).find(e=>Ge[e]?.width||Ge[e]?.style||Ge[e]?.color),Je=e=>e&&(e?.width||e?.style||e?.color)?e:``;(0,v.useEffect)(()=>{if(e){e.src!==be.current&&(be.current=e.src,ye.current=!1);let t=e.boxShadow;if(H(t),e.link&&ve($c(e.link,`https://`)),n.setFieldsValue({...e,link:e.link==null?`https://`:e.link,width:e.width?.value,widthDim:e.width?.dim,height:e.height?.value,heightDim:e.height?.dim,borderAll:$(e.border.all),borderTop:$(e.border.top),borderBottom:$(e.border.bottom),borderRight:$(e.border.right),borderLeft:$(e.border.left),mobileBorderAll:Je(e.mobileBorder.all)||!(Je(e.mobileBorder.top)||Je(e.mobileBorder.bottom)||Je(e.mobileBorder.right)||Je(e.mobileBorder.left))&&Je(e.border.all),mobileBorderTop:Je(e.mobileBorder.top)||!Je(e.mobileBorder.all)&&Je(e.border.top),mobileBorderBottom:Je(e.mobileBorder.bottom)||!Je(e.mobileBorder.all)&&Je(e.border.bottom),mobileBorderRight:Je(e.mobileBorder.right)||!Je(e.mobileBorder.all)&&Je(e.border.right),mobileBorderLeft:Je(e.mobileBorder.left)||!Je(e.mobileBorder.all)&&Je(e.border.left),borderRadiusAll:$(e.borderRadius.all),borderRadiusTopLeft:$(e.borderRadius.topLeft),borderRadiusBottomLeft:$(e.borderRadius.bottomLeft),borderRadiusTopRight:$(e.borderRadius.topRight),borderRadiusBottomRight:$(e.borderRadius.bottomRight),boxShadowInset:$(e.boxShadow?.inset)||!1,boxShadowHOffset:$(e.boxShadow?.hOffset),boxShadowVOffset:$(e.boxShadow?.vOffset),boxShadowBlurRadius:$(e.boxShadow?.blurRadius),boxShadowSpreadRadius:$(e.boxShadow?.spreadRadius),boxShadowColor:$(e.boxShadow?.color),mobileWidth:rl(e.mobileWidth?.value)||e.width?.value,mobileWidthDim:rl(e.mobileWidth?.value)?e.mobileWidth?.dim:e.width?.dim,mobileHeight:rl(e.mobileHeight?.value)||e.height?.value,mobileHeightDim:rl(e.mobileHeight?.value)?e.mobileHeight?.dim:e.height?.dim,mobileBorderRadiusAll:$(e.mobileBorderRadius.all)||$(e.borderRadius.all),mobileBorderRadiusTopLeft:$(e.mobileBorderRadius?.topLeft)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.topLeft)||$(e.borderRadius?.all),mobileBorderRadiusBottomLeft:$(e.mobileBorderRadius?.bottomLeft)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.bottomLeft)||$(e.borderRadius?.all),mobileBorderRadiusTopRight:$(e.mobileBorderRadius?.topRight)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.topRight)||$(e.borderRadius?.all),mobileBorderRadiusBottomRight:$(e.mobileBorderRadius?.bottomRight)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.bottomRight)||$(e.borderRadius?.all),mobileBoxShadowInset:e.mobileBoxShadow?.inset==null?e.boxShadow?.inset||!1:e.mobileBoxShadow.inset,mobileBoxShadowHOffset:$(e.mobileBoxShadow?.hOffset)||$(e.boxShadow?.hOffset),mobileBoxShadowVOffset:$(e.mobileBoxShadow?.vOffset)||$(e.boxShadow?.vOffset),mobileBoxShadowBlurRadius:$(e.mobileBoxShadow?.blurRadius)||$(e.boxShadow?.blurRadius),mobileBoxShadowSpreadRadius:$(e.mobileBoxShadow?.spreadRadius)||$(e.boxShadow?.spreadRadius),mobileBoxShadowColor:$(e.mobileBoxShadow?.color||e.boxShadow?.color),mobileAlign:$(e.mobileAlign?.value)||e.align,mobileVerticalAlign:$(e.mobileVerticalAlign?.value||e.valign),show:e.show?e.show:`all`,altSrc:e.src}),e.countdown){let t=new URL(`https://emailmaker.ru/?`+e.countdown),r=t.searchParams.get(`font1`),i=!1,a=!1;r.endsWith(`-b`)?(r=r.substring(0,r.length-2),i=!0):r.endsWith(`-i`)?(r=r.substring(0,r.length-2),a=!0):r.endsWith(`-bi`)&&(r=r.substring(0,r.length-3),i=!0,a=!0);let o=t.searchParams.get(`font2`),s=!1,c=!1;o.endsWith(`-b`)?(o=o.substring(0,o.length-2),s=!0):o.endsWith(`-i`)?(o=o.substring(0,o.length-2),c=!0):o.endsWith(`-bi`)&&(o=o.substring(0,o.length-3),s=!0,c=!0),n.setFieldsValue({countdownTime:(0,O.default)(new Date(Date.parse(t.searchParams.get(`time`))+t.searchParams.get(`timezone`)*36e5+new Date().getTimezoneOffset()/60*36e5).toISOString()),countdownDuration:t.searchParams.get(`frames`)||20,countdownTimeZone:t.searchParams.get(`timezone`),countdownLanguage:t.searchParams.get(`locale`).replace(`-`,`_`),countdownBackgroundColor:`#`+t.searchParams.get(`bg`),countdownTransparency:t.searchParams.get(`tp`)===`true`?`checked`:``,countdownNumbersFont:r,countdownNumbersFontSize:t.searchParams.get(`size1`)/2,countdownNumbersFontSizeDim:`px`,countdownNumbersColor:`#`+t.searchParams.get(`color1`),countdownLabelsFont:o,countdownLabelsFontSize:t.searchParams.get(`size2`)/2,countdownLabelsFontSizeDim:`px`,countdownLabelsColor:`#`+t.searchParams.get(`color2`),countdownNumbersStrong:i,countdownNumbersItalic:a,countdownLabelsStrong:s,countdownLabelsItalic:c})}!$(e.borderRadius.all)&&($(e.borderRadius.topLeft)||$(e.borderRadius.bottomLeft)||$(e.borderRadius.topRight)||$(e.borderRadius.bottomRight))?U(!1):U(!0),!$(e.mobileBorderRadius.all)&&($(e.mobileBorderRadius.topLeft)||$(e.mobileBorderRadius.bottomLeft)||$(e.mobileBorderRadius.topRight)||$(e.mobileBorderRadius.bottomRight))||$(e.mobileBorderRadius.all)&&($(e.mobileBorderRadius.topLeft)||$(e.mobileBorderRadius.bottomLeft)||$(e.mobileBorderRadius.topRight)||$(e.mobileBorderRadius.bottomRight))||!$(e.borderRadius.all)&&!$(e.mobileBorderRadius.all)&&($(e.borderRadius.topLeft)||$(e.borderRadius.bottomLeft)||$(e.borderRadius.topRight)||$(e.borderRadius.bottomRight))?G(!1):G(!0),re(e=>Ke?!0:e),ae(e=>Ke||qe?!0:e),Z(!!e.borderRadius.all||!!e.borderRadius.topLeft||!!e.borderRadius.bottomLeft||!!e.borderRadius.topRight||!!e.borderRadius.bottomRight),ce(!!e.mobileBorderRadius.all||!!e.mobileBorderRadius.topLeft||!!e.mobileBorderRadius.bottomLeft||!!e.mobileBorderRadius.topRight||!!e.mobileBorderRadius.bottomRight||!!e.borderRadius.all||!!e.borderRadius.topLeft||!!e.borderRadius.bottomLeft||!!e.borderRadius.topRight||!!e.borderRadius.bottomRight),ue(!!e.boxShadow),fe(!!e.mobileBoxShadow.blurRadius||!!e.mobileBoxShadow.color||!!e.mobileBoxShadow.hOffset||!!e.mobileBoxShadow.inset||!!e.mobileBoxShadow.spreadRadius||!!e.mobileBoxShadow.vOffset||!!e.boxShadow),me(!!e.mobileWidth.value||!!e.mobileHeight.value||!!e.width.value||!!e.height.value),e.link?q(e.link):q(ye.current?`...`:``),Y(e.alt),X(e.title),Me(e.imgReplacer?.length)}},[n,e]);let Ye=async(e,t,n)=>{let r={};r.user_id=x.id,r.folder=e,t&&(t.type!==`image/gif`&&(t=await hd(t,{maxSizeMB:s.compressMaxSize||.45,maxWidthOrHeight:s.compressMaxWidthOrHeight||2e3})),r.file=t),n&&(r.page_url=n);let i=await E(r);if(i.error)l.fromError(`IMAGE_UPLOAD_ERROR`,t,i.error,!0);else{let e=Yd(i.data);if(e.error)return;if(e.file_url)return e.file_url}},Xe=async t=>{let r=n.getFieldsValue(!0).video?.playButton||e.video?.playButton;if(!t||!r||r===`none`||Ne)return;Pe(!0);var a=document.createElement(`canvas`),o=a.getContext(`2d`),l=new Image,u=new Image;let d=t,p=`https://useblocks.io/app/`+r+`.png`;l.crossOrigin=`Anonymous`,u.crossOrigin=`Anonymous`;let m=!1,h=!1;l.onload=function(){o.clearRect(0,0,a.width,a.height),o.drawImage(l,0,0,a.width,a.height),m=!0},l.src=d,u.onload=function(){h=!0},u.src=p;let g=setInterval(function(){if(m&&h){a.width=l.width,a.height=l.height,o.clearRect(0,0,a.width,a.height),o.drawImage(l,0,0,l.width,l.height);let d=Math.min(a.width,a.height),p;if(l.height>l.width)p=.3;else{let e=l.width/l.height;p=Math.min(.4,.3+(e-1)/1*.1)}let m=d*p,h=u.width/u.height,_,v;h>=1?(_=m,v=m/h):(v=m,_=m*h);var t=(a.width-_)/2,r=(a.height-v)/2;o.drawImage(u,t,r,_,v),a.toBlob(async function(t){Ye(c,await hd(new File([t],`image.jpeg`,{type:`image/jpeg`}),{maxSizeMB:s.compressMaxSize||.45,maxWidthOrHeight:s.compressMaxWidthOrHeight||2e3})).then(t=>{Pe(!1),f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{src:t}}),$e({...e,src:t,activateSection:null,changeKey:`src`}),setTimeout(()=>{n.setFieldValue(`src`,t)},100)}).catch(e=>{Pe(!1)})},`image/jpg`,1),clearInterval(g)}},300)},Ze=async()=>{let e=n.getFieldsValue(!0);e.video.source&&Ye(`tmp`,null,e.video.source).then(t=>{var n=document.createElement(`canvas`),r=n.getContext(`2d`),i=new Image,a=new Image;let o=t,l=`https://useblocks.io/app/`+e.video.playButton+`.png`;i.crossOrigin=`Anonymous`,a.crossOrigin=`Anonymous`;let u=!1,d=!1;i.onload=function(){r.clearRect(0,0,n.width,n.height),r.drawImage(i,0,0,n.width,n.height),u=!0},i.src=o,a.onload=function(){d=!0},a.src=l;let f=setInterval(function(){if(u&&d){n.width=i.width,n.height=i.height,r.clearRect(0,0,n.width,n.height),r.drawImage(i,0,0,i.width,i.height);let o=Math.min(n.width,n.height),l;if(i.height>i.width)l=.3;else{let e=i.width/i.height;l=Math.min(.35,.3+(e-1)/1.5*.1)}let u=o*l,d=a.width/a.height,p,m;d>=1?(p=u,m=u/d):(m=u,p=u*d);var e=(n.width-p)/2,t=(n.height-m)/2;r.drawImage(a,e,t,p,m),n.toBlob(async function(e){Ye(c,await hd(new File([e],`image.jpeg`,{type:`image/jpeg`}),{maxSizeMB:s.compressMaxSize||.45,maxWidthOrHeight:s.compressMaxWidthOrHeight||2e3})).then(e=>{et(e)})},`image/jpg`,1),clearInterval(f)}},300)})},Qe=((e,t)=>{let n;return function(...r){clearTimeout(n),n=setTimeout(()=>{clearTimeout(n),e(...r)},t)}})(()=>{let t=n.getFieldsValue(!0),r=new URL(`https://cdt3.emcdn.ru/rndt?`+e.countdown),i=t.countdownNumbersFont;t.countdownNumbersStrong&&t.countdownNumbersItalic?i+=`-bi`:t.countdownNumbersStrong?i+=`-b`:t.countdownNumbersItalic&&(i+=`-i`);let a=t.countdownLabelsFont;t.countdownLabelsStrong&&t.countdownLabelsItalic?a+=`-bi`:t.countdownLabelsStrong?a+=`-b`:t.countdownLabelsItalic&&(a+=`-i`),r.searchParams.set(`time`,new Date(t.countdownTime.$d-t.countdownTimeZone*36e5-new Date().getTimezoneOffset()/60*36e5).toISOString()),r.searchParams.set(`bg`,t.countdownBackgroundColor.substring(1)||`#FFFFFF`),r.searchParams.set(`tp`,!!t.countdownTransparency),r.searchParams.set(`font1`,i),r.searchParams.set(`size1`,t.countdownNumbersFontSize*2||12),r.searchParams.set(`color1`,t.countdownNumbersColor.substring(1)||`#000000`),r.searchParams.set(`font2`,a),r.searchParams.set(`size2`,t.countdownLabelsFontSize*2||8),r.searchParams.set(`color2`,t.countdownLabelsColor.substring(1)||`#959595`),r.searchParams.set(`spacing`,Math.round(t.countdownNumbersFontSize*.4)||5),r.searchParams.set(`locale`,t.countdownLanguage.replace(`_`,`-`)),r.searchParams.set(`timezone`,t.countdownTimeZone),r.searchParams.set(`frames`,t.countdownDuration),D({link:JSON.stringify({target:r.href})}),ge(!0)},500),$e=(0,v.useCallback)(e=>{r(Ie===`email`?u.L(e):u._(e))},[r,Ie]),et=(0,v.useCallback)((t,r)=>{let a=Fs(e.src||``)===Fs(t||``);(!a||t!==e.src)&&(f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{src:t}}),$e({...e,src:t,activateSection:null,changeKey:`src`}),n.setFieldValue(`src`,t)),r?.mode===`save`&&a&&(j(e=>({name:`src`,counter:e.counter+1})),f({operation:i.Wr.SANDBOX_CURRENT_IMAGE_RELOAD,src:t,forceReload:!0}))},[e,n,$e,f]),tt=(0,v.useCallback)(async t=>{let n=await g({kind:`img`,currentUrl:Fs(e.src||``),entryModal:t});n?.url&&et(n.url,n.meta)},[et,e.src,g]),nt=(t,...r)=>{let a=n.getFieldsValue(!0),o=Object.keys(t)[0],s;switch(o){case`link`:let r=t[o];typeof r==`string`&&r.substring(0,12)===`https://http`&&(r=r.substring(8,r.length),n.setFieldValue(`link`,r)),s={link:r};break;case`boxShadowInset`:case`boxShadowHOffset`:case`boxShadowVOffset`:case`boxShadowBlurRadius`:case`boxShadowSpreadRadius`:case`boxShadowColor`:s={boxShadow:{hOffset:a.boxShadowHOffset,vOffset:a.boxShadowVOffset,blurRadius:a.boxShadowBlurRadius,spreadRadius:a.boxShadowSpreadRadius,color:a.boxShadowColor,inset:a.boxShadowInset}};break;case`borderAll`:case`borderTop`:case`borderBottom`:case`borderLeft`:case`borderRight`:a.borderPosition===`borderAll`?(s={border:{...i.ci,all:{...Q,...a.borderAll}}},n.setFieldsValue({borderLeft:Q,borderRight:Q,borderTop:Q,borderBottom:Q})):a.borderAll?.width||a.borderAll?.style||a.borderAll?.color?(s={border:{all:null,left:a.borderAll,right:a.borderAll,top:a.borderAll,bottom:a.borderAll,[Oc[o]]:{...a[o],...t[o]}}},n.setFieldsValue({borderAll:null,borderLeft:a.borderAll,borderRight:a.borderAll,borderTop:a.borderAll,borderBottom:a.borderAll,[o]:{...a[o],...t[o]}})):(s={border:{all:null,left:a.borderLeft,right:a.borderRight,top:a.borderTop,bottom:a.borderBottom,[Oc[o]]:{...a[o],...t[o]}}},n.setFieldsValue({border:s.border}));break;case`mobileBorderAll`:case`mobileBorderTop`:case`mobileBorderBottom`:case`mobileBorderLeft`:case`mobileBorderRight`:if(a.mobileBorderPosition===`mobileBorderAll`)s={mobileBorder:{...i.ci,all:{...Q,...a.mobileBorderAll,classNamePrefix:`em-mob-border_`+kc[o]+`-`}}},n.setFieldsValue({borderLeft:Q,borderRight:Q,borderTop:Q,borderBottom:Q});else{let r=kc[o],i={...a[o],...t[o]},c=!i?.width&&!i?.style&&!i?.color;if(a.mobileBorder?.all?.width||a.mobileBorder?.all?.style||a.mobileBorder?.all?.color){let e=a.mobileBorderAll;s={mobileBorder:{all:null,left:e,right:e,top:e,bottom:e,[r]:c?null:{...i,classNamePrefix:`em-mob-border_`+r+`-`}}},n.setFieldsValue({mobileBorderAll:null,mobileBorderLeft:e,mobileBorderRight:e,mobileBorderTop:e,mobileBorderBottom:e,[o]:i})}else{let t=e.mobileBorder||{},a=e=>{let n=t[e];return n&&(n?.width||n?.style||n?.color)?n:null};s={mobileBorder:{all:null,left:r===`left`?c?null:{...i,classNamePrefix:`em-mob-border_left-`}:a(`left`),right:r===`right`?c?null:{...i,classNamePrefix:`em-mob-border_right-`}:a(`right`),top:r===`top`?c?null:{...i,classNamePrefix:`em-mob-border_top-`}:a(`top`),bottom:r===`bottom`?c?null:{...i,classNamePrefix:`em-mob-border_bottom-`}:a(`bottom`)}},n.setFieldsValue({[o]:i})}}break;case`width`:s={[o]:{value:t[o],dim:a.widthDim}};break;case`widthDim`:s={width:{value:a.width,dim:t[o]}};break;case`height`:s={[o]:{value:t[o],dim:a.heightDim}};break;case`heightDim`:s={height:{value:a.height,dim:t[o]}};break;case`borderRadiusAll`:s={borderRadius:{[wc[o]]:+t[o]}};break;case`borderRadiusTopLeft`:case`borderRadiusBottomLeft`:case`borderRadiusTopRight`:case`borderRadiusBottomRight`:s={borderRadius:{topLeft:a.borderRadiusTopLeft,bottomLeft:a.borderRadiusBottomLeft,topRight:a.borderRadiusTopRight,bottomRight:a.borderRadiusBottomRight,[wc[o]]:+t[o]}};break;case`mobileWidth`:s={[o]:{classNamePrefix:`em-mob-width-`,value:t[o],dim:a.mobileWidthDim}};break;case`mobileWidthDim`:s={mobileWidth:{classNamePrefix:`em-mob-width-`,value:a.mobileWidth||100,dim:t[o]}};break;case`mobileHeight`:s={[o]:{classNamePrefix:`em-mob-height-`,value:t[o],dim:a.mobileHeightDim}};break;case`mobileHeightDim`:s={mobileHeight:{classNamePrefix:`em-mob-height-`,value:a.mobileHeight,dim:t[o]}};break;case`mobileBorderRadiusAll`:case`mobileBorderRadiusTopLeft`:case`mobileBorderRadiusBottomLeft`:case`mobileBorderRadiusTopRight`:case`mobileBorderRadiusBottomRight`:s={mobileBorderRadius:{[Tc[o]]:t[o],classNamePrefix:`em-mob-border_radius_`+Tc[o]+`-`}};break;case`mobileBoxShadowInset`:case`mobileBoxShadowHOffset`:case`mobileBoxShadowVOffset`:case`mobileBoxShadowBlurRadius`:case`mobileBoxShadowSpreadRadius`:case`mobileBoxShadowColor`:s={mobileBoxShadow:{hOffset:a.mobileBoxShadowHOffset,vOffset:a.mobileBoxShadowVOffset,blurRadius:a.mobileBoxShadowBlurRadius,spreadRadius:a.mobileBoxShadowSpreadRadius,color:a.mobileBoxShadowColor,inset:a.mobileBoxShadowInset,classNamePrefix:`em-mob-box_shadow-`}};break;case`mobileAlign`:s={[o]:{classNamePrefix:`em-mob-text_align-`,value:t[o]}};break;case`mobileVerticalAlign`:s={[o]:{classNamePrefix:`em-mob-vertical_align-`,value:t[o]}};break;case`countdownTime`:case`countdownTimeZone`:case`countdownBackgroundColor`:case`countdownNumbersFont`:case`countdownNumbersFontSize`:case`countdownNumbersColor`:case`countdownLabelsFont`:case`countdownLabelsFontSize`:case`countdownLabelsColor`:case`countdownLanguage`:case`countdownDuration`:case`countdownTransparency`:case`countdownNumbersStrong`:case`countdownNumbersItalic`:case`countdownLabelsStrong`:case`countdownLabelsItalic`:Qe();break;case`video`:Ze(),a.link=a.video.source,f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:`video`,settings:{video:{...a.video,...t.video},link:a.link}});break;case`src`:let c=t[o],l=e.src,u=a.video?.playButton||e.video?.playButton;if(e.type===`video`&&u&&u!==`none`&&!Ne&&c&&(!l||c!==l)){Xe(c);return}s=t;break;default:s=t}o!==`borderPosition`&&o!==`mobileBorderPosition`&&o.indexOf(`countdown`)===-1&&o!==`video`&&(f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:s}),o!==`video`&&o.indexOf(`countdown`)===-1&&o!==`mobileBorderRadiusAll`&&o!==`mobileBorderRadiusTopLeft`&&o!==`mobileBorderRadiusTopRight`&&o!==`mobileBorderRadiusBottomLeft`&&o!==`mobileBorderRadiusBottomRight`&&$e({...e,...s,mobileBorderRadius:{...e.mobileBorderRadius,...s?.mobileBorderRadius},activateSection:null,changeKey:o}))};(0,v.useEffect)(()=>{k.isError&&(l.error(k),ge(!1))},[k]),(0,v.useEffect)(()=>{if(k.isSuccess&&he){if(k.data.data?.status===400)l.error({message:k.data.code,description:k.data.message});else{let t=new URL(k.data.target),n={countdown:{link:k.data.link,params:t.search.substring(1)}};f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:n})}ge(!1)}},[k,he,e,l,f]),_.g(e=>{let t=e.data.operation;t===i.Wr.APPLICATION_OPEN_IMAGE_AI_POPUP?tt(i.$r.UPLOAD_IMAGE_MODAL_AI):t===i.Wr.APPLICATION_OPEN_IMAGE_UPLOAD_POPUP?tt(i.$r.UPLOAD_IMAGE_MODAL_UPLOAD):t===i.Wr.APPLICATION_OPEN_IMAGE_EDIT_POPUP?tt(i.$r.UPLOAD_IMAGE_MODAL_EDIT):t===i.Wr.APPLICATION_OPEN_IMAGE_GIF_POPUP?tt(i.$r.UPLOAD_IMAGE_MODAL_GIF):t===i.Wr.APPLICATION_OPEN_IMAGE_STOCK_POPUP?tt(i.$r.UPLOAD_IMAGE_MODAL_STOCK):t===i.Wr.APPLICATION_CLOSE_IMAGE_EDIT_POPUP&&(r(o.n()),r(o.t()))});let rt=()=>{let t=n.getFieldsValue(!0);setTimeout(()=>{re(e=>!e),ne?(t.borderAll=Q,t.borderTop=Q,t.borderBottom=Q,t.borderRight=Q,t.borderLeft=Q):t.borderAll={width:1,color:`#E5E5E5`,style:`solid`},f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{border:{all:{color:t.borderAll.color,style:t.borderAll.style,width:t.borderAll.width}}}})})},it=()=>{let t=n.getFieldsValue(!0);setTimeout(()=>{ae(e=>!e),ie?(t.mobileBorderAll=Q,t.mobileBorderTop=Q,t.mobileBorderBottom=Q,t.mobileBorderRight=Q,t.mobileBorderLeft=Q):t.mobileBorderAll={width:1,color:`#E5E5E5`,style:`solid`},f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorder:{all:{color:t.mobileBorderAll.color,style:t.mobileBorderAll.style,width:t.mobileBorderAll.width}}}})})},at=()=>{let t=n.getFieldsValue(!0);setTimeout(()=>{Z(e=>!e),oe?(t.borderRadiusAll=0,U(!0)):t.borderRadiusAll=5,f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{borderRadius:{all:t.borderRadiusAll}}})})},ot=()=>{let t=n.getFieldsValue(!0);setTimeout(()=>{ce(e=>!e),se?(t.mobileBorderRadiusAll=null,G(!0)):t.mobileBorderRadiusAll=5,f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorderRadius:{all:t.mobileBorderRadiusAll,classNamePrefix:`em-mob-border_radius_all-`}}})})},st=()=>{let t=n.getFieldsValue(!0);setTimeout(()=>{ue(e=>!e),le?(t.boxShadowInset=!1,t.boxShadowHOffset=null,t.boxShadowVOffset=null,t.boxShadowBlurRadius=null,t.boxShadowSpreadRadius=null,t.boxShadowColor=``):(t.boxShadowInset=!1,t.boxShadowHOffset=5,t.boxShadowVOffset=5,t.boxShadowBlurRadius=10,t.boxShadowSpreadRadius=-5,t.boxShadowColor=`#000000`),f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{boxShadow:{blurRadius:t.boxShadowBlurRadius,color:t.boxShadowColor,hOffset:t.boxShadowHOffset,inset:t.boxShadowInset,spreadRadius:t.boxShadowSpreadRadius,vOffset:t.boxShadowVOffset}}})})},ct=()=>{let t=n.getFieldsValue(!0);setTimeout(()=>{fe(e=>!e),de?(t.mobileBoxShadowInset=!1,t.mobileBoxShadowHOffset=null,t.mobileBoxShadowVOffset=null,t.mobileBoxShadowBlurRadius=null,t.mobileBoxShadowSpreadRadius=null,t.mobileBoxShadowColor=``):(t.mobileBoxShadowInset=!1,t.mobileBoxShadowHOffset=5,t.mobileBoxShadowVOffset=5,t.mobileBoxShadowBlurRadius=10,t.mobileBoxShadowSpreadRadius=-5,t.mobileBoxShadowColor=`#000000`),f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBoxShadow:{blurRadius:t.mobileBoxShadowBlurRadius,color:t.mobileBoxShadowColor,hOffset:t.mobileBoxShadowHOffset,inset:t.mobileBoxShadowInset,spreadRadius:t.mobileBoxShadowSpreadRadius,vOffset:t.mobileBoxShadowVOffset,classNamePrefix:`em-mob-box_shadow-`}}})})},lt=()=>{let t=n.getFieldsValue(!0);setTimeout(()=>{me(e=>!e),pe&&(t.mobileWidth=``,t.mobileHeight=``,f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileWidth:{value:null,dim:`px`,classNamePrefix:`em-mob-width-`},mobileHeight:{value:null,dim:`px`,classNamePrefix:`em-mob-height-`}}}))})},ut=()=>{K?(ye.current=!1,q(``),n.setFieldValue(`link`,``),f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{link:``}})):(ye.current=!0,q(M.current&&M.current.input.value?M.current.input.value:`...`),setTimeout(()=>{M.current.focus()}))},dt=e=>{e.target.value===``?q(`...`):(N.current.classList.add(`selected-td-form__button--active`),q(e.target.value)),el(e.target.value,ve)},ft=()=>{let t=n.getFieldsValue(!0);J?(Y(``),t.alt=``,f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{alt:``}})):(Y(P.current&&P.current.input.value?P.current.input.value:`...`),setTimeout(()=>{P.current.focus()}))},pt=e=>{e.target.value===``?Y(`...`):(F.current.classList.add(`selected-td-form__button--active`),Y(e.target.value))},mt=()=>{let t=n.getFieldsValue(!0);te?(X(``),t.title=``,f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{title:``}})):(X(I.current&&I.current.input.value?I.current.input.value:`...`),setTimeout(()=>{I.current.focus()}))},ht=()=>{Me(!je),je?(n.setFieldValue(`imgReplacer`,``),f({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{imgReplacer:``}})):setTimeout(()=>R.current.focus())},gt=e=>{e.target.value!==``&&z.current.classList.add(`selected-td-form__button--active`)},_t=e=>{e.target.value===``?X(`...`):(L.current.classList.add(`selected-td-form__button--active`),X(e.target.value))};return(0,C.jsxs)(p.It,{form:n,layout:`vertical`,name:`selected_image_form`,initialValues:{src:``,width:``,height:``,widthDim:``,heightDim:``,alt:``,align:`left`,border:``,boxShadow:``,show:`all`,borderPosition:Ec[Ke]||`borderAll`,mobileBorderPosition:Dc[qe]||`mobileBorderAll`,borderColor:``,borderWidth:``,borderStyle:``,mobileWidth:``,mobileWidthDim:``,mobileHeight:``,mobileHeightDim:``,mobileBorder:``,mobileBorderColor:``,mobileBorderWidth:``,mobileBorderStyle:``,mobileBoxShadow:``,mobileAlign:`left`,mobileVerticalAlign:``,link:`https://`,imgReplacer:``,countdownNumbersStrong:!1,countdownNumbersItalic:!1,countdownLabelsStrong:!1,countdownLabelsItalic:!1,video:{source:``,playButton:`youtube_red`}},onValuesChange:nt,autoComplete:`off`,className:`element-controls`,children:[!Fe&&(0,C.jsx)(p.K,{title:t(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:t(`Appearance on mobile devices`),type:`info`})}),y===`mobile`&&b.styles?(0,C.jsxs)(`div`,{id:`selected_element_form_mobile_props`,className:`selected_form-mobile-props`,children:[(0,C.jsx)(jd,{form:n,elementSettings:e,boxShadow:V,mobileBordersShow:ie,mobileBorderRadiusShow:se,mobileBoxShadowShow:de,mobileSizeShow:pe,oneMobileBorderRadiusValue:W,setOneMobileBorderRadiusValue:G,hasLink:K,hasAlt:J,hasTitle:te,linkInputRef:M,linkButtonRef:N,altInputRef:P,altButtonRef:F,titleInputRef:I,titleButtonRef:L,linkInputHandler:dt,altButtonHandler:ft,altInputHandler:pt,titleButtonHandler:mt,titleInputHandler:_t,linkButtonHandler:ut,toggleShowMobileBorderHandler:it,toggleShowMobileBorderRadiusHandler:ot,toggleShowMobileBoxShadowHandler:ct,toggleShowMobileSizeHandler:lt}),` `]}):(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,children:(0,C.jsx)(Od,{form:n,elementSettings:e,boxShadow:V,bordersShow:ne,borderRadiusShow:oe,boxShadowShow:le,oneBorderRadiusValue:ee,setOneBorderRadiusValue:U,hasLink:K,hasAlt:J,hasTitle:te,isOpenSrcReplacer:je,mergeTagItems:xe,mergeMenuOpen:Ce,setMergeMenuOpen:we,cascaderRef:B,linkInputRef:M,linkButtonRef:N,altInputRef:P,altButtonRef:F,titleInputRef:I,titleButtonRef:L,srcReplacerInputRef:R,srcReplacerButtonRef:z,linkProtocol:_e,handleLinkProtocolsChange:e=>{n.setFieldValue(`link`,e===`mergetag`?``:e),ve(e)},linkButtonHandler:ut,linkInputHandler:dt,altButtonHandler:ft,altInputHandler:pt,titleButtonHandler:mt,titleInputHandler:_t,srcReplacerButtonHandler:ht,srcInputHandler:gt,handleSelect:Ue,onChange:ze,filter:Be,renderSearchOption:Ve,handleChangeValues:nt,toggleShowBorderHandler:rt,toggleShowBorderRadiusHandler:at,toggleShowBoxShadowHandler:st})})]})};tf.propTypes={elementSettings:b.default.object.isRequired};var nf=()=>{let{__:e}=p.v();return(0,C.jsx)(p.K,{trigger:[`hover`],title:e(`The font-size CSS property sets the size of the font.`),placement:`top`,children:(0,C.jsx)(p.It.Item,{name:`mobileFontSize`,children:(0,C.jsx)(p.I,{min:8,max:90,placeholder:e(`Font size`),prefix:(0,C.jsx)(m.d,{icon:`FontSizeOutlined`}),addonAfter:`px`})})})},rf=({form:e,elementSettings:t,name:n,icon:r,tooltipTitle:a=null,showTooltip:o=!0,forceInactive:s=!1})=>{let{__:c}=p.v(),l=e.getFieldValue(n),u=i.et(),[d,f]=(0,v.useState)(t[n]);(0,v.useEffect)(()=>{t[n]!==e.getFieldValue(n)&&(e.setFieldValue(n,t[n]),f(t[n]))},[t,e,n]),(0,v.useEffect)(()=>{d!==l&&f(l)},[l,d,n]);let m=()=>{let r={[n]:!d};e.setFieldValue(n,!d),u({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:r}),n===`textSuperscript`?e.setFieldValue(`textSubscript`,!1):n===`textSubscript`&&e.setFieldValue(`textSuperscript`,!1),f(e=>!e)};return(0,C.jsx)(p.It.Item,{name:n,children:o?(0,C.jsx)(p.K,{placement:`bottom`,title:a||c(n.substring(4)),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button selected-td-form__button_style`,{"selected-td-form__button--active":d&&!s}),onClick:m,children:r})}):(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button selected-td-form__button_style`,{"selected-td-form__button--active":d&&!s}),onClick:m,children:r})})};rf.propTypes={form:b.default.shape({setFieldsValue:b.default.func.isRequired}).isRequired,elementSettings:b.default.object.isRequired,tooltipTitle:b.default.string,imgParent:b.default.bool};var af=()=>{let{__:e}=p.v();return[{symbol:`•`,code:`&bull;`,description:e(`Bullet`)},{symbol:`+`,code:`&plus;`,description:e(`Plus`)},{symbol:`»`,code:`&raquo;`,description:e(`Double quotation`)},{symbol:`×`,code:`&times;`,description:e(`Cross`)},{symbol:`–`,code:`&mdash;`,description:e(`Dash`)},{symbol:`›`,code:`&rsaquo;`,description:e(`Single quotation`)},{symbol:`→`,code:`&rarr;`,description:e(`Arrow`)},{symbol:`⇒`,code:`&rArr;`,description:e(`Double arrow`)},{symbol:`►`,code:`&blacktriangleright;`,description:e(`Pointer`)},{symbol:`−`,code:`&minus;`,description:e(`Minus`)},{symbol:`∗`,code:`&lowast;`,description:e(`Star`)},{symbol:`♦`,code:`&diams;`,description:e(`Diamond`)}]},of=(e,t=`#c6c3c3`,n={},r)=>{let{symbolSize:i=`25px`,marginRight:a=`5px`,marginBottom:o=`5px`,textStyle:s={whiteSpace:`normal`,lineHeight:`1.2`}}=n;return e.map(e=>({value:e.code,label:(0,C.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`},children:[(0,C.jsx)(`span`,{style:{color:t||`#c6c3c3`,marginRight:a,marginBottom:o,fontSize:i,lineHeight:`0.7`,width:i,textAlign:`center`,...s},children:e.symbol}),(0,C.jsx)(`span`,{style:s,children:e.description})]})}))},sf=({form:e,elementSettings:t,showAddParagraph:n=!0,isButton:r=!1,linkProtocol:a,setLinkProtocol:o,linkTarget:s,isBulletFontColorChecked:c=!1,setIsBulletFontColorChecked:l=()=>{},showTopDivider:u=!0})=>{let{__:d}=p.v(),{token:f}=p.Vt(),h=p.i(),g=i.et(),y=i.tt(),b=i.Wt(),x=(0,v.useRef)(),S=(0,v.useRef)(null),w=(0,v.useRef)(null),T=(0,v.useRef)(null),D=(0,v.useRef)(!1),[O,k]=(0,v.useState)(!1),[A,j]=(0,v.useState)(!1),[M,N]=(0,v.useState)(null),[P,F]=(0,v.useState)({start:0,end:0}),[I,L]=(0,v.useState)(!1),[R,z]=(0,v.useState)([]),[B,V]=(0,v.useState)(`#c6c3c3`),[H,ee]=(0,v.useState)(!1),[U,W]=(0,v.useState)(!1),G=(0,v.useRef)(null),K=(0,v.useRef)(``),q=af(),J=(0,v.useMemo)(()=>q,[]),Y=p.It.useWatch([],e);(0,v.useEffect)(()=>{r&&t?.textColor!==void 0&&e.setFieldValue(`textColor`,t.textColor)},[r,t?.textColor,e]);let te=null;(0,v.useEffect)(()=>{if(Y?.textColor&&c){let n=e.getFieldValue(`textColor`);g({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:{ColorBullets:n}})}},[Y?.textColor]),(0,v.useEffect)(()=>{let n=e.getFieldValue(`textLink`);typeof t.linkHref==`string`&&ee(!0),G&&!n&&(ee(!1),e.setFieldsValue({linkHref:null})),G.current=n||null},[Y?.textLink,Y?.linkHref,t.linkHref,e]),(0,v.useEffect)(()=>{let t=e.getFieldValue(`listUL`),n=e.getFieldValue(`listOL`);t&&K.current!==`listUL`?(e.setFieldValue(`listOL`,!1),K.current=`listUL`):n&&K.current!==`listOL`&&(e.setFieldValue(`listUL`,!1),K.current=`listOL`),!t&&!n&&(K.current=``)},[Y?.listUL,Y?.listOL,e]),_.g(e=>{e.data.operation===i.Wr.APPLICATION_FOCUS_IN_IFRAME&&N(null)});let[X,ne]=(0,v.useState)(null);(0,v.useEffect)(()=>{window?.navigator?.userAgent.includes(`Macintosh`)&&ne(!0)},[]);let re=(0,v.useRef)(null);function ie(e){let t=e.key.toLowerCase(),n=!1;return((te===`control`||te===`meta`)&&(t===`a`||t===`A`)||(te===`a`||te===`A`)&&(t===`control`||t===`meta`))&&(n=!0),te=t,t!==`control`&&t!==`a`&&t!==`A`&&t!==`meta`&&(te=null),n}let ae=e=>{g({operation:i.Wr.SANDBOX_ELEMENT_TEXT,action:e,locale:`ru_RU`}),h.success({message:d("It`s done!")})},oe=[{key:`1`,label:d(`This element`),onClick:()=>ae(`typograf`)},{key:`2`,label:d(`The whole email`),onClick:()=>ae(`typograf_all`)}],[Z,se]=(0,v.useState)(),[ce,le]=(0,v.useState)(!1);(0,v.useEffect)(()=>{z(of(J,B,{}))},[J,B]),(0,v.useEffect)(()=>{V(t?.list?.bulletsColor)},[e,t]),(0,v.useEffect)(()=>{let n=t.linkHref||t.href;n&&el(n,o);let r=t.linkHref||t.href,i=r&&Qc(r)?r.slice(1):r||`https://`;e.setFieldsValue({linkHref:i})},[e,t,o]);let ue=i.cr(i.jt);(0,v.useEffect)(()=>{ue?.items?.length&&se(i.Ut(ue.items,d,(e,t)=>{le(!1),y(i.Wr.SANDBOX_ADD_MERGETAG,e),t.stopPropagation(),t.preventDefault()}))},[ue,se,d,le,y]);let de=t=>{e.setFieldValue(`linkHref`,t===`mergetag`?``:t),o(t)},fe=(n,r)=>{if(le(!1),n){let a=ue.syntax.length>1?Z.findIndex(e=>e.key===r[0].key):0,o=ue.syntax[a].replace(`%value%`,n[n.length-1]);if(M?.getAttribute(`id`)===`selected_button_form_href`||M?.getAttribute(`id`)===`selected_text_form_linkHref`||M?.getAttribute(`id`)===`selected_text_form_textReplacer`)_e(o,M?.getAttribute(`id`));else{e.setFieldValue(`textReplacer`,o);let n=Date.now();g({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:{textReplacer:`${o}~~${n}`}})}}},pe=(e,t)=>t.some(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1),me=(e,t)=>{let n=t.map((t,n)=>{let r=t.label.split(RegExp(`(${e})`,`gi`));return(0,C.jsxs)(`span`,{children:[n!==0&&(0,C.jsx)(`span`,{children:`\xA0/\xA0`}),r.map((t,n)=>t.toLowerCase()===e.toLowerCase()?(0,C.jsx)(`span`,{style:{color:`red`},children:t},n):t)]},t.value)});return(0,C.jsx)(`div`,{title:t.map(e=>e.label).join(` / `),children:n})};(0,v.useEffect)(()=>{ce&&re.current&&re.current.focus()},[ce]);let he=i.Z();(0,v.useEffect)(()=>{let e=({target:e})=>{e.closest(`[id="merge_tags_wrapper"]`)||N(e)},t=({target:e})=>{!e.closest(`.merge-tags`)&&!e.closest(`#merge_tags_button`)&&le(!1)},n=new i.Da;return n.addDisposable($d(he,`focusin`,e)),n.addDisposable($d(he,`click`,t)),()=>{n.dispose()}},[he]),(0,v.useEffect)(()=>{let e=S?.current||document,t=()=>{window.getSelection().toString().length>0&&(D.current=!0)};return e.addEventListener(`dblclick`,t),()=>{e.removeEventListener(`dblclick`,t)}},[S]);let ge=(0,v.useCallback)(({target:e})=>{if(e&&!I){let{selectionStart:t,selectionEnd:n}=e;F({start:t,end:n})}L(!1)},[I]);(0,v.useEffect)(()=>ge({target:s?.target}),[s,ge]);let _e=(n,r)=>{let a=document.getElementById(r);if(a){let o=a.value?.substring(0,P.start),s=a.value?.substring(P.end),c=r.substring(r.lastIndexOf(`_`)+1);g({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:{[c]:o+n+s}}),e.setFieldValue(c,o+n+s),a.focus(),setTimeout(()=>{a.selectionStart=P.start,a.selectionEnd=P.start+n.length},400),L(!0)}},ve=()=>{k(!O),O?(e.setFieldValue(`textReplacer`,``),g({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:{textReplacer:``}})):setTimeout(()=>S.current.focus())},ye=e=>{e.target.value!==``&&w.current?.classList.add(`selected-td-form__button--active`)};(0,v.useEffect)(()=>{k(!!t.textReplacer?.length)},[t,e]);let be=(n=`unknown`)=>{j(!A),A?(e.setFieldValue(`textAnchor`,``),g({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:{textAnchor:``}})):setTimeout(()=>T.current?.focus())};return(0,v.useEffect)(()=>{j(!!t.textAnchor?.length)},[t,e]),(0,C.jsxs)(C.Fragment,{children:[n&&!t.showOnMobile&&(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(p.At,{gutter:20,style:{paddingBottom:4},children:(0,C.jsx)(p.kt,{span:12,gutter:20,children:(0,C.jsx)(xc,{form:e,elementSettings:t,name:`textAlign`})})})}),b.formTextFieldTypografEnabled&&(0,C.jsx)(p.M,{title:null,dividerTop:u,children:(0,C.jsxs)(p.At,{gutter:10,style:{marginTop:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`AddImage`,style:{marginBottom:f.formItemMarginBottomXS},children:(0,C.jsx)(p.Rt,{icon:(0,C.jsx)(m.d,{icon:`AddImage`}),onClick:()=>ae(`add_img`),style:{width:`100%`},children:d(`Add image`)})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`Typography`,style:{marginBottom:f.formItemMarginBottomXS},children:(0,C.jsx)(p.nt,{arrow:!0,menu:{items:oe},trigger:[`hover`],placement:`bottom`,getPopupContainer:e=>e.closest(`.selected-element-panel`),children:(0,C.jsx)(p.Rt,{icon:(0,C.jsx)(m.d,{icon:`Typograf`}),onClick:()=>ae(`typograf`),style:{width:`100%`},children:d(`Typography`)})})})}),b.mergeTagsShow&&Z&&(0,C.jsxs)(p.kt,{span:24,id:`merge_tags_wrapper`,style:{marginBottom:f.formItemMarginBottomXS},children:[(0,C.jsx)(p.Rt,{id:`merge_tags_button`,icon:(0,C.jsx)(m.d,{icon:`MergeTags`}),style:{width:`100%`,display:ce?`none`:`inline-flex`},onClick:()=>le(!0),children:d(`Merge tags`)}),(0,C.jsx)(p.Ft,{ref:re,popupClassName:`merge-tags`,options:Z,placeholder:d(`Start typing the title`),showSearch:{filter:pe,render:me},spellCheck:`false`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),onChange:fe,style:{display:ce?`block`:`none`,width:`100%`},open:ce,onKeyDown:e=>{e.key===`Escape`&&le(!1)}})]})]})}),(0,C.jsxs)(p.M,{title:null,dividerTop:u||b.formTextFieldTypografEnabled,bodyStyle:{paddingBottom:4},children:[(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Text font`),placement:`bottom`,zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`fontFamily`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.F,{textEditor:!0,loadGoogleFonts:bc,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`)})})}),!t.showOnMobile&&(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Font size`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`fontSize`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.I,{min:8,max:90,placeholder:d(`Font size`),prefix:(0,C.jsx)(m.d,{icon:`FontSizeOutlined`}),addonAfter:`px`})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Line height`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`lineHeight`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.I,{min:10,max:110,placeholder:d(`Line height`),prefix:(0,C.jsx)(m.d,{icon:`LineHeightOutlined`}),addonAfter:`px`})})})})]}),(0,C.jsx)(p.At,{gutter:10,style:{marginBottom:10,marginTop:5},children:(0,C.jsxs)(p.kt,{span:24,children:[(0,C.jsxs)(p.At,{gutter:10,style:{marginBottom:-10},children:[r&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsxs)(`div`,{className:`selected-text-common-form__format-toolbar`,children:[(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textStrong`,tooltipTitle:d(X?`Strong ( ⌘B )`:`Strong ( Ctrl+B )`),icon:(0,C.jsx)(m.d,{icon:`BoldOutlined`,className:`selected-text-common-form__icon-radius`})}),(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textItalic`,tooltipTitle:d(X?`Italic ( ⌘I )`:`Italic ( Ctrl+I )`),icon:(0,C.jsx)(m.d,{icon:`ItalicOutlined`,className:`selected-text-common-form__icon-radius`})}),(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textUnderline`,tooltipTitle:d(X?`Underline ( ⌘U )`:`Underline ( Ctrl+U )`),icon:(0,C.jsx)(m.d,{icon:`UnderlineOutlined`,className:`selected-text-common-form__icon-radius`})})]})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Text color`),placement:`bottom`,zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`textColor`,rules:[{message:d(`Please set the font color`)}],className:`form-item-margin-xs`,children:(0,C.jsx)(p.Ot,{placeholder:d(`Color`),usedColors:t.usedColors,usedLabel:d(`Used`),recommendedLabel:d(`Recommended`)})})})})]}),!r&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textStrong`,tooltipTitle:d(X?`Strong ( ⌘B )`:`Strong ( Ctrl+B )`),icon:(0,C.jsx)(m.d,{icon:`BoldOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textItalic`,tooltipTitle:d(X?`Italic ( ⌘I )`:`Italic ( Ctrl+I )`),icon:(0,C.jsx)(m.d,{icon:`ItalicOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textUnderline`,tooltipTitle:d(X?`Underline ( ⌘U )`:`Underline ( Ctrl+U )`),icon:(0,C.jsx)(m.d,{icon:`UnderlineOutlined`,className:`selected-text-common-form__icon-radius`})})}),t?.list?.isList&&(0,C.jsxs)(p.kt,{span:3,children:[` `,(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textStrikethrough`,tooltipTitle:d(X?`Strikethrough ( ⌘+Shift+X )`:`Strikethrough ( Alt+Shift+5 )`),icon:(0,C.jsx)(m.d,{icon:`StrikethroughOutlined`,className:`selected-text-common-form__icon-radius`})})]}),!t?.list?.isList&&(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`listUL`,tooltipTitle:d(`Unordered list`),icon:(0,C.jsx)(m.d,{icon:`UnorderedListOutlined`,className:`selected-td-form__icon-radius`}),onSelect:ge})}),!t?.list?.isList&&(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`listOL`,tooltipTitle:d(`Ordered list`),icon:(0,C.jsx)(m.d,{icon:`OrderedListOutlined`,className:`selected-td-form__icon-radius`}),onSelect:ge})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textSuperscript`,tooltipTitle:d(`Text superscript`),icon:(0,C.jsx)(m.d,{icon:`Superscript`})})}),t?.list?.isList&&(0,C.jsxs)(p.kt,{span:3,children:[` `,(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textSubscript`,tooltipTitle:d(`Text subscript`),icon:(0,C.jsx)(m.d,{icon:`Subscript`})})]}),n&&(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,className:(0,E.default)(`selected-text-common-form__button selected-text-common-form__button_style`,{"selected-text-common-form__button--active":typeof t.linkHref==`string`}),elementSettings:t,name:`textLink`,forceInactive:!!t.textAnchor,tooltipTitle:d(`Link`),icon:(0,C.jsx)(m.d,{icon:`LinkOutlined`,className:`selected-text-common-form__icon-radius`}),onSelect:ge})}),t?.list?.isList&&b.formTextFieldReplacerEnabled&&(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(p.K,{title:d(`Text replacer`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button ant-form-item`,{"selected-td-form__button--active":O}),icon:(0,C.jsx)(m.d,{icon:`Replacer`,className:`selected-td-form__icon-radius`}),onClick:ve,ref:w})})}),(!t?.list?.isList||n&&t?.list?.isList)&&(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(p.K,{title:d(`More options`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button ant-form-item`,{"selected-td-form__button--active":U||A}),icon:(0,C.jsx)(m.d,{icon:`DotsHoriz`,className:`selected-td-form__icon-radius`}),onClick:()=>W(!U)})})})]})]}),!r&&U&&(0,C.jsxs)(p.At,{gutter:10,children:[!t?.list?.isList&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.kt,{span:3,children:[` `,(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textStrikethrough`,tooltipTitle:d(X?`Strikethrough ( ⌘+Shift+X )`:`Strikethrough ( Alt+Shift+5 )`),icon:(0,C.jsx)(m.d,{icon:`StrikethroughOutlined`,className:`selected-text-common-form__icon-radius`})})]}),(0,C.jsxs)(p.kt,{span:3,children:[` `,(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textSubscript`,tooltipTitle:d(`Text subscript`),icon:(0,C.jsx)(m.d,{icon:`Subscript`})})]}),b.formTextFieldReplacerEnabled&&(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(p.K,{title:d(`Text replacer`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button ant-form-item`,{"selected-td-form__button--active":O}),icon:(0,C.jsx)(m.d,{icon:`Replacer`,className:`selected-td-form__icon-radius`}),onClick:ve,ref:w})})})]}),n&&(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(p.K,{title:d(`Anchor`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button ant-form-item`,{"selected-td-form__button--active":A}),icon:(0,C.jsx)(m.d,{icon:`Anchor`,className:`selected-text-common-form__icon-radius`}),onMouseDown:e=>{e.preventDefault(),be(`mouseDown`)}})})})]}),n&&typeof t.linkHref==`string`&&H&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Zc,{show:a===`#`,__:d,style:{marginBottom:f.formItemMarginBottomXS}}),(0,C.jsx)(p.K,{trigger:[`hover`],title:d(a===`#`?`Anchor name`:`The URL that the hyperlink directs to.`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`linkHref`,style:{marginBottom:a===`mailto:`?f.formItemMarginBottomXS:``},children:(0,C.jsx)(p.jt,{ref:x,addonBefore:(0,C.jsx)(Xc,{linkProtocol:a,handleLinkProtocolsChange:de,__:d}),allowClear:!0,placeholder:d(a===`#`?`Anchor name`:`Hyperlink URL`),autoFocus:t?.isNewLink,onSelect:ge,prefix:(0,C.jsx)(Jc,{linkProtocol:a})})})}),a===`mailto:`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.It.Item,{name:`subject`,style:{marginBottom:f.formItemMarginBottomXS},children:(0,C.jsx)(p.jt,{placeholder:d(`Subject`),onSelect:ge})}),(0,C.jsx)(p.It.Item,{name:`body`,style:{marginBottom:f.formItemMarginBottomMD},children:(0,C.jsx)(p.Ct,{rows:3,placeholder:d(`Body`),onSelect:ge})})]})]}),n&&A&&(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Anchor name`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`textAnchor`,children:(0,C.jsx)(p.jt,{placeholder:d(`Anchor name`),allowClear:!0,prefix:(0,C.jsx)(`span`,{className:`addon-text-content addon-text-content--icon`,title:d(`Anchor`),"aria-hidden":!0,children:(0,C.jsx)(m.d,{icon:`Anchor`,className:`selected-text-common-form__icon-radius`,size:18})}),ref:T,onSelect:ge,onBlur:()=>{e.getFieldValue(`textAnchor`)?.trim()||j(!1)}})})}),!r&&O&&(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Text`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`textReplacer`,children:(0,C.jsx)(p.jt,{placeholder:d(`The code that will replace this text`),allowClear:!0,prefix:(0,C.jsx)(`span`,{className:`addon-text-content`,children:d(`Text`)}),onChange:ye,onKeyDown:e=>{let n=e.target,r=n.value,a=n.selectionStart,o=ie(e);if(D.current&&a===0&&g({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:{textReplacer:`${r}~`}}),D.current=o,a===0&&e.key===` `){e.preventDefault();return}if(e.key===` `){if(a!==r.length){e.preventDefault();return}r.endsWith(` `)&&e.preventDefault()}},ref:S,onSelect:ge})})})]})}),!r&&(0,C.jsxs)(p.At,{gutter:10,style:{paddingBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Text color`),placement:`bottom`,zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`textColor`,rules:[{message:d(`Please set the font color`)}],children:(0,C.jsx)(p.Ot,{placeholder:d(`Color`),usedColors:t.usedColors,usedLabel:d(`Used`),recommendedLabel:d(`Recommended`)})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Text background`),placement:`bottom`,zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`textBackgroundColor`,rules:[{message:d(`Please set the background color`)}],children:(0,C.jsx)(p.Ot,{placeholder:d(`Background color`),usedColors:t.usedColors,usedLabel:d(`Used`),recommendedLabel:d(`Recommended`)})})})})]})]}),!r&&t?.list?.isList&&(0,C.jsxs)(p.M,{title:d(`List settings`),dividerTop:!0,children:[t?.list?.listType===`OL`&&(0,C.jsx)(p.At,{children:(0,C.jsx)(p.kt,{span:24,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Bullets font`),placement:`bottom`,zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`BulletsFontFamily`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.F,{textEditor:!0,loadGoogleFonts:bc,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),style:{marginTop:`-9px`}})})})})}),(0,C.jsx)(p.At,{gutter:[10],children:t?.list?.listType===`UL`&&(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Bullets type`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`BulletType`,className:`bullet-type`,children:(0,C.jsx)(p.St,{size:`middle`,placeholder:d(`Bullets type`),onClick:e=>e.stopPropagation(),options:R})})})})}),(0,C.jsxs)(p.At,{gutter:[10],children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Bullets color`),placement:`bottom`,zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`ColorBullets`,children:(0,C.jsx)(p.Ot,{placeholder:d(`Bullets color`),usedColors:t.usedColors,usedLabel:d(`Used`),recommendedLabel:d(`Recommended`),disabled:c,onChange:e=>{V(e),c&&l(!1)},externalValue:c?Y?.textColor:void 0})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Bullets size`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`BulletsSize`,children:(0,C.jsx)(p.I,{min:8,max:90,defaultValue:t?.list?.bulletFontSize,placeholder:d(`Bullets size`),prefix:(0,C.jsx)(m.d,{icon:`FontSizeOutlined`}),addonAfter:`px`})})})})]}),t?.list?.listType===`OL`&&(0,C.jsxs)(p.At,{children:[(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`BulletTextStrong`,tooltipTitle:d(X?`Strong ( ⌘B )`:`Strong ( Ctrl+B )`),icon:(0,C.jsx)(m.d,{icon:`BoldOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`BulletTextItalic`,tooltipTitle:d(X?`Italic ( ⌘I )`:`Italic ( Ctrl+I )`),icon:(0,C.jsx)(m.d,{icon:`ItalicOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`BulletTextStrikethrough`,tooltipTitle:d(X?`Strikethrough ( ⌘+Shift+X )`:`Strikethrough ( Alt+Shift+5 )`),icon:(0,C.jsx)(m.d,{icon:`StrikethroughOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`BulletTextUnderline`,tooltipTitle:d(X?`Underline ( ⌘U )`:`Underline ( Ctrl+U )`),icon:(0,C.jsx)(m.d,{icon:`UnderlineOutlined`,className:`selected-text-common-form__icon-radius`})})})]}),(0,C.jsxs)(p.At,{gutter:[10],style:{marginTop:`-8px`},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Between list items`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`SpacingBetweenParagraphs`,children:(0,C.jsx)(p.I,{min:5,max:100,placeholder:d(`Between list items`),prefix:(0,C.jsx)(m.d,{icon:`ColumnHeightOutlined`}),addonAfter:`px`})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:d(`Between bullets and text`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`SpacingBetweenBulletsAndText`,children:(0,C.jsx)(p.I,{min:1,max:100,placeholder:d(`Between bullets and text`),prefix:(0,C.jsx)(m.d,{icon:`ColumnWidthOutlined`}),addonAfter:`px`})})})})]})]})]})},cf=({form:e,elementSettings:t,showAddParagraph:n=!0,isButton:r=!1})=>{let{__:a}=p.v(),o=i.et(),s=i.lr(),{emailId:c}=(0,S.useParams)(),l=i.cr(c?u.w:u.s).hasOwnProperty(`type`)?i.wr:i.Br,d=i.Wt(),[f,h]=(0,v.useState)(null);(0,v.useEffect)(()=>{window?.navigator?.userAgent.includes(`Macintosh`)&&h(!0)},[]);let g=e=>{o({operation:i.Wr.SANDBOX_ELEMENT_TEXT,action:e,locale:`ru_RU`})},[_,y]=(0,v.useState)(t.textAlign),[b,x]=(0,v.useState)(t.linkHref),w=e=>y(e);return(0,v.useEffect)(()=>{y(t.textAlign),x(t.linkHref)},[t]),(0,C.jsx)(`div`,{className:`selected_text_common_form_mobile`,children:(0,C.jsxs)(p.xt,{size:`8`,split:(0,C.jsx)(p.Nt,{type:`vertical`}),children:[(0,C.jsxs)(p.xt,{size:8,className:`selected_text_common_form_mobile__group`,children:[(0,C.jsx)(`div`,{style:{width:190},children:(0,C.jsx)(p.K,{trigger:[`hover`],title:a(`Text font`),placement:`bottom`,zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`fontFamily`,children:(0,C.jsx)(p.F,{textEditor:!0,loadGoogleFonts:bc,getPopupContainer:e=>e.closest(`.selected_text_common_form_mobile`)})})})}),(0,C.jsx)(`div`,{style:{width:90},children:(0,C.jsx)(p.K,{trigger:[`hover`],title:a(`Font size`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`fontSize`,children:(0,C.jsx)(p.I,{min:8,max:90,placeholder:a(`Font size`),prefix:(0,C.jsx)(m.d,{icon:`FontSizeOutlined`}),addonAfter:`px`})})})}),(0,C.jsx)(`div`,{style:{width:90},children:(0,C.jsx)(p.K,{trigger:[`hover`],title:a(`Line height`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`lineHeight`,children:(0,C.jsx)(p.I,{min:10,max:110,placeholder:a(`Line height`),prefix:(0,C.jsx)(m.d,{icon:`LineHeightOutlined`}),addonAfter:`px`})})})})]}),(0,C.jsxs)(p.xt,{size:8,className:`selected_text_common_form_mobile__group`,children:[(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textStrong`,tooltipTitle:a(f?`Strong ( ⌘B )`:`Strong ( Ctrl+B )`),icon:(0,C.jsx)(m.d,{icon:`BoldOutlined`,className:`selected-td-form__icon-radius`})}),(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textItalic`,tooltipTitle:a(f?`Italic ( ⌘I )`:`Italic ( Ctrl+I )`),icon:(0,C.jsx)(m.d,{icon:`ItalicOutlined`,className:`selected-td-form__icon-radius`})}),(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textStrikethrough`,tooltipTitle:a(f?`Strikethrough ( ⌘+Shift+X )`:`Strikethrough ( Alt+Shift+5 )`),icon:(0,C.jsx)(m.d,{icon:`StrikethroughOutlined`,className:`selected-td-form__icon-radius`})}),(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textUnderline`,tooltipTitle:a(f?`Underline ( ⌘U )`:`Underline ( Ctrl+U )`),icon:(0,C.jsx)(m.d,{icon:`UnderlineOutlined`,className:`selected-td-form__icon-radius`})})]}),(0,C.jsxs)(p.xt,{size:8,className:`selected_text_common_form_mobile__group`,children:[(0,C.jsx)(p.K,{trigger:[`hover`],title:a(`Text color`),placement:`bottom`,zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`textColor`,rules:[{message:a(`Please set the font color`)}],children:(0,C.jsx)(p.Ot,{placeholder:a(`Color`),usedColors:t.usedColors,usedLabel:a(`Used`),recommendedLabel:a(`Recommended`),getPopupContainer:e=>e.closest(`.selected_text_common_form_mobile`)})})}),!r&&(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(p.K,{trigger:[`hover`],title:a(`Text background`),placement:`bottom`,zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`textBackgroundColor`,rules:[{message:a(`Please set the background color`)}],children:(0,C.jsx)(p.Ot,{placeholder:a(`Background color`),usedColors:t.usedColors,usedLabel:a(`Used`),recommendedLabel:a(`Recommended`)})})})})]}),n&&(0,C.jsx)(p.xt,{size:8,className:`selected_text_common_form_mobile__group`,children:(0,C.jsxs)(C.Fragment,{children:[typeof b==`string`?(0,C.jsx)(p.nt,{arrow:!0,dropdownRender:()=>(0,C.jsx)(p.K,{trigger:[`hover`],title:a(`The URL that the hyperlink directs to.`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`linkHref`,children:(0,C.jsx)(p.jt,{allowClear:!0,placeholder:a(`Hyperlink URL`),prefix:(0,C.jsx)(m.d,{icon:`LinkOutlined`}),autoFocus:t?.isNewLink})})}),overlayClassName:`codemode-textalign-dropdown`,overlayStyle:{left:520,top:52,transform:`translateX(0)`,marginLeft:57},trigger:[`hover`],placement:`bottom`,getPopupContainer:e=>e.closest(`.selected_text_common_form_mobile`),children:(0,C.jsx)(`div`,{children:(0,C.jsx)(rf,{form:e,className:`selected-td-form__button selected-td-form__button_style selected-td-form__button--active`,elementSettings:t,name:`textLink`,icon:(0,C.jsx)(m.d,{icon:`LinkOutlined`,className:`selected-td-form__icon-radius`}),showTooltip:!1})})}):(0,C.jsx)(rf,{form:e,className:`selected-td-form__button selected-td-form__button_style`,elementSettings:t,name:`textLink`,tooltipTitle:a(`Link`),icon:(0,C.jsx)(m.d,{icon:`LinkOutlined`,className:`selected-td-form__icon-radius`})}),(0,C.jsx)(p.nt,{arrow:!0,dropdownRender:()=>(0,C.jsx)(xc,{form:e,elementSettings:t,name:`textAlign`,setAlignStateHandle:w}),overlayClassName:`codemode-textalign-dropdown`,overlayStyle:{left:615,top:52,transform:`translateX(0)`,marginLeft:57},trigger:[`hover`],placement:`bottom`,getPopupContainer:e=>e.closest(`.selected_text_common_form_mobile`),children:(0,C.jsx)(p.Rt,{icon:_===`right`?(0,C.jsx)(m.d,{icon:`AlignRightOutlined`,size:18,strokeWidth:d.iconStrokeWidth}):_===`center`?(0,C.jsx)(m.d,{icon:`AlignCenterOutlined`,size:18,strokeWidth:d.iconStrokeWidth}):(0,C.jsx)(m.d,{icon:`AlignLeftOutlined`,size:18,strokeWidth:d.iconStrokeWidth}),className:`selected-td-form__button`})})]})}),(0,C.jsxs)(p.xt,{size:8,className:`selected_text_common_form_mobile__group`,children:[n&&(0,C.jsx)(p.K,{trigger:[`hover`],title:a(`Add paragraph`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{icon:(0,C.jsx)(m.d,{icon:`Paragraph`}),onClick:()=>g(`add_p`),className:`selected-td-form__button`})}),(0,C.jsx)(p.K,{trigger:[`hover`],title:a(`Add inline image`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{icon:(0,C.jsx)(m.d,{icon:`ImageAdd`,size:16,strokeWidth:d.iconStrokeWidth}),onClick:()=>g(`add_img`),className:`selected-td-form__button`})}),(0,C.jsx)(p.Rt,{icon:(0,C.jsx)(m.d,{icon:`Typograf`}),className:`selected-td-form__button`}),(0,C.jsx)(p.Rt,{icon:(0,C.jsx)(m.d,{icon:`CloseOutlined`}),type:`icon`,style:{marginLeft:26},onClick:()=>{o({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET}),s(i.nn()),setTimeout(()=>{s(l===`block`?u._({type:null}):u.L({type:null}))},300)}})]})]})})},lf=({form:e,elementSettings:t,imgParent:n=!1,name:r=`mobileAlign`})=>{let{__:a}=p.v(),[o,s]=(0,v.useState)(t[r]?.value),c=i.et(),l=i.Wt(),u=n=>{let a=n.target.value,l={[r]:{classNamePrefix:`em-mob-text_align-`,value:``}};a===o?(s(``),e.setFieldsValue(l),c({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:l})):s(a)};return(0,C.jsx)(p.It.Item,{name:r,children:(0,C.jsx)(p.yt.Group,{disabled:n&&!t.parent,children:(0,C.jsxs)(p.xt,{size:8,children:[(0,C.jsx)(p.K,{placement:`bottom`,title:a(`Text align left`),children:(0,C.jsx)(p.yt.Button,{value:`left`,onClick:u,children:(0,C.jsx)(m.d,{icon:`AlignLeftOutlined`,size:18,strokeWidth:l.iconStrokeWidth})})}),(0,C.jsx)(p.K,{placement:`bottom`,title:a(`Text align center`),children:(0,C.jsx)(p.yt.Button,{value:`center`,onClick:u,children:(0,C.jsx)(m.d,{icon:`AlignCenterOutlined`,size:18,strokeWidth:l.iconStrokeWidth})})}),(0,C.jsx)(p.K,{placement:`bottom`,title:a(`Text align right`),children:(0,C.jsx)(p.yt.Button,{value:`right`,onClick:u,children:(0,C.jsx)(m.d,{icon:`AlignRightOutlined`,size:18,strokeWidth:l.iconStrokeWidth})})}),(0,C.jsx)(p.K,{placement:`bottom`,title:a(`Text align justify`),children:(0,C.jsx)(p.yt.Button,{value:`justify`,onClick:u,children:(0,C.jsx)(m.d,{icon:`Justify`,size:18,strokeWidth:l.iconStrokeWidth})})})]})})})};lf.propTypes={form:b.default.shape({setFieldsValue:b.default.func.isRequired}).isRequired,elementSettings:b.default.object.isRequired,tooltipTitle:b.default.string,imgParent:b.default.bool};var uf=({elementSettings:e})=>{let{__:t}=p.v(),n=i.lr(),r=i.et(),[a]=p.It.useForm(),o=i.cr(u.w),s=i.cr(i.on),c=i.cr(i.fn),l=i.cr(i.cn),d=i.cr(i.an),f=l&&d!==`bottom`,[h,g]=(0,v.useState)(`https://`),[_,y]=(0,v.useState)(!1),b=af(),x=(0,v.useMemo)(()=>b,[]),S=o.hasOwnProperty(`type`)?i.wr:i.Br,w=(0,v.useCallback)(e=>{n(S===`email`?u.L(e):u._(e))},[n,S]);return(0,v.useEffect)(()=>{if(e){let{subject:t,body:n,baseEmail:r}=tl(e.linkHref),i=e.linkHref,o=typeof i==`string`&&Qc(i),s=typeof i==`string`&&i.startsWith(`mailto:`)?r:o?i.slice(1):typeof i==`string`?i:`https://`;g($c(i||``,`https://`)),a.setFieldsValue({...e,linkHref:s,subject:t,body:n,mobileFontSize:$(e.mobileFontSize?.value||e.fontSize),mobileFontSizeDim:e.mobileFontSize?.dim||e.fontSizeDim,mobileLineHeight:$(e.mobileLineHeight?.value||e.lineHeight),mobileLineHeightDim:e.mobileLineHeight?.dim||e.lineHeightDim,mobileTextAlign:$(e.mobileTextAlign?.value||e.textAlign),SpacingBetweenBulletsAndText:e?.list?.betweenRowCell,SpacingBetweenParagraphs:e?.list?.betweenParagraphs,BulletsSize:e?.list?.bulletFontSize,ColorBullets:e?.list?.bulletsColor,BulletTextStrong:e?.list?.bulletFontBold,BulletTextItalic:e?.list?.bulletFontItalic,CheckboxColor:_,BulletsFontFamily:e?.list?.bulletFontFamily,BulletTextUnderline:e?.list?.bulletFontUnderline,BulletTextStrikethrough:e?.list?.bulletFontStrikethrough,BulletType:x.find(t=>t.symbol===e?.list?.bulletType)?.code??x[0].code,textSuperscript:e?.textSuperscript,textSubscript:e?.textSubscript,listOL:e?.standardList?.listTypeOL,listUL:e?.standardList?.listTypeUL})}},[a,e]),(0,C.jsxs)(p.It,{form:a,layout:`vertical`,name:`selected_text_form`,autoComplete:`off`,onValuesChange:t=>{let n=a.getFieldsValue(!0),o=Object.keys(t)[0],s;switch(o){case`mobileFontSize`:s={[o]:{classNamePrefix:`em-mob-font_size-`,value:t[o],dim:n.mobileFontSizeDim}};break;case`mobileLineHeight`:s={[o]:{classNamePrefix:`em-mob-line_height-`,value:t[o],dim:n.mobileLineHeightDim}};break;case`mobileTextAlign`:s={[o]:{classNamePrefix:`em-mob-text_align-`,value:t[o]}};break;case`linkHref`:let e=t[o];if(typeof e==`string`&&e.substring(0,12)===`https://http`&&(e=e.substring(8,e.length),a.setFieldValue(`linkHref`,e)),h===`#`&&e&&!e.startsWith(`#`)&&(e=`#`+e),e.startsWith(`mailto:`)){let t=a.getFieldValue(`subject`),n=a.getFieldValue(`body`);s={[o]:nl(e,t,n)}}else s={[o]:e};el(e,g);break;case`subject`:case`body`:let r=a.getFieldValue(`linkHref`)||``;if(r.substring(0,7)===`mailto:`){let e=r.split(`?`)[0],n=o===`subject`?t[o]:a.getFieldValue(`subject`),i=o===`body`?t[o]:a.getFieldValue(`body`),c=[];n&&c.push(`subject=${encodeURIComponent(n)}`),i&&c.push(`body=${encodeURIComponent(i)}`),s={linkHref:c.length>0?`${e}?${c.join(`&`)}`:e}}else return;break;default:s=t}r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:s}),w({...e,list:{...e.list,bulletsColor:a.getFieldValue(`ColorBullets`),bulletFontFamily:a.getFieldValue(`BulletsFontFamily`),bulletFontSize:a.getFieldValue(`BulletsSize`),betweenParagraphs:a.getFieldValue(`SpacingBetweenParagraphs`),betweenRowCell:a.getFieldValue(`SpacingBetweenBulletsAndText`),bulletType:x.find(e=>e.code===a.getFieldValue(`BulletType`))?.symbol??x[0].symbol},...s,activateSection:null,changeKey:o})},className:`element-controls`,initialValues:{textAlign:`left`,textStrong:!1,textItalic:!1,textStrikethrough:!1,textUnderline:!1,textColor:``,textBackgroundColor:``,textLink:!1,textReplacer:``,textAnchor:``,subject:``,body:``,SpacingBetweenBulletsAndText:0,SpacingBetweenParagraphs:0,BulletsSize:0,ColorBullets:``,BulletTextStrong:!1,BulletTextItalic:!1,CheckboxColor:!1,BulletsFontFamily:``,BulletTextUnderline:!1,BulletTextStrikethrough:!1,BulletType:``,textSuperscript:!1,textSubscript:!1,listOL:!1,listUL:!1},children:[!f&&(0,C.jsx)(p.K,{title:t(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:t(`Appearance on mobile devices`),type:`info`})}),!(s===`mobile`&&!f&&c.styles)&&(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,style:{paddingRight:0},children:f?(0,C.jsx)(cf,{form:a,elementSettings:e}):(0,C.jsx)(sf,{form:a,elementSettings:e,linkProtocol:h,setLinkProtocol:g,isBulletFontColorChecked:_,setIsBulletFontColorChecked:y})}),!f&&(0,C.jsxs)(`div`,{id:`selected_element_form_mobile_props`,className:`selected_form-mobile-props`,style:{display:s===`mobile`&&c.styles?`block`:`none`},children:[(0,C.jsx)(p.At,{gutter:20,children:(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(lf,{form:a,elementSettings:e,name:`mobileTextAlign`})})}),!!e.showOnMobile&&(0,C.jsx)(sf,{form:a,elementSettings:e,linkProtocol:h,setLinkProtocol:g}),(0,C.jsxs)(p.At,{gutter:10,style:{marginBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(nf,{})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`mobileLineHeight`,children:(0,C.jsx)(p.I,{min:0,placeholder:t(`Line height`),prefix:(0,C.jsx)(m.d,{icon:`LineHeightOutlined`}),addonAfter:`px`})})})]})]})]})},df=(e,t)=>{let{__:n}=p.v();return(0,C.jsx)(p.K,{title:n(`During export, the element is converted into an image.`),children:(0,C.jsx)(p.It.Item,{name:`exportAsPicture`,valuePropName:`checked`,className:`form-item-margin-xs`,style:{marginBottom:10},children:(0,C.jsx)(p.bt,{id:`convert-in-image`,label:n(`Convert into an image`),size:`small`,labelStyle:{position:`relative`,top:2}})})},`exportAsPicture`)},ff=({form:e,elementSettings:t,boxShadow:n,bordersShow:r,borderRadiusShow:a,boxShadowShow:o,backgroundShow:s,backgroundImageEmpty:c,backgroundRepeatOptions:l,backgroundSizeOptions:u,sizeShow:d,modificationShow:f,oneBorderRadiusValue:m,setOneBorderRadiusValue:h,toggleShowBorderHandler:g,toggleShowBorderRadiusHandler:_,toggleShowBoxShadowHandler:v,toggleShowSizeHandler:y,toggleShowBackgroundHandler:b,toggleShowModificationHandler:x})=>{let{__:S}=p.v(),w=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{style:{paddingBottom:4},children:(0,C.jsx)(vd,{form:e,elementSettings:t,tooltipTitle:S(`The align attribute sets the horizontal alignment of the table.`)})}),(0,C.jsx)(p.M,{title:S(`Size`),collapsible:!0,open:d,onToggle:y,dividerTop:!0,children:(0,C.jsx)(p.A,{showHeight:!1,showMinMax:!0,dimensionSelect:ol,minWidthDimensionSelect:ol,maxWidthDimensionSelect:ol,rowStyle:{marginBottom:4},labels:{width:S(`Width`),height:S(`Height`),minWidth:S(`Minimum width`),maxWidth:S(`Maximum width`)}})}),(0,C.jsx)(p.M,{title:S(`Background`),collapsible:!0,open:s,onToggle:b,dividerTop:!0,children:(0,C.jsx)(p.b,{imageEnabled:w.formTableFieldBackgroundImageEnabled,backgroundImageEmpty:c,usedColors:t.usedColors,colorPlaceholder:S(`Background color`),usedLabel:S(`Used`),recommendedLabel:S(`Recommended`),horizontalPositionPlaceholder:S(`Horizontal position`),horizontalPositionTooltip:S(`Horizontal position`),verticalPositionPlaceholder:S(`Vertical position`),verticalPositionTooltip:S(`Vertical position`),backgroundRepeatTooltip:S(`Background image repeat`),backgroundSizeTooltip:S(`Background image size`),selectPlaceholder:S(`Please choose`),backgroundRepeatOptions:l,backgroundSizeOptions:u,imageUploadSlot:w.formTableFieldBackgroundImageEnabled?(0,C.jsx)(Zs,{form:e,label:S(`Background image`),name:`backgroundImage`,tooltipTitle:S(`Background image`),placeholder:S(`Background image link/route`)}):void 0})}),w.formFieldBorderEnabled&&(0,C.jsx)(p.M,{title:S(`Borders`),collapsible:!0,open:r,onToggle:g,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,elementSettings:t})}),w.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:S(`Border radius`),collapsible:!0,open:a,onToggle:_,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,oneBorderRadiusValue:m,setOneBorderRadiusValue:h,elementSettings:t})}),w.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:S(`Box shadow`),collapsible:!0,open:o,onToggle:v,dividerTop:!0,children:(0,C.jsx)(Sd,{})}),w.formFieldExportAsPictureEnabled&&(0,C.jsx)(p.M,{title:S(`Export settings`),collapsible:!0,open:f,onToggle:x,dividerTop:!0,children:(0,C.jsx)(df,{form:e,elementSettings:t})}),w.formFieldVisibilityEnabled&&(0,C.jsx)(p.M,{title:S(`Display control`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e})}),w.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:S(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})};ff.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,boxShadow:b.default.object,bordersShow:b.default.bool,borderRadiusShow:b.default.bool,boxShadowShow:b.default.bool,backgroundShow:b.default.bool,backgroundImageEmpty:b.default.bool,backgroundRepeatOptions:b.default.array,backgroundSizeOptions:b.default.array,sizeShow:b.default.bool,modificationShow:b.default.bool,oneBorderRadiusValue:b.default.bool,setOneBorderRadiusValue:b.default.func,toggleShowBorderHandler:b.default.func,toggleShowBorderRadiusHandler:b.default.func,toggleShowBoxShadowHandler:b.default.func,toggleShowSizeHandler:b.default.func,toggleShowBackgroundHandler:b.default.func,toggleShowModificationHandler:b.default.func};var pf=({form:e,elementSettings:t,label:n})=>{let{__:r}=p.v();(0,v.useRef)();let[a,o]=(0,v.useState)(t.mobileBackgroundColor?.value===`none`),{token:s}=p.Vt(),c=i.et();return(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)(p.K,{trigger:[`hover`],title:r(`Background color`),placement:`left`,children:[(0,C.jsx)(p.It.Item,{name:`mobileBackgroundColor`,style:{marginBottom:s.formItemMarginBottomXS/2},children:(0,C.jsx)(p.Ot,{onChange:e=>{o(!1)},placeholder:n,usedColors:t.usedColors,usedLabel:r(`Used`),recommendedLabel:r(`Recommended`)})}),(0,C.jsx)(p.bt,{id:`without-background-color`,label:r(`Without background color`),labelSize:`small`,size:`small`,checked:a,onChange:n=>{e.setFieldsValue({mobileBackgroundColor:``}),o(e=>!e),c({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:{mobileBackgroundColor:{classNamePrefix:`em-mob-background_color-`,value:a?``:`none`}}})}})]})})};pf.propTypes={form:b.default.shape({setFieldsValue:b.default.func.isRequired}).isRequired,elementSettings:b.default.object.isRequired};var mf=e=>typeof e==`string`&&/^https?:\/\//i.test(e.trim()),hf=({form:e,placeholder:t,name:n,tooltipTitle:r,disabled:a,elementSettings:o})=>{let{__:s}=p.v(),c=i.et(),l=p.It.useWatch(n,e),[u,d]=(0,v.useState)(`success`),f=(0,v.useRef)(),[m,h]=(0,v.useState)(!!(o.mobileBackgroundImage&&o.mobileBackgroundImage[0].value===`none`));(0,v.useEffect)(()=>{if(!l){d(``);return}if(typeof l==`string`&&(l.startsWith(`data:`)||l.startsWith(`blob:`))){d(`success`);return}if(mf(l)){d(`validating`);return}d(`success`)},[l]);let g=t=>{e.setFieldsValue({mobileBackgroundImage:``}),h(e=>!e),c({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:o.type,settings:{mobileBackgroundImage:[{classNamePrefix:`em-mob-background_image-`,value:m?``:`none`,type:`url`}]}})};return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{style:{float:`right`},children:(0,C.jsx)(p.Rt,{ref:f,size:`small`,type:o.mobileBackgroundImage&&o.mobileBackgroundImage[0].value===`none`?`primary`:`default`,ghost:!!(o.mobileBackgroundImage&&o.mobileBackgroundImage[0].value===`none`),onClick:g,children:s(`Without background image`)})}),(0,C.jsxs)(p.K,{trigger:[`hover`],title:r,placement:`left`,children:[(0,C.jsx)(p.It.Item,{name:n,validateStatus:u,style:{marginBottom:-7},children:(0,C.jsx)(Ys,{validateStatus:u,placeholder:t,name:n,disabled:a,elementSettings:o,imageInfo:o.type===i.zr.CAROUSEL?o.carouselImages?.[n.split(`_`)[1]]:o,onRemotePreviewValidate:d})}),(0,C.jsx)(`div`,{style:{marginTop:-3},children:(0,C.jsx)(p.bt,{id:`without-background-image`,label:s(`Without background image`),labelSize:`small`,size:`small`,checked:m,onChange:g})})]})]})};hf.propTypes={label:b.default.string,name:b.default.string.isRequired,tooltipTitle:b.default.string,disabled:b.default.bool,form:b.default.shape({getFieldValue:b.default.func.isRequired}).isRequired},hf.defaulProps={disabled:!1};var gf=({label:e,name:t,prefix:n,placeholder:r})=>(0,C.jsx)(p.K,{trigger:[`hover`],title:r,placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:t,style:{marginBottom:10},children:(0,C.jsx)(p.jt,{placeholder:r,allowClear:!0,prefix:n})})});gf.propTypes={tooltipTitle:b.default.string};var _f=({backgroundRepeatOptions:e})=>{let{__:t}=p.v();return(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Background image repeat`),placement:`left`,children:(0,C.jsx)(p.It.Item,{name:`mobileBackgroundRepeat`,children:(0,C.jsx)(p.St,{placeholder:t(`Please choose`),options:e,getPopupContainer:()=>document.querySelector(`.email-properties__collapse-panel`)})})})};_f.propTypes={tooltipTitle:b.default.string};var vf=({form:e,elementSettings:t,mobileBoxShadow:n,mobileBordersShow:r,mobileBorderRadiusShow:a,mobileBoxShadowShow:o,mobileSizeShow:s,mobileBackgroundShow:c,oneMobileBorderRadiusValue:l,setOneMobileBorderRadiusValue:u,backgroundRepeatOptions:d,toggleShowMobileBorderHandler:f,toggleShowMobileBorderRadiusHandler:m,toggleShowMobileBoxShadowHandler:h,toggleShowMobileSizeHandler:g,toggleShowMobileBackgroundHandler:_})=>{let{__:v}=p.v(),{token:y}=p.Vt(),b=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{style:{paddingBottom:4},children:(0,C.jsx)(vd,{form:e,elementSettings:t,typeOfForm:`mobile`})}),(0,C.jsx)(p.M,{title:v(`Size`),collapsible:!0,open:s,onToggle:g,dividerTop:!0,children:(0,C.jsx)(p.At,{gutter:10,children:(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:v(`Table width`),placement:`left`,children:(0,C.jsx)(`div`,{style:{marginBottom:y.formItemMarginBottomMD+4},children:(0,C.jsx)(kd,{form:e,name:`mobileWidth`,elementSettings:t})})})})})}),(0,C.jsx)(p.M,{title:v(`Background`),collapsible:!0,open:c,onToggle:_,dividerTop:!0,children:(0,C.jsx)(pf,{form:e,elementSettings:t})}),!1,b.formFieldBorderEnabled&&(0,C.jsx)(p.M,{title:v(`Borders`),collapsible:!0,open:r,onToggle:f,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,typeOfForm:`mobile`})}),b.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:v(`Border radius`),collapsible:!0,open:a,onToggle:m,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,typeOfForm:`mobile`,oneBorderRadiusValue:l,setOneBorderRadiusValue:u,elementSettings:t})}),b.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:v(`Box shadow`),collapsible:!0,open:o,onToggle:h,dividerTop:!0,children:(0,C.jsx)(Sd,{typeOfForm:`mobile`,form:e,elementSettings:t})}),b.formFieldVisibilityEnabled&&(0,C.jsx)(p.M,{title:v(`Display control`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e})}),b.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:v(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})};vf.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,mobileBoxShadow:b.default.object,mobileBordersShow:b.default.bool,mobileBorderRadiusShow:b.default.bool,mobileBoxShadowShow:b.default.bool,mobileSizeShow:b.default.bool,mobileBackgroundShow:b.default.bool,oneMobileBorderRadiusValue:b.default.bool,setOneMobileBorderRadiusValue:b.default.func,backgroundRepeatOptions:b.default.array,toggleShowMobileBorderHandler:b.default.func,toggleShowMobileBorderRadiusHandler:b.default.func,toggleShowMobileBoxShadowHandler:b.default.func,toggleShowMobileSizeHandler:b.default.func,toggleShowMobileBackgroundHandler:b.default.func};var yf=({elementSettings:e})=>{let{__:t}=p.v(),n=i.et(),[r]=p.It.useForm(),a=i.lr(),o=i.cr(u.w).hasOwnProperty(`type`)?i.wr:i.Br,[s,c]=(0,v.useState)({}),[l,d]=(0,v.useState)(!0),[f,m]=(0,v.useState)({}),[h,g]=(0,v.useState)(!0),_=i.cr(i.on),y=i.cr(i.fn);i.Wt();let[b,x]=(0,v.useState)(e.backgroundImage[0].value===``),S=i.cr(i.cn),w=i.cr(i.an),T=S&&w!==`bottom`,[E,D]=(0,v.useState)(!1),[O,k]=(0,v.useState)(!1),[A,j]=(0,v.useState)(!1),[M,N]=(0,v.useState)(!1),[P,F]=(0,v.useState)(!1),[I,L]=(0,v.useState)(!1),[R,z]=(0,v.useState)(!1),[B,V]=(0,v.useState)(!1),[H,ee]=(0,v.useState)(!1),[U,W]=(0,v.useState)(!1),[G,K]=(0,v.useState)(!1),q=[{label:t(`Not defined`),value:`none`},{label:t(`Do not repeat background (no-repeat)`),value:`no-repeat`},{label:t(`Repeat background (repeat)`),value:`repeat`},{label:t(`Repeat background horizontally (repeat-x)`),value:`repeat-x`},{label:t(`Repeat background vertically (repeat-y)`),value:`repeat-y`}],J=[{label:t(`Not defined`),value:``},{label:t(`Contain`),value:`contain`},{label:t(`Cover`),value:`cover`}],Y=e=>e&&(e?.width||e?.style||e?.color)?e:``,te=e.border,X=e.mobileBorder,ne=Object.keys(te).find(e=>te[e]?.width||te[e]?.style||te[e]?.color),re=Object.keys(X).find(e=>X[e]?.width||X[e]?.style||X[e]?.color);(0,v.useEffect)(()=>{if(e){let t=e.boxShadow,n=e.mobileBoxShadow;c(t),m(n),r.setFieldsValue({...e,width:e.width?.value,widthDim:e.width?.dim,maxWidth:e.maxWidth?.value,maxWidthDim:e.maxWidth?.dim,minWidth:e.minWidth?.value,minWidthDim:e.minWidth?.dim,backgroundImage:e.backgroundImage[0].value,show:e.show?e.show:`all`,borderAll:$(e.border.all),borderTop:$(e.border.top),borderBottom:$(e.border.bottom),borderRight:$(e.border.right),borderLeft:$(e.border.left),borderRadiusAll:$(e.borderRadius.all),borderRadiusTopLeft:$(e.borderRadius.topLeft),borderRadiusBottomLeft:$(e.borderRadius.bottomLeft),borderRadiusTopRight:$(e.borderRadius.topRight),borderRadiusBottomRight:$(e.borderRadius.bottomRight),boxShadowInset:$(e.boxShadow?.inset)||!1,boxShadowHOffset:$(e.boxShadow?.hOffset),boxShadowVOffset:$(e.boxShadow?.vOffset),boxShadowBlurRadius:$(e.boxShadow?.blurRadius),boxShadowSpreadRadius:$(e.boxShadow?.spreadRadius),boxShadowColor:$(e.boxShadow?.color),mobileWidth:rl(e.mobileWidth?.value),mobileWidthDim:e.mobileWidth?.dim,mobileAlign:e.mobileAlign?.value,mobileBorderAll:Y(e.mobileBorder.all)||!(Y(e.mobileBorder.top)||Y(e.mobileBorder.bottom)||Y(e.mobileBorder.right)||Y(e.mobileBorder.left))&&Y(e.border.all),mobileBorderTop:Y(e.mobileBorder.top)||!Y(e.mobileBorder.all)&&Y(e.border.top),mobileBorderBottom:Y(e.mobileBorder.bottom)||!Y(e.mobileBorder.all)&&Y(e.border.bottom),mobileBorderRight:Y(e.mobileBorder.right)||!Y(e.mobileBorder.all)&&Y(e.border.right),mobileBorderLeft:Y(e.mobileBorder.left)||!Y(e.mobileBorder.all)&&Y(e.border.left),mobileBorderRadiusAll:$(e.mobileBorderRadius.all),mobileBorderRadiusTopLeft:$(e.mobileBorderRadius.topLeft===null?e.mobileBorderRadius.all:e.mobileBorderRadius.topLeft),mobileBorderRadiusBottomLeft:$(e.mobileBorderRadius.bottomLeft===null?e.mobileBorderRadius.all:e.mobileBorderRadius.bottomLeft),mobileBorderRadiusTopRight:$(e.mobileBorderRadius.topRight===null?e.mobileBorderRadius.all:e.mobileBorderRadius.topRight),mobileBorderRadiusBottomRight:$(e.mobileBorderRadius.bottomRight===null?e.mobileBorderRadius.all:e.mobileBorderRadius.bottomRight),mobileBoxShadowInset:$(e.mobileBoxShadow?.inset)||!1,mobileBoxShadowHOffset:$(e.mobileBoxShadow?.hOffset),mobileBoxShadowVOffset:$(e.mobileBoxShadow?.vOffset),mobileBoxShadowBlurRadius:$(e.mobileBoxShadow?.blurRadius),mobileBoxShadowSpreadRadius:$(e.mobileBoxShadow?.spreadRadius),mobileBoxShadowColor:$(e.mobileBoxShadow?.color),mobileBackgroundColor:$(e.mobileBackgroundColor?.value===`none`?``:e.mobileBackgroundColor?.value),mobileBackgroundImage:e.mobileBackgroundImage[0].value===`none`?``:e.mobileBackgroundImage[0].value,mobileBackgroundPositionX:$(e.mobileBackgroundPositionX?.value),mobileBackgroundPositionY:$(e.mobileBackgroundPositionY?.value),mobileBackgroundRepeat:e.mobileBackgroundRepeat?.value?e.mobileBackgroundRepeat?.value:`none`,exportAsPicture:e?.exportAsPicture}),!$(e.borderRadius.all)&&($(e.borderRadius.topLeft)||$(e.borderRadius.bottomLeft)||$(e.borderRadius.topRight)||$(e.borderRadius.bottomRight))?d(!1):d(!0),$(e.mobileBorderRadius.topLeft)||$(e.mobileBorderRadius.bottomLeft)||$(e.mobileBorderRadius.topRight)||$(e.mobileBorderRadius.bottomRight)?g(!1):g(!0),x(e.backgroundImage[0].value===``),D(e=>ne?!0:e),k(e=>ne||re?!0:e),j(!!e.borderRadius.all||!!e.borderRadius.topLeft||!!e.borderRadius.bottomLeft||!!e.borderRadius.topRight||!!e.borderRadius.bottomRight),N(!!e.mobileBorderRadius.all||!!e.mobileBorderRadius.topLeft||!!e.mobileBorderRadius.bottomLeft||!!e.mobileBorderRadius.topRight||!!e.mobileBorderRadius.bottomRight),F(!!e.boxShadow),L(!!e.mobileBoxShadow.blurRadius||!!e.mobileBoxShadow.color||!!e.mobileBoxShadow.hOffset||!!e.mobileBoxShadow.inset||!!e.mobileBoxShadow.spreadRadius||!!e.mobileBoxShadow.vOffset),z(!!e.width?.value||!!e.minWidth?.value||!!e.maxWidth?.value),V(!!e.mobileWidth.value),ee(!!e.backgroundColor||!!e.backgroundImage[0].value||!!e.backgroundPositionY||!!e.backgroundPositionX||e.backgroundRepeat!==`repeat`||!e.backgroundRepeat,!!e.backgroundSize),W(!!e.mobileBackgroundColor.value),K(!!e.exportAsPicture)}},[r,e]);let ie=(0,v.useCallback)(e=>{a(o===`email`?u.L(e):u._(e))},[a,o]);return(0,C.jsxs)(p.It,{form:r,layout:`vertical`,name:`selected_table_form`,initialValues:{backgroundColor:``,backgroundImage:``,backgroundPositionX:``,backgroundPositionY:``,backgroundRepeat:``,backgroundSize:``,exportAsPicture:!1,show:`all`,width:{value:``,dim:``},maxWidth:{value:``,dim:``},minWidth:{value:``,dim:``},align:``,mobileAlign:``,border:``,boxShadow:``,borderPosition:Ec[ne]||`borderAll`,mobileBorderPosition:Dc[re]||`mobileBorderAll`,borderColor:``,borderWidth:``,borderStyle:``,borderRadiusAll:``,RadiusTopLeft:``,RadiusBottomLeft:``,RadiusTopRight:``,RadiusBottomRight:``,mobileWidth:``,mobileWidthDim:``,mobileBorder:``,mobileBorderColor:``,mobileBorderWidth:``,mobileBorderStyle:``,mobileBoxShadow:``,mobileBackgroundColor:``,mobileBackgroundImage:``},onValuesChange:t=>{let a=r.getFieldsValue(!0),o=Object.keys(t)[0],s;switch(o){case`exportAsPicture`:s={exportAsPicture:a.exportAsPicture};break;case`boxShadowInset`:case`boxShadowHOffset`:case`boxShadowVOffset`:case`boxShadowBlurRadius`:case`boxShadowSpreadRadius`:case`boxShadowColor`:s={boxShadow:{hOffset:a.boxShadowHOffset,vOffset:a.boxShadowVOffset,blurRadius:a.boxShadowBlurRadius,spreadRadius:a.boxShadowSpreadRadius,color:a.boxShadowColor,inset:a.boxShadowInset}};break;case`borderAll`:case`borderTop`:case`borderBottom`:case`borderLeft`:case`borderRight`:a.borderPosition===`borderAll`?(s={border:{...i.ci,all:{...Q,...a.borderAll}}},r.setFieldsValue({borderLeft:Q,borderRight:Q,borderTop:Q,borderBottom:Q})):a.borderAll?.width||a.borderAll?.style||a.borderAll?.color?(s={border:{all:null,left:a.borderAll,right:a.borderAll,top:a.borderAll,bottom:a.borderAll,[Oc[o]]:{...a[o],...t[o]}}},r.setFieldsValue({borderAll:null,borderLeft:a.borderAll,borderRight:a.borderAll,borderTop:a.borderAll,borderBottom:a.borderAll,[o]:{...a[o],...t[o]}})):(s={border:{all:null,left:a.borderLeft,right:a.borderRight,top:a.borderTop,bottom:a.borderBottom,[Oc[o]]:{...a[o],...t[o]}}},r.setFieldsValue({border:s.border}));break;case`mobileBorderAll`:case`mobileBorderTop`:case`mobileBorderBottom`:case`mobileBorderLeft`:case`mobileBorderRight`:if(a.mobileBorderPosition===`mobileBorderAll`)s={mobileBorder:{...i.ci,all:{...Q,...a.mobileBorderAll,classNamePrefix:`em-mob-border_`+kc[o]+`-`}}},r.setFieldsValue({borderLeft:Q,borderRight:Q,borderTop:Q,borderBottom:Q});else{let n=kc[o],i={...a[o],...t[o]},c=!i?.width&&!i?.style&&!i?.color;if(a.mobileBorder?.all?.width||a.mobileBorder?.all?.style||a.mobileBorder?.all?.color){let e=a.mobileBorderAll;s={mobileBorder:{all:null,left:e,right:e,top:e,bottom:e,[n]:c?null:{...i,classNamePrefix:`em-mob-border_`+n+`-`}}},r.setFieldsValue({mobileBorderAll:null,mobileBorderLeft:e,mobileBorderRight:e,mobileBorderTop:e,mobileBorderBottom:e,[o]:i})}else{let t=e.mobileBorder||{},a=e=>{let n=t[e];return n&&(n?.width||n?.style||n?.color)?n:null};s={mobileBorder:{all:null,left:n===`left`?c?null:{...i,classNamePrefix:`em-mob-border_left-`}:a(`left`),right:n===`right`?c?null:{...i,classNamePrefix:`em-mob-border_right-`}:a(`right`),top:n===`top`?c?null:{...i,classNamePrefix:`em-mob-border_top-`}:a(`top`),bottom:n===`bottom`?c?null:{...i,classNamePrefix:`em-mob-border_bottom-`}:a(`bottom`)}},r.setFieldsValue({[o]:i})}}break;case`width`:s={[o]:{value:t[o],dim:a.widthDim}};break;case`widthDim`:s={width:{value:a.width,dim:t[o]}};break;case`maxWidth`:s={[o]:{value:t[o],dim:a.maxWidthDim}};break;case`maxWidthDim`:s={maxWidth:{value:a.maxWidth,dim:t[o]}};break;case`minWidth`:s={[o]:{value:t[o],dim:a.minWidthDim}};break;case`minWidthDim`:s={minWidth:{value:a.minWidth,dim:t[o]}};break;case`backgroundImage`:x(t[o]===``),s={[o]:[{...e.backgroundImage[0],value:t[o]}],backgroundSize:`cover`};break;case`borderRadiusAll`:case`borderRadiusTopLeft`:case`borderRadiusBottomLeft`:case`borderRadiusTopRight`:case`borderRadiusBottomRight`:s={borderRadius:{[wc[o]]:+t[o]}};break;case`mobileWidth`:s={[o]:{classNamePrefix:`em-mob-width-`,value:t[o],dim:a.mobileWidthDim}};break;case`mobileWidthDim`:s={mobileWidth:{classNamePrefix:`em-mob-width-`,value:a.mobileWidth||100,dim:t[o]}};break;case`mobileBorderRadiusAll`:case`mobileBorderRadiusTopLeft`:case`mobileBorderRadiusBottomLeft`:case`mobileBorderRadiusTopRight`:case`mobileBorderRadiusBottomRight`:s={mobileBorderRadius:{[mobileBorderRadiusPosition[o]]:t[o],classNamePrefix:`em-mob-border_radius_`+mobileBorderRadiusPosition[o]+`-`}};break;case`mobileBoxShadowInset`:case`mobileBoxShadowHOffset`:case`mobileBoxShadowVOffset`:case`mobileBoxShadowBlurRadius`:case`mobileBoxShadowSpreadRadius`:case`mobileBoxShadowColor`:s={mobileBoxShadow:{hOffset:a.mobileBoxShadowHOffset,vOffset:a.mobileBoxShadowVOffset,blurRadius:a.mobileBoxShadowBlurRadius,spreadRadius:a.mobileBoxShadowSpreadRadius,color:a.mobileBoxShadowColor,inset:a.mobileBoxShadowInset,classNamePrefix:`em-mob-box_shadow-`}};break;case`mobileBackgroundColor`:s={[o]:{classNamePrefix:`em-mob-background_color-`,value:t[o]}};break;case`mobileBackgroundImage`:s={[o]:[{...e.mobileBackgroundImage[0],classNamePrefix:`em-mob-background_image-`,value:t[o]}]};break;case`mobileBackgroundPositionX`:s={[o]:{classNamePrefix:`em-mob-background_position_x-`,value:t[o]}};break;case`mobileBackgroundPositionY`:s={[o]:{classNamePrefix:`em-mob-background_position_x-`,value:t[o]}};break;case`mobileBackgroundRepeat`:s={[o]:{classNamePrefix:`em-mob-background_repeat-`,value:t[o]}};break;case`mobileAlign`:s={[o]:{classNamePrefix:`em-mob-table_align-`,value:t[o]}};break;default:s=t}o!==`borderPosition`&&o!==`mobileBorderPosition`&&(n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:s}),o!==`mobileBorderRadiusAll`&&o!==`mobileBorderRadiusTopLeft`&&o!==`mobileBorderRadiusTopRight`&&o!==`mobileBorderRadiusBottomLeft`&&o!==`mobileBorderRadiusBottomRight`&&ie({...e,...s,mobileBorderRadius:{...e.mobileBorderRadius,...s?.mobileBorderRadius},activateSection:null,changeKey:o}))},autoComplete:`off`,className:`element-controls`,children:[!T&&(0,C.jsx)(p.K,{title:t(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:t(`Appearance on mobile devices`),type:`info`})}),_===`mobile`&&y.styles?(0,C.jsxs)(`div`,{id:`selected_element_form_mobile_props`,className:`selected_form-mobile-props`,children:[(0,C.jsx)(vf,{form:r,elementSettings:e,mobileBoxShadow:f,mobileBordersShow:O,mobileBorderRadiusShow:M,mobileBoxShadowShow:I,mobileSizeShow:B,mobileBackgroundShow:U,oneMobileBorderRadiusValue:h,setOneMobileBorderRadiusValue:g,backgroundRepeatOptions:q,toggleShowMobileBorderHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{k(e=>!e),O?(t.mobileBorderAll=Q,t.mobileBorderTop=Q,t.mobileBorderBottom=Q,t.mobileBorderRight=Q,t.mobileBorderLeft=Q):t.mobileBorderAll={width:1,color:`#E5E5E5`,style:`solid`},n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorder:{all:{color:t.mobileBorderAll.color,style:t.mobileBorderAll.style,width:t.mobileBorderAll.width}}}})})},toggleShowMobileBorderRadiusHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{N(e=>!e),M?(t.mobileBorderRadiusAll=null,g(!0)):t.mobileBorderRadiusAll=5,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorderRadius:{all:t.mobileBorderRadiusAll,classNamePrefix:`em-mob-border_radius_all-`}}})})},toggleShowMobileBoxShadowHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{L(e=>!e),I?(t.mobileBoxShadowInset=!1,t.mobileBoxShadowHOffset=null,t.mobileBoxShadowVOffset=null,t.mobileBoxShadowBlurRadius=null,t.mobileBoxShadowSpreadRadius=null,t.mobileBoxShadowColor=``):(t.mobileBoxShadowInset=!1,t.mobileBoxShadowHOffset=5,t.mobileBoxShadowVOffset=5,t.mobileBoxShadowBlurRadius=10,t.mobileBoxShadowSpreadRadius=-5,t.mobileBoxShadowColor=`#000000`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBoxShadow:{blurRadius:t.mobileBoxShadowBlurRadius,color:t.mobileBoxShadowColor,hOffset:t.mobileBoxShadowHOffset,inset:t.mobileBoxShadowInset,spreadRadius:t.mobileBoxShadowSpreadRadius,vOffset:t.mobileBoxShadowVOffset,classNamePrefix:`em-mob-box_shadow-`}}})})},toggleShowMobileSizeHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{V(e=>!e),B&&(t.mobileWidth=``,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileWidth:{value:null,dim:`px`,classNamePrefix:`em-mob-width-`}}}))})},toggleShowMobileBackgroundHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{W(e=>!e),U?t.mobileBackgroundColor=``:t.mobileBackgroundColor=`#E5E5E5`,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBackgroundColor:{classNamePrefix:`em-mob-background_color-`,value:t.mobileBackgroundColor}}})})}}),` `]}):(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,children:(0,C.jsx)(ff,{form:r,elementSettings:e,boxShadow:s,bordersShow:E,borderRadiusShow:A,boxShadowShow:P,backgroundShow:H,backgroundImageEmpty:b,backgroundRepeatOptions:q,backgroundSizeOptions:J,sizeShow:R,modificationShow:G,oneBorderRadiusValue:l,setOneBorderRadiusValue:d,toggleShowBorderHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{D(e=>!e),E?(t.borderAll=Q,t.borderTop=Q,t.borderBottom=Q,t.borderRight=Q,t.borderLeft=Q):t.borderAll={width:1,color:`#E5E5E5`,style:`solid`},n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{border:{all:{color:t.borderAll.color,style:t.borderAll.style,width:t.borderAll.width}}}})})},toggleShowBorderRadiusHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{j(e=>!e),A?(t.borderRadiusAll=0,d(!0)):t.borderRadiusAll=5,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{borderRadius:{all:t.borderRadiusAll}}})})},toggleShowBoxShadowHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{F(e=>!e),P?(t.boxShadowInset=!1,t.boxShadowHOffset=null,t.boxShadowVOffset=null,t.boxShadowBlurRadius=null,t.boxShadowSpreadRadius=null,t.boxShadowColor=``):(t.boxShadowInset=!1,t.boxShadowHOffset=5,t.boxShadowVOffset=5,t.boxShadowBlurRadius=10,t.boxShadowSpreadRadius=-5,t.boxShadowColor=`#000000`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{boxShadow:{blurRadius:t.boxShadowBlurRadius,color:t.boxShadowColor,hOffset:t.boxShadowHOffset,inset:t.boxShadowInset,spreadRadius:t.boxShadowSpreadRadius,vOffset:t.boxShadowVOffset}}})})},toggleShowSizeHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{z(e=>!e),R&&(t.width=``,t.minWidth=``,t.maxWidth=``,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{width:{value:null,dim:`px`},minWidth:{value:null,dim:`px`},maxWidth:{value:null,dim:`px`}}}))})},toggleShowBackgroundHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{ee(e=>!e),H?(t.backgroundColor=``,t.backgroundImage=``,t.backgroundPositionX=``,t.backgroundPositionY=``,t.backgroundRepeat=`none`,t.backgroundSize=``,x(!0)):(t.backgroundColor=`#E5E5E5`,t.backgroundSize=``,t.backgroundRepeat=`none`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{backgroundColor:t.backgroundColor,backgroundImage:[{type:`url`,value:t.backgroundImage}],backgroundPositionX:t.backgroundPositionX,backgroundPositionY:t.backgroundPositionY,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}})})},toggleShowModificationHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{K(e=>!e),G&&(t.exportAsPicture=!1,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{exportAsPicture:!1}}))})}})})]})};yf.propTypes={elementSettings:b.default.object.isRequired};var bf=({elementSettings:e})=>{let{__:t}=p.v(),n=i.et(),[r]=p.It.useForm(),a=i.Wt(),o=i.cr(i.cn),s=i.cr(i.an),[c,l]=(0,v.useState)({}),[u,d]=(0,v.useState)(`https://`),f=({target:e})=>{let{selectionStart:t,selectionEnd:n}=e;e&&l({target:e,selection:{start:t,end:n}})};(0,v.useEffect)(()=>{if(e){let t=``,n=``,i=e.href==null?`https://`:e.href;if(i&&i.substring(0,7)===`mailto:`){let r=new URL(e.href);t=r.searchParams.get(`subject`)||``,n=r.searchParams.get(`body`)||``,i=e.href.split(`?`)[0],d(`mailto:`)}else e.href&&(e.href.substring(0,8)===`https://`||e.href.substring(0,7)===`http://`?d(`https://`):e.href.substring(0,4)===`tel:`?d(`tel:`):e.href.substring(0,4)===`sms:`?d(`sms:`):e.href.substring(0,6)===`ftp://`?d(`ftp://`):d(``));r.setFieldsValue({...e,href:i,subject:t,body:n})}},[r,e]);let h=t=>{let a=Object.keys(t)[0],o=t;if(a===`href`){let e=t[a];if(e.substring(0,7)===`mailto:`){let t=r.getFieldValue(`subject`),n=r.getFieldValue(`body`),i=[];t&&i.push(`subject=${encodeURIComponent(t)}`),n&&i.push(`body=${encodeURIComponent(n)}`),o={href:i.length>0?`${e}?${i.join(`&`)}`:e}}}if(a===`subject`||a===`body`){let e=r.getFieldValue(`href`)||``;if(e.substring(0,7)===`mailto:`){let n=e.split(`?`)[0],i=a===`subject`?t[a]:r.getFieldValue(`subject`),s=a===`body`?t[a]:r.getFieldValue(`body`),c=[];i&&c.push(`subject=${encodeURIComponent(i)}`),s&&c.push(`body=${encodeURIComponent(s)}`),o={href:c.length>0?`${n}?${c.join(`&`)}`:n}}else return}n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:o})},g=e=>{n({operation:i.Wr.SANDBOX_ELEMENT_TEXT,action:e})};return(0,C.jsx)(p.It,{form:r,layout:`vertical`,name:`selected_link_form`,initialValues:{href:`https://`,target:``,textStrong:!1,textItalic:!1,textStrikethrough:!1,textUnderline:!1,textReplacer:``,subject:``,body:``},onValuesChange:h,autoComplete:`off`,className:`element-controls`,children:!o||s===`bottom`?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Hyperlink URL`),placement:`left`,children:(0,C.jsx)(p.It.Item,{name:`href`,style:{marginBottom:24,paddingRight:10},children:(0,C.jsx)(p.jt,{allowClear:!0,placeholder:t(`Hyperlink URL`),prefix:(0,C.jsx)(m.d,{icon:`LinkOutlined`}),onSelect:f})})}),a.formLinkFieldInsertImageEnabled&&(0,C.jsx)(p.M,{title:t(`Actions with the chosen text`),dividerTop:!0,children:(0,C.jsx)(p.It.Item,{children:(0,C.jsx)(p.Rt,{icon:(0,C.jsx)(m.d,{icon:`PicLeftOutlined`}),onClick:()=>g(`add_img`),children:t(`Add inline image`)})})}),(0,C.jsx)(sf,{form:r,elementSettings:e,showAddParagraph:!1,linkTarget:c,linkProtocol:u,setLinkProtocol:d})]}):(0,C.jsx)(cf,{form:r,elementSettings:e,showAddParagraph:!1})})};bf.propTypes={elementSettings:b.default.object.isRequired};var xf=()=>{let{__:e}=p.v();return(0,C.jsx)(p.At,{gutter:10,children:(0,C.jsx)(p.kt,{span:14,children:(0,C.jsx)(p.It.Item,{name:`height`,children:(0,C.jsx)(p.I,{min:0,placeholder:e(`Indent height`),prefix:(0,C.jsx)(m.d,{icon:`ColumnHeightOutlined`}),addonAfter:`px`})})})})};xf.propTypes={};var Sf=({form:e,elementSettings:t})=>(0,C.jsx)(p.At,{gutter:10,style:{marginBottom:20},children:(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(Ad,{form:e,name:`mobileHeight`,elementSettings:t})})});Sf.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired};var Cf=({elementSettings:e})=>{let{__:t}=p.v(),[n]=p.It.useForm(),r=i.lr(),a=i.cr(u.w),o=i.et(),s=i.cr(i.on),c=i.cr(i.fn),l=i.cr(i.cn),d=i.cr(i.an),f=l&&d!==`bottom`,m=a.hasOwnProperty(`type`)?i.wr:i.Br;(0,v.useEffect)(()=>{e&&n.setFieldsValue({...e,height:e.height?.value,heightDim:e.height?.dim,mobileHeight:rl(e.mobileHeight?.value||e.height?.value),mobileHeightDim:e.mobileHeight?.dim||e.height?.dim})},[n,e]);let h=(0,v.useCallback)(e=>{r(m===`email`?u.L(e):u._(e))},[r,m]);return(0,C.jsxs)(p.It,{form:n,layout:`vertical`,name:`selected_vindent_form`,initialValues:{height:``,heightDim:``,mobileHeight:``,mobileHeightDim:``},onValuesChange:t=>{let r=n.getFieldsValue(!0),a=Object.keys(t)[0],s;switch(a){case`height`:s={[a]:{value:t[a],dim:r.heightDim}};break;case`heightDim`:s={height:{value:r.height,dim:t[a]}};break;case`mobileHeight`:s={[a]:{classNamePrefix:`em-mob-height-`,value:t[a],dim:r.mobileHeightDim}};break;case`mobileHeightDim`:s={mobileHeight:{classNamePrefix:`em-mob-height-`,value:r.mobileHeight,dim:t[a]}};break;default:s=t}o({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:s}),h({...e,...s,activateSection:null,changeKey:a})},autoComplete:`off`,children:[!f&&(0,C.jsx)(p.K,{title:t(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:t(`Appearance on mobile devices`),type:`info`})}),s===`mobile`&&c.styles?(0,C.jsx)(`div`,{id:`selected_element_form_mobile_props`,className:`selected_form-mobile-props`,style:{display:s===`mobile`&&c.styles?`block`:`none`,marginBottom:10},children:(0,C.jsx)(Sf,{form:n,elementSettings:e})}):(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,style:{display:s===`mobile`&&c.styles?`none`:`block`},children:(0,C.jsx)(xf,{})})]})};Cf.propTypes={elementSettings:b.default.object.isRequired};var wf=({form:e,elementSettings:t,typeOfForm:n=`desktop`})=>{let{__:r}=p.v(),a=i.et(),o=n===`mobile`,s=o?`mobileDirection`:`direction`,c=n=>{e.setFieldsValue({[s]:n}),a({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:{[s]:n}})},l=o?t.mobileDirection?.value??``:t.direction??``;return(0,C.jsx)(p.It.Item,{name:s,className:`form-item-margin-xs`,children:(0,C.jsx)(p.k,{value:l,onChange:c,labels:{rtlLabel:r(`Right to left`),ltrLabel:r(`Left to right`)}})})},Tf={horizontal:[{value:`left`,label:`left`},{value:`center`,label:`center`},{value:`right`,label:`right`}],vertical:[{value:`top`,label:`top`},{value:`center`,label:`center`},{value:`bottom`,label:`bottom`}]},Ef=e=>e.closest(`.email-pane__collapse-wrapper`)||e.parentNode,Df=({form:e,backgroundImageEmpty:t,appConfig:n,token:r,elementSettings:i,backgroundRepeatOptions:a,handleChangeValues:o})=>{let{__:s}=p.v(),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(`px`),[f,h]=(0,v.useState)(``),[g,_]=(0,v.useState)(`px`),y=[{label:s(`Not defined`),value:``},{label:s(`Contain`),value:`contain`},{label:s(`Cover`),value:`cover`}],b=e=>{if(!e||typeof e!=`string`)return{value:``,unit:`px`};e=e.trim();let t=e.match(/^(\d*\.?\d+)(%|px)$/);return t?{value:t[1],unit:t[2]}:{value:e,unit:`px`}};(0,v.useEffect)(()=>{let t=e.getFieldValue(`backgroundPositionX`),n=e.getFieldValue(`backgroundPositionY`),r=b(t),i=b(n);l(String(r.value)),d(r.unit),h(String(i.value)),_(i.unit)},[e]);let x=(e,t)=>{l(String(e)),d(t),o&&o({backgroundPositionX:{position:e,unit:t}})},S=(e,t)=>{h(String(e)),_(t),o&&o({backgroundPositionY:{position:e,unit:t}})};return(0,C.jsxs)(p.At,{gutter:10,style:{marginBottom:8},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:s(`Background color`),placement:`bottom`,getPopupContainer:Ef,children:(0,C.jsx)(`div`,{children:(0,C.jsx)(p.It.Item,{name:`backgroundColor`,style:{marginBottom:r.formItemMarginBottomXS},children:(0,C.jsx)(p.Ot,{placeholder:s(`Background color`),usedColors:i.usedColors,usedLabel:s(`Used`),recommendedLabel:s(`Recommended`),placement:`bottomLeft`})})})})}),n.formCellFieldBackgroundImageEnabled&&(0,C.jsxs)(p.kt,{span:t?12:24,children:[(0,C.jsx)(p.K,{trigger:[`hover`],title:s(`Background image`),placement:`bottom`,getPopupContainer:Ef,children:(0,C.jsx)(`div`,{children:(0,C.jsx)(Zs,{form:e,label:s(`Background image`),name:`backgroundImage`,tooltipTitle:s(`Background image`),placeholder:s(`Background image link/route`)})})}),!t&&(0,C.jsxs)(p.It.Item,{style:{marginBottom:`0`},children:[(0,C.jsxs)(p.At,{gutter:10,style:{marginBottom:r.formItemMarginBottomXS},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.R,{options:Tf.horizontal,position:c,setPosition:e=>x(e,u),unit:u,setUnit:e=>x(c,e),placeholder:s(`Horizontal position`),prefix:(0,C.jsx)(m.d,{icon:`BgPositionHorizontal`}),dropdownStyle:{bottom:`auto`},tooltipTitle:s(`Horizontal position`),getTooltipPopupContainer:Ef})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.R,{options:Tf.vertical,position:f,setPosition:e=>S(e,g),unit:g,setUnit:e=>S(f,e),placeholder:s(`Vertical position`),prefix:(0,C.jsx)(m.d,{icon:`BgPositionVertical`}),dropdownStyle:{bottom:`auto`},tooltipTitle:s(`Vertical position`),getTooltipPopupContainer:Ef})})]}),(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:s(`Background image repeat`),placement:`top`,children:(0,C.jsx)(p.It.Item,{name:`backgroundRepeat`,style:{marginBottom:r.formItemMarginBottomXS},children:(0,C.jsx)(p.St,{placeholder:s(`Please choose`),options:a,getPopupContainer:()=>document.querySelector(`.email-properties__collapse-panel`)})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:s(`Background image size`),placement:`top`,children:(0,C.jsx)(p.It.Item,{name:`backgroundSize`,style:{marginBottom:r.formItemMarginBottomXS},children:(0,C.jsx)(p.St,{placeholder:s(`Please choose`),options:y,getPopupContainer:()=>document.querySelector(`.email-properties__collapse-panel`)})})})})]})]})]})]})},Of=({form:e,elementSettings:t,__:n,appConfig:r})=>{let[i,a]=(0,v.useState)(null);return(0,v.useEffect)(()=>{window?.navigator?.userAgent.includes(`Macintosh`)&&a(!0)},[]),(0,C.jsxs)(`div`,{style:{marginBottom:`-15px`},children:[r.formTextFieldTypografEnabled&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.K,{trigger:[`hover`],title:n(`Text font`),placement:`bottom`,zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`fontFamily`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.F,{textEditor:!0,loadGoogleFonts:bc,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`)})})}),!t.showOnMobile&&(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:n(`Font size`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`fontSize`,children:(0,C.jsx)(p.I,{min:8,max:90,placeholder:n(`Font size`),prefix:(0,C.jsx)(m.d,{icon:`FontSizeOutlined`}),addonAfter:`px`})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:n(`Line height`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`lineHeight`,children:(0,C.jsx)(p.I,{min:10,max:110,placeholder:n(`Line height`),prefix:(0,C.jsx)(m.d,{icon:`LineHeightOutlined`}),addonAfter:`px`})})})})]})]}),(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textStrong`,tooltipTitle:n(i?`Strong ( ⌘B )`:`Strong ( Ctrl+B )`),icon:(0,C.jsx)(m.d,{icon:`BoldOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textItalic`,tooltipTitle:n(i?`Italic ( ⌘I )`:`Italic ( Ctrl+I )`),icon:(0,C.jsx)(m.d,{icon:`ItalicOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textStrikethrough`,tooltipTitle:n(i?`Strikethrough ( ⌘+Shift+X )`:`Strikethrough ( Alt+Shift+5 )`),icon:(0,C.jsx)(m.d,{icon:`StrikethroughOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:t,name:`textUnderline`,tooltipTitle:n(i?`Underline ( ⌘U )`:`Underline ( Ctrl+U )`),icon:(0,C.jsx)(m.d,{icon:`UnderlineOutlined`,className:`selected-text-common-form__icon-radius`})})})]}),(0,C.jsxs)(p.At,{gutter:10,style:{paddingBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:n(`Text color`),placement:`bottom`,zIndex:2,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`textColor`,rules:[{message:n(`Please set the font color`)}],children:(0,C.jsx)(p.Ot,{placeholder:n(`Color`),usedColors:t.usedColors,usedLabel:n(`Used`),recommendedLabel:n(`Recommended`)})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:n(`Text background`),placement:`bottom`,zIndex:2,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`textBackgroundColor`,rules:[{message:n(`Please set the background color`)}],children:(0,C.jsx)(p.Ot,{placeholder:n(`Background color`),usedColors:t.usedColors,usedLabel:n(`Used`),recommendedLabel:n(`Recommended`)})})})})]})]})},kf=({form:e,elementSettings:t,boxShadow:n,bordersShow:r,borderRadiusShow:a,boxShadowShow:o,backgroundShow:s,backgroundImageEmpty:c,backgroundRepeatOptions:l,sizeShow:u,maxWidthValue:d,modificationShow:f,paddingsExt:m,oneBorderRadiusValue:h,setOneBorderRadiusValue:g,elementListShow:_,togglePaddingHandler:v,toggleShowBorderHandler:y,toggleShowBorderRadiusHandler:b,toggleShowBoxShadowHandler:x,toggleShowSizeHandler:S,toggleShowBackgroundHandler:w,toggleShowModificationHandler:T,handleChangeValues:E})=>{let{__:D}=p.v(),{token:O}=p.Vt(),k=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.At,{gutter:10,style:{paddingBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(xc,{form:e,elementSettings:t})}),k.formCellFieldVerticalAlignEnabled&&t.type!==`group`&&(t.type!==`structure`||t.type===`structure`&&t.floatBlocks.items.length===1)&&(0,C.jsx)(p.kt,{span:12,style:{textAlign:`right`},children:(0,C.jsx)(yd,{form:e,elementSettings:t})})]}),k.formCellFieldPaddingsEnabled&&(0,C.jsxs)(C.Fragment,{children:[_&&(0,C.jsx)(`div`,{style:{marginTop:`15px`},children:(0,C.jsx)(Of,{form:e,elementSettings:t,appConfig:k,__:D})}),(0,C.jsx)(p.M,{title:D(`Padding`),dividerTop:!0,children:(0,C.jsx)(p.j,{extended:m,onToggleExtended:v,showHorizontal:t.type!==`group`&&t.type!==`column`,rowStyle:{paddingBottom:4},labels:{horizontal:D(`Horizontal padding`),vertical:D(`Vertical padding`),left:D(`Left padding`),right:D(`Right padding`),top:D(`Top padding`),bottom:D(`Bottom padding`),individual:D(`Individual padding`)}})})]}),t.type!==`group`&&k.formCellFieldSizeEnabled&&(0,C.jsx)(p.M,{title:D(`Size`),collapsible:!0,open:u,onToggle:S,dividerTop:!0,children:(0,C.jsx)(p.A,{showWidth:t.type!==`structure`&&t.type!==`column`,maxWidth:d,dimensionSelect:ol,rowStyle:{paddingBottom:4},labels:{width:D(`Width`),height:D(`Height`),minWidth:D(`Minimum width`),maxWidth:D(`Maximum width`)}})}),(0,C.jsx)(p.M,{title:D(`Background`),collapsible:!0,open:s,onToggle:w,dividerTop:!0,children:(0,C.jsx)(Df,{form:e,backgroundImageEmpty:c,appConfig:k,token:O,elementSettings:t,backgroundRepeatOptions:l,handleChangeValues:E})}),k.formFieldBorderEnabled&&(0,C.jsx)(p.M,{title:D(`Borders`),collapsible:!0,open:r,onToggle:y,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,elementSettings:t})}),k.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:D(`Border radius`),collapsible:!0,open:a,onToggle:b,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,oneBorderRadiusValue:h,setOneBorderRadiusValue:g,elementSettings:t})}),k.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:D(`Box shadow`),collapsible:!0,open:o,onToggle:x,dividerTop:!0,children:(0,C.jsx)(Sd,{})}),k.formFieldExportAsPictureEnabled&&t.type!==`group`&&(0,C.jsxs)(p.M,{title:D(`Settings`),collapsible:!0,open:f,onToggle:T,dividerTop:!0,children:[t.type===`structure`&&(0,C.jsx)(p.K,{title:D(`The block will change its colors to contrasting colors. You can change them in the Content Styles section.`),children:(0,C.jsx)(p.It.Item,{name:`isContrastBlock`,valuePropName:`checked`,style:{marginBottom:0},children:(0,C.jsx)(p.bt,{id:`contrast-colors`,label:D(`Contrast block`),size:`small`,labelStyle:{position:`relative`,top:2}})})},`isContrastBlock`),(0,C.jsx)(df,{form:e,elementSettings:t})]}),k.formFieldVisibilityEnabled&&t.type!==`column`&&(0,C.jsx)(p.M,{title:D(t.type===`group`?`Display control`:`Display control & Direction`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e,directionControl:t.type===`group`?void 0:(0,C.jsx)(wf,{elementSettings:t,form:e})})}),k.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:D(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})};kf.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,boxShadow:b.default.object,bordersShow:b.default.bool,borderRadiusShow:b.default.bool,boxShadowShow:b.default.bool,backgroundShow:b.default.bool,backgroundImageEmpty:b.default.bool,backgroundRepeatOptions:b.default.array,sizeShow:b.default.bool,maxWidthValue:b.default.oneOfType([b.default.string,b.default.number]),modificationShow:b.default.bool,paddingsExt:b.default.bool,oneBorderRadiusValue:b.default.bool,setOneBorderRadiusValue:b.default.func,elementListShow:b.default.bool,togglePaddingHandler:b.default.func,toggleShowBorderHandler:b.default.func,toggleShowBorderRadiusHandler:b.default.func,toggleShowBoxShadowHandler:b.default.func,toggleShowSizeHandler:b.default.func,toggleShowBackgroundHandler:b.default.func,toggleShowModificationHandler:b.default.func,handleChangeValues:b.default.func};var Af=({form:e,elementSettings:t,mobilePaddingsExt:n,setMobilePaddingsExt:r,rowStyle:a})=>{let{__:o}=p.v(),s=i.et();return(0,C.jsx)(p.j,{typeOfForm:`mobile`,extended:n,onToggleExtended:()=>{r(e=>!e);let a=e.getFieldsValue(!0);n||(a.mobilePaddingLeftRight=a.mobilePaddingLeft,a.mobilePaddingTopBottom=a.mobilePaddingTop,a.mobilePaddingRight=a.mobilePaddingLeft,a.mobilePaddingBottom=a.mobilePaddingTop,s({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:t.type,settings:{mobilePadding:{top:a.mobilePaddingTop===``?null:a.mobilePaddingTop,bottom:a.mobilePaddingTopBottom===``?null:a.mobilePaddingTopBottom,left:a.mobilePaddingLeft===``?null:a.mobilePaddingLeft,right:a.mobilePaddingRight===``?null:a.mobilePaddingRight,classNamePrefix:`em-mob-padding_`}}}))},showHorizontal:!0,gutter:10,rowStyle:a,labels:{horizontal:o(`Horizontal padding`),vertical:o(`Vertical padding`),left:o(`Left padding`),right:o(`Right padding`),top:o(`Top padding`),bottom:o(`Bottom padding`),individual:o(`Individual padding`)}})};Af.propTypes={form:b.default.shape({getFieldsValue:b.default.func.isRequired}).isRequired,elementSettings:b.default.object.isRequired,mobilePaddingsExt:b.default.bool.isRequired,setMobilePaddingsExt:b.default.func.isRequired,rowStyle:b.default.object};var jf=({form:e,elementSettings:t,boxShadow:n,mobileBordersShow:r,mobileBorderRadiusShow:a,mobileBoxShadowShow:o,mobileSizeShow:s,mobileBackgroundShow:c,mobilePaddingShow:l,mobilePaddingsExt:u,setMobilePaddingsExt:d,oneMobileBorderRadiusValue:f,setOneMobileBorderRadiusValue:m,toggleShowMobileBorderHandler:h,toggleShowMobileBorderRadiusHandler:g,toggleShowMobileBoxShadowHandler:_,toggleShowMobileSizeHandler:v,toggleShowMobileBackgroundHandler:y,toggleShowMobilePaddingHandler:b})=>{let{__:x}=p.v(),{token:S}=p.Vt(),w=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.At,{gutter:20,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(vd,{form:e,elementSettings:t,imgParent:!0,typeOfForm:`mobile`})}),w.formCellFieldVerticalAlignEnabled&&t.type!==`group`&&(t.type!==`structure`||t.type===`structure`&&t.floatBlocks.items.length===1)&&(0,C.jsx)(p.kt,{span:12,style:{textAlign:`right`},children:(0,C.jsx)(yd,{form:e,elementSettings:t,typeOfForm:`mobile`})})]}),w.formCellFieldPaddingsEnabled&&(0,C.jsx)(p.M,{title:x(`Padding`),collapsible:!0,open:l,onToggle:b,dividerTop:!0,children:(0,C.jsx)(Af,{form:e,elementSettings:t,mobilePaddingsExt:u,setMobilePaddingsExt:d,rowStyle:{paddingBottom:4}})}),t.type!==`group`&&w.formCellFieldSizeEnabled&&(0,C.jsx)(p.M,{title:x(`Size`),collapsible:!0,open:s,onToggle:v,dividerTop:!0,children:(0,C.jsxs)(p.At,{gutter:10,style:{paddingBottom:9},children:[t.type!==`structure`&&(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(`div`,{style:{marginBottom:15},children:(0,C.jsx)(kd,{form:e,name:`mobileWidth`,elementSettings:t})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(`div`,{style:{marginBottom:15},children:(0,C.jsx)(Ad,{form:e,name:`mobileHeight`,elementSettings:t})})})]})}),(0,C.jsx)(p.M,{title:x(`Background`),collapsible:!0,open:c,onToggle:y,dividerTop:!0,children:(0,C.jsx)(`div`,{style:{marginBottom:S.formItemMarginBottomMD+4},children:(0,C.jsx)(pf,{form:e,elementSettings:t,label:x(`Background color`)})})}),w.formFieldBorderEnabled&&(0,C.jsx)(p.M,{title:x(`Borders`),collapsible:!0,open:r,onToggle:h,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,typeOfForm:`mobile`})}),w.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:x(`Border radius`),collapsible:!0,open:a,onToggle:g,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,oneBorderRadiusValue:f,setOneBorderRadiusValue:m,elementSettings:t,typeOfForm:`mobile`})}),w.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:x(`Box shadow`),collapsible:!0,open:o,onToggle:_,dividerTop:!0,children:(0,C.jsx)(Sd,{typeOfForm:`mobile`})}),w.formFieldVisibilityEnabled&&t.type!==`column`&&(0,C.jsx)(p.M,{title:x(t.type===`group`?`Display control`:`Display control & Direction`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e,directionControl:t.type===`group`?void 0:(0,C.jsx)(wf,{elementSettings:t,form:e,typeOfForm:`mobile`})})}),w.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:x(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})};jf.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,boxShadow:b.default.object,mobileBordersShow:b.default.bool,mobileBorderRadiusShow:b.default.bool,mobileBoxShadowShow:b.default.bool,mobileSizeShow:b.default.bool,mobileBackgroundShow:b.default.bool,mobilePaddingShow:b.default.bool,mobilePaddingsExt:b.default.bool,setMobilePaddingsExt:b.default.func,oneMobileBorderRadiusValue:b.default.bool,setOneMobileBorderRadiusValue:b.default.func,toggleShowMobileBorderHandler:b.default.func,toggleShowMobileBorderRadiusHandler:b.default.func,toggleShowMobileBoxShadowHandler:b.default.func,toggleShowMobileSizeHandler:b.default.func,toggleShowMobileBackgroundHandler:b.default.func,toggleShowMobilePaddingHandler:b.default.func};var Mf=({elementSettings:e})=>{let{__:t}=p.v(),n=i.et(),r=i.lr(),[a]=p.It.useForm(),[o,s]=(0,v.useState)(``),[c,l]=(0,v.useState)({}),[d,f]=(0,v.useState)(!0),[m,h]=(0,v.useState)(!0),g=i.cr(i.on),_=i.cr(i.fn),y=i.cr(u.w);i.Wt();let[b,x]=(0,v.useState)(e.backgroundImage[0].value===``),S=i.cr(i.cn),w=i.cr(i.an),T=S&&w!==`bottom`,[E,D]=(0,v.useState)(!1),[O,k]=(0,v.useState)(!1),[A,j]=(0,v.useState)(!1),[M,N]=(0,v.useState)(!1),[P,F]=(0,v.useState)(!1),[I,L]=(0,v.useState)(!1),[R,z]=(0,v.useState)(!1),[B,V]=(0,v.useState)(!1),[H,ee]=(0,v.useState)(!1),[U,W]=(0,v.useState)(!1),[G,K]=(0,v.useState)(!1),[q,J]=(0,v.useState)(!1),[Y,te]=(0,v.useState)(!1),[X,ne]=(0,v.useState)(!1),[re,ie]=(0,v.useState)(!1),ae=y.hasOwnProperty(`type`)?i.wr:i.Br,oe=[{label:t(`Not defined`),value:`none`},{label:t(`Do not repeat background (no-repeat)`),value:`no-repeat`},{label:t(`Repeat background (repeat)`),value:`repeat`},{label:t(`Repeat background horizontally (repeat-x)`),value:`repeat-x`},{label:t(`Repeat background vertically (repeat-y)`),value:`repeat-y`}],Z=e.border,se=e.mobileBorder,ce=Object.keys(Z).find(e=>Z[e]?.width||Z[e]?.style||Z[e]?.color),le=Object.keys(se).find(e=>se[e]?.width||se[e]?.style||se[e]?.color),ue=e=>e&&(e?.width||e?.style||e?.color)?e:``;(0,v.useEffect)(()=>{if(e){let t=e.boxShadow;l(t),a.setFieldsValue({...e,width:e.width?.value,widthDim:e.width?.dim,height:e.height?.value,heightDim:e.height?.dim,backgroundImage:e.backgroundImage[0].value,show:e.show?e.show:`all`,isContrastBlock:e.isContrastBlock,borderAll:$(e.border.all),borderTop:$(e.border.top),borderBottom:$(e.border.bottom),borderRight:$(e.border.right),borderLeft:$(e.border.left),mobileBorderAll:ue(e.mobileBorder.all)||!(ue(e.mobileBorder.top)||ue(e.mobileBorder.bottom)||ue(e.mobileBorder.right)||ue(e.mobileBorder.left))&&ue(e.border.all),mobileBorderTop:ue(e.mobileBorder.top)||!ue(e.mobileBorder.all)&&ue(e.border.top),mobileBorderBottom:ue(e.mobileBorder.bottom)||!ue(e.mobileBorder.all)&&ue(e.border.bottom),mobileBorderRight:ue(e.mobileBorder.right)||!ue(e.mobileBorder.all)&&ue(e.border.right),mobileBorderLeft:ue(e.mobileBorder.left)||!ue(e.mobileBorder.all)&&ue(e.border.left),paddingTop:$(e.padding?.all)||$(e.padding?.top),paddingLeft:$(e.padding?.all)||$(e.padding?.left),paddingRight:$(e.padding?.all)||$(e.padding?.right),paddingBottom:$(e.padding?.all)||$(e.padding?.bottom),paddingLeftRight:$(e.padding?.left)||$(e.padding?.right),paddingTopBottom:$(e.padding?.top)||$(e.padding?.bottom),borderRadiusAll:$(e.borderRadius.all),borderRadiusTopLeft:$(e.borderRadius.topLeft),borderRadiusBottomLeft:$(e.borderRadius.bottomLeft),borderRadiusTopRight:$(e.borderRadius.topRight),borderRadiusBottomRight:$(e.borderRadius.bottomRight),boxShadowInset:$(e.boxShadow?.inset)||!1,boxShadowHOffset:$(e.boxShadow?.hOffset),boxShadowVOffset:$(e.boxShadow?.vOffset),boxShadowBlurRadius:$(e.boxShadow?.blurRadius),boxShadowSpreadRadius:$(e.boxShadow?.spreadRadius),boxShadowColor:$(e.boxShadow?.color),mobileWidth:rl(e.mobileWidth?.value)||rl(e.width?.value),mobileWidthDim:rl(e.mobileWidth?.value)?e.mobileWidth?.dim:e.width?.dim,mobileHeight:rl(e.mobileHeight?.value)||rl(e.height?.value),mobileHeightDim:rl(e.mobileHeight?.value)?e.mobileHeight?.dim:e.height?.dim,mobileBorderRadiusAll:$(e.mobileBorderRadius?.all)||$(e.borderRadius?.all),mobileBorderRadiusTopLeft:$(e.mobileBorderRadius?.topLeft)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.topLeft)||$(e.borderRadius?.all),mobileBorderRadiusBottomLeft:$(e.mobileBorderRadius?.bottomLeft)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.bottomLeft)||$(e.borderRadius?.all),mobileBorderRadiusTopRight:$(e.mobileBorderRadius?.topRight)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.topRight)||$(e.borderRadius?.all),mobileBorderRadiusBottomRight:$(e.mobileBorderRadius?.bottomRight)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.bottomRight)||$(e.borderRadius?.all),mobileBoxShadowInset:e.mobileBoxShadow?.inset==null?e.boxShadow?.inset||!1:e.mobileBoxShadow.inset,mobileBoxShadowHOffset:$(e.mobileBoxShadow?.hOffset)||$(e.boxShadow?.hOffset),mobileBoxShadowVOffset:$(e.mobileBoxShadow?.vOffset)||$(e.boxShadow?.vOffset),mobileBoxShadowBlurRadius:$(e.mobileBoxShadow?.blurRadius)||$(e.boxShadow?.blurRadius),mobileBoxShadowSpreadRadius:$(e.mobileBoxShadow?.spreadRadius)||$(e.boxShadow?.spreadRadius),mobileBoxShadowColor:$(e.mobileBoxShadow?.color)||$(e.boxShadow?.color),mobileAlign:$(e.mobileAlign?.value)||e.align,mobileVerticalAlign:$(e.mobileVerticalAlign?.value||e.valign),mobileDirection:$(e.mobileDirection?.value),mobileBackgroundColor:$(e.mobileBackgroundColor?.value||e.backgroundColor||``),mobileBackgroundImage:e.mobileBackgroundImage[0]?.value===`none`?e.backgroundImage?.[0].value||``:e.mobileBackgroundImage[0]?.value,mobileBackgroundPositionX:$(e.mobileBackgroundPositionX?.value)||$(e.backgroundPositionX?.value),mobileBackgroundPositionY:$(e.mobileBackgroundPositionY?.value)||$(e.backgroundPositionY?.value),mobileBackgroundRepeat:!!e.mobileBackgroundRepeat?.value||e.backgroundRepeat||`none`,mobilePaddingTop:$(e.mobilePadding.all)||$(e.mobilePadding.top)||$(e.padding?.all)||$(e.padding?.top),mobilePaddingLeft:$(e.mobilePadding.all)||$(e.mobilePadding.left)||$(e.padding?.all)||$(e.padding?.left),mobilePaddingRight:$(e.mobilePadding.all)||$(e.mobilePadding.right)||$(e.padding?.all)||$(e.padding?.right),mobilePaddingBottom:$(e.mobilePadding.all)||$(e.mobilePadding.bottom)||$(e.padding?.all)||$(e.padding?.bottom),mobilePaddingTopBottom:$(e.mobilePadding.top)||$(e.mobilePadding.bottom)||$(e.padding?.top)||$(e.padding?.bottom),mobilePaddingLeftRight:$(e.mobilePadding.left)||$(e.mobilePadding.right)||$(e.padding?.left)||$(e.padding?.right),exportAsPicture:e?.exportAsPicture}),!$(e.borderRadius.all)&&($(e.borderRadius.topLeft)||$(e.borderRadius.bottomLeft)||$(e.borderRadius.topRight)||$(e.borderRadius.bottomRight))?f(!1):f(!0),!$(e.mobileBorderRadius.all)&&($(e.mobileBorderRadius.topLeft)||$(e.mobileBorderRadius.bottomLeft)||$(e.mobileBorderRadius.topRight)||$(e.mobileBorderRadius.bottomRight))||$(e.mobileBorderRadius.all)&&($(e.mobileBorderRadius.topLeft)||$(e.mobileBorderRadius.bottomLeft)||$(e.mobileBorderRadius.topRight)||$(e.mobileBorderRadius.bottomRight))||!$(e.borderRadius.all)&&!$(e.mobileBorderRadius.all)&&($(e.borderRadius.topLeft)||$(e.borderRadius.bottomLeft)||$(e.borderRadius.topRight)||$(e.borderRadius.bottomRight))?h(!1):h(!0),x(e.backgroundImage[0].value===``),!$(e.padding.all)&&($(e.padding.top)||$(e.padding.right)||$(e.padding.bottom)||$(e.padding.left))&&(e.padding.top!==e.padding.bottom||e.padding.right!==e.padding.left)?D(!1):D(!0),!$(e.mobilePadding.all)&&($(e.mobilePadding.top)||$(e.mobilePadding.right)||$(e.mobilePadding.bottom)||$(e.mobilePadding.left))&&(e.mobilePadding.top!==e.mobilePadding.bottom||e.mobilePadding.right!==e.mobilePadding.left)||!$(e.padding?.all)&&($(e.padding?.top)||$(e.padding?.right)||$(e.padding?.bottom)||$(e.padding?.left))&&(e.padding?.top!==e.padding?.bottom||e.padding?.right!==e.padding?.left)?k(!1):k(!0),j(e=>ce?!0:e),N(e=>ce||le?!0:e),F(!!e.borderRadius.all||!!e.borderRadius.topLeft||!!e.borderRadius.bottomLeft||!!e.borderRadius.topRight||!!e.borderRadius.bottomRight),L(!!e.mobileBorderRadius.all||!!e.mobileBorderRadius.topLeft||!!e.mobileBorderRadius.bottomLeft||!!e.mobileBorderRadius.topRight||!!e.mobileBorderRadius.bottomRight||!!e.borderRadius.all||!!e.borderRadius.topLeft||!!e.borderRadius.bottomLeft||!!e.borderRadius.topRight||!!e.borderRadius.bottomRight),z(!!e.boxShadow),V(!!e.mobileBoxShadow.blurRadius||!!e.mobileBoxShadow.color||!!e.mobileBoxShadow.hOffset||!!e.mobileBoxShadow.inset||!!e.mobileBoxShadow.spreadRadius||!!e.mobileBoxShadow.vOffset||!!e.boxShadow),ee(!!e.width.value&&e.type!==`column`||!!e.height.value),W(!!e.mobileWidth.value||!!e.mobileHeight.value||!!e.width.value&&e.type!==`column`||!!e.height.value),K(!!e.backgroundColor||!!e.backgroundImage[0].value||!!e.backgroundPositionY||!!e.backgroundPositionX||e.backgroundRepeat!==`repeat`||!e.backgroundRepeat,!!e.backgroundSize),J(!!e.mobileBackgroundColor.value||!!e.backgroundColor||!!e.backgroundImage[0].value||!!e.backgroundPositionY||!!e.backgroundPositionX||e.backgroundRepeat!==`repeat`||!e.backgroundRepeat,!!e.backgroundSize),te(!!e.exportAsPicture||!!e.isContrastBlock),ne(!!e.mobilePadding.all||e.mobilePadding.all===0||!!e.mobilePadding.top||e.mobilePadding.top===0||!!e.mobilePadding.bottom||e.mobilePadding.bottom===0||!!e.mobilePadding.left||e.mobilePadding.left===0||!!e.mobilePadding.right||e.mobilePadding.right===0||!!e.padding.all||e.padding.all===0||!!e.padding.top||e.padding.top===0||!!e.padding.bottom||e.padding.bottom===0||!!e.padding.left||e.padding.left===0||!!e.padding.right||e.padding.right===0),e.elementName===`List`?ie(!0):ie(!1)}},[a,e]);let de=(0,v.useCallback)(e=>{r(ae===`email`?u.L(e):u._(e))},[r,ae]),fe=t=>{let r=a.getFieldsValue(!0),o=Object.keys(t)[0],c;switch(s(a.getFieldsValue(!0).widthDim===`%`?100:``),o){case`exportAsPicture`:c={exportAsPicture:r.exportAsPicture};break;case`boxShadowInset`:case`boxShadowHOffset`:case`boxShadowVOffset`:case`boxShadowBlurRadius`:case`boxShadowSpreadRadius`:case`boxShadowColor`:c={boxShadow:{hOffset:r.boxShadowHOffset,vOffset:r.boxShadowVOffset,blurRadius:r.boxShadowBlurRadius,spreadRadius:r.boxShadowSpreadRadius,color:r.boxShadowColor,inset:r.boxShadowInset}};break;case`borderAll`:case`borderTop`:case`borderBottom`:case`borderLeft`:case`borderRight`:r.borderPosition===`borderAll`?(c={border:{...i.ci,all:{...Q,...r.borderAll}}},a.setFieldsValue({borderLeft:Q,borderRight:Q,borderTop:Q,borderBottom:Q})):r.borderAll?.width||r.borderAll?.style||r.borderAll?.color?(c={border:{all:null,left:r.borderAll,right:r.borderAll,top:r.borderAll,bottom:r.borderAll,[Oc[o]]:{...r[o],...t[o]}}},a.setFieldsValue({borderAll:null,borderLeft:r.borderAll,borderRight:r.borderAll,borderTop:r.borderAll,borderBottom:r.borderAll,[o]:{...r[o],...t[o]}})):(c={border:{all:null,left:r.borderLeft,right:r.borderRight,top:r.borderTop,bottom:r.borderBottom,[Oc[o]]:{...r[o],...t[o]}}},a.setFieldsValue({border:c.border}));break;case`mobileBorderAll`:case`mobileBorderTop`:case`mobileBorderBottom`:case`mobileBorderLeft`:case`mobileBorderRight`:if(r.mobileBorderPosition===`mobileBorderAll`)c={mobileBorder:{...i.ci,all:{...Q,...r.mobileBorderAll,classNamePrefix:`em-mob-border_`+kc[o]+`-`}}},a.setFieldsValue({borderLeft:Q,borderRight:Q,borderTop:Q,borderBottom:Q});else{let n=kc[o],i={...r[o],...t[o]},s=!i?.width&&!i?.style&&!i?.color;if(r.mobileBorder?.all?.width||r.mobileBorder?.all?.style||r.mobileBorder?.all?.color){let e=r.mobileBorderAll;c={mobileBorder:{all:null,left:e,right:e,top:e,bottom:e,[n]:s?null:{...i,classNamePrefix:`em-mob-border_`+n+`-`}}},a.setFieldsValue({mobileBorderAll:null,mobileBorderLeft:e,mobileBorderRight:e,mobileBorderTop:e,mobileBorderBottom:e,[o]:i})}else{let t=e.mobileBorder||{},r=e=>{let n=t[e];return n&&(n?.width||n?.style||n?.color)?n:null};c={mobileBorder:{all:null,left:n===`left`?s?null:{...i,classNamePrefix:`em-mob-border_left-`}:r(`left`),right:n===`right`?s?null:{...i,classNamePrefix:`em-mob-border_right-`}:r(`right`),top:n===`top`?s?null:{...i,classNamePrefix:`em-mob-border_top-`}:r(`top`),bottom:n===`bottom`?s?null:{...i,classNamePrefix:`em-mob-border_bottom-`}:r(`bottom`)}},a.setFieldsValue({[o]:i})}}break;case`width`:c={[o]:{value:t[o],dim:r.widthDim}};break;case`height`:c={[o]:{value:t[o],dim:r.heightDim}};break;case`widthDim`:c={width:{value:r.width,dim:t[o]}};break;case`heightDim`:c={height:{value:r.height,dim:t[o]}};break;case`backgroundImage`:x(t[o]===``),c={[o]:[{...e.backgroundImage[0],value:t[o]}],backgroundSize:`cover`};break;case`paddingTop`:case`paddingLeft`:case`paddingRight`:case`paddingBottom`:c={padding:{left:r.paddingLeft,right:r.paddingRight,top:r.paddingTop,bottom:r.paddingBottom,[Cc[o]]:+t[o]}};break;case`paddingTopBottom`:c={padding:{left:r.paddingLeft,right:r.paddingRight,top:+t[o],bottom:+t[o]}},r.paddingTop=r.paddingBottom=+t[o];break;case`paddingLeftRight`:c={padding:{top:r.paddingTop,bottom:r.paddingBottom,left:+t[o],right:+t[o]}},r.paddingLeft=r.paddingRight=+t[o];break;case`borderRadiusAll`:c={borderRadius:{[wc[o]]:+t[o]}};break;case`borderRadiusTopLeft`:case`borderRadiusBottomLeft`:case`borderRadiusTopRight`:case`borderRadiusBottomRight`:c={borderRadius:{topLeft:r.borderRadiusTopLeft,bottomLeft:r.borderRadiusBottomLeft,topRight:r.borderRadiusTopRight,bottomRight:r.borderRadiusBottomRight,[wc[o]]:+t[o]}};break;case`mobileWidth`:c={[o]:{classNamePrefix:`em-mob-width-`,value:t[o],dim:r.mobileWidthDim}};break;case`mobileWidthDim`:c={mobileWidth:{classNamePrefix:`em-mob-width-`,value:r.mobileWidth||100,dim:t[o]}};break;case`mobileHeight`:c={[o]:{classNamePrefix:`em-mob-height-`,value:t[o],dim:r.mobileHeightDim}};break;case`mobileHeightDim`:c={mobileHeight:{classNamePrefix:`em-mob-height-`,value:r.mobileHeight,dim:t[o]}};break;case`mobileBorderRadiusAll`:case`mobileBorderRadiusTopLeft`:case`mobileBorderRadiusBottomLeft`:case`mobileBorderRadiusTopRight`:case`mobileBorderRadiusBottomRight`:c={mobileBorderRadius:{[Tc[o]]:t[o],classNamePrefix:`em-mob-border_radius_`+Tc[o]+`-`}};break;case`mobileBoxShadowInset`:case`mobileBoxShadowHOffset`:case`mobileBoxShadowVOffset`:case`mobileBoxShadowBlurRadius`:case`mobileBoxShadowSpreadRadius`:case`mobileBoxShadowColor`:c={mobileBoxShadow:{hOffset:r.mobileBoxShadowHOffset,vOffset:r.mobileBoxShadowVOffset,blurRadius:r.mobileBoxShadowBlurRadius,spreadRadius:r.mobileBoxShadowSpreadRadius,color:r.mobileBoxShadowColor,inset:r.mobileBoxShadowInset,classNamePrefix:`em-mob-box_shadow-`}};break;case`mobileAlign`:c={[o]:{classNamePrefix:`em-mob-text_align-`,value:t[o]}};break;case`mobileVerticalAlign`:c={[o]:{classNamePrefix:`em-mob-vertical_align-`,value:t[o]}};break;case`mobileDirection`:c={[o]:{classNamePrefix:`em-mob-direction-`,value:t[o]}};break;case`mobileBackgroundColor`:c={[o]:{classNamePrefix:`em-mob-background_color-`,value:t[o]}};break;case`mobileBackgroundImage`:c={[o]:[{...e.mobileBackgroundImage[0],classNamePrefix:`em-mob-background_image-`,value:t[o]}]};break;case`mobileBackgroundPositionX`:c={[o]:{classNamePrefix:`em-mob-background_position_x-`,value:t[o]}};break;case`mobileBackgroundPositionY`:c={[o]:{classNamePrefix:`em-mob-background_position_y-`,value:t[o]}};break;case`mobileBackgroundRepeat`:c={[o]:{classNamePrefix:`em-mob-background_repeat-`,value:t[o]}};break;case`mobilePaddingTop`:case`mobilePaddingLeft`:case`mobilePaddingRight`:case`mobilePaddingBottom`:c={mobilePadding:{all:null,top:r.mobilePaddingTop===``?null:r.mobilePaddingTop,right:r.mobilePaddingRight===``?null:r.mobilePaddingRight,bottom:r.mobilePaddingBottom===``?null:r.mobilePaddingBottom,left:r.mobilePaddingLeft===``?null:r.mobilePaddingLeft,classNamePrefix:`em-mob-padding_`}};break;case`mobilePaddingTopBottom`:r.mobilePaddingTop=r.mobilePaddingBottom=t[o],c={mobilePadding:{all:null,top:r.mobilePaddingTop===``?null:r.mobilePaddingTop,right:r.mobilePaddingRight===``?null:r.mobilePaddingRight,bottom:r.mobilePaddingBottom===``?null:r.mobilePaddingBottom,left:r.mobilePaddingLeft===``?null:r.mobilePaddingLeft,classNamePrefix:`em-mob-padding_`}};break;case`mobilePaddingLeftRight`:r.mobilePaddingLeft=r.mobilePaddingRight=t[o],c={mobilePadding:{all:null,top:r.mobilePaddingTop===``?null:r.mobilePaddingTop,right:r.mobilePaddingRight===``?null:r.mobilePaddingRight,bottom:r.mobilePaddingBottom===``?null:r.mobilePaddingBottom,left:r.mobilePaddingLeft===``?null:r.mobilePaddingLeft,classNamePrefix:`em-mob-padding_`}};break;case`backgroundPositionX`:case`backgroundPositionY`:c={[o]:isNaN(parseFloat(t[o].position))?t[o].position:t[o].position+t[o].unit};break;default:c=t}o!==`borderPosition`&&o!==`mobileBorderPosition`&&(n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:c}),o!==`mobileBorderRadiusAll`&&o!==`mobileBorderRadiusTopLeft`&&o!==`mobileBorderRadiusTopRight`&&o!==`mobileBorderRadiusBottomLeft`&&o!==`mobileBorderRadiusBottomRight`&&de({...e,...c,mobileBorderRadius:{...e.mobileBorderRadius,...c?.mobileBorderRadius},activateSection:null,changeKey:o}))};return(0,C.jsx)(p.It,{form:a,layout:`vertical`,name:`selected_td_form`,initialValues:{horizontalPosition:``,horizontalUnit:`px`,backgroundColor:``,backgroundImage:``,backgroundPositionX:``,backgroundPositionY:``,backgroundRepeat:``,backgroundSize:``,exportAsPicture:!1,width:``,height:``,widthDim:``,heightDim:``,align:``,valign:``,border:``,show:`all`,borderPosition:Ec[ce]||`borderAll`,mobileBorderPosition:Dc[le]||`mobileBorderAll`,borderColor:``,borderWidth:``,borderStyle:``,paddingTop:``,paddingLeft:``,paddingRight:``,paddingBottom:``,borderRadiusAll:``,borderRadiusTopLeft:``,borderRadiusBottomLeft:``,borderRadiusTopRight:``,borderRadiusBottomRight:``,direction:``,boxShadowInset:``,boxShadowHOffset:``,boxShadowVOffset:``,boxShadowBlurRadius:``,boxShadowSpreadRadius:``,boxShadowColor:``,mobileWidth:``,mobileWidthDim:``,mobileHeight:``,mobileHeightDim:``,mobileBorder:``,mobileBorderColor:``,mobileBorderWidth:``,mobileBorderStyle:``,mobileBoxShadow:``,mobileAlign:``,mobileDirection:``,mobileVerticalAlign:``,mobileBackgroundColor:``,mobileBackgroundImage:``,mobilePaddingTop:``,mobilePaddingLeft:``,mobilePaddingRight:``,mobilePaddingBottom:``,textStrong:!1,textItalic:!1,textStrikethrough:!1,textUnderline:!1},onValuesChange:fe,autoComplete:`off`,className:`element-controls`,children:g===`mobile`&&_.styles?(0,C.jsxs)(`div`,{className:`selected_form-mobile-props-wrapper`,style:{display:g===`mobile`&&_.styles?`flex`:`none`},children:[(0,C.jsx)(`div`,{className:`selected_form-mobile-props-header`,children:!T&&(0,C.jsx)(p.K,{title:t(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:t(`Appearance on mobile devices`),type:`info`})})}),(0,C.jsx)(`div`,{id:`selected_element_form_mobile_props`,className:`selected_form-mobile-props`,children:(0,C.jsx)(jf,{form:a,elementSettings:e,boxShadow:c,mobileBordersShow:M,mobileBorderRadiusShow:I,mobileBoxShadowShow:B,mobileSizeShow:U,mobileBackgroundShow:q,mobilePaddingShow:X,mobilePaddingsExt:O,setMobilePaddingsExt:k,oneMobileBorderRadiusValue:m,setOneMobileBorderRadiusValue:h,toggleShowMobileBorderHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{N(e=>!e),M?(t.mobileBorderAll=Q,t.mobileBorderTop=Q,t.mobileBorderBottom=Q,t.mobileBorderRight=Q,t.mobileBorderLeft=Q):t.mobileBorderAll={width:1,color:`#E5E5E5`,style:`solid`},n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorder:{all:{color:t.mobileBorderAll.color,style:t.mobileBorderAll.style,width:t.mobileBorderAll.width}}}})})},toggleShowMobileBorderRadiusHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{L(e=>!e),I?(t.mobileBorderRadiusAll=null,h(!0)):t.mobileBorderRadiusAll=5,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorderRadius:{all:t.mobileBorderRadiusAll,classNamePrefix:`em-mob-border_radius_all-`}}})})},toggleShowMobileBoxShadowHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{V(e=>!e),B?(t.mobileBoxShadowInset=!1,t.mobileBoxShadowHOffset=null,t.mobileBoxShadowVOffset=null,t.mobileBoxShadowBlurRadius=null,t.mobileBoxShadowSpreadRadius=null,t.mobileBoxShadowColor=``):(t.mobileBoxShadowInset=!1,t.mobileBoxShadowHOffset=5,t.mobileBoxShadowVOffset=5,t.mobileBoxShadowBlurRadius=10,t.mobileBoxShadowSpreadRadius=-5,t.mobileBoxShadowColor=`#000000`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBoxShadow:{blurRadius:t.mobileBoxShadowBlurRadius,color:t.mobileBoxShadowColor,hOffset:t.mobileBoxShadowHOffset,inset:t.mobileBoxShadowInset,spreadRadius:t.mobileBoxShadowSpreadRadius,vOffset:t.mobileBoxShadowVOffset,classNamePrefix:`em-mob-box_shadow-`}}})})},toggleShowMobileSizeHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{W(e=>!e),U&&(t.mobileWidth=``,t.mobileHeight=``,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileWidth:{value:null,dim:`px`,classNamePrefix:`em-mob-width-`},mobileHeight:{value:null,dim:`px`,classNamePrefix:`em-mob-height-`}}}))})},toggleShowMobileBackgroundHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{J(e=>!e),q?t.mobileBackgroundColor=``:t.mobileBackgroundColor=`#E5E5E5`,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBackgroundColor:{classNamePrefix:`em-mob-background_color-`,value:t.mobileBackgroundColor}}})})},toggleShowMobilePaddingHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{ne(e=>!e),X&&(t.mobilePaddingLeftRight=``,t.mobilePaddingLeft=``,t.mobilePaddingRight=``,t.mobilePaddingTopBottom=``,t.mobilePaddingTop=``,t.mobilePaddingBottom=``,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobilePadding:{all:null,top:null,right:null,bottom:null,left:null,classNamePrefix:`em-mob-padding_`}}}))})}})})]}):(0,C.jsxs)(C.Fragment,{children:[!T&&(0,C.jsx)(p.K,{title:t(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:t(`Appearance on mobile devices`),type:`info`})}),(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,children:(0,C.jsx)(kf,{form:a,elementSettings:e,boxShadow:c,bordersShow:A,borderRadiusShow:P,boxShadowShow:R,backgroundShow:G,backgroundImageEmpty:b,backgroundRepeatOptions:oe,sizeShow:H,maxWidthValue:o,modificationShow:Y,paddingsExt:E,oneBorderRadiusValue:d,setOneBorderRadiusValue:f,elementListShow:re,togglePaddingHandler:()=>{D(e=>!e);let t=a.getFieldsValue(!0);E||(t.paddingLeftRight=t.paddingLeft,t.paddingTopBottom=t.paddingTop,t.paddingRight=t.paddingLeft,t.paddingBottom=t.paddingTop,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{padding:{top:t.paddingTopBottom,bottom:t.paddingTopBottom,left:t.paddingLeftRight,right:t.paddingLeftRight}}}))},toggleShowBorderHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{j(e=>!e),A?(t.borderAll=Q,t.borderTop=Q,t.borderBottom=Q,t.borderRight=Q,t.borderLeft=Q):t.borderAll={width:1,color:`#E5E5E5`,style:`solid`},n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{border:{all:{color:t.borderAll.color,style:t.borderAll.style,width:t.borderAll.width}}}})})},toggleShowBorderRadiusHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{F(e=>!e),P?(t.borderRadiusAll=0,f(!0)):t.borderRadiusAll=5,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{borderRadius:{all:t.borderRadiusAll}}})})},toggleShowBoxShadowHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{z(e=>!e),R?(t.boxShadowInset=!1,t.boxShadowHOffset=null,t.boxShadowVOffset=null,t.boxShadowBlurRadius=null,t.boxShadowSpreadRadius=null,t.boxShadowColor=``):(t.boxShadowInset=!1,t.boxShadowHOffset=5,t.boxShadowVOffset=5,t.boxShadowBlurRadius=10,t.boxShadowSpreadRadius=-5,t.boxShadowColor=`#000000`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{boxShadow:{blurRadius:t.boxShadowBlurRadius,color:t.boxShadowColor,hOffset:t.boxShadowHOffset,inset:t.boxShadowInset,spreadRadius:t.boxShadowSpreadRadius,vOffset:t.boxShadowVOffset}}})})},toggleShowSizeHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{ee(e=>!e),H&&(t.width=``,t.height=``,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{width:{value:null,dim:`px`},height:{value:null,dim:`px`}}}))})},toggleShowBackgroundHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{K(e=>!e),G?(t.backgroundColor=``,t.backgroundImage=``,t.backgroundPositionX=``,t.backgroundPositionY=``,t.backgroundRepeat=`none`,t.backgroundSize=``,x(!0)):(t.backgroundColor=`#E5E5E5`,t.backgroundSize=``,t.backgroundRepeat=`none`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{backgroundColor:t.backgroundColor,backgroundImage:[{type:`url`,value:t.backgroundImage}],backgroundPositionX:t.backgroundPositionX,backgroundPositionY:t.backgroundPositionY,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}})})},toggleShowModificationHandler:()=>{let t=a.getFieldsValue(!0);setTimeout(()=>{te(e=>!e),Y&&(t.exportAsPicture=!1,t.isContrastBlock=!1,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{exportAsPicture:!1,isContrastBlock:!1}}))})},handleChangeValues:fe})})]})})};Mf.propTypes={elementSettings:b.default.object.isRequired};var Nf=({form:e,elementSettings:t,boxShadow:n,bordersShow:r,borderRadiusShow:a,boxShadowShow:o,backgroundShow:s,backgroundImageEmpty:c,backgroundRepeatOptions:l,sizeShow:u,maxWidthValue:d,modificationShow:f,paddingShow:m,paddingsExt:h,oneBorderRadiusValue:g,setOneBorderRadiusValue:_,togglePaddingHandler:v,toggleShowPaddingHandler:y,toggleShowBorderHandler:b,toggleShowBorderRadiusHandler:x,toggleShowBoxShadowHandler:S,toggleShowSizeHandler:w,toggleShowBackgroundHandler:T,toggleShowModificationHandler:E,handleChangeValues:D})=>{let{__:O}=p.v(),{token:k}=p.Vt(),A=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Q,{className:`selected_form-desktop-props-title`,message:O(`Appearance on mobile devices`),type:`info`}),(0,C.jsxs)(p.At,{gutter:20,style:{marginBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(xc,{form:e,elementSettings:t})}),(0,C.jsx)(p.kt,{span:12,style:{textAlign:`right`},children:(0,C.jsx)(yd,{form:e,elementSettings:t})})]}),A.formCellFieldPaddingsEnabled&&(0,C.jsx)(p.M,{title:O(`Padding`),collapsible:!0,open:m,onToggle:y,dividerTop:!0,children:(0,C.jsx)(p.j,{extended:h,onToggleExtended:v,labels:{horizontal:O(`Horizontal padding`),vertical:O(`Vertical padding`),left:O(`Left padding`),right:O(`Right padding`),top:O(`Top padding`),bottom:O(`Bottom padding`),individual:O(`Individual padding`)}})}),(0,C.jsx)(p.M,{title:O(`Size`),collapsible:!0,open:u,onToggle:w,dividerTop:!0,children:(0,C.jsx)(p.A,{maxWidth:d,dimensionSelect:ol,showMinMax:!0,minWidthDimensionSelect:ol,maxWidthDimensionSelect:ol,labels:{width:O(`Width`),height:O(`Height`),minWidth:O(`Minimum width`),maxWidth:O(`Maximum width`)}})}),(0,C.jsx)(p.M,{title:O(`Background`),collapsible:!0,open:s,onToggle:T,dividerTop:!0,children:(0,C.jsx)(Df,{form:e,backgroundImageEmpty:c,appConfig:A,token:k,elementSettings:t,backgroundRepeatOptions:l,handleChangeValues:D})}),A.formFieldBorderEnabled&&(0,C.jsx)(p.M,{title:O(`Borders`),collapsible:!0,open:r,onToggle:b,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,elementSettings:t})}),A.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:O(`Border radius`),collapsible:!0,open:a,onToggle:x,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,oneBorderRadiusValue:g,setOneBorderRadiusValue:_,elementSettings:t})}),A.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:O(`Box shadow`),collapsible:!0,open:o,onToggle:S,dividerTop:!0,children:(0,C.jsx)(Sd,{})}),A.formFieldExportAsPictureEnabled&&(0,C.jsx)(p.M,{title:O(`Export settings`),collapsible:!0,open:f,onToggle:E,dividerTop:!0,children:(0,C.jsx)(df,{form:e,elementSettings:t})}),A.formFieldVisibilityEnabled&&(0,C.jsx)(p.M,{title:O(`Display control & Direction`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e,directionControl:(0,C.jsx)(wf,{elementSettings:t,form:e})})}),A.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:O(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})};Nf.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,boxShadow:b.default.object,bordersShow:b.default.bool,borderRadiusShow:b.default.bool,boxShadowShow:b.default.bool,backgroundShow:b.default.bool,backgroundImageEmpty:b.default.bool,backgroundRepeatOptions:b.default.array,sizeShow:b.default.bool,maxWidthValue:b.default.oneOfType([b.default.string,b.default.number]),modificationShow:b.default.bool,paddingShow:b.default.bool,paddingsExt:b.default.bool,oneBorderRadiusValue:b.default.bool,setOneBorderRadiusValue:b.default.func,togglePaddingHandler:b.default.func,toggleShowPaddingHandler:b.default.func,toggleShowBorderHandler:b.default.func,toggleShowBorderRadiusHandler:b.default.func,toggleShowBoxShadowHandler:b.default.func,toggleShowSizeHandler:b.default.func,toggleShowBackgroundHandler:b.default.func,toggleShowModificationHandler:b.default.func,handleChangeValues:b.default.func};var Pf=({form:e,elementSettings:t,mobileBoxShadow:n,mobileBordersShow:r,mobileBorderRadiusShow:a,mobileBoxShadowShow:o,mobileSizeShow:s,mobileBackgroundShow:c,mobilePaddingShow:l,mobilePaddingsExt:u,setMobilePaddingsExt:d,oneMobileBorderRadiusValue:f,setOneMobileBorderRadiusValue:m,backgroundRepeatOptions:h,toggleShowMobileBorderHandler:g,toggleShowMobileBorderRadiusHandler:_,toggleShowMobileBoxShadowHandler:v,toggleShowMobileSizeHandler:y,toggleShowMobileBackgroundHandler:b,toggleShowMobilePaddingHandler:x})=>{let{__:S}=p.v(),{token:w}=p.Vt(),T=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.At,{gutter:20,style:{paddingBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(lf,{form:e,elementSettings:t,imgParent:!0})}),(0,C.jsx)(p.kt,{span:12,style:{textAlign:`right`},children:(0,C.jsx)(yd,{form:e,elementSettings:t,typeOfForm:`mobile`})})]}),T.formCellFieldPaddingsEnabled&&(0,C.jsx)(p.M,{title:S(`Padding`),collapsible:!0,open:l,onToggle:x,dividerTop:!0,children:(0,C.jsx)(Af,{form:e,elementSettings:t,mobilePaddingsExt:u,setMobilePaddingsExt:d})}),(0,C.jsx)(p.M,{title:S(`Size`),collapsible:!0,open:s,onToggle:y,dividerTop:!0,children:(0,C.jsxs)(p.At,{gutter:10,style:{paddingBottom:8},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(`div`,{style:{marginBottom:w.formItemMarginBottomXS*2},children:(0,C.jsx)(kd,{form:e,name:`mobileWidth`,elementSettings:t})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(`div`,{style:{marginBottom:w.formItemMarginBottomXS},children:(0,C.jsx)(Ad,{form:e,name:`mobileHeight`,elementSettings:t})})})]})}),(0,C.jsxs)(p.M,{title:S(`Background`),collapsible:!0,open:c,onToggle:b,dividerTop:!0,children:[(0,C.jsx)(`div`,{style:{marginBottom:(T.formDivFieldBackgroundImageEnabled,w.formItemMarginBottomMD+4)},children:(0,C.jsx)(pf,{form:e,elementSettings:t,label:S(`Background color`)})}),!1]}),T.formFieldBorderEnabled&&(0,C.jsx)(p.M,{title:S(`Borders`),collapsible:!0,open:r,onToggle:g,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,typeOfForm:`mobile`})}),T.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:S(`Border radius`),collapsible:!0,open:a,onToggle:_,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,typeOfForm:`mobile`,oneBorderRadiusValue:f,setOneBorderRadiusValue:m,elementSettings:t})}),T.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:S(`Box shadow`),collapsible:!0,open:o,onToggle:v,dividerTop:!0,children:(0,C.jsx)(Sd,{typeOfForm:`mobile`,form:e,elementSettings:t})}),T.formFieldVisibilityEnabled&&(0,C.jsx)(p.M,{title:S(`Display control & Direction`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e,directionControl:(0,C.jsx)(wf,{elementSettings:t,form:e,typeOfForm:`mobile`})})}),T.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:S(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})};Pf.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,mobileBoxShadow:b.default.object,mobileBordersShow:b.default.bool,mobileBorderRadiusShow:b.default.bool,mobileBoxShadowShow:b.default.bool,mobileSizeShow:b.default.bool,mobileBackgroundShow:b.default.bool,mobilePaddingShow:b.default.bool,mobilePaddingsExt:b.default.bool,setMobilePaddingsExt:b.default.func,oneMobileBorderRadiusValue:b.default.bool,setOneMobileBorderRadiusValue:b.default.func,backgroundRepeatOptions:b.default.array,toggleShowMobileBorderHandler:b.default.func,toggleShowMobileBorderRadiusHandler:b.default.func,toggleShowMobileBoxShadowHandler:b.default.func,toggleShowMobileSizeHandler:b.default.func,toggleShowMobileBackgroundHandler:b.default.func,toggleShowMobilePaddingHandler:b.default.func};var Ff=({elementSettings:e})=>{let{__:t}=p.v(),n=i.et(),[r]=p.It.useForm(),[a,o]=(0,v.useState)({}),[s,c]=(0,v.useState)(!0),[l,u]=(0,v.useState)({}),[d,f]=(0,v.useState)(!0),m=i.cr(i.on),h=i.cr(i.fn);i.Wt();let[g,_]=(0,v.useState)(e.backgroundImage[0].value===``),y=i.cr(i.cn),b=i.cr(i.an),x=y&&b!==`bottom`,[S,w]=(0,v.useState)(!1),[T,E]=(0,v.useState)(!1),[D,O]=(0,v.useState)(!1),[k,A]=(0,v.useState)(!1),[j,M]=(0,v.useState)(!1),[N,P]=(0,v.useState)(!1),[F,I]=(0,v.useState)(!1),[L,R]=(0,v.useState)(!1),[z,B]=(0,v.useState)(!1),[V,H]=(0,v.useState)(!1),[ee,U]=(0,v.useState)(!1),[W,G]=(0,v.useState)(!1),[K,q]=(0,v.useState)(!1),[J,Y]=(0,v.useState)(!1),[te,X]=(0,v.useState)(!1),[ne,re]=(0,v.useState)(``),ie=[{label:t(`Not defined`),value:`none`},{label:t(`Do not repeat background (no-repeat)`),value:`no-repeat`},{label:t(`Repeat background (repeat)`),value:`repeat`},{label:t(`Repeat background horizontally (repeat-x)`),value:`repeat-x`},{label:t(`Repeat background vertically (repeat-y)`),value:`repeat-y`}];t(`Not defined`),t(`Contain`),t(`Cover`);let ae=e.border,oe=e.mobileBorder,Z=Object.keys(ae).find(e=>ae[e]?.width||ae[e]?.style||ae[e]?.color),se=Object.keys(oe).find(e=>oe[e]?.width||oe[e]?.style||oe[e]?.color),ce=e=>e&&(e?.width||e?.style||e?.color)?e:``;(0,v.useEffect)(()=>{if(e){let t=e.boxShadow,n=e.mobileBoxShadow;o(t),u(n),r.setFieldsValue({...e,width:e.width?.value,widthDim:e.width?.dim,height:e.height?.value,heightDim:e.height?.dim,maxWidth:e.maxWidth?.value,maxWidthDim:e.maxWidth?.dim,minWidth:e.minWidth?.value,minWidthDim:e.minWidth?.dim,backgroundImage:e.backgroundImage[0].value,show:e.show?e.show:`all`,borderAll:$(e.border.all),borderTop:$(e.border.top),borderBottom:$(e.border.bottom),borderRight:$(e.border.right),borderLeft:$(e.border.left),mobileBorderAll:ce(e.mobileBorder.all)||!(ce(e.mobileBorder.top)||ce(e.mobileBorder.bottom)||ce(e.mobileBorder.right)||ce(e.mobileBorder.left))&&ce(e.border.all),mobileBorderTop:ce(e.mobileBorder.top)||!ce(e.mobileBorder.all)&&ce(e.border.top),mobileBorderBottom:ce(e.mobileBorder.bottom)||!ce(e.mobileBorder.all)&&ce(e.border.bottom),mobileBorderRight:ce(e.mobileBorder.right)||!ce(e.mobileBorder.all)&&ce(e.border.right),mobileBorderLeft:ce(e.mobileBorder.left)||!ce(e.mobileBorder.all)&&ce(e.border.left),paddingTop:$(e.padding.all)||$(e.padding.top),paddingLeft:$(e.padding.all)||$(e.padding.left),paddingRight:$(e.padding.all)||$(e.padding.right),paddingBottom:$(e.padding.all)||$(e.padding.bottom),paddingLeftRight:$(e.padding?.left)||$(e.padding?.right),paddingTopBottom:$(e.padding?.top)||$(e.padding?.bottom),borderRadiusAll:$(e.borderRadius.all),borderRadiusTopLeft:$(e.borderRadius.topLeft),borderRadiusBottomLeft:$(e.borderRadius.bottomLeft),borderRadiusTopRight:$(e.borderRadius.topRight),borderRadiusBottomRight:$(e.borderRadius.bottomRight),boxShadowInset:$(e.boxShadow?.inset)||!1,boxShadowHOffset:$(e.boxShadow?.hOffset),boxShadowVOffset:$(e.boxShadow?.vOffset),boxShadowBlurRadius:$(e.boxShadow?.blurRadius),boxShadowSpreadRadius:$(e.boxShadow?.spreadRadius),boxShadowColor:$(e.boxShadow?.color),mobileWidth:rl(e.mobileWidth?.value),mobileWidthDim:e.mobileWidth?.dim,mobileHeight:rl(e.mobileHeight?.value),mobileHeightDim:e.mobileHeight?.dim,mobileBorderRadiusAll:$(e.mobileBorderRadius.all),mobileBorderRadiusTopLeft:$(e.mobileBorderRadius.topLeft===null?e.mobileBorderRadius.all:e.mobileBorderRadius.topLeft),mobileBorderRadiusBottomLeft:$(e.mobileBorderRadius.bottomLeft===null?e.mobileBorderRadius.all:e.mobileBorderRadius.bottomLeft),mobileBorderRadiusTopRight:$(e.mobileBorderRadius.topRight===null?e.mobileBorderRadius.all:e.mobileBorderRadius.topRight),mobileBorderRadiusBottomRight:$(e.mobileBorderRadius.bottomRight===null?e.mobileBorderRadius.all:e.mobileBorderRadius.bottomRight),mobileBoxShadowInset:$(e.mobileBoxShadow?.inset)||!1,mobileBoxShadowHOffset:$(e.mobileBoxShadow?.hOffset),mobileBoxShadowVOffset:$(e.mobileBoxShadow?.vOffset),mobileBoxShadowBlurRadius:$(e.mobileBoxShadow?.blurRadius),mobileBoxShadowSpreadRadius:$(e.mobileBoxShadow?.spreadRadius),mobileBoxShadowColor:$(e.mobileBoxShadow?.color),mobileAlign:$(e.mobileAlign?.value),mobileVerticalAlign:$(e.mobileVerticalAlign?.value),mobileDirection:$(e.mobileDirection?.value),mobileBackgroundColor:$(e.mobileBackgroundColor?.value===`none`?``:e.mobileBackgroundColor?.value),mobileBackgroundImage:e.mobileBackgroundImage[0].value===`none`?``:e.mobileBackgroundImage[0].value,mobileBackgroundPositionX:$(e.mobileBackgroundPositionX?.value),mobileBackgroundPositionY:$(e.mobileBackgroundPositionY?.value),mobileBackgroundRepeat:e.mobileBackgroundRepeat?.value?e.mobileBackgroundRepeat?.value:`none`,mobilePaddingTop:$(e.mobilePadding.all)||$(e.mobilePadding.top),mobilePaddingLeft:$(e.mobilePadding.all)||$(e.mobilePadding.left),mobilePaddingRight:$(e.mobilePadding.all)||$(e.mobilePadding.right),mobilePaddingBottom:$(e.mobilePadding.all)||$(e.mobilePadding.bottom),mobilePaddingTopBottom:$(e.mobilePadding.top)||$(e.mobilePadding.bottom),mobilePaddingLeftRight:$(e.mobilePadding.left)||$(e.mobilePadding.right),exportAsPicture:e?.exportAsPicture}),!$(e.borderRadius.all)&&($(e.borderRadius.topLeft)||$(e.borderRadius.bottomLeft)||$(e.borderRadius.topRight)||$(e.borderRadius.bottomRight))?c(!1):c(!0),!$(e.mobileBorderRadius.all)&&($(e.mobileBorderRadius.topLeft)||$(e.mobileBorderRadius.bottomLeft)||$(e.mobileBorderRadius.topRight)||$(e.mobileBorderRadius.bottomRight))?f(!1):f(!0),_(e.backgroundImage[0].value===``),!$(e.padding.all)&&($(e.padding.top)||$(e.padding.right)||$(e.padding.bottom)||$(e.padding.left))&&(e.padding.top!==e.padding.bottom||e.padding.right!==e.padding.left)?w(!1):w(!0),!$(e.mobilePadding.all)&&($(e.mobilePadding.top)||$(e.mobilePadding.right)||$(e.mobilePadding.bottom)||$(e.mobilePadding.left))&&(e.mobilePadding.top!==e.mobilePadding.bottom||e.mobilePadding.right!==e.mobilePadding.left)?E(!1):E(!0),O(e=>Z?!0:e),A(e=>Z||se?!0:e),M(!!e.borderRadius.all||!!e.borderRadius.topLeft||!!e.borderRadius.bottomLeft||!!e.borderRadius.topRight||!!e.borderRadius.bottomRight),P(!!e.mobileBorderRadius.all||!!e.mobileBorderRadius.topLeft||!!e.mobileBorderRadius.bottomLeft||!!e.mobileBorderRadius.topRight||!!e.mobileBorderRadius.bottomRight),I(!!e.boxShadow),R(!!e.mobileBoxShadow.blurRadius||!!e.mobileBoxShadow.color||!!e.mobileBoxShadow.hOffset||!!e.mobileBoxShadow.inset||!!e.mobileBoxShadow.spreadRadius||!!e.mobileBoxShadow.vOffset),B(!!e.width.value||!!e.height.value||!!e.minWidth.value||!!e.maxWidth.value),H(!!e.mobileWidth.value||!!e.mobileHeight.value),U(!!e.backgroundColor||!!e.backgroundImage[0].value||!!e.backgroundPositionY||!!e.backgroundPositionX||e.backgroundRepeat!==`repeat`||!e.backgroundRepeat,!!e.backgroundSize),G(!!e.mobileBackgroundColor.value),q(!!e.exportAsPicture),Y(!!e.padding?.all||!!e.padding?.top||!!e.padding?.bottom||!!e.padding?.left||!!e.padding?.right),X(!!e.mobilePadding.all||!!e.mobilePadding.top||!!e.mobilePadding.bottom||!!e.mobilePadding.left||!!e.mobilePadding.right)}},[r,e]);let le=t=>{let a=r.getFieldsValue(!0),o=Object.keys(t)[0],s;switch(re(r.getFieldsValue(!0).widthDim===`%`?100:``),o){case`exportAsPicture`:s={exportAsPicture:a.exportAsPicture};break;case`boxShadowInset`:case`boxShadowHOffset`:case`boxShadowVOffset`:case`boxShadowBlurRadius`:case`boxShadowSpreadRadius`:case`boxShadowColor`:s={boxShadow:{hOffset:a.boxShadowHOffset,vOffset:a.boxShadowVOffset,blurRadius:a.boxShadowBlurRadius,spreadRadius:a.boxShadowSpreadRadius,color:a.boxShadowColor,inset:a.boxShadowInset}};break;case`borderAll`:case`borderTop`:case`borderBottom`:case`borderLeft`:case`borderRight`:a.borderPosition===`borderAll`?(s={border:{...i.ci,all:{...Q,...a.borderAll}}},r.setFieldsValue({borderLeft:Q,borderRight:Q,borderTop:Q,borderBottom:Q})):a.borderAll?.width||a.borderAll?.style||a.borderAll?.color?(s={border:{all:null,left:a.borderAll,right:a.borderAll,top:a.borderAll,bottom:a.borderAll,[Oc[o]]:{...a[o],...t[o]}}},r.setFieldsValue({borderAll:null,borderLeft:a.borderAll,borderRight:a.borderAll,borderTop:a.borderAll,borderBottom:a.borderAll,[o]:{...a[o],...t[o]}})):(s={border:{all:null,left:a.borderLeft,right:a.borderRight,top:a.borderTop,bottom:a.borderBottom,[Oc[o]]:{...a[o],...t[o]}}},r.setFieldsValue({border:s.border}));break;case`mobileBorderAll`:case`mobileBorderTop`:case`mobileBorderBottom`:case`mobileBorderLeft`:case`mobileBorderRight`:if(a.mobileBorderPosition===`mobileBorderAll`)s={mobileBorder:{...i.ci,all:{...Q,...a.mobileBorderAll,classNamePrefix:`em-mob-border_`+kc[o]+`-`}}},r.setFieldsValue({borderLeft:Q,borderRight:Q,borderTop:Q,borderBottom:Q});else{let n=kc[o],i={...a[o],...t[o]},c=!i?.width&&!i?.style&&!i?.color;if(a.mobileBorder?.all?.width||a.mobileBorder?.all?.style||a.mobileBorder?.all?.color){let e=a.mobileBorderAll;s={mobileBorder:{all:null,left:e,right:e,top:e,bottom:e,[n]:c?null:{...i,classNamePrefix:`em-mob-border_`+n+`-`}}},r.setFieldsValue({mobileBorderAll:null,mobileBorderLeft:e,mobileBorderRight:e,mobileBorderTop:e,mobileBorderBottom:e,[o]:i})}else{let t=e.mobileBorder||{},a=e=>{let n=t[e];return n&&(n?.width||n?.style||n?.color)?n:null};s={mobileBorder:{all:null,left:n===`left`?c?null:{...i,classNamePrefix:`em-mob-border_left-`}:a(`left`),right:n===`right`?c?null:{...i,classNamePrefix:`em-mob-border_right-`}:a(`right`),top:n===`top`?c?null:{...i,classNamePrefix:`em-mob-border_top-`}:a(`top`),bottom:n===`bottom`?c?null:{...i,classNamePrefix:`em-mob-border_bottom-`}:a(`bottom`)}},r.setFieldsValue({[o]:i})}}break;case`width`:s={[o]:{value:t[o],dim:a.widthDim}};break;case`height`:s={[o]:{value:t[o],dim:a.heightDim}};break;case`widthDim`:s={width:{value:a.width,dim:t[o]}};break;case`heightDim`:s={height:{value:a.height,dim:t[o]}};break;case`maxWidth`:s={[o]:{value:t[o],dim:a.maxWidthDim}};break;case`maxWidthDim`:s={maxWidth:{value:a.maxWidth,dim:t[o]}};break;case`minWidth`:s={[o]:{value:t[o],dim:a.minWidthDim}};break;case`minWidthDim`:s={minWidth:{value:a.minWidth,dim:t[o]}};break;case`backgroundImage`:_(t[o]===``),s={[o]:[{...e.backgroundImage[0],value:t[o]}],backgroundSize:`cover`};break;case`paddingTop`:case`paddingLeft`:case`paddingRight`:case`paddingBottom`:s={padding:{[Cc[o]]:+t[o]}};break;case`paddingTopBottom`:s={padding:{top:+t[o],bottom:+t[o]}},a.paddingTop=a.paddingBottom=+t[o];break;case`paddingLeftRight`:s={padding:{left:+t[o],right:+t[o]}},a.paddingLeft=a.paddingRight=+t[o];break;case`borderRadiusAll`:case`borderRadiusTopLeft`:case`borderRadiusBottomLeft`:case`borderRadiusTopRight`:case`borderRadiusBottomRight`:s={borderRadius:{[wc[o]]:+t[o]}};break;case`mobileWidth`:s={[o]:{classNamePrefix:`em-mob-width-`,value:t[o],dim:a.mobileWidthDim}};break;case`mobileWidthDim`:s={mobileWidth:{classNamePrefix:`em-mob-width-`,value:a.mobileWidth||100,dim:t[o]}};break;case`mobileHeight`:s={[o]:{classNamePrefix:`em-mob-height-`,value:t[o],dim:a.mobileHeightDim}};break;case`mobileHeightDim`:s={mobileHeight:{classNamePrefix:`em-mob-height-`,value:a.mobileHeight,dim:t[o]}};break;case`mobileBorderRadiusAll`:case`mobileBorderRadiusTopLeft`:case`mobileBorderRadiusBottomLeft`:case`mobileBorderRadiusTopRight`:case`mobileBorderRadiusBottomRight`:s={mobileBorderRadius:{[Tc[o]]:t[o],classNamePrefix:`em-mob-border_radius_`+Tc[o]+`-`}};break;case`mobileBoxShadowInset`:case`mobileBoxShadowHOffset`:case`mobileBoxShadowVOffset`:case`mobileBoxShadowBlurRadius`:case`mobileBoxShadowSpreadRadius`:case`mobileBoxShadowColor`:s={mobileBoxShadow:{hOffset:a.mobileBoxShadowHOffset,vOffset:a.mobileBoxShadowVOffset,blurRadius:a.mobileBoxShadowBlurRadius,spreadRadius:a.mobileBoxShadowSpreadRadius,color:a.mobileBoxShadowColor,inset:a.mobileBoxShadowInset,classNamePrefix:`em-mob-box_shadow-`}};break;case`mobileAlign`:s={[o]:{classNamePrefix:`em-mob-text_align-`,value:t[o]}};break;case`mobileVerticalAlign`:s={[o]:{classNamePrefix:`em-mob-vertical_align-`,value:t[o]}};break;case`mobileBackgroundColor`:s={[o]:{classNamePrefix:`em-mob-background_color-`,value:t[o]}};break;case`mobileBackgroundImage`:s={[o]:[{...e.mobileBackgroundImage[0],classNamePrefix:`em-mob-background_image-`,value:t[o]}]};break;case`mobileBackgroundPositionX`:s={[o]:{classNamePrefix:`em-mob-background_position_x-`,value:t[o]}};break;case`mobileBackgroundPositionY`:s={[o]:{classNamePrefix:`em-mob-background_position_x-`,value:t[o]}};break;case`mobileBackgroundRepeat`:s={[o]:{classNamePrefix:`em-mob-background_repeat-`,value:t[o]}};break;case`mobilePaddingTop`:case`mobilePaddingLeft`:case`mobilePaddingRight`:case`mobilePaddingBottom`:s={mobilePadding:{all:null,top:a.mobilePaddingTop===``?null:a.mobilePaddingTop,right:a.mobilePaddingRight===``?null:a.mobilePaddingRight,bottom:a.mobilePaddingBottom===``?null:a.mobilePaddingBottom,left:a.mobilePaddingLeft===``?null:a.mobilePaddingLeft,classNamePrefix:`em-mob-padding_`}};break;case`mobilePaddingTopBottom`:a.mobilePaddingTop=a.mobilePaddingBottom=t[o],s={mobilePadding:{all:null,top:a.mobilePaddingTop===``?null:a.mobilePaddingTop,right:a.mobilePaddingRight===``?null:a.mobilePaddingRight,bottom:a.mobilePaddingBottom===``?null:a.mobilePaddingBottom,left:a.mobilePaddingLeft===``?null:a.mobilePaddingLeft,classNamePrefix:`em-mob-padding_`}};break;case`mobilePaddingLeftRight`:a.mobilePaddingLeft=a.mobilePaddingRight=t[o],s={mobilePadding:{all:null,top:a.mobilePaddingTop===``?null:a.mobilePaddingTop,right:a.mobilePaddingRight===``?null:a.mobilePaddingRight,bottom:a.mobilePaddingBottom===``?null:a.mobilePaddingBottom,left:a.mobilePaddingLeft===``?null:a.mobilePaddingLeft,classNamePrefix:`em-mob-padding_`}};break;case`mobileDirection`:s={[o]:{classNamePrefix:`em-mob-direction-`,value:t[o]}};break;case`backgroundPositionX`:case`backgroundPositionY`:s={[o]:isNaN(parseFloat(t[o].position))?t[o].position:t[o].position+t[o].unit};break;default:s=t}o!==`borderPosition`&&o!==`mobileBorderPosition`&&n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:s})};return(0,C.jsxs)(p.It,{form:r,layout:`vertical`,name:`selected_div_form`,initialValues:{backgroundColor:``,backgroundImage:``,backgroundPositionX:``,backgroundPositionY:``,backgroundRepeat:``,backgroundSize:``,exportAsPicture:!1,width:``,height:``,widthDim:``,heightDim:``,maxWidth:{value:``,dim:``},minWidth:{value:``,dim:``},align:``,valign:``,border:``,boxShadow:``,show:`all`,borderPosition:Ec[Z]||`borderAll`,mobileBorderPosition:Dc[se]||`mobileBorderAll`,borderColor:``,borderWidth:``,borderStyle:``,paddingTop:``,paddingLeft:``,paddingRight:``,paddingBottom:``,borderRadiusAll:``,borderRadiusTopLeft:``,borderRadiusBottomLeft:``,borderRadiusTopRight:``,borderRadiusBottomRight:``,direction:``,mobileWidth:``,mobileWidthDim:``,mobileHeight:``,mobileHeightDim:``,mobileBorder:``,mobileBorderColor:``,mobileBorderWidth:``,mobileBorderStyle:``,mobileBoxShadow:``,mobileAlign:``,mobileDirection:``,mobileVerticalAlign:``,mobileBackgroundColor:``,mobileBackgroundImage:``,mobilePaddingTop:``,mobilePaddingLeft:``,mobilePaddingRight:``,mobilePaddingBottom:``},onValuesChange:le,autoComplete:`off`,className:`element-controls`,children:[!x&&(0,C.jsx)(p.K,{title:t(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:t(`Appearance on mobile devices`),type:`info`})}),m===`mobile`&&h.styles?(0,C.jsxs)(`div`,{id:`selected_element_form_mobile_props`,className:`selected_form-mobile-props`,children:[(0,C.jsx)(Pf,{form:r,elementSettings:e,mobileBoxShadow:l,mobileBordersShow:k,mobileBorderRadiusShow:N,mobileBoxShadowShow:L,mobileSizeShow:V,mobileBackgroundShow:W,mobilePaddingShow:te,mobilePaddingsExt:T,setMobilePaddingsExt:E,oneMobileBorderRadiusValue:d,setOneMobileBorderRadiusValue:f,backgroundRepeatOptions:ie,toggleShowMobileBorderHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{A(e=>!e),k?(t.mobileBorderAll=Q,t.mobileBorderTop=Q,t.mobileBorderBottom=Q,t.mobileBorderRight=Q,t.mobileBorderLeft=Q):t.mobileBorderAll={width:1,color:`#E5E5E5`,style:`solid`},n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorder:{all:{color:t.mobileBorderAll.color,style:t.mobileBorderAll.style,width:t.mobileBorderAll.width}}}})})},toggleShowMobileBorderRadiusHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{P(e=>!e),N?(t.mobileBorderRadiusAll=null,f(!0)):t.mobileBorderRadiusAll=5,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorderRadius:{all:t.mobileBorderRadiusAll,classNamePrefix:`em-mob-border_radius_all-`}}})})},toggleShowMobileBoxShadowHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{R(e=>!e),L?(t.mobileBoxShadowInset=!1,t.mobileBoxShadowHOffset=null,t.mobileBoxShadowVOffset=null,t.mobileBoxShadowBlurRadius=null,t.mobileBoxShadowSpreadRadius=null,t.mobileBoxShadowColor=``):(t.mobileBoxShadowInset=!1,t.mobileBoxShadowHOffset=5,t.mobileBoxShadowVOffset=5,t.mobileBoxShadowBlurRadius=10,t.mobileBoxShadowSpreadRadius=-5,t.mobileBoxShadowColor=`#000000`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBoxShadow:{blurRadius:t.mobileBoxShadowBlurRadius,color:t.mobileBoxShadowColor,hOffset:t.mobileBoxShadowHOffset,inset:t.mobileBoxShadowInset,spreadRadius:t.mobileBoxShadowSpreadRadius,vOffset:t.mobileBoxShadowVOffset,classNamePrefix:`em-mob-box_shadow-`}}})})},toggleShowMobileSizeHandler:()=>{setTimeout(()=>{H(e=>!e)})},toggleShowMobileBackgroundHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{G(e=>!e),W?t.mobileBackgroundColor=``:t.mobileBackgroundColor=`#E5E5E5`,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBackgroundColor:{classNamePrefix:`em-mob-background_color-`,value:t.mobileBackgroundColor}}})})},toggleShowMobilePaddingHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{X(e=>!e),te&&(t.mobilePaddingLeftRight=``,t.mobilePaddingLeft=``,t.mobilePaddingRight=``,t.mobilePaddingTopBottom=``,t.mobilePaddingTop=``,t.mobilePaddingBottom=``,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobilePadding:{all:null,top:null,right:null,bottom:null,left:null,classNamePrefix:`em-mob-padding_`}}}))})}}),` `]}):(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,children:(0,C.jsx)(Nf,{form:r,elementSettings:e,boxShadow:a,bordersShow:D,borderRadiusShow:j,boxShadowShow:F,backgroundShow:ee,backgroundImageEmpty:g,backgroundRepeatOptions:ie,sizeShow:z,maxWidthValue:ne,modificationShow:K,paddingShow:J,paddingsExt:S,oneBorderRadiusValue:s,setOneBorderRadiusValue:c,togglePaddingHandler:()=>{w(e=>!e);let t=r.getFieldsValue(!0);S||(t.paddingLeftRight=t.paddingLeft,t.paddingTopBottom=t.paddingTop,t.paddingRight=t.paddingLeft,t.paddingBottom=t.paddingTop,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{padding:{top:t.paddingTopBottom,bottom:t.paddingTopBottom,left:t.paddingLeftRight,right:t.paddingLeftRight}}}))},toggleShowPaddingHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{Y(e=>!e),J&&(t.paddingLeftRight=``,t.paddingLeft=``,t.paddingRight=``,t.paddingTopBottom=``,t.paddingTop=``,t.paddingBottom=``,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{padding:{all:0}}}))})},toggleShowBorderHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{O(e=>!e),D?(t.borderAll=Q,t.borderTop=Q,t.borderBottom=Q,t.borderRight=Q,t.borderLeft=Q):t.borderAll={width:1,color:`#E5E5E5`,style:`solid`},n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{border:{all:{color:t.borderAll.color,style:t.borderAll.style,width:t.borderAll.width}}}})})},toggleShowBorderRadiusHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{M(e=>!e),j?(t.borderRadiusAll=0,c(!0)):t.borderRadiusAll=5,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{borderRadius:{all:t.borderRadiusAll}}})})},toggleShowBoxShadowHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{I(e=>!e),F?(t.boxShadowInset=!1,t.boxShadowHOffset=null,t.boxShadowVOffset=null,t.boxShadowBlurRadius=null,t.boxShadowSpreadRadius=null,t.boxShadowColor=``):(t.boxShadowInset=!1,t.boxShadowHOffset=5,t.boxShadowVOffset=5,t.boxShadowBlurRadius=10,t.boxShadowSpreadRadius=-5,t.boxShadowColor=`#000000`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{boxShadow:{blurRadius:t.boxShadowBlurRadius,color:t.boxShadowColor,hOffset:t.boxShadowHOffset,inset:t.boxShadowInset,spreadRadius:t.boxShadowSpreadRadius,vOffset:t.boxShadowVOffset}}})})},toggleShowSizeHandler:()=>{setTimeout(()=>{B(e=>!e)})},toggleShowBackgroundHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{U(e=>!e),ee?(t.backgroundColor=``,t.backgroundImage=``,t.backgroundPositionX=``,t.backgroundPositionY=``,t.backgroundRepeat=`none`,t.backgroundSize=``,_(!0)):(t.backgroundColor=`#E5E5E5`,t.backgroundSize=``,t.backgroundRepeat=`none`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{backgroundColor:t.backgroundColor,backgroundImage:[{type:`url`,value:t.backgroundImage}],backgroundPositionX:t.backgroundPositionX,backgroundPositionY:t.backgroundPositionY,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}})})},toggleShowModificationHandler:()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{q(e=>!e),K&&(t.exportAsPicture=!1,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{exportAsPicture:!1}}))})},handleChangeValues:le})})]})};Ff.propTypes={elementSettings:b.default.object.isRequired};var If=({form:e,elementSettings:t})=>{let{__:n}=p.v(),r=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.It.Item,{style:{marginBottom:`0`},children:(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:n(`Float block width`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`width`,children:(0,C.jsx)(p.Tt,{min:0,placeholder:n(`Float block width`),prefix:(0,C.jsx)(m.d,{icon:`ColumnWidthOutlined`}),addonAfter:(0,C.jsx)(p.It.Item,{name:`widthDim`,noStyle:!0,children:ol})})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:n(`Column gap`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`gap`,children:(0,C.jsx)(p.Tt,{min:0,placeholder:n(`Column gap`),prefix:(0,C.jsx)(m.d,{icon:`SplitCellsOutlined`}),addonAfter:(0,C.jsx)(p.It.Item,{name:`widthDim`,noStyle:!0,children:sl})})})})})]})}),(0,C.jsx)(p.M,{title:n(`Vertical alignment`),dividerTop:!0,children:(0,C.jsx)(yd,{form:e,elementSettings:t})}),(0,C.jsx)(p.M,{title:n(`Display control`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e})}),r.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:n(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})};If.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired};var Lf=({form:e,elementSettings:t})=>{let{__:n}=p.v(),r=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.K,{title:n(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:n(`Appearance on mobile devices`),type:`info`})}),(0,C.jsxs)(p.At,{gutter:10,style:{marginBottom:20},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(kd,{form:e,name:`mobileWidth`,elementSettings:t})}),(0,C.jsx)(p.kt,{span:12})]}),(0,C.jsx)(p.M,{title:n(`Alignments`),dividerTop:!0,children:(0,C.jsx)(yd,{form:e,elementSettings:t,typeOfForm:`mobile`})}),(0,C.jsx)(p.M,{title:n(`Display control`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e})}),r.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:n(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})};Lf.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired};var Rf=0,zf=({elementSettings:e})=>{let{__:t}=p.v(),n=i.et(),[r]=p.It.useForm(),a=i.cr(i.on),o=i.cr(i.fn),s=i.cr(i.cn),c=i.cr(i.an),l=s&&c!==`bottom`;return(0,v.useEffect)(()=>{e&&(r.setFieldsValue({...e,width:e.width?.value,widthDim:e.width?.dim,gap:e.gap?.value,gapDim:e.gap?.dim,maxWidth:e.maxWidth?.value,maxWidthDim:e.maxWidth?.dim,minWidth:e.minWidth?.value,minWidthDim:e.minWidth?.dim,show:e.show?e.show:`all`,mobileWidth:rl(e.mobileWidth?.value),mobileWidthDim:e.mobileWidth?.dim,mobileContentWidth:rl(e.mobileContentWidth?.value),mobileContentWidthDim:e.mobileContentWidth?.dim,mobileVerticalAlign:$(e.mobileVerticalAlign?.value)}),Rf=e.width.value+e.gap.value)},[r,e]),(0,C.jsxs)(p.It,{form:r,layout:`vertical`,name:`selected_float_block_form`,initialValues:{width:{value:``,dim:``},gap:{value:``,dim:`px`},valign:``,show:`all`,mobileWidth:``,mobileWidthDim:``,mobileContentWidth:``,mobileContentWidthDim:``,mobileVerticalAlign:``},onValuesChange:t=>{let a=r.getFieldsValue(!0),o=Object.keys(t)[0],s;switch(o){case`width`:Rf=t[o]+a.gap,s={[o]:{value:t[o],dim:a.widthDim},gap:{value:a.gap}};break;case`widthDim`:s={width:{value:a.width,dim:t[o]},gap:{value:a.gap}};break;case`gap`:a.width=Rf-t[o],s={[o]:{value:t[o],dim:`px`}};break;case`mobileWidth`:s={[o]:{classNamePrefix:`em-mob-width-`,value:t[o],dim:a.mobileWidthDim}};break;case`mobileWidthDim`:s={mobileWidth:{classNamePrefix:`em-mob-width-`,value:a.mobileWidth||100,dim:t[o]}};break;case`mobileContentWidth`:s={[o]:{classNamePrefix:`em-mob-width-`,value:t[o],dim:a.mobileContentWidthDim}};break;case`mobileContentWidthDim`:s={mobileContentWidth:{classNamePrefix:`em-mob-width-`,value:100,dim:t[o]}};break;case`mobileVerticalAlign`:s={[o]:{classNamePrefix:`em-mob-vertical_align-`,value:t[o]}};break;default:s=t}n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:s})},autoComplete:`off`,className:`element-controls`,children:[l&&(0,C.jsx)(p.K,{title:t(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:t(`Appearance on mobile devices`),type:`info`})}),a===`mobile`&&o.styles?(0,C.jsx)(`div`,{id:`selected_element_form_mobile_props`,className:`selected_form-mobile-props`,style:{display:a===`mobile`&&o.styles?`block`:`none`},children:(0,C.jsx)(Lf,{form:r,elementSettings:e})}):(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,children:(0,C.jsx)(If,{form:r,elementSettings:e})})]})};zf.propTypes={elementSettings:b.default.object.isRequired};var Bf=({form:e,elementSettings:t,boxShadow:n,bordersShow:r,borderRadiusShow:a,boxShadowShow:o,backgroundShow:s,backgroundImageEmpty:c,backgroundRepeatOptions:l,paddingShow:u,paddingsExt:d,maxWidthValue:f,oneBorderRadiusValue:h,setOneBorderRadiusValue:g,linkProtocol:_,linkTarget:v,isOpenTextReplacer:y,textReplacerButtonRef:b,textReplacerInputRef:x,handleLinkProtocolsChange:S,handleSelect:w,textReplacerInputHandler:T,handleTextReplacerKeyDown:D,srcButtonHandler:O,togglePaddingHandler:k,toggleShowPaddingHandler:A,toggleShowBackgroundHandler:j,toggleShowBorderHandler:M,toggleShowBorderRadiusHandler:N,toggleShowBoxShadowHandler:P,setLinkProtocol:F,handleChangeValues:I})=>{let{__:L}=p.v(),{token:R}=p.Vt(),z=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Q,{className:`selected_form-desktop-props-title`,message:L(`Appearance on mobile devices`),type:`info`}),(0,C.jsxs)(`div`,{className:`selected_form-props-wrapper`,children:[(0,C.jsxs)(p.At,{gutter:20,style:{marginBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(vd,{form:e,elementSettings:t})}),z.formButtonFieldTextAlignEnabled&&(0,C.jsx)(p.kt,{span:12,style:{textAlign:`right`},children:(0,C.jsx)(xc,{form:e,name:`textAlign`,elementSettings:t})})]}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`,style:{marginBottom:24}}),(0,C.jsx)(Zc,{show:_===`#`,__:L,style:{marginBottom:R.formItemMarginBottomXS}}),(0,C.jsx)(p.K,{trigger:[`hover`],title:L(`Hyperlink URL`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`href`,style:{marginBottom:z.formButtonFieldReplacerEnabled?R.formItemMarginBottomXS:R.formItemMarginBottomMD+4},children:(0,C.jsx)(p.jt,{addonBefore:(0,C.jsx)(Xc,{linkProtocol:_,handleLinkProtocolsChange:S,__:L}),placeholder:L(`Hyperlink URL`),allowClear:!0,onSelect:w,prefix:(0,C.jsx)(Jc,{linkProtocol:_})})})}),_===`mailto:`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.It.Item,{name:`subject`,style:{marginBottom:R.formItemMarginBottomXS},children:(0,C.jsx)(p.jt,{placeholder:L(`Subject`)})}),(0,C.jsx)(p.It.Item,{name:`body`,style:{marginBottom:R.formItemMarginBottomXS},children:(0,C.jsx)(p.Ct,{rows:3,placeholder:L(`Body`)})})]}),z.formButtonFieldReplacerEnabled&&(0,C.jsx)(C.Fragment,{children:(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(p.K,{title:L(`Text replacer`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button ant-form-item`,{"selected-td-form__button--active":y}),icon:(0,C.jsx)(m.d,{icon:`Replacer`,className:`selected-td-form__icon-radius`}),onClick:O,ref:b})})}),(0,C.jsx)(p.kt,{span:21,children:y&&(0,C.jsx)(p.K,{trigger:[`hover`],title:L(`Text`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`textReplacer`,children:(0,C.jsx)(p.jt,{placeholder:L(`The code that will replace this text`),allowClear:!0,prefix:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Text`}),onChange:T,onKeyDown:D,ref:x,onSelect:w})})})})]})}),z.formButtonFieldPaddingsEnabled&&(0,C.jsx)(p.M,{title:L(`Padding`),collapsible:!0,open:u,onToggle:A,dividerTop:!0,children:(0,C.jsx)(p.j,{extended:d,onToggleExtended:k,gutter:R.marginSM,labels:{horizontal:L(`Horizontal padding`),vertical:L(`Vertical padding`),left:L(`Left padding`),right:L(`Right padding`),top:L(`Top padding`),bottom:L(`Bottom padding`),individual:L(`Individual padding`)}})}),(0,C.jsx)(p.M,{title:L(`Size`),dividerTop:!0,children:(0,C.jsx)(p.A,{maxWidth:f,dimensionSelect:ol,gutter:R.marginSM,labels:{width:L(`Width`),height:L(`Height`),minWidth:L(`Minimum width`),maxWidth:L(`Maximum width`)}})}),(0,C.jsx)(sf,{form:e,elementSettings:t,showAddParagraph:!1,isButton:!0,setLinkProtocol:F,linkProtocol:_,linkTarget:v}),(0,C.jsx)(p.M,{title:L(`Background`),collapsible:!0,open:s,onToggle:j,dividerTop:!0,children:(0,C.jsx)(Df,{form:e,backgroundImageEmpty:c,appConfig:z,token:R,elementSettings:t,backgroundRepeatOptions:l,handleChangeValues:I})}),z.formFieldBorderEnabled&&(0,C.jsx)(p.M,{title:L(`Borders`),collapsible:!0,open:r,onToggle:M,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,elementSettings:t})}),z.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:L(`Border radius`),collapsible:!0,open:a,onToggle:N,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,oneBorderRadiusValue:h,setOneBorderRadiusValue:g,elementSettings:t})}),z.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:L(`Box shadow`),collapsible:!0,open:o,onToggle:P,dividerTop:!0,children:(0,C.jsx)(Sd,{})}),z.formFieldVisibilityEnabled&&(0,C.jsx)(p.M,{title:L(`Display control`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e})}),z.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:L(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})]})};Bf.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,boxShadow:b.default.object,bordersShow:b.default.bool,borderRadiusShow:b.default.bool,boxShadowShow:b.default.bool,backgroundShow:b.default.bool,backgroundImageEmpty:b.default.bool,backgroundRepeatOptions:b.default.array,paddingShow:b.default.bool,paddingsExt:b.default.bool,maxWidthValue:b.default.oneOfType([b.default.string,b.default.number]),oneBorderRadiusValue:b.default.bool,setOneBorderRadiusValue:b.default.func,linkProtocol:b.default.string,linkTarget:b.default.object,isOpenTextReplacer:b.default.bool,textReplacerButtonRef:b.default.object,textReplacerInputRef:b.default.object,handleLinkProtocolsChange:b.default.func,handleSelect:b.default.func,textReplacerInputHandler:b.default.func,handleTextReplacerKeyDown:b.default.func,srcButtonHandler:b.default.func,togglePaddingHandler:b.default.func,toggleShowPaddingHandler:b.default.func,toggleShowBackgroundHandler:b.default.func,toggleShowBorderHandler:b.default.func,toggleShowBorderRadiusHandler:b.default.func,toggleShowBoxShadowHandler:b.default.func,setLinkProtocol:b.default.func,handleChangeValues:b.default.func};var Vf=({form:e,elementSettings:t,boxShadow:n,mobileBordersShow:r,mobileBorderRadiusShow:a,mobileBoxShadowShow:o,mobileSizeShow:s,mobileBackgroundShow:c,mobilePaddingShow:l,mobilePaddingsExt:u,setMobilePaddingsExt:d,oneMobileBorderRadiusValue:f,setOneMobileBorderRadiusValue:m,linkProtocol:h,handleLinkProtocolsChange:g,setLinkProtocol:_,toggleShowMobileBorderHandler:v,toggleShowMobileBorderRadiusHandler:y,toggleShowMobileBoxShadowHandler:b,toggleShowMobileSizeHandler:x,toggleShowMobileBackgroundHandler:S,toggleShowMobilePaddingHandler:w})=>{let{__:T}=p.v(),{token:E}=p.Vt(),D=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.At,{gutter:20,style:{marginBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(vd,{form:e,elementSettings:t,imgParent:!0,typeOfForm:`mobile`})}),D.formButtonFieldTextAlignEnabled&&(0,C.jsx)(p.kt,{span:12,style:{textAlign:`right`},children:(0,C.jsx)(lf,{form:e,name:`mobileTextAlign`,elementSettings:t,imgParent:!0})})]}),!!t.showOnMobile&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`,style:{marginBottom:24}}),(0,C.jsx)(Zc,{show:h===`#`,__:T,style:{marginBottom:E.formItemMarginBottomXS}}),(0,C.jsx)(p.K,{trigger:[`hover`],title:T(`Hyperlink URL`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`href`,style:{marginBottom:h===`mailto:`?E.formItemMarginBottomXS:E.formItemMarginBottomMD},children:(0,C.jsx)(p.jt,{addonBefore:(0,C.jsx)(Xc,{linkProtocol:h,handleLinkProtocolsChange:g,__:T}),placeholder:T(`Hyperlink URL`),allowClear:!0,prefix:(0,C.jsx)(Jc,{linkProtocol:h})})})}),h===`mailto:`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.It.Item,{name:`subject`,children:(0,C.jsx)(p.jt,{placeholder:T(`Subject`)})}),(0,C.jsx)(p.It.Item,{name:`body`,style:{marginBottom:E.formItemMarginBottomMD},children:(0,C.jsx)(p.Ct,{rows:3,placeholder:T(`Body`)})})]})]}),!!t.showOnMobile&&(0,C.jsx)(sf,{form:e,elementSettings:t,setLinkProtocol:_,linkProtocol:h,showAddParagraph:!1,isButton:!0}),(0,C.jsx)(p.At,{gutter:10,children:(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(nf,{})})}),D.formButtonFieldPaddingsEnabled&&(0,C.jsx)(p.M,{title:T(`Padding`),collapsible:!0,open:l,onToggle:w,dividerTop:!0,children:(0,C.jsx)(Af,{form:e,elementSettings:t,mobilePaddingsExt:u,setMobilePaddingsExt:d})}),(0,C.jsx)(p.M,{title:T(`Size`),collapsible:!0,open:s,onToggle:x,dividerTop:!0,bodyStyle:{paddingBottom:E.formItemMarginBottomMD},children:(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{title:T(`Width`),placement:`bottom`,children:(0,C.jsx)(kd,{form:e,name:`mobileWidth`,elementSettings:t})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{title:T(`Height`),placement:`bottom`,children:(0,C.jsx)(Ad,{form:e,name:`mobileHeight`,elementSettings:t})})})]})}),(0,C.jsx)(p.M,{title:T(`Background`),collapsible:!0,open:c,onToggle:S,dividerTop:!0,bodyStyle:{paddingBottom:E.formItemMarginBottomMD},children:(0,C.jsx)(pf,{form:e,elementSettings:t,label:T(`Background color`)})}),D.formFieldBorderEnabled&&(0,C.jsx)(p.M,{title:T(`Borders`),collapsible:!0,open:r,onToggle:v,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,typeOfForm:`mobile`})}),D.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:T(`Border radius`),collapsible:!0,open:a,onToggle:y,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,oneBorderRadiusValue:f,setOneBorderRadiusValue:m,elementSettings:t,typeOfForm:`mobile`})}),D.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:T(`Box shadow`),collapsible:!0,open:o,onToggle:b,dividerTop:!0,children:(0,C.jsx)(Sd,{typeOfForm:`mobile`})}),D.formFieldAmpVisibilityEnabled&&t.ampShow&&(0,C.jsx)(p.M,{title:T(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})}),D.formFieldAmpVisibilityEnabled&&t.isAmp&&(0,C.jsx)(p.M,{title:T(`AMP visibility`),dividerTop:!0,children:(0,C.jsx)(Dd,{})})]})};Vf.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,boxShadow:b.default.object,mobileBordersShow:b.default.bool,mobileBorderRadiusShow:b.default.bool,mobileBoxShadowShow:b.default.bool,mobileSizeShow:b.default.bool,mobileBackgroundShow:b.default.bool,mobilePaddingShow:b.default.bool,mobilePaddingsExt:b.default.bool,setMobilePaddingsExt:b.default.func,oneMobileBorderRadiusValue:b.default.bool,setOneMobileBorderRadiusValue:b.default.func,linkProtocol:b.default.string,handleLinkProtocolsChange:b.default.func,setLinkProtocol:b.default.func,toggleShowMobileBorderHandler:b.default.func,toggleShowMobileBorderRadiusHandler:b.default.func,toggleShowMobileBoxShadowHandler:b.default.func,toggleShowMobileSizeHandler:b.default.func,toggleShowMobileBackgroundHandler:b.default.func,toggleShowMobilePaddingHandler:b.default.func};var Hf=({elementSettings:e})=>{let{__:t}=p.v(),n=i.et(),[r]=p.It.useForm(),a=i.lr(),o=i.cr(u.w),[s,c]=(0,v.useState)({}),[l,d]=(0,v.useState)(!0),[f,m]=(0,v.useState)(!0),h=i.cr(i.on),g=i.cr(i.fn),[_,y]=(0,v.useState)(e.backgroundImage?.[0].value===``),b=i.cr(i.cn),x=i.cr(i.an),S=b&&x!==`bottom`,w=(0,v.useRef)(null),T=(0,v.useRef)(null),[E,D]=(0,v.useState)(!1),[O,k]=(0,v.useState)(!1),[A,j]=(0,v.useState)(!1),[M,N]=(0,v.useState)(!1),[P,F]=(0,v.useState)(!1),[I,L]=(0,v.useState)(!1),[R,z]=(0,v.useState)(!1),[B,V]=(0,v.useState)(!1),[H,ee]=(0,v.useState)(!1),[U,W]=(0,v.useState)(!1),[G,K]=(0,v.useState)(!1),[q,J]=(0,v.useState)(!1),[Y,te]=(0,v.useState)(!1),[X,ne]=(0,v.useState)(``),[re,ie]=(0,v.useState)(`https://`),[ae,oe]=(0,v.useState)({}),[Z,se]=(0,v.useState)(!1),ce=o.hasOwnProperty(`type`)?i.wr:i.Br,le=[{label:t(`Not defined`),value:`none`},{label:t(`Do not repeat background (no-repeat)`),value:`no-repeat`},{label:t(`Repeat background (repeat)`),value:`repeat`},{label:t(`Repeat background horizontally (repeat-x)`),value:`repeat-x`},{label:t(`Repeat background vertically (repeat-y)`),value:`repeat-y`}],ue=e.border,de=e.mobileBorder,fe=Object.keys(ue).find(e=>ue[e]?.width||ue[e]?.style||ue[e]?.color),pe=Object.keys(de).find(e=>de[e]?.width||de[e]?.style||de[e]?.color),me=e=>e&&(e?.width||e?.style||e?.color)?e:``;(0,v.useEffect)(()=>{if(e){let t=e.boxShadow||{},n=e.mobilePadding||{},i=e.mobileAlign||{},a=e.mobileBackgroundImage||[];c(t);let o=``,s=``,l=e.href||`https://`;if(e.href){if(e.href.startsWith(`mailto:`)){let t=tl(e.href);o=t.subject,s=t.body,l=t.baseEmail}el(e.href,ie)}r.setFieldsValue({...e,href:l,subject:o,body:s,width:e.width?.value,widthDim:e.width?.dim,height:e.height?.value,heightDim:e.height?.dim,backgroundImage:e.backgroundImage?.[0].value,show:e.show?e.show:`all`,textAlign:e.textAlign,borderAll:$(e.border.all),borderTop:$(e.border.top),borderBottom:$(e.border.bottom),borderRight:$(e.border.right),borderLeft:$(e.border.left),mobileBorderAll:me(e.mobileBorder.all)||!(me(e.mobileBorder.top)||me(e.mobileBorder.bottom)||me(e.mobileBorder.right)||me(e.mobileBorder.left))&&me(e.border.all),mobileBorderTop:me(e.mobileBorder.top)||!me(e.mobileBorder.all)&&me(e.border.top),mobileBorderBottom:me(e.mobileBorder.bottom)||!me(e.mobileBorder.all)&&me(e.border.bottom),mobileBorderRight:me(e.mobileBorder.right)||!me(e.mobileBorder.all)&&me(e.border.right),mobileBorderLeft:me(e.mobileBorder.left)||!me(e.mobileBorder.all)&&me(e.border.left),paddingTop:$(e.padding?.all)||$(e.padding?.top),paddingLeft:$(e.padding?.all)||$(e.padding?.left),paddingRight:$(e.padding?.all)||$(e.padding?.right),paddingBottom:$(e.padding?.all)||$(e.padding?.bottom),paddingLeftRight:$(e.padding?.left)||$(e.padding?.right),paddingTopBottom:$(e.padding?.top)||$(e.padding?.bottom),borderRadiusAll:$(e.borderRadius?.all),borderRadiusTopLeft:$(e.borderRadius?.topLeft),borderRadiusBottomLeft:$(e.borderRadius?.bottomLeft),borderRadiusTopRight:$(e.borderRadius?.topRight),borderRadiusBottomRight:$(e.borderRadius?.bottomRight),boxShadowInset:$(e.boxShadow?.inset)||!1,boxShadowHOffset:$(e.boxShadow?.hOffset),boxShadowVOffset:$(e.boxShadow?.vOffset),boxShadowBlurRadius:$(e.boxShadow?.blurRadius),boxShadowSpreadRadius:$(e.boxShadow?.spreadRadius),boxShadowColor:$(e.boxShadow?.color),mobileWidth:rl(e.mobileWidth?.value)||e.width?.value,mobileWidthDim:rl(e.mobileWidth?.value)?e.mobileWidth?.dim:e.width?.dim,mobileHeight:rl(e.mobileHeight?.value)||e.height?.value,mobileHeightDim:rl(e.mobileHeight?.value)?e.mobileHeight?.dim:e.height?.dim,mobileBorderRadiusAll:$(e.mobileBorderRadius?.all)||$(e.borderRadius?.all),mobileBorderRadiusTopLeft:$(e.mobileBorderRadius?.topLeft)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.topLeft)||$(e.borderRadius?.all),mobileBorderRadiusBottomLeft:$(e.mobileBorderRadius?.bottomLeft)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.bottomLeft)||$(e.borderRadius?.all),mobileBorderRadiusTopRight:$(e.mobileBorderRadius?.topRight)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.topRight)||$(e.borderRadius?.all),mobileBorderRadiusBottomRight:$(e.mobileBorderRadius?.bottomRight)||$(e.mobileBorderRadius?.all)||$(e.borderRadius?.bottomRight)||$(e.borderRadius?.all),mobileBoxShadowInset:e.mobileBoxShadow?.inset==null?e.boxShadow?.inset||!1:e.mobileBoxShadow.inset,mobileBoxShadowHOffset:$(e.mobileBoxShadow?.hOffset)||$(e.boxShadow?.hOffset),mobileBoxShadowVOffset:$(e.mobileBoxShadow?.vOffset)||$(e.boxShadow?.vOffset),mobileBoxShadowBlurRadius:$(e.mobileBoxShadow?.blurRadius)||$(e.boxShadow?.blurRadius),mobileBoxShadowSpreadRadius:$(e.mobileBoxShadow?.spreadRadius)||$(e.boxShadow?.spreadRadius),mobileBoxShadowColor:$(e.mobileBoxShadow?.color)||$(e.boxShadow?.color),mobileAlign:$(i?.value)||e.align,mobileVerticalAlign:$(e.mobileVerticalAlign?.value||e.valign),mobileBackgroundColor:$(e.mobileBackgroundColor?.value||e.backgroundColor||``),mobileBackgroundImage:a[0]?.value===`none`?e.backgroundImage?.[0].value||``:a[0]?.value,mobileBackgroundPositionX:$(e.mobileBackgroundPositionX?.value)||$(e.backgroundPositionX?.value),mobileBackgroundPositionY:$(e.mobileBackgroundPositionY?.value)||$(e.backgroundPositionY?.value),mobileBackgroundRepeat:e.mobileBackgroundRepeat?.value||e.backgroundRepeat||`none`,mobilePaddingTop:$(n.all)||$(n.top)||$(e.padding?.all)||$(e.padding?.top),mobilePaddingLeft:$(n.all)||$(n.left)||$(e.padding?.all)||$(e.padding?.left),mobilePaddingRight:$(n.all)||$(n.right)||$(e.padding?.all)||$(e.padding?.right),mobilePaddingBottom:$(n.all)||$(n.bottom)||$(e.padding?.all)||$(e.padding?.bottom),mobilePaddingTopBottom:$(n.top)||$(n.bottom)||$(e.padding?.top)||$(e.padding?.bottom),mobilePaddingLeftRight:$(n.left)||$(n.right)||$(e.padding?.left)||$(e.padding?.right),mobileTextAlign:$(e.mobileTextAlign?.value||e.textAlign),exportAsPicture:e?.exportAsPicture,mobileFontSize:$(e.mobileFontSize?.value||e.fontSize)}),!$(e.borderRadius?.all)&&($(e.borderRadius?.topLeft)||$(e.borderRadius?.bottomLeft)||$(e.borderRadius?.topRight)||$(e.borderRadius?.bottomRight))?d(!1):d(!0),!$(e.mobileBorderRadius.all)&&($(e.mobileBorderRadius.topLeft)||$(e.mobileBorderRadius.bottomLeft)||$(e.mobileBorderRadius.topRight)||$(e.mobileBorderRadius.bottomRight))||$(e.mobileBorderRadius.all)&&($(e.mobileBorderRadius.topLeft)||$(e.mobileBorderRadius.bottomLeft)||$(e.mobileBorderRadius.topRight)||$(e.mobileBorderRadius.bottomRight))||!$(e.borderRadius.all)&&!$(e.mobileBorderRadius.all)&&($(e.borderRadius.topLeft)||$(e.borderRadius.bottomLeft)||$(e.borderRadius.topRight)||$(e.borderRadius.bottomRight))?m(!1):m(!0),y(e.backgroundImage?.[0].value===``),!$(e.padding?.all)&&($(e.padding?.top)||$(e.padding?.right)||$(e.padding?.bottom)||$(e.padding?.left))&&(e.padding?.top!==e.padding?.bottom||e.padding?.right!==e.padding?.left)?D(!1):D(!0),!$(n.all)&&($(n.top)||$(n.right)||$(n.bottom)||$(n.left))&&(n.top!==n.bottom||n.right!==n.left)||!$(e.padding?.all)&&($(e.padding?.top)||$(e.padding?.right)||$(e.padding?.bottom)||$(e.padding?.left))&&(e.padding?.top!==e.padding?.bottom||e.padding?.right!==e.padding?.left)?k(!1):k(!0),j(e=>fe?!0:e),N(e=>fe||pe?!0:e),F(!!e.borderRadius?.all||!!e.borderRadius?.topLeft||!!e.borderRadius?.bottomLeft||!!e.borderRadius?.topRight||!!e.borderRadius?.bottomRight),L(!!e.mobileBorderRadius?.all||!!e.mobileBorderRadius?.topLeft||!!e.mobileBorderRadius?.bottomLeft||!!e.mobileBorderRadius?.topRight||!!e.mobileBorderRadius?.bottomRight||!!e.borderRadius?.all||!!e.borderRadius?.topLeft||!!e.borderRadius?.bottomLeft||!!e.borderRadius?.topRight||!!e.borderRadius?.bottomRight),z(!!e.boxShadow),V(!!e.mobileBoxShadow?.blurRadius||!!e.mobileBoxShadow?.color||!!e.mobileBoxShadow?.hOffset||!!e.mobileBoxShadow?.inset||!!e.mobileBoxShadow?.spreadRadius||!!e.mobileBoxShadow?.vOffset||!!e.boxShadow),ee(!!e.mobileWidth?.value||!!e.mobileHeight?.value||!!e.width.value||!!e.height.value),W(!!e.backgroundColor||!!e.backgroundImage?.[0].value||!!e.backgroundPositionY||!!e.backgroundPositionX||e.backgroundRepeat!==`repeat`||!e.backgroundRepeat,!!e.backgroundSize),K(!!e.mobileBackgroundColor?.value||!!e.backgroundColor||!!e.backgroundImage?.[0].value||!!e.backgroundPositionY||!!e.backgroundPositionX||e.backgroundRepeat!==`repeat`||!e.backgroundRepeat,!!e.backgroundSize),J(!!e.padding?.all||!!e.padding?.top||!!e.padding?.bottom||!!e.padding?.left||!!e.padding?.right),te(!!e.mobilePadding?.all||!!e.mobilePadding?.top||!!e.mobilePadding?.bottom||!!e.mobilePadding?.left||!!e.mobilePadding?.right||!!e.padding?.all||!!e.padding?.top||!!e.padding?.bottom||!!e.padding?.left||!!e.padding?.right)}},[r,e,S]);let he=(0,v.useCallback)(e=>{a(ce===`email`?u.L(e):u._(e))},[a,ce]),ge=t=>{let a=r.getFieldsValue(!0),o=Object.keys(t)[0],s;switch(ne(r.getFieldsValue(!0).widthDim===`%`?100:``),o){case`exportAsPicture`:s={exportAsPicture:a.exportAsPicture};break;case`boxShadowInset`:case`boxShadowHOffset`:case`boxShadowVOffset`:case`boxShadowBlurRadius`:case`boxShadowSpreadRadius`:case`boxShadowColor`:s={boxShadow:{hOffset:a.boxShadowHOffset,vOffset:a.boxShadowVOffset,blurRadius:a.boxShadowBlurRadius,spreadRadius:a.boxShadowSpreadRadius,color:a.boxShadowColor,inset:a.boxShadowInset}};break;case`borderAll`:case`borderTop`:case`borderBottom`:case`borderLeft`:case`borderRight`:a.borderPosition===`borderAll`?(s={border:{...i.ci,all:{...Q,...a.borderAll}}},r.setFieldsValue({borderLeft:Q,borderRight:Q,borderTop:Q,borderBottom:Q})):a.borderAll?.width||a.borderAll?.style||a.borderAll?.color?(s={border:{all:null,left:a.borderAll,right:a.borderAll,top:a.borderAll,bottom:a.borderAll,[Oc[o]]:{...a[o],...t[o]}}},r.setFieldsValue({borderAll:null,borderLeft:a.borderAll,borderRight:a.borderAll,borderTop:a.borderAll,borderBottom:a.borderAll,[o]:{...a[o],...t[o]}})):(s={border:{all:null,left:a.borderLeft,right:a.borderRight,top:a.borderTop,bottom:a.borderBottom,[Oc[o]]:{...a[o],...t[o]}}},r.setFieldsValue({border:s.border}));break;case`mobileBorderAll`:case`mobileBorderTop`:case`mobileBorderBottom`:case`mobileBorderLeft`:case`mobileBorderRight`:if(a.mobileBorderPosition===`mobileBorderAll`)s={mobileBorder:{...i.ci,all:{...Q,...a.mobileBorderAll,classNamePrefix:`em-mob-border_`+kc[o]+`-`}}},r.setFieldsValue({borderLeft:Q,borderRight:Q,borderTop:Q,borderBottom:Q});else{let n=kc[o],i={...a[o],...t[o]},c=!i?.width&&!i?.style&&!i?.color;if(a.mobileBorder?.all?.width||a.mobileBorder?.all?.style||a.mobileBorder?.all?.color){let e=a.mobileBorderAll;s={mobileBorder:{all:null,left:e,right:e,top:e,bottom:e,[n]:c?null:{...i,classNamePrefix:`em-mob-border_`+n+`-`}}},r.setFieldsValue({mobileBorderAll:null,mobileBorderLeft:e,mobileBorderRight:e,mobileBorderTop:e,mobileBorderBottom:e,[o]:i})}else{let t=e.mobileBorder||{},a=e=>{let n=t[e];return n&&(n?.width||n?.style||n?.color)?n:null};s={mobileBorder:{all:null,left:n===`left`?c?null:{...i,classNamePrefix:`em-mob-border_left-`}:a(`left`),right:n===`right`?c?null:{...i,classNamePrefix:`em-mob-border_right-`}:a(`right`),top:n===`top`?c?null:{...i,classNamePrefix:`em-mob-border_top-`}:a(`top`),bottom:n===`bottom`?c?null:{...i,classNamePrefix:`em-mob-border_bottom-`}:a(`bottom`)}},r.setFieldsValue({[o]:i})}}break;case`width`:s={[o]:{value:t[o],dim:a.widthDim}};break;case`height`:s={[o]:{value:t[o],dim:a.heightDim}};break;case`widthDim`:s={width:{value:a.width,dim:t[o]}};break;case`heightDim`:s={height:{value:a.height,dim:t[o]}};break;case`backgroundImage`:y(t[o]===``),s={[o]:[{...e.backgroundImage[0],value:t[o]}],backgroundSize:`cover`};break;case`paddingTop`:case`paddingLeft`:case`paddingRight`:case`paddingBottom`:s={padding:{left:a.paddingLeft,right:a.paddingRight,top:a.paddingTop,bottom:a.paddingBottom,[Cc[o]]:+t[o]}};break;case`paddingTopBottom`:s={padding:{left:a.paddingLeft,right:a.paddingRight,top:+t[o],bottom:+t[o]}},a.paddingTop=a.paddingBottom=+t[o];break;case`paddingLeftRight`:s={padding:{top:a.paddingTop,bottom:a.paddingBottom,left:+t[o],right:+t[o]}},a.paddingLeft=a.paddingRight=+t[o];break;case`borderRadiusAll`:s={borderRadius:{[wc[o]]:+t[o]}};break;case`borderRadiusTopLeft`:case`borderRadiusBottomLeft`:case`borderRadiusTopRight`:case`borderRadiusBottomRight`:s={borderRadius:{topLeft:a.borderRadiusTopLeft,bottomLeft:a.borderRadiusBottomLeft,topRight:a.borderRadiusTopRight,bottomRight:a.borderRadiusBottomRight,[wc[o]]:+t[o]}};break;case`mobileWidth`:s={[o]:{classNamePrefix:`em-mob-width-`,value:t[o],dim:a.mobileWidthDim}};break;case`mobileWidthDim`:s={mobileWidth:{classNamePrefix:`em-mob-width-`,value:a.mobileWidth||100,dim:t[o]}};break;case`mobileHeight`:s={[o]:{classNamePrefix:`em-mob-height-`,value:t[o],dim:a.mobileHeightDim},mobileLineHeight:{classNamePrefix:`em-mob-line_height-`,value:t[o],dim:a.mobileHeightDim}};break;case`mobileHeightDim`:s={mobileHeight:{classNamePrefix:`em-mob-height-`,value:a.mobileHeight,dim:t[o]}};break;case`mobileBorderRadiusAll`:case`mobileBorderRadiusTopLeft`:case`mobileBorderRadiusBottomLeft`:case`mobileBorderRadiusTopRight`:case`mobileBorderRadiusBottomRight`:s={mobileBorderRadius:{[Tc[o]]:t[o],classNamePrefix:`em-mob-border_radius_`+Tc[o]+`-`}};break;case`mobileBoxShadowInset`:case`mobileBoxShadowHOffset`:case`mobileBoxShadowVOffset`:case`mobileBoxShadowBlurRadius`:case`mobileBoxShadowSpreadRadius`:case`mobileBoxShadowColor`:s={mobileBoxShadow:{hOffset:a.mobileBoxShadowHOffset,vOffset:a.mobileBoxShadowVOffset,blurRadius:a.mobileBoxShadowBlurRadius,spreadRadius:a.mobileBoxShadowSpreadRadius,color:a.mobileBoxShadowColor,inset:a.mobileBoxShadowInset,classNamePrefix:`em-mob-box_shadow-`}};break;case`mobileAlign`:s={[o]:{classNamePrefix:`em-mob-table_align-`,value:t[o]}};break;case`mobileTextAlign`:s={[o]:{classNamePrefix:`em-mob-text_align-`,value:t[o]}};break;case`mobileVerticalAlign`:s={[o]:{classNamePrefix:`em-mob-vertical_align-`,value:t[o]}};break;case`mobileBackgroundColor`:s={[o]:{classNamePrefix:`em-mob-background_color-`,value:t[o]}};break;case`mobileBackgroundPositionX`:s={[o]:{classNamePrefix:`em-mob-background_position_x-`,value:t[o]}};break;case`mobileBackgroundPositionY`:s={[o]:{classNamePrefix:`em-mob-background_position_x-`,value:t[o]}};break;case`mobileBackgroundRepeat`:s={[o]:{classNamePrefix:`em-mob-background_repeat-`,value:t[o]}};break;case`mobilePaddingTop`:case`mobilePaddingLeft`:case`mobilePaddingRight`:case`mobilePaddingBottom`:s={mobilePadding:{all:null,top:a.mobilePaddingTop===``?null:a.mobilePaddingTop,right:a.mobilePaddingRight===``?null:a.mobilePaddingRight,bottom:a.mobilePaddingBottom===``?null:a.mobilePaddingBottom,left:a.mobilePaddingLeft===``?null:a.mobilePaddingLeft,classNamePrefix:`em-mob-padding_`}};break;case`mobilePaddingTopBottom`:a.mobilePaddingTop=a.mobilePaddingBottom=t[o],s={mobilePadding:{all:null,top:a.mobilePaddingTop===``?null:a.mobilePaddingTop,right:a.mobilePaddingRight===``?null:a.mobilePaddingRight,bottom:a.mobilePaddingBottom===``?null:a.mobilePaddingBottom,left:a.mobilePaddingLeft===``?null:a.mobilePaddingLeft,classNamePrefix:`em-mob-padding_`}};break;case`mobilePaddingLeftRight`:a.mobilePaddingLeft=a.mobilePaddingRight=t[o],s={mobilePadding:{all:null,top:a.mobilePaddingTop===``?null:a.mobilePaddingTop,right:a.mobilePaddingRight===``?null:a.mobilePaddingRight,bottom:a.mobilePaddingBottom===``?null:a.mobilePaddingBottom,left:a.mobilePaddingLeft===``?null:a.mobilePaddingLeft,classNamePrefix:`em-mob-padding_`}};break;case`mobileFontSize`:s={[o]:{classNamePrefix:`em-mob-font_size-`,value:t[o],dim:a.mobileFontSizeDim}};break;case`href`:let n=t[o];n.substring(0,12)===`https://http`&&(n=n.substring(8,n.length),a.href=n),s=n.startsWith(`mailto:`)?{[o]:nl(n,a.subject,a.body)}:{[o]:n},el(t[o],ie);break;case`subject`:case`body`:let c=a.href||``;if(c.startsWith(`mailto:`))s={href:nl(c,o===`subject`?t[o]:a.subject,o===`body`?t[o]:a.body)};else return;break;case`backgroundPositionX`:case`backgroundPositionY`:s={[o]:isNaN(parseFloat(t[o].position))?t[o].position:t[o].position+t[o].unit};break;default:s=t}o!==`borderPosition`&&o!==`mobileBorderPosition`&&(n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:s}),o!==`mobileBorderRadiusAll`&&o!==`mobileBorderRadiusTopLeft`&&o!==`mobileBorderRadiusTopRight`&&o!==`mobileBorderRadiusBottomLeft`&&o!==`mobileBorderRadiusBottomRight`&&he({...e,...s,mobileBorderRadius:{...e.mobileBorderRadius,...s?.mobileBorderRadius},activateSection:null,changeKey:o}))},_e=()=>{D(e=>!e);let t=r.getFieldsValue(!0);E||(t.paddingLeftRight=t.paddingLeft,t.paddingTopBottom=t.paddingTop,t.paddingRight=t.paddingLeft,t.paddingBottom=t.paddingTop,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{padding:{top:t.paddingTopBottom,bottom:t.paddingTopBottom,left:t.paddingLeftRight,right:t.paddingLeftRight}}}))},ve=()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{j(e=>!e),A?(t.borderAll=Q,t.borderTop=Q,t.borderBottom=Q,t.borderRight=Q,t.borderLeft=Q):t.borderAll={width:1,color:`#E5E5E5`,style:`solid`},n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{border:{all:{color:t.borderAll.color,style:t.borderAll.style,width:t.borderAll.width}}}})})},ye=()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{N(e=>!e),M?(t.mobileBorderAll=Q,t.mobileBorderTop=Q,t.mobileBorderBottom=Q,t.mobileBorderRight=Q,t.mobileBorderLeft=Q):t.mobileBorderAll={width:1,color:`#E5E5E5`,style:`solid`},n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorder:{all:{color:t.mobileBorderAll.color,style:t.mobileBorderAll.style,width:t.mobileBorderAll.width}}}})})},be=()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{F(e=>!e),P?(t.borderRadiusAll=0,d(!0)):t.borderRadiusAll=5,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{borderRadius:{all:t.borderRadiusAll}}})})},xe=()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{L(e=>!e),I?(t.mobileBorderRadiusAll=null,m(!0)):t.mobileBorderRadiusAll=5,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBorderRadius:{all:t.mobileBorderRadiusAll,classNamePrefix:`em-mob-border_radius_all-`}}})})},Se=()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{z(e=>!e),R?(t.boxShadowInset=!1,t.boxShadowHOffset=null,t.boxShadowVOffset=null,t.boxShadowBlurRadius=null,t.boxShadowSpreadRadius=null,t.boxShadowColor=``):(t.boxShadowInset=!1,t.boxShadowHOffset=5,t.boxShadowVOffset=5,t.boxShadowBlurRadius=10,t.boxShadowSpreadRadius=-5,t.boxShadowColor=`#000000`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{boxShadow:{blurRadius:t.boxShadowBlurRadius,color:t.boxShadowColor,hOffset:t.boxShadowHOffset,inset:t.boxShadowInset,spreadRadius:t.boxShadowSpreadRadius,vOffset:t.boxShadowVOffset}}})})},Ce=()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{V(e=>!e),B?(t.mobileBoxShadowInset=!1,t.mobileBoxShadowHOffset=null,t.mobileBoxShadowVOffset=null,t.mobileBoxShadowBlurRadius=null,t.mobileBoxShadowSpreadRadius=null,t.mobileBoxShadowColor=``):(t.mobileBoxShadowInset=!1,t.mobileBoxShadowHOffset=5,t.mobileBoxShadowVOffset=5,t.mobileBoxShadowBlurRadius=10,t.mobileBoxShadowSpreadRadius=-5,t.mobileBoxShadowColor=`#000000`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBoxShadow:{blurRadius:t.mobileBoxShadowBlurRadius,color:t.mobileBoxShadowColor,hOffset:t.mobileBoxShadowHOffset,inset:t.mobileBoxShadowInset,spreadRadius:t.mobileBoxShadowSpreadRadius,vOffset:t.mobileBoxShadowVOffset,classNamePrefix:`em-mob-box_shadow-`}}})})},we=()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{ee(e=>!e),H&&(t.mobileWidth=``,t.mobileHeight=``,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileWidth:{value:null,dim:`px`,classNamePrefix:`em-mob-width-`},mobileHeight:{value:null,dim:`px`,classNamePrefix:`em-mob-height-`}}}))})},Te=()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{W(e=>!e),U?(t.backgroundColor=``,t.backgroundImage=``,t.backgroundPositionX=``,t.backgroundPositionY=``,t.backgroundRepeat=`none`,t.backgroundSize=``,y(!0)):(t.backgroundColor=`#E5E5E5`,t.backgroundSize=``,t.backgroundRepeat=`none`),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{backgroundColor:t.backgroundColor,backgroundImage:[{type:`url`,value:t.backgroundImage}],backgroundPositionX:t.backgroundPositionX,backgroundPositionY:t.backgroundPositionY,backgroundRepeat:t.backgroundRepeat,backgroundSize:t.backgroundSize}})})},Ee=()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{K(e=>!e),G?t.mobileBackgroundColor=``:t.mobileBackgroundColor=e.commonStyles.buttons.backgroundColor||`#1C52DC`,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobileBackgroundColor:{classNamePrefix:`em-mob-background_color-`,value:t.mobileBackgroundColor}}})})},De=()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{J(e=>!e),q&&(t.paddingLeftRight=``,t.paddingLeft=``,t.paddingRight=``,t.paddingTopBottom=``,t.paddingTop=``,t.paddingBottom=``,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{padding:{all:0}}}))})},Oe=()=>{let t=r.getFieldsValue(!0);setTimeout(()=>{te(e=>!e),Y&&(t.mobilePaddingLeftRight=``,t.mobilePaddingLeft=``,t.mobilePaddingRight=``,t.mobilePaddingTopBottom=``,t.mobilePaddingTop=``,t.mobilePaddingBottom=``,n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{mobilePadding:{all:null,top:null,right:null,bottom:null,left:null,classNamePrefix:`em-mob-padding_`}}}))})},ke=e=>{r.setFieldValue(`href`,e===`mergetag`?``:e),ie(e)};return(0,v.useEffect)(()=>{se(!!e.textReplacer?.length)},[e]),(0,C.jsxs)(p.It,{form:r,layout:`vertical`,name:`selected_button_form`,initialValues:{backgroundColor:``,backgroundImage:``,backgroundPositionX:``,backgroundPositionY:``,backgroundRepeat:``,backgroundSize:``,exportAsPicture:!1,width:``,height:``,widthDim:``,heightDim:``,align:``,valign:``,border:``,boxShadow:``,show:`all`,borderPosition:Ec[fe]||`borderAll`,mobileBorderPosition:Dc[pe]||`mobileBorderAll`,borderColor:``,borderWidth:``,borderStyle:``,paddingTop:``,paddingLeft:``,paddingRight:``,paddingBottom:``,borderRadiusAll:``,RadiusTopLeft:``,RadiusBottomLeft:``,RadiusTopRight:``,RadiusBottomRight:``,mobileWidth:``,mobileWidthDim:``,mobileHeight:``,mobileHeightDim:``,mobileBorder:``,mobileBorderColor:``,mobileBorderWidth:``,mobileBorderStyle:``,mobileBoxShadow:``,mobileAlign:``,mobileVerticalAlign:``,mobileBackgroundColor:``,mobileBackgroundImage:``,mobilePaddingTop:``,mobilePaddingLeft:``,mobilePaddingRight:``,mobilePaddingBottom:``,borderRadiusTopLeft:``,borderRadiusBottomLeft:``,borderRadiusTopRight:``,borderRadiusBottomRight:``,href:`https://`,subject:``,body:``},onValuesChange:ge,autoComplete:`off`,className:`element-controls`,children:[!S&&(0,C.jsx)(p.K,{title:t(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:t(`Appearance on mobile devices`),type:`info`})}),S?(0,C.jsx)(cf,{form:r,elementSettings:e,showAddParagraph:!1,isButton:!0}):(0,C.jsx)(C.Fragment,{children:h===`mobile`&&g.styles?(0,C.jsx)(`div`,{id:`selected_element_form_mobile_props`,className:`selected_form-mobile-props`,children:(0,C.jsx)(Vf,{form:r,elementSettings:e,boxShadow:s,mobileBordersShow:M,mobileBorderRadiusShow:I,mobileBoxShadowShow:B,mobileSizeShow:H,mobileBackgroundShow:G,mobilePaddingShow:Y,mobilePaddingsExt:O,setMobilePaddingsExt:k,oneMobileBorderRadiusValue:f,setOneMobileBorderRadiusValue:m,linkProtocol:re,handleLinkProtocolsChange:ke,setLinkProtocol:ie,toggleShowMobileBorderHandler:ye,toggleShowMobileBorderRadiusHandler:xe,toggleShowMobileBoxShadowHandler:Ce,toggleShowMobileSizeHandler:we,toggleShowMobileBackgroundHandler:Ee,toggleShowMobilePaddingHandler:Oe})}):(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,children:(0,C.jsx)(Bf,{form:r,elementSettings:e,boxShadow:s,bordersShow:A,borderRadiusShow:P,boxShadowShow:R,backgroundShow:U,backgroundImageEmpty:_,backgroundRepeatOptions:le,paddingShow:q,paddingsExt:E,maxWidthValue:X,oneBorderRadiusValue:l,setOneBorderRadiusValue:d,linkProtocol:re,linkTarget:ae,isOpenTextReplacer:Z,textReplacerButtonRef:T,textReplacerInputRef:w,handleLinkProtocolsChange:ke,handleSelect:({target:e})=>{let{selectionStart:t,selectionEnd:n}=e;e&&oe({target:e,selection:{start:t,end:n}})},textReplacerInputHandler:e=>{e.target.value!==``&&T.current.classList.add(`selected-td-form__button--active`)},handleTextReplacerKeyDown:e=>{let t=e.target,n=t.value,r=t.selectionStart;if(r===0&&e.key===` `){e.preventDefault();return}if(e.key===` `){if(r!==n.length){e.preventDefault();return}n.endsWith(` `)&&e.preventDefault()}},srcButtonHandler:()=>{se(!Z),Z?(r.setFieldValue(`textReplacer`,``),n({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{textReplacer:``}})):setTimeout(()=>w.current.focus())},togglePaddingHandler:_e,toggleShowPaddingHandler:De,toggleShowBackgroundHandler:Te,toggleShowBorderHandler:ve,toggleShowBorderRadiusHandler:be,toggleShowBoxShadowHandler:Se,setLinkProtocol:ie,handleChangeValues:ge})})})]})};Hf.propTypes={elementSettings:b.default.object.isRequired};var Uf=({elementSettings:e})=>{let{__:t}=p.v(),[n]=p.It.useForm(),r=i.et();return(0,v.useEffect)(()=>{e&&n.setFieldsValue({...e})},[n,e]),(0,C.jsx)(p.It,{form:n,layout:`vertical`,name:`selected_variable_form`,initialValues:{value:``},onValuesChange:t=>{r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:t})},autoComplete:`off`,children:(0,C.jsx)(p.It.Item,{label:t(`Variable value`),name:`value`,tooltip:{title:t(`Type the output parameters of your platform. E.g., `)+"${Recipient.FirstName}",icon:(0,C.jsx)(m.d,{icon:`InfoCircleOutlined`})},style:{marginBottom:35},children:(0,C.jsx)(p.Ct,{rows:4,placeholder:t(`Variable value`)})})})};Uf.propTypes={elementSettings:b.default.object.isRequired};var Wf=({elementSettings:e,setElementSettings:t,postfix:n=``,form:r,handleSelect:a,previewReloadSignal:o})=>{let{__:s}=p.v(),{token:c}=p.Vt(),l=i.Wt(),u=i.et(),d=`src`+n,f=`title`+n,h=`alt`+n,g=`link`+n,_=`imgReplacer`+n,y=(0,v.useRef)(null),b=(0,v.useRef)(null),x=(0,v.useRef)(null),S=(0,v.useRef)(null),w=(0,v.useRef)(null),T=(0,v.useRef)(null),D=(0,v.useRef)(null),O=(0,v.useRef)(null),[k,A]=(0,v.useState)(``),[j,M]=(0,v.useState)(``),[N,P]=(0,v.useState)(``),[F,I]=(0,v.useState)(!1),[L,R]=(0,v.useState)(`https://`),z=(0,v.useRef)(!1),B=(0,v.useRef)(n);return(0,v.useEffect)(()=>{n!==B.current&&(B.current=n,z.current=!1),M(e.images?.[h]),P(e.images?.[f]);let t=e.images?.[g];A(t||(z.current?`...`:``))},[e,h,f,g,n]),(0,C.jsxs)(C.Fragment,{children:[(e.type===`img`||e.type===`video`||e.type===`carousel`)&&(0,C.jsx)(p.It.Item,{style:{marginBottom:0},children:(0,C.jsx)(Zs,{form:r,label:s(`Image path`),name:d,placeholder:s(`Image path`),elementSettings:e,previewReloadSignal:o,tooltipTitle:``})}),(0,C.jsxs)(`div`,{style:{display:`flex`,justifyContent:`space-between`,alignItems:`flex-start`},children:[(0,C.jsxs)(p.xt,{size:8,children:[(0,C.jsx)(p.K,{title:j||s(`Alternative text`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":!!j}),onClick:()=>{j?(M(``),r.setFieldValue(`alt`,``),u({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{[h]:``}})):(M(x.current&&x.current.input.value?x.current.input.value:`...`),setTimeout(()=>{x.current.focus()}))},ref:S,children:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Alt`})})}),l.formFieldImageTitleEnabled&&(0,C.jsx)(p.K,{title:N||s(`Tooltip text`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":!!N}),onClick:()=>{N?(P(!1),r.setFieldValue(`title`,``),u({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{[f]:``}})):(P(w.current&&w.current.input.value?w.current.input.value:`...`),setTimeout(()=>{w.current.focus()}))},ref:T,children:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Title`})})}),(0,C.jsx)(p.K,{title:k||s(`Hyperlink URL`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":!!k}),icon:(0,C.jsx)(m.d,{icon:`LinkOutlined`,className:`selected-td-form__icon-radius`}),onClick:()=>{k?(z.current=!1,A(``),r.setFieldValue(g,``),u({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{[g]:``}})):(z.current=!0,A(y.current&&y.current.input.value?y.current.input.value:`...`),setTimeout(()=>{y.current.focus()}))},ref:b})}),(0,C.jsx)(p.K,{title:s(`Image replacer`),placement:`bottom`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),children:(0,C.jsx)(p.Rt,{className:(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":F}),icon:(0,C.jsx)(m.d,{icon:`Replacer`,className:`selected-td-form__icon-radius`}),onClick:()=>{I(!F),F?(r.setFieldValue(_,``),u({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:{[_]:``}})):setTimeout(()=>D.current.focus())},ref:O})})]}),(0,C.jsx)(p.xt,{size:8,children:(0,C.jsx)(p.K,{title:s(`Remove slide`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`text`,onClick:a=>{let o=r.getFieldsValue(!0),s=+n.substring(1),c=Object.keys(o?.images).reduce((e,t)=>(t.includes(n)||(e[t]=o[t]),e),{}),l=e.carouselImages?.filter((e,t)=>t!==s);t(e=>({...e,settings:{...e.settings,carouselImages:l}})),u({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:i.zr.CAROUSEL,caption:e.caption,settings:{...e,carouselImages:l}}),r.setFieldsValue({images:c})},icon:(0,C.jsx)(m.d,{icon:`DeleteOutlined`,size:16})})})})]}),(!!k||!!j||!!N||!!F)&&(0,C.jsxs)(`div`,{children:[!!k&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Zc,{show:L===`#`,__:s,style:{marginBottom:c.formItemMarginBottomXS}}),(0,C.jsx)(p.K,{trigger:[`hover`],title:s(`Hyperlink URL`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:g,className:`selected-image-form__alt`,style:{marginTop:c.formItemMarginBottomXS,marginBottom:0},children:(0,C.jsx)(p.jt,{addonBefore:(0,C.jsx)(Xc,{linkProtocol:L,handleLinkProtocolsChange:e=>{r.setFieldValue(`LinkName`,e===`mergetag`?``:e),R(e)},__:s}),placeholder:s(`Hyperlink URL`),allowClear:!0,ref:y,onChange:e=>{e.target.value===``?A(`...`):(b.current.classList.add(`selected-td-form__button--active`),A(e.target.value));let t=e.target.value;el(t,R)},onSelect:a,prefix:(0,C.jsx)(Jc,{linkProtocol:L})})})})]}),!!j&&(0,C.jsx)(p.K,{trigger:[`hover`],title:s(`Alternative text`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:h,className:`selected-image-form__alt`,style:{marginTop:c.formItemMarginBottomXS,marginBottom:0},children:(0,C.jsx)(p.jt,{placeholder:s(`Alternative text`),allowClear:!0,prefix:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Alt`}),onChange:e=>{e.target.value===``?M(`...`):(S.current.classList.add(`selected-td-form__button--active`),M(e.target.value))},ref:x,onSelect:a})})}),l.formFieldImageTitleEnabled&&!!N&&(0,C.jsx)(p.K,{trigger:[`hover`],title:s(`Tooltip text`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:f,className:`selected-image-form__alt`,style:{marginTop:c.formItemMarginBottomXS,marginBottom:0},children:(0,C.jsx)(p.jt,{placeholder:s(`Enter the title of the image`),allowClear:!0,prefix:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Title`}),onChange:e=>{e.target.value===``?P(`...`):(T.current.classList.add(`selected-td-form__button--active`),P(e.target.value))},ref:w,onSelect:a})})}),!!F&&(0,C.jsx)(p.K,{trigger:[`hover`],title:s(`Image src`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:_,className:`selected-image-form__alt`,style:{marginTop:c.formItemMarginBottomXS,marginBottom:0},children:(0,C.jsx)(p.jt,{placeholder:s("Code that will replace the image `src`"),allowClear:!0,prefix:(0,C.jsx)(`span`,{className:`addon-text-content`,children:s(`Image src`)}),onChange:e=>{e.target.value!==``&&O.current.classList.add(`selected-td-form__button--active`)},ref:D,onSelect:a})})})]})]})};Wf.propTypes={};var Gf=({form:e,elementSettings:t,formFields:n,setElementSettings:r,borderRadiusShow:a,oneBorderRadiusValue:o,setOneBorderRadiusValue:s,linkProtocol:c,mergeTagItems:l,mergeMenuOpen:u,setMergeMenuOpen:d,cascaderRef:f,handleLinkProtocolsChange:h,handleSelect:g,onChange:_,filter:v,renderSearchOption:y,toggleShowBorderRadiusHandler:b,setNewSlide:x})=>{let{__:S}=p.v(),{token:w}=p.Vt(),T=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(Zc,{show:c===`#`,__:S,style:{marginBottom:w.formItemMarginBottomXS}}),(0,C.jsx)(p.K,{trigger:[`hover`],title:S(`Link for all slides`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`link`,children:(0,C.jsx)(p.jt,{addonBefore:(0,C.jsx)(Xc,{linkProtocol:c,handleLinkProtocolsChange:h,__:S}),placeholder:S(`Link for all slides`),allowClear:!0,onSelect:g,prefix:(0,C.jsx)(Jc,{linkProtocol:c})})})}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`}),T.mergeTagsShow&&l&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.kt,{span:24,id:`merge_tags_wrapper`,children:(0,C.jsxs)(p.It.Item,{style:{marginBottom:w.formItemMarginBottomMD,marginTop:w.formItemMarginBottomMD},children:[(0,C.jsx)(p.Rt,{id:`merge_tags_button`,icon:(0,C.jsx)(m.d,{icon:`MergeTags`}),style:{width:`100%`,display:u?`none`:`inline-flex`},onClick:()=>d(!0),children:S(`Merge tags`)}),(0,C.jsx)(p.Ft,{ref:f,popupClassName:`merge-tags`,options:l,placeholder:S(`Start typing the title`),showSearch:{filter:v,render:y},spellCheck:`false`,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`),onChange:_,style:{display:u?`block`:`none`},open:u,onKeyDown:e=>{e.key===`Escape`&&d(!1)}})]})}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`})]}),(0,C.jsx)(p.It.List,{name:`images`,initialValue:n?.images,children:()=>(0,C.jsx)(`div`,{style:{paddingTop:w.formItemMarginBottomMD+4},children:t?.settings?.carouselImages?.map((t,i)=>(0,C.jsx)(`div`,{className:`carousel__slide`,children:(0,C.jsx)(Wf,{elementSettings:n,setElementSettings:r,postfix:`_`+i,form:e,handleSelect:g})},i))})}),(0,C.jsx)(p.kt,{span:24,children:(0,C.jsx)(p.It.Item,{style:{marginBottom:w.formItemMarginBottomMD},children:(0,C.jsx)(p.Rt,{id:`add_slide_button`,icon:(0,C.jsx)(m.d,{icon:`AddSlide`}),style:{width:`100%`},onClick:()=>x(),children:S(`Add slide`)})})}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`}),(0,C.jsxs)(p.At,{gutter:20,style:{marginTop:w.formItemMarginBottomMD-10},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`loop`,valuePropName:`checked`,style:{marginBottom:w.formItemMarginBottomMD-6},children:(0,C.jsx)(p.bt,{id:`Loop`,label:S(`Loop`),size:`small`,labelStyle:{position:`relative`,top:2}})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`autoplay`,valuePropName:`checked`,style:{marginBottom:w.formItemMarginBottomMD-6},children:(0,C.jsx)(p.bt,{id:`Autoplay`,label:S(`Autoplay`),size:`small`,labelStyle:{position:`relative`,top:2}})})})]}),T.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:S(`Border radius`),collapsible:!0,open:a,onToggle:b,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,oneBorderRadiusValue:o,setOneBorderRadiusValue:s,elementSettings:t.settings})})]})};Gf.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,formFields:b.default.object,setElementSettings:b.default.func,borderRadiusShow:b.default.bool,oneBorderRadiusValue:b.default.bool,setOneBorderRadiusValue:b.default.func,linkProtocol:b.default.string,mergeTagItems:b.default.array,mergeMenuOpen:b.default.bool,setMergeMenuOpen:b.default.func,cascaderRef:b.default.object,handleLinkProtocolsChange:b.default.func,handleSelect:b.default.func,onChange:b.default.func,filter:b.default.func,renderSearchOption:b.default.func,toggleShowBorderRadiusHandler:b.default.func,setNewSlide:b.default.func};var Kf=()=>{let{__:e}=p.v();return(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(`p`,{children:e(`No properties to edit.`)})})};Kf.propTypes={};var qf={loop:!1,autoplay:!1,borderRadiusAll:0,borderRadiusTopLeft:0,borderRadiusBottomLeft:0,borderRadiusTopRight:0,borderRadiusBottomRight:0,link:`https://`,images:{},src_0:``,renderedHeight_0:0,renderedWidth_0:0,imgReplacer_0:``,title_0:``,alt_0:``},Jf=({elementSettings:e})=>{let{__:t}=p.v(),[n]=p.It.useForm(),r=i.lr();i.Wt();let a=i.tt(),s=i.et(),{openImagePicker:c}=m.r(),l=i.cr(i.on),u=i.cr(i.fn),[d,f]=(0,v.useState)(!0),[h,g]=(0,v.useState)(!0),[y,b]=(0,v.useState)(!1),[x,S]=(0,v.useState)(!1),[w,T]=(0,v.useState)(`https://`),[E,D]=(0,v.useState)(n?.getFieldsValue(!0)),[O,k]=(0,v.useState)(e),[A,j]=(0,v.useState)({name:``,counter:0}),[M,N]=(0,v.useState)(null),[P,F]=(0,v.useState)(),[I,L]=(0,v.useState)(!1),[R,z]=(0,v.useState)(!1),[B,V]=(0,v.useState)({start:0,end:0}),H=(0,v.useRef)(null),ee=`selected_${O.type}_form_link`,U=i.cr(i.cn),W=i.cr(i.an),G=U&&W!==`bottom`;(0,v.useEffect)(()=>{I&&H.current&&H.current.focus()},[I]),(0,v.useEffect)(()=>{k(e)},[e]);let K=(e,t)=>{let r=document.getElementById(t);if(r){let a=`selected_${O.type}_form_${t.includes(`__images_`)?`_images`:``}_`,o=t.substring(t.indexOf(a)+a.length),c=r.value?.substring(0,B.start),l=r.value?.substring(B.end),u={[o]:c+e+l};o.includes(`_`)?(u={carouselImages:[...O.settings?.carouselImages||[]]},u.carouselImages[o.split(`_`)[1]][o.split(`_`)[0]]=c+e+l):O.type===i.zr.CAROUSEL&&ee===t&&(u={[o]:c+e+l,carouselImages:[...O.settings?.carouselImages.map(t=>({...t,link:c+e+l}))||[]]}),s({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:i.zr.CAROUSEL,settings:{...O.settings,...u}}),k(e=>({...e,settings:{...e.settings,...u}})),n.setFieldValue(o,c+e+l),r.focus(),setTimeout(()=>{r.selectionStart=B.start,r.selectionEnd=B.start+e.length},400),z(!0)}},q=i.cr(i.jt);(0,v.useEffect)(()=>{q?.items?.length&&F(i.Ut(q.items,t,(e,t)=>{L(!1),a(i.Wr.SANDBOX_ADD_MERGETAG,e),t.stopPropagation(),t.preventDefault()}))},[q,F,t,L,a]);let J=(e,t)=>{if(L(!1),e){let r=q.syntax.length>1?P.findIndex(e=>e.key===t[0].key):0,a=q.syntax[r].replace(`%value%`,e[e.length-1]),o=`selected_${O.type}_form${O.type===`carousel`?`_images`:``}`;[`imgReplacer`,`title`,`alt`,`src`,`link`].some(e=>M?.getAttribute(`id`).includes(`${o}_${e}`))||M?.getAttribute(`id`).includes(ee)?K(a,M?.getAttribute(`id`)):(n.setFieldValue(`imgReplacer`,a),s({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:i.zr.CAROUSEL,settings:{...O.settings,imgReplacer:a}}),k(e=>({...e,settings:{...e.settings,imgReplacer:a}})))}},Y=i.Z();(0,v.useEffect)(()=>{let e=({target:e})=>{e.closest(`[id="merge_tags_wrapper"]`)||N(e)},t=({target:e})=>{!e.closest(`.merge-tags`)&&!e.closest(`#merge_tags_button`)&&L(!1)},n=new i.Da;return n.addDisposable($d(Y,`focusin`,e)),n.addDisposable($d(Y,`click`,t)),()=>{n.dispose()}},[Y]);let te=(e,t)=>t.some(t=>t.label.toLowerCase().indexOf(e.toLowerCase())>-1),X=(e,t)=>{let n=t.map((t,n)=>{let r=t.label.split(RegExp(`(${e})`,`gi`));return(0,C.jsxs)(`span`,{children:[n!==0&&(0,C.jsx)(`span`,{children:`\xA0/\xA0`}),r.map((t,n)=>t.toLowerCase()===e.toLowerCase()?(0,C.jsx)(`span`,{style:{color:`red`},children:t},n):t)]},t.value)});return(0,C.jsx)(`div`,{title:t.map(e=>e.label).join(` / `),children:n})};(0,v.useEffect)(()=>{let e=n?.getFieldsValue(!0);D(e)},[n]);let ne=({target:e})=>{if(e&&!R){let{selectionStart:t,selectionEnd:n}=e;V({start:t,end:n})}z(!1)};(0,v.useEffect)(()=>{if(O.settings){let e=O.settings,t=il(e);n?.setFieldsValue(t),D(t),e.link&&T($c(e.link,`https://`)),$(e.borderRadius?.all)||($(e.borderRadius?.topLeft)||$(e.borderRadius?.bottomLeft)||$(e.borderRadius?.topRight)||$(e.borderRadius?.bottomRight)?f(!1):$(e.borderRadius?.all)||f(!0)),$(e.mobileBorderRadius?.topLeft)||$(e.mobileBorderRadius?.bottomLeft)||$(e.mobileBorderRadius?.topRight)||$(e.mobileBorderRadius?.bottomRight)?g(!1):g(!0),b(!!e.borderRadius?.all||!!e.borderRadius?.topLeft||!!e.borderRadius?.bottomLeft||!!e.borderRadius?.topRight||!!e.borderRadius?.bottomRight),S(!!e.mobileBorderRadius?.all||!!e.mobileBorderRadius?.topLeft||!!e.mobileBorderRadius?.bottomLeft||!!e.mobileBorderRadius?.topRight||!!e.mobileBorderRadius?.bottomRight)}},[n,O]);let re=e=>{let t=al(O.settings,n,e);s({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:i.zr.CAROUSEL,caption:t.caption,settings:t}),k(e=>({...e,settings:{...e.settings,...t}}))},ie=(e,t)=>{let n=Fs(O.settings?.src||``)===Fs(e||``);(!n||e!==O.settings?.src)&&re({src:e}),t?.mode===`save`&&n&&(j(e=>({name:`src`,counter:e.counter+1})),s({operation:i.Wr.SANDBOX_CURRENT_IMAGE_RELOAD,src:e,forceReload:!0}))},ae=async e=>{let t=await c({kind:`img`,currentUrl:Fs(O.settings?.src||``),entryModal:e});t?.url&&ie(t.url,t.meta)};return _.g(e=>{let t=e.data.operation;t===i.Wr.APPLICATION_OPEN_IMAGE_AI_POPUP?ae(i.$r.UPLOAD_IMAGE_MODAL_AI):t===i.Wr.APPLICATION_OPEN_IMAGE_UPLOAD_POPUP?ae(i.$r.UPLOAD_IMAGE_MODAL_UPLOAD):t===i.Wr.APPLICATION_OPEN_IMAGE_EDIT_POPUP?ae(i.$r.UPLOAD_IMAGE_MODAL_EDIT):t===i.Wr.APPLICATION_OPEN_IMAGE_GIF_POPUP?ae(i.$r.UPLOAD_IMAGE_MODAL_GIF):t===i.Wr.APPLICATION_OPEN_IMAGE_STOCK_POPUP?ae(i.$r.UPLOAD_IMAGE_MODAL_STOCK):t===i.Wr.APPLICATION_CLOSE_IMAGE_EDIT_POPUP&&(r(o.n()),r(o.t()))}),(0,C.jsxs)(p.It,{form:n,layout:`vertical`,name:`selected_carousel_form`,initialValues:qf,onValuesChange:re,autoComplete:`off`,className:`element-controls`,children:[!G&&(0,C.jsx)(p.K,{title:t(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:t(`Appearance on mobile devices`),type:`info`})}),l===`mobile`&&u.styles?(0,C.jsx)(`div`,{id:`selected_element_form_mobile_props`,className:`selected_form-mobile-props`,children:(0,C.jsx)(Kf,{})}):(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,children:(0,C.jsx)(Gf,{form:n,elementSettings:O,formFields:E,setElementSettings:k,borderRadiusShow:y,oneBorderRadiusValue:d,setOneBorderRadiusValue:f,linkProtocol:w,mergeTagItems:P,mergeMenuOpen:I,setMergeMenuOpen:L,cascaderRef:H,handleLinkProtocolsChange:e=>{n.setFieldValue(`link`,e===`mergetag`?``:e),T(e)},handleSelect:ne,onChange:J,filter:te,renderSearchOption:X,toggleShowBorderRadiusHandler:()=>{setTimeout(()=>{b(e=>!e),n.setFieldValue(`borderRadiusAll`,y?0:5),s({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:i.zr.CAROUSEL,settings:{...O.settings,borderRadius:{all:y?``:5}}}),k(e=>({...e,settings:{...e.settings,borderRadius:{all:y?null:5}}}))})},setNewSlide:()=>{let{width:e,height:t,renderedWidth:n,renderedHeight:r}=O?.settings?.carouselImages[0]||{width:{value:600},height:{value:600},renderedWidth:600,renderedHeight:600},a={src:`https://emcdn.ru/1865/231031_17_BGU9Mso.png`,width:{value:e.value,dim:`px`},height:{value:t.value,dim:`px`},alt:``,title:``,link:null,renderedWidth:n,renderedHeight:r,imgReplacer:``,mobileWidth:{value:null,dim:`px`},mobileHeight:{value:null,dim:`px`},mobileBorderRadius:{all:null,topLeft:null,topRight:null,bottomRight:null,bottomLeft:null}},o=[...O?.settings?.carouselImages,a];s({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:i.zr.CAROUSEL,settings:{...O.settings,carouselImages:o}}),k(e=>({...e,settings:{...e.settings,carouselImages:o}}))}})})]})};Jf.propTypes={};var Yf={animate:!0,expandSingleSection:!0,sections:[{expanded:!1,index:0}]},Xf=({elementSettings:e})=>{let{__:t}=p.v(),{token:n}=p.Vt(),[r]=p.It.useForm(),a=i.et(),o=i.Wt(),[s,c]=(0,v.useState)(e);(0,v.useEffect)(()=>{c(e)},[e]),(0,v.useEffect)(()=>{if(s.settings){let e=s.settings,t=il(e);r?.setFieldsValue(t)}},[r,s]);let l=e=>{let t=al(s.settings,r,e);a({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:s.type,caption:t.caption,settings:t}),c(e=>({...e,settings:{...e.settings,...t}}))},u=()=>{c(e=>({...e,sections:s?.settings?.sections.push({expanded:!1})})),a({operation:i.Wr.SANDBOX_ACCORDION_ADD_SECTION,settings:{section:t(`Section title`),text:t(`Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.`)}})},d=e=>{c(t=>({...t,settings:{...t.settings,sections:s.settings.sections?.filter((t,n)=>n!==e)}})),a({operation:i.Wr.SANDBOX_ACCORDION_REMOVE_SECTION,settings:{index:e}})};return(0,C.jsx)(p.It,{form:r,layout:`vertical`,name:`selected_carousel_form`,initialValues:Yf,onValuesChange:l,autoComplete:`off`,className:`element-controls`,children:(0,C.jsxs)(`div`,{id:`selected_element_form_desktop_props`,children:[(0,C.jsxs)(p.At,{gutter:20,children:[(0,C.jsx)(p.kt,{span:15,children:(0,C.jsx)(p.It.Item,{name:`expandSingleSection`,valuePropName:`checked`,children:(0,C.jsx)(p.bt,{id:`ExpandSingleSection`,label:t(`Expand only one section`),size:`small`,labelStyle:{position:`relative`,top:2}})})}),(0,C.jsx)(p.kt,{span:9,children:(0,C.jsx)(p.It.Item,{name:`animate`,valuePropName:`checked`,children:(0,C.jsx)(p.bt,{id:`Animate`,label:t(`Animate`),size:`small`,labelStyle:{position:`relative`,top:2}})})})]}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`}),(0,C.jsx)(p.It.List,{name:`sections`,children:()=>(0,C.jsx)(`div`,{style:{paddingTop:n.formItemMarginBottomMD+4},children:s?.settings?.sections?.map((e,n)=>(0,C.jsxs)(p.At,{gutter:24,children:[(0,C.jsx)(p.kt,{span:20,children:(0,C.jsxs)(p.xt,{size:10,align:`baseline`,children:[(0,C.jsx)(`span`,{style:{position:`relative`,top:2},children:t(`Section `)+(n+1)}),(0,C.jsx)(p.It.Item,{name:`expanded_${n}`,valuePropName:`checked`,children:(0,C.jsx)(p.bt,{id:`expanded_${n}`,label:t(`expanded`),labelSize:`small`,size:`small`})})]})}),(0,C.jsx)(p.kt,{children:s?.settings?.sections?.length>1&&(0,C.jsx)(p.Rt,{type:`text`,icon:(0,C.jsx)(m.d,{icon:`DeleteOutlined`,size:16}),style:{marginRight:`auto`},onClick:()=>d(n)})})]},`expanded_${n}`))})}),(0,C.jsx)(p.At,{gutter:20,children:(0,C.jsx)(p.kt,{span:24,children:(0,C.jsx)(p.It.Item,{style:{marginBottom:n.formItemMarginBottomMD},children:(0,C.jsx)(p.Rt,{style:{display:`inline-flex`,alignItems:`center`,width:`100%`},icon:(0,C.jsx)(m.d,{icon:`PlusCircleOutlined`,size:16,strokeWidth:o.iconStrokeWidth}),onClick:()=>u(),children:t(` Add section`)})})})}),(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`})]})})};Xf.propTypes={};var Zf=[`vk`,`telegram`,`youtube`,`tiktok`,`ok`,`pinterest`,`max`,`rutube`,`yandex_zen`,`vkv`,`drbl`,`fig`,`gh`,`ggl`,`rdt`,`sptf`,`twitch`],Qf=[`telegram`,`whatsapp`,`instagram`,`facebook`,`youtube`,`tiktok`,`x`,`linkedin`,`pinterest`,`viber`,`apple`,`dis`,`drbl`,`fig`,`ggl`,`mdm`,`rdt`,`sgnl`,`sc`,`sptf`,`tmblr`,`twitch`,`thrds`,`msngr`,`bs`],$f=[{id:`vk`,labelMsgid:`VK`,brands:[`em`]},{id:`telegram`,labelMsgid:`Telegram`,brands:[`em`,`blocks`]},{id:`youtube`,labelMsgid:`YouTube`,brands:[`em`,`blocks`]},{id:`tiktok`,labelMsgid:`TikTok`,brands:[`em`,`blocks`]},{id:`ok`,labelMsgid:`Одноклассники`,brands:[`em`]},{id:`pinterest`,labelMsgid:`Pinterest`,brands:[`em`,`blocks`]},{id:`max`,labelMsgid:`Макс`,brands:[`em`]},{id:`rutube`,labelMsgid:`RuTube`,brands:[`em`]},{id:`yandex_zen`,labelMsgid:`Яндекс Дзен`,brands:[`em`]},{id:`whatsapp`,labelMsgid:`WhatsApp`,brands:[`blocks`]},{id:`instagram`,labelMsgid:`Instagram`,brands:[`blocks`]},{id:`facebook`,labelMsgid:`Facebook`,brands:[`blocks`]},{id:`x`,labelMsgid:`X (Twitter)`,brands:[`blocks`]},{id:`linkedin`,labelMsgid:`LinkedIn`,brands:[`blocks`]},{id:`viber`,labelMsgid:`Viber`,brands:[`blocks`]},{id:`apple`,labelMsgid:`Apple`,brands:[`blocks`]},{id:`dis`,labelMsgid:`Discord`,brands:[`blocks`]},{id:`drbl`,labelMsgid:`Dribbble`,brands:[`blocks`,`em`]},{id:`fig`,labelMsgid:`Figma`,brands:[`blocks`,`em`]},{id:`gh`,labelMsgid:`GitHub`,brands:[`blocks`,`em`]},{id:`ggl`,labelMsgid:`Google`,brands:[`blocks`,`em`]},{id:`mdm`,labelMsgid:`Medium`,brands:[`blocks`]},{id:`rdt`,labelMsgid:`Reddit`,brands:[`blocks`,`em`]},{id:`sgnl`,labelMsgid:`Signal`,brands:[`blocks`]},{id:`sc`,labelMsgid:`Snapchat`,brands:[`blocks`]},{id:`sptf`,labelMsgid:`Spotify`,brands:[`blocks`,`em`]},{id:`tmblr`,labelMsgid:`Tumblr`,brands:[`blocks`]},{id:`twitch`,labelMsgid:`Twitch`,brands:[`blocks`,`em`]},{id:`thrds`,labelMsgid:`Threads`,brands:[`blocks`]},{id:`msngr`,labelMsgid:`Messenger`,brands:[`blocks`]},{id:`bs`,labelMsgid:`Bluesky`,brands:[`blocks`]},{id:`vkv`,labelMsgid:`VK Видео`,brands:[`em`]}];function ep(e){let t=e===`em`?Zf:Qf,n=new Set(t),r=Object.fromEntries($f.filter(t=>t.brands.includes(e)&&n.has(t.id)).map(e=>[e.id,e]));return t.map(e=>r[e]).filter(e=>!!e)}var{Text:tp}=p.z,np=`em`,rp=`text/plain`,ip=(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Alt`}),ap=(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Title`});function op(e){return e.closest(`.email-pane__collapse-wrapper`)}function sp({form:e,name:t,placeholder:n,usedColors:r,onColorChange:i}){let a=p.It.useWatch(t,e);return(0,C.jsx)(p.Ot,{placeholder:n,usedColors:r,value:typeof a==`string`?a:``,onChange:e=>i(t,e)})}var cp=/^[a-z][a-z0-9+.-]*:/i;function lp(e){let t=typeof e==`string`?e.trim():String(e??``).trim();return t?cp.test(t)?t:`https://${t}`:``}function up(e){let t=typeof e==`string`?e.trim():String(e??``).trim();if(!t)return``;if(/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(t))return t;try{return new URL(t,typeof window<`u`&&window.location?window.location.origin:`http://localhost`).href}catch{return t}}function dp(e){let t=lp(e);if(!t)return!1;try{let e=new URL(t);return!(e.protocol!==`http:`&&e.protocol!==`https:`||!e.hostname)}catch{return!1}}function fp(e){if(!e)return!1;try{return new URL(e,typeof window<`u`&&window.location?window.location.origin:`http://localhost`).pathname.includes(`/static/media/`)}catch{return!1}}async function pp(e,t){if(t===i.$r.UPLOAD_IMAGE_MODAL_EDIT&&fp(e)){try{let n=new URL(e,typeof window<`u`&&window.location?window.location.origin:`http://localhost`).href,r=await fetch(n);if(r.ok){let e=await r.blob();return{entryModal:t,currentUrl:``,imageDataUrl:await new Promise((t,n)=>{let r=new FileReader;r.onload=()=>t(r.result),r.onerror=n,r.readAsDataURL(e)})}}}catch{}return{entryModal:i.$r.UPLOAD_IMAGE_MODAL_UPLOAD,currentUrl:``}}return{entryModal:t,currentUrl:e}}function mp(){let e=i.cr(u.S),[t,n]=(0,v.useState)(()=>typeof document<`u`&&document.body.classList.contains(`dark`));return(0,v.useEffect)(()=>{let e=()=>n(document.body.classList.contains(`dark`));e();let t=new MutationObserver(e);return t.observe(document.body,{attributes:!0,attributeFilter:[`class`]}),()=>t.disconnect()},[]),e===`vs-dark`||t?`dark`:`light`}function hp(e){let t=String(e?.bgColor??``).trim();return{blockBgEnabled:!!(e?.bgEnabled&&t),blockBgColor:t}}function gp(e,t,n){return{...e,buttonBgColor:t,hostCellBgForIconLuminance:String(n??``).trim()}}function _p(e){let t=e?.settings||{};return JSON.stringify({type:e?.type??null,caption:e?.caption??null,parent:e?.parent??t.parent??null,path:t.path??null})}function vp(e){if(!Array.isArray(e)||e.length===0)return``;let t=e.map(e=>e.customIcon?``:String(e?.itemBorderColor??``).trim()),n=t[0];return t.every(e=>e===n)?n:``}function yp(e,t){let n=String(e??``).trim();return String(t??``).trim()||n}function bp(e,t){let n=String(e??``).trim(),r=String(t??``).trim();return!r||n&&r===n?``:r}function xp(e,t,n){let r=String(e??``).trim(),i=String(t??``).trim(),a=String(n??``).trim();return a&&(!r||a!==r)?a:i}function Sp(e,t){return(e||[]).map(e=>({...e,itemBorderColor:e.customIcon?``:t}))}function Cp(e,t,n){return(e||[]).map(e=>({...e,buttonBgColor:e.customIcon?``:xp(t,n,e.buttonBgColor)}))}function wp(e,t){if(e==null)return;let n=(e,n)=>{if(!n||!Object.prototype.hasOwnProperty.call(n,`platform`))return;let r=n.platform;r==null||r===``||t(e,r)};if(Array.isArray(e))e.forEach((e,t)=>{n(t,e)});else if(typeof e==`object`)for(let t of Object.keys(e)){let r=Number.parseInt(t,10);Number.isNaN(r)||n(r,e[t])}}function Tp({__:e,form:t,fieldName:n,pushSettingsToIframe:r}){let{token:i}=p.Vt(),a=p.It.useWatch([`items`,n,`alt`],t),o=p.It.useWatch([`items`,n,`title`],t),s=typeof a==`string`?a:String(a??``),c=typeof o==`string`?o:String(o??``),[l,u]=(0,v.useState)(!1),[d,f]=(0,v.useState)(!1),m=(0,v.useRef)(null),h=(0,v.useRef)(null),g=(0,v.useMemo)(()=>({clearIcon:(0,C.jsx)(p.Dt,{})}),[]);(0,v.useEffect)(()=>{s.trim()&&u(!0)},[s]),(0,v.useEffect)(()=>{c.trim()&&f(!0)},[c]);let _=!!(s.trim()||l),y=!!(c.trim()||d),b=_||y,x=(0,v.useMemo)(()=>({marginBottom:b?i.formItemMarginBottomXS:0}),[b,i.formItemMarginBottomXS]),S=(0,v.useMemo)(()=>[n,`alt`],[n]),w=(0,v.useMemo)(()=>[n,`title`],[n]),T=(0,v.useMemo)(()=>s.trim()?s.trim():e(`Alternative text`),[e,s]),D=(0,v.useMemo)(()=>c.trim()?c.trim():e(`Tooltip text`),[e,c]),O=(0,v.useMemo)(()=>(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":_}),[_]),k=(0,v.useMemo)(()=>(0,E.default)(`selected-td-form__button`,{"selected-td-form__button--active":y}),[y]),A=(0,v.useCallback)(e=>{setTimeout(()=>{let t=e.current;if(t){if(typeof t.focus==`function`){t.focus();return}t.input&&typeof t.input.focus==`function`&&t.input.focus()}},0)},[]),j=(0,v.useCallback)(()=>{_?(u(!1),s.trim()&&(t.setFieldValue([`items`,n,`alt`],``),setTimeout(()=>r(),0))):(u(!0),A(m))},[_,s,n,A,t,r]),M=(0,v.useCallback)(()=>{y?(f(!1),c.trim()&&(t.setFieldValue([`items`,n,`title`],``),setTimeout(()=>r(),0))):(f(!0),A(h))},[n,A,t,r,y,c]);return(0,C.jsxs)(`div`,{className:`selected-social-form__meta-block`,children:[(0,C.jsxs)(p.xt,{size:8,className:`selected-social-form__meta-toggle-row`,style:x,children:[(0,C.jsx)(p.K,{title:T,placement:`bottom`,getPopupContainer:op,children:(0,C.jsx)(p.Rt,{type:`default`,className:O,onClick:j,children:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Alt`})})}),(0,C.jsx)(p.K,{title:D,placement:`bottom`,getPopupContainer:op,children:(0,C.jsx)(p.Rt,{type:`default`,className:k,onClick:M,children:(0,C.jsx)(`span`,{className:`addon-text-content`,children:`Title`})})})]}),b&&(0,C.jsxs)(`div`,{className:`selected-social-form__meta-fields`,children:[_&&(0,C.jsx)(p.It.Item,{name:S,className:`selected-social-form__card-field`,children:(0,C.jsx)(p.jt,{ref:m,placeholder:e(`Alternative text`),allowClear:g,prefix:ip})}),y&&(0,C.jsx)(p.It.Item,{name:w,className:`selected-social-form__card-field`,children:(0,C.jsx)(p.jt,{ref:h,placeholder:e(`Social network name`),allowClear:g,prefix:ap})})]})]})}Tp.propTypes={__:b.default.func.isRequired,form:b.default.object.isRequired,fieldName:b.default.oneOfType([b.default.number,b.default.string]).isRequired,pushSettingsToIframe:b.default.func.isRequired};function Ep(e,t){if(!Array.isArray(e)||e.length===0)return t;let n=null;for(let r of e){let e=r.iconWidth;if(e==null||Number.isNaN(e)||e<=0)return t;if(n===null)n=e;else if(e!==n)return t}return n??t}function Dp(e){if(!e)return{align:`center`,iconSize:40,borderRadius:0,gap:8,globalBgColor:``,globalItemBorderColor:``,buttonBorderWidth:0,showLabel:!1,items:[]};let t=hp(e),n=String(e?.hostCellBgForIconLuminance??``).trim(),r=Ep(e.items,e.iconSize??40),i=typeof e.buttonBorderWidth==`number`&&!Number.isNaN(e.buttonBorderWidth)?e.buttonBorderWidth:0,a=e.bgEnabled&&e.bgColor?String(e.bgColor).trim():``;return{align:e.align??`center`,iconSize:r,borderRadius:e.borderRadius??0,gap:e.gap??8,globalBgColor:a,globalItemBorderColor:vp(e.items),buttonBorderWidth:i,showLabel:e.showLabel??!1,items:Array.isArray(e.items)?e.items.map(e=>{let r=!!e.customIcon,i=r?``:yp(a,e.buttonBgColor),o=e.platform&&!r?nu(e.platform,gp(t,i,n)):null;return{...e,customIcon:r,...o?{iconSrc:o}:{},iconWidth:null,iconHeight:null,buttonBgColor:i,itemBorderColor:r?``:String(e.itemBorderColor??``).trim()}}):[]}}var Op=({elementSettings:e})=>{let{__:t}=p.v(),n=i.Wt(),r=i.lr(),[a]=p.It.useForm(),s=i.et(),{openImagePicker:c}=m.r(),[l,d]=(0,v.useState)(e),[f,h]=(0,v.useState)(null),[g,y]=(0,v.useState)(null),b=(0,v.useRef)(null),x=(0,v.useRef)(null),S=(0,v.useRef)(null),w=(0,v.useRef)(_p(e)),T=i.cr(u.O),O=(0,v.useRef)(null),k=(0,v.useRef)(!1),A=(0,v.useRef)(``),j=mp(),M=T?.usedColors??[],N=p.It.useWatch(`items`,a)||[],P=(0,v.useCallback)(()=>{O.current&&=(document.removeEventListener(`dragover`,O.current,!0),null)},[]),F=(0,v.useCallback)(()=>{if(O.current)return;let e=e=>{e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`)};document.addEventListener(`dragover`,e,!0),O.current=e},[]),I=(0,v.useMemo)(()=>ep(np).filter(e=>$l[e.id]),[]),L=(0,v.useMemo)(()=>I.map(e=>({value:e.id,label:(0,C.jsxs)(`span`,{className:`selected-social-form__platform-option`,children:[(0,C.jsx)(`img`,{src:ru(e.id,j),alt:``}),(0,C.jsx)(`span`,{className:`selected-social-form__platform-option-text`,children:t(e.labelMsgid)})]})})),[t,I,j]);(0,v.useEffect)(()=>{let t=_p(e);w.current!==t&&(w.current=t,d(e))},[e]),(0,v.useEffect)(()=>{if(l?.settings){let e=l.settings;A.current=e.bgEnabled&&e.bgColor?String(e.bgColor).trim():``,a.setFieldsValue(Dp(l.settings))}},[l,a]),(0,v.useEffect)(()=>()=>P(),[P]);let R=(0,v.useCallback)(()=>{let e=a.getFieldsValue(!0),t=l.settings||{},n=String(t.hostCellBgForIconLuminance??``).trim(),r=(e.globalBgColor||``).trim(),o=typeof e.iconSize==`number`&&!Number.isNaN(e.iconSize)?e.iconSize:t.iconSize??40,c=typeof e.borderRadius==`number`&&!Number.isNaN(e.borderRadius)?e.borderRadius:t.borderRadius??0,u=typeof e.gap==`number`&&!Number.isNaN(e.gap)?e.gap:t.gap??8,f={blockBgEnabled:!!r,blockBgColor:r},p=(e.globalItemBorderColor||``).trim(),m=typeof e.buttonBorderWidth==`number`&&!Number.isNaN(e.buttonBorderWidth)?e.buttonBorderWidth:0;m=Math.max(0,Math.min(24,Math.round(m)));let h={...t,type:`social`,align:e.align??t.align??`center`,iconSize:o,borderRadius:c,gap:u,bgEnabled:!!r,bgColor:r,hostCellBgForIconLuminance:n,borderWidth:typeof t.borderWidth==`number`?t.borderWidth:0,borderColor:typeof t.borderColor==`string`?t.borderColor:``,buttonBorderColor:``,buttonBorderWidth:m,showLabel:e.showLabel,items:(e.items||[]).filter(Boolean).map(e=>{let t=!!e.customIcon,i=t?``:bp(r,(e.buttonBgColor||``).trim()),a=typeof e.href==`string`?lp(e.href):e.href,o=t?``:yp(r,i),s=!t&&e.platform?nu(e.platform,gp(f,o,n)):null,c=t?``:p||String(e.itemBorderColor??``).trim(),l=up(t?e.iconSrc||``:s||e.iconSrc||``);return{...e,customIcon:t,href:a,iconSrc:l,iconWidth:null,iconHeight:null,buttonBgColor:i,itemBorderColor:c}})};s({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:i.zr.SOCIAL,caption:l.caption,settings:h}),A.current=r,d(e=>({...e,settings:h}))},[l.caption,l.settings,a,s]),z=(0,v.useCallback)(e=>{if(e==null||e===``)return-1;let t=Fs(String(e));return(a.getFieldValue(`items`)||[]).findIndex(e=>Fs(e&&e.iconSrc||``)===t)},[a]),B=(0,v.useCallback)((e,t,n,r)=>{let o=[...a.getFieldValue(`items`)||[]];if(e<0||e>=o.length)return;let c=Fs(String(r||``))===Fs(String(t||``));(!c||t!==o[e]?.iconSrc)&&(o[e]={...o[e],iconSrc:t,customIcon:!0,buttonBgColor:``,itemBorderColor:``},a.setFieldValue(`items`,o),setTimeout(()=>R(),0)),n?.mode===`save`&&c&&s({operation:i.Wr.SANDBOX_CURRENT_IMAGE_RELOAD,src:t,forceReload:!0})},[a,R,s]),V=(0,v.useCallback)(async(e,t)=>{let n=Fs(String(t||``)),r=z(t);if(r<0)return;let i=(a.getFieldValue(`items`)||[])[r]?.iconSrc,{entryModal:o,currentUrl:s,imageDataUrl:l}=await pp(n,e),u=await c({kind:`img`,currentUrl:s,entryModal:o,imageDataUrl:l});u?.url&&B(r,u.url,u.meta,i)},[B,z,a,c]),H=(0,v.useCallback)(async e=>{let t=(a.getFieldValue(`items`)||[])[e];if(!t)return;let{entryModal:n,currentUrl:r,imageDataUrl:o}=await pp(Fs(String(t.iconSrc||``)),i.$r.UPLOAD_IMAGE_MODAL_UPLOAD),s=t.iconSrc,l=await c({kind:`img`,currentUrl:r,entryModal:n,imageDataUrl:o});l?.url&&B(e,l.url,l.meta,s)},[B,a,c]),ee=(0,v.useCallback)(e=>{let t=parseInt(e.currentTarget.dataset.socialEditIndex??``,10);Number.isNaN(t)||H(t)},[H]);_.g((0,v.useCallback)(e=>{let t=e.data?.operation,n=e.data?.src;t===i.Wr.APPLICATION_OPEN_IMAGE_AI_POPUP?V(i.$r.UPLOAD_IMAGE_MODAL_AI,n):t===i.Wr.APPLICATION_OPEN_IMAGE_UPLOAD_POPUP?V(i.$r.UPLOAD_IMAGE_MODAL_UPLOAD,n):t===i.Wr.APPLICATION_OPEN_IMAGE_EDIT_POPUP?V(i.$r.UPLOAD_IMAGE_MODAL_EDIT,n):t===i.Wr.APPLICATION_OPEN_IMAGE_GIF_POPUP?V(i.$r.UPLOAD_IMAGE_MODAL_GIF,n):t===i.Wr.APPLICATION_OPEN_IMAGE_STOCK_POPUP?V(i.$r.UPLOAD_IMAGE_MODAL_STOCK,n):t===i.Wr.APPLICATION_CLOSE_IMAGE_EDIT_POPUP&&(r(o.n()),r(o.t()))},[r,V]));let U=(0,v.useCallback)(()=>{let e=a.getFieldValue(`items`)||[],t=I[0],n=(a.getFieldValue(`globalItemBorderColor`)||``).trim(),r=(a.getFieldValue(`globalBgColor`)||``).trim();if(!t)a.setFieldsValue({items:[...e,{platform:void 0,customIcon:!1,href:``,alt:``,title:``,iconSrc:``,iconWidth:null,iconHeight:null,buttonBgColor:r,itemBorderColor:n}]});else{let i=String(l?.settings?.hostCellBgForIconLuminance??``).trim(),o=yp(r,r),s=nu(t.id,gp({blockBgEnabled:!!r,blockBgColor:r},o,i));a.setFieldsValue({items:[...e,{platform:t.id,customIcon:!1,href:``,alt:``,title:``,iconSrc:s,iconWidth:null,iconHeight:null,buttonBgColor:r,itemBorderColor:n}]})}setTimeout(()=>R(),0)},[l?.settings?.hostCellBgForIconLuminance,a,I,R]),W=(0,v.useCallback)((e,t)=>{e.dataTransfer.setData(rp,String(t)),e.dataTransfer.setData(i.Fr,String(t)),e.dataTransfer.effectAllowed=`move`,b.current=t,h(t),F()},[F]),G=(0,v.useCallback)(()=>{P(),b.current=null,h(null),y(null)},[P]),K=(0,v.useCallback)((e,t,n)=>{if(n<2)return;e.preventDefault(),e.dataTransfer.dropEffect=`move`;let r=b.current;r!==null&&r!==t&&y(t)},[]),q=(0,v.useCallback)((e,t)=>{e.currentTarget.contains(e.relatedTarget)||y(e=>e===t?null:e)},[]),J=(0,v.useCallback)((e,t,n)=>{e.preventDefault(),y(null);let r=e.dataTransfer.getData(rp),i=parseInt(r,10);if(Number.isNaN(i)||i===t){P();return}n(i,t),P(),setTimeout(()=>R(),0)},[P,R]),Y=(0,v.useCallback)(e=>{let t=e.currentTarget,n=parseInt(t.dataset.itemIndex??``,10);Number.isNaN(n)||W(e,n)},[W]),te=(0,v.useCallback)(e=>{let t=e.currentTarget,n=parseInt(t.dataset.itemIndex??``,10),r=parseInt(t.dataset.listLength??``,10);Number.isNaN(n)||Number.isNaN(r)||r<2||(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`move`))},[]),X=(0,v.useCallback)(e=>{let t=e.currentTarget,n=parseInt(t.dataset.itemIndex??``,10),r=parseInt(t.dataset.listLength??``,10);Number.isNaN(n)||Number.isNaN(r)||K(e,n,r)},[K]),ne=(0,v.useCallback)(e=>{let t=parseInt(e.currentTarget.dataset.itemIndex??``,10);Number.isNaN(t)||q(e,t)},[q]),re=(0,v.useCallback)(e=>{let t=parseInt(e.currentTarget.dataset.itemIndex??``,10),n=x.current;Number.isNaN(t)||typeof n!=`function`||J(e,t,n)},[J]),ie=(0,v.useCallback)(e=>{e.stopPropagation();let t=parseInt(e.currentTarget.dataset.fieldName??``,10),n=S.current;Number.isNaN(t)||typeof n!=`function`||(n(t),queueMicrotask(R))},[R]),ae=(0,v.useCallback)((e,t)=>{let n=I.find(e=>e.id===t),r=(a.getFieldValue(`globalBgColor`)||``).trim(),i=yp(r,(a.getFieldValue([`items`,e,`buttonBgColor`])||``).trim()),o=String(l?.settings?.hostCellBgForIconLuminance??``).trim(),s=nu(t,gp({blockBgEnabled:!!r,blockBgColor:r},i,o));!n||!s||(a.setFieldValue([`items`,e,`customIcon`],!1),a.setFieldValue([`items`,e,`iconSrc`],s))},[l?.settings?.hostCellBgForIconLuminance,a,I]),oe=(0,v.useCallback)(e=>{if(Object.prototype.hasOwnProperty.call(e,`globalItemBorderColor`)){if(!k.current){let t=String(e.globalItemBorderColor??``).trim(),n=a.getFieldValue(`items`)||[];a.setFieldsValue({items:Sp(n,t)})}}else if(Object.prototype.hasOwnProperty.call(e,`globalBgColor`)){let t=A.current,n=String(e.globalBgColor??``).trim(),r=a.getFieldValue(`items`)||[];a.setFieldsValue({items:Cp(r,t,n)})}else if(e?.items!=null){let e=vp(a.getFieldValue(`items`)||[]);e!==(a.getFieldValue(`globalItemBorderColor`)||``).trim()&&(k.current=!0,a.setFieldValue(`globalItemBorderColor`,e),queueMicrotask(()=>{k.current=!1}))}wp(e?.items,ae),R()},[a,R,ae]),Z=(0,v.useCallback)((e,t)=>{if(a.setFieldValue(e,t),Array.isArray(e)&&e[0]===`items`){oe({items:{[e[1]]:{[e[2]]:t}}});return}oe({[e]:t})},[a,oe]);return(0,C.jsx)(`div`,{className:`selected-social-form`,children:(0,C.jsx)(p.It,{form:a,layout:`vertical`,className:`selected-social-form__form element-controls`,onValuesChange:oe,autoComplete:`off`,children:(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,children:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`div`,{className:`selected-social-form__section`,children:[(0,C.jsx)(`div`,{className:`selected-social-form__section-title`,children:t(`General settings`)}),(0,C.jsx)(`div`,{className:`selected-social-form__align-block`,children:(0,C.jsx)(vd,{form:a,elementSettings:{...l,type:i.zr.SOCIAL}})}),(0,C.jsxs)(p.At,{gutter:10,className:`selected-social-form__field-row`,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Button size`),placement:`bottom`,getPopupContainer:op,children:(0,C.jsx)(p.It.Item,{name:`iconSize`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.I,{min:16,max:64,prefix:(0,C.jsx)(m.d,{icon:`ColumnWidthOutlined`}),addonAfter:`px`,placeholder:t(`Button size`),className:`selected-social-form__input-full`})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Corner radius`),placement:`bottom`,getPopupContainer:op,children:(0,C.jsx)(p.It.Item,{name:`borderRadius`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.I,{min:0,max:48,prefix:(0,C.jsx)(m.d,{icon:`BorderRadius`,className:`selected-td-form__icon-radius`}),addonAfter:`px`,placeholder:t(`Corner radius`),className:`selected-social-form__input-full`})})})})]}),(0,C.jsxs)(p.At,{gutter:10,className:`selected-social-form__field-row`,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Spacing`),placement:`bottom`,getPopupContainer:op,children:(0,C.jsx)(p.It.Item,{name:`gap`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.I,{min:0,max:48,prefix:(0,C.jsx)(m.d,{icon:`PaddingLeftRight`}),addonAfter:`px`,placeholder:t(`Spacing`),className:`selected-social-form__input-full`})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Background color`),placement:`bottom`,getPopupContainer:op,children:(0,C.jsx)(p.It.Item,{name:`globalBgColor`,className:`form-item-margin-xs`,children:(0,C.jsx)(sp,{form:a,name:`globalBgColor`,placeholder:t(`Background color`),usedColors:M,onColorChange:Z})})})})]}),(0,C.jsxs)(p.At,{gutter:10,className:`selected-social-form__field-row`,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Border`),placement:`bottom`,getPopupContainer:op,children:(0,C.jsx)(p.It.Item,{name:`buttonBorderWidth`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.I,{min:0,max:24,prefix:(0,C.jsx)(m.d,{icon:`BorderOuterOutlined`}),addonAfter:`px`,placeholder:t(`Border`),className:`selected-social-form__input-full`})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Border color`),placement:`bottom`,getPopupContainer:op,children:(0,C.jsx)(p.It.Item,{name:`globalItemBorderColor`,className:`form-item-margin-xs`,children:(0,C.jsx)(sp,{form:a,name:`globalItemBorderColor`,placeholder:t(`Border color`),usedColors:M,onColorChange:Z})})})})]})]}),(0,C.jsxs)(`div`,{className:`selected-social-form__section selected-social-form__section--bordered`,children:[(0,C.jsx)(`div`,{className:`selected-social-form__section-title`,children:t(`Social buttons`)}),(0,C.jsx)(p.It.List,{name:`items`,children:(e,{remove:r,move:i})=>(x.current=i,S.current=r,(0,C.jsx)(`div`,{className:`selected-social-form__items`,children:e.map((r,i)=>{let o=!!(N[i]?.customIcon??N[r.name]?.customIcon);return(0,C.jsxs)(`div`,{className:(0,E.default)(`selected-social-form__card`,f===i&&`selected-social-form__card--dragging`,g===i&&f!==i&&`selected-social-form__card--drag-over`),"data-item-index":i,"data-list-length":e.length,onDragEnterCapture:te,onDragOverCapture:X,onDragLeave:ne,onDropCapture:re,children:[(0,C.jsxs)(`div`,{className:`selected-social-form__card-head`,children:[(0,C.jsxs)(`div`,{className:`selected-social-form__card-head-main`,children:[e.length>1?(0,C.jsx)(`span`,{className:`selected-social-form__drag-handle`,draggable:!0,"data-item-index":i,onDragStart:Y,onDragEnd:G,role:`button`,tabIndex:0,"aria-label":t(`Drag to reorder`),children:(0,C.jsx)(D.HolderOutlined,{})}):null,(0,C.jsxs)(tp,{className:`selected-social-form__card-title`,children:[t(`Button`),` `,i+1]})]}),(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Delete`),placement:`top`,getPopupContainer:op,children:(0,C.jsx)(p.Rt,{type:`text`,className:`selected-social-form__card-head-remove`,icon:(0,C.jsx)(m.d,{icon:`DeleteOutlined`,size:18,strokeWidth:n.iconStrokeWidth}),"aria-label":t(`Delete`),"data-field-name":r.name,onClick:ie})})]}),(0,C.jsx)(p.It.Item,{name:[r.name,`iconSrc`],hidden:!0,children:(0,C.jsx)(p.jt,{})}),(0,C.jsx)(p.It.Item,{name:[r.name,`customIcon`],valuePropName:`checked`,hidden:!0,children:(0,C.jsx)(p.Pt,{})}),(0,C.jsxs)(`div`,{className:`selected-social-form__platform-row`,children:[(0,C.jsx)(p.It.Item,{name:[r.name,`platform`],className:`selected-social-form__platform-field selected-social-form__card-field`,children:(0,C.jsx)(p.St,{options:L,className:`selected-social-form__platform-select`,popupClassName:`selected-social-form__platform-dropdown`,placeholder:t(`Select`),suffixIcon:(0,C.jsx)(m.d,{icon:`ChevronDownCustom`,className:`ant-select-suffix`})})}),(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Edit icon`),placement:`top`,getPopupContainer:op,children:(0,C.jsx)(p.Rt,{type:`text`,className:`selected-social-form__platform-edit`,"data-social-edit-index":i,icon:(0,C.jsx)(m.d,{icon:`EditOutlined`,size:18,strokeWidth:n.iconStrokeWidth}),"aria-label":t(`Edit icon`),onClick:ee})})]}),(0,C.jsx)(p.It.Item,{name:[r.name,`href`],className:`selected-social-form__card-field`,rules:[{required:!0,whitespace:!0,message:t(`Please enter the URL.`)},{validator:async(e,n)=>{let r=typeof n==`string`?n.trim():String(n??``).trim();if(r&&!dp(r))throw Error(t(`Please enter the correct URL.`))}}],children:(0,C.jsx)(p.jt,{prefix:(0,C.jsx)(m.d,{icon:`Link03`,className:`selected-social-form__field-icon`}),placeholder:t(`Enter link`),allowClear:{clearIcon:(0,C.jsx)(p.Dt,{})}})}),o?null:(0,C.jsxs)(p.At,{gutter:10,className:`selected-social-form__card-field selected-social-form__bg-color-row`,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Background color`),placement:`bottom`,getPopupContainer:op,children:(0,C.jsx)(p.It.Item,{name:[r.name,`buttonBgColor`],className:`selected-social-form__card-field`,children:(0,C.jsx)(sp,{form:a,name:[`items`,r.name,`buttonBgColor`],placeholder:t(`Background color`),usedColors:M,onColorChange:Z})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:t(`Border color`),placement:`bottom`,getPopupContainer:op,children:(0,C.jsx)(p.It.Item,{name:[r.name,`itemBorderColor`],className:`selected-social-form__card-field`,children:(0,C.jsx)(sp,{form:a,name:[`items`,r.name,`itemBorderColor`],placeholder:t(`Border color`),usedColors:M,onColorChange:Z})})})})]}),(0,C.jsx)(Tp,{__:t,form:a,fieldName:r.name,pushSettingsToIframe:R})]},r.key)})}))}),(0,C.jsx)(p.Rt,{type:`text`,block:!0,className:`selected-social-form__add-bar`,icon:(0,C.jsx)(D.PlusSquareOutlined,{}),onClick:U,children:t(`Add button`)})]})]})})})})};Op.propTypes={elementSettings:b.default.shape({settings:b.default.object,type:b.default.string,caption:b.default.string})};var kp=i.Cr,Ap=(e,t,n,r,a,o,s=``)=>{let c=e.getFieldsValue(!0),l=t?`cell_`:s;setTimeout(()=>{t?r(e=>!e):n(e=>!e),a&&(c[l+`borderWidth`]=null,c[l+`borderColor`]=``,c[l+`borderStyle`]=``),o(e=>({...i.ci,[c[l+`borderPosition`]]:{...e[c[l+`borderPosition`]],width:c[l+`borderWidth`],color:c[l+`borderColor`],style:c[l+`borderStyle`]}}))})},jp=(e,t,n,r,a,o,s)=>{let c=e.getFieldsValue(!0);setTimeout(()=>{t(e=>!e),!n&&!r[c?.mobileBorderPosition]?.color&&(c.mobileBorderStyle=`solid`,c.mobileBorderWidth=1,c.mobileBorderColor=kp,a(e=>({...r,[c?.mobileBorderPosition]:{color:kp,style:`solid`,width:1}}))),o({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:s.type,settings:{mobileBorder:{...r,[c?.mobileBorderPosition]:{color:c.mobileBorderColor,style:c.mobileBorderStyle,width:c.mobileBorderWidth}}}})})},Mp=(e,t,n,r,a,o,s=``)=>{let c=e.getFieldsValue(!0);setTimeout(()=>{t(e=>!e),n?(c[s+`borderRadiusAll`]=0,r(!0)):c[s+`borderRadiusAll`]||(c[s+`borderRadiusAll`]=0),a({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:o.type,settings:{borderRadius:{all:c[s+`borderRadiusAll`]}}})})},Np=(e,t,n,r,a)=>{let o=e.getFieldsValue(!0);setTimeout(()=>{t(e=>!e),!n&&!o.mobileBorderRadiusAll&&!o.mobileBorderRadiusTopLeft&&!o.mobileBorderRadiusTopRight&&!o.mobileBorderRadiusBottomRight&&!o.mobileBorderRadiusBottomLeft&&(o.mobileBorderRadiusAll=0),[`all`,`topLeft`,`topRight`,`bottomRight`,`bottomLeft`].forEach(e=>{if(!o.mobileBorderRadius?.[e])return;let t=`mobileBorderRadius${e[0].toUpperCase()}${e.slice(1)}`;r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:a.type,settings:{mobileBorderRadius:{[e]:o[t],classNamePrefix:`em-mob-border_radius_${e}-`}}})})})},Pp=(e,t,n,r,a)=>{let o=e.getFieldsValue(!0);setTimeout(()=>{t(e=>!e),!n&&!o.boxShadowColor?(o.boxShadowInset=!1,o.boxShadowHOffset=5,o.boxShadowVOffset=5,o.boxShadowBlurRadius=10,o.boxShadowSpreadRadius=-5,o.boxShadowColor=`#000000`):n&&(o.boxShadowInset=!1,o.boxShadowHOffset=null,o.boxShadowVOffset=null,o.boxShadowBlurRadius=null,o.boxShadowSpreadRadius=null,o.boxShadowColor=``),r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:a.type,settings:{boxShadow:{blurRadius:o.boxShadowBlurRadius,color:o.boxShadowColor,hOffset:o.boxShadowHOffset,inset:o.boxShadowInset,spreadRadius:o.boxShadowSpreadRadius,vOffset:o.boxShadowVOffset}}})})},Fp=(e,t,n,r,a)=>{let o=e.getFieldsValue(!0);setTimeout(()=>{t(e=>!e),!n&&!o.mobileBoxShadowColor&&(o.mobileBoxShadowInset=!1,o.mobileBoxShadowHOffset=5,o.mobileBoxShadowVOffset=5,o.mobileBoxShadowBlurRadius=10,o.mobileBoxShadowSpreadRadius=-5,o.mobileBoxShadowColor=`#000000`),r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:a.type,settings:{mobileBoxShadow:{blurRadius:o.mobileBoxShadowBlurRadius,color:o.mobileBoxShadowColor,hOffset:o.mobileBoxShadowHOffset,inset:o.mobileBoxShadowInset,spreadRadius:o.mobileBoxShadowSpreadRadius,vOffset:o.mobileBoxShadowVOffset,classNamePrefix:`em-mob-box_shadow-`}}})})},Ip=(e,t,n,r,a)=>{let o=e.getFieldsValue(!0);setTimeout(()=>{t(e=>!e),!n&&!o.mobileWidth&&(o.mobileWidth=``),r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:a.type,settings:{mobileWidth:{value:o.mobileWidth,dim:o.mobileWidthDim,classNamePrefix:`em-mob-width-`}}})})},Lp=e=>{setTimeout(()=>{e(e=>!e)})},Rp=(e,t,n,r,a)=>{let o=e.getFieldsValue(!0);setTimeout(()=>{t(e=>!e),!n&&!o.mobileBackgroundColor&&(o.mobileBackgroundColor=`#E5E5E5`),r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:a.type,settings:{mobileBackgroundColor:{classNamePrefix:`em-mob-background_color-`,value:o.mobileBackgroundColor}}})})},zp=(e,t,n,r,a)=>{let o=e.getFieldsValue(!0);setTimeout(()=>{t(e=>!e),n&&(o.paddingLeftRight=``,o.paddingLeft=``,o.paddingRight=``,o.paddingTopBottom=``,o.paddingTop=``,o.paddingBottom=``,r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:a.type,settings:{padding:{all:0}}}))})},Bp=(e,t,n,r,a)=>{t(e=>!e);let o=e.getFieldsValue(!0);n||(o.paddingLeftRight=o.paddingLeft,o.paddingTopBottom=o.paddingTop,o.paddingRight=o.paddingLeft,o.paddingBottom=o.paddingTop,r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:a.type,settings:{padding:{top:o.paddingTopBottom,bottom:o.paddingTopBottom,left:o.paddingLeftRight,right:o.paddingLeftRight}}}))},Vp=e=>{setTimeout(()=>{e(e=>!e)})},Hp=(e,t,n,r,a)=>{t(e=>!e);let o=e.getFieldsValue(!0);n||(o.cell_paddingLeftRight=o.cell_paddingLeft,o.cell_paddingTopBottom=o.cell_paddingTop,o.cell_paddingRight=o.cell_paddingLeft,o.cell_paddingBottom=o.cell_paddingTop,r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:a.type,settings:{cell_padding:{top:o.cell_paddingTopBottom,bottom:o.cell_paddingTopBottom,left:o.cell_paddingLeftRight,right:o.cell_paddingLeftRight}}})),(n&&o.cell_paddingLeftRight||o.cell_paddingLeftRight===0)&&(o.cell_paddingLeft=o.cell_paddingLeftRight,o.cell_paddingRight=o.cell_paddingLeftRight),(n&&o.cell_paddingTopBottom||o.cell_paddingTopBottom===0)&&(o.cell_paddingTop=o.cell_paddingTopBottom,o.cell_paddingBottom=o.cell_paddingTopBottom)},Up=({form:e,onBorderSideClear:t,formName:n,elementSettings:r,formValues:i,isMacOS:a,__:o,token:s,appConfig:c,typografItems:l,backgroundRepeatOptions:u,backgroundSizeOptions:d,sendAction:f,handleToggleShowPaddingCell:h,handleTogglePaddingCell:g,handleToggleBackground:_,handleToggleBorder:v,handleToggleBorderRadius:y,paddingCellShow:b,paddingsExt:x,backgroundShow:S,cellBordersShow:w,borderRadiusShow:T,textInputRef:D,linkProtocol:O,handleLinkProtocolsChange:k,backgroundImageEmpty:A})=>(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.M,{title:o(`Text`),dividerTop:!1,children:[c.formTextFieldTypografEnabled&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`AddImage`,style:{marginBottom:s.formItemMarginBottomXS},children:(0,C.jsx)(p.Rt,{icon:(0,C.jsx)(m.d,{icon:`AddImage`}),onClick:()=>f(`add_img`),style:{width:`100%`},children:o(`Add image`)})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.It.Item,{name:`Typography`,style:{marginBottom:s.formItemMarginBottomXS},children:(0,C.jsx)(p.nt,{arrow:!0,menu:{items:l},trigger:[`hover`],placement:`bottom`,getPopupContainer:e=>e.closest(`.selected-element-panel`),children:(0,C.jsx)(p.Rt,{icon:(0,C.jsx)(m.d,{icon:`Typograf`}),onClick:()=>f(`typograf`),style:{width:`100%`},children:o(`Typography`)})})})})]}),(0,C.jsx)(p.K,{trigger:[`hover`],title:o(`Text font`),placement:`bottom`,zIndex:1,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`fontFamily`,className:`form-item-margin-xs`,children:(0,C.jsx)(p.F,{textEditor:!0,loadGoogleFonts:bc,getPopupContainer:e=>e.closest(`.email-pane__collapse-wrapper`)})})}),!r.showOnMobile&&(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:o(`Font size`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`fontSize`,children:(0,C.jsx)(p.I,{min:8,max:90,placeholder:o(`Font size`),prefix:(0,C.jsx)(m.d,{icon:`FontSizeOutlined`}),addonAfter:`px`})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:o(`Line height`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`lineHeight`,children:(0,C.jsx)(p.I,{min:10,max:110,placeholder:o(`Line height`),prefix:(0,C.jsx)(m.d,{icon:`LineHeightOutlined`}),addonAfter:`px`})})})})]})]}),(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:r,name:`textStrong`,tooltipTitle:o(a?`Strong ( ⌘B )`:`Strong ( Ctrl+B )`),icon:(0,C.jsx)(m.d,{icon:`BoldOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:r,name:`textItalic`,tooltipTitle:o(a?`Italic ( ⌘I )`:`Italic ( Ctrl+I )`),icon:(0,C.jsx)(m.d,{icon:`ItalicOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:r,name:`textStrikethrough`,tooltipTitle:o(a?`Strikethrough ( ⌘+Shift+X )`:`Strikethrough ( Alt+Shift+5 )`),icon:(0,C.jsx)(m.d,{icon:`StrikethroughOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,elementSettings:r,name:`textUnderline`,tooltipTitle:o(a?`Underline ( ⌘U )`:`Underline ( Ctrl+U )`),icon:(0,C.jsx)(m.d,{icon:`UnderlineOutlined`,className:`selected-text-common-form__icon-radius`})})}),(0,C.jsx)(p.kt,{span:3,children:(0,C.jsx)(rf,{form:e,className:(0,E.default)(`selected-text-common-form__button selected-text-common-form__button_style`,{"selected-text-common-form__button--active":typeof r.linkHref==`string`}),elementSettings:r,name:`textLink`,tooltipTitle:o(`Link`),icon:(0,C.jsx)(m.d,{icon:`LinkOutlined`,className:`selected-text-common-form__icon-radius`})})})]}),i?.textLink&&(0,C.jsx)(p.At,{gutter:10,children:(0,C.jsxs)(p.kt,{span:24,children:[(0,C.jsx)(Zc,{show:O===`#`,__:o,style:{marginBottom:s.formItemMarginBottomXS}}),(0,C.jsx)(p.K,{trigger:[`hover`],title:o(`The URL that the hyperlink directs to.`),placement:`bottom`,children:(0,C.jsx)(p.It.Item,{name:`linkHref`,children:(0,C.jsx)(p.jt,{ref:D,addonBefore:(0,C.jsx)(Xc,{linkProtocol:O,handleLinkProtocolsChange:k,__:o}),allowClear:!0,placeholder:o(`Hyperlink URL`),autoFocus:r?.customTable?.isNewLink,prefix:(0,C.jsx)(Jc,{linkProtocol:O})})})})]})}),(0,C.jsxs)(p.At,{gutter:10,style:{paddingBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:o(`Text color`),placement:`bottom`,zIndex:2,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`textColor`,rules:[{message:o(`Please set the font color`)}],children:(0,C.jsx)(p.Ot,{placeholder:o(`Color`),usedColors:r.usedColors,usedLabel:o(`Used`),recommendedLabel:o(`Recommended`)})})})}),(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:o(`Text background`),placement:`bottom`,zIndex:2,getPopupContainer:e=>e.parentNode,children:(0,C.jsx)(p.It.Item,{name:`textBackgroundColor`,rules:[{message:o(`Please set the background color`)}],children:(0,C.jsx)(p.Ot,{placeholder:o(`Background color`),usedColors:r.usedColors,usedLabel:o(`Used`),recommendedLabel:o(`Recommended`)})})})})]}),(0,C.jsxs)(p.At,{gutter:10,style:{paddingBottom:4},children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(xc,{form:e,elementSettings:r,name:`textAlign`})}),(0,C.jsx)(p.kt,{span:12,style:{textAlign:`right`},children:(0,C.jsx)(yd,{form:e,elementSettings:r,name:`valign`,isNewIconType:!0})})]})]}),(0,C.jsx)(p.M,{title:o(`Padding`),collapsible:!0,open:b,onToggle:h,dividerTop:!0,children:(0,C.jsx)(p.j,{namePrefix:`cell_`,extended:x,onToggleExtended:g,gutter:s.marginSM,rowStyle:{paddingBottom:4},labels:{horizontal:o(`Horizontal padding`),vertical:o(`Vertical padding`),left:o(`Left padding`),right:o(`Right padding`),top:o(`Top padding`),bottom:o(`Bottom padding`),individual:o(`Individual padding`)}})}),(0,C.jsx)(p.M,{title:o(`Background`),collapsible:!0,open:S,onToggle:_,dividerTop:!0,children:(0,C.jsx)(p.b,{colorFieldName:`cellBackgroundColor`,imageEnabled:c.formTableFieldBackgroundImageEnabled&&!1,backgroundImageEmpty:A,usedColors:r.usedColors,colorPlaceholder:o(`Background color`),usedLabel:o(`Used`),recommendedLabel:o(`Recommended`),horizontalPositionPlaceholder:o(`Horizontal position`),horizontalPositionTooltip:o(`Horizontal position`),verticalPositionPlaceholder:o(`Vertical position`),verticalPositionTooltip:o(`Vertical position`),backgroundRepeatTooltip:o(`Background image repeat`),backgroundSizeTooltip:o(`Background image size`),selectPlaceholder:o(`Please choose`),backgroundRepeatOptions:u,backgroundSizeOptions:d,imageUploadSlot:(c.formTableFieldBackgroundImageEnabled,void 0)})}),(0,C.jsx)(p.M,{title:o(`Borders`),collapsible:!0,open:w,onToggle:v,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,namePrefix:`cell_`})}),c.formFieldBorderRadiusEnabled&&!1]}),Wp=({form:e,onBorderSideClear:t,elementSettings:n,paddingShow:r,paddingsExt:a,backgroundShow:o,bordersShow:s,borderRadiusShow:c,boxShadowShow:l,handleToggleShowPadding:u,handleTogglePadding:d,handleToggleBackground:f,handleToggleBorder:m,handleToggleBorderRadius:h,handleToggleBoxShadow:g,backgroundRepeatOptions:_,backgroundSizeOptions:v,backgroundImageEmpty:y,oneBorderRadiusValue:b,setOneBorderRadiusValue:x,boxShadow:S})=>{let{__:w}=p.v(),T=i.Wt(),{token:E}=p.Vt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.M,{title:w(`Padding`),collapsible:!0,open:r,onToggle:u,children:(0,C.jsx)(p.j,{extended:a,onToggleExtended:d,gutter:E.marginSM,labels:{horizontal:w(`Horizontal padding`),vertical:w(`Vertical padding`),left:w(`Left padding`),right:w(`Right padding`),top:w(`Top padding`),bottom:w(`Bottom padding`),individual:w(`Individual padding`)}})}),(0,C.jsx)(p.M,{title:w(`Background`),collapsible:!0,open:o,onToggle:f,dividerTop:!0,children:(0,C.jsx)(p.b,{imageEnabled:T.formTableFieldBackgroundImageEnabled,backgroundImageEmpty:y,usedColors:n.usedColors,colorPlaceholder:w(`Background color`),usedLabel:w(`Used`),recommendedLabel:w(`Recommended`),horizontalPositionPlaceholder:w(`Horizontal position`),horizontalPositionTooltip:w(`Horizontal position`),verticalPositionPlaceholder:w(`Vertical position`),verticalPositionTooltip:w(`Vertical position`),backgroundRepeatTooltip:w(`Background image repeat`),backgroundSizeTooltip:w(`Background image size`),selectPlaceholder:w(`Please choose`),backgroundRepeatOptions:_,backgroundSizeOptions:v,imageUploadSlot:T.formTableFieldBackgroundImageEnabled?(0,C.jsx)(Zs,{form:e,label:w(`Background image`),name:`backgroundImage`,tooltipTitle:w(`Background image`),placeholder:w(`Background image link/route`)}):void 0})}),(0,C.jsx)(p.M,{title:w(`Borders`),collapsible:!0,open:s,onToggle:m,dividerTop:!0,children:(0,C.jsx)(Sc,{form:e,onBorderSideClear:t})}),T.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:w(`Border radius`),collapsible:!0,open:c,onToggle:h,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,oneBorderRadiusValue:b,setOneBorderRadiusValue:x,elementSettings:n})}),T.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:w(`Box shadow`),collapsible:!0,open:l,onToggle:g,dividerTop:!0,children:(0,C.jsx)(Sd,{})}),T.formFieldVisibilityEnabled&&(0,C.jsx)(p.M,{title:w(`Display control`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:n,form:e})})]})};Wp.propTypes={form:b.default.object.isRequired,onBorderSideClear:b.default.func,elementSettings:b.default.object.isRequired,paddingShow:b.default.bool,paddingsExt:b.default.bool,backgroundShow:b.default.bool,bordersShow:b.default.bool,borderRadiusShow:b.default.bool,boxShadowShow:b.default.bool,handleToggleShowPadding:b.default.func,handleTogglePadding:b.default.func,handleToggleBackground:b.default.func,handleToggleBorder:b.default.func,handleToggleBorderRadius:b.default.func,handleToggleBoxShadow:b.default.func,backgroundRepeatOptions:b.default.array,backgroundSizeOptions:b.default.array,backgroundImageEmpty:b.default.bool,oneBorderRadiusValue:b.default.bool,setOneBorderRadiusValue:b.default.func,boxShadow:b.default.object};var Gp=({form:e,elementSettings:t,mobileSizeShow:n,mobileBackgroundShow:r,mobileBordersShow:a,mobileBorderRadiusShow:o,mobileBoxShadowShow:s,handleToggleMobileSize:c,handleToggleMobileBackground:l,handleToggleMobileBorder:d,handleToggleMobileBorderRadius:f,handleToggleMobileBoxShadow:m,backgroundRepeatOptions:h,oneMobileBorderRadiusValue:g,setOneMobileBorderRadiusValue:_,mobileBorders:v,mobileBoxShadow:y})=>{let{__:b,_x:x}=p.v(),S=i.Wt(),{token:w}=p.Vt(),T=i.cr(u.O);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.M,{title:b(`Size`),collapsible:!0,open:n,onToggle:c,dividerTop:!0,children:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.At,{gutter:10,children:(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.K,{trigger:[`hover`],title:b(`Table width`),placement:`left`,children:(0,C.jsx)(`div`,{style:{marginBottom:w.formItemMarginBottomMD+4},children:(0,C.jsx)(kd,{form:e,name:`mobileWidth`,elementSettings:t})})})})}),(0,C.jsx)(p.At,{gutter:10,children:(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(`div`,{style:{marginBottom:w.formItemMarginBottomXS*2},children:(0,C.jsx)(p.K,{title:b(`Height`),placement:`bottom`,children:(0,C.jsx)(Ad,{form:e,name:`mobileHeight`,elementSettings:t})})})})})]})}),(0,C.jsxs)(p.M,{title:b(`Background`),collapsible:!0,open:r,onToggle:l,dividerTop:!0,children:[(0,C.jsx)(`div`,{style:{marginBottom:w.formItemMarginBottomMD+4},children:(0,C.jsx)(pf,{form:e,elementSettings:t})}),!1]}),S.formFieldBorderEnabled&&(0,C.jsx)(p.M,{title:b(`Borders`),collapsible:!0,open:a,onToggle:d,dividerTop:!0,children:(0,C.jsx)(p.D,{form:e,fieldStructure:`flat`,borderValues:v,usedColors:T.usedColors,labels:{color:b(`Color`),width:x(`Width`,`border`),none:b(`None`),solid:b(`Solid`),dashed:b(`Dashed`),dotted:b(`Dotted`),above:b(`Above`),below:b(`Below`),onLeft:b(`On the left`),onRight:b(`On the right`),around:b(`Around`),usedColors:b(`Used`),recommendedColors:b(`Recommended`)}})}),S.formFieldBorderRadiusEnabled&&(0,C.jsx)(p.M,{title:b(`Border radius`),collapsible:!0,open:o,onToggle:f,dividerTop:!0,children:(0,C.jsx)(Ac,{form:e,typeOfForm:`mobile`,oneBorderRadiusValue:g,setOneBorderRadiusValue:_,elementSettings:t})}),S.formFieldBoxShadowEnabled&&(0,C.jsx)(p.M,{title:b(`Box shadow`),collapsible:!0,open:s,onToggle:m,dividerTop:!0,children:(0,C.jsx)(Sd,{typeOfForm:`mobile`,form:e,elementSettings:t,enableSwitch:!1})}),S.formFieldVisibilityEnabled&&(0,C.jsx)(p.M,{title:b(`Display control`),dividerTop:!0,children:(0,C.jsx)(Cd,{elementSettings:t,form:e})})]})};Gp.propTypes={form:b.default.object.isRequired,elementSettings:b.default.object.isRequired,mobileSizeShow:b.default.bool,mobileBackgroundShow:b.default.bool,mobileBordersShow:b.default.bool,mobileBorderRadiusShow:b.default.bool,mobileBoxShadowShow:b.default.bool,handleToggleMobileSize:b.default.func,handleToggleMobileBackground:b.default.func,handleToggleMobileBorder:b.default.func,handleToggleMobileBorderRadius:b.default.func,handleToggleMobileBoxShadow:b.default.func,backgroundRepeatOptions:b.default.array,oneMobileBorderRadiusValue:b.default.bool,setOneMobileBorderRadiusValue:b.default.func,mobileBorders:b.default.object,mobileBoxShadow:b.default.object};var Kp=({form:e,onBorderSideClear:t,elementViewType:n,mobileViewActive:r,elementSettings:i,paddingShow:a,paddingsExt:o,backgroundShow:s,bordersShow:c,borderRadiusShow:l,boxShadowShow:u,mobileSizeShow:d,mobileBackgroundShow:f,mobileBordersShow:p,mobileBorderRadiusShow:m,mobileBoxShadowShow:h,handleToggleShowPadding:g,handleTogglePadding:_,handleToggleBackground:v,handleToggleBorder:y,handleToggleBorderRadius:b,handleToggleBoxShadow:x,handleToggleMobileSize:S,handleToggleMobileBackground:w,handleToggleMobileBorder:T,handleToggleMobileBorderRadius:E,handleToggleMobileBoxShadow:D,backgroundRepeatOptions:O,backgroundSizeOptions:k,backgroundImageEmpty:A,oneBorderRadiusValue:j,setOneBorderRadiusValue:M,oneMobileBorderRadiusValue:N,setOneMobileBorderRadiusValue:P,boxShadow:F,mobileBorders:I,mobileBoxShadow:L})=>(0,C.jsx)(C.Fragment,{children:n===`mobile`&&r.styles?(0,C.jsx)(`div`,{id:`selected_element_form_mobile_props`,className:`selected_form-mobile-props`,children:(0,C.jsx)(Gp,{form:e,elementSettings:i,mobileSizeShow:d,mobileBackgroundShow:f,mobileBordersShow:p,mobileBorderRadiusShow:m,mobileBoxShadowShow:h,handleToggleMobileSize:S,handleToggleMobileBackground:w,handleToggleMobileBorder:T,handleToggleMobileBorderRadius:E,handleToggleMobileBoxShadow:D,backgroundRepeatOptions:O,oneMobileBorderRadiusValue:N,setOneMobileBorderRadiusValue:P,mobileBorders:I,mobileBoxShadow:L})}):(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,children:(0,C.jsx)(Wp,{form:e,onBorderSideClear:t,elementSettings:i,paddingShow:a,paddingsExt:o,backgroundShow:s,bordersShow:c,borderRadiusShow:l,boxShadowShow:u,handleToggleShowPadding:g,handleTogglePadding:_,handleToggleBackground:v,handleToggleBorder:y,handleToggleBorderRadius:b,handleToggleBoxShadow:x,backgroundRepeatOptions:O,backgroundSizeOptions:k,backgroundImageEmpty:A,oneBorderRadiusValue:j,setOneBorderRadiusValue:M,boxShadow:F})})}),qp=[`borderTop`,`borderBottom`,`borderLeft`,`borderRight`],Jp=({elementSettings:e,formName:t})=>{let{__:n}=p.v(),r=i.et(),[a]=p.It.useForm(),{token:o}=p.Vt(),s=i.Wt(),c=i.cr(i.on),l=i.cr(i.fn),u=i.cr(i.cn),d=i.cr(i.an),[f,m]=(0,v.useState)({}),[h,g]=(0,v.useState)(!0),[_,y]=(0,v.useState)({}),[b,x]=(0,v.useState)({}),[S,w]=(0,v.useState)(!0),[T,E]=(0,v.useState)(e.customTable?.backgroundImage[0].value===``),[D,O]=(0,v.useState)(),[k,A]=(0,v.useState)(!1),[j,M]=(0,v.useState)(!1),[N,P]=(0,v.useState)(!1),[F,I]=(0,v.useState)(!1),[L,R]=(0,v.useState)(!1),[z,B]=(0,v.useState)(!1),[V,H]=(0,v.useState)(!1),[ee,U]=(0,v.useState)(!1),[W,G]=(0,v.useState)(!0),[K,q]=(0,v.useState)(!0),[J,Y]=(0,v.useState)(!0),[te,X]=(0,v.useState)(!1),[ne,re]=(0,v.useState)(`https://`),[ie,ae]=(0,v.useState)({}),[oe,Z]=(0,v.useState)(!1),[se,ce]=(0,v.useState)(!1),[le,ue]=(0,v.useState)(!1),[de,fe]=(0,v.useState)({}),pe=(0,v.useRef)(null),me=(0,v.useRef)(),he=p.It.useWatch([],a),ge=[{label:n(`Not defined`),value:`none`},{label:n(`Do not repeat background (no-repeat)`),value:`no-repeat`},{label:n(`Repeat background (repeat)`),value:`repeat`},{label:n(`Repeat background horizontally (repeat-x)`),value:`repeat-x`},{label:n(`Repeat background vertically (repeat-y)`),value:`repeat-y`}],_e=[{label:n(`Not defined`),value:``},{label:n(`Contain`),value:`contain`},{label:n(`Cover`),value:`cover`}],ve={width:``,style:``,color:``},ye=u&&d!==`bottom`,be=i.Cr,xe=t===`Edit selected table cells`||!1,[Se,Ce]=(0,v.useState)(null);(0,v.useEffect)(()=>{window?.navigator?.userAgent.includes(`Macintosh`)&&Ce(!0)},[]);let we=e=>{r({operation:i.Wr.SANDBOX_ELEMENT_TEXT,action:e,locale:`ru_RU`})},Te=[{key:`1`,label:n(`This element`),onClick:()=>we(`typograf`)},{key:`2`,label:n(`The whole email`),onClick:()=>we(`typograf_all`)}];(0,v.useEffect)(()=>{if(e){let t=e.border,n=e.boxShadow,r=e.customTable?.mobileBorder,i=e.customTable?.mobileBoxShadow,o=e.customTable?.cellBorders;fe(t),m(n),y(r),x(i),ae(o);let s=xe?e?.customTable?.cell_borderPosition:e?.customTable?.borderPosition,c=Object.keys(r).find(e=>r[e]?.width||r[e]?.style||r[e]?.color);a.setFieldsValue({...e,width:e.width?.value,widthDim:e.width?.dim,maxWidth:e.maxWidth?.value,maxWidthDim:e.maxWidth?.dim,minWidth:e.minWidth?.value,minWidthDim:e.minWidth?.dim,show:e.show?e.show:`all`,mobileAlign:e.mobileAlign?.value,mobileBorderPosition:c||`all`,mobileBorderWidth:r[c]?.width===null?``:r[c]?.width,mobileBorderColor:r[c]?.color||``,mobileBorderStyle:r[c]?.style||``,mobileBackgroundImage:e.mobileBackgroundImage[0].value===`none`?``:e.mobileBackgroundImage[0].value,mobileBackgroundPositionX:$(e.mobileBackgroundPositionX?.value),mobileBackgroundPositionY:$(e.mobileBackgroundPositionY?.value),mobileBackgroundRepeat:e.mobileBackgroundRepeat?.value?e.mobileBackgroundRepeat?.value:`none`,exportAsPicture:e?.exportAsPicture,paddingLeftRight:$(e.customTable?.paddingLeftRight.replace(/px$/,``)),paddingTopBottom:$(e.customTable?.paddingTopBottom.replace(/px$/,``)),paddingRight:$(e.customTable?.paddingRight.replace(/px$/,``)),paddingLeft:$(e.customTable?.paddingLeft.replace(/px$/,``)),paddingTop:$(e.customTable?.paddingTop.replace(/px$/,``)),paddingBottom:$(e.customTable?.paddingBottom.replace(/px$/,``)),backgroundColor:$(e.customTable?.backgroundColor),backgroundImage:$(e.customTable?.backgroundImage[0].value),backgroundPositionX:$(e.customTable?.backgroundPositionX),backgroundPositionY:$(e.customTable?.backgroundPositionY),backgroundRepeat:$(e.customTable?.backgroundRepeat),backgroundSize:$(e.customTable?.backgroundSize),borderAll:$(e.customTable?.borderAll),borderRadiusAll:$(e.customTable?.borderRadius.all),borderRadiusTopLeft:$(e.customTable?.borderRadius.topLeft),borderRadiusBottomLeft:$(e.customTable?.borderRadius.bottomLeft),borderRadiusTopRight:$(e.customTable?.borderRadius.topRight),borderRadiusBottomRight:$(e.customTable?.borderRadius.bottomRight),borderRadius:{all:$(e.customTable?.borderRadius.all),topLeft:$(e.customTable?.borderRadius.topLeft),topRight:$(e.customTable?.borderRadius.topRight),bottomLeft:$(e.customTable?.borderRadius.bottomLeft),bottomRight:$(e.customTable?.borderRadius.bottomRight)},borderTop:$(e.customTable?.borderTop),borderBottom:$(e.customTable?.borderBottom),borderLeft:$(e.customTable?.borderLeft),borderRight:$(e.customTable?.borderRight),borderPosition:s||`borderAll`,boxShadowInset:$(e.customTable?.boxShadow?.inset)||!1,boxShadowHOffset:$(e.customTable?.boxShadow?.hOffset),boxShadowVOffset:$(e.customTable?.boxShadow?.vOffset),boxShadowBlurRadius:$(e.customTable?.boxShadow?.blurRadius),boxShadowSpreadRadius:$(e.customTable?.boxShadow?.spreadRadius),boxShadowColor:$(e.customTable?.boxShadow?.color),mobileBoxShadowInset:$(e.customTable?.mobileBoxShadow?.inset)||!1,mobileBoxShadowHOffset:$(e.customTable?.mobileBoxShadow?.hOffset),mobileBoxShadowVOffset:$(e.customTable?.mobileBoxShadow?.vOffset),mobileBoxShadowBlurRadius:$(e.customTable?.mobileBoxShadow?.blurRadius),mobileBoxShadowSpreadRadius:$(e.customTable?.mobileBoxShadow?.spreadRadius),mobileBoxShadowColor:$(e.customTable?.mobileBoxShadow?.color),mobileBackgroundColor:$(e.customTable?.mobileBackgroundColor?.value===`none`?``:e.customTable?.mobileBackgroundColor?.value),mobileWidth:rl(e.customTable?.mobileWidth?.value),mobileWidthDim:e.customTable?.mobileWidth?.dim,mobileHeight:rl(e.customTable?.mobileHeight?.value),mobileHeightDim:e.customTable?.mobileHeight?.dim,mobileBorderRadiusAll:$(e.customTable?.mobileBorderRadius.all),mobileBorderRadiusTopLeft:$(e.customTable?.mobileBorderRadius.topLeft===null?e.customTable?.mobileBorderRadius.all:e.customTable?.mobileBorderRadius.topLeft),mobileBorderRadiusBottomLeft:$(e.customTable?.mobileBorderRadius.bottomLeft===null?e.customTable?.mobileBorderRadius.all:e.customTable?.mobileBorderRadius.bottomLeft),mobileBorderRadiusTopRight:$(e.customTable?.mobileBorderRadius.topRight===null?e.customTable?.mobileBorderRadius.all:e.customTable?.mobileBorderRadius.topRight),mobileBorderRadiusBottomRight:$(e.customTable?.mobileBorderRadius.bottomRight===null?e.customTable?.mobileBorderRadius.all:e.customTable?.mobileBorderRadius.bottomRight),cellBackgroundColor:$(e.customTable?.cellBackgroundColor),cell_borderPosition:$(`cell_borderAll`),cell_borderAll:$(e.customTable?.cell_borderAll),cell_borderTop:$(e.customTable?.cell_borderTop),cell_borderBottom:$(e.customTable?.cell_borderBottom),cell_borderLeft:$(e.customTable?.cell_borderLeft),cell_borderRight:$(e.customTable?.cell_borderRight),cell_paddingLeftRight:$(e.customTable?.cell_paddingLeftRight?.replace(/px$/,``)),cell_paddingTopBottom:$(e.customTable?.cell_paddingTopBottom?.replace(/px$/,``)),cell_paddingRight:$(e.customTable?.cell_paddingRight?.replace(/px$/,``)),cell_paddingLeft:$(e.customTable?.cell_paddingLeft?.replace(/px$/,``)),cell_paddingTop:$(e.customTable?.cell_paddingTop?.replace(/px$/,``)),cell_paddingBottom:$(e.customTable?.cell_paddingBottom?.replace(/px$/,``)),fontFamily:$(e.customTable?.fontFamily),fontSize:$(e.customTable?.fontSize),lineHeight:$(e.customTable?.lineHeight),textStrong:$(e.customTable?.textStrong),textItalic:$(e.customTable?.textItalic),textStrikethrough:$(e.customTable?.textStrikethrough),textUnderline:$(e.customTable?.textUnderline),textLink:$(e.customTable?.textLink),linkHref:$(e.customTable?.linkHref),linkTarget:$(e.customTable?.linkTarget),textColor:$(e.customTable?.textColor),textBackgroundColor:$(e.customTable?.textBackgroundColor),textAlign:$(e.customTable?.textAlign),valign:$(e.customTable?.textValign)}),!$(e.customTable?.borderRadius.all)&&($(e.customTable?.borderRadius.topLeft)||$(e.customTable?.borderRadius.bottomLeft)||$(e.customTable?.borderRadius.topRight)||$(e.customTable?.borderRadius.bottomRight))?g(!1):g(!0),!$(e.customTable?.mobileBorderRadius.all)&&$(e.customTable?.mobileBorderRadius.topLeft)||$(e.customTable?.mobileBorderRadius.bottomLeft)||$(e.customTable?.mobileBorderRadius.topRight)||$(e.customTable?.mobileBorderRadius.bottomRight)?w(!1):w(!0),E(e.customTable?.backgroundImage[0].value===``),O(e=>t[s]?.width||t[s]?.style||t[s]?.color?!0:e),M(!!e.borderRadius.all||!!e.borderRadius.topLeft||!!e.borderRadius.bottomLeft||!!e.borderRadius.topRight||!!e.borderRadius.bottomRight),I(!!e.boxShadow),ue(!!e.width?.value||!!e.minWidth?.value||!!e.maxWidth?.value),B(!!e.customTable?.mobileWidth.value),ce(!!e.exportAsPicture)}},[a,e]),(0,v.useEffect)(()=>{let t=a.getFieldValue(`linkHref`);typeof e.customTable?.linkHref==`string`&&Z(!0),pe&&!t&&(Z(!1),a.setFieldsValue({linkHref:null})),pe.current=t||null},[he?.textLink,he?.linkHref,e.customTable?.linkHref,a]),(0,v.useEffect)(()=>{e.customTable?.linkHref&&el(e.customTable?.linkHref||``,re),a.setFieldsValue({linkHref:typeof e.customTable?.linkHref==`string`?e.customTable.linkHref:`https://`})},[a,e,re]);let Ee=e=>{a.setFieldValue(`linkHref`,e===`mergetag`?``:e),re(e)},De=t=>{let n=a.getFieldsValue(!0),o=Object.keys(t)[0],s,c=qp.includes(o)&&n[o]?{...n[o],width:n[o].width===``?n.borderAll?.width||`1`:n[o].width,color:n[o].color===``?n.borderAll?.color||be:n[o].color,style:n[o].style===``?n.borderAll?.style||`solid`:n[o].style}:null,l=[`top`,`right`,`bottom`,`left`],u=`em-mob-border_`,d=e=>({...i.ci[e],classNamePrefix:`${u}${e}-`}),f=(e,t,n,r)=>l.reduce((i,a)=>(i[a]={...e,[n]:a===t?r:e[n],classNamePrefix:`${u}${a}-`},i),{}),p=(e,t,n,r)=>{let a=r.mobileBorderPosition,o=a===`all`,s=t===``||t==null,c;c=o?{all:{...n.all,[e]:s?null:t,classNamePrefix:`${u}all-`},...l.reduce((e,t)=>({...e,[t]:d(t)}),{})}:s?{...n,[a]:d(a),all:{...i.ci.all}}:n.all?.color!=null&&n.all?.width!=null&&n.all?.style!=null?{...f(n.all,a,e,t),all:{...i.ci.all}}:{...n,[a]:{...n[a],[e]:t,classNamePrefix:`${u}${a}-`},all:{...i.ci.all}};let p=o?c.all:c[a],m={mobileBorderColor:p?.color??be,mobileBorderWidth:p?.width??1,mobileBorderStyle:p?.style??`solid`};return{newBorders:c,sending:{mobileBorder:c},formUpdates:m}};switch(o){case`exportAsPicture`:s={exportAsPicture:n.exportAsPicture};break;case`boxShadowInset`:case`boxShadowHOffset`:case`boxShadowVOffset`:case`boxShadowBlurRadius`:case`boxShadowSpreadRadius`:case`boxShadowColor`:s={boxShadow:{hOffset:n.boxShadowHOffset,vOffset:n.boxShadowVOffset,blurRadius:n.boxShadowBlurRadius,spreadRadius:n.boxShadowSpreadRadius,color:n.boxShadowColor,inset:n.boxShadowInset}};break;case`width`:s={[o]:{value:t[o],dim:n.widthDim}};break;case`widthDim`:s={width:{value:n.width,dim:t[o]}};break;case`maxWidth`:s={[o]:{value:t[o],dim:n.maxWidthDim}};break;case`maxWidthDim`:s={maxWidth:{value:n.maxWidth,dim:t[o]}};break;case`minWidth`:s={[o]:{value:t[o],dim:n.minWidthDim}};break;case`minWidthDim`:s={minWidth:{value:n.minWidth,dim:t[o]}};break;case`backgroundImage`:E(t[o]===``),s={[o]:[{...e.customTable?.backgroundImage[0],value:t[o]}],backgroundSize:`cover`},a.setFieldsValue({backgroundColor:``});break;case`backgroundColor`:E(!0),s=t,a.setFieldsValue({backgroundImage:``,backgroundPositionX:``,backgroundPositionY:``,backgroundRepeat:``,backgroundSize:``});break;case`borderRadiusAll`:case`borderRadiusTopLeft`:case`borderRadiusBottomLeft`:case`borderRadiusTopRight`:case`borderRadiusBottomRight`:s={borderRadius:{[wc[o]]:+t[o]}};break;case`mobileWidth`:s={[o]:{classNamePrefix:`em-mob-width-`,value:t[o],dim:n.mobileWidthDim}};break;case`mobileWidthDim`:s={mobileWidth:{classNamePrefix:`em-mob-width-`,value:n.mobileWidth||100,dim:t[o]}};break;case`mobileHeight`:s={[o]:{classNamePrefix:`em-mob-height-`,value:t[o],dim:n.mobileHeightDim}};break;case`mobileBorderStyle`:case`mobileBorderColor`:case`mobileBorderWidth`:let l={mobileBorderStyle:`style`,mobileBorderColor:`color`,mobileBorderWidth:`width`}[o],{newBorders:u,sending:d,formUpdates:f}=p(l,t[o],_,n);Object.assign(n,f),y(u),s=d;break;case`mobileBorderPosition`:a.setFieldsValue({mobileBorderWidth:_[t[o]].width||``,mobileBorderColor:_[t[o]].color||``,mobileBorderStyle:_[t[o]].style||``});break;case`mobileBorderRadiusAll`:case`mobileBorderRadiusTopLeft`:case`mobileBorderRadiusBottomLeft`:case`mobileBorderRadiusTopRight`:case`mobileBorderRadiusBottomRight`:s={mobileBorderRadius:{[Tc[o]]:t[o],classNamePrefix:`em-mob-border_radius_`+Tc[o]+`-`}};break;case`mobileBoxShadowInset`:case`mobileBoxShadowHOffset`:case`mobileBoxShadowVOffset`:case`mobileBoxShadowBlurRadius`:case`mobileBoxShadowSpreadRadius`:case`mobileBoxShadowColor`:s={mobileBoxShadow:{hOffset:n.mobileBoxShadowHOffset,vOffset:n.mobileBoxShadowVOffset,blurRadius:n.mobileBoxShadowBlurRadius,spreadRadius:n.mobileBoxShadowSpreadRadius,color:n.mobileBoxShadowColor,inset:n.mobileBoxShadowInset,classNamePrefix:`em-mob-box_shadow-`}};break;case`mobileBackgroundColor`:s={[o]:{classNamePrefix:`em-mob-background_color-`,value:t[o]}};break;case`mobileBackgroundImage`:s={[o]:[{...e.mobileBackgroundImage[0],classNamePrefix:`em-mob-background_image-`,value:t[o]}]};break;case`mobileBackgroundPositionX`:s={[o]:{classNamePrefix:`em-mob-background_position_x-`,value:t[o]}};break;case`mobileBackgroundPositionY`:s={[o]:{classNamePrefix:`em-mob-background_position_x-`,value:t[o]}};break;case`mobileBackgroundRepeat`:s={[o]:{classNamePrefix:`em-mob-background_repeat-`,value:t[o]}};break;case`mobileAlign`:s={[o]:{classNamePrefix:`em-mob-table_align-`,value:t[o]}};break;case`borderPosition`:s=t,r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:s});break;case`borderAll`:t[o]?.style===``?a.setFieldsValue({borderAll:ve}):a.setFieldsValue({borderTop:ve,borderBottom:ve,borderLeft:ve,borderRight:ve}),s=t;break;case`borderTop`:a.setFieldsValue({borderTop:c}),t[o]?.style===``?a.setFieldsValue({borderTop:ve}):a.setFieldsValue({borderAll:ve}),s=t;break;case`borderBottom`:a.setFieldsValue({borderBottom:c}),t[o]?.style===``?a.setFieldsValue({borderBottom:ve}):a.setFieldsValue({borderAll:ve}),s=t;break;case`borderLeft`:a.setFieldsValue({borderLeft:c}),t[o]?.style===``?a.setFieldsValue({borderLeft:ve}):a.setFieldsValue({borderAll:ve}),s=t;break;case`borderRight`:a.setFieldsValue({borderRight:c}),t[o]?.style===``?a.setFieldsValue({borderRight:ve}):a.setFieldsValue({borderAll:ve}),s=t;break;case`cell_borderPosition`:s=t,r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:s});break;case`fontSize`:case`lineHeight`:if(t[o]===null||t[o]===``||t[o]===void 0)return;s=t;break;default:s=t}o!==`borderPosition`&&r({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:e.type,settings:s})},Oe=(0,v.useCallback)(()=>{Ap(a,xe,O,X,D,fe,``)},[a,xe,D,``]),ke=(0,v.useCallback)(()=>{jp(a,A,k,_,y,r,e)},[a,k,_,r,e]),Ae=(0,v.useCallback)(()=>{Mp(a,M,j,g,r,e,``)},[a,j,g,r,e,``]),je=(0,v.useCallback)(()=>{Np(a,P,N,r,e)},[a,N,r,e]),Me=(0,v.useCallback)(()=>{Pp(a,I,F,r,e)},[a,F,r,e]),Ne=(0,v.useCallback)(()=>{Fp(a,R,L,r,e)},[a,L,r,e]),Pe=(0,v.useCallback)(()=>{Ip(a,B,z,r,e)},[a,z,r,e]),Fe=(0,v.useCallback)(()=>{Lp(H)},[H]),Ie=(0,v.useCallback)(()=>{Rp(a,U,ee,r,e)},[a,ee,r,e]),Le=(0,v.useCallback)(()=>{zp(a,G,W,r,e)},[a,W,r,e]),Re=(0,v.useCallback)(()=>{Bp(a,q,K,r,e)},[a,K,r,e]),ze=(0,v.useCallback)(()=>{Vp(Y)},[Y]),Be=(0,v.useCallback)(()=>{Hp(a,q,K,r,e)},[a,K,r,e]);return(0,C.jsxs)(p.It,{form:a,layout:`vertical`,name:t,initialValues:{paddingTop:``,paddingLeft:``,paddingRight:``,paddingBottom:``,cell_paddingTop:``,cell_paddingLeft:``,cell_paddingRight:``,cell_paddingBottom:``,cell_paddingLeftRight:``,cell_paddingTopBottom:``,borderAll:{width:``,style:``,color:``},borderTop:{width:``,style:``,color:``},borderBottom:{width:``,style:``,color:``},borderLeft:{width:``,style:``,color:``},borderRight:{width:``,style:``,color:``},cellBackgroundColor:``,backgroundImageForCell:``,cellBackgroundPositionX:``,cellBackgroundPositionY:``,cellBackgroundRepeat:``,cellBackgroundSize:``,backgroundColor:``,backgroundImage:``,backgroundPositionX:``,backgroundPositionY:``,backgroundRepeat:``,backgroundSize:``,exportAsPicture:!1,show:`all`,width:{value:``,dim:``},maxWidth:{value:``,dim:``},minWidth:{value:``,dim:``},align:``,mobileAlign:``,border:``,boxShadow:``,borderPosition:``,borderColor:``,borderWidth:``,borderStyle:``,borderRadiusAll:``,RadiusTopLeft:``,RadiusBottomLeft:``,RadiusTopRight:``,RadiusBottomRight:``,mobileWidth:``,mobileWidthDim:``,mobileHeight:``,mobileHeightDim:`px`,mobileBorder:``,mobileBorderPosition:``,mobileBorderColor:``,mobileBorderWidth:``,mobileBorderStyle:``,mobileBorderAll:``,mobileBorderTop:``,mobileBorderBottom:``,mobileBorderLeft:``,mobileBorderRight:``,mobileBoxShadow:``,mobileBackgroundColor:``,mobileBackgroundImage:``,cell_border:``,cell_borderColor:``,cell_borderWidth:``,cell_borderStyle:``,cell_borderPosition:`cell_borderAll`,cell_borderAll:{color:``,width:``,style:``},cell_borderTop:{color:``,width:``,style:``},cell_borderBottom:{color:``,width:``,style:``},cell_borderLeft:{color:``,width:``,style:``},cell_borderRight:{color:``,width:``,style:``},cell_borderRadiusAll:``,cell_RadiusTopLeft:``,cell_RadiusBottomLeft:``,cell_RadiusTopRight:``,cell_RadiusBottomRight:``,fontFamily:``,fontSize:``,lineHeight:``,textStrong:``,textItalic:``,textStrikethrough:``,textUnderline:``,textLink:``,linkHref:``,textColor:``,textAlign:``,verticalAlign:``,textBackgroundColor:``,valign:``},onValuesChange:De,autoComplete:`off`,className:`element-controls`,style:{padding:0,display:`flex`,flexDirection:`column`},children:[!ye&&(0,C.jsx)(p.K,{title:n(`To change the appearance of the element on the mobile device, edit the fields below. If the fields remain empty, the desktop styles will be applied to the mobile version.`),placement:`bottom`,children:(0,C.jsx)(p.Q,{className:`selected_form-mobile-props-title`,message:n(`Appearance on mobile devices`),type:`info`})}),xe?(0,C.jsx)(`div`,{id:`selected_element_form_desktop_props`,children:(0,C.jsx)(Up,{form:a,onBorderSideClear:De,formValues:he,elementSettings:e,appConfig:s,token:o,isMacOS:Se,__:n,handleToggleShowPaddingCell:ze,handleTogglePaddingCell:Be,handleToggleBackground:Fe,handleToggleBorder:Oe,handleToggleBorderRadius:Ae,paddingCellShow:J,paddingsExt:K,backgroundShow:V,cellBordersShow:te,borderRadiusShow:j,oneBorderRadiusValue:h,setOneBorderRadiusValue:g,backgroundImageEmpty:T,backgroundRepeatOptions:ge,backgroundSizeOptions:_e,sendAction:we,typografItems:Te,textInputRef:me,linkProtocol:ne,handleLinkProtocolsChange:Ee,isCodeVision:ye})}):(0,C.jsx)(Kp,{form:a,onBorderSideClear:De,elementSettings:e,handleToggleShowPadding:Le,handleTogglePadding:Re,handleToggleBackground:Fe,handleToggleBorder:Oe,handleToggleBorderRadius:Ae,handleToggleBoxShadow:Me,handleToggleMobileSize:Pe,handleToggleMobileBackground:Ie,handleToggleMobileBorder:ke,handleToggleMobileBorderRadius:je,handleToggleMobileBoxShadow:Ne,paddingShow:W,paddingsExt:K,backgroundShow:V,bordersShow:D,borderRadiusShow:j,boxShadowShow:F,mobileSizeShow:z,mobileBackgroundShow:ee,mobileBordersShow:k,mobileBorderRadiusShow:N,mobileBoxShadowShow:L,oneBorderRadiusValue:h,setOneBorderRadiusValue:g,oneMobileBorderRadiusValue:S,setOneMobileBorderRadiusValue:w,backgroundImageEmpty:T,backgroundRepeatOptions:ge,backgroundSizeOptions:_e,boxShadow:f,mobileBorders:_,mobileBoxShadow:b,elementViewType:c,mobileViewActive:l}),` `]})};Jp.propTypes={elementSettings:b.default.object.isRequired};var Yp=({className:e=null,formSettings:t,emailElementType:n,formName:r})=>{let a=i.lr(),o=i.A(),s=(0,v.useRef)(),c=i.cr(i.in),l=i.cr(u.C),d=i.cr(u.d),f=i.ia(i.ar()),p=n===`email`?l:d,[m,h]=(0,v.useState)(p);return(0,v.useEffect)(()=>{h(p.type===i.zr.CAROUSEL||p.type===i.zr.IMG?t.settings:p)},[p,t.settings]),_.g(e=>{let t=e.data.operation,n=e.data.action;if(t===i.Wr.APPLICATION_ACTION){function r(e,t=null){let n={[e]:t||!m[e]};o(n,m.type),a(u.W(n)),h(e=>({...e,...n}))}n===`toggle_strong`&&r(`textStrong`),n===`toggle_italic`&&r(`textItalic`),n===`toggle_underline`&&r(`textUnderline`),n===`toggle_strikethrough`&&r(`textStrikethrough`),n===`textAlign_left`&&r(`textAlign`,`left`),n===`textAlign_right`&&r(`textAlign`,`right`),n===`textAlign_center`&&r(`textAlign`,`center`)}}),(0,C.jsx)(`div`,{className:`selected-element-panel`,children:(0,C.jsx)(Xi,{nodeRef:s,in:c===i.si,timeout:300,classNames:`transition`,children:(0,C.jsxs)(`div`,{ref:s,className:(0,E.default)(`selected-element-panel-content`,{[e]:e}),children:[t?.type===`advanced`&&t?.content?(0,C.jsx)(v.Fragment,{children:f.getReactElement(t.content)},t.instanceKey):null,(p.type===i.zr.IMG||p.type===i.zr.COUNTDOWN||p.type===i.zr.VIDEO)&&(0,C.jsx)(tf,{elementSettings:p}),p.type===i.zr.TEXT&&(0,C.jsx)(uf,{elementSettings:p}),p.type===i.zr.LINK&&(0,C.jsx)(bf,{elementSettings:p}),p.type===i.zr.TABLE&&(0,C.jsx)(yf,{elementSettings:p}),p.type===i.zr.CUSTOM_TABLE&&(0,C.jsx)(Jp,{elementSettings:p,formName:r}),(p.type===i.zr.TD||p.type===i.zr.STRUCTURE||p.type===i.zr.GROUP||p.type===i.zr.COLUMN)&&(0,C.jsx)(Mf,{elementSettings:p}),p.type===i.zr.VAR&&(0,C.jsx)(Uf,{elementSettings:p}),p.type===i.zr.BUTTON&&(0,C.jsx)(Hf,{elementSettings:p}),p.type===i.zr.DIV&&(0,C.jsx)(Ff,{elementSettings:p}),p.type===i.zr.VINDENT&&(0,C.jsx)(Cf,{elementSettings:p}),p.type===i.zr.FLOAT_BLOCK&&(0,C.jsx)(zf,{elementSettings:p}),t.type===i.zr.CAROUSEL&&(0,C.jsx)(Jf,{elementSettings:t}),t.type===i.zr.ACCORDION&&(0,C.jsx)(Xf,{elementSettings:t}),t.type===i.zr.SOCIAL&&(0,C.jsx)(Op,{elementSettings:t})]})})})};Yp.propTypes={className:b.default.string,formName:b.default.string};function Xp(){return!!document.querySelector(`.selected-element-panel__columns-settings__links__add`)?.closest(`.selected-element-panel`)}var Zp=({emailElementType:e,isSelectedElement:t=!1,selectedElement:n={parent:!1}})=>{let{__:r}=p.v(),a=i.lr(),o=i.et(),[s]=p.It.useForm(),c=(0,v.useRef)(),l=(0,v.useRef)(),d=i.cr(u.C),f=i.cr(u.d),h=i.Wt(),g=n||(e===`email`?d:f),[_,y]=(0,v.useState)(g.floatBlocks?.wrap),[b,x]=(0,v.useState)(g.floatBlocks?.dirRevers),[S,w]=(0,v.useState)(null),[T,E]=(0,v.useState)(0),[D,O]=(0,v.useState)([]),k=i.cr(i.on),A=(0,v.useCallback)(t=>{a(e===`email`?u.L(t):u._(t))},[a,e]);(0,v.useEffect)(()=>{if(g&&JSON.stringify(g)!==`{}`&&s._init){if(s.resetFields(),s.setFieldsValue({gap:g.floatBlocks?.gap,gapMobile:g.floatBlocks?.gapMobile,gapDim:`px`,valign:g.floatBlocks?.valign}),g.floatBlocks?.items.length>0){let t=g.floatBlocks.items.reduce((e,t)=>e+t.width,0),n=g.floatBlocks.items.map(e=>((e.width||0)/t*100)?.toFixed(1));E(t);function e(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}!e(n,D)&&g.changeKey!==`gap`&&O(n),g.floatBlocks.items.forEach((e,t)=>s.setFieldsValue({[`width-`+t]:e.width||0})),g.floatBlocks.items.length>=8?document.querySelector(`.selected-element-panel__columns-settings__links__add`)?.classList.add(`noactive`):document.querySelector(`.selected-element-panel__columns-settings__links__add`)?.classList.contains(`noactive`)&&document.querySelector(`.selected-element-panel__columns-settings__links__add`)?.classList.remove(`noactive`)}y(g.floatBlocks?.wrap)}},[s,g,S,D]);let j=0;g.floatBlocks?.items.length>0&&(j=g.floatBlocks.items.length);let M=(e,t)=>{Object.keys(t).forEach(t=>{if(t.includes(`width`)){let n=parseInt(t.match(/\d+/));s.setFieldsValue({[t]:e.items[n]})}})},[N,P]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let e=()=>P(!0),t=()=>P(!1);return document.addEventListener(`keyup`,t),document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keyup`,t),document.removeEventListener(`keydown`,e)}},[]);let F=e=>{l.current&&N&&clearTimeout(l.current),l.current=setTimeout(()=>n(e),50);function n(e){let n=s.getFieldsValue(!0),r=Object.keys(e)[0];if(w(r),r.includes(`width`)){if(n[r]&&n[r]>=30){let a={items:[],gap:n.gap,valign:n.valign,activateSection:t?void 0:`structure`},s=0;if(document.querySelectorAll(`.selected-element-panel__columns-settings__controls__column`).length>1){s=parseFloat(Object.keys(e)[0].substring(Object.keys(e)[0].length-1));let t=n[`width-`+(s+1)]?s+1:0,r=T;Object.keys(n).forEach(e=>{e.includes(`width`)&&e.indexOf(`width-`+t)===-1&&(r-=n[e])}),n[`width-`+t]=r}Object.keys(n).forEach(e=>{e.includes(`width`)&&a.items.push(n[e])}),o({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:`floatBlocksWidths`,settings:a}),A({...g,activateSection:t?void 0:`structure`,floatBlocks:{...g.floatBlocks,...a,items:g.floatBlocks.items.map((e,t)=>({...g.floatBlocks.items[t],width:a.items[t]}))},changeKey:r})}}else if(r===`gap`){let a={items:g.floatBlocks.items.map(e=>e.width),gap:g.floatBlocks.gap},s=a.items.reduce((e,t)=>e+t,0)+(a.items.length-1)*a.gap,c=n.gap,l=s-(a.items.length-1)*c;if(l>a.items.length*30||g.floatBlocks.gap-e>=0){let e=(e,t)=>Math.round(t*e/100),u=a.items.map((t,n)=>e(D[n],l)),d=s-(u.reduce((e,t)=>e+t,0)+(a.items.length-1)*c);if(d!==0){let e=u.length-Math.abs(d);u=u.map((t,n)=>e<=n?t+(d>0?1:-1):t)}let f={items:u,gap:c||0};M(f,n),o({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:`floatBlocksGap`,settings:f,editFromStructure:Xp()}),A({...g,activateSection:t?void 0:`structure`,floatBlocks:{...g.floatBlocks,...f,items:g.floatBlocks.items.map((e,t)=>({...e,width:f.items[t]}))},changeKey:r})}}else if(r===`valign`){let e={valign:n.valign};o({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:`floatBlocksValign`,settings:e,editFromStructure:Xp()}),A({...g,activateSection:t?void 0:`structure`,floatBlocks:{...g.floatBlocks,...e},changeKey:r})}else if(r===`gapMobile`){let n={mobileHeight:{classNamePrefix:`em-mob-height-`,value:e[r],dim:`px`}};o({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:`floatBlocksGapMobile`,settings:n}),A({...g,activateSection:t?void 0:`structure`,floatBlocks:{...g.floatBlocks,gapMobile:n.mobileHeight.value},changeKey:r})}setTimeout(()=>c?.current&&c.current.focus({cursor:`end`}),600)}},I=()=>{let e=s.getFieldsValue(!0),n=g.floatBlocks.items.map(e=>e.width),r={items:[],gap:e.gap},a=n.reduce((e,t)=>e+t,0),c=n.length,l=Math.ceil(T/c)*c,u=l/c,d=a-l;if(r.items=Array(c).fill(u),d!==0){let e=n.length-Math.abs(d);r.items=r.items.map((t,n)=>e<=n?t+(d>0?1:-1):t)}M(r,e),o({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:`floatBlocksWidths`,settings:r,editFromStructure:Xp()}),A({...g,activateSection:t?void 0:`structure`,floatBlocks:{...g.floatBlocks,...r,items:g.floatBlocks.items.map((e,t)=>({...e,width:r.items[t]}))},changeKey:`width`})},L=e=>{let n=s.getFieldsValue(!0),r=g.floatBlocks.items.map(e=>e.width),a=g.floatBlocks.gap||20,c=e.cols-r.length,l=[],u=r.reduce((e,t)=>e+t,0);e.cols>=r.length?u-=a*c:u+=a*Math.abs(c);let d=Math.round(u/e.cols);function f(t,n){let r=[];for(let i=0;i<t;i++)r.push(e.width?.[i]?Math.round(u/100*e.width?.[i]):n);return r}l=f(e.cols,d);let p=u-l.reduce((e,t)=>e+t,0);if(p!==0){let e=l.map((e,t)=>[t,e]).filter(e=>e[1]>30),t=e.length-Math.abs(p);e=e.map((e,n)=>{let r=t<=n?e[1]+(p>0?1:-1):e[1];return[e[0],r]}),e.map(e=>(l[e[0]]=e[1],e))}let m={items:l,gap:n.gap||20},h=l.reduce((e,t)=>e+t,0);O(l.map(e=>(e/h*100)?.toFixed(1))),o({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:`floatBlocksPreset`,settings:m,editFromStructure:Xp()}),A({...g,activateSection:t?void 0:`structure`,floatBlocks:{...g.floatBlocks,...m,items:m.items.map((e,t)=>({width:e,current:!1}))},changeKey:`width`})},R=()=>{let e=s.getFieldsValue(!0);if(j<8){let n=g.floatBlocks.items.map(e=>e.width),r=g.floatBlocks.gap,a=n.reduce((e,t)=>e+(t>30?t:0),0),s=(a-30-r)/a,c=n.map(e=>e>30?Math.round(e*s):e).reduce((e,t)=>e+(t>30?t:0),0),l=n.map(e=>e>30?Math.round(e*s):e);l.push(30);let u=a-c-30-r;if(u!==0){let e=l.map((e,t)=>[t,e]).filter(e=>e[1]>30),t=e.length-Math.abs(u);e=e.map((e,n)=>{let r=t<=n?e[1]+(u>0?1:-1):e[1];return[e[0],r]}),e.map(e=>(l[e[0]]=e[1],e))}o({operation:i.Wr.SANDBOX_FLOATBLOCK_ADD,settings:{gap:e.gap,gapMobile:e.gapMobile,minWidth:30},editFromStructure:Xp()}),A({...g,activateSection:t?void 0:`structure`,floatBlocks:{...g.floatBlocks,items:l.map((e,t)=>({width:e,current:g.floatBlocks.items[t]?.current||!1}))},changeKey:`width`})}else document.querySelector(`.selected-element-panel__columns-settings__links__add`)?.classList.add(`noactive`)},z=e=>{let n=s.getFieldsValue(!0),r=0;document.querySelectorAll(`.selected-element-panel__columns-settings__controls__column`).forEach((t,n)=>{t===e.target.closest(`.selected-element-panel__columns-settings__controls__column`)&&(r=n)});let a=+g.floatBlocks.gap,c=+g.floatBlocks.items[r].width+a,l=g.floatBlocks.items.map(e=>+e.width),u=(l.length-1)*a,d=l.reduce((e,t)=>e+t,0)+u,f=l.length-1,p=Math.floor(c/f),m=l.filter((e,t)=>t!==r).map(e=>e+p),h=d-(m.reduce((e,t)=>e+t,0)+(l.length-2)*a);if(h!==0){let e=m.length-Math.abs(h);m=m.map((t,n)=>e<=n?t+(h>0?1:-1):t)}o({operation:i.Wr.SANDBOX_FLOATBLOCK_REMOVE,settings:{removedBlockIndex:r,gap:n.gap},editFromStructure:Xp()}),A({...g,activateSection:t?void 0:`structure`,floatBlocks:{...g.floatBlocks,items:m.map((e,t)=>({width:e,current:g.floatBlocks.items.filter((e,t)=>t!==r)[t].current}))},changeKey:`width`})},B=e=>{y(e),o({operation:i.Wr.SANDBOX_FLOATBLOCK_WRAP,settings:{wrap:!_}}),A({...g,activateSection:t?void 0:`structure`,floatBlocks:{...g.floatBlocks,wrap:!_},changeKey:`wrap`})},V=e=>{x(e),o({operation:i.Wr.SANDBOX_FLOATBLOCK_DIR,settings:{dirRevert:!b}}),A({...g,activateSection:t?void 0:`structure`,floatBlocks:{...g.floatBlocks,dirRevert:!b},changeKey:`dir`})},H=()=>setTimeout(()=>c?.current&&c.current.focus({cursor:`end`}),300);return g.floatBlocks&&g.floatBlocks.items.length>0&&(0,C.jsx)(p.It,{layout:`vertical`,form:s,name:`float_blocks_settings_form`,autoComplete:`off`,initialValues:{gap:g.floatBlocks?.gap||0,gapDim:`px`,gapMobile:g.floatBlocks?.gapMobile||0,valign:g.floatBlocks?.valign||`top`,...g.floatBlocks?.items.reduce((e,{width:t},n)=>(e[`width-${n}`]=t,e),{})},onValuesChange:F,onFieldsChange:H,className:`element-controls`,children:(0,C.jsxs)(`div`,{className:`selected-element-panel__columns-settings`,style:{paddingTop:h.switchDesktopMobilePropsEnabled||h.stepToOtherElementEnabled||h.deleteButtonEnabled||g.type===`structure`?0:24},children:[g.floatBlocks.items.length===1&&(0,C.jsx)(p.Q,{style:{marginBottom:10},message:r(`The selected element is in the block that supports a multicolumn structure. To add a new column, click the "Add a column" button.`),type:`info`}),k!==`mobile`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`div`,{className:`selected-element-panel__columns-settings__header`,children:[(0,C.jsx)(`span`,{className:`selected-element-panel__columns-settings__header-title`,children:r(`Columns`)}),(0,C.jsxs)(`div`,{className:`selected-element-panel__columns-settings__links`,children:[(0,C.jsxs)(`span`,{className:`selected-element-panel__columns-settings__links__add`,onClick:R,children:[(0,C.jsx)(m.d,{icon:`PlusCircleOutlined`,size:16,strokeWidth:h.iconStrokeWidth}),` `,r(`Add column`)]}),g.floatBlocks.items.length>1&&(0,C.jsx)(`span`,{onClick:I,children:(0,C.jsxs)(p.K,{title:r(`Make columns the same width.`),children:[(0,C.jsx)(m.d,{icon:`ColumnWidthOutlined`}),` `,r(`Equalize`)]})})]})]}),g.floatBlocks.items.length>1&&(0,C.jsx)(p.It.Item,{style:{marginBottom:16},children:(0,C.jsx)(`div`,{className:`selected-element-panel__columns-settings__controls`,children:g.floatBlocks.items.map((e,t)=>(0,C.jsxs)(`div`,{className:`selected-element-panel__columns-settings__controls__column `+(e.current?`current`:``),style:{width:e.width/T*100+`%`},children:[g.floatBlocks.items.length>1&&(0,C.jsx)(`span`,{className:`selected-element-panel__columns-settings__controls__column__remove`,onClick:z,children:(0,C.jsx)(m.d,{icon:`DeleteOutlined`,style:{color:`#ff4d4f`}})}),(0,C.jsx)(`div`,{className:`selected-element-panel__columns-settings__controls__field`,children:(0,C.jsx)(p.It.Item,{label:``,name:`width-`+t,children:(0,C.jsx)(p.Tt,{min:30,value:e.width||0,placeholder:r(`Width`),ref:S===`width-`+t&&c})})})]},`floatblock-`+t))})}),(0,C.jsxs)(`div`,{className:`columns-presets`,children:[(0,C.jsx)(p.Rt,{onClick:()=>{L({cols:1})},children:(0,C.jsx)(m.d,{icon:`LayoutCol1`})}),(0,C.jsx)(p.Rt,{onClick:()=>{L({cols:2})},children:(0,C.jsx)(m.d,{icon:`LayoutCol2`})}),(0,C.jsx)(p.Rt,{onClick:()=>{L({cols:2,width:[66,34]})},children:(0,C.jsx)(m.d,{icon:`LayoutCol2WideLeft`})}),(0,C.jsx)(p.Rt,{onClick:()=>{L({cols:2,width:[34,66]})},children:(0,C.jsx)(m.d,{icon:`LayoutCol2WideRight`})}),(0,C.jsx)(p.Rt,{onClick:()=>{L({cols:3})},children:(0,C.jsx)(m.d,{icon:`LayoutCol3`})}),(0,C.jsx)(p.Rt,{onClick:()=>{L({cols:4})},children:(0,C.jsx)(m.d,{icon:`LayoutCol4`})})]})]}),g.floatBlocks.items.length>1&&(0,C.jsxs)(C.Fragment,{children:[k===`mobile`&&(0,C.jsx)(`div`,{style:{marginBottom:24},children:(0,C.jsx)(p.bt,{id:`column-wrap`,label:r(`Line break on mobile devices`),size:`small`,disabled:g.floatBlocks?.wrap===void 0,checked:_,onChange:B,labelStyle:{position:`relative`,top:2}})}),k!==`mobile`&&(0,C.jsx)(`div`,{style:{marginBottom:24},children:(0,C.jsx)(p.bt,{id:`column-dir-revers`,label:r(`Reverse order on desktop`),size:`small`,disabled:g.floatBlocks?.wrap===void 0,checked:b,onChange:V,labelStyle:{position:`relative`,top:2}})})]}),g.floatBlocks.items.length>1&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Nt,{className:`selected-td-form__divider`}),(0,C.jsxs)(p.At,{gutter:10,children:[(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.M,{title:r(`Vertical alignment`),titleStyle:{paddingTop:20},children:(0,C.jsx)(p.It.Item,{name:`valign`,style:{marginBottom:0},children:(0,C.jsx)(p.C,{disabled:g.floatBlocks.items.length<=1,strokeWidth:h.iconStrokeWidth,labels:{alignTop:r(`Align top`),alignMiddle:r(`Center vertically`),alignBottom:r(`Align bottom`)}})})})}),(0,C.jsxs)(C.Fragment,{children:[k!==`mobile`&&(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.M,{title:r(`Indent between columns`),titleStyle:{paddingTop:20},children:(0,C.jsx)(p.It.Item,{name:`gap`,style:{marginBottom:20},children:(0,C.jsx)(p.I,{min:0,disabled:g.floatBlocks.items.length<=1,placeholder:r(`Indent between columns`),prefix:(0,C.jsx)(m.d,{icon:`ColumnWidthOutlined`}),addonAfter:`px`,ref:S===`gap`&&c})})})}),k===`mobile`&&(0,C.jsx)(p.kt,{span:12,children:(0,C.jsx)(p.M,{title:r(`Indent in mobile`),titleStyle:{paddingTop:20},children:(0,C.jsx)(p.It.Item,{name:`gapMobile`,style:{marginBottom:20},children:(0,C.jsx)(p.I,{min:0,disabled:g.floatBlocks.items.length<=1,placeholder:r(`Indent in mobile`),prefix:(0,C.jsx)(m.d,{icon:`ColumnHeightOutlined`}),addonAfter:`px`})})})})]})]})]})]})})};Zp.propTypes={selectedElement:b.default.shape({parent:b.default.string})};var Qp=()=>{},$p=({email:e,formSettings:t,onClosePanel:n=Qp})=>{let{__:r}=p.v(),a=i.Z(),o=i.lr(),s=i.et(),c=Object.prototype.hasOwnProperty.call(e,`type`)?i.wr:i.Br,l=i.cr(u.C),d=i.cr(u.d),f=i.cr(i.mn),m=c===`email`?l:d,h=Object.keys(t).length>0?t.settings:m,g=t?.type===`advanced`&&!!t?.content,_=!!t?.extraTabs?.length,y=i.Wt(),b=h.type===`customTable`,x=!!h.type&&!!h.floatBlocks?.items.length>0&&!!h.floatBlocks?.items.filter(e=>!!e.width).length>0,S=(0,v.useRef)(null);(0,v.useEffect)(()=>{let e=Object.values(i.zr),t=h.type&&e.includes(h.type)?`${h.type}-${JSON.stringify(h.path||[])}`:null;if(g||_){let e=a.querySelector(`.email-pane .panel-form__body`);e&&(e.scrollTop=0),o(i.Sn(i.Lr))}else if(h.type&&e.includes(h.type)){let e=S.current!==t;if(S.current=t,h.activateSection!==`structure`){if(e){let e=a.querySelector(`.email-pane .panel-form__body`);e&&(e.scrollTop=0)}o(i.Sn(i.Lr))}else o(i.Sn(i.fi))}else JSON.stringify(h)!==`{}`&&(S.current=null,o(i.Sn(``)))},[h,o,a,g,_]);let w=(0,v.useMemo)(()=>{let e=[{key:i.Lr,label:(0,C.jsx)(`span`,{style:{textTransform:`capitalize`},children:h.caption?h.caption:r(`Edit element`)})}];return x&&e.push({key:i.fi,label:r(`Columns`)}),e},[h.caption,x,r]),T=(0,v.useMemo)(()=>[{key:i.Lr,label:r(`Cell`)},{key:i.hi,label:r(`Table`)}],[r]),E=e=>{e.stopPropagation(),s({operation:i.Wr.SANDBOX_ELEMENT_REMOVE}),o(c===`email`?u.L({}):u._({}))},D=e=>{e.stopPropagation(),s({operation:i.Wr.SANDBOX_ELEMENT_PARENT_GET})},O=()=>{n(h),o(i.nn()),setTimeout(()=>{o(c===`block`?u._({type:null}):u.L({type:null}))},300),s({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET})},k=(0,C.jsxs)(C.Fragment,{children:[y.deleteButtonEnabled&&(0,C.jsx)(p.K,{title:r(`Remove element by Delete Key`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`text`,onClick:E,disabled:!h.deletable,icon:(0,C.jsx)(p.Lt,{icon:`DeleteOutlined`,size:18,strokeWidth:y.iconStrokeWidth})})}),y.stepToOtherElementEnabled&&(0,C.jsx)(p.K,{title:r(`Up to parent element`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`text`,onClick:D,disabled:!h.parent,icon:(0,C.jsx)(p.Lt,{icon:`GoToParent`,size:18,strokeWidth:y.iconStrokeWidth})})})]}),A=y.switchDesktopMobilePropsEnabled||y.stepToOtherElementEnabled||y.deleteButtonEnabled;return(0,C.jsxs)(p.P,{children:[(0,C.jsx)(p.P.Header,{onClose:O,closeIcon:(0,C.jsx)(p.Lt,{icon:`Close`,size:24,strokeWidth:y.iconStrokeWidth}),extra:A?k:void 0,children:(0,C.jsx)(p.$,{items:b?T:w,activeKey:f,onChange:e=>o(i.Sn(e||``))})}),(0,C.jsx)(p.P.Body,{children:b?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{style:{display:f===`Edit selected element`?void 0:`none`},children:(0,C.jsx)(Yp,{className:`email-properties__collapse-panel selected-element-panel__content`,formSettings:t,emailElementType:c,formName:`${i.Rr}`})}),(0,C.jsx)(`div`,{style:{display:f===`Table properties`?void 0:`none`},children:(0,C.jsx)(Yp,{className:`email-properties__collapse-panel selected-element-panel__content`,formSettings:t,emailElementType:c,formName:`${i.hi}`})})]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{style:{display:f===`Edit selected element`?void 0:`none`},children:(0,C.jsx)(Yp,{className:`email-properties__collapse-panel selected-element-panel__content`,formSettings:t,emailElementType:c})}),x&&(0,C.jsx)(`div`,{style:{display:f===`Structure`?void 0:`none`},children:(0,C.jsx)(Zp,{selectedElement:h,emailElementType:c,isSelectedElement:!1})})]})})]})};$p.propTypes={email:b.default.object.isRequired,formSettings:b.default.object,onClosePanel:b.default.func},$p.defaultProps={formSettings:{},onClosePanel:Qp};var em=r.a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(t=e.ElementType||={});function n(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})),tm=r.a((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,`__esModule`,{value:!0}),e.cloneNode=e.hasChildren=e.isDocument=e.isDirective=e.isComment=e.isText=e.isCDATA=e.isTag=e.Element=e.Document=e.CDATA=e.NodeWithChildren=e.ProcessingInstruction=e.Comment=e.Text=e.DataNode=e.Node=void 0;var r=em(),i=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,`parentNode`,{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`previousSibling`,{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,`nextSibling`,{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return e===void 0&&(e=!1),b(this,e)},e}();e.Node=i;var a=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.data=t,n}return Object.defineProperty(n.prototype,`nodeValue`,{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),n}(i);e.DataNode=a;var o=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=r.ElementType.Text,t}return Object.defineProperty(n.prototype,`nodeType`,{get:function(){return 3},enumerable:!1,configurable:!0}),n}(a);e.Text=o;var s=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=r.ElementType.Comment,t}return Object.defineProperty(n.prototype,`nodeType`,{get:function(){return 8},enumerable:!1,configurable:!0}),n}(a);e.Comment=s;var c=function(e){t(n,e);function n(t,n){var i=e.call(this,n)||this;return i.name=t,i.type=r.ElementType.Directive,i}return Object.defineProperty(n.prototype,`nodeType`,{get:function(){return 1},enumerable:!1,configurable:!0}),n}(a);e.ProcessingInstruction=c;var l=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.children=t,n}return Object.defineProperty(n.prototype,`firstChild`,{get:function(){return this.children[0]??null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`lastChild`,{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`childNodes`,{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),n}(i);e.NodeWithChildren=l;var u=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=r.ElementType.CDATA,t}return Object.defineProperty(n.prototype,`nodeType`,{get:function(){return 4},enumerable:!1,configurable:!0}),n}(l);e.CDATA=u;var d=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=r.ElementType.Root,t}return Object.defineProperty(n.prototype,`nodeType`,{get:function(){return 9},enumerable:!1,configurable:!0}),n}(l);e.Document=d;var f=function(e){t(n,e);function n(t,n,i,a){i===void 0&&(i=[]),a===void 0&&(a=t===`script`?r.ElementType.Script:t===`style`?r.ElementType.Style:r.ElementType.Tag);var o=e.call(this,i)||this;return o.name=t,o.attribs=n,o.type=a,o}return Object.defineProperty(n.prototype,`nodeType`,{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`tagName`,{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,`attributes`,{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){return{name:t,value:e.attribs[t],namespace:e[`x-attribsNamespace`]?.[t],prefix:e[`x-attribsPrefix`]?.[t]}})},enumerable:!1,configurable:!0}),n}(l);e.Element=f;function p(e){return(0,r.isTag)(e)}e.isTag=p;function m(e){return e.type===r.ElementType.CDATA}e.isCDATA=m;function h(e){return e.type===r.ElementType.Text}e.isText=h;function g(e){return e.type===r.ElementType.Comment}e.isComment=g;function _(e){return e.type===r.ElementType.Directive}e.isDirective=_;function v(e){return e.type===r.ElementType.Root}e.isDocument=v;function y(e){return Object.prototype.hasOwnProperty.call(e,`children`)}e.hasChildren=y;function b(e,t){t===void 0&&(t=!1);var r;if(h(e))r=new o(e.data);else if(g(e))r=new s(e.data);else if(p(e)){var i=t?x(e.children):[],a=new f(e.name,n({},e.attribs),i);i.forEach(function(e){return e.parent=a}),e.namespace!=null&&(a.namespace=e.namespace),e[`x-attribsNamespace`]&&(a[`x-attribsNamespace`]=n({},e[`x-attribsNamespace`])),e[`x-attribsPrefix`]&&(a[`x-attribsPrefix`]=n({},e[`x-attribsPrefix`])),r=a}else if(m(e)){var i=t?x(e.children):[],l=new u(i);i.forEach(function(e){return e.parent=l}),r=l}else if(v(e)){var i=t?x(e.children):[],y=new d(i);i.forEach(function(e){return e.parent=y}),e[`x-mode`]&&(y[`x-mode`]=e[`x-mode`]),r=y}else if(_(e)){var b=new c(e.name,e.data);e[`x-name`]!=null&&(b[`x-name`]=e[`x-name`],b[`x-publicId`]=e[`x-publicId`],b[`x-systemId`]=e[`x-systemId`]),r=b}else throw Error(`Not implemented yet: ${e.type}`);return r.startIndex=e.startIndex,r.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(r.sourceCodeLocation=e.sourceCodeLocation),r}e.cloneNode=b;function x(e){for(var t=e.map(function(e){return b(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}})),nm=r.a((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__exportStar||function(e,n){for(var r in e)r!==`default`&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,`__esModule`,{value:!0}),e.DomHandler=void 0;var r=em(),i=tm();n(tm(),e);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof t==`function`&&(n=t,t=a),typeof e==`object`&&(t=e,e=void 0),this.callback=e??null,this.options=t??a,this.elementCB=n??null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,a=new i.Element(e,t,void 0,n);this.addNode(a),this.tagStack.push(a)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=e;return}var t=new i.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(``),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if(typeof this.callback==`function`)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=o,e.default=o})),rm=r.a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=`animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`),e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),e.CARRIAGE_RETURN=`\r`,e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,`g`),e.CARRIAGE_RETURN_PLACEHOLDER=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now()}__`,e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,`g`)})),im=r.a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.formatAttributes=i,e.escapeSpecialCharacters=o,e.revertEscapedCharacters=s,e.formatDOM=c;var t=nm(),n=rm();function r(e){return n.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function i(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function a(e){return e=e.toLowerCase(),r(e)||e}function o(e){return e.replace(n.CARRIAGE_RETURN_REGEX,n.CARRIAGE_RETURN_PLACEHOLDER)}function s(e){return e.replace(n.CARRIAGE_RETURN_PLACEHOLDER_REGEX,n.CARRIAGE_RETURN)}function c(e,n,r){n===void 0&&(n=null);for(var o=[],l,u=0,d=e.length;u<d;u++){var f=e[u];switch(f.nodeType){case 1:var p=a(f.nodeName);l=new t.Element(p,i(f.attributes)),l.children=c(p===`template`?f.content.childNodes:f.childNodes,l);break;case 3:l=new t.Text(s(f.nodeValue));break;case 8:l=new t.Comment(f.nodeValue);break;default:continue}var m=o[u-1]||null;m&&(m.next=l),l.parent=n,l.prev=m,l.next=null,o.push(l)}return r&&(l=new t.ProcessingInstruction(r.substring(0,r.indexOf(` `)).toLowerCase(),r),l.next=o[0]||null,l.parent=n,o.unshift(l),o[1]&&(o[1].prev=o[0])),o}})),am=r.a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=g;var t=im(),n=`html`,r=`head`,i=`body`,a=/<([a-zA-Z]+[0-9]?)/,o=/<head[^]*>/i,s=/<body[^]*>/i,c=function(e,t){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(e,t){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},u=typeof window==`object`&&window.DOMParser;if(typeof u==`function`){var d=new u,f=`text/html`;l=function(e,t){return t&&(e=`<${t}>${e}</${t}>`),d.parseFromString(e,f)},c=l}if(typeof document==`object`&&document.implementation){var p=document.implementation.createHTMLDocument();c=function(e,t){if(t){var n=p.documentElement.querySelector(t);return n&&(n.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var m=typeof document==`object`&&document.createElement(`template`),h;m&&m.content&&(h=function(e){return m.innerHTML=e,m.content.childNodes});function g(e){var u,d;e=(0,t.escapeSpecialCharacters)(e);var f=e.match(a),p=f&&f[1]?f[1].toLowerCase():``;switch(p){case n:var m=l(e);if(!o.test(e)){var g=m.querySelector(r);(u=g?.parentNode)==null||u.removeChild(g)}if(!s.test(e)){var g=m.querySelector(i);(d=g?.parentNode)==null||d.removeChild(g)}return m.querySelectorAll(n);case r:case i:var _=c(e).querySelectorAll(p);return s.test(e)&&o.test(e)?_[0].parentNode.childNodes:_;default:if(h)return h(e);var g=c(e,i).querySelector(i);return g.childNodes}}})),om=r.a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=a;var n=t(am()),r=im(),i=/<(![a-zA-Z\s]+)>/;function a(e){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];var t=e.match(i),a=t?t[1]:void 0;return(0,r.formatDOM)((0,n.default)(e),null,a)}})),sm=r.a((e=>{e.SAME=0,e.CAMELCASE=1,e.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":`acceptCharset`,accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:`className`,classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:`htmlFor`,form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":`httpEquiv`,icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":`accentHeight`,accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":`alignmentBaseline`,allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":`arabicForm`,ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":`baselineShift`,baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":`capHeight`,clip:0,clipPath:1,"clip-path":`clipPath`,clipPathUnits:1,clipRule:1,"clip-rule":`clipRule`,color:0,colorInterpolation:1,"color-interpolation":`colorInterpolation`,colorInterpolationFilters:1,"color-interpolation-filters":`colorInterpolationFilters`,colorProfile:1,"color-profile":`colorProfile`,colorRendering:1,"color-rendering":`colorRendering`,contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":`dominantBaseline`,dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":`enableBackground`,end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":`fillOpacity`,fillRule:1,"fill-rule":`fillRule`,filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":`floodOpacity`,floodColor:1,"flood-color":`floodColor`,focusable:0,fontFamily:1,"font-family":`fontFamily`,fontSize:1,"font-size":`fontSize`,fontSizeAdjust:1,"font-size-adjust":`fontSizeAdjust`,fontStretch:1,"font-stretch":`fontStretch`,fontStyle:1,"font-style":`fontStyle`,fontVariant:1,"font-variant":`fontVariant`,fontWeight:1,"font-weight":`fontWeight`,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":`glyphName`,glyphOrientationHorizontal:1,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphOrientationVertical:1,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":`horizAdvX`,horizOriginX:1,"horiz-origin-x":`horizOriginX`,ideographic:0,imageRendering:1,"image-rendering":`imageRendering`,in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":`letterSpacing`,lightingColor:1,"lighting-color":`lightingColor`,limitingConeAngle:1,local:0,markerEnd:1,"marker-end":`markerEnd`,markerHeight:1,markerMid:1,"marker-mid":`markerMid`,markerStart:1,"marker-start":`markerStart`,markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":`overlinePosition`,overlineThickness:1,"overline-thickness":`overlineThickness`,paintOrder:1,"paint-order":`paintOrder`,panose1:0,"panose-1":`panose1`,pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":`pointerEvents`,points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":`renderingIntent`,repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":`shapeRendering`,slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":`stopColor`,stopOpacity:1,"stop-opacity":`stopOpacity`,strikethroughPosition:1,"strikethrough-position":`strikethroughPosition`,strikethroughThickness:1,"strikethrough-thickness":`strikethroughThickness`,string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":`strokeDasharray`,strokeDashoffset:1,"stroke-dashoffset":`strokeDashoffset`,strokeLinecap:1,"stroke-linecap":`strokeLinecap`,strokeLinejoin:1,"stroke-linejoin":`strokeLinejoin`,strokeMiterlimit:1,"stroke-miterlimit":`strokeMiterlimit`,strokeWidth:1,"stroke-width":`strokeWidth`,strokeOpacity:1,"stroke-opacity":`strokeOpacity`,suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":`textAnchor`,textDecoration:1,"text-decoration":`textDecoration`,textLength:1,textRendering:1,"text-rendering":`textRendering`,to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":`underlinePosition`,underlineThickness:1,"underline-thickness":`underlineThickness`,unicode:0,unicodeBidi:1,"unicode-bidi":`unicodeBidi`,unicodeRange:1,"unicode-range":`unicodeRange`,unitsPerEm:1,"units-per-em":`unitsPerEm`,unselectable:0,vAlphabetic:1,"v-alphabetic":`vAlphabetic`,values:0,vectorEffect:1,"vector-effect":`vectorEffect`,version:0,vertAdvY:1,"vert-adv-y":`vertAdvY`,vertOriginX:1,"vert-origin-x":`vertOriginX`,vertOriginY:1,"vert-origin-y":`vertOriginY`,vHanging:1,"v-hanging":`vHanging`,vIdeographic:1,"v-ideographic":`vIdeographic`,viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":`vMathematical`,vocab:0,widths:0,wordSpacing:1,"word-spacing":`wordSpacing`,writingMode:1,"writing-mode":`writingMode`,x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":`xHeight`,xlinkActuate:1,"xlink:actuate":`xlinkActuate`,xlinkArcrole:1,"xlink:arcrole":`xlinkArcrole`,xlinkHref:1,"xlink:href":`xlinkHref`,xlinkRole:1,"xlink:role":`xlinkRole`,xlinkShow:1,"xlink:show":`xlinkShow`,xlinkTitle:1,"xlink:title":`xlinkTitle`,xlinkType:1,"xlink:type":`xlinkType`,xmlBase:1,"xml:base":`xmlBase`,xmlLang:1,"xml:lang":`xmlLang`,xmlns:0,"xml:space":`xmlSpace`,xmlnsXlink:1,"xmlns:xlink":`xmlnsXlink`,xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}})),cm=r.a((e=>{var t=0,n=1,r=2,i=3,a=4,o=5,s=6;function c(e){return u.hasOwnProperty(e)?u[e]:null}function l(e,t,n,o,s,c,l){this.acceptsBooleans=t===r||t===i||t===a,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=l}var u={};[`children`,`dangerouslySetInnerHTML`,`defaultValue`,`defaultChecked`,`innerHTML`,`suppressContentEditableWarning`,`suppressHydrationWarning`,`style`].forEach(e=>{u[e]=new l(e,t,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(([e,t])=>{u[e]=new l(e,n,!1,t,null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(e=>{u[e]=new l(e,r,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(e=>{u[e]=new l(e,r,!1,e,null,!1,!1)}),[`allowFullScreen`,`async`,`autoFocus`,`autoPlay`,`controls`,`default`,`defer`,`disabled`,`disablePictureInPicture`,`disableRemotePlayback`,`formNoValidate`,`hidden`,`loop`,`noModule`,`noValidate`,`open`,`playsInline`,`readOnly`,`required`,`reversed`,`scoped`,`seamless`,`itemScope`].forEach(e=>{u[e]=new l(e,i,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(e=>{u[e]=new l(e,i,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(e=>{u[e]=new l(e,a,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(e=>{u[e]=new l(e,s,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(e=>{u[e]=new l(e,o,!1,e.toLowerCase(),null,!1,!1)});var d=/[\-\:]([a-z])/g,f=e=>e[1].toUpperCase();`accent-height.alignment-baseline.arabic-form.baseline-shift.cap-height.clip-path.clip-rule.color-interpolation.color-interpolation-filters.color-profile.color-rendering.dominant-baseline.enable-background.fill-opacity.fill-rule.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.glyph-name.glyph-orientation-horizontal.glyph-orientation-vertical.horiz-adv-x.horiz-origin-x.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.overline-position.overline-thickness.paint-order.panose-1.pointer-events.rendering-intent.shape-rendering.stop-color.stop-opacity.strikethrough-position.strikethrough-thickness.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-rendering.underline-position.underline-thickness.unicode-bidi.unicode-range.units-per-em.v-alphabetic.v-hanging.v-ideographic.v-mathematical.vector-effect.vert-adv-y.vert-origin-x.vert-origin-y.word-spacing.writing-mode.xmlns:xlink.x-height`.split(`.`).forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,null,!1,!1)}),[`xlink:actuate`,`xlink:arcrole`,`xlink:role`,`xlink:show`,`xlink:title`,`xlink:type`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!1,!1)});var p=`xlinkHref`;u[p]=new l(`xlinkHref`,n,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:m,SAME:h,possibleStandardNames:g}=sm(),_=RegExp.prototype.test.bind(RegExp(`^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`)),v=Object.keys(g).reduce((e,t)=>{let n=g[t];return n===h?e[t]=t:n===m?e[t.toLowerCase()]=t:e[t]=n,e},{});e.BOOLEAN=i,e.BOOLEANISH_STRING=r,e.NUMERIC=o,e.OVERLOADED_BOOLEAN=a,e.POSITIVE_NUMERIC=s,e.RESERVED=t,e.STRING=n,e.getPropertyInfo=c,e.isCustomAttribute=_,e.possibleStandardNames=v}));function lm(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var n=1,r=1;function i(e){var t=e.match(fm);t&&(n+=t.length);var i=e.lastIndexOf(ym);r=~i?e.length-i:r+e.length}function a(){var e={line:n,column:r};return function(t){return t.position=new o(e),l(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}o.prototype.content=e;function s(i){var a=Error(t.source+`:`+n+`:`+r+`: `+i);if(a.reason=i,a.filename=t.source,a.line=n,a.column=r,a.source=e,!t.silent)throw a}function c(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){c(pm)}function u(e){var t;for(e||=[];t=d();)t!==!1&&e.push(t);return e}function d(){var t=a();if(!(bm!=e.charAt(0)||xm!=e.charAt(1))){for(var n=2;Sm!=e.charAt(n)&&(xm!=e.charAt(n)||bm!=e.charAt(n+1));)++n;if(n+=2,Sm===e.charAt(n-1))return s(`End of comment missing`);var o=e.slice(2,n-2);return r+=2,i(o),e=e.slice(n),r+=2,t({type:Cm,comment:o})}}function f(){var e=a(),t=c(mm);if(t){if(d(),!c(hm))return s(`property missing ':'`);var n=c(gm),r=e({type:wm,property:um(t[0].replace(dm,Sm)),value:n?um(n[0].replace(dm,Sm)):Sm});return c(_m),r}}function p(){var e=[];u(e);for(var t;t=f();)t!==!1&&(e.push(t),u(e));return e}return l(),p()}function um(e){return e?e.replace(vm,Sm):Sm}var dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,Tm=r.o((()=>{dm=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,fm=/\n/g,pm=/^\s*/,mm=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,hm=/^:\s*/,gm=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,_m=/^[;\s]*/,vm=/^\s+|\s+$/g,ym=`
823
- `,bm=`/`,xm=`*`,Sm=``,Cm=`comment`,wm=`declaration`})),Em=r.s({default:()=>Dm});function Dm(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=lm(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n||={},n[r]=a)}),n}var Om=r.o((()=>{Tm()})),km=r.a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Am=r.a(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})((Om(),r.c(Em))),i=km();function a(e,t){var r={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(r[(0,i.camelCase)(e,t)]=n)}),r}a.default=a,t.exports=a})),jm=r.a((t=>{var n=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=o,t.setStyleProp=c;var r=e(`react`),i=n(Am()),a=new Set([`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`]);function o(e,t){return e.includes(`-`)?!a.has(e):!!(t&&typeof t.is==`string`)}var s={reactCompat:!0};function c(e,t){if(typeof e==`string`){if(!e.trim()){t.style={};return}try{t.style=(0,i.default)(e,s)}catch{t.style={}}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(`.`)[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set([`tr`,`tbody`,`thead`,`tfoot`,`colgroup`,`table`,`head`,`html`,`frameset`]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}})),Mm=r.a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=o;var t=cm(),n=jm(),r=[`checked`,`value`],i=[`input`,`select`,`textarea`],a={reset:!0,submit:!0};function o(e,o){e===void 0&&(e={});var c={},l=!!(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,t.isCustomAttribute)(u)){c[u]=d;continue}var f=u.toLowerCase(),p=s(f);if(p){var m=(0,t.getPropertyInfo)(p);switch(r.includes(p)&&i.includes(o)&&!l&&(p=s(`default`+f)),c[p]=d,m&&m.type){case t.BOOLEAN:c[p]=!0;break;case t.OVERLOADED_BOOLEAN:d===``&&(c[p]=!0);break}continue}n.PRESERVE_CUSTOM_ATTRIBUTES&&(c[u]=d)}return(0,n.setStyleProp)(e.style,c),c}function s(e){return t.possibleStandardNames[e]}})),Nm=r.a((t=>{var n=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0}),t.default=s;var r=e(`react`),i=n(Mm()),a=jm(),o={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function s(e,t){t===void 0&&(t={});for(var n=[],r=typeof t.replace==`function`,l=t.transform||a.returnFirstArg,u=t.library||o,d=u.cloneElement,f=u.createElement,p=u.isValidElement,m=e.length,h=0;h<m;h++){var g=e[h];if(r){var _=t.replace(g,h);if(p(_)){m>1&&(_=d(_,{key:_.key||h})),n.push(l(_,g,h));continue}}if(g.type===`text`){var v=!g.data.trim().length;if(v&&g.parent&&!(0,a.canTextBeChildOfNode)(g.parent)||t.trim&&v)continue;n.push(l(g.data,g,h));continue}var y=g,b={};c(y)?((0,a.setStyleProp)(y.attribs.style,y.attribs),b=y.attribs):y.attribs&&(b=(0,i.default)(y.attribs,y.name));var x=void 0;switch(g.type){case`script`:case`style`:g.children[0]&&(b.dangerouslySetInnerHTML={__html:g.children[0].data});break;case`tag`:g.name===`textarea`&&g.children[0]?b.defaultValue=g.children[0].data:g.children&&g.children.length&&(x=s(g.children,t));break;default:continue}m>1&&(b.key=h),n.push(l(f(g.name,b,x),g,h))}return n.length===1?n[0]:n}function c(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&e.type===`tag`&&(0,a.isCustomComponent)(e.name,e.attribs)}})),Pm=r.a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=o;var n=t(om());e.htmlToDOM=n.default,e.attributesToProps=t(Mm()).default;var r=t(Nm());e.domToReact=r.default;var i=nm();Object.defineProperty(e,`Comment`,{enumerable:!0,get:function(){return i.Comment}}),Object.defineProperty(e,`Element`,{enumerable:!0,get:function(){return i.Element}}),Object.defineProperty(e,`ProcessingInstruction`,{enumerable:!0,get:function(){return i.ProcessingInstruction}}),Object.defineProperty(e,`Text`,{enumerable:!0,get:function(){return i.Text}});var a={lowerCaseAttributeNames:!1};function o(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);return e?(0,r.default)((0,n.default)(e,t?.htmlparser2||a),t):[]}})),Fm=r.l(Pm(),1),Im=Fm.default.default||Fm.default,Lm=e=>{let{__:t}=p.v();return[{key:`📧`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`theme-and-preheader-generator`)},children:[`📧 `,t(`Subject line & preheader generator`)]})},{key:`🌎`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`translator`)},children:[`🌎 `,t(`Translator`)]})},{key:`📄`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`writer`)},children:[`📄 `,t(`Copywriter`)]})},{key:`🔎`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`corrector`)},children:[`🔎 `,t(`Proofreader`)]})},{key:`🧠`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`psychologist`)},children:[`🧠 `,t(`Psychologist`)]})},{key:`📈`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`marketolog`)},children:[`📈 `,t(`Marketer`)]})},{key:`✨`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`email-generator`)},children:[`✨ `,t(`Email generator`)]})}]},Rm=({messages:e,newEmailAiGeneratorRef:t})=>{let n=_.l(),{__:r,_n:s}=p.v(),c=i.lr(),l=(0,S.useNavigate)(),d=(0,v.useRef)(null),f=i.Wt(),h=p.i(),{projectId:g,emailId:y}=(0,S.useParams)(),b=i.G(),x=p.h(i.ea.ON_LIMIT_ID),[w,T]=(0,v.useState)(null),[E,D]=(0,v.useState)(0),[O,k]=(0,v.useState)(!1),[A,j]=(0,v.useState)(``),[M,N]=(0,v.useState)([]),[P,F]=(0,v.useState)(!1),[I,L]=(0,v.useState)(!1),[R,z]=(0,v.useState)(null),[B,V]=(0,v.useState)(0),[H,ee]=(0,v.useState)(null),U=i.cr(u.w),W=i.cr(i.n),G=i.$(),[K]=a.Rn(),q=i.et(),[J,Y]=a.zn(),[te,{reset:X}]=a.Gt(),[ne,{data:re=[]}]=a.qt(),[ie]=o.h(),ae={cursor:O?`not-allowed`:`default`,pointerEvents:O?`none`:`auto`};(0,v.useEffect)(()=>{H&&P&&(t.current=!0),P||(t.current=!1)},[H,P]);let oe=!!(f.limits&&f.counters)&&i.ii.isPlugin,{limits:Z}=i.ii.isPlugin&&f.limits?f:{limits:{ai_limit:0,ai_generator_limit:0}},{ai_limit:se,ai_generator_limit:ce}=Z,le=oe&&E>=se&&se>0,ue=oe&&B>=ce&&ce>0,de=(0,v.useCallback)(()=>{x.fire({name:`AiChatCount`,count:E+1})},[x,E]),fe=(0,v.useCallback)(()=>{x.fire({name:`AiGeneratorCount`,count:B+1})},[x,B]),pe=(0,v.useCallback)(async e=>{if(i.ii.isPlugin||!m.i((await ie(e)).data?.stats))return!0;let t=r(e===`email_generate`?`You have reached the limit of AI generator usage.`:`You have reached the limit of AI chat usage.`);return h.error({message:t,description:r(`Please upgrade your plan.`)}),N(e=>[...e,{data:{role:`assistant`,message:t}}]),!1},[r,ie,h]);(0,v.useEffect)(()=>{oe&&(D(f?.counters?.ai_counter||0),V(f?.counters?.ai_generator_counter||0))},[f,oe]),(0,v.useEffect)(()=>{ee(M.length<=0?!1:M.toReversed().find(e=>e.data?.context)?.data.context===`email-generator`)},[M]);let me=(0,v.useCallback)(async()=>await G.sendAsync(i.Wr.SANDBOX_IS_EMAIL_EMPTY),[G]),he=(0,v.useCallback)(()=>{let e=d.current?.closest(`.ant-tabs-content.ant-tabs-content-top`);setTimeout(()=>{e?.scrollTo({top:e.scrollHeight,behavior:`smooth`})},0)},[d]),ge=(0,v.useCallback)(()=>{K({entity_id:y}).then(e=>{N(e.data.documents),he()})},[y,K,N,he]),_e=(0,v.useCallback)(e=>{F(!0),k(!0),te({task_id:e||w,entity_id:y,status:`started`}).then(()=>{ge()})},[y,te,w,ge]),ve=(0,v.useCallback)(()=>{te({task_id:w,entity_id:y,status:`completed`}).then(e=>{e.data.status===403&&X(),ge()}).catch(e=>{}),k(!1),F(!1)},[y,te,w,ge,X]);(0,v.useEffect)(()=>{let e;if(P){let t=re[re.length-1]?.processing?.email;if(t){let r=re[re.length-1].status;e=setInterval(n.setValue(t),500),r===0&&ve()}R&&(clearInterval(e),c(u.B(t)),F(!1),z(!1))}return()=>{clearInterval(e)}},[n,R,c,re,P,U,y,w,ge,te,Y,ve]),(0,v.useEffect)(he,[he]),(0,v.useEffect)(()=>{e?.length>0&&N(e),q({operation:i.Wr.SANDBOX_EMAIL_CONTENT_GET})},[e,q]),(0,v.useEffect)(()=>{let e=G.onInit(()=>{G.send({operation:i.Wr.SANDBOX_LOCK_EDIT,data:O}),G.send({operation:i.Wr.SANDBOX_LOCK_DISCUSS,value:O})});return()=>e.dispose()},[O,G]);let ye=async()=>{if(A){let e=A.replaceAll(/\n/g,`<br>`),t={project_id:g,connection:`chat`,entity_id:y,message:e,locale:W.locale.slice(0,2),subject:U.subject||``,preheader:U.preheader||``,textContent:a.o(n.getValue())};if(H&&ue||le){h.error({message:r(H?`You have reached the limit of AI generator usage.`:`You have reached the limit of AI chat usage.`),description:r(`Please upgrade your plan.`)});let e={data:{role:`assistant`,message:r(H?`You have reached the limit of AI generator usage.`:`You have reached the limit of AI chat usage.`)}};N(t=>[...t,e])}else{if(!await pe(H?`email_generate`:`ai`)){j(``);return}oe&&(H&&B!==ce?(fe(),V(e=>e+1)):E!==se&&(de(),D(e=>e+1))),b({event:`submit_form`,action:`chat_whit_ai_assistant`,entity_id:t.entity_id,project_id:t.project_id});let n=[{data:{role:`user`,message:e,userInfo:{display_name:W.first_name+` `+W.last_name,avatar_url:W.avatar_urls[24]}}},{data:{role:`assistant`,message:r(`Typing...`),isLoading:!0}}];N(e=>[...e,...n]),J({body:t}).then(e=>{if(e.data.status===401)throw Error(i.Hr);if(b({event:`submit`,action:`send_discussion_chat_message`,entity_type:(U.hasOwnProperty(`type`)?`block`:`email`)==`block`?`block`:`email`,entity_id:y,project_id:g,context:`editor`}),e.data.task_id){let t=e.data.task_id;T(t),ne({id:t,setError:z}),me().then(e=>{e?_e(t):L(!0)})}ge()}).catch(e=>{h.error({message:e?.data?.code||r(`Error`),description:e?.data?.message||r(`Something went wrong.`)})})}j(``)}},be=async e=>{let t={data:{role:`assistant`,message:r(`Typing...`),isLoading:!0}};N(e=>[...e,t]);let o={project_id:g,connection:`chat`,entity_id:y,context:e,locale:W.locale.slice(0,2),subject:U.subject||``,preheader:U.preheader||``,textContent:a.o(n.getValue())};if(oe&&(H&&B!==ce?(fe(),V(e=>e+1)):E!==se&&(de(),D(e=>e+1))),le){h.error({message:r(`You have reached the limit of AI chat usage.`),description:r(`Please upgrade your plan.`)});let e={data:{role:`assistant`,message:r(`You have reached the limit of AI chat usage.`)}};N(t=>[...t,e])}else{if(!await pe(`ai`))return;b({event:`select`,action:`select_ai_assistant_role`,context:o.context,entity_id:o.entity_id,project_id:o.project_id}),J({body:o}).then(e=>{if(e.data.status===401)throw Error(i.Hr);ge()}).catch(e=>{h.error({message:e?.data?.code||`Error`,description:e?.data?.message||`Something went wrong`})})}},xe=(0,v.useCallback)(async e=>{let t={data:{role:`user`,message:e,userInfo:{display_name:W.first_name+` `+W.last_name,avatar_url:W.avatar_urls[24]}}},o={data:{role:`assistant`,message:r(`Typing...`),isLoading:!0}};N(e=>[...e,t,o]);let s={project_id:g,connection:`chat`,entity_id:y,message:e,locale:W.locale.slice(0,2),subject:U.subject||``,preheader:U.preheader||``,textContent:a.o(n.getValue())};if(ue){h.error({message:r(`You have reached the limit of AI generator usage.`),description:r(`Please upgrade your plan.`)});let e={data:{role:`assistant`,message:r(`You have reached the limit of AI chat usage.`)}};N(t=>[...t,e])}else{if(!await pe(H?`email_generate`:`ai`))return;J({body:s}).then(e=>{if(e.data.status===401)throw Error(i.Hr);if(b({event:`submit`,action:`send_discussion_chat_message`,entity_type:(U.hasOwnProperty(`type`)?`block`:`email`)==`block`?`block`:`email`,entity_id:y,project_id:g,context:`editor`}),e.data.task_id){let t=e.data.task_id;T(t),ne({id:t,setError:z}),me().then(e=>{e?_e(t):L(!0)})}oe&&(H&&B!==ce?(fe(),V(e=>e+1)):E!==se&&(de(),D(e=>e+1))),ge()}).catch(e=>{h.error({message:e?.data?.code||`Error`,description:e?.data?.message||`Something went wrong`})})}},[r,E,B,me,_e,se,ce,W,U,y,H,ue,de,fe,oe,n,h,pe,g,J,ne,ge]);(0,v.useEffect)(()=>{let e=window.localStorage.getItem(i.Yr.em_ai_settings);if(M.length===1&&M[0].data.role===`assistant`&&e&&y){let t=new i.Da,n={project_id:g,connection:`chat`,entity_id:y,context:`email-generator`,locale:W.locale.slice(0,2)};window.localStorage.removeItem(i.Yr.em_ai_settings),J({body:n}).then(({data:n})=>{t.isDisposed()||xe(e)})}},[M,xe,y,W.locale,g,J]);let Se=e=>{typeof e.target.className==`string`&&e.target.className.includes(`ai-response-change-context`)&&(Y.isLoading||be(e.target.role))},Ce=e=>{let t=e.children[0].data;G.send(i.Wr.SANDBOX_SUBJECT_UPDATE,{value:e.children[0].data,guid:U.renderGuid,fromAI:!0}),h.success({id:`EMAIL_TITLE_UPDATED_FROM_AI`,message:r(`Title copied to email settings`),data:t})},we=e=>{let t=e.children[0].data;G.send(i.Wr.SANDBOX_PREHEADER_UPDATE,{value:e.children[0].data,guid:U.renderGuid,fromAI:!0}),h.success({id:`EMAIL_TITLE_UPDATED_FROM_AI`,message:r(`Preheader copied to email settings`),data:t,duration:300})},Te=e=>{let t=e.children[0].data;navigator.clipboard.writeText(t).then(()=>{h.success({id:`TEXT_COPIED_TO_CLIPBOARD`,message:r(`Text copied to clipboard`),data:t})}).catch(e=>{})},Ee={replace:e=>{if(e.attribs?.class?.split(` `).includes(`ai-response-title`))return(0,C.jsx)(p.K,{placement:`left`,title:r(`Replace the title`),children:(0,C.jsx)(`div`,{onClick:()=>Ce(e),children:(0,C.jsx)(`span`,{className:`ai-response-title`,children:(0,Fm.domToReact)(e.children,Ee)})})});if(e.attribs?.class?.split(` `).includes(`ai-response-preheader`))return(0,C.jsx)(p.K,{placement:`left`,title:r(`Replace the preheader`),children:(0,C.jsx)(`div`,{onClick:()=>we(e),children:(0,C.jsx)(`span`,{className:`ai-response-preheader`,children:(0,Fm.domToReact)(e.children,Ee)})})});if(e.attribs?.class?.split(` `).includes(`ai-response-copy`))return(0,C.jsx)(p.K,{placement:`left`,title:r(`Copy to clipboard`),children:(0,C.jsx)(`div`,{onClick:()=>Te(e),children:(0,C.jsx)(`span`,{className:`ai-response-copy`,children:(0,Fm.domToReact)(e.children,Ee)})})});if(e.attribs?.class?.split(` `).includes(`ai-response-user-message`)){let t=e.attribs?.data||e.children?.[0]?.data;return(0,C.jsx)(`li`,{className:e.attribs?.class,data:e.attribs?.data,onClick:()=>xe(t),children:(0,Fm.domToReact)(e.children,Ee)})}}};return(0,C.jsxs)(`div`,{ref:d,className:`discuss-main`,children:[M.length>0&&(0,C.jsx)(p.ft,{onClick:Se,className:`comment-list`,itemLayout:`horizontal`,dataSource:M,renderItem:e=>(0,C.jsx)(`li`,{id:e._id,children:(0,C.jsx)(p.ht,{className:e.data.userInfo?``:`ai-comment`,avatar:e.data.role===`assistant`?(0,C.jsx)(m.d,{icon:`ChatGpt`,className:`anticon-robot`,style:{color:`#ffffff`,fontSize:16,width:24,height:24,borderRadius:`50%`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`}}):e.data.userInfo&&(e.data._modified||!i.ii.isPlugin)?e.data.userInfo.avatar_url:W.avatar_urls[24]||(0,C.jsx)(m.d,{icon:`UserOutlined`,className:`anticon-user`,style:{color:`#ffffff`,fontSize:16,width:24,height:24,borderRadius:`50%`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`}}),author:(0,C.jsx)(`div`,{style:ae,children:e?.data?.role===`user`?i.ii.isPlugin?W?.username||r(`User`):e.data?.userInfo?.display_name:r(`AI Assistant`)}),datetime:e._created?(0,C.jsx)(`span`,{dangerouslySetInnerHTML:{__html:i.h(i.rt(e._created),s,!0)}}):null,content:e.data.isLoading?(0,C.jsx)(`div`,{className:`spin`,children:(0,C.jsx)(m.d,{icon:`LoadingOutlined`,style:{fontSize:24},spin:!0})}):(0,C.jsx)(`div`,{style:ae,children:Im(e.data.message,Ee)})})},e._id)}),oe&&(H?(0,C.jsx)(p.L,{text:`${B} ${r(`of`)} ${ce>0?ce:`∞`} ${r(`mail generator`)} ${s(`was used`,`were used`,B)}`,exceeded:ce>0&&B>=ce,style:{marginTop:-25},extra:(0,C.jsx)(`span`,{style:{textDecoration:`underline`,cursor:`pointer`},onClick:()=>l(f.billingPageUrl||i.xr.billing),children:r(`Need more?`)})}):(0,C.jsx)(p.L,{text:`${E} ${r(`of`)} ${se>0?se:`∞`} ${r(`messeges`)} ${s(`was used`,`were used`,E)}`,exceeded:se>0&&E>=se,style:{marginTop:-25},extra:(0,C.jsx)(`span`,{style:{textDecoration:`underline`,cursor:`pointer`},onClick:()=>l(f.billingPageUrl||i.xr.billing),children:r(`Need more?`)})})),(0,C.jsxs)(p.It,{onFinish:ye,className:`addMode`,children:[(0,C.jsx)(p.It.Item,{style:{marginBottom:10},children:(0,C.jsx)(p.Ct,{disabled:O,value:A,onChange:e=>j(e.target.value),rows:4,placeholder:r(`Type your request`),className:`textarea-comment`,onPressEnter:e=>e.key===`Enter`&&e.ctrlKey&&ye(),spellCheck:`false`})}),(0,C.jsx)(p.It.Item,{children:(0,C.jsxs)(p.xt,{size:8,children:[(0,C.jsx)(p.Rt,{disabled:Y.isLoading||O,type:`default`,style:{background:`var(--colorInfo)`,color:`#ffffff`},className:`button-target`,children:(0,C.jsx)(p.nt,{placement:`top`,disabled:O,arrow:{pointAtCenter:!0},menu:{items:Lm(be)},children:(0,C.jsxs)(`div`,{disabled:O,style:{margin:0,padding:0},children:[(0,C.jsx)(m.d,{icon:`ChatGpt`,style:{marginRight:5}}),r(`Role`)]})},`Export`)}),(0,C.jsxs)(p.Rt,{disabled:Y.isLoading||O,className:`button-add`,type:`primary`,htmlType:`submit`,children:[r(`Send`),` `,(0,C.jsx)(m.d,{icon:`SendOutlined`,size:16,strokeWidth:f.iconStrokeWidth})]})]})})]}),(0,C.jsx)(p.Z,{title:r(`Warning`),open:I,onOk:()=>{_e(),L(!1)},onCancel:()=>{ve(),L(!1)},children:(0,C.jsx)(`p`,{children:r(`The current template will be changed to the generated one, are you sure about this?`)})})]})},zm=r.a(((e,t)=>{(function(e){if(typeof window>`u`)return;var n=0,r,i=!1,a=!1,o=7,s=`[iFrameSizer]`,c=s.length,l=null,u=window.requestAnimationFrame,d=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),f={},p=null,m=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:`bodyOffset`,id:`iFrameResizer`,interval:32,license:`1jqr0si6pnt`,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:`parent`,scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:`scroll`,onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){S(`onMessage function not defined`)},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}});function h(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(e,t,n){e.addEventListener(t,n,!1)}function _(e,t,n){e.removeEventListener(t,n,!1)}function v(){var e=[`moz`,`webkit`,`o`,`ms`],t;for(t=0;t<e.length&&!u;t+=1)u=window[e[t]+`RequestAnimationFrame`];u?u=u.bind(window):b(`setup`,`RequestAnimationFrame not supported`)}function y(e){return f[e]?f[e].log:i}function b(e,t){C(`log`,e,t,y(e))}function x(e,t){C(`info`,e,t,y(e))}function S(e,t){C(`warn`,e,t,!0)}function C(e,t,n,r){!0===r&&window.console}function w(e){function t(){function e(){M(q),k(J),H(`onResized`,q)}a(`Height`),a(`Width`),N(e,q,`init`)}function n(){var e=K.slice(c).split(`:`),t=e[1]?parseInt(e[1],10):0,n=f[e[0]]&&f[e[0]].iframe,a=getComputedStyle(n);return{iframe:n,id:e[0],height:t+r(a)+i(a),width:e[2],type:e[3]}}function r(e){return e.boxSizing===`border-box`?(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0):0}function i(e){return e.boxSizing===`border-box`?(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0):0}function a(e){var t=Number(f[J][`max`+e]),n=Number(f[J][`min`+e]),r=e.toLowerCase(),i=Number(q[r]);b(J,`Checking `+r+` is in range `+n+`-`+t),i<n&&(i=n,b(J,`Set `+r+` to min value`)),i>t&&(i=t,b(J,`Set `+r+` to max value`)),q[r]=``+i}function u(){function t(){function e(){var e=0,t=!1;for(b(J,`Checking connection is from allowed list of origins: `+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}function t(){var e=f[J]&&f[J].remoteHost;return b(J,`Checking connection is from: `+e),n===e}return r.constructor===Array?e():t()}var n=e.origin,r=f[J]&&f[J].checkOrigin;if(r&&``+n!=`null`&&!t())throw Error(`Unexpected message received from: `+n+` for `+q.iframe.id+`. Message was: `+e.data+`. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.`);return!0}function d(){return s===(``+K).slice(0,c)&&K.slice(c).split(`:`)[0]in f}function p(){var e=q.type in{true:1,false:1,undefined:1};return e&&b(J,`Ignoring init message from meta parent page`),e}function m(e){return K.slice(K.indexOf(`:`)+o+e)}function h(e){b(J,`onMessage passed: {iframe: `+q.iframe.id+`, message: `+e+`}`),H(`onMessage`,{iframe:q.iframe,message:JSON.parse(e)}),b(J,`--`)}function v(){var e=document.body.getBoundingClientRect(),t=q.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function y(e,t){function n(){P(`Send Page Info`,`pageInfo:`+v(),e,t)}B(n,32,t)}function C(){function e(e,n){function i(){f[r]?y(f[r].iframe,r):t()}[`scroll`,`resize`].forEach(function(t){b(r,e+t+` listener for sendPageInfo`),n(window,t,i)})}function t(){e(`Remove `,_)}function n(){e(`Add `,g)}var r=J;n(),f[r]&&(f[r].stopPageInfo=t)}function w(){f[J]&&f[J].stopPageInfo&&(f[J].stopPageInfo(),delete f[J].stopPageInfo)}function E(){var e=!0;return q.iframe===null&&(S(J,`IFrame (`+q.id+`) not found`),e=!1),e}function I(e){var t=e.getBoundingClientRect();return O(J),{x:Math.floor(Number(t.left)+Number(l.x)),y:Math.floor(Number(t.top)+Number(l.y))}}function L(e){function t(){l=a,R(),b(J,`--`)}function n(){return{x:Number(q.width)+i.x,y:Number(q.height)+i.y}}function r(){window.parentIFrame?window.parentIFrame[`scrollTo`+(e?`Offset`:``)](a.x,a.y):S(J,`Unable to scroll to requested position, window.parentIFrame not found`)}var i=e?I(q.iframe):{x:0,y:0},a=n();b(J,`Reposition requested from iFrame (offset x:`+i.x+` y:`+i.y+`)`),window.top===window.self?t():r()}function R(){!1===H(`onScroll`,l)?A():k(J)}function z(e){function t(){var e=I(a);b(J,`Moving to in page link (#`+r+`) at x: `+e.x+` y: `+e.y),l={x:e.x,y:e.y},R(),b(J,`--`)}function n(){window.parentIFrame?window.parentIFrame.moveToAnchor(r):b(J,`In page link #`+r+` not found and window.parentIFrame not found`)}var r=e.split(`#`)[1]||``,i=decodeURIComponent(r),a=document.getElementById(i)||document.getElementsByName(i)[0];a?t():window.top===window.self?b(J,`In page link #`+r+` not found`):n()}function V(e){var t={};if(Number(q.width)===0&&Number(q.height)===0){var n=m(9).split(`:`);t={x:n[1],y:n[0]}}else t={x:q.width,y:q.height};H(e,{iframe:q.iframe,screenX:Number(t.x),screenY:Number(t.y),type:q.type})}function H(e,t){return T(J,e,t)}function ee(){switch(f[J]&&f[J].firstRun&&G(),q.type){case`close`:D(q.iframe);break;case`message`:h(m(6));break;case`mouseenter`:V(`onMouseEnter`);break;case`mouseleave`:V(`onMouseLeave`);break;case`autoResize`:f[J].autoResize=JSON.parse(m(9));break;case`scrollTo`:L(!1);break;case`scrollToOffset`:L(!0);break;case`pageInfo`:y(f[J]&&f[J].iframe,J),C();break;case`pageInfoStop`:w();break;case`inPageLink`:z(m(9));break;case`reset`:j(q);break;case`init`:t(),H(`onInit`,q.iframe);break;default:Number(q.width)===0&&Number(q.height)===0?S(`Unsupported message received (`+q.type+`), this is likely due to the iframe containing a later version of iframe-resizer than the parent page`):t()}}function U(e){var t=!0;return f[e]||(t=!1,S(q.type+` No settings for `+e+`. Message was: `+K)),t}function W(){for(var e in f)P(`iFrame requested init`,F(e),f[e].iframe,e)}function G(){f[J]&&(f[J].firstRun=!1)}var K=e.data,q={},J=null;K===`[iFrameResizerChild]Ready`?W():d()?(q=n(),J=q.id,f[J]&&(f[J].loaded=!0),!p()&&U(J)&&(b(J,`Received: `+K),E()&&u()&&ee())):x(J,`Ignored: `+K)}function T(e,t,n){var r=null,i=null;if(f[e])if(r=f[e][t],typeof r==`function`)i=r(n);else throw TypeError(t+` on iFrame[`+e+`] is not a function`);return i}function E(e){var t=e.id;delete f[t]}function D(e){var t=e.id;if(T(t,`onClose`,t)===!1){b(t,`Close iframe cancelled by onClose event`);return}b(t,`Removing iFrame: `+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){S(e)}T(t,`onClosed`,t),b(t,`--`),E(e),r&&=(r.disconnect(),null)}function O(t){l===null&&(l={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset},b(t,`Get page position: `+l.x+`,`+l.y))}function k(e){l!==null&&(window.scrollTo(l.x,l.y),b(e,`Set page position: `+l.x+`,`+l.y),A())}function A(){l=null}function j(e){function t(){M(e),P(`reset`,`reset`,e.iframe,e.id)}b(e.id,`Size reset requested by `+(e.type===`init`?`host page`:`iFrame`)),O(e.id),N(t,e,`reset`)}function M(e){function t(t){if(!e.id){b(`undefined`,`messageData id not set`);return}e.iframe.style[t]=e[t]+`px`,b(e.id,`IFrame (`+i+`) `+t+` set to `+e[t]+`px`)}function n(t){!a&&e[t]===`0`&&(a=!0,b(i,`Hidden iFrame detected, creating visibility listener`),V())}function r(e){t(e),n(e)}var i=e.iframe.id;f[i]&&(f[i].sizeHeight&&r(`height`),f[i].sizeWidth&&r(`width`))}function N(e,t,n){n!==t.type&&u&&!window.jasmine?(b(t.id,`Requesting animation frame`),u(e)):e()}function P(e,t,n,r,i){function a(){var i=f[r]&&f[r].targetOrigin;b(r,`[`+e+`] Sending msg to iframe[`+r+`] (`+t+`) targetOrigin: `+i),n.contentWindow.postMessage(s+t,i)}function o(){S(r,`[`+e+`] IFrame(`+r+`) not found`)}function c(){n&&`contentWindow`in n&&n.contentWindow!==null?a():o()}function l(){function e(){f[r]&&!f[r].loaded&&!u&&(u=!0,S(r,`IFrame has not responded within `+f[r].warningTimeout/1e3+` seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.`))}i&&f[r]&&f[r].warningTimeout&&(f[r].msgTimeout=setTimeout(e,f[r].warningTimeout))}var u=!1;r||=n.id,f[r]&&(c(),l())}function F(e){return e+`:`+f[e].bodyMarginV1+`:`+f[e].sizeWidth+`:`+f[e].log+`:`+f[e].interval+`:`+f[e].enablePublicMethods+`:`+f[e].autoResize+`:`+f[e].bodyMargin+`:`+f[e].heightCalculationMethod+`:`+f[e].bodyBackground+`:`+f[e].bodyPadding+`:`+f[e].tolerance+`:`+f[e].inPageLinks+`:`+f[e].resizeFrom+`:`+f[e].widthCalculationMethod+`:`+f[e].mouseEvents}function I(e){return typeof e==`number`}function L(t,a){function o(){function e(e){var n=f[k][e];n!==1/0&&n!==0&&(t.style[e]=I(n)?n+`px`:n,b(k,`Set `+e+` = `+t.style[e]))}function n(e){if(f[k][`min`+e]>f[k][`max`+e])throw Error(`Value for min`+e+` can not be greater than max`+e)}n(`Height`),n(`Width`),e(`maxHeight`),e(`minHeight`),e(`maxWidth`),e(`minWidth`)}function s(){var e=a&&a.id||m.id+ n++;return document.getElementById(e)!==null&&(e+=n++),e}function c(e){if(typeof e!=`string`)throw TypeError(`Invaild id for iFrame. Expected String`);return e===``&&(t.id=e=s(),i=(a||{}).log,b(e,`Added missing iframe ID: `+e+` (`+t.src+`)`)),e}function l(){switch(b(k,`IFrame scrolling `+(f[k]&&f[k].scrolling?`enabled`:`disabled`)+` for `+k),t.style.overflow=!1===(f[k]&&f[k].scrolling)?`hidden`:`auto`,f[k]&&f[k].scrolling){case`omit`:break;case!0:t.scrolling=`yes`;break;case!1:t.scrolling=`no`;break;default:t.scrolling=f[k]?f[k].scrolling:`no`}}function u(){(typeof(f[k]&&f[k].bodyMargin)==`number`||(f[k]&&f[k].bodyMargin)===`0`)&&(f[k].bodyMarginV1=f[k].bodyMargin,f[k].bodyMargin=``+f[k].bodyMargin+`px`)}function p(){var e=f[k]&&f[k].firstRun,n=f[k]&&f[k].heightCalculationMethod in d;!e&&n&&j({iframe:t,height:0,width:0,type:`init`})}function _(){f[k]&&(f[k].iframe.iFrameResizer={close:D.bind(null,f[k].iframe),removeListeners:E.bind(null,f[k].iframe),resize:P.bind(null,`Window resize`,`resize`,f[k].iframe),moveToAnchor:function(e){P(`Move to anchor`,`moveToAnchor:`+e,f[k].iframe,k)},sendMessage:function(e){e=JSON.stringify(e),P(`Send Message`,`message:`+e,f[k].iframe,k)}})}function v(n){function i(){P(`iFrame.onload`,n,t,e,!0),p()}function a(e){if(!t.parentNode)return null;var n=new e(function(e){e.forEach(function(e){Array.prototype.slice.call(e.removedNodes).forEach(function(e){e===t&&D(t)})})});return n.observe(t.parentNode,{childList:!0}),n}var o=h();o&&(r=a(o)),g(t,`load`,i),P(`init`,n,t,e,!0)}function y(e){if(typeof e!=`object`)throw TypeError(`Options is not an object`)}function x(e){for(var t in m)Object.prototype.hasOwnProperty.call(m,t)&&(f[k][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:m[t])}function C(e){return e===``||e.match(/^(about:blank|javascript:|file:\/\/)/)!==null?`*`:e}function w(e){var t=e.split(`Callback`);if(t.length===2){var n=`on`+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],S(k,`Deprecated: '`+e+`' has been renamed '`+n+`'. The old method will be removed in the next major version.`)}}function T(e){e||={},f[k]=Object.create(null),f[k].iframe=t,f[k].firstRun=!0,f[k].remoteHost=t.src&&t.src.split(`/`).slice(0,3).join(`/`),y(e),Object.keys(e).forEach(w,e),x(e),f[k]&&(f[k].targetOrigin=!0===f[k].checkOrigin?C(f[k].remoteHost):`*`)}function O(){return k in f&&`iFrameResizer`in t}var k=c(t.id);O()?S(k,`Ignored iFrame, already setup.`):(T(a),l(),o(),u(),v(F(k)),_())}function R(e,t){p===null&&(p=setTimeout(function(){p=null,e()},t))}var z={};function B(e,t,n){z[n]||(z[n]=setTimeout(function(){z[n]=null,e()},t))}function V(){function e(){function e(e){function t(t){return(f[e]&&f[e].iframe.style[t])===`0px`}function n(e){return e.offsetParent!==null}f[e]&&n(f[e].iframe)&&(t(`height`)||t(`width`))&&P(`Visibility change`,`resize`,f[e].iframe,e)}Object.keys(f).forEach(function(t){e(t)})}function t(t){b(`window`,`Mutation observed: `+t[0].target+` `+t[0].type),R(e,16)}function n(){var e=document.querySelector(`body`);new r(t).observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0})}var r=h();r&&n()}function H(e){function t(){U(`Window `+e,`resize`)}b(`window`,`Trigger event: `+e),R(t,16)}function ee(){function e(){U(`Tab Visible`,`resize`)}document.visibilityState!==`hidden`&&(b(`document`,`Trigger event: Visibility change`),R(e,16))}function U(e,t){function n(e){return f[e]&&f[e].resizeFrom===`parent`&&f[e].autoResize&&!f[e].firstRun}Object.keys(f).forEach(function(r){n(r)&&P(e,t,f[r].iframe,r)})}function W(){g(window,`message`,w),g(window,`resize`,function(){H(`resize`)}),g(document,`visibilitychange`,ee),g(document,`-webkit-visibilitychange`,ee)}function G(){function t(e,t){function n(){if(!t.tagName)throw TypeError(`Object is not a valid DOM element`);if(t.tagName.toUpperCase()!==`IFRAME`)throw TypeError(`Expected <IFRAME> tag, found <`+t.tagName+`>`)}t&&(n(),L(t,e),r.push(t))}function n(e){e&&e.enablePublicMethods&&S(`enablePublicMethods option has been removed, public methods are now always available in the iFrame`)}var r;return v(),W(),function(i,a){switch(r=[],n(i),typeof a){case`undefined`:case`string`:Array.prototype.forEach.call(document.querySelectorAll(a||`iframe`),t.bind(e,i));break;case`object`:t(i,a);break;default:throw TypeError(`Unexpected data type (`+typeof a+`)`)}return r}}function K(e){e.fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(e){function t(t,n){L(n,e)}return this.filter(`iframe`).each(t).end()}):x(``,`Unable to bind to jQuery, it is not fully loaded.`)}window.jQuery!==e&&K(window.jQuery),typeof define==`function`&&define.amd?define([],G):typeof t==`object`&&typeof t.exports==`object`&&(t.exports=G()),window.iFrameResize=window.iFrameResize||G()})()})),Bm=r.a(((e,t)=>{var n=!1,r=function(){};if(n){var i=function(e,t){var n=arguments.length;t=Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,a=`Warning: `+e.replace(/%s/g,function(){return t[i++]});try{throw Error(a)}catch{}};r=function(e,t,n){var r=arguments.length;n=Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(t===void 0)throw Error("`warning(condition, format, ...args)` requires a warning message argument");e||i.apply(null,[t].concat(n))}}t.exports=r})),Vm=r.l(zm()),Hm=r.l(Bm());function Um(){return Um=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Um.apply(this,arguments)}function Wm(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Gm=[`autoResize`,`bodyBackground`,`bodyMargin`,`bodyPadding`,`checkOrigin`,`inPageLinks`,`heightCalculationMethod`,`interval`,`log`,`maxHeight`,`maxWidth`,`minHeight`,`minWidth`,`resizeFrom`,`scrolling`,`sizeHeight`,`sizeWidth`,`warningTimeout`,`tolerance`,`widthCalculationMethod`,`onClosed`,`onInit`,`onMessage`,`onResized`],Km=(function(e){return e.autoResize,e.bodyBackground,e.bodyMargin,e.bodyPadding,e.checkOrigin,e.inPageLinks,e.heightCalculationMethod,e.interval,e.log,e.maxHeight,e.maxWidth,e.minHeight,e.minWidth,e.resizeFrom,e.scrolling,e.sizeHeight,e.sizeWidth,e.warningTimeout,e.tolerance,e.widthCalculationMethod,e.onClosed,e.onInit,e.onMessage,e.onResized,Wm(e,Gm)}),qm=[`title`,`forwardRef`],Jm=function(e){var t=e.title,n=t===void 0?`iframe`:t,r=e.forwardRef,i=Wm(e,qm),a=Km(i),o=(0,v.useRef)(null),s=function(){var e;return(0,Hm.default)(!(o!=null&&o.current),`[iframeSizerReact][`+(o==null||(e=o.current)==null?void 0:e.id)+`] Close event ignored, to remove the iframe update your React component`),!(o!=null&&o.current)};return(0,v.useEffect)(function(){var e=o.current;return(0,Vm.default)(Um({},i,{onClose:s}),e),function(){var t;return e==null||(t=e.iFrameResizer)==null?void 0:t.removeListeners()}},[]),(0,v.useImperativeHandle)(r,function(){return{getIframeElement:function(){return o.current},resize:function(){return o.current.iFrameResizer.resize()},moveToAnchor:function(e){return o.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,t){o.current.iFrameResizer.sendMessage(e,t)}}}),v.default.createElement(`iframe`,Um({title:n},a,{ref:o}))};Jm.propTypes={title:b.default.string};var Ym=new Set;function Xm(e){return Ym.add(e),{dispose(){Zm(e)}}}function Zm(e){Ym.delete(e)}function Qm(e,t){let n=e.getVersionId(),r=[],i=e.onDidChangeContent(i=>{if(i.versionId>n+1){let a=e.onDidChangeContent(o=>{if(i.versionId===n+1)try{Ym.has(e)||t(i)}catch{}finally{n=i.versionId;let e=r.indexOf(a);e>=0&&r.splice(e,1),a.dispose()}});r.push(a)}else try{Ym.has(e)||t(i)}catch{}finally{n=i.versionId}});return{dispose:()=>{i.dispose(),r.forEach(e=>e.dispose())}}}var $m=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,eh=globalThis,th=`9.47.1`;function nh(){return rh(eh),eh}function rh(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`9.47.1`,t[th]=t[`9.47.1`]||{}}function ih(e,t,n=eh){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[th]=r[`9.47.1`]||{};return i[e]||(i[e]=t())}var ah=`Sentry Logger `,oh={};function sh(e){if(!(`console`in eh))return e();let t=eh.console,n={},r=Object.keys(oh);r.forEach(e=>{let r=oh[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function ch(){hh().enabled=!0}function lh(){hh().enabled=!1}function uh(){return hh().enabled}function dh(...e){mh(`log`,...e)}function fh(...e){mh(`warn`,...e)}function ph(...e){mh(`error`,...e)}function mh(e,...t){$m&&uh()&&sh(()=>{eh.console[e](`${ah}[${e}]:`,...t)})}function hh(){return $m?ih(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var gh={enable:ch,disable:lh,isEnabled:uh,log:dh,warn:fh,error:ph},_h=Object.prototype.toString;function vh(e,t){return _h.call(e)===`[object ${t}]`}function yh(e){return vh(e,`Object`)}function bh(e){return!!(e?.then&&typeof e.then==`function`)}function xh(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Sh(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{$m&&gh.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ch(){let e=eh;return e.crypto||e.msCrypto}function wh(e=Ch()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,``);e?.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return`10000000100040008000100000000000`.replace(/[018]/g,e=>(e^(t()&15)>>e/4).toString(16))}var Th=1e3;function Eh(){return Date.now()/Th}function Dh(){let{performance:e}=eh;if(!e?.now||!e.timeOrigin)return Eh;let t=e.timeOrigin;return()=>(t+e.now())/Th}var Oh;function kh(){return(Oh??=Dh())()}function Ah(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||kh(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:wh()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function jh(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=jh(r[e],t[e],n-1));return r}function Mh(){return wh()}var Nh=`_sentrySpan`;function Ph(e,t){t?Sh(e,Nh,t):delete e[Nh]}function Fh(e){return e[Nh]}var Ih=100,Lh=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Mh(),sampleRand:Math.random()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Ph(t,Fh(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ah(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,extra:i,user:a,contexts:o,level:s,fingerprint:c=[],propagationContext:l}=(n instanceof e?n.getScopeData():yh(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Ph(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Mh(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:Ih;if(n<=0)return this;let r={timestamp:Eh(),...e,message:e.message?xh(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Fh(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=jh(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||wh();if(!this._client)return $m&&gh.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||wh();if(!this._client)return $m&&gh.warn(`No client configured on scope - will not capture message!`),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t?.event_id||wh();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):($m&&gh.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function Rh(){return ih(`defaultCurrentScope`,()=>new Lh)}function zh(){return ih(`defaultIsolationScope`,()=>new Lh)}var Bh=class{constructor(e,t){let n;n=e||new Lh;let r;r=t||new Lh,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return bh(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Vh(){let e=rh(nh());return e.stack=e.stack||new Bh(Rh(),zh())}function Hh(e){return Vh().withScope(e)}function Uh(e,t){let n=Vh();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Wh(e){return Vh().withScope(()=>e(Vh().getIsolationScope()))}function Gh(){return{withIsolationScope:Wh,withScope:Hh,withSetScope:Uh,withSetIsolationScope:(e,t)=>Wh(t),getCurrentScope:()=>Vh().getScope(),getIsolationScope:()=>Vh().getIsolationScope()}}function Kh(e){let t=rh(e);return t.acs?t.acs:Gh()}function qh(){return Kh(nh()).getCurrentScope()}function Jh(e){if(e)return Yh(e)||Zh(e)?{captureContext:e}:e}function Yh(e){return e instanceof Lh||typeof e==`function`}var Xh=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Zh(e){return Object.keys(e).some(e=>Xh.includes(e))}function Qh(e,t){return qh().captureException(e,Jh(t))}var $h=1e3,eg=2e3,tg=10,ng=`iframe_errors`,rg=5;function ig(e,t){let{__:n}=p.v(),r=i.$(),a=_.p(e),{error:o}=p.i(),s=(0,v.useRef)(0),c=(0,v.useRef)(void 0),l=(0,v.useRef)(!1),u=i.cr(i.n),d=(0,v.useCallback)(e=>new Promise((t,n)=>{let a=r.addListener(i.Wr.SANDBOX_READY,()=>{a.dispose(),t()});e&&setTimeout(()=>{a.dispose(),n(`timeout`)})}),[r]),f=(0,v.useCallback)(f=>{d(eg).catch(e=>void 0).finally(()=>{Promise.resolve().then(()=>{if(!l.current){if(++s.current){if(c.current){if(s.current<rg){a.restoreSnapshot(c.current);for(let e=0;e<s.current;e++)a.undo()}}else c.current=a.createSnapshot();r.send(i.Wr.RELOAD)}setTimeout(()=>{if(--s.current===0){c.current=null;let r=Error(f.message);f.stack&&(r.stack=f.stack);let s=Qh(r,{tags:{origin:`iframe`}}),d={past:a.getPast().slice(0,tg),future:a.getFuture(),errorResolved:!l.current,text:e.getValue(),message:f.message,stack:f.stack,userId:u?.id,entityId:t?.id,entityType:document.location.pathname.indexOf(`emails`)>0?`email`:`block`,sentryEventId:s};o({id:`IFRAME_ERROR`,data:d,message:n(`Something went wrong`)}),i.Ti.post(ng,d).catch(e=>void 0),l.current=!1}},eg)}})})},[a,e,o,u?.id,t?.id,n,d,r]);_.g(i.Wr.APPLICATION_DOMPARSER_ERROR,f),(0,v.useEffect)(()=>{let n=null,a=0;function o(e){let t=[];for(let{rangeOffset:n,rangeLength:r,text:i}of e.changes)t.push({range:{start:n,end:n+r},text:i});return t}let s=!1;function c({guid:n,edits:r,pushUndoStop:i}){if(e&&n===t.renderGuid)try{s=!0;let t=_.h(),n=t.canUndo(e.uri),o=t.canRedo(e.uri),c=r.map(({text:t,range:n})=>{let r=e.getPositionAt(n.start),i=e.getPositionAt(n.end);return{text:t,range:{startColumn:r.column,startLineNumber:r.lineNumber,endColumn:i.column,endLineNumber:i.lineNumber}}});i?e.pushEditOperations([],c,()=>null):!n&&!o?e.applyEdits(c):e.pushEditOperations([],c,()=>null),i!==!1&&(a&&clearTimeout(a),a=setTimeout(()=>{e.pushStackElement(),a=0},$h))}finally{s=!1}}let l=new i.Da,u=async e=>{if(s)await r.sendAsync(i.Wr.SANDBOX_UPDATE_ENTITY,{edits:[o(e)],guid:t.renderGuid});else if(n)n.push(e);else{n=[e];do{let e=n.splice(0,n.length);await r.sendAsync(i.Wr.SANDBOX_UPDATE_ENTITY,{edits:e.map(o),guid:t.renderGuid})}while(n.length);n=null}};return l.addDisposable(Qm(e,e=>u(e).catch(e=>void 0))),l.addDisposable(r.addListener(i.Wr.APPLICATION_UPDATE_ENTITY,c)),()=>{l.dispose(),a&&clearTimeout(a)}},[e,r,t.renderGuid])}var ag=Symbol(`isIframeEvent`);function og({children:e}){let[t,n]=(0,v.useState)(),[r,a]=(0,v.useState)(),[o,s]=(0,v.useState)(!1),c=i.$();return(0,v.useEffect)(()=>{if(t){let e=c.addListener(i.Wr.APPLICATION_IFRAME_DRAG_EVENT,e=>{if(e.type!==`drageleave`&&e.type!==`dragenter`){let n=t.getBoundingClientRect(),r=e.clientX+n.x+window.scrollX,i=e.clientY+n.y+window.scrollY,a=document.elementFromPoint(r,i);if(a){let t=new DataTransfer,n=new DragEvent(e.type,{clientX:r,clientY:i,cancelable:!0,bubbles:!0,dataTransfer:t});n[ag]=!0,a.dispatchEvent(n)}}});return()=>e.dispose()}},[c,t]),(0,v.useEffect)(()=>{let e=e=>{e[ag]||s(!0)},t=e=>{e[ag]||s(!1)};return window.addEventListener(`dragstart`,e),window.addEventListener(`dragend`,t),()=>{window.removeEventListener(`dragstart`,e),window.removeEventListener(`dragend`,t)}},[r]),(0,v.useEffect)(()=>{let e=e=>{if(!e[ag]){let t=r.getBoundingClientRect();c.send(i.Wr.SANDBOX_DRAG_EVENT,{value:e.dataTransfer?.getData(`Text`)||``,type:e.type,clientX:e.pageX-t.x-window.scrollX,clientY:e.pageY-t.y-window.scrollY})}};if(r)return r.addEventListener(`dragenter`,e),r.addEventListener(`dragover`,e),r.addEventListener(`dragleave`,e),r.addEventListener(`drop`,e),r.addEventListener(`dragend`,e),()=>{r.removeEventListener(`dragenter`,e),r.removeEventListener(`dragover`,e),r.removeEventListener(`dragleave`,e),r.removeEventListener(`drop`,e),r.removeEventListener(`dragend`,e)}},[r,c]),(0,C.jsxs)(`div`,{ref:n,children:[o&&(0,C.jsx)(`div`,{ref:a,className:`iframe-provider`}),e]})}function sg(e,t){let n=i.$(),r=t?.async??!1;(0,v.useEffect)(()=>{let t=r?n.addListenerAsync(i.Wr.RELOAD,e):n.addListener(i.Wr.RELOAD,e);return()=>t.dispose()},[n,e,r]),(0,v.useEffect)(()=>{},[e])}function cg(){let e=i.$(),t=i.cr(i.n),{__:n}=p.v(),[r,a]=(0,v.useState)(``);(0,v.useEffect)(()=>{if(t.locale!==r){let r=i.ui(n),o=e.onInit(()=>{e.send(i.Wr.SANDBOX_TRANSLATIONS,{name:t.locale,data:r}),a(t.locale)});return()=>o.dispose()}},[t.locale,r,a,n,e]),sg((0,v.useCallback)(()=>{a(``)},[]))}function lg(){let e=i.$(),{token:t}=p.Vt(),[n,r]=(0,v.useState)();(0,v.useEffect)(()=>{if(!o.k(n,t)){let n=e.onInit(()=>{e.send(i.Wr.SANDBOX_SET_THEME_VARIABLES,t),r(t)});return()=>n.dispose()}},[t,n,r,e]),sg((0,v.useCallback)(()=>{r(void 0)},[]))}function ug(){let e=i.$(),t=i.or(i.fa);Sr(([n])=>{let r=e.onInit(()=>{e.send(i.Wr.SANDBOX_ADD_EXTENSIONS,t)});if(e.isInited()){let{added:r,removed:a}=h.i.diff(n||[],t||[],(e,t)=>e.type===t.type&&e.key===t.key);if(a.length){if(a.some(e=>e.type===`script`)){e.send(i.Wr.RELOAD);return}e.send(i.Wr.SANDBOX_REMOVE_EXTENSIONS,a.map(e=>e.key))}r.length&&e.send(i.Wr.SANDBOX_ADD_EXTENSIONS,r)}return()=>r.dispose()},[t,e])}var dg=e=>{let t=e?`iframe-eblock`:`iframe`;return`${`${p.t().replace(/\/?$/,`/`)}iframe/`}${t}.3e49164c.html`},fg=(0,v.forwardRef)(({className:e=null,email:t=null,handlerSendPosition:n=()=>{}},r)=>{let a=i.lr(),o=i.cr(i.Nt),s=_.l(),c=i.Wt(),l=i.nt(),u=i.et(),d=i.$(),f=p.m(i.ea.ON_EMAIL_INIT_ID),[m,h]=(0,v.useState)();ug();let g=(0,v.useCallback)(e=>{let a=window.localStorage.getItem(i.Yr.em_color_scheme),d=matchMedia(`(prefers-color-scheme: dark)`).matches?i.Ar:i.qr,f=window.localStorage.getItem(i.Yr.em_code_mode_settings)?JSON.parse(window.localStorage.getItem(i.Yr.em_code_mode_settings)):null,p={operation:i.Wr.UPDATE_PREVIEW,versionId:s?.getVersionId()||0,theme:a&&a!==`system`?a:d,commonStyles:ul(t?.common_styles,o),pathEnabled:c.pathEnabled,copyPasteEnabled:c.copyPasteEnabled,saveBlockEnabled:c.saveBlockEnabled,editImageControlEnabled:c.editImageControlEnabled,codeMode:f?!!(f.isCodeMode&&(f.codeModeDirection===`left`||f.codeModeDirection===`right`)):!1,elementAIimageEnabled:c.elementAIimageEnabled,imageCenterStockEnabled:c.imageCenterStockEnabled,imageCenterGifEnabled:c.imageCenterGifEnabled,imageCenterEditorEnabled:c.imageCenterEditorEnabled,blocksAddPanelEnabled:c.blocksAddPanelEnabled!==!1&&c.blocksSectionsShow!==!1,lockEditor:c.lockEditor,appName:`emailmaker`};h(e.target),l(e.target),r.current.resize(),u(p),n()},[c,n,u,s,t?.common_styles,o,r,h,l]);(0,v.useEffect)(()=>{d.isInited()&&u({operation:i.Wr.UPDATE_PREVIEW,lockEditor:c.lockEditor})},[d,c.lockEditor]),(0,v.useEffect)(()=>{d.isInited()&&u({operation:i.Wr.UPDATE_PREVIEW,commonStyles:ul(t?.common_styles,o)})},[d,t?.common_styles,o,u]);let y=(0,v.useCallback)(e=>{e.data.operation===i.Wr.SANDBOX_RESIZED&&r.current?.resize()},[r]);(0,v.useEffect)(()=>{let e=f(()=>{r.current.resize()});return()=>e.dispose()},[r,f]),(0,v.useEffect)(()=>()=>{l()},[l]);let b=(0,v.useCallback)(()=>new Promise(e=>{d.setTarget(void 0);let t=()=>{g({target:m}),e(),m?.removeEventListener(`load`,t)};m?.addEventListener(`load`,t)}),[d,g,m]);return(0,v.useEffect)(()=>{let e=d.addListenerAsync(i.Wr.RELOAD,b,2**53-1);return()=>e.dispose()},[d,b]),_.g(y),_.g(()=>{r.current?.resize()},i.Wr.SANDBOX_INITED),cg(),lg(),(0,v.useEffect)(()=>{matchMedia(i.ai).addEventListener(`change`,e=>{let t=window.localStorage.getItem(i.Yr.em_color_scheme),n=e.matches?i.Ar:i.qr;u({operation:i.Wr.UPDATE_PREVIEW,theme:t||n})})},[u]),ig(s,t),(0,v.useEffect)(()=>{let e=s.onDidChangeContent(()=>{r.current.resize()});return()=>e.dispose()},[s,r]),_.g((0,v.useCallback)(e=>{e.data.operation===i.Wr.APPLICATION_COMMON_STYLES_UPDATE&&a(i.gt.util.updateQueryData(`getEmail`,t.id,t=>Object.assign(t,{common_styles:JSON.stringify(e.data.settings.commonStyles)})))},[a,t.id])),(0,C.jsx)(og,{children:(0,C.jsx)(Jm,{forwardRef:r,checkOrigin:!1,sandbox:`allow-top-navigation allow-scripts allow-popups allow-popups-to-escape-sandbox`,className:(0,E.default)(`email-preview`,{[e]:e}),width:`100%`,minHeight:600,scrolling:`no`,id:`email_iframe`,allow:`clipboard-read; clipboard-write`,src:dg(t.hasOwnProperty(`type`)),title:`Email content`,onLoad:g})})});fg.propTypes={className:b.default.string,email:b.default.shape({html:b.default.string}),handlerSendPosition:b.default.func};var pg=(0,v.lazy)(()=>Promise.resolve().then(()=>e(`./c173a170.js`))),mg={height:`100%`};function hg(e){return(0,C.jsx)(v.Suspense,{fallback:(0,C.jsx)(p.J,{justify:`center`,align:`center`,style:mg,children:(0,C.jsx)(p.Y,{size:`large`})}),children:(0,C.jsx)(pg,{...e})})}var gg=({emailElement:e})=>{let{__:t}=p.v(),n=i.et(),r=i.lr(),{projectId:o}=(0,S.useParams)(),s=_.l(),c=i.cr(a.Z),l=i.cr(a.X),d=i.cr(i.dn),[f,h]=(0,v.useState)(!0),[g,y]=(0,v.useState)(!1),[b,x]=(0,v.useState)([]),[w,T]=(0,v.useState)([]),D=e=>r(i.Tn(e)),O=(0,v.useCallback)(e=>{r(u.R(e)),s.setValue(e?.html.replaceAll(`\r
823
+ `,bm=`/`,xm=`*`,Sm=``,Cm=`comment`,wm=`declaration`})),Em=r.s({default:()=>Dm});function Dm(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=lm(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n||={},n[r]=a)}),n}var Om=r.o((()=>{Tm()})),km=r.a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Am=r.a(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})((Om(),r.c(Em))),i=km();function a(e,t){var r={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(r[(0,i.camelCase)(e,t)]=n)}),r}a.default=a,t.exports=a})),jm=r.a((t=>{var n=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=o,t.setStyleProp=c;var r=e(`react`),i=n(Am()),a=new Set([`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`]);function o(e,t){return e.includes(`-`)?!a.has(e):!!(t&&typeof t.is==`string`)}var s={reactCompat:!0};function c(e,t){if(typeof e==`string`){if(!e.trim()){t.style={};return}try{t.style=(0,i.default)(e,s)}catch{t.style={}}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(`.`)[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set([`tr`,`tbody`,`thead`,`tfoot`,`colgroup`,`table`,`head`,`html`,`frameset`]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}})),Mm=r.a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=o;var t=cm(),n=jm(),r=[`checked`,`value`],i=[`input`,`select`,`textarea`],a={reset:!0,submit:!0};function o(e,o){e===void 0&&(e={});var c={},l=!!(e.type&&a[e.type]);for(var u in e){var d=e[u];if((0,t.isCustomAttribute)(u)){c[u]=d;continue}var f=u.toLowerCase(),p=s(f);if(p){var m=(0,t.getPropertyInfo)(p);switch(r.includes(p)&&i.includes(o)&&!l&&(p=s(`default`+f)),c[p]=d,m&&m.type){case t.BOOLEAN:c[p]=!0;break;case t.OVERLOADED_BOOLEAN:d===``&&(c[p]=!0);break}continue}n.PRESERVE_CUSTOM_ATTRIBUTES&&(c[u]=d)}return(0,n.setStyleProp)(e.style,c),c}function s(e){return t.possibleStandardNames[e]}})),Nm=r.a((t=>{var n=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0}),t.default=s;var r=e(`react`),i=n(Mm()),a=jm(),o={cloneElement:r.cloneElement,createElement:r.createElement,isValidElement:r.isValidElement};function s(e,t){t===void 0&&(t={});for(var n=[],r=typeof t.replace==`function`,l=t.transform||a.returnFirstArg,u=t.library||o,d=u.cloneElement,f=u.createElement,p=u.isValidElement,m=e.length,h=0;h<m;h++){var g=e[h];if(r){var _=t.replace(g,h);if(p(_)){m>1&&(_=d(_,{key:_.key||h})),n.push(l(_,g,h));continue}}if(g.type===`text`){var v=!g.data.trim().length;if(v&&g.parent&&!(0,a.canTextBeChildOfNode)(g.parent)||t.trim&&v)continue;n.push(l(g.data,g,h));continue}var y=g,b={};c(y)?((0,a.setStyleProp)(y.attribs.style,y.attribs),b=y.attribs):y.attribs&&(b=(0,i.default)(y.attribs,y.name));var x=void 0;switch(g.type){case`script`:case`style`:g.children[0]&&(b.dangerouslySetInnerHTML={__html:g.children[0].data});break;case`tag`:g.name===`textarea`&&g.children[0]?b.defaultValue=g.children[0].data:g.children&&g.children.length&&(x=s(g.children,t));break;default:continue}m>1&&(b.key=h),n.push(l(f(g.name,b,x),g,h))}return n.length===1?n[0]:n}function c(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&e.type===`tag`&&(0,a.isCustomComponent)(e.name,e.attribs)}})),Pm=r.a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=o;var n=t(om());e.htmlToDOM=n.default,e.attributesToProps=t(Mm()).default;var r=t(Nm());e.domToReact=r.default;var i=nm();Object.defineProperty(e,`Comment`,{enumerable:!0,get:function(){return i.Comment}}),Object.defineProperty(e,`Element`,{enumerable:!0,get:function(){return i.Element}}),Object.defineProperty(e,`ProcessingInstruction`,{enumerable:!0,get:function(){return i.ProcessingInstruction}}),Object.defineProperty(e,`Text`,{enumerable:!0,get:function(){return i.Text}});var a={lowerCaseAttributeNames:!1};function o(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);return e?(0,r.default)((0,n.default)(e,t?.htmlparser2||a),t):[]}})),Fm=r.l(Pm(),1),Im=Fm.default.default||Fm.default,Lm=e=>{let{__:t}=p.v();return[{key:`📧`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`theme-and-preheader-generator`)},children:[`📧 `,t(`Subject line & preheader generator`)]})},{key:`🌎`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`translator`)},children:[`🌎 `,t(`Translator`)]})},{key:`📄`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`writer`)},children:[`📄 `,t(`Copywriter`)]})},{key:`🔎`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`corrector`)},children:[`🔎 `,t(`Proofreader`)]})},{key:`🧠`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`psychologist`)},children:[`🧠 `,t(`Psychologist`)]})},{key:`📈`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`marketolog`)},children:[`📈 `,t(`Marketer`)]})},{key:`✨`,label:(0,C.jsxs)(`div`,{onClick:()=>{e(`email-generator`)},children:[`✨ `,t(`Email generator`)]})}]},Rm=({messages:e,newEmailAiGeneratorRef:t})=>{let n=_.l(),{__:r,_n:s}=p.v(),c=i.lr(),l=(0,S.useNavigate)(),d=(0,v.useRef)(null),f=i.Wt(),h=p.i(),{projectId:g,emailId:y}=(0,S.useParams)(),b=i.G(),x=p.h(i.ea.ON_LIMIT_ID),[w,T]=(0,v.useState)(null),[E,D]=(0,v.useState)(0),[O,k]=(0,v.useState)(!1),[A,j]=(0,v.useState)(``),[M,N]=(0,v.useState)([]),[P,F]=(0,v.useState)(!1),[I,L]=(0,v.useState)(!1),[R,z]=(0,v.useState)(null),[B,V]=(0,v.useState)(0),[H,ee]=(0,v.useState)(null),U=i.cr(u.w),W=i.cr(i.n),G=i.$(),[K]=a.Rn(),q=i.et(),[J,Y]=a.zn(),[te,{reset:X}]=a.Gt(),[ne,{data:re=[]}]=a.qt(),[ie]=o.h(),ae={cursor:O?`not-allowed`:`default`,pointerEvents:O?`none`:`auto`};(0,v.useEffect)(()=>{H&&P&&(t.current=!0),P||(t.current=!1)},[H,P]);let oe=!!(f.limits&&f.counters)&&i.ii.isPlugin,{limits:Z}=i.ii.isPlugin&&f.limits?f:{limits:{ai_limit:0,ai_generator_limit:0}},{ai_limit:se,ai_generator_limit:ce}=Z,le=oe&&E>=se&&se>0,ue=oe&&B>=ce&&ce>0,de=(0,v.useCallback)(()=>{x.fire({name:`AiChatCount`,count:E+1})},[x,E]),fe=(0,v.useCallback)(()=>{x.fire({name:`AiGeneratorCount`,count:B+1})},[x,B]),pe=(0,v.useCallback)(async e=>{if(i.ii.isPlugin||!m.i((await ie(e)).data?.stats))return!0;let t=r(e===`email_generate`?`You have reached the limit of AI generator usage.`:`You have reached the limit of AI chat usage.`);return h.error({message:t,description:r(`Please upgrade your plan.`)}),N(e=>[...e,{data:{role:`assistant`,message:t}}]),!1},[r,ie,h]);(0,v.useEffect)(()=>{oe&&(D(f?.counters?.ai_counter||0),V(f?.counters?.ai_generator_counter||0))},[f,oe]),(0,v.useEffect)(()=>{ee(M.length<=0?!1:M.toReversed().find(e=>e.data?.context)?.data.context===`email-generator`)},[M]);let me=(0,v.useCallback)(async()=>await G.sendAsync(i.Wr.SANDBOX_IS_EMAIL_EMPTY),[G]),he=(0,v.useCallback)(()=>{let e=d.current?.closest(`.ant-tabs-content.ant-tabs-content-top`);setTimeout(()=>{e?.scrollTo({top:e.scrollHeight,behavior:`smooth`})},0)},[d]),ge=(0,v.useCallback)(()=>{K({entity_id:y}).then(e=>{N(e.data.documents),he()})},[y,K,N,he]),_e=(0,v.useCallback)(e=>{F(!0),k(!0),te({task_id:e||w,entity_id:y,status:`started`}).then(()=>{ge()})},[y,te,w,ge]),ve=(0,v.useCallback)(()=>{te({task_id:w,entity_id:y,status:`completed`}).then(e=>{e.data.status===403&&X(),ge()}).catch(e=>{}),k(!1),F(!1)},[y,te,w,ge,X]);(0,v.useEffect)(()=>{let e;if(P){let t=re[re.length-1]?.processing?.email;if(t){let r=re[re.length-1].status;e=setInterval(n.setValue(t),500),r===0&&ve()}R&&(clearInterval(e),c(u.B(t)),F(!1),z(!1))}return()=>{clearInterval(e)}},[n,R,c,re,P,U,y,w,ge,te,Y,ve]),(0,v.useEffect)(he,[he]),(0,v.useEffect)(()=>{e?.length>0&&N(e),q({operation:i.Wr.SANDBOX_EMAIL_CONTENT_GET})},[e,q]),(0,v.useEffect)(()=>{let e=G.onInit(()=>{G.send({operation:i.Wr.SANDBOX_LOCK_EDIT,data:O}),G.send({operation:i.Wr.SANDBOX_LOCK_DISCUSS,value:O})});return()=>e.dispose()},[O,G]);let ye=async()=>{if(A){let e=A.replaceAll(/\n/g,`<br>`),t={project_id:g,connection:`chat`,entity_id:y,message:e,locale:W.locale.slice(0,2),subject:U.subject||``,preheader:U.preheader||``,textContent:a.o(n.getValue())};if(H&&ue||le){h.error({message:r(H?`You have reached the limit of AI generator usage.`:`You have reached the limit of AI chat usage.`),description:r(`Please upgrade your plan.`)});let e={data:{role:`assistant`,message:r(H?`You have reached the limit of AI generator usage.`:`You have reached the limit of AI chat usage.`)}};N(t=>[...t,e])}else{if(!await pe(H?`email_generate`:`ai`)){j(``);return}oe&&(H&&B!==ce?(fe(),V(e=>e+1)):E!==se&&(de(),D(e=>e+1))),b({event:`submit_form`,action:`chat_whit_ai_assistant`,entity_id:t.entity_id,project_id:t.project_id});let n=[{data:{role:`user`,message:e,userInfo:{display_name:W.first_name+` `+W.last_name,avatar_url:W.avatar_urls[24]}}},{data:{role:`assistant`,message:r(`Typing...`),isLoading:!0}}];N(e=>[...e,...n]),J({body:t}).then(e=>{if(e.data.status===401)throw Error(i.Hr);if(b({event:`submit`,action:`send_discussion_chat_message`,entity_type:(U.hasOwnProperty(`type`)?`block`:`email`)==`block`?`block`:`email`,entity_id:y,project_id:g,context:`editor`}),e.data.task_id){let t=e.data.task_id;T(t),ne({id:t,setError:z}),me().then(e=>{e?_e(t):L(!0)})}ge()}).catch(e=>{h.error({message:e?.data?.code||r(`Error`),description:e?.data?.message||r(`Something went wrong.`)})})}j(``)}},be=async e=>{let t={data:{role:`assistant`,message:r(`Typing...`),isLoading:!0}};N(e=>[...e,t]);let o={project_id:g,connection:`chat`,entity_id:y,context:e,locale:W.locale.slice(0,2),subject:U.subject||``,preheader:U.preheader||``,textContent:a.o(n.getValue())};if(oe&&(H&&B!==ce?(fe(),V(e=>e+1)):E!==se&&(de(),D(e=>e+1))),le){h.error({message:r(`You have reached the limit of AI chat usage.`),description:r(`Please upgrade your plan.`)});let e={data:{role:`assistant`,message:r(`You have reached the limit of AI chat usage.`)}};N(t=>[...t,e])}else{if(!await pe(`ai`))return;b({event:`select`,action:`select_ai_assistant_role`,context:o.context,entity_id:o.entity_id,project_id:o.project_id}),J({body:o}).then(e=>{if(e.data.status===401)throw Error(i.Hr);ge()}).catch(e=>{h.error({message:e?.data?.code||`Error`,description:e?.data?.message||`Something went wrong`})})}},xe=(0,v.useCallback)(async e=>{let t={data:{role:`user`,message:e,userInfo:{display_name:W.first_name+` `+W.last_name,avatar_url:W.avatar_urls[24]}}},o={data:{role:`assistant`,message:r(`Typing...`),isLoading:!0}};N(e=>[...e,t,o]);let s={project_id:g,connection:`chat`,entity_id:y,message:e,locale:W.locale.slice(0,2),subject:U.subject||``,preheader:U.preheader||``,textContent:a.o(n.getValue())};if(ue){h.error({message:r(`You have reached the limit of AI generator usage.`),description:r(`Please upgrade your plan.`)});let e={data:{role:`assistant`,message:r(`You have reached the limit of AI chat usage.`)}};N(t=>[...t,e])}else{if(!await pe(H?`email_generate`:`ai`))return;J({body:s}).then(e=>{if(e.data.status===401)throw Error(i.Hr);if(b({event:`submit`,action:`send_discussion_chat_message`,entity_type:(U.hasOwnProperty(`type`)?`block`:`email`)==`block`?`block`:`email`,entity_id:y,project_id:g,context:`editor`}),e.data.task_id){let t=e.data.task_id;T(t),ne({id:t,setError:z}),me().then(e=>{e?_e(t):L(!0)})}oe&&(H&&B!==ce?(fe(),V(e=>e+1)):E!==se&&(de(),D(e=>e+1))),ge()}).catch(e=>{h.error({message:e?.data?.code||`Error`,description:e?.data?.message||`Something went wrong`})})}},[r,E,B,me,_e,se,ce,W,U,y,H,ue,de,fe,oe,n,h,pe,g,J,ne,ge]);(0,v.useEffect)(()=>{let e=window.localStorage.getItem(i.Yr.em_ai_settings);if(M.length===1&&M[0].data.role===`assistant`&&e&&y){let t=new i.Da,n={project_id:g,connection:`chat`,entity_id:y,context:`email-generator`,locale:W.locale.slice(0,2)};window.localStorage.removeItem(i.Yr.em_ai_settings),J({body:n}).then(({data:n})=>{t.isDisposed()||xe(e)})}},[M,xe,y,W.locale,g,J]);let Se=e=>{typeof e.target.className==`string`&&e.target.className.includes(`ai-response-change-context`)&&(Y.isLoading||be(e.target.role))},Ce=e=>{let t=e.children[0].data;G.send(i.Wr.SANDBOX_SUBJECT_UPDATE,{value:e.children[0].data,guid:U.renderGuid,fromAI:!0}),h.success({id:`EMAIL_TITLE_UPDATED_FROM_AI`,message:r(`Title copied to email settings`),data:t})},we=e=>{let t=e.children[0].data;G.send(i.Wr.SANDBOX_PREHEADER_UPDATE,{value:e.children[0].data,guid:U.renderGuid,fromAI:!0}),h.success({id:`EMAIL_TITLE_UPDATED_FROM_AI`,message:r(`Preheader copied to email settings`),data:t,duration:300})},Te=e=>{let t=e.children[0].data;navigator.clipboard.writeText(t).then(()=>{h.success({id:`TEXT_COPIED_TO_CLIPBOARD`,message:r(`Text copied to clipboard`),data:t})}).catch(e=>{})},Ee={replace:e=>{if(e.attribs?.class?.split(` `).includes(`ai-response-title`))return(0,C.jsx)(p.K,{placement:`left`,title:r(`Replace the title`),children:(0,C.jsx)(`div`,{onClick:()=>Ce(e),children:(0,C.jsx)(`span`,{className:`ai-response-title`,children:(0,Fm.domToReact)(e.children,Ee)})})});if(e.attribs?.class?.split(` `).includes(`ai-response-preheader`))return(0,C.jsx)(p.K,{placement:`left`,title:r(`Replace the preheader`),children:(0,C.jsx)(`div`,{onClick:()=>we(e),children:(0,C.jsx)(`span`,{className:`ai-response-preheader`,children:(0,Fm.domToReact)(e.children,Ee)})})});if(e.attribs?.class?.split(` `).includes(`ai-response-copy`))return(0,C.jsx)(p.K,{placement:`left`,title:r(`Copy to clipboard`),children:(0,C.jsx)(`div`,{onClick:()=>Te(e),children:(0,C.jsx)(`span`,{className:`ai-response-copy`,children:(0,Fm.domToReact)(e.children,Ee)})})});if(e.attribs?.class?.split(` `).includes(`ai-response-user-message`)){let t=e.attribs?.data||e.children?.[0]?.data;return(0,C.jsx)(`li`,{className:e.attribs?.class,data:e.attribs?.data,onClick:()=>xe(t),children:(0,Fm.domToReact)(e.children,Ee)})}}};return(0,C.jsxs)(`div`,{ref:d,className:`discuss-main`,children:[M.length>0&&(0,C.jsx)(p.ft,{onClick:Se,className:`comment-list`,itemLayout:`horizontal`,dataSource:M,renderItem:e=>(0,C.jsx)(`li`,{id:e._id,children:(0,C.jsx)(p.ht,{className:e.data.userInfo?``:`ai-comment`,avatar:e.data.role===`assistant`?(0,C.jsx)(m.d,{icon:`ChatGpt`,className:`anticon-robot`,style:{color:`#ffffff`,fontSize:16,width:24,height:24,borderRadius:`50%`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`}}):e.data.userInfo&&(e.data._modified||!i.ii.isPlugin)?e.data.userInfo.avatar_url:W.avatar_urls[24]||(0,C.jsx)(m.d,{icon:`UserOutlined`,className:`anticon-user`,style:{color:`#ffffff`,fontSize:16,width:24,height:24,borderRadius:`50%`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`}}),author:(0,C.jsx)(`div`,{style:ae,children:e?.data?.role===`user`?i.ii.isPlugin?W?.username||r(`User`):e.data?.userInfo?.display_name:r(`AI Assistant`)}),datetime:e._created?(0,C.jsx)(`span`,{dangerouslySetInnerHTML:{__html:i.h(i.rt(e._created),s,!0)}}):null,content:e.data.isLoading?(0,C.jsx)(`div`,{className:`spin`,children:(0,C.jsx)(m.d,{icon:`LoadingOutlined`,style:{fontSize:24},spin:!0})}):(0,C.jsx)(`div`,{style:ae,children:Im(e.data.message,Ee)})})},e._id)}),oe&&(H?(0,C.jsx)(p.L,{text:`${B} ${r(`of`)} ${ce>0?ce:`∞`} ${r(`mail generator`)} ${s(`was used`,`were used`,B)}`,exceeded:ce>0&&B>=ce,style:{marginTop:-25},extra:(0,C.jsx)(`span`,{style:{textDecoration:`underline`,cursor:`pointer`},onClick:()=>l(f.billingPageUrl||i.xr.billing),children:r(`Need more?`)})}):(0,C.jsx)(p.L,{text:`${E} ${r(`of`)} ${se>0?se:`∞`} ${r(`messeges`)} ${s(`was used`,`were used`,E)}`,exceeded:se>0&&E>=se,style:{marginTop:-25},extra:(0,C.jsx)(`span`,{style:{textDecoration:`underline`,cursor:`pointer`},onClick:()=>l(f.billingPageUrl||i.xr.billing),children:r(`Need more?`)})})),(0,C.jsxs)(p.It,{onFinish:ye,className:`addMode`,children:[(0,C.jsx)(p.It.Item,{style:{marginBottom:10},children:(0,C.jsx)(p.Ct,{disabled:O,value:A,onChange:e=>j(e.target.value),rows:4,placeholder:r(`Type your request`),className:`textarea-comment`,onPressEnter:e=>e.key===`Enter`&&e.ctrlKey&&ye(),spellCheck:`false`})}),(0,C.jsx)(p.It.Item,{children:(0,C.jsxs)(p.xt,{size:8,children:[(0,C.jsx)(p.Rt,{disabled:Y.isLoading||O,type:`default`,style:{background:`var(--colorInfo)`,color:`#ffffff`},className:`button-target`,children:(0,C.jsx)(p.nt,{placement:`top`,disabled:O,arrow:{pointAtCenter:!0},menu:{items:Lm(be)},children:(0,C.jsxs)(`div`,{disabled:O,style:{margin:0,padding:0},children:[(0,C.jsx)(m.d,{icon:`ChatGpt`,style:{marginRight:5}}),r(`Role`)]})},`Export`)}),(0,C.jsxs)(p.Rt,{disabled:Y.isLoading||O,className:`button-add`,type:`primary`,htmlType:`submit`,children:[r(`Send`),` `,(0,C.jsx)(m.d,{icon:`SendOutlined`,size:16,strokeWidth:f.iconStrokeWidth})]})]})})]}),(0,C.jsx)(p.Z,{title:r(`Warning`),open:I,onOk:()=>{_e(),L(!1)},onCancel:()=>{ve(),L(!1)},children:(0,C.jsx)(`p`,{children:r(`The current template will be changed to the generated one, are you sure about this?`)})})]})},zm=r.a(((e,t)=>{(function(e){if(typeof window>`u`)return;var n=0,r,i=!1,a=!1,o=7,s=`[iFrameSizer]`,c=s.length,l=null,u=window.requestAnimationFrame,d=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),f={},p=null,m=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:`bodyOffset`,id:`iFrameResizer`,interval:32,license:`1jqr0si6pnt`,log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:`parent`,scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:`scroll`,onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){S(`onMessage function not defined`)},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}});function h(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(e,t,n){e.addEventListener(t,n,!1)}function _(e,t,n){e.removeEventListener(t,n,!1)}function v(){var e=[`moz`,`webkit`,`o`,`ms`],t;for(t=0;t<e.length&&!u;t+=1)u=window[e[t]+`RequestAnimationFrame`];u?u=u.bind(window):b(`setup`,`RequestAnimationFrame not supported`)}function y(e){return f[e]?f[e].log:i}function b(e,t){C(`log`,e,t,y(e))}function x(e,t){C(`info`,e,t,y(e))}function S(e,t){C(`warn`,e,t,!0)}function C(e,t,n,r){!0===r&&window.console}function w(e){function t(){function e(){M(q),k(J),H(`onResized`,q)}a(`Height`),a(`Width`),N(e,q,`init`)}function n(){var e=K.slice(c).split(`:`),t=e[1]?parseInt(e[1],10):0,n=f[e[0]]&&f[e[0]].iframe,a=getComputedStyle(n);return{iframe:n,id:e[0],height:t+r(a)+i(a),width:e[2],type:e[3]}}function r(e){return e.boxSizing===`border-box`?(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0):0}function i(e){return e.boxSizing===`border-box`?(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0):0}function a(e){var t=Number(f[J][`max`+e]),n=Number(f[J][`min`+e]),r=e.toLowerCase(),i=Number(q[r]);b(J,`Checking `+r+` is in range `+n+`-`+t),i<n&&(i=n,b(J,`Set `+r+` to min value`)),i>t&&(i=t,b(J,`Set `+r+` to max value`)),q[r]=``+i}function u(){function t(){function e(){var e=0,t=!1;for(b(J,`Checking connection is from allowed list of origins: `+r);e<r.length;e++)if(r[e]===n){t=!0;break}return t}function t(){var e=f[J]&&f[J].remoteHost;return b(J,`Checking connection is from: `+e),n===e}return r.constructor===Array?e():t()}var n=e.origin,r=f[J]&&f[J].checkOrigin;if(r&&``+n!=`null`&&!t())throw Error(`Unexpected message received from: `+n+` for `+q.iframe.id+`. Message was: `+e.data+`. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.`);return!0}function d(){return s===(``+K).slice(0,c)&&K.slice(c).split(`:`)[0]in f}function p(){var e=q.type in{true:1,false:1,undefined:1};return e&&b(J,`Ignoring init message from meta parent page`),e}function m(e){return K.slice(K.indexOf(`:`)+o+e)}function h(e){b(J,`onMessage passed: {iframe: `+q.iframe.id+`, message: `+e+`}`),H(`onMessage`,{iframe:q.iframe,message:JSON.parse(e)}),b(J,`--`)}function v(){var e=document.body.getBoundingClientRect(),t=q.iframe.getBoundingClientRect();return JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-e.top,10),offsetLeft:parseInt(t.left-e.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function y(e,t){function n(){P(`Send Page Info`,`pageInfo:`+v(),e,t)}B(n,32,t)}function C(){function e(e,n){function i(){f[r]?y(f[r].iframe,r):t()}[`scroll`,`resize`].forEach(function(t){b(r,e+t+` listener for sendPageInfo`),n(window,t,i)})}function t(){e(`Remove `,_)}function n(){e(`Add `,g)}var r=J;n(),f[r]&&(f[r].stopPageInfo=t)}function w(){f[J]&&f[J].stopPageInfo&&(f[J].stopPageInfo(),delete f[J].stopPageInfo)}function E(){var e=!0;return q.iframe===null&&(S(J,`IFrame (`+q.id+`) not found`),e=!1),e}function I(e){var t=e.getBoundingClientRect();return O(J),{x:Math.floor(Number(t.left)+Number(l.x)),y:Math.floor(Number(t.top)+Number(l.y))}}function L(e){function t(){l=a,R(),b(J,`--`)}function n(){return{x:Number(q.width)+i.x,y:Number(q.height)+i.y}}function r(){window.parentIFrame?window.parentIFrame[`scrollTo`+(e?`Offset`:``)](a.x,a.y):S(J,`Unable to scroll to requested position, window.parentIFrame not found`)}var i=e?I(q.iframe):{x:0,y:0},a=n();b(J,`Reposition requested from iFrame (offset x:`+i.x+` y:`+i.y+`)`),window.top===window.self?t():r()}function R(){!1===H(`onScroll`,l)?A():k(J)}function z(e){function t(){var e=I(a);b(J,`Moving to in page link (#`+r+`) at x: `+e.x+` y: `+e.y),l={x:e.x,y:e.y},R(),b(J,`--`)}function n(){window.parentIFrame?window.parentIFrame.moveToAnchor(r):b(J,`In page link #`+r+` not found and window.parentIFrame not found`)}var r=e.split(`#`)[1]||``,i=decodeURIComponent(r),a=document.getElementById(i)||document.getElementsByName(i)[0];a?t():window.top===window.self?b(J,`In page link #`+r+` not found`):n()}function V(e){var t={};if(Number(q.width)===0&&Number(q.height)===0){var n=m(9).split(`:`);t={x:n[1],y:n[0]}}else t={x:q.width,y:q.height};H(e,{iframe:q.iframe,screenX:Number(t.x),screenY:Number(t.y),type:q.type})}function H(e,t){return T(J,e,t)}function ee(){switch(f[J]&&f[J].firstRun&&G(),q.type){case`close`:D(q.iframe);break;case`message`:h(m(6));break;case`mouseenter`:V(`onMouseEnter`);break;case`mouseleave`:V(`onMouseLeave`);break;case`autoResize`:f[J].autoResize=JSON.parse(m(9));break;case`scrollTo`:L(!1);break;case`scrollToOffset`:L(!0);break;case`pageInfo`:y(f[J]&&f[J].iframe,J),C();break;case`pageInfoStop`:w();break;case`inPageLink`:z(m(9));break;case`reset`:j(q);break;case`init`:t(),H(`onInit`,q.iframe);break;default:Number(q.width)===0&&Number(q.height)===0?S(`Unsupported message received (`+q.type+`), this is likely due to the iframe containing a later version of iframe-resizer than the parent page`):t()}}function U(e){var t=!0;return f[e]||(t=!1,S(q.type+` No settings for `+e+`. Message was: `+K)),t}function W(){for(var e in f)P(`iFrame requested init`,F(e),f[e].iframe,e)}function G(){f[J]&&(f[J].firstRun=!1)}var K=e.data,q={},J=null;K===`[iFrameResizerChild]Ready`?W():d()?(q=n(),J=q.id,f[J]&&(f[J].loaded=!0),!p()&&U(J)&&(b(J,`Received: `+K),E()&&u()&&ee())):x(J,`Ignored: `+K)}function T(e,t,n){var r=null,i=null;if(f[e])if(r=f[e][t],typeof r==`function`)i=r(n);else throw TypeError(t+` on iFrame[`+e+`] is not a function`);return i}function E(e){var t=e.id;delete f[t]}function D(e){var t=e.id;if(T(t,`onClose`,t)===!1){b(t,`Close iframe cancelled by onClose event`);return}b(t,`Removing iFrame: `+t);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){S(e)}T(t,`onClosed`,t),b(t,`--`),E(e),r&&=(r.disconnect(),null)}function O(t){l===null&&(l={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset},b(t,`Get page position: `+l.x+`,`+l.y))}function k(e){l!==null&&(window.scrollTo(l.x,l.y),b(e,`Set page position: `+l.x+`,`+l.y),A())}function A(){l=null}function j(e){function t(){M(e),P(`reset`,`reset`,e.iframe,e.id)}b(e.id,`Size reset requested by `+(e.type===`init`?`host page`:`iFrame`)),O(e.id),N(t,e,`reset`)}function M(e){function t(t){if(!e.id){b(`undefined`,`messageData id not set`);return}e.iframe.style[t]=e[t]+`px`,b(e.id,`IFrame (`+i+`) `+t+` set to `+e[t]+`px`)}function n(t){!a&&e[t]===`0`&&(a=!0,b(i,`Hidden iFrame detected, creating visibility listener`),V())}function r(e){t(e),n(e)}var i=e.iframe.id;f[i]&&(f[i].sizeHeight&&r(`height`),f[i].sizeWidth&&r(`width`))}function N(e,t,n){n!==t.type&&u&&!window.jasmine?(b(t.id,`Requesting animation frame`),u(e)):e()}function P(e,t,n,r,i){function a(){var i=f[r]&&f[r].targetOrigin;b(r,`[`+e+`] Sending msg to iframe[`+r+`] (`+t+`) targetOrigin: `+i),n.contentWindow.postMessage(s+t,i)}function o(){S(r,`[`+e+`] IFrame(`+r+`) not found`)}function c(){n&&`contentWindow`in n&&n.contentWindow!==null?a():o()}function l(){function e(){f[r]&&!f[r].loaded&&!u&&(u=!0,S(r,`IFrame has not responded within `+f[r].warningTimeout/1e3+` seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning.`))}i&&f[r]&&f[r].warningTimeout&&(f[r].msgTimeout=setTimeout(e,f[r].warningTimeout))}var u=!1;r||=n.id,f[r]&&(c(),l())}function F(e){return e+`:`+f[e].bodyMarginV1+`:`+f[e].sizeWidth+`:`+f[e].log+`:`+f[e].interval+`:`+f[e].enablePublicMethods+`:`+f[e].autoResize+`:`+f[e].bodyMargin+`:`+f[e].heightCalculationMethod+`:`+f[e].bodyBackground+`:`+f[e].bodyPadding+`:`+f[e].tolerance+`:`+f[e].inPageLinks+`:`+f[e].resizeFrom+`:`+f[e].widthCalculationMethod+`:`+f[e].mouseEvents}function I(e){return typeof e==`number`}function L(t,a){function o(){function e(e){var n=f[k][e];n!==1/0&&n!==0&&(t.style[e]=I(n)?n+`px`:n,b(k,`Set `+e+` = `+t.style[e]))}function n(e){if(f[k][`min`+e]>f[k][`max`+e])throw Error(`Value for min`+e+` can not be greater than max`+e)}n(`Height`),n(`Width`),e(`maxHeight`),e(`minHeight`),e(`maxWidth`),e(`minWidth`)}function s(){var e=a&&a.id||m.id+ n++;return document.getElementById(e)!==null&&(e+=n++),e}function c(e){if(typeof e!=`string`)throw TypeError(`Invaild id for iFrame. Expected String`);return e===``&&(t.id=e=s(),i=(a||{}).log,b(e,`Added missing iframe ID: `+e+` (`+t.src+`)`)),e}function l(){switch(b(k,`IFrame scrolling `+(f[k]&&f[k].scrolling?`enabled`:`disabled`)+` for `+k),t.style.overflow=!1===(f[k]&&f[k].scrolling)?`hidden`:`auto`,f[k]&&f[k].scrolling){case`omit`:break;case!0:t.scrolling=`yes`;break;case!1:t.scrolling=`no`;break;default:t.scrolling=f[k]?f[k].scrolling:`no`}}function u(){(typeof(f[k]&&f[k].bodyMargin)==`number`||(f[k]&&f[k].bodyMargin)===`0`)&&(f[k].bodyMarginV1=f[k].bodyMargin,f[k].bodyMargin=``+f[k].bodyMargin+`px`)}function p(){var e=f[k]&&f[k].firstRun,n=f[k]&&f[k].heightCalculationMethod in d;!e&&n&&j({iframe:t,height:0,width:0,type:`init`})}function _(){f[k]&&(f[k].iframe.iFrameResizer={close:D.bind(null,f[k].iframe),removeListeners:E.bind(null,f[k].iframe),resize:P.bind(null,`Window resize`,`resize`,f[k].iframe),moveToAnchor:function(e){P(`Move to anchor`,`moveToAnchor:`+e,f[k].iframe,k)},sendMessage:function(e){e=JSON.stringify(e),P(`Send Message`,`message:`+e,f[k].iframe,k)}})}function v(n){function i(){P(`iFrame.onload`,n,t,e,!0),p()}function a(e){if(!t.parentNode)return null;var n=new e(function(e){e.forEach(function(e){Array.prototype.slice.call(e.removedNodes).forEach(function(e){e===t&&D(t)})})});return n.observe(t.parentNode,{childList:!0}),n}var o=h();o&&(r=a(o)),g(t,`load`,i),P(`init`,n,t,e,!0)}function y(e){if(typeof e!=`object`)throw TypeError(`Options is not an object`)}function x(e){for(var t in m)Object.prototype.hasOwnProperty.call(m,t)&&(f[k][t]=Object.prototype.hasOwnProperty.call(e,t)?e[t]:m[t])}function C(e){return e===``||e.match(/^(about:blank|javascript:|file:\/\/)/)!==null?`*`:e}function w(e){var t=e.split(`Callback`);if(t.length===2){var n=`on`+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],S(k,`Deprecated: '`+e+`' has been renamed '`+n+`'. The old method will be removed in the next major version.`)}}function T(e){e||={},f[k]=Object.create(null),f[k].iframe=t,f[k].firstRun=!0,f[k].remoteHost=t.src&&t.src.split(`/`).slice(0,3).join(`/`),y(e),Object.keys(e).forEach(w,e),x(e),f[k]&&(f[k].targetOrigin=!0===f[k].checkOrigin?C(f[k].remoteHost):`*`)}function O(){return k in f&&`iFrameResizer`in t}var k=c(t.id);O()?S(k,`Ignored iFrame, already setup.`):(T(a),l(),o(),u(),v(F(k)),_())}function R(e,t){p===null&&(p=setTimeout(function(){p=null,e()},t))}var z={};function B(e,t,n){z[n]||(z[n]=setTimeout(function(){z[n]=null,e()},t))}function V(){function e(){function e(e){function t(t){return(f[e]&&f[e].iframe.style[t])===`0px`}function n(e){return e.offsetParent!==null}f[e]&&n(f[e].iframe)&&(t(`height`)||t(`width`))&&P(`Visibility change`,`resize`,f[e].iframe,e)}Object.keys(f).forEach(function(t){e(t)})}function t(t){b(`window`,`Mutation observed: `+t[0].target+` `+t[0].type),R(e,16)}function n(){var e=document.querySelector(`body`);new r(t).observe(e,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0})}var r=h();r&&n()}function H(e){function t(){U(`Window `+e,`resize`)}b(`window`,`Trigger event: `+e),R(t,16)}function ee(){function e(){U(`Tab Visible`,`resize`)}document.visibilityState!==`hidden`&&(b(`document`,`Trigger event: Visibility change`),R(e,16))}function U(e,t){function n(e){return f[e]&&f[e].resizeFrom===`parent`&&f[e].autoResize&&!f[e].firstRun}Object.keys(f).forEach(function(r){n(r)&&P(e,t,f[r].iframe,r)})}function W(){g(window,`message`,w),g(window,`resize`,function(){H(`resize`)}),g(document,`visibilitychange`,ee),g(document,`-webkit-visibilitychange`,ee)}function G(){function t(e,t){function n(){if(!t.tagName)throw TypeError(`Object is not a valid DOM element`);if(t.tagName.toUpperCase()!==`IFRAME`)throw TypeError(`Expected <IFRAME> tag, found <`+t.tagName+`>`)}t&&(n(),L(t,e),r.push(t))}function n(e){e&&e.enablePublicMethods&&S(`enablePublicMethods option has been removed, public methods are now always available in the iFrame`)}var r;return v(),W(),function(i,a){switch(r=[],n(i),typeof a){case`undefined`:case`string`:Array.prototype.forEach.call(document.querySelectorAll(a||`iframe`),t.bind(e,i));break;case`object`:t(i,a);break;default:throw TypeError(`Unexpected data type (`+typeof a+`)`)}return r}}function K(e){e.fn?e.fn.iFrameResize||(e.fn.iFrameResize=function(e){function t(t,n){L(n,e)}return this.filter(`iframe`).each(t).end()}):x(``,`Unable to bind to jQuery, it is not fully loaded.`)}window.jQuery!==e&&K(window.jQuery),typeof define==`function`&&define.amd?define([],G):typeof t==`object`&&typeof t.exports==`object`&&(t.exports=G()),window.iFrameResize=window.iFrameResize||G()})()})),Bm=r.a(((e,t)=>{var n=!1,r=function(){};if(n){var i=function(e,t){var n=arguments.length;t=Array(n>1?n-1:0);for(var r=1;r<n;r++)t[r-1]=arguments[r];var i=0,a=`Warning: `+e.replace(/%s/g,function(){return t[i++]});try{throw Error(a)}catch{}};r=function(e,t,n){var r=arguments.length;n=Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(t===void 0)throw Error("`warning(condition, format, ...args)` requires a warning message argument");e||i.apply(null,[t].concat(n))}}t.exports=r})),Vm=r.l(zm()),Hm=r.l(Bm());function Um(){return Um=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Um.apply(this,arguments)}function Wm(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Gm=[`autoResize`,`bodyBackground`,`bodyMargin`,`bodyPadding`,`checkOrigin`,`inPageLinks`,`heightCalculationMethod`,`interval`,`log`,`maxHeight`,`maxWidth`,`minHeight`,`minWidth`,`resizeFrom`,`scrolling`,`sizeHeight`,`sizeWidth`,`warningTimeout`,`tolerance`,`widthCalculationMethod`,`onClosed`,`onInit`,`onMessage`,`onResized`],Km=(function(e){return e.autoResize,e.bodyBackground,e.bodyMargin,e.bodyPadding,e.checkOrigin,e.inPageLinks,e.heightCalculationMethod,e.interval,e.log,e.maxHeight,e.maxWidth,e.minHeight,e.minWidth,e.resizeFrom,e.scrolling,e.sizeHeight,e.sizeWidth,e.warningTimeout,e.tolerance,e.widthCalculationMethod,e.onClosed,e.onInit,e.onMessage,e.onResized,Wm(e,Gm)}),qm=[`title`,`forwardRef`],Jm=function(e){var t=e.title,n=t===void 0?`iframe`:t,r=e.forwardRef,i=Wm(e,qm),a=Km(i),o=(0,v.useRef)(null),s=function(){var e;return(0,Hm.default)(!(o!=null&&o.current),`[iframeSizerReact][`+(o==null||(e=o.current)==null?void 0:e.id)+`] Close event ignored, to remove the iframe update your React component`),!(o!=null&&o.current)};return(0,v.useEffect)(function(){var e=o.current;return(0,Vm.default)(Um({},i,{onClose:s}),e),function(){var t;return e==null||(t=e.iFrameResizer)==null?void 0:t.removeListeners()}},[]),(0,v.useImperativeHandle)(r,function(){return{getIframeElement:function(){return o.current},resize:function(){return o.current.iFrameResizer.resize()},moveToAnchor:function(e){return o.current.iFrameResizer.moveToAnchor(e)},sendMessage:function(e,t){o.current.iFrameResizer.sendMessage(e,t)}}}),v.default.createElement(`iframe`,Um({title:n},a,{ref:o}))};Jm.propTypes={title:b.default.string};var Ym=new Set;function Xm(e){return Ym.add(e),{dispose(){Zm(e)}}}function Zm(e){Ym.delete(e)}function Qm(e,t){let n=e.getVersionId(),r=[],i=e.onDidChangeContent(i=>{if(i.versionId>n+1){let a=e.onDidChangeContent(o=>{if(i.versionId===n+1)try{Ym.has(e)||t(i)}catch{}finally{n=i.versionId;let e=r.indexOf(a);e>=0&&r.splice(e,1),a.dispose()}});r.push(a)}else try{Ym.has(e)||t(i)}catch{}finally{n=i.versionId}});return{dispose:()=>{i.dispose(),r.forEach(e=>e.dispose())}}}var $m=typeof __SENTRY_DEBUG__>`u`||__SENTRY_DEBUG__,eh=globalThis,th=`9.47.1`;function nh(){return rh(eh),eh}function rh(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||`9.47.1`,t[th]=t[`9.47.1`]||{}}function ih(e,t,n=eh){let r=n.__SENTRY__=n.__SENTRY__||{},i=r[th]=r[`9.47.1`]||{};return i[e]||(i[e]=t())}var ah=`Sentry Logger `,oh={};function sh(e){if(!(`console`in eh))return e();let t=eh.console,n={},r=Object.keys(oh);r.forEach(e=>{let r=oh[e];n[e]=t[e],t[e]=r});try{return e()}finally{r.forEach(e=>{t[e]=n[e]})}}function ch(){hh().enabled=!0}function lh(){hh().enabled=!1}function uh(){return hh().enabled}function dh(...e){mh(`log`,...e)}function fh(...e){mh(`warn`,...e)}function ph(...e){mh(`error`,...e)}function mh(e,...t){$m&&uh()&&sh(()=>{eh.console[e](`${ah}[${e}]:`,...t)})}function hh(){return $m?ih(`loggerSettings`,()=>({enabled:!1})):{enabled:!1}}var gh={enable:ch,disable:lh,isEnabled:uh,log:dh,warn:fh,error:ph},_h=Object.prototype.toString;function vh(e,t){return _h.call(e)===`[object ${t}]`}function yh(e){return vh(e,`Object`)}function bh(e){return!!(e?.then&&typeof e.then==`function`)}function xh(e,t=0){return typeof e!=`string`||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Sh(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{$m&&gh.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Ch(){let e=eh;return e.crypto||e.msCrypto}function wh(e=Ch()){let t=()=>Math.random()*16;try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,``);e?.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch{}return`10000000100040008000100000000000`.replace(/[018]/g,e=>(e^(t()&15)>>e/4).toString(16))}var Th=1e3;function Eh(){return Date.now()/Th}function Dh(){let{performance:e}=eh;if(!e?.now||!e.timeOrigin)return Eh;let t=e.timeOrigin;return()=>(t+e.now())/Th}var Oh;function kh(){return(Oh??=Dh())()}function Ah(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||kh(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:wh()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started==`number`&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration==`number`)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors==`number`&&(e.errors=t.errors),t.status&&(e.status=t.status)}function jh(e,t,n=2){if(!t||typeof t!=`object`||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=jh(r[e],t[e],n-1));return r}function Mh(){return wh()}var Nh=`_sentrySpan`;function Ph(e,t){t?Sh(e,Nh,t):delete e[Nh]}function Fh(e){return e[Nh]}var Ih=100,Lh=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Mh(),sampleRand:Math.random()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,Ph(t,Fh(this)),t}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ah(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;let n=typeof t==`function`?t(this):t,{tags:r,extra:i,user:a,contexts:o,level:s,fingerprint:c=[],propagationContext:l}=(n instanceof e?n.getScopeData():yh(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...i},this._contexts={...this._contexts,...o},a&&Object.keys(a).length&&(this._user=a),s&&(this._level=s),c.length&&(this._fingerprint=c),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,Ph(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Mh(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let n=typeof t==`number`?t:Ih;if(n<=0)return this;let r={timestamp:Eh(),...e,message:e.message?xh(e.message,2048):e.message};return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent(`buffer_overflow`,`log_item`)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Fh(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=jh(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let n=t?.event_id||wh();if(!this._client)return $m&&gh.warn(`No client configured on scope - will not capture exception!`),n;let r=Error(`Sentry syntheticException`);return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){let r=n?.event_id||wh();if(!this._client)return $m&&gh.warn(`No client configured on scope - will not capture message!`),r;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureEvent(e,t){let n=t?.event_id||wh();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):($m&&gh.warn(`No client configured on scope - will not capture event!`),n)}_notifyScopeListeners(){this._notifyingListeners||=(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),!1)}};function Rh(){return ih(`defaultCurrentScope`,()=>new Lh)}function zh(){return ih(`defaultIsolationScope`,()=>new Lh)}var Bh=class{constructor(e,t){let n;n=e||new Lh;let r;r=t||new Lh,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){let t=this._pushScope(),n;try{n=e(t)}catch(e){throw this._popScope(),e}return bh(n)?n.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Vh(){let e=rh(nh());return e.stack=e.stack||new Bh(Rh(),zh())}function Hh(e){return Vh().withScope(e)}function Uh(e,t){let n=Vh();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Wh(e){return Vh().withScope(()=>e(Vh().getIsolationScope()))}function Gh(){return{withIsolationScope:Wh,withScope:Hh,withSetScope:Uh,withSetIsolationScope:(e,t)=>Wh(t),getCurrentScope:()=>Vh().getScope(),getIsolationScope:()=>Vh().getIsolationScope()}}function Kh(e){let t=rh(e);return t.acs?t.acs:Gh()}function qh(){return Kh(nh()).getCurrentScope()}function Jh(e){if(e)return Yh(e)||Zh(e)?{captureContext:e}:e}function Yh(e){return e instanceof Lh||typeof e==`function`}var Xh=[`user`,`level`,`extra`,`contexts`,`tags`,`fingerprint`,`propagationContext`];function Zh(e){return Object.keys(e).some(e=>Xh.includes(e))}function Qh(e,t){return qh().captureException(e,Jh(t))}var $h=1e3,eg=2e3,tg=10,ng=`iframe_errors`,rg=5;function ig(e,t){let{__:n}=p.v(),r=i.$(),a=_.p(e),{error:o}=p.i(),s=(0,v.useRef)(0),c=(0,v.useRef)(void 0),l=(0,v.useRef)(!1),u=i.cr(i.n),d=(0,v.useCallback)(e=>new Promise((t,n)=>{let a=r.addListener(i.Wr.SANDBOX_READY,()=>{a.dispose(),t()});e&&setTimeout(()=>{a.dispose(),n(`timeout`)})}),[r]),f=(0,v.useCallback)(f=>{d(eg).catch(e=>void 0).finally(()=>{Promise.resolve().then(()=>{if(!l.current){if(++s.current){if(c.current){if(s.current<rg){a.restoreSnapshot(c.current);for(let e=0;e<s.current;e++)a.undo()}}else c.current=a.createSnapshot();r.send(i.Wr.RELOAD)}setTimeout(()=>{if(--s.current===0){c.current=null;let r=Error(f.message);f.stack&&(r.stack=f.stack);let s=Qh(r,{tags:{origin:`iframe`}}),d={past:a.getPast().slice(0,tg),future:a.getFuture(),errorResolved:!l.current,text:e.getValue(),message:f.message,stack:f.stack,userId:u?.id,entityId:t?.id,entityType:document.location.pathname.indexOf(`emails`)>0?`email`:`block`,sentryEventId:s};o({id:`IFRAME_ERROR`,data:d,message:n(`Something went wrong`)}),i.Ti.post(ng,d).catch(e=>void 0),l.current=!1}},eg)}})})},[a,e,o,u?.id,t?.id,n,d,r]);_.g(i.Wr.APPLICATION_DOMPARSER_ERROR,f),(0,v.useEffect)(()=>{let n=null,a=0;function o(e){let t=[];for(let{rangeOffset:n,rangeLength:r,text:i}of e.changes)t.push({range:{start:n,end:n+r},text:i});return t}let s=!1;function c({guid:n,edits:r,pushUndoStop:i}){if(e&&n===t.renderGuid)try{s=!0;let t=_.h(),n=t.canUndo(e.uri),o=t.canRedo(e.uri),c=r.map(({text:t,range:n})=>{let r=e.getPositionAt(n.start),i=e.getPositionAt(n.end);return{text:t,range:{startColumn:r.column,startLineNumber:r.lineNumber,endColumn:i.column,endLineNumber:i.lineNumber}}});i?e.pushEditOperations([],c,()=>null):!n&&!o?e.applyEdits(c):e.pushEditOperations([],c,()=>null),i!==!1&&(a&&clearTimeout(a),a=setTimeout(()=>{e.pushStackElement(),a=0},$h))}finally{s=!1}}let l=new i.Da,u=async e=>{if(s)await r.sendAsync(i.Wr.SANDBOX_UPDATE_ENTITY,{edits:[o(e)],guid:t.renderGuid});else if(n)n.push(e);else{n=[e];do{let e=n.splice(0,n.length);await r.sendAsync(i.Wr.SANDBOX_UPDATE_ENTITY,{edits:e.map(o),guid:t.renderGuid})}while(n.length);n=null}};return l.addDisposable(Qm(e,e=>u(e).catch(e=>void 0))),l.addDisposable(r.addListener(i.Wr.APPLICATION_UPDATE_ENTITY,c)),()=>{l.dispose(),a&&clearTimeout(a)}},[e,r,t.renderGuid])}var ag=Symbol(`isIframeEvent`);function og({children:e}){let[t,n]=(0,v.useState)(),[r,a]=(0,v.useState)(),[o,s]=(0,v.useState)(!1),c=i.$();return(0,v.useEffect)(()=>{if(t){let e=c.addListener(i.Wr.APPLICATION_IFRAME_DRAG_EVENT,e=>{if(e.type!==`drageleave`&&e.type!==`dragenter`){let n=t.getBoundingClientRect(),r=e.clientX+n.x+window.scrollX,i=e.clientY+n.y+window.scrollY,a=document.elementFromPoint(r,i);if(a){let t=new DataTransfer,n=new DragEvent(e.type,{clientX:r,clientY:i,cancelable:!0,bubbles:!0,dataTransfer:t});n[ag]=!0,a.dispatchEvent(n)}}});return()=>e.dispose()}},[c,t]),(0,v.useEffect)(()=>{let e=e=>{e[ag]||s(!0)},t=e=>{e[ag]||s(!1)};return window.addEventListener(`dragstart`,e),window.addEventListener(`dragend`,t),()=>{window.removeEventListener(`dragstart`,e),window.removeEventListener(`dragend`,t)}},[r]),(0,v.useEffect)(()=>{let e=e=>{if(!e[ag]){let t=r.getBoundingClientRect();c.send(i.Wr.SANDBOX_DRAG_EVENT,{value:e.dataTransfer?.getData(`Text`)||``,type:e.type,clientX:e.pageX-t.x-window.scrollX,clientY:e.pageY-t.y-window.scrollY})}};if(r)return r.addEventListener(`dragenter`,e),r.addEventListener(`dragover`,e),r.addEventListener(`dragleave`,e),r.addEventListener(`drop`,e),r.addEventListener(`dragend`,e),()=>{r.removeEventListener(`dragenter`,e),r.removeEventListener(`dragover`,e),r.removeEventListener(`dragleave`,e),r.removeEventListener(`drop`,e),r.removeEventListener(`dragend`,e)}},[r,c]),(0,C.jsxs)(`div`,{ref:n,children:[o&&(0,C.jsx)(`div`,{ref:a,className:`iframe-provider`}),e]})}function sg(e,t){let n=i.$(),r=t?.async??!1;(0,v.useEffect)(()=>{let t=r?n.addListenerAsync(i.Wr.RELOAD,e):n.addListener(i.Wr.RELOAD,e);return()=>t.dispose()},[n,e,r]),(0,v.useEffect)(()=>{},[e])}function cg(){let e=i.$(),t=i.cr(i.n),{__:n}=p.v(),[r,a]=(0,v.useState)(``);(0,v.useEffect)(()=>{if(t.locale!==r){let r=i.ui(n),o=e.onInit(()=>{e.send(i.Wr.SANDBOX_TRANSLATIONS,{name:t.locale,data:r}),a(t.locale)});return()=>o.dispose()}},[t.locale,r,a,n,e]),sg((0,v.useCallback)(()=>{a(``)},[]))}function lg(){let e=i.$(),{token:t}=p.Vt(),[n,r]=(0,v.useState)();(0,v.useEffect)(()=>{if(!o.k(n,t)){let n=e.onInit(()=>{e.send(i.Wr.SANDBOX_SET_THEME_VARIABLES,t),r(t)});return()=>n.dispose()}},[t,n,r,e]),sg((0,v.useCallback)(()=>{r(void 0)},[]))}function ug(){let e=i.$(),t=i.or(i.fa);Sr(([n])=>{let r=e.onInit(()=>{e.send(i.Wr.SANDBOX_ADD_EXTENSIONS,t)});if(e.isInited()){let{added:r,removed:a}=h.i.diff(n||[],t||[],(e,t)=>e.type===t.type&&e.key===t.key);if(a.length){if(a.some(e=>e.type===`script`)){e.send(i.Wr.RELOAD);return}e.send(i.Wr.SANDBOX_REMOVE_EXTENSIONS,a.map(e=>e.key))}r.length&&e.send(i.Wr.SANDBOX_ADD_EXTENSIONS,r)}return()=>r.dispose()},[t,e])}var dg=e=>{let t=e?`iframe-eblock`:`iframe`;return`${`${p.t().replace(/\/?$/,`/`)}iframe/`}${t}.e66b6bbd.html`},fg=(0,v.forwardRef)(({className:e=null,email:t=null,handlerSendPosition:n=()=>{}},r)=>{let a=i.lr(),o=i.cr(i.Nt),s=_.l(),c=i.Wt(),l=i.nt(),u=i.et(),d=i.$(),f=p.m(i.ea.ON_EMAIL_INIT_ID),[m,h]=(0,v.useState)();ug();let g=(0,v.useCallback)(e=>{let a=window.localStorage.getItem(i.Yr.em_color_scheme),d=matchMedia(`(prefers-color-scheme: dark)`).matches?i.Ar:i.qr,f=window.localStorage.getItem(i.Yr.em_code_mode_settings)?JSON.parse(window.localStorage.getItem(i.Yr.em_code_mode_settings)):null,p={operation:i.Wr.UPDATE_PREVIEW,versionId:s?.getVersionId()||0,theme:a&&a!==`system`?a:d,commonStyles:ul(t?.common_styles,o),pathEnabled:c.pathEnabled,copyPasteEnabled:c.copyPasteEnabled,saveBlockEnabled:c.saveBlockEnabled,editImageControlEnabled:c.editImageControlEnabled,codeMode:f?!!(f.isCodeMode&&(f.codeModeDirection===`left`||f.codeModeDirection===`right`)):!1,elementAIimageEnabled:c.elementAIimageEnabled,imageCenterStockEnabled:c.imageCenterStockEnabled,imageCenterGifEnabled:c.imageCenterGifEnabled,imageCenterEditorEnabled:c.imageCenterEditorEnabled,blocksAddPanelEnabled:c.blocksAddPanelEnabled!==!1&&c.blocksSectionsShow!==!1,lockEditor:c.lockEditor,appName:`emailmaker`};h(e.target),l(e.target),r.current.resize(),u(p),n()},[c,n,u,s,t?.common_styles,o,r,h,l]);(0,v.useEffect)(()=>{d.isInited()&&u({operation:i.Wr.UPDATE_PREVIEW,lockEditor:c.lockEditor})},[d,c.lockEditor]),(0,v.useEffect)(()=>{d.isInited()&&u({operation:i.Wr.UPDATE_PREVIEW,commonStyles:ul(t?.common_styles,o)})},[d,t?.common_styles,o,u]);let y=(0,v.useCallback)(e=>{e.data.operation===i.Wr.SANDBOX_RESIZED&&r.current?.resize()},[r]);(0,v.useEffect)(()=>{let e=f(()=>{r.current.resize()});return()=>e.dispose()},[r,f]),(0,v.useEffect)(()=>()=>{l()},[l]);let b=(0,v.useCallback)(()=>new Promise(e=>{d.setTarget(void 0);let t=()=>{g({target:m}),e(),m?.removeEventListener(`load`,t)};m?.addEventListener(`load`,t)}),[d,g,m]);return(0,v.useEffect)(()=>{let e=d.addListenerAsync(i.Wr.RELOAD,b,2**53-1);return()=>e.dispose()},[d,b]),_.g(y),_.g(()=>{r.current?.resize()},i.Wr.SANDBOX_INITED),cg(),lg(),(0,v.useEffect)(()=>{matchMedia(i.ai).addEventListener(`change`,e=>{let t=window.localStorage.getItem(i.Yr.em_color_scheme),n=e.matches?i.Ar:i.qr;u({operation:i.Wr.UPDATE_PREVIEW,theme:t||n})})},[u]),ig(s,t),(0,v.useEffect)(()=>{let e=s.onDidChangeContent(()=>{r.current.resize()});return()=>e.dispose()},[s,r]),_.g((0,v.useCallback)(e=>{e.data.operation===i.Wr.APPLICATION_COMMON_STYLES_UPDATE&&a(i.gt.util.updateQueryData(`getEmail`,t.id,t=>Object.assign(t,{common_styles:JSON.stringify(e.data.settings.commonStyles)})))},[a,t.id])),(0,C.jsx)(og,{children:(0,C.jsx)(Jm,{forwardRef:r,checkOrigin:!1,sandbox:`allow-top-navigation allow-scripts allow-popups allow-popups-to-escape-sandbox`,className:(0,E.default)(`email-preview`,{[e]:e}),width:`100%`,minHeight:600,scrolling:`no`,id:`email_iframe`,allow:`clipboard-read; clipboard-write`,src:dg(t.hasOwnProperty(`type`)),title:`Email content`,onLoad:g})})});fg.propTypes={className:b.default.string,email:b.default.shape({html:b.default.string}),handlerSendPosition:b.default.func};var pg=(0,v.lazy)(()=>Promise.resolve().then(()=>e(`./4c9ffe8a.js`))),mg={height:`100%`};function hg(e){return(0,C.jsx)(v.Suspense,{fallback:(0,C.jsx)(p.J,{justify:`center`,align:`center`,style:mg,children:(0,C.jsx)(p.Y,{size:`large`})}),children:(0,C.jsx)(pg,{...e})})}var gg=({emailElement:e})=>{let{__:t}=p.v(),n=i.et(),r=i.lr(),{projectId:o}=(0,S.useParams)(),s=_.l(),c=i.cr(a.Z),l=i.cr(a.X),d=i.cr(i.dn),[f,h]=(0,v.useState)(!0),[g,y]=(0,v.useState)(!1),[b,x]=(0,v.useState)([]),[w,T]=(0,v.useState)([]),D=e=>r(i.Tn(e)),O=(0,v.useCallback)(e=>{r(u.R(e)),s.setValue(e?.html.replaceAll(`\r
824
824
  `,`
825
- `))},[s,r]),{data:k}=i.ft.useGetProjectQuery(Number(o),{skip:!o}),[A,j]=(0,v.useState)([]);(0,v.useEffect)(()=>{if(k){let{owner:e,admins:t,users:n}=k?.members;j([e&&{...e},t&&Array.isArray(t)&&t.map(e=>({...e})),n&&Array.isArray(n)&&n.map(e=>({...e}))].filter(e=>e).flat(1).map(e=>({id:e.ID,display_name:e.display_name})))}},[k,k?.members,t]);let[M,N]=(0,v.useState)(1),[P,F]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let e=Array.isArray(c)&&c.length&&c?.map(e=>({key:e.id,author:e.author,date:i.h(i.D(e.date||e.modified),t),title:e.title,html:e.html,common_styles:e.common_styles,loading:!1,isAutosave:e.slug?.includes(`autosave`)}));T(e||[]),x(e),h(!1),l<2&&F(!0)},[c,l,t]);let I=!f&&!g&&!P?(0,C.jsx)(`div`,{style:{textAlign:`center`,marginTop:24,marginBottom:24,height:32,lineHeight:`32px`},children:(0,C.jsx)(p.Rt,{onClick:()=>{y(!0),T(b.concat([...[,,,]].map(()=>({loading:!0})))),r(i.gt.endpoints.getEmailHistory.initiate({emailId:e.id,page:M+1})).then(e=>{let{data:n,totalPages:r}=e.data,a=Array.isArray(n)&&n?.map(e=>({key:e.id,author:e.author,date:i.h(i.D(e.date||e.modified),t),title:e.title,html:e.html,loading:!1})),o=b.concat(a);T(o),x(o),y(!1),window.dispatchEvent(new Event(`resize`)),M+1>=r&&F(!0),N(M+1)})},children:t(`loading more`)})}):null,[L,R]=(0,v.useState)(),[z,B]=(0,v.useState)(null),V=(0,v.useRef)();V.current=e,(0,v.useEffect)(()=>{if(!d&&!z){let e=V.current;e&&B({html:s.getValue(),preheader:e.preheader,common_styles:e.common_styles,subject:e.subject})}},[d,B,s,z]),(0,v.useEffect)(()=>{d&&z&&(O(z),B(null))},[d,z,O]);let H=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.$,{className:`secondary-tabs email-settings__collapse secondary-tabs_unset_scroll`,size:`large`,activeKey:i.Kr,items:[{label:(0,C.jsx)(C.Fragment,{children:t(`Version history`)}),key:i.Kr,forceRender:!0,className:`email-settings__collapse-panel`,style:{height:`100%`},children:(0,C.jsx)(p.ft,{className:`history-panel__list`,loading:f,itemLayout:`horizontal`,loadMore:I,dataSource:w,header:(0,C.jsxs)(`div`,{className:`history-panel__list-header`,children:[(0,C.jsx)(`div`,{className:`history-panel__list-date`,children:t(`Time`)}),(0,C.jsx)(`div`,{className:`history-panel__list-author`,children:t(`Author`)}),(0,C.jsx)(`div`,{className:`history-panel__restore`,children:`Set`})]}),renderItem:(e,a)=>(0,C.jsx)(p.ft.Item,{onClick:()=>{a!==L&&(R(a),O(b[a])),r(u.h(!0))},className:(0,E.default)(`history-panel__item`,{"history-panel__item_active":a===L}),children:(0,C.jsxs)(p.lt,{title:!1,loading:e.loading||!1,active:!0,children:[(0,C.jsx)(`div`,{className:`history-panel__list-date`,children:e.date}),(0,C.jsx)(`div`,{className:`history-panel__list-author`,children:i.ii.isPlugin&&H.revisionService?e.author:A.find(t=>t.id?.toString()===e.author?.toString())?.display_name||`–`}),e.isAutosave&&L!==a&&(0,C.jsx)(`div`,{style:{opacity:.45},className:`history-panel__list-autosave`,children:t(`Auto`)}),!e.isAutosave&&(0,C.jsx)(p.Rt,{size:`small`,className:`history-panel__restore`,type:`link`,onClick:e=>{L===a&&e.stopPropagation(),O(b[a]),R(null),B(null),n({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1}),r(i.nn())},children:t(`Set`)}),e.isAutosave&&L===a&&(0,C.jsx)(p.Rt,{size:`small`,className:`history-panel__restore`,type:`link`,onClick:e=>{L===a&&e.stopPropagation(),O(b[a]),D(!0),R(null),B(null),n({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1})},children:t(`Set`)})]})})})}]}),(0,C.jsx)(p.Rt,{type:`text`,className:`ant-modal-close`,"aria-label":`Close`,onClick:()=>{r(i.nn()),O(z),B(null),D(!0),n({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1})},children:(0,C.jsx)(m.d,{icon:`Close`})})]})};gg.propTypes={};var _g=({elementPath:e})=>{let{_x:t}=p.v(),n=i.lr(),r=i.$(),a=i.Wt(),{emailId:o,blockId:s,projectId:c}=(0,S.useParams)(),l=i.cr(i.B),u=i.G(),d=(0,v.useCallback)(e=>{r.send({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_SET,index:e})},[r]),f=(0,v.useCallback)(e=>{let t=`element`;e?.target?.closest(`svg`)||e?.target?.closest(`.anticon`)||e?.target?.closest(`[class*="icon"]`)?t=`icon`:e?.target?.textContent&&!e?.target?.closest(`svg`)&&!e?.target?.closest(`.anticon`)&&(t=`text`),n(i.hn(i.pi)),r.send({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1}),r.send({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET}),u({event:`click`,action:`click_breadcrumb_email`,email_id:o||s,project_id:l?.id||c,click_target:t})},[r,n,u,o,s,c,l]),[h,g]=(0,v.useState)([{title:(0,C.jsxs)(`span`,{onClick:f,children:[(0,C.jsx)(m.d,{icon:`Email`,size:16,strokeWidth:a.iconStrokeWidth}),` `,t(`Email`,`letter`)]})}]),_=(0,v.useCallback)(e=>{r.send({operation:i.Wr.SANDBOX_ELEMENT_HOVER_SET,index:e})},[r]),y=e=>{if(e.includes(`em-element-path-item-text`))return(0,C.jsx)(m.d,{icon:`ElementText`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-image`))return(0,C.jsx)(m.d,{icon:`ElementImage`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-link`))return(0,C.jsx)(m.d,{icon:`LinkOutlined`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-atom`))return(0,C.jsx)(m.d,{icon:`Atom`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-column`))return(0,C.jsx)(m.d,{icon:`Column`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-block`))return(0,C.jsx)(m.d,{icon:`Block`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-group`))return(0,C.jsx)(m.d,{icon:`Group`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-button`))return(0,C.jsx)(m.d,{icon:`ElementButton`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-table`))return(0,C.jsx)(m.d,{icon:`ElementTable`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-amp`))return(0,C.jsx)(m.d,{icon:`AMP`,size:16,strokeWidth:a.iconStrokeWidth})},b=(0,v.useCallback)((t,n)=>(0,C.jsxs)(`span`,{className:t.className,onClick:t=>{let r=`element`;t.target.closest(`svg`)||t.target.closest(`.anticon`)||t.target.closest(`[class*="icon"]`)?r=`icon`:t.target.textContent&&!t.target.closest(`svg`)&&!t.target.closest(`.anticon`)&&(r=`text`);let i=e?.[n],a=i?.className?.replace(`em-element-path-item-`,``)||`unknown`;u({event:`click`,action:`click_breadcrumb_element`,email_id:o||s,project_id:l?.id||c,element_type:a,element_index:n,element_title:i?.title||``,click_target:r}),d(n)},onMouseOver:()=>{_(n)},children:[y(t.className),` `,t.title]}),[d,_,e,u,o,s,c,l]);return(0,v.useEffect)(()=>{if(e){let n=e.map((e,t)=>({title:b(e,t)}));g([{title:(0,C.jsxs)(`span`,{onClick:f,children:[(0,C.jsx)(m.d,{icon:`Email`,size:16,strokeWidth:a.iconStrokeWidth}),` `,t(`Email`,`letter`)]})},...n])}},[e,b,f,t]),(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(p.rt,{items:h,type:`separator`,separator:``})})},vg=[i.Si,i.Ur,i.Ci],yg=({summary:e,__:t,selectedTags:n,setSelectedTags:r})=>{let i=(0,v.useCallback)((e,t)=>{r(t?n.length===2?[]:[...n,e]:n.filter(t=>t!==e))},[n,r]),a=(0,v.useCallback)(e=>t(e===`valid`?`Valid`:e===`warnings`?`Warnings`:`Errors`),[t]);return(0,C.jsx)(p.B,{level:5,className:`optimise__valid-title`,children:(0,C.jsx)(p.xt,{className:`optimise__valid-title-space`,size:8,children:vg.map((t,r)=>(0,C.jsxs)(p.at,{checked:n?.includes(t),onChange:e=>i(t,e),className:(0,E.default)(`${t} optimise__button`,{[`${t}_active`]:n.includes(t)}),children:[a(t),`: `,e?.[t]||0]},t+r))})})},{LINKS:bg}=i.ni,xg=(0,v.memo)(({__:e,activeTab:t,validateLinksResult:n,validateLinks:r,selectedTags:a,setSelectedTags:o,isLoading:s,disabled:c,iconStrokeWidth:l,onValidate:u,goToLinkHandler:d})=>t!==bg||!n?.links?null:n.links.length===0?(0,C.jsx)(p.At,{className:`optimise__row-mb-24`,children:(0,C.jsx)(p.Q,{message:e(`No links found.`),type:`info`})}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.At,{className:`optimise__row-mb-14`,children:(0,C.jsxs)(`div`,{className:`optimise__title-wrapper`,children:[(0,C.jsx)(yg,{__:e,summary:n.summary,setSelectedTags:o,selectedTags:a}),(0,C.jsx)(p.Rt,{disabled:c,loading:s,onClick:u,icon:(0,C.jsx)(m.d,{icon:`SyncOutlined`,size:16,strokeWidth:l}),children:e(`Refresh`)})]})}),(0,C.jsx)(p.At,{className:`optimise__row-mb-24`,children:(0,C.jsx)(p.kt,{span:24,children:(0,C.jsx)(p.ft,{itemLayout:`horizontal`,dataSource:r,renderItem:(t,n)=>(0,C.jsx)(p.ft.Item,{className:p.dt,children:(0,C.jsx)(p.ft.Item.Meta,{avatar:t.status===`valid`?(0,C.jsx)(m.d,{icon:`CheckCircleFilled`,className:i.Si}):t.status===`warnings`?(0,C.jsx)(m.d,{icon:`CheckCircleFilled`,className:i.Ci}):(0,C.jsx)(m.d,{icon:`CloseCircleFilled`,className:i.Ur}),title:(0,C.jsx)(p.U,{className:`optimise__link optimise__link-blue`,draggable:!1,onClick:()=>d(t.linkId,600>(t.statusCode||0)&&(t.statusCode||0)>399||!t.statusCode),children:t.url===``?e(`empty link`):t.url}),description:(0,C.jsxs)(C.Fragment,{children:[!!t.text?.length&&(0,C.jsx)(p.V,{type:`secondary`,children:t.text}),t.page?.title&&t.page.title,t.page?.secure&&t.status===`valid`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`span`,{className:`image-size-splitter`,children:`\xA0•\xA0`}),(0,C.jsx)(`span`,{className:`valid`,children:e(`secure`)})]}),!t.resolvedUrl&&!t.statusCode&&t.type===`url`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`span`,{className:`image-size-splitter`,children:`\xA0•\xA0`}),(0,C.jsx)(p.V,{type:`secondary`,children:e(`Failed to load`)})]})]})})},n+`_`+t.linkId)})})})]}));xg.displayName=`LinksSection`;var{IMAGES:Sg}=i.ni,Cg=(0,v.memo)(({__:e,activeTab:t,validateImagesResult:n,validateImages:r,selectedTags:i,setSelectedTags:a,isLoading:o,disabled:s,iconStrokeWidth:c,onValidate:l,goToImageHandler:u,showImgPreviewHandler:d,hideBlockPreviewHandler:f})=>t!==Sg||!n?.images?null:n.images.length===0?(0,C.jsx)(p.At,{className:`optimise__row-mb-24`,children:(0,C.jsx)(p.Q,{message:e(`No images found.`),type:`info`})}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.At,{className:`optimise__row-mb-16`,children:(0,C.jsx)(p.Q,{className:`optimise__alert-custom`,message:(0,C.jsxs)(`div`,{className:`optimise__summary`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsxs)(p.B,{level:4,className:`optimise__summary-title`,children:[n.images.length,` `]}),(0,C.jsx)(`span`,{className:`optimise__summary-label`,children:e(`images`)})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsxs)(p.B,{level:4,className:`optimise__summary-title`,children:[n.summaryTime?.value,n.summaryTime?.name]}),(0,C.jsx)(`span`,{className:`optimise__summary-label`,children:e(`total size`)})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsx)(p.B,{level:4,className:`optimise__summary-title`,children:(Math.max(...n.images.map(e=>e.image.responseTime))/1e3).toFixed(2)+e(`s`)}),(0,C.jsx)(`span`,{className:`optimise__summary-label`,children:e(`time to load`)})]})]}),type:`warning`})}),(0,C.jsx)(p.At,{className:`optimise__row-mb-12`,children:(0,C.jsxs)(`div`,{className:`optimise__title-wrapper`,children:[(0,C.jsx)(yg,{__:e,summary:n.summary,setSelectedTags:a,selectedTags:i}),(0,C.jsx)(p.Rt,{icon:(0,C.jsx)(m.d,{icon:`SyncOutlined`,size:16,strokeWidth:c}),disabled:s,loading:o,onClick:l,children:e(`Refresh`)})]})}),(0,C.jsx)(p.At,{className:`optimise__row-mb-12`,children:(0,C.jsx)(p.kt,{span:24,children:(0,C.jsx)(p.ft,{className:`optimise__result-list`,itemLayout:`horizontal`,dataSource:r,renderItem:(t,n)=>(0,C.jsx)(p.ft.Item,{className:`optimise__image-item image-item ${p.dt}`,children:(0,C.jsx)(p.ft.Item.Meta,{className:(0,E.default)(`image-item__meta`,{"image-item__meta_fail":!t.resolvedUrl&&!t.statusCode}),avatar:(0,C.jsx)(p.pt,{className:(0,E.default)(`image-item__image optimise__image-auto-height`,{"image-item__image_fail":!t.resolvedUrl||!t.valid}),width:92,height:`auto`,src:t.resolvedUrl||``,preview:!1,onMouseEnter:()=>d(t.url,t.image.dimensions?.width),onMouseLeave:()=>f()}),title:t.url?(0,C.jsx)(p.K,{placement:`top`,title:t.message,children:(0,C.jsx)(p.U,{className:`optimise__link optimise__link-blue`,draggable:!1,onClick:()=>u(t.imageId,600>(t.statusCode||0)&&(t.statusCode||0)>399||!t.statusCode),children:t?.url===``?e(`empty src`):t.url})}):t.message,description:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`div`,{className:`image-size`,children:[t.image.dimensions&&(0,C.jsxs)(C.Fragment,{children:[t.image.dimensions.width+` × `+t.image.dimensions.height,(0,C.jsx)(`span`,{className:`image-size-splitter`,children:` \xA0•\xA0 `}),(0,C.jsxs)(`span`,{children:[Math.round(t.image.bytes/1024),e(`kB`)]}),(0,C.jsx)(`span`,{className:`image-size-splitter`,children:` \xA0•\xA0 `}),(0,C.jsxs)(`span`,{children:[t.image.responseTime,e(`ms`)]}),(0,C.jsx)(`span`,{className:`image-size-splitter`,children:` \xA0•\xA0 `}),(0,C.jsx)(`span`,{className:`image-size-format`,children:g.s(t.image.contentType)})]}),t.image.secure&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`span`,{className:`image-size-splitter`,children:` \xA0•\xA0 `}),(0,C.jsx)(`span`,{className:`valid`,children:e(`secure`)})]}),t.resolvedUrl&&!t.valid&&(0,C.jsx)(p.V,{type:`danger`,children:e(`not valid`)})]}),!t.resolvedUrl&&!t.statusCode&&(0,C.jsx)(p.V,{type:`danger`,children:e(`Failed to load`)})]})})},n)})})})]}));Cg.displayName=`ImagesSection`;var{SPAM_ASSASSIN:wg}=i.ni,Tg=(0,v.memo)(({__:e,activeTab:t,validateSpamResult:n,isLoading:r,disabled:i,iconStrokeWidth:a,onValidate:o})=>{let s=n?.report?.length||Object.prototype.hasOwnProperty.call(n,`spamScore`);if(t!==wg||!s)return null;let c=n.spamScore||0,l=n.baseSpamScore||0;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.At,{className:`optimise__row-mb-8`,children:[(0,C.jsxs)(`div`,{className:`optimise__title-wrapper optimise__title-wrapper_spam`,children:[(0,C.jsxs)(p.B,{level:1,className:`optimise__spam-score-title`,type:c<2||!n.spamScore||c<=l-1?`success`:c<l-1?`warning`:`danger`,children:[(0,C.jsx)(`span`,{className:`optimise__spam-score-value`,children:c}),(0,C.jsx)(p.V,{className:`optimise__spam-score-text`,children:`Score`})]}),(0,C.jsx)(p.Rt,{disabled:i,icon:(0,C.jsx)(m.d,{icon:`SyncOutlined`,size:16,strokeWidth:a}),loading:r,onClick:o,children:e(`Refresh`)})]}),c>l-1&&(0,C.jsx)(p.V,{children:e(`Lower scores are better. Aim for a score less than `)+(l-1)+`.`})]}),(0,C.jsx)(p.At,{className:`optimise__row-mb-8`,children:(0,C.jsx)(p.kt,{span:24,children:(n.report?.length||0)>0?(0,C.jsx)(p.ft,{itemLayout:`horizontal`,dataSource:n.report,renderItem:e=>(0,C.jsx)(p.ft.Item,{className:p.dt,children:(0,C.jsx)(p.ft.Item.Meta,{title:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.V,{className:`optimise__spam-report-score`,children:e.score}),(0,C.jsx)(`span`,{className:`optimise__spam-report-description`,children:e.description})]})})})}):(0,C.jsx)(C.Fragment,{children:n.spamScore===0&&e(`Your email doesn't look like spam.`)})})})]})});Tg.displayName=`SpamSection`;var{PROBLEMS:Eg}=i.ni,Dg=(0,v.memo)(({__:e,activeTab:t,problemsList:n,onSetMonacoPosition:r})=>t===Eg?n?.length?(0,C.jsx)(p.At,{className:`optimise__row-mb-8`,children:(0,C.jsx)(p.kt,{span:24,children:(0,C.jsx)(p.ft,{itemLayout:`horizontal`,dataSource:n,renderItem:e=>(0,C.jsx)(p.ft.Item,{className:p.dt,children:(0,C.jsx)(p.ft.Item.Meta,{avatar:e.severity<6?(0,C.jsx)(m.d,{icon:`CloseCircleFilled`,className:i.Ci}):(0,C.jsx)(m.d,{icon:`CloseCircleFilled`,className:i.Ur}),title:(0,C.jsxs)(p.V,{onClick:()=>r(e),className:(0,E.default)(`optimise__text-clickable`,{warning:e.severity<6,error:e.severity>=6}),children:[`Line: `,e.startLineNumber,` `,e.startLineNumber!==e.endLineNumber&&` – `+e.endLineNumber]}),description:(0,C.jsx)(p.V,{children:e.message})})})})})}):(0,C.jsx)(p.At,{className:`optimise__row-mb-24`,children:(0,C.jsx)(p.Q,{message:e(`No problems found.`),type:`info`})}):null);Dg.displayName=`ProblemsSection`;var Og={activeTab:``,selectedTags:[],validateLinks:[],validateImages:[],validateSpamResult:{},optimisationCounter:0,validateLinksResult:{},validateImagesResult:{}},kg=(e,t)=>{switch(t.type){case`SET_ACTIVE_TAB`:return{...e,activeTab:t.payload===e.activeTab?``:t.payload};case`SET_SELECTED_TAGS`:return{...e,selectedTags:t.payload};case`SET_VALIDATE_LINKS`:return{...e,validateLinks:t.payload};case`SET_VALIDATE_IMAGES`:return{...e,validateImages:t.payload};case`SET_VALIDATE_SPAM_RESULT`:return{...e,validateSpamResult:t.payload};case`SET_OPTIMISATION_COUNTER`:return{...e,optimisationCounter:t.payload};case`INCREMENT_OPTIMISATION_COUNTER`:return{...e,optimisationCounter:e.optimisationCounter+1};case`SET_VALIDATE_LINKS_RESULT`:return{...e,validateLinksResult:t.payload};case`SET_VALIDATE_IMAGES_RESULT`:return{...e,validateImagesResult:t.payload};case`RESET_SELECTED_TAGS`:return{...e,selectedTags:[]};default:return e}},Ag=({appConfig:e,data:t,isSuccess:n,optimisationCounter:r,setOptimisationCounter:a})=>{let o=(0,v.useMemo)(()=>!!(e.limits&&e.counters)&&i.ii.isPlugin,[e]),{limits:s}=(0,v.useMemo)(()=>i.ii.isPlugin?e.limits?e:{limits:{optimization_limit:0}}:t?.limits?t:{limits:{optimization_limit:0}},[e,t]),c=(0,v.useMemo)(()=>s.optimization_limit,[s]),l=(0,v.useMemo)(()=>r>=c&&c>0,[r,c]);return(0,v.useEffect)(()=>{if(o)a(e?.counters?.optimization_counter||0);else{let e=t?.counters;n&&e?.optimization_counter&&a(e.optimization_counter)}},[o,t,n,e,a]),{limitsInPlugin:o,currentBillingOptimisationLimits:c,disableFields:l}},jg=()=>{let e=(0,v.useRef)(null);return{showImgPreviewHandler:(0,v.useCallback)((t,n)=>{e.current&&clearTimeout(e.current);let r=document.querySelector(`.img-preview`),i=document.querySelector(`.img-preview-content`);document.querySelector(`.img-preview`)||(r=document.createElement(`div`),r.classList.add(`img-preview`),i=document.createElement(`div`),i.classList.add(`img-preview-content`),r.append(i),document.querySelector(`.email-pane__col_settings-inner`)?.append(r)),i&&(i.innerHTML=`<table cellspacing="0" cellpadding="0" border="0" width="100%"><img height="auto" width=${(n||0)+`px`} alt="" style="max-width: 100%; object-fit: contain" src=${t}></table>`),r&&r.style.opacity!==`1`&&setTimeout(()=>{r&&(r.style.opacity=`1`,r.style.transform=`translateX(-100%)`)},10)},[]),hideBlockPreviewHandler:(0,v.useCallback)(()=>{let t=document.querySelector(`.img-preview`);t&&(e.current=setTimeout(()=>{t&&(t.style.opacity=`0`,t.style.transform=`translateX(-99%)`,setTimeout(()=>{t?.remove()},300))},300))},[])}},{LINKS:Mg,IMAGES:Ng}=i.ni,Pg=({activeTab:e,selectedTags:t,validateLinksResult:n,validateImagesResult:r,setValidateLinks:i,setValidateImages:a})=>{(0,v.useEffect)(()=>{e===Mg&&n.links&&i(t.length>0?n.links.filter(e=>t.includes(e.status)):n.links),e===Ng&&r.images&&a(t.length>0?r.images.filter(e=>t.includes(e.status)):r.images)},[n.links,r.images,t,e,i,a])},Fg=e=>(e.statusCode===null?e.type!==`invalid`:e.statusCode<300&&(e.page?.secure??!0))?i.Si:(e.statusCode&&e.statusCode<400||e.statusCode===200&&(e.page?.secure??!0))&&e.type!==`invalid`?i.Ci:i.Ur,Ig=e=>e.statusCode!==null&&e.statusCode<300?i.Si:e.statusCode<400&&e.statusCode>=300||e.statusCode===200&&!e.valid?i.Ci:i.Ur,Lg=e=>({valid:e.filter(e=>e.status===i.Si).length,warnings:e.filter(e=>e.status===i.Ci).length,errors:e.filter(e=>e.status===i.Ur).length}),{LINKS:Rg,IMAGES:zg,SPAM_ASSASSIN:Bg,PROBLEMS:Vg}=i.ni,Hg=()=>{let{__:e,_n:t}=p.v(),n=i.lr(),r=(0,S.useNavigate)(),s=p.i(),c=_.l(),l=i.Wt(),{emailId:d,projectId:f}=(0,S.useParams)(),[h,g]=(0,v.useState)(null),y=(0,v.useRef)(!1),[b]=o.h(),x=(0,v.useCallback)(e=>{g(e)},[]),w=(0,v.useCallback)((t,r)=>t?.status===401&&t?.data?.code===`usage_limit_exceeded`?(x({presetId:{link_check:`link_check_exceeded`,image_check:`image_check_exceeded`,spam_check:`spam_check_exceeded`}[r],previousDisplay:e(`—`),nextDisplay:m.c(`infinity`)}),n(o.f.util.invalidateTags([`LimitsStats`,`LimitsWarnings`])),!0):!1,[n,e,x]),T=(0,v.useCallback)(async e=>{if(i.ii.isPlugin)return!0;let t=m.a(e,(await b(e)).data?.stats);return t?(x({presetId:t.presetId,previousDisplay:t.previousLimit,nextDisplay:m.c(t.nextLimit)}),n(o.f.util.invalidateTags([`LimitsStats`,`LimitsWarnings`])),!1):!0},[n,b,x]),E=i.$(),D=i.cr(u.N),O=p.h(i.ea.ON_LIMIT_ID),k=i.G(),[A,j]=(0,v.useReducer)(kg,Og),[M,N]=a.gn(),[P,F]=a.hn(),[I,L]=a.mn(),{data:R,isSuccess:z,refetch:B}=i.ht(+(f||0),{skip:!!i.ii.isPlugin||!+f}),V=(0,v.useCallback)(e=>j({type:`SET_OPTIMISATION_COUNTER`,payload:e}),[]),H=(0,v.useCallback)(e=>j({type:`SET_VALIDATE_LINKS`,payload:e}),[]),ee=(0,v.useCallback)(e=>j({type:`SET_VALIDATE_IMAGES`,payload:e}),[]),U=(0,v.useCallback)(e=>j({type:`SET_SELECTED_TAGS`,payload:e}),[]),{limitsInPlugin:W,currentBillingOptimisationLimits:G,disableFields:K}=Ag({appConfig:l,data:R,isSuccess:z,optimisationCounter:A.optimisationCounter,setOptimisationCounter:V});Pg({activeTab:A.activeTab,selectedTags:A.selectedTags,validateLinksResult:A.validateLinksResult,validateImagesResult:A.validateImagesResult,setValidateLinks:H,setValidateImages:ee});let{showImgPreviewHandler:q,hideBlockPreviewHandler:J}=jg(),Y=(0,v.useCallback)(()=>{O.fire({name:`OptimizationCount`,count:A.optimisationCounter+1})},[O,A.optimisationCounter]),te=(0,v.useCallback)((e,t)=>{E.send({operation:i.Wr.SANDBOX_SET_POSITION_TO_LINK,settings:{elementId:e,isError:t}})},[E]),X=(0,v.useCallback)((e,t)=>{E.send({operation:i.Wr.SANDBOX_SET_POSITION_TO_IMG,settings:{elementId:e,isError:t}})},[E]),ne=(0,v.useCallback)(e=>{n(u.F({startColumn:e.startColumn,startLineNumber:e.startLineNumber,endColumn:e.endColumn,endLineNumber:e.endLineNumber}))},[n]),re=(0,v.useCallback)(e=>{j({type:`SET_ACTIVE_TAB`,payload:e}),j({type:`RESET_SELECTED_TAGS`}),e===Vg&&D?.length>0&&k({event:`check`,action:`check_email_code`,email_id:d,project_id:f,problems_count:D?.length||0})},[D,k,d,f]),ie=(0,v.useCallback)(async()=>{if(!d){s.error({message:`Save the mail first.`});return}if(K){x({presetId:`optimization_exceeded`,previousDisplay:G,nextDisplay:m.c(`infinity`)});return}if(!await T(`link_check`))return;W&&(j({type:`INCREMENT_OPTIMISATION_COUNTER`}),Y());let t=c.getValue(),n=new DOMParser().parseFromString(t,`text/html`),r={},a={};n.querySelectorAll(`a[href]`).forEach((e,t)=>{r[`link_${t}`]=e.getAttribute(`href`),a[`link_${t}`]=e.textContent||``}),E.send({operation:`sandbox_set_attr_to_links`}),P({entity_id:d,data:r}).then(({data:t,error:n})=>{if(n)w(n,`link_check`)||s.error({error:n});else if(t?.result){let n=[...t.result];n?.sort((e,t)=>e.linkId-t.linkId);let r=n.map(e=>({...e,text:a[e.linkId],status:Fg(e)})),o={links:r,summary:Lg(r)};j({type:`SET_VALIDATE_LINKS_RESULT`,payload:o}),s.success(e(`Links validation was successfully completed`)),t.limit_warning&&t.limit_remaining!=null&&s.warning({message:`${e(`Approaching usage limit. Remaining`)}: ${t.limit_remaining}`}),k({event:`check`,action:`check_email_links`,email_id:d,project_id:f,links_count:o.links?.length||0}),!i.ii.isPlugin&&B()}else t.statusCode>300||!t.success?s.error({error:{data:t}}):s.error({message:e(`Something went wrong.`)}),!A.validateLinksResult.links&&re(``)}).catch(e=>{w(e,`link_check`)||s.error({error:e})})},[d,W,K,G,x,c,E,P,s,e,k,f,B,Y,A.validateLinksResult.links,w,T]),ae=(0,v.useCallback)(async()=>{if(!d){s.error({message:`Save the mail first.`});return}if(K){x({presetId:`optimization_exceeded`,previousDisplay:G,nextDisplay:m.c(`infinity`)});return}if(!await T(`image_check`))return;W&&(j({type:`INCREMENT_OPTIMISATION_COUNTER`}),Y());let t=c.getValue(),n=new DOMParser().parseFromString(t,`text/html`),r={};n.querySelectorAll(`img`).forEach((e,t)=>r[`image_${t}`]=e.src),E.send({operation:`sandbox_set_attr_to_images`}),I({entity_id:d,data:r}).then(({data:t,error:n})=>{let r;if(n)w(n,`image_check`)||s.error({error:n});else if(t?.result){let n=Object.values(t.result);n.sort((e,t)=>e.imageId-t.imageId);let a=n.reduce((e,t)=>e+Math.round(t.image.bytes/1024),0);r={images:n.map(e=>({...e,status:Ig(e)}))||[],summary:Lg(n.map(e=>({...e,status:Ig(e)}))),summaryTime:{value:(a>1200?a/1e3:a).toFixed(1),name:e(a>1200?`MB`:`KB`)}},r&&j({type:`SET_VALIDATE_IMAGES_RESULT`,payload:r}),s.success(e(`Images validation was successfully completed`)),t.limit_warning&&t.limit_remaining!=null&&s.warning({message:`${e(`Approaching usage limit. Remaining`)}: ${t.limit_remaining}`}),k({event:`check`,action:`check_email_images`,email_id:d,project_id:f,images_count:r.images?.length||0}),!i.ii.isPlugin&&B()}else t.statusCode>300||!t.success?s.error({error:{data:t}}):s.error({message:e(`Something went wrong.`)}),!A.validateImagesResult?.images?.length&&re(``)}).catch(e=>{w(e,`image_check`)||s.error({error:e})})},[d,W,K,G,x,c,E,I,s,e,k,f,B,Y,A.validateImagesResult,w,T]),oe=(0,v.useCallback)(async()=>{if(!d){s.error({message:`Save the mail first.`});return}if(K){x({presetId:`optimization_exceeded`,previousDisplay:G,nextDisplay:m.c(`infinity`)});return}await T(`spam_check`)&&(W&&(j({type:`INCREMENT_OPTIMISATION_COUNTER`}),Y()),M({entity_id:d,data:{html:c.getValue()}}).then(({data:t,error:n})=>{if(n)w(n,`spam_check`)||s.error({error:n});else if(t&&t.success){let n=!!t.result.report&&Object.values(t.result.report);n?(n.sort((e,t)=>e.score-t.score),j({type:`SET_VALIDATE_SPAM_RESULT`,payload:{...t.result,report:n}})):t.result&&j({type:`SET_VALIDATE_SPAM_RESULT`,payload:{...t.result,report:n}}),s.success(e(`Spam validation was successfully completed`)),t.limit_warning&&t.limit_remaining!=null&&s.warning({message:`${e(`Approaching usage limit. Remaining`)}: ${t.limit_remaining}`}),k({event:`check`,action:`check_email_spam`,email_id:d,project_id:f,spam_score:t.result?.spamScore||0}),!i.ii.isPlugin&&B()}else t.statusCode>300||!t.success?s.error({error:{data:t}}):s.error({message:e(`Something went wrong.`)}),!A.validateSpamResult?.report?.length&&re(``)}).catch(e=>{w(e,`spam_check`)||s.error({error:e})}))},[d,W,K,G,x,c,M,s,e,k,f,B,Y,A.validateSpamResult,w,T]);(0,v.useEffect)(()=>{if(!(G>0&&A.optimisationCounter>=+G)){y.current=!1;return}y.current||(y.current=!0,x({presetId:`optimization_exceeded`,previousDisplay:G,nextDisplay:m.c(`infinity`)}))},[A.optimisationCounter,G,x]);let Z=h?m.s(h.presetId):null;return(0,C.jsxs)(`div`,{className:`optimise selected_form-props-wrapper selected_form-props-wrapper_optimize`,children:[Z&&h?(0,C.jsx)(m.l,{open:!0,onClose:()=>g(null),title:e(Z.titleKey),subtitle:e(Z.subtitleKey),usageResource:Z.usageResource,previousDisplay:h.previousDisplay,nextDisplay:h.nextDisplay,onChangePlan:()=>{g(null),r(`/billing`)}}):null,W&&(0,C.jsx)(p.L,{text:`${A.optimisationCounter} ${e(`of`)} ${G>0?G:`∞`} ${t(`test`,`tests`,G)} ${t(`was used`,`were used`,A.optimisationCounter)}`,exceeded:G>0&&A.optimisationCounter>=G,extra:(0,C.jsx)(`span`,{style:{textDecoration:`underline`,cursor:`pointer`},onClick:()=>r(l.billingPageUrl||i.xr.billing),children:e(`Need more?`)})}),l.optimizeLinksEnabled&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Nt,{className:`selected-td-form__divider optimise__divider-no-margin`}),(0,C.jsxs)(p.At,{gutter:10,align:`middle`,children:[(0,C.jsx)(p.kt,{span:20,children:(0,C.jsx)(`div`,{style:{padding:`15px 0`},children:e(`Links validation`)})}),(0,C.jsx)(p.kt,{span:4,className:`optimise__col-align-right`,children:(0,C.jsx)(p.Rt,{className:`selected-td-form__button ghost-button`,type:`text`,onMouseDown:e=>e.preventDefault(),onClick:()=>{re(Rg),!A.validateLinksResult?.links?.length&&A.activeTab!==Rg&&ie()},loading:F.isLoading,disabled:K&&!A.validateLinksResult?.links?.length,children:!F.isLoading&&(A.activeTab===Rg?(0,C.jsx)(m.d,{icon:`DownOutlined`,size:16,strokeWidth:l.iconStrokeWidth}):(0,C.jsx)(m.d,{icon:`RightOutlined`,size:16,strokeWidth:l.iconStrokeWidth}))})})]}),(0,C.jsx)(xg,{__:e,activeTab:A.activeTab,validateLinksResult:A.validateLinksResult,validateLinks:A.validateLinks,selectedTags:A.selectedTags,setSelectedTags:U,isLoading:F.isLoading,disabled:K,iconStrokeWidth:l.iconStrokeWidth,onValidate:ie,goToLinkHandler:te})]}),l.optimizeImagesEnabled&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Nt,{className:`selected-td-form__divider optimise__divider-no-margin`}),(0,C.jsxs)(p.At,{gutter:10,align:`middle`,children:[(0,C.jsx)(p.kt,{span:20,children:(0,C.jsx)(`div`,{style:{padding:`15px 0`},children:e(`Images validation`)})}),(0,C.jsx)(p.kt,{span:4,className:`optimise__col-align-right`,children:(0,C.jsx)(p.Rt,{className:`selected-td-form__button ghost-button`,type:`text`,onMouseDown:e=>e.preventDefault(),onClick:()=>{re(zg),!A.validateImagesResult?.images?.length&&A.activeTab!==zg&&ae()},loading:L.isLoading,children:!L.isLoading&&(A.activeTab===zg?(0,C.jsx)(m.d,{icon:`DownOutlined`,size:16,strokeWidth:l.iconStrokeWidth}):(0,C.jsx)(m.d,{icon:`RightOutlined`,size:16,strokeWidth:l.iconStrokeWidth}))})})]}),(0,C.jsx)(Cg,{__:e,activeTab:A.activeTab,validateImagesResult:A.validateImagesResult,validateImages:A.validateImages,selectedTags:A.selectedTags,setSelectedTags:U,isLoading:L.isLoading,disabled:K,iconStrokeWidth:l.iconStrokeWidth,onValidate:ae,goToImageHandler:X,showImgPreviewHandler:q,hideBlockPreviewHandler:J})]}),l.optimizeSpamAssassinEnabled&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Nt,{className:`selected-td-form__divider optimise__divider-no-margin`}),(0,C.jsxs)(p.At,{gutter:10,align:`middle`,children:[(0,C.jsx)(p.kt,{span:20,children:(0,C.jsx)(`div`,{style:{padding:`15px 0`},children:e(`SpamAssassin`)})}),(0,C.jsx)(p.kt,{span:4,className:`optimise__col-align-right`,children:(0,C.jsx)(p.Rt,{className:`selected-td-form__button ghost-button`,type:`text`,onMouseDown:e=>e.preventDefault(),loading:N.isLoading,onClick:()=>{re(Bg),A.validateSpamResult.report?.length||Object.prototype.hasOwnProperty.call(A.validateSpamResult,`spamScore`)||oe()},disabled:K&&!(A.validateSpamResult?.report?.length||Object.prototype.hasOwnProperty.call(A.validateSpamResult,`spamScore`)),children:!N.isLoading&&(A.activeTab===Bg?(0,C.jsx)(m.d,{icon:`DownOutlined`,size:16,strokeWidth:l.iconStrokeWidth}):(0,C.jsx)(m.d,{icon:`RightOutlined`,size:16,strokeWidth:l.iconStrokeWidth}))})})]}),(0,C.jsx)(Tg,{__:e,activeTab:A.activeTab,validateSpamResult:A.validateSpamResult,isLoading:N.isLoading,disabled:K,iconStrokeWidth:l.iconStrokeWidth,onValidate:oe})]}),l.optimizeCheckCodeEnabled&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Nt,{className:`selected-td-form__divider optimise__divider-no-margin`}),(0,C.jsxs)(p.At,{gutter:10,align:`middle`,children:[(0,C.jsx)(p.kt,{span:20,children:(0,C.jsx)(`div`,{style:{padding:`15px 0`},children:e(`Source code validation`)})}),(0,C.jsx)(p.kt,{span:4,className:`optimise__col-align-right`,children:(0,C.jsx)(p.Rt,{className:`selected-td-form__button ghost-button`,type:`text`,onMouseDown:e=>e.preventDefault(),onClick:()=>re(Vg),children:A.activeTab===Vg?(0,C.jsx)(m.d,{icon:`DownOutlined`,size:16,strokeWidth:l.iconStrokeWidth}):(0,C.jsx)(m.d,{icon:`RightOutlined`,size:16,strokeWidth:l.iconStrokeWidth})})})]}),(0,C.jsx)(Dg,{__:e,activeTab:A.activeTab,problemsList:D,onSetMonacoPosition:ne})]})]})},Ug=({open:e,onClose:t})=>{let{__:n}=p.v();return(0,C.jsxs)(p.Z,{open:e,centered:!0,closable:!1,maskClosable:!1,footer:null,width:520,className:`browser-extension-warning-modal`,title:n(`Browser extension detected`),onCancel:t,children:[(0,C.jsx)(`p`,{children:n(`A browser extension (for example, Urban VPN Proxy or similar ad blockers/VPN tools) is injecting code into the email preview. This can corrupt your template when saving.`)}),(0,C.jsx)(`p`,{children:n(`We removed the injected code automatically. To avoid this issue, disable the extension for this site or use the editor in an incognito window without extensions.`)}),(0,C.jsx)(`div`,{className:`browser-extension-warning-modal__footer`,children:(0,C.jsxs)(p.Rt,{type:`primary`,onClick:t,children:[n(`Got it`),` `]})})]})},Wg=(0,v.lazy)(()=>Promise.resolve().then(()=>e(`./6f768da1.js`))),Gg=(0,v.lazy)(()=>Promise.resolve().then(()=>e(`./a006f6f7.js`))),Kg={height:`100%`},qg=()=>{let e=i.Wt(),t=m.t(),n=i.nr(),r=i.cr(i.B),a=i.tr(),o=p.v(),s=i.cr(i.n),c=r?.id===void 0?``:String(r?.id),l=i.ii.isPlugin?s?.id===`0`?``:String(s.id):``,{storageProvider:u,pathProxy:d,dataProvider:f}=(0,v.useMemo)(()=>qs({storageProvider:n,projectId:c,restApi:a,i18n:o,pathPostfix:l,appConfig:e,isStandalone:t}),[e,o,t,c,a,n,l]),h=(0,C.jsx)(p.q,{style:Kg});return u&&f&&e.imageCenterFileManagerView?h=(0,C.jsx)(Wg,{storageProvider:u,dataProvider:f,pathProxy:d}):u&&f&&(h=(0,C.jsx)(Gg,{dataProvider:f})),(0,C.jsx)(v.Suspense,{fallback:(0,C.jsx)(p.q,{style:Kg}),children:h})},Jg=`calendar_`;`${Jg}`,`${Jg}`,`${Jg}`,`${Jg}`,`${Jg}`;var Yg=e=>e.closest(`.email-pane__collapse-wrapper`)||e.closest(`.email-pane__content-col`)||document.body;function Xg({namePrefix:e,microLabel:t}){let{__:n}=p.v(),r=i.cr(u.O)?.usedColors;return(0,C.jsx)(p.w,{namePrefix:e,microLabel:t,usedColors:r,usedLabel:n(`Used`),recommendedLabel:n(`Recommended`),loadGoogleFonts:bc,getPopupContainer:Yg,formatLabels:{bold:n(`Strong ( Ctrl+B )`),italic:n(`Italic ( Ctrl+I )`),strikethrough:n(`Strikethrough ( Alt+Shift+5 )`),underline:n(`Underline ( Ctrl+U )`)},inputLabels:{fontSize:n(`Font size`),lineHeight:n(`Line height`),textColor:n(`Text color`)}})}Xg.propTypes={namePrefix:b.default.string.isRequired,microLabel:b.default.node.isRequired};var Zg=`dropdown_`;`${Zg}`,`${Zg}`,`${Zg}`,`${Zg}`,`${Zg}`;var Qg=e=>e.closest(`.email-pane__collapse-wrapper`)||e.closest(`.email-pane__content-col`)||document.body;function $g({namePrefix:e,microLabel:t}){let{__:n}=p.v(),r=i.cr(u.O)?.usedColors;return(0,C.jsx)(p.w,{namePrefix:e,microLabel:t,usedColors:r,usedLabel:n(`Used`),recommendedLabel:n(`Recommended`),loadGoogleFonts:bc,getPopupContainer:Qg,formatLabels:{bold:n(`Strong ( Ctrl+B )`),italic:n(`Italic ( Ctrl+I )`),strikethrough:n(`Strikethrough ( Alt+Shift+5 )`),underline:n(`Underline ( Ctrl+U )`)},inputLabels:{fontSize:n(`Font size`),lineHeight:n(`Line height`),textColor:n(`Text color`)}})}$g.propTypes={namePrefix:b.default.string.isRequired,microLabel:b.default.node.isRequired};var e_=`radio_`;`${e_}`,`${e_}`,`${e_}`,`${e_}`,`${e_}`;var t_=e=>e.closest(`.email-pane__collapse-wrapper`)||e.closest(`.email-pane__content-col`)||document.body;function n_({namePrefix:e,microLabel:t}){let{__:n}=p.v(),r=i.cr(u.O)?.usedColors;return(0,C.jsx)(p.w,{namePrefix:e,microLabel:t,usedColors:r,usedLabel:n(`Used`),recommendedLabel:n(`Recommended`),loadGoogleFonts:bc,getPopupContainer:t_,formatLabels:{bold:n(`Strong ( Ctrl+B )`),italic:n(`Italic ( Ctrl+I )`),strikethrough:n(`Strikethrough ( Alt+Shift+5 )`),underline:n(`Underline ( Ctrl+U )`)},inputLabels:{fontSize:n(`Font size`),lineHeight:n(`Line height`),textColor:n(`Text color`)}})}n_.propTypes={namePrefix:b.default.string.isRequired,microLabel:b.default.node.isRequired};var r_=`checkbox_`;`${r_}`,`${r_}`,`${r_}`,`${r_}`,`${r_}`;var i_=e=>e.closest(`.email-pane__collapse-wrapper`)||e.closest(`.email-pane__content-col`)||document.body;function a_({namePrefix:e,microLabel:t}){let{__:n}=p.v(),r=i.cr(u.O)?.usedColors;return(0,C.jsx)(p.w,{namePrefix:e,microLabel:t,usedColors:r,usedLabel:n(`Used`),recommendedLabel:n(`Recommended`),loadGoogleFonts:bc,getPopupContainer:i_,formatLabels:{bold:n(`Strong ( Ctrl+B )`),italic:n(`Italic ( Ctrl+I )`),strikethrough:n(`Strikethrough ( Alt+Shift+5 )`),underline:n(`Underline ( Ctrl+U )`)},inputLabels:{fontSize:n(`Font size`),lineHeight:n(`Line height`),textColor:n(`Text color`)}})}a_.propTypes={namePrefix:b.default.string.isRequired,microLabel:b.default.node.isRequired};var o_=`inputField_`;`${o_}`,`${o_}`,`${o_}`,`${o_}`,`${o_}`;var s_=e=>{if(e===0)return`0 B`;let t=1024,n=[`B`,`KB`,`MB`,`GB`,`TB`],r=Math.min(Math.floor(Math.log(e)/Math.log(t)),n.length-1),i=n.at(r)??`B`;return parseFloat((e/t**+r).toFixed(1))+` `+i},c_=e=>e?new TextEncoder().encode(e).length:0,l_=(e,t=90)=>e>t*1024,u_=e=>{let t=[],n=e;n=n.replace(/<!--\[if[^\]]*\]>[\s\S]*?<!\[endif\]-->/gi,e=>{let n=t.length,r=e.replace(/\s+/g,` `).replace(/> </g,`><`).replace(/\s+>/g,`>`).replace(/<!--\[if([^\]]*)\]>\s+/g,`<!--[if$1]>`).replace(/\s+<!\[endif\]-->/g,`<![endif]-->`);return t.push(r),`___CONDITIONAL_COMMENT_${n}___`});let r=n.replace(/<!--(?!\[if)[\s\S]*?-->/g,``).replace(/\s+/g,` `).replace(/> </g,`><`).replace(/\s+>/g,`>`).trim();return t.forEach((e,t)=>{r=r.replace(`___CONDITIONAL_COMMENT_${t}___`,e)}),r};function d_(){let[e,t]=(0,v.useState)(!1),n=p.h(i.ea.ON_BROWSER_EXTENSION_DETECTED_ID),r=(0,v.useCallback)(()=>{t(!1)},[]);return(0,v.useEffect)(()=>{let e=n.event(()=>{t(!0)});return()=>e.dispose()},[n]),{open:e,close:r}}var f_=`code`,p_=(e,t)=>(0,C.jsx)(t,{className:`email-pane__tab-bar`,...e}),{Content:m_}=p.G,h_=(0,v.memo)(e=>(0,C.jsx)(Rm,{...e})),g_=(0,v.memo)(e=>(0,C.jsx)(gl,{...e})),__=(0,v.memo)(e=>(0,C.jsx)(wl,{...e})),v_=(0,v.memo)(e=>(0,C.jsx)(hg,{...e})),y_=(0,v.memo)((0,v.forwardRef)((e,t)=>(0,C.jsx)(fg,{...e,ref:t}))),b_=(0,v.memo)(e=>(0,C.jsx)(Nu,{...e})),x_=(0,v.memo)(e=>(0,C.jsx)(Ns,{...e})),S_=(0,v.memo)(e=>(0,C.jsx)(gg,{...e})),C_=({emailElement:e,isSuccess:t,setIsCollaborationEditor:n,isShowAddAllBlocksModal:r,triggerOpenSavedBlocksTab:s,setIsShowAddAllBlocksModal:c})=>{let l=1200,{__:d,_x:f}=p.v(),h=i.$(),{emailId:y,blockId:b,projectId:x}=(0,S.useParams)(),w=i.lr(),{modal:T}=p.Wt.useApp(),D=i.Wt(),{token:O}=p.Vt(),k=p.i(),A=i.G(),j=i.cr(i.B),M=g.u(),N=i.cr(i.in),P=i.cr(i.n),F=i.cr(i.r),I=i.ur(),L=i.cr(o.s),R=i.cr(i.sn),z=i.cr(u.C),B=i.cr(u.d),V=i.cr(i.cn),H=i.cr(i.an),ee=i.cr(a.Q),U=i.cr(a.et),W=i.cr(a.$),G=i.cr(i.mn),[K]=a.Kt(),[q]=a.On(),[J,Y]=(0,v.useState)(!1),[te,X]=(0,v.useState)(i.qr),[ne,re]=(0,v.useState)(),[ie,ae]=(0,v.useState)(D.defaultBuildPanel||`empty`),[oe,Z]=(0,v.useState)(`empty`),[se,ce]=(0,v.useState)(!1),[le,ue]=(0,v.useState)([]),[de,fe]=(0,v.useState)(!1),[pe,me]=(0,v.useState)([]),[he,ge]=(0,v.useState)(!1),[_e,ve]=(0,v.useState)(!1),{open:ye,close:be}=d_(),xe=i.Z(),Se=_.l(),[Ce,we]=(0,v.useState)(Se?.getValue()||``);(0,v.useEffect)(()=>{if(!Se)return;we(Se.getValue());let e=Se.onDidChangeContent(()=>{we(Se.getValue())});return()=>{e.dispose()}},[Se]);let Te=(0,v.useMemo)(()=>c_(Ce||e?.html||``),[e?.html,Ce]),Ee=s_(Te),De=l_(Te),Oe=!F&&P.id?.toString()===j?.members?.owner.ID,ke=i.ii.isPlugin?D?.configSwither||!1:!0;(0,v.useEffect)(()=>{w(i.tn())},[w]),(0,v.useEffect)(()=>{let e=window.localStorage.getItem(i.Yr.em_active_tab);e&&w(i.hn(e))},[M,w]);let Ae=y||b,je=e.hasOwnProperty(`type`)?i.wr:i.Br,Me=je===`email`?z:B,[Ne,Pe]=(0,v.useState)({}),Fe=(0,v.useRef)(null),Ie=(0,v.useRef)(),Le=(0,v.useRef)(),Re=(0,v.useRef)(),ze=(0,v.useRef)(),Be=(0,v.useRef)(),Ve=(0,v.useRef)(null),He=(0,v.useRef)(!1),Ue=(0,v.useRef)(!1),We=(0,v.useCallback)(()=>{Ue.current=!1},[]),Ge=(0,v.useCallback)(()=>{Ue.current=!0},[]),Ke=(0,v.useCallback)(e=>{e?.type===i.zr.SOCIAL&&Ge()},[Ge]),[qe,Je]=(0,v.useState)(!1),[Ye,Xe]=(0,v.useState)(!1),Ze=p.m(i.pa),[Qe]=i.Kt(),[$e,et]=(0,v.useState)(!1),[tt,nt]=(0,v.useState)(0),[rt,it]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let e=Ze(e=>{let t=e?.type===i.aa;if((!e||!e.type&&!e.content&&!e.advancedTabs?.length)&&N===`Properties`)Pe({}),u.L({}),w(i.nn());else if(N!==`Properties`&&w(i.hn(i.si)),e.advancedTabs?.length&&!t&&!e.content){let t=e.advancedTabs.map(e=>({content:e.content,label:e.label,key:e.key,className:e.className}));Pe(e=>({settings:{},extraTabs:t}))}else if(t&&e.content){let t=e.advancedTabs?.map(e=>({content:e.content,label:e.label,key:e.key,className:e.className}));Pe(n=>({settings:{},type:e.type,content:e.content,instanceKey:e.instanceKey,parent:e.parent,caption:e.caption,extraTabs:t,deletable:e.deletable}))}});return()=>e.dispose()},[Ze,Pe,w,N,Me]);let at=i.ii.isPlugin?D.configSwither?localStorage.getItem(`configSwither`)===`pro`?!0:localStorage.getItem(`configSwither`)===`editor`?!1:D.mode===`pro`:!1:P.email_builder_config===`pro`||P.email_builder_config===`simple`,ot=(0,v.useCallback)(()=>{clearTimeout(Ve.current);let e=`.blocks-search__result-holder`;xe.querySelector(e)&&(ee||U||W)&&(xe.querySelector(e).style.removeProperty(`transition`),xe.querySelector(e).style.opacity=0,xe.querySelectorAll(`.blocks-search__result-body`).forEach(e=>e.style.removeProperty(`height`)),Ve.current=setTimeout(()=>{xe.querySelectorAll(`.blocks-search__result-body`).forEach(e=>{e.style.height=e.getBoundingClientRect().height*207/660+`px`}),xe.querySelector(e)&&(xe.querySelector(e).style.transition=`opacity 0.2s`,xe.querySelectorAll(e).forEach(e=>e.style.opacity=1))},200))},[U,ee,W]),st=(0,v.useCallback)(e=>{let t=e.target;setTimeout(()=>{Je(t.closest(`.desktop_view`)),Xe(t.closest(`.mobile_view`))},100)});(0,v.useEffect)(()=>{let e=ef(xe,`mouseover`,st);return()=>{e.dispose()}},[xe,st]),(0,v.useEffect)(()=>{w(i._n(J?i.Qr:i.Mr))},[J,w]),(0,v.useEffect)(()=>{typeof n==`function`&&(pe.length>0?n(!0):n(!1))},[pe]);let[ct]=a.zn(),{data:lt={},refetch:ut,status:dt}=a.Ln({entity_id:Ae},{skip:!Ae||D.aiAssistentEnabled===!1}),[ft,pt]=(0,v.useState)([]),[mt,ht]=(0,v.useState)(D.defaultBuildPanel===``?i.Sr:i.Tr),[gt,_t]=(0,v.useState)(null),vt=(0,v.useCallback)(()=>{let e=Le.current?.getBoundingClientRect(),t=ne?.getBoundingClientRect();h.send({operation:i.Wr.SANDBOX_WINDOW_CHARACTERISTIC,settings:{iframeOffsetTop:V&&H!==`bottom`?0:30,scrollTop:-e?.top+t?.top+30,innerHeight:window.innerHeight,previewHeight:t?.height,mode:V&&H!==`bottom`?f_:`default`}})},[H,V,ne,h]),yt=t&&e,bt=(0,v.useCallback)(e=>{let t=window.navigator.platform.match(`Mac`);D.codeEnabled&&D.codeSideEnabled&&e.altKey&&e.keyCode===88&&(w(i.Cn()),Oe&&(et(!0),nt(1))),((t?e.metaKey:e.ctrlKey)&&e.shiftKey&&e.keyCode===76||(t?e.metaKey:e.ctrlKey)&&e.shiftKey&&e.keyCode===69||(t?e.metaKey:e.ctrlKey)&&e.shiftKey&&e.keyCode===82)&&e.preventDefault()},[w,D.codeEnabled,Oe,D.codeSideEnabled]),xt=L.includes(`UPLOAD_IMAGE_`)||L.includes(`UPLOAD_BACKGROUND_`),St=(0,v.useRef)(!1),Ct=(0,v.useCallback)(e=>{let t=e.target;St.current=!!(t.closest(`.email-pane__content-col`)||t.closest(`.email-pane__collapse-wrapper`)||t.closest(`.selected-element-panel-content`)||t.closest(`.selected-element-panel`)||t.closest(`.em-analytics__email-tab-properties`)||t.closest(`.em-analytics__email-tab-styles`)||t.closest(`.em-analytics__email-tab-history`)||t.closest(`.blocks-modal-container`)||t.closest(`.email-pane__sizes`)||t.closest(`.email-preview-menu`)||t.closest(`.monaco-editor`)||t.closest(`.ant-modal-wrap`))},[]),wt=(0,v.useCallback)(t=>{let n=St.current,r=window.getSelection().toString().length>0||document.activeElement&&document.activeElement.tagName===`INPUT`&&document.activeElement.selectionStart!==document.activeElement.selectionEnd;St.current=!1,!(n||r)&&(!document.querySelector(`.easylogic-colorpicker`)&&!xe.querySelector(`.easylogic-colorpicker`)&&!t.target.closest(`.email-pane__content-col`)&&!t.target.closest(`.blocks-modal-container`)&&!t.target.closest(`.email-pane__collapse-wrapper`)&&!t.target.closest(`.selected-element-panel__columns-settings__controls__column__remove`)&&!t.target.closest(`.email-preview__content-col_main`)&&!t.target.closest(`.email-preview-menu`)&&!t.target.closest(`.monaco-editor`)&&!t.target.closest(`.main__pane-close-btn`)&&!t.target.closest(`.main__pane-trigger`)&&!t.target.closest(`.ant-modal-wrap`)&&!t.target.closest(`.email-pane__sizes`)&&!t.target.closest(`.ant-input-clear-icon`)&&!t.target.closest(`.ant-color-picker`)&&!t.target.closest(`.control-font-family-dropdown`)&&!gt&&!t.target.closest(`.email-preview-menu__history`)&&!t.target.closest(`.selected-element-panel-content`)&&!t.target.closest(`.ant-select-dropdown`)&&!t.target.closest(`.toggle_view`)&&!t.target.closest(`.upload-bg-image__menu`)&&!t.target.closest(`.email-pane__paths`)&&!t.target.closest(`.ant-tabs-extra-content`)&&!t.target.closest(`.anticon-delete`)&&!xt&&L!==i.$r.IMAGE_EDITOR_MODAL&&(N===`Properties`&&(Ge(),w(i.nn()),h.send({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET}),ue([])),N===`History`&&w(i.hn(i.Dr)),w(i.Tn(!0)),h.send({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1}),setTimeout(()=>{e.type?w(u._({type:null})):w(u.L({type:null}))},300)),_t(null))},[w,e.type,L,gt,N,h,xt]),[Tt,Et]=(0,v.useState)(!0),{data:Dt=[],refetch:Ot}=a.Cn(Ae,{skip:!Ae}),[kt,At]=(0,v.useState)(``),[jt,Mt]=(0,v.useState)(``);(0,v.useEffect)(()=>{Ae&&Ot()},[N,Ae,Ot]),(0,v.useEffect)(()=>{Ae&&!Object.keys(lt).length&&dt===`fulfilled`&&ut()},[N,Ae,ut,lt,dt]),(0,v.useEffect)(()=>{let e=new i.Da,t=window.localStorage.getItem(i.Yr.em_active_tab);if(lt?.totalCount===0&&dt!==`pending`){let n={project_id:x,connection:`chat`,entity_id:Ae,context:`default`,locale:P.locale.slice(0,2)};t||ct({body:n}).then(()=>{e.isDisposed()||dt===`fulfilled`&&ut()})}let n={data:{role:`assistant`,message:d(`Typing...`),isLoading:!0}};return lt?.documents?.length>0?(window.localStorage.removeItem(i.Yr.em_active_tab),pt(lt?.documents),lt?.documents[lt?.documents?.length-1].data?.userInfo&&pt([...lt?.documents,n])):t||pt([n]),()=>e.dispose()},[Ae,P.locale,lt?.totalCount,lt?.documents,x,ut,ct,dt]),(0,v.useEffect)(()=>{Pe({}),w(je===`email`?u.L({}):u._({}))},[w,je]);let Nt=(0,v.useCallback)(e=>{w(u.W(e))},[w]),Pt=(0,v.useCallback)(e=>{w(u.m(e))},[w]),Ft=(0,v.useCallback)(e=>{w(je===`email`?u.L(e):u._(e))},[w,je]);(0,v.useEffect)(()=>{let e=ze.current,t=Re.current;re(V?t:e)},[V,H]);let It=(0,v.useCallback)(e=>{ae(e),e===`search`?ce(!0):(ce(!1),Z(e)),setTimeout(ot,50)},[ot]),Lt=(0,v.useCallback)(t=>{let n=t.data.operation,r=t.data,a=t.data.action;if(n===`application_block_inserted`||t.data.operationId===`application_block_inserted`){let n=t.data.operationId?t.data.data:r||{},i=n.type===`project`||n.type===`template`||n.type===`common`?`block`:`structure`;A({event:`add`,action:`add_element_to_email`,element_type:i,element_name:n.name||n.type||(i===`block`?`block`:`structure`),entity_id:e?.id||y||b,project_id:j?.id||x})}if(n===i.Wr.APPLICATION_SCROLL_TO&&setTimeout(()=>{Re.current?.scrollTo({top:t.data.settings.value,behavior:`smooth`})},100),n===i.Wr.APPLICATION_PREVIEW_ALERT_SHOW&&ge(r.settings.show),n===i.Wr.APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW&&ve(!0),n===i.Wr.APPLICATION_ACTION&&a===`toggle_editor`&&w(i.Cn()),n===i.Wr.APPLICATION_IFRAME_SET_HEIGHT&&(xe.querySelector(`.email-pane__iframe`).style.height=r.settings.height+`px`),n===i.Wr.APPLICATION_EMAIL_SETTINGS_SET){let e=Object.assign({},r.settings);delete e.preheader,Object.values(e).every(e=>!e)?(w(u.G(!0)),w(i.nn())):Nt(r.settings),r.settings.noBlocks,w(i.xn(r.settings.responsive)),Et(e.structuresMedia)}if(n===i.Wr.APPLICATION_BLOCK_SETTINGS_SET&&(Object.values(r.settings).every(e=>!e)?(w(u.h(!0)),w(i.nn())):(Pt(r.settings),Et(r.settings.structuresMedia))),n===i.Wr.APPLICATION_ELEMENT_SETTINGS_SET){let e=Object.values(i.zr).includes(r.type),t=Ne?.type===`advanced`&&!!Ne.content,n=r.tab?!0:!e&&!t;n&&N===`Properties`&&w(i.nn()),r.type===i.zr.EMPTY_TABLE||r.type===i.zr.EMPTY_TD?(w(i.hn(i.Dr)),r.type===i.zr.EMPTY_TABLE?(ht(i.Tr),r.tab?It(r.tab):It(`common`)):r.type===i.zr.EMPTY_TD&&ht(i.Sr)):r.type&&N!==`Properties`?r.type===i.zr.SOCIAL&&Ue.current?We():(We(),w(i.hn(i.si))):r.type!==i.zr.SOCIAL&&We(),r.type===i.zr.CAROUSEL||r.type===i.zr.ACCORDION||r.type===i.zr.SOCIAL?(Pe(e=>({settings:{...r.settings,type:n?null:r.type,caption:r.caption,parent:n?null:r.settings.parent},type:n?null:r.type,parent:n?null:r.settings.parent,caption:r.caption,extraTabs:e.extraTabs})),Ft({})):(Ft({...r.settings,type:n?null:r.type,parent:n?null:r.settings.parent,caption:r.caption}),Pe(t=>!e&&t.type===`advanced`&&t.content?{...t,settings:{...r.settings,type:r.type,parent:r.settings?.parent,caption:r.caption}}:t.extraTabs?.length?{extraTabs:t.extraTabs}:{})),r.settings?.path?.length>0&&ue(r.settings?.path)}n===i.Wr.APPLICATION_ELEMENT_SETTINGS_CLOSE&&(Ne?.type===i.zr.SOCIAL&&Ge(),w(i.nn()))},[w,Nt,Pt,Ft,N,It,xe,Ne,A,e,y,b,j,Ne,We,Ge]);(0,v.useEffect)(()=>{fs({id:P?.id,email:P?.email,username:P?.name})},[P]),(0,v.useEffect)(()=>{let e=P.email_builder_config,t=F||P.id?.toString()!==j?.members?.owner.ID,n=i.kt(I.getState());if(!e||typeof e!=`string`){!i.ii.isPlugin&&t&&n===`simple`&&w(i.Dt(`pro`));return}let r=t&&e===`simple`?`pro`:e;r!==n&&w(i.Dt(r))},[j?.members?.owner?.ID,P.email_builder_config,P.id,w,F,I]),(0,v.useEffect)(()=>{if(V&&Oe&&w(i.Cn()),i.ii.isPlugin){if(D.configSwither){let e=localStorage.getItem(`configSwither`)||D.mode||`editor`;localStorage.setItem(`configSwither`,e),w(i.Dt(e))}}else F||P.id?.toString()!==j?.members?.owner.ID?D.mode===`simple`&&w(i.Dt(`pro`)):w(i.Dt(`simple`))},[]);let Rt=t=>{F||(P.id?.toString(),j?.members?.owner.ID),setTimeout(()=>{if(F||P.id?.toString()!==j?.members?.owner.ID){let n=t?`pro`:`editor`;localStorage.setItem(`configSwither`,n),w(i.Dt(n)),A({event:`change`,action:`change_config_mode`,config_mode:n,entity_id:e?.id||y||b,project_id:j?.id||x})}else w(i.Dt(`pro`)),it(!0),et(!0),A({event:`change`,action:`change_config_mode`,config_mode:`pro`,entity_id:e?.id||y||b,project_id:j?.id||x})},200)},zt=()=>{V&&w(i.Cn()),w(i.nn()),w(i.Dt(`simple`)),it(!1),et(!1),A({event:`change`,action:`change_config_mode`,config_mode:`simple`,entity_id:e?.id||y||b,project_id:j?.id||x})};_.g(Lt);let Bt=(0,v.useRef)({emailElementType:je,emailElementSettings:z,blockElementSettings:B});Bt.current={emailElementType:je,emailElementSettings:z,blockElementSettings:B},(0,v.useEffect)(()=>{let e=h.addListener(e=>{let t=e?.data?.operation===void 0?e:e.data;if(t?.operation!==i.Wr.APPLICATION_NATIVE_IMAGE_DROP)return;let n=t.file,r=j?.id??x;if(!n||!(n instanceof File)||!r||!P?.id){h.send({operation:i.Wr.SANDBOX_NATIVE_IMAGE_DROP_CLEAR});return}(async()=>{try{let e=n;n.type!==`image/gif`&&(e=await hd(n,{maxSizeMB:D.compressMaxSize||.45,maxWidthOrHeight:D.compressMaxWidthOrHeight||2e3}));let t=await q({user_id:P.id,folder:String(r),file:e});if(t.error){k.fromError(`IMAGE_UPLOAD_ERROR`,n,t.error,!0),h.send({operation:i.Wr.SANDBOX_NATIVE_IMAGE_DROP_CLEAR});return}let a=Yd(t.data);if(a.error||!a.file_url){h.send({operation:i.Wr.SANDBOX_NATIVE_IMAGE_DROP_CLEAR});return}let o=a.file_url;h.send({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:i.zr.IMG,settings:{src:o}});let{emailElementType:s,emailElementSettings:c,blockElementSettings:l}=Bt.current,u=s===`email`?c:l;u?.type===i.zr.IMG&&Ft({...u,src:o,changeKey:`src`})}catch{h.send({operation:i.Wr.SANDBOX_NATIVE_IMAGE_DROP_CLEAR})}})()});return()=>e.dispose()},[h,q,P,x,j?.id,D.compressMaxSize,D.compressMaxWidthOrHeight,k,Ft]),(0,v.useEffect)(()=>{let t=h.addListener(`application_atom_inserted`,t=>{A({event:`add`,action:`add_element_to_email`,element_type:`atom`,element_name:t||`atom`,entity_id:e?.id||y||b,project_id:j?.id||x})}),n=h.addListener(`application_block_inserted`,t=>{let n=t?.type===`project`||t?.type===`template`||t?.type===`common`?`block`:`structure`;A({event:`add`,action:`add_element_to_email`,element_type:n,element_name:t?.name||t?.type||(n===`block`?`block`:`structure`),entity_id:e?.id||y||b,project_id:j?.id||x})});return()=>{t?.dispose(),n?.dispose()}},[h,A,e?.id,y,b,x,j?.id]);let Vt=t=>{if(xe.querySelector(`.atoms__list`),D.toggleSidePanel&&t===N?w(i.hn(i.Nr)):t===`Optimize`?i.d(d,T):t!==`Properties`&&t!==`History`?(w(i.hn(t)),A({event:`navigate`,action:`navigate_email_pane_tab`,tab_name:t===`Disabled_tab`?`DISABLED_TAB`:t,entity_id:e?.id||y||b,project_id:j?.id||x}),h.send({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1}),h.send({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET}),ue([])):(t===`Properties`||t===`History`)&&A({event:`navigate`,action:`navigate_email_pane_tab`,tab_name:t,entity_id:e?.id||y||b,project_id:j?.id||x}),Oe&&(t===`Discuss`||t===`Optimise`||t===`AiChat`))switch(et(!0),t){case`Discuss`:nt(7);break;case`Optimise`:nt(6);break;case`AiChat`:nt(9);break;default:nt(0)}},Ht=(0,v.useRef)(),[Ut,Wt]=(0,v.useState)(`unset`),Gt=(0,v.useCallback)(()=>{let e,t=Re.current?.getBoundingClientRect();if(Ht?.current?.getBoundingClientRect().top>=0){let e=t&&Math.round(t&&t?.height-30);Ht.current.style.height=`${e}px`,Wt(e-30)}e&&window.clearTimeout(e),e=window.setTimeout(function(){h.isInited()&&vt()},100)},[vt,h]);(0,v.useEffect)(()=>(N===`AiChat`?Fe.current=setInterval(()=>{ut({entity_id:Ae})},5e3):clearInterval(Fe.current),clearInterval(Fe.current)),[Ae,ut,N]);let Kt=e=>ht(e||``),[qt,Jt]=(0,v.useState)(+window.localStorage.getItem(i.Yr.em_code_mode_pane_sizes)||50),Yt=(0,v.useRef)(qt);(0,v.useEffect)(()=>{Yt.current=qt},[qt]);let Xt=()=>{ce(!1),ae(oe)},Zt=()=>{let e=xe.querySelector(`.block-search__preview`);e&&(e.style.opacity=`0`,e.style.transform=`translateX(-99%)`,setTimeout(function(){e.remove()},300))},Qt=[],$t={display:`flex`,alignItems:`center`,justifyContent:`center`};D.blocksEmptyEnabled&&Qt.push({label:(0,C.jsx)(p.K,{placement:`top`,title:d(`Empty blocks`),children:(0,C.jsx)(`div`,{style:$t,children:(0,C.jsx)(m.d,{icon:`BorderOuterOutlined`,style:{fontSize:18}})})}),value:`empty`}),D.blocksSavedEnabled&&Qt.push({label:(0,C.jsx)(p.K,{placement:`top`,title:d(`Saved blocks`),children:(0,C.jsx)(`div`,{style:$t,children:(0,C.jsx)(m.d,{icon:`AppstoreAddOutlined`,style:{fontSize:18}})})}),value:`project`}),D.blocksCommonEnabled&&Qt.push({label:(0,C.jsx)(p.K,{placement:`top`,title:d(`Common blocks`),children:(0,C.jsx)(`div`,{style:$t,children:(0,C.jsx)(m.d,{icon:`AppstoreOutlined`,style:{fontSize:18}})})}),value:`common`}),D.blocksTemplateEnabled&&Qt.push({label:(0,C.jsx)(p.K,{placement:`top`,title:d(`Template blocks`),children:(0,C.jsx)(`div`,{style:$t,children:(0,C.jsx)(m.d,{icon:`BuildOutlined`,style:{fontSize:18}})})}),value:`template`}),D.blocksSearchEnabled&&Qt.push({label:(0,C.jsx)(p.K,{placement:`top`,title:d(`Blocks search`),children:(0,C.jsx)(`div`,{style:$t,children:(0,C.jsx)(m.d,{icon:`SearchOutlined`,style:{fontSize:18}})})}),value:`search`});let en=ie!==`empty`||se,tn=!D.blocksSectionsShow||en?`100%`:`calc(100% - 44px)`,nn=[{label:(0,C.jsx)(`div`,{className:`email-pane__tab`,children:d(`Elements`)}),key:i.Sr,forceRender:!0,className:`email-pane__collapse-panel email-pane__atoms`,children:(0,C.jsx)(b_,{})},{label:(0,C.jsx)(`div`,{className:`email-pane__tab`,children:d(`Blocks`)}),key:i.Tr,forceRender:!0,className:`email-pane__collapse-panel email-pane__blocks-search`,style:{height:tn},children:(0,C.jsxs)(`div`,{className:(0,E.default)(`email-pane__blocks-panel`,{"email-pane__blocks-panel_scrollable":en}),children:[D.blocksSectionsShow&&(0,C.jsxs)(`div`,{className:`email-pane__blocks-panel-header`,children:[(0,C.jsxs)(p.xt.Compact,{block:!0,children:[!se&&(0,C.jsx)(p.et,{block:!0,style:{width:`100%`,marginTop:24},onChange:It,value:ie,options:Qt}),se&&(0,C.jsx)(`div`,{style:{width:`100%`,height:36}}),se&&(0,C.jsx)(`div`,{style:{width:36,textAlign:`right`,marginTop:22},children:(0,C.jsx)(m.d,{icon:`CloseOutlined`,style:{padding:`0 2px 0`,cursor:`pointer`},onClick:Xt})})]}),(0,C.jsx)(`div`,{className:`blocks-search__divider-wrapper`,style:{marginTop:se?28:12},children:(0,C.jsx)(p.Nt,{className:`blocks-search__divider`})})]}),(0,C.jsxs)(`div`,{className:`email-pane__blocks-panel-body`,children:[(0,C.jsx)(`div`,{className:`blocks-search__empty-shadow`,style:{display:ie===`empty`&&!se?`block`:`none`},children:Tt?(0,C.jsx)(Ol,{}):(0,C.jsx)(El,{})}),(0,C.jsx)(`div`,{className:(0,E.default)(`email-pane__blocks-panel-results`,{"email-pane__blocks-panel-results_visible":en}),children:(0,C.jsx)(__,{parentEmailId:e?.parent_email,blocksTab:ie,search:se,reloadBlockScreens:ot,email:e,setIsShowAddAllBlocksModal:c})})]})]})}],rn=[{disabled:$e,key:i.si,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`},className:`em-analytics__email-tab-properties`,children:(0,C.jsx)(C.Fragment,{children:(!!Me?.type||!!Ne?.type||!!Ne?.content||!!Ne?.extraTabs?.length)&&(0,C.jsx)(`div`,{className:(0,E.default)(`email-pane__collapse-wrapper`,{"mobile-view":J,"mobile-properties":J&&G!==`Structure`}),onMouseLeave:Zt,children:(0,C.jsx)($p,{email:e,formSettings:Ne,onClosePanel:Ke})})})},{disabled:$e,key:i.Kr,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`},className:`em-analytics__email-tab-history`,children:yt&&(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,onMouseLeave:Zt,children:(0,C.jsx)(S_,{setCollapsedHistory:()=>w(i.Tn(!0)),emailElement:yt})})},{key:i.Nr,className:`em-analytics__email-tab-properties`},{disabled:$e,label:(0,C.jsx)(p.K,{placement:`left`,title:f(`Build`,`tab`),children:(0,C.jsx)(m.d,{"data-testid":`contentIcon`,icon:`PlusCircleOutlined`,size:24,strokeWidth:D.iconStrokeWidth})}),key:i.Dr,className:`em-analytics__email-tab-build`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(`div`,{className:(0,E.default)(`email-pane__collapse-wrapper`,{"email-pane__collapse-wrapper_no-topleft-radius":N===`Build`||!N,"email-pane__collapse-wrapper_build":mt===`Blocks`&&en}),onMouseLeave:Zt,children:(0,C.jsx)(p.$,{className:(0,E.default)(`secondary-tabs email-pane__collapse`,{"secondary-tabs_unset_scroll":mt===i.Tr}),size:`large`,activeKey:mt,onChange:Kt,items:nn})})},{disabled:$e,label:(0,C.jsx)(p.K,{styles:{body:{border:`2px dot-dash red`}},placement:`left`,title:f(`Styles`,`tab`),children:(0,C.jsx)(m.d,{"data-testid":`stylesIcon`,icon:`Styles`,size:24,strokeWidth:D.iconStrokeWidth})}),key:i.pi,className:`em-analytics__email-tab-styles`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,children:(0,C.jsx)(g_,{email:e})})}];D.commentsEnabled&&rn.push({disabled:$e,label:(0,C.jsxs)(p.K,{placement:`left`,title:f(`Discuss`,`tab`),children:[(0,C.jsx)(m.d,{"data-testid":`commentsIcon`,icon:`CommentOutlined`,size:24,strokeWidth:D.iconStrokeWidth}),Oe&&(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:D.iconStrokeWidth,className:`free-mode-firewall-icon free-mode-firewall-icon_emailpane`}),!!Dt.length&&(0,C.jsx)(`span`,{className:`email-pane__comment-counter`,children:Dt.filter(e=>e.comment_status!==`deleted`).length})]}),key:`Discuss`,className:`email-pane__tab-discuss em-analytics__email-tab-discuss`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,children:(0,C.jsx)(p.$,{className:`secondary-tabs email-settings__collapse discuss-wrapper`,size:`large`,activeKey:`Discuss`,items:[{label:(0,C.jsx)(C.Fragment,{children:d(`Discuss`)}),key:`Discuss`,forceRender:!0,className:`email-settings__collapse-panel`,children:Ae?(0,C.jsx)(Pu,{email:e,comments:Dt,subjectId:Ae,isLoggedIn:!0,emailElementType:je}):(0,C.jsx)(`div`,{className:`aside-content-wrapper`,children:e.hasOwnProperty(`type`)?(0,C.jsx)(p.Q,{description:d(`Save the block before commenting.`),type:`info`,showIcon:!0,style:{marginBottom:20}}):(0,C.jsx)(p.Q,{description:d(`Save the email before commenting.`),type:`info`,showIcon:!0,style:{marginBottom:20}})})}]})})});let an=()=>{K({entity_id:Ae}).then(e=>{e.error?k.error({message:e.error.data.code,description:e.error.data.message}):e.data.success&&k.success({message:d(`Success`),description:e.data.success}),ut(),fe(!1)})},on=()=>{fe(!1)};D.aiAssistentEnabled&&rn.push({disabled:$e,label:(0,C.jsxs)(p.K,{placement:`left`,title:f(`AI assistant`,`tab`),children:[(0,C.jsx)(m.d,{"data-testid":`aiAssistentIcon`,icon:`AI`,size:24,strokeWidth:D.iconStrokeWidth}),Oe&&(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:D.iconStrokeWidth,className:`free-mode-firewall-icon free-mode-firewall-icon_emailpane`}),lt?.totalCount>0&&Ae&&(0,C.jsx)(`span`,{className:`email-pane__comment-counter`,children:lt?.totalCount})]}),key:`AiChat`,className:`email-pane__tab-discuss em-analytics__email-tab-discuss`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,children:(0,C.jsx)(p.$,{className:`secondary-tabs email-settings__collapse discuss-ai-wrapper`,size:`large`,activeKey:`AiChat`,tabBarExtraContent:(0,C.jsx)(p.K,{placement:`top`,title:d(`Clear chat`),children:(0,C.jsx)(p.X,{description:d(`Clear chat history?`),onConfirm:an,okText:d(`Yes`),cancelText:d(`No`),icon:``,placement:`leftTop`,title:!1,children:(0,C.jsx)(p.Rt,{type:`text`,icon:(0,C.jsx)(m.d,{icon:`ClearChat`,style:{fontSize:16}}),style:{marginRight:16}})})}),items:[{label:(0,C.jsx)(C.Fragment,{children:d(`AI assistant`)}),key:`AiChat`,forceRender:!0,className:`email-settings__collapse-panel`,children:Ae||window.localStorage.getItem(i.Yr.em_active_tab)?(0,C.jsx)(h_,{messages:ft.length>0?ft:[{data:{role:`assistant`,message:d(`Typing...`),isLoading:!0}}],newEmailAiGeneratorRef:He}):(0,C.jsx)(`div`,{className:`aside-content-wrapper`,children:e.hasOwnProperty(`type`)?(0,C.jsx)(p.Q,{description:d(`Save the block before commenting.`),type:`info`,showIcon:!0,style:{marginBottom:20}}):(0,C.jsx)(p.Q,{description:d(`Save the email before commenting.`),type:`info`,showIcon:!0,style:{marginBottom:20}})})}]})})})}),D.optimizeEnabled&&rn.push({disabled:$e,label:(0,C.jsxs)(p.K,{styles:{body:{border:`2px dot-dash red`}},placement:`left`,title:f(`Optimize`,`tab`),children:[(0,C.jsx)(m.d,{"data-testid":`optimizeIcon`,icon:`Speed`,size:24,strokeWidth:D.iconStrokeWidth}),Oe&&(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:D.iconStrokeWidth,className:`free-mode-firewall-icon free-mode-firewall-icon_emailpane`})]}),key:`Optimise`,className:`em-analytics__email-tab-optimise`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,children:(0,C.jsx)(p.$,{className:`secondary-tabs secondary-tabs_optimise email-settings__collapse optimise-wrapper`,size:`large`,activeKey:`Optimise`,items:[{label:(0,C.jsx)(C.Fragment,{children:d(`Optimize`)}),key:`Optimise`,forceRender:!0,className:`email-settings__collapse-panel`,children:(0,C.jsx)(Hg,{})}]})})}),D.settingsEnabled&&rn.push({disabled:$e,label:(0,C.jsx)(p.K,{placement:`left`,title:f(`Settings`,`tab`),children:(0,C.jsx)(`span`,{children:(0,C.jsx)(m.d,{"data-testid":`settingsIcon`,icon:`SettingOutlined`,size:24,strokeWidth:D.iconStrokeWidth})})}),key:`Edit`,className:`em-analytics__email-tab-edit`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,children:(0,C.jsx)(x_,{email:e})})});let[sn,cn]=(0,v.useState)([]),[ln,un]=(0,v.useState)(!1),[dn,fn]=(0,v.useState)(0),[pn,mn]=(0,v.useState)(0),hn=xe.querySelector(`.email-pane__col_preview`)?.getBoundingClientRect().width-(D.sidePanelFloating?0:38),[gn,_n]=(0,v.useState)(null);(0,v.useEffect)(()=>{Ae&&Ot(Ae)},[Ae,Ot]),(0,v.useEffect)(()=>{let e=h.onInit(()=>{h.send({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1}),h.send({operation:i.Wr.SANDBOX_LOCK_DISCUSS,value:ln})});return()=>e.dispose()},[ln,h]),(0,v.useEffect)(()=>{if(sn.length<2){let t=ne?.getBoundingClientRect(),n=setInterval(e,50);cn(e=>[...e,n]);function e(){h.isInited()&&t&&(vt(),clearInterval(n))}}return clearInterval(sn[sn.length-1])},[sn,ne,vt,h]);let vn=(0,v.useCallback)((e=R)=>{h.send({operation:i.Wr.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:e+2}}),Ie.current?.resize()},[R,h]);(0,v.useEffect)(()=>{if(un(N===i.Pr),N!==`Disabled_tab`){let e=xe.querySelector(`.email-pane__row`)?.getBoundingClientRect().width;Le?.current?.getBoundingClientRect().width+540>e&&w(i.vn(`100%`))}},[w,N,xe]);let yn=(0,v.useCallback)(()=>{let e=Le.current;e&&(e.style.borderWidth=`1px`,D.sidePanelFloating||(e.style.marginLeft=`-1px`,e.style.marginRight=`-1px`),e.style.borderLeftColor=null,e.style.borderRightColor=null)},[D.sidePanelFloating]),bn=(0,v.useCallback)(e=>{let t=Yt.current;wn(!1),gn&&(setTimeout(()=>vn(),50),_n(null)),e.target.classList.contains(`email-pane__handle`)||yn(),window.localStorage.setItem(i.Yr.em_code_mode_pane_sizes,JSON.stringify(t))},[vn,gn,yn]),xn=e=>t=>{t.target.classList.contains(`email-pane__handle`)&&(t.preventDefault(),fn(t.target.parentNode.offsetWidth),mn(t.pageX),_n(e),_t(e))},Sn=e=>{let t=Le.current;typeof e==`string`&&(!gn||gn===e)?(xe.querySelector(`.email-pane__iframe`).style.width=`calc(100% + 1px)`,e===`right`?(t.style.borderRightColor=O.colorPrimary,t.style.borderRightWidth=`2px`):(t.style.borderLeftColor=O.colorPrimary,t.style.borderLeftWidth=`2px`,xe.querySelector(`.email-pane__iframe`).style.marginLeft=`-1px`)):gn||(yn(),xe.querySelector(`.email-pane__iframe`).style.width=`1px`,xe.querySelector(`.email-pane__iframe`).style.removeProperty(`margin-left`))},[Cn,wn]=(0,v.useState)(!1),Tn=()=>wn(!0),En=(0,v.useCallback)(e=>{if(!gn)return;let t=(e.pageX-pn)*2,n=dn+(gn===`left`?-t:t);if(n>318&&n<Math.min(hn,l)){let e=Math.min(n,l);w(i.vn(e)),typeof e==`number`&&e<=425?J||Y(!0):J&&Y(!1),Ie.current?.resize()}},[w,dn,pn,gn,hn,J,Y]),Dn=(0,v.useCallback)(e=>{if(Cn)if(H===`bottom`){let t=Be.current.getBoundingClientRect().height,n=Be.current.getBoundingClientRect().top,r=(e.clientY-n)/t*100;if(r<20||r>80)return;Jt(r),Gt()}else{let t=Be.current.getBoundingClientRect().width,n=Be.current.getBoundingClientRect().left,r=(e.clientX-n)/t*100,a=Le.current.getBoundingClientRect().width;if(D.desktopMobileSwitchPanel&&typeof a==`number`&&a<=425&&(w(i.vn(425)),J||Y(!0)),r<20||r>80)return;Jt(r)}},[Cn,H,Gt,J,w,D.desktopMobileSwitchPanel,Y]);(0,v.useEffect)(()=>{Gt()},[V,Gt]);let On=e=>{e?.stopPropagation?.();let t=te===`light`?i.Ar:i.qr;h.send({operation:i.Wr.SANDBOX_SWITCH_THEME,data:{theme:t}}),X(t)},kn=(e=`panel`)=>{let t=e===`panel`,n=te===i.Ar;return(0,C.jsx)(p.K,{title:d(n?`Light theme`:`Dark theme`),placement:t?`top`:`bottom`,children:(0,C.jsx)(p.Rt,{type:t?n?`primary`:`text`:`default`,icon:(0,C.jsx)(m.d,{icon:n?`LightMode`:`DarkMode`,size:t?18:16,strokeWidth:t?D.iconStrokeWidth:2}),shape:`circle`,size:t?void 0:`small`,onClick:On,className:`toggle_view theme_view email-pane__theme-toggle`,style:t?void 0:{left:4,top:4,zIndex:999,padding:0,position:`absolute`}})})},An=t=>{let n=typeof t==`number`?Math.min(t,l):t;w(i.vn(n)),setTimeout(()=>vn(n),700),typeof n==`number`&&n<=425?J||Y(!0):J&&Y(!1);let r=typeof n==`number`?n:n===`100%`?`full`:n,a=typeof n==`number`&&n<=425?`mobile`:`desktop`;A({event:`change`,action:`change_email_size`,email_id:e?.id||y||b,project_id:j?.id||x,width:r,view_type:a})};(0,v.useEffect)(()=>{let e=new i.Da;return e.addDisposable($d(xe,`mousedown`,Ct,!0)),e.addDisposable($d(xe,`click`,wt)),e.addDisposable($d(xe,`mouseup`,e=>bn(e,qt),!0)),()=>{e.dispose()}},[xe,wt,Ct,bn]),(0,v.useEffect)(()=>(window.addEventListener(`scroll`,Gt,!0),window.addEventListener(`mousemove`,En,!0),window.addEventListener(`mousemove`,Dn),window.addEventListener(`keydown`,bt),()=>{window.removeEventListener(`mousemove`,En,!0),window.removeEventListener(`mousemove`,Dn),window.removeEventListener(`scroll`,Gt,!0),window.removeEventListener(`keydown`,bt)}));let jn=t=>{let n=V?`visual`:`code`,r=!V;if(V?w(i.Cn()):typeof t==`string`?(w(i.wn(t)),!V&&w(i.Cn())):w(i.Cn()),r){let n=je===`block`?`block`:`email`,r=typeof t==`string`?t:H||`toggle`;A({event:`activate`,action:`activate_code_mode`,entity_type:n,entity_id:e?.id||y||b,project_id:j?.id||x,code_mode_direction:r})}A({event:`change`,action:`change_editor_mode`,editor_mode:n,entity_id:e?.id||y||b,project_id:j?.id||x}),w(i.nn()),setTimeout(()=>{w(je===`block`?u._({type:null}):u.L({type:null}))},300),h.send({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET}),w(u.n())},[Mn,Nn]=(0,v.useState)(D.emailPaneDesktopSize||R);(0,v.useEffect)(()=>{D.emailPaneDesktopSize&&w(i.vn(D.emailPaneDesktopSize))},[w,D.emailPaneDesktopSize]),(0,v.useEffect)(()=>{Nn(V&&H!==`bottom`&&!J&&D.desktopMobileSwitchPanel?`100%`:R)},[w,D.emailPaneDesktopSize,V,H,J,D.desktopMobileSwitchPanel,R]);let Pn=()=>{ht(i.Tr),It(`project`)};return(0,v.useEffect)(()=>{s&&Pn()},[s]),(0,C.jsxs)(p.G,{className:(0,E.default)(`email-pane`,{"email-pane_code-mode":V,"email-pane_only_code_mode_mobile":D.onlyCodeModeInMobile,"email-pane_code-mode-bottom":V&&H===`bottom`,"email-pane_no-element-navigation":!D.switchDesktopMobilePropsEnabled&&!D.stepToOtherElementEnabled&&!D.deleteButtonEnabled,"email-pane_is-mobile":J,"email-pane_path-enabled":D.pathEnabled}),children:[(0,C.jsxs)(m_,{className:`email-pane__container`,ref:ze,children:[(Me?.type===i.zr.TEXT||Me?.type===i.zr.LINK||Me.type===i.zr.IMG||Me.type===i.zr.BUTTON)&&V&&H!==`bottom`&&(0,C.jsx)(Yp,{className:(0,E.default)(`selected-element-panel__content selected-element-panel__content_abs`,{"selected-element-panel__hidden":Me.type===i.zr.IMG}),emailElementType:je,formSettings:Ne}),he&&J&&(0,C.jsx)(p.Q,{message:d(`Template is not mobile-friendly`),description:d(`While editing, some elements of the email no longer fit the screen of the mobile device. Check that these elements are set to a smaller width for mobile devices.`),type:`warning`,className:`email-pane__col__alert`,closable:!0}),_e&&i.ii.isPlugin&&D.templateNotEmAlertShow&&(0,C.jsx)(p.Q,{message:d(`Template from another editor`),description:d(`This template was created in another editor. Rebuild it from our components to get stable rendering, error-free editing, and full design control.`),type:`warning`,className:`email-pane__col__alert`,closable:!0}),(0,C.jsxs)(p.At,{ref:Be,className:(0,E.default)(`email-pane__row`,{"email-pane__left":V&&H===`right`,"email-pane__right":V&&H===`left`,"email-pane__bottom":V&&H===`bottom`,"email-pane__sizeSwitcher":D.desktopMobileSwitchPanel,"email-pane__reverse":D.menuDirection===`left`,"email-pane__pinch":!D.sidePanelFloating}),children:[(0,C.jsxs)(p.kt,{style:{flexGrow:1,overflowY:D.sidePanelFloating?`scroll`:`hidden`,overflowX:`hidden`,height:V&&H===`bottom`?`calc(${qt}%)`:`100%`,width:`${H===`left`?100-qt:H===`bottom`?100:qt}%`},id:`pane-content-wrapper`,ref:D.sidePanelFloating?Re:null,children:[(0,C.jsx)(`div`,{className:`email-pane__iframe-scroll-top`,id:`iframe-scroll-top`}),D.desktopMobileSwitchPanel&&(0,C.jsxs)(p.xt,{className:`email-pane__sizes-panel-wrapper`,direction:`vertical`,size:10,children:[(0,C.jsxs)(p.xt,{className:`email-pane__sizes-panel`,size:0,children:[kn(`panel`),(0,C.jsx)(p.K,{title:d(`Desktop view`),placement:`top`,open:qe,children:(0,C.jsx)(p.Rt,{type:J?`text`:`primary`,icon:(0,C.jsx)(m.d,{icon:`DesktopOutlined`,size:18,strokeWidth:D.iconStrokeWidth}),shape:`circle`,onClick:()=>An(D.emailPaneDesktopSize||1e3),className:`toggle_view desktop_view`})}),(0,C.jsx)(p.K,{title:d(`Mobile view`),placement:`top`,open:Ye,children:(0,C.jsx)(p.Rt,{type:J?`primary`:`text`,icon:(0,C.jsx)(m.d,{icon:`MobileOutlined`,size:18,strokeWidth:D.iconStrokeWidth}),shape:`circle`,onClick:()=>An(425),className:`toggle_view mobile_view`})})]}),D.codeSideEnabled&&(0,C.jsx)(p.K,{title:d(`Code mode`),placement:`right`,children:(0,C.jsx)(p.Rt,{type:V?`primary`:`default`,icon:(0,C.jsx)(m.d,{icon:`Code`}),shape:`circle`,onClick:()=>jn(`right`)})})]}),(0,C.jsxs)(p.At,{className:(0,E.default)(`email-pane__col-wrapper`,{container:V&&H===`bottom`||!V,"email-pane__col-wrapper_reverse":D.menuDirection===`left`,"email-pane__col-wrapper_pinch":!D.sidePanelFloating}),style:{flexGrow:1,maxWidth:`unset`,paddingTop:D.desktopMobileSwitchPanel&&V&&H!==`bottom`?`60px`:``},children:[(0,C.jsxs)(p.kt,{className:`email-pane__col email-pane__col_preview`,style:{flexGrow:1,maxWidth:`unset`},ref:D.sidePanelFloating?null:Re,children:[D.desktopMobileSwitchRule&&(0,C.jsx)(`div`,{className:`email-pane__sizes ${kt}`,children:(0,C.jsxs)(`div`,{className:`email-pane__width-selectors-wrapper`,children:[(0,C.jsx)(`div`,{className:`device-width__theme`,children:kn(`rule`)}),(0,C.jsx)(`div`,{className:`device-width__full`,style:{flexGrow:1},onMouseEnter:()=>{At(`device-width__full-hovered`),Mt(d(`Desktop`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(1200)}),(0,C.jsx)(`div`,{className:`device-width__768`,style:{width:342/2},onMouseEnter:()=>{At(`device-width__768-hovered`),Mt(d(`Small desktop – 768px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(768)}),(0,C.jsx)(`div`,{className:`device-width__425`,style:{width:50/2},onMouseEnter:()=>{At(`device-width__425-hovered`),Mt(d(`Mobile L – 425px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(425)}),(0,C.jsx)(`div`,{className:`device-width__375`,style:{width:56/2},onMouseEnter:()=>{At(`device-width__375-hovered`),Mt(d(`Mobile M – 375px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(375)}),(0,C.jsx)(`div`,{className:`device-width__320`,style:{width:320},onMouseEnter:()=>{At(`device-width__320-hovered`),Mt(d(`Mobile S – 320px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(320),children:jt}),(0,C.jsx)(`div`,{className:`device-width__375`,style:{width:56/2},onMouseEnter:()=>{At(`device-width__375-hovered`),Mt(d(`Mobile M – 375px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(375)}),(0,C.jsx)(`div`,{className:`device-width__425`,style:{width:50/2},onMouseEnter:()=>{At(`device-width__425-hovered`),Mt(d(`Mobile L – 425px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(425),children:(0,C.jsx)(p.K,{title:d(`Mobile view`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`default`,icon:(0,C.jsx)(m.d,{icon:`MobileOutlined`,size:16,strokeWidth:2}),size:`small`,shape:`circle`,style:{right:-12,top:4,zIndex:999,padding:0,position:`absolute`,onClick:()=>An(425)}})})}),(0,C.jsx)(`div`,{className:`device-width__768`,style:{width:342/2},onMouseEnter:()=>{At(`device-width__768-hovered`),Mt(d(`Small desktop – 768px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(768),children:(0,C.jsx)(p.K,{title:d(`Desktop view`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`default`,icon:(0,C.jsx)(m.d,{icon:`DesktopOutlined`,size:16,strokeWidth:2}),size:`small`,shape:`circle`,style:{right:-12,top:4,zIndex:999,padding:0,position:`absolute`,onClick:()=>An(768)}})})}),(0,C.jsx)(`div`,{className:`device-width__full`,style:{flexGrow:1},onMouseEnter:()=>{At(`device-width__full-hovered`),Mt(d(`Desktop`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(1200)})]})}),(0,C.jsxs)(`div`,{className:(0,E.default)(`email-pane__resizable`,{"email-pane__resizable_drag":gn||Cn}),style:{maxWidth:typeof Mn==`number`?Math.min(Mn,l):l},children:[(0,C.jsx)(`div`,{className:`email-pane__handle left`,onMouseDown:xn(`left`),onMouseEnter:()=>Sn(`left`),onMouseLeave:Sn}),(0,C.jsx)(`div`,{className:`email-pane__handle right`,onMouseDown:xn(`right`),onMouseEnter:()=>Sn(`right`),onMouseLeave:Sn}),(0,C.jsx)(`div`,{className:(0,E.default)(`email-pane__content-col email-pane__content-col_main`,{"email-pane__content-col_disable":gn||Cn}),ref:Le,id:`pane-content-iframe`,children:(0,C.jsx)(y_,{ref:Ie,className:`email-pane__iframe`,email:e,handlerSendPosition:Gt})})]})]}),(0,C.jsx)(p.kt,{style:{display:V&&H!==`bottom`||D.disableSideMenu?`none`:`initial`},ref:Ht,className:(0,E.default)(`email-pane__content-col email-pane__content-col_menu email-pane__content-col_tabs email-pane__col email-pane__col_settings`,{"email-pane__col_disabled":N===i.Nr}),children:(!V||H===`bottom`)&&(0,C.jsx)(p.$,{className:(0,E.default)(`email-pane__col_settings-inner`,{"email-pane__col_settings-inner_reverse":D.menuDirection===`left`}),size:`middle`,activeKey:N,onTabClick:Vt,renderTabBar:p_,tabPosition:`right`,items:rn,tabBarExtraContent:ke&&(0,C.jsx)(`div`,{style:{paddingTop:15,textAlign:`center`},children:F||P.id?.toString()!==j?.members?.owner.ID?(0,C.jsx)(p.bt,{variant:`editorMode`,checkedChildren:`Pro`,unCheckedChildren:`Pro`,onChange:Rt,defaultChecked:at}):(0,C.jsx)(p.bt,{variant:`editorMode`,checkedChildren:`Pro`,unCheckedChildren:`Pro`,onChange:Rt,checked:rt})})})})]}),(0,C.jsx)(`div`,{className:`email-pane__iframe-scroll-bottom`,id:`iframe-scroll-bottom`})]}),(0,C.jsxs)(p.kt,{style:{width:`${H===`right`?100-qt:H===`bottom`?100:qt}%`,position:`relative`,height:H===`bottom`?`calc(${100-qt}%)`:`unset`,display:V?`initial`:`none`},children:[(0,C.jsx)(`div`,{className:`email-pane__code-divider`,onMouseDown:Tn}),(0,C.jsx)(`div`,{className:`code-mode__pane code-mode__pane_editor email-pane__pane email-pane__pane_editor`,children:(0,C.jsx)(`div`,{className:`code-mode__pane-content email-pane__pane-content`,children:(0,C.jsx)(v_,{email:e,setOtherUsers:me,readOnly:D.lockEditor,newEmailAiGeneratorRef:He})})})]})]}),D.pathEnabled&&(0,C.jsxs)(`div`,{className:`email-pane__paths`,children:[(0,C.jsx)(_g,{elementPath:le}),(0,C.jsx)(p.K,{placement:`left`,title:d(De?`The code size exceeds the recommended value 90kB`:`Code size`),children:(0,C.jsx)(`span`,{className:(0,E.default)(`email-pane__code-size`,{"email-pane__code-size_exceeded":De}),children:Ee})})]}),(0,C.jsx)(`div`,{className:`collaborator-list`,children:(0,C.jsx)(_.t,{users:pe,isEditor:i.kr.isEditor,isPlugin:i.ii.isPlugin,token:O})})]}),Ne?.type===`img`&&V&&H!==`bottom`&&(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper email-pane__collapse-wrapper_disabled`,children:(0,C.jsx)($p,{email:e,formSettings:Ne,onClosePanel:Ke})}),(0,C.jsx)(qg,{}),(0,C.jsx)(m.p,{open:$e,onCancel:zt,initialSlide:tt}),(0,C.jsx)(p.Z,{title:d(`Warning`),open:de,onOk:an,onCancel:on,children:(0,C.jsx)(`p`,{children:d(`Clear chat history?`)})}),(0,C.jsx)(Ug,{open:ye,onClose:be})]})};C_.propTypes={};var w_=r.a(((e,t)=>{(function(){var e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return n.rotl(e,8)&16711935|n.rotl(e,24)&4278255360;for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(Math.random()*256));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<e.length*32;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((e[n]&15).toString(16));return t.join(``)},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(t){for(var n=[],r=0;r<t.length;r+=3)for(var i=t[r]<<16|t[r+1]<<8|t[r+2],a=0;a<4;a++)r*8+a*6<=t.length*8?n.push(e.charAt(i>>>6*(3-a)&63)):n.push(`=`);return n.join(``)},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,``);for(var n=[],r=0,i=0;r<t.length;i=++r%4)i!=0&&n.push((e.indexOf(t.charAt(r-1))&2**(-2*i+8)-1)<<i*2|e.indexOf(t.charAt(r))>>>6-i*2);return n}};t.exports=n})()})),T_=r.a(((e,t)=>{var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join(``)}}};t.exports=n})),E_=r.a(((e,t)=>{t.exports=function(e){return e!=null&&(n(e)||r(e)||!!e._isBuffer)};function n(e){return!!e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}function r(e){return typeof e.readFloatLE==`function`&&typeof e.slice==`function`&&n(e.slice(0,0))}})),D_=r.a(((e,t)=>{(function(){var e=w_(),n=T_().utf8,r=E_(),i=T_().bin,a=function(t,o){t.constructor==String?t=o&&o.encoding===`binary`?i.stringToBytes(t):n.stringToBytes(t):r(t)?t=Array.prototype.slice.call(t,0):!Array.isArray(t)&&t.constructor!==Uint8Array&&(t=t.toString());for(var s=e.bytesToWords(t),c=t.length*8,l=1732584193,u=-271733879,d=-1732584194,f=271733878,p=0;p<s.length;p++)s[p]=(s[p]<<8|s[p]>>>24)&16711935|(s[p]<<24|s[p]>>>8)&4278255360;s[c>>>5]|=128<<c%32,s[(c+64>>>9<<4)+14]=c;for(var m=a._ff,h=a._gg,g=a._hh,_=a._ii,p=0;p<s.length;p+=16){var v=l,y=u,b=d,x=f;l=m(l,u,d,f,s[p+0],7,-680876936),f=m(f,l,u,d,s[p+1],12,-389564586),d=m(d,f,l,u,s[p+2],17,606105819),u=m(u,d,f,l,s[p+3],22,-1044525330),l=m(l,u,d,f,s[p+4],7,-176418897),f=m(f,l,u,d,s[p+5],12,1200080426),d=m(d,f,l,u,s[p+6],17,-1473231341),u=m(u,d,f,l,s[p+7],22,-45705983),l=m(l,u,d,f,s[p+8],7,1770035416),f=m(f,l,u,d,s[p+9],12,-1958414417),d=m(d,f,l,u,s[p+10],17,-42063),u=m(u,d,f,l,s[p+11],22,-1990404162),l=m(l,u,d,f,s[p+12],7,1804603682),f=m(f,l,u,d,s[p+13],12,-40341101),d=m(d,f,l,u,s[p+14],17,-1502002290),u=m(u,d,f,l,s[p+15],22,1236535329),l=h(l,u,d,f,s[p+1],5,-165796510),f=h(f,l,u,d,s[p+6],9,-1069501632),d=h(d,f,l,u,s[p+11],14,643717713),u=h(u,d,f,l,s[p+0],20,-373897302),l=h(l,u,d,f,s[p+5],5,-701558691),f=h(f,l,u,d,s[p+10],9,38016083),d=h(d,f,l,u,s[p+15],14,-660478335),u=h(u,d,f,l,s[p+4],20,-405537848),l=h(l,u,d,f,s[p+9],5,568446438),f=h(f,l,u,d,s[p+14],9,-1019803690),d=h(d,f,l,u,s[p+3],14,-187363961),u=h(u,d,f,l,s[p+8],20,1163531501),l=h(l,u,d,f,s[p+13],5,-1444681467),f=h(f,l,u,d,s[p+2],9,-51403784),d=h(d,f,l,u,s[p+7],14,1735328473),u=h(u,d,f,l,s[p+12],20,-1926607734),l=g(l,u,d,f,s[p+5],4,-378558),f=g(f,l,u,d,s[p+8],11,-2022574463),d=g(d,f,l,u,s[p+11],16,1839030562),u=g(u,d,f,l,s[p+14],23,-35309556),l=g(l,u,d,f,s[p+1],4,-1530992060),f=g(f,l,u,d,s[p+4],11,1272893353),d=g(d,f,l,u,s[p+7],16,-155497632),u=g(u,d,f,l,s[p+10],23,-1094730640),l=g(l,u,d,f,s[p+13],4,681279174),f=g(f,l,u,d,s[p+0],11,-358537222),d=g(d,f,l,u,s[p+3],16,-722521979),u=g(u,d,f,l,s[p+6],23,76029189),l=g(l,u,d,f,s[p+9],4,-640364487),f=g(f,l,u,d,s[p+12],11,-421815835),d=g(d,f,l,u,s[p+15],16,530742520),u=g(u,d,f,l,s[p+2],23,-995338651),l=_(l,u,d,f,s[p+0],6,-198630844),f=_(f,l,u,d,s[p+7],10,1126891415),d=_(d,f,l,u,s[p+14],15,-1416354905),u=_(u,d,f,l,s[p+5],21,-57434055),l=_(l,u,d,f,s[p+12],6,1700485571),f=_(f,l,u,d,s[p+3],10,-1894986606),d=_(d,f,l,u,s[p+10],15,-1051523),u=_(u,d,f,l,s[p+1],21,-2054922799),l=_(l,u,d,f,s[p+8],6,1873313359),f=_(f,l,u,d,s[p+15],10,-30611744),d=_(d,f,l,u,s[p+6],15,-1560198380),u=_(u,d,f,l,s[p+13],21,1309151649),l=_(l,u,d,f,s[p+4],6,-145523070),f=_(f,l,u,d,s[p+11],10,-1120210379),d=_(d,f,l,u,s[p+2],15,718787259),u=_(u,d,f,l,s[p+9],21,-343485551),l=l+v>>>0,u=u+y>>>0,d=d+b>>>0,f=f+x>>>0}return e.endian([l,u,d,f])};a._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},a._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},a._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},a._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+t},a._blocksize=16,a._digestsize=16,t.exports=function(t,n){if(t==null)throw Error(`Illegal argument `+t);var r=e.wordsToBytes(a(t,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):e.bytesToHex(r)}})()})),O_=r.l(D_()),k_=e=>e.replace(/[\\]/g,`\\\\`).replace(/["]/g,`\\"`).replace(/[/]/g,`\\/`).replace(/[\b]/g,`\\b`).replace(/[\f]/g,`\\f`).replace(/[\n]/g,`\\n`).replace(/[\r]/g,`\\r`).replace(/[\t]/g,`\\t`),A_=({isModalVisible:e=!1,email:t=null})=>{let{__:n}=p.v(),[r]=p.It.useForm(),s=i.lr(),{emailId:c}=(0,S.useParams)(),l=p.i(),u=i.cr(i.n),d=i.cr(i.V),[f,h]=a.Dn(),{token:g}=p.Vt(),y=i.ur(),[b,x]=(0,v.useState)(!1);i.Wt();let w=t.project,[T,E]=i.pt(),{data:D}=i.ft.endpoints.getProject.select(+w)(y.getState()),{testEmails:O}=i.Wt(),[k,A]=(0,v.useState)([]),[j,M]=(0,v.useState)(!1),N=p.h(i.ea.ON_SEND_EMAIL_MODAL_ID);(0,v.useEffect)(()=>{i.ii.isPlugin&&e?N.fire(t).then(t=>{t.some(e=>e===!1)?s(o.t()):x(e)}):x(e)},[e,s,x,t,N]),(0,v.useEffect)(()=>{if(D&&!i.ii.isPlugin){let{owner:e,admins:t,users:n,invited_users:r}=D.members,a=[],o=localStorage.getItem(i.Yr.em_test_emails)?JSON.parse(localStorage.getItem(i.Yr.em_test_emails)):[];if(o.length&&o[w]&&o[w].map(({prevLSEmail:e})=>a.push(e)),r&&r.map(({invited_user_email:e})=>a.push(e)),n&&n.map(({user_email:e})=>a.push(e)),e&&a.push(e.user_email),t&&t.map(({user_email:e})=>a.push(e)),D.projects_test_emails){let e=D.projects_test_emails.map(({projects_test_email:e})=>e);a.push(...e)}let s=Array.from(new Set(a));a.length&&A(s.map(e=>({value:e})))}},[D,w]),(0,v.useEffect)(()=>{i.ii.isPlugin&&A(O.map(e=>({value:e})))},[O]),(0,v.useEffect)(()=>{let e=localStorage.getItem(i.Yr.em_test_emails);if(e&&b&&r.getFieldValue(`recipients`)?.length===0){let t=JSON.parse(e);t?.[w]&&r.setFieldsValue({recipients:t[w]})}},[w,b,r]),(0,v.useEffect)(()=>{r.setFieldsValue({subject:t.subject})},[r,t.subject]);let P=()=>{s(o.t()),r.resetFields()},F=_.l(),I=()=>{r.validateFields().then(()=>{f({user_id:u.id,project_id:w,email_id:c,subject:r.getFieldValue(`subject`),email:r.getFieldValue(`recipients`).join(`,`),html:k_(F?.getValue()||``)}).unwrap().catch(e=>{l.error({error:{data:{code:e?.data?.code,message:e?.data?.message}}})}),M(!0),pushToDataLayer({event:`submit`,action:`send_test_email`,entity_id:c,project_id:w,recipients_count:r.getFieldValue(`recipients`).length})}).catch(e=>{})},L=v.default.useRef(d);return L.current=d,(0,v.useEffect)(()=>{let e=L.current;if(h.isSuccess&&j){if(h.data?.status!==200&&!i.ii.isPlugin)l.error({error:{data:{code:h.data?.code,message:h.data?.message}}});else{let a=[...new Set([...k.map(e=>e.value),...r.getFieldValue(`recipients`)])].map(e=>({projects_test_email:e}));((e,t)=>{if(!e||!t)return e===t;if(e.length!==t.length)return!1;let n=e.map(e=>e.projects_test_email).sort(),r=t.map(e=>e.projects_test_email).sort();return n.every((e,t)=>e===r[t])})(a,e)||T({projectId:w,projects_test_emails:a});let o=localStorage.getItem(i.Yr.em_test_emails)?JSON.parse(localStorage.getItem(i.Yr.em_test_emails)):[],s=r.getFieldValue(`recipients`);localStorage.setItem(i.Yr.em_test_emails,JSON.stringify({...o,[w]:[...new Set(s)]})),l.success(n(`The email “`)+t.title+n(`” was successfully sent.`))}M(!1),r.resetFields(),s(o.t())}},[h,r,w,T,k,j,s,t.title,E,n]),(0,v.useEffect)(()=>{E.isError&&(l.error(E),M(!1),r.resetFields(),s(o.t()))},[s,E,r]),(0,v.useEffect)(()=>{r.setFieldsValue({subject:t.subject||t.title})},[t,r]),(0,C.jsx)(p.Z,{width:572,title:(0,C.jsxs)(`div`,{style:{paddingBottom:8},children:[(0,C.jsx)(m.d,{icon:`SendOutlined`,size:20,strokeWidth:2}),` `,n(`Send a test email`)]}),open:b,onCancel:P,footer:[(0,C.jsx)(p.Rt,{size:`large`,className:`em-analytics__email-send-test`,type:`primary`,htmlType:`submit`,form:`Send mail`,loading:E.isLoading,icon:(0,C.jsx)(m.d,{icon:`SendOutlined`,size:18,strokeWidth:2,className:`email-preview-menu__list-item-icon`}),onClick:I,disabled:h.isLoading,children:n(`Send`)},`submit`)],forceRender:!0,children:(0,C.jsxs)(p.It,{form:r,layout:`vertical`,name:`send_mail_form`,initialValues:{subject:t.subject||t.title,recipients:[]},autoComplete:`off`,children:[(0,C.jsx)(p.It.Item,{label:n(`Subject`),name:`subject`,rules:[{required:!1,message:n(`Please type subject`)}],children:(0,C.jsx)(p.jt,{size:`large`,placeholder:n(`Type subject`)})}),(0,C.jsx)(p.It.Item,{label:n(`Recipients`),name:`recipients`,tooltip:{title:n(`The test email will be sent to the specified addresses.`),icon:(0,C.jsx)(m.d,{icon:`InfoCircleOutlined`})},rules:[{required:!0,validator:(e,t)=>t.length>10?Promise.reject(Error(n(`A test email can be sent to a maximum of 10 addresses.`))):t.length===0?Promise.reject(Error(n(`Please type emails`))):t.every(e=>i.p.test(e.toLowerCase()))?Promise.resolve():Promise.reject(Error(n(`Please type correct emails`)))}],children:(0,C.jsx)(p.St,{size:`large`,mode:`tags`,placeholder:n(`Add up to 10 recipients`),tooltip:{title:`Tooltip with customize icon`,icon:(0,C.jsx)(m.d,{icon:`InfoCircleOutlined`})},options:k,tagRender:e=>{let{label:t,closable:n,onClose:r}=e;return(0,C.jsx)(p.it,{color:g.colorPrimary,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:n,onClose:r,style:{borderRadius:6},children:t})},getPopupContainer:()=>document.getElementById(`send_mail_form`)})})]})})};A_.propTypes={isModalVisible:b.default.bool,email:b.default.shape({html:b.default.string,subject:b.default.string})};var j_=e=>{let t=i.cr(i.n),[n,r]=(0,v.useState)({owner:!1,admin:!1}),a=(0,S.useOutletContext)(),{data:o}=i.ht(e,{skip:!e||!t.id||!a?.isUninitialized}),s=a?.data||o;return(0,v.useEffect)(()=>{if(s){let{owner:e,admins:n,users:i}=s.members,a=n&&n.map(e=>e.ID),o=i&&i.map(e=>e.ID);r({owner:e.ID?.toString()===t.id?.toString(),admin:a&&a.includes(t.id),user:o&&o.includes(t.id)})}},[s,t.id]),n},M_=m.s(`preview_exceeded`),N_=({emailElement:e,isCollaborationEditor:t})=>{let{__:n}=p.v(),r=i.lr(),s=i.et(),{emailId:c,blockId:l}=(0,S.useParams)(),d=i.cr(o.s),[f,h]=(0,v.useState)(!1),[g,y]=a.Tn(),b=(0,S.useNavigate)(),x=i.cr(i.n),[w]=i.Tt(c),[T]=i.Fn(l),[E]=o.h(),{owner:D}=j_(),O=_.l(),k=_.p(O),A=_.m(O),j=i.cr(i.dn),M=i.cr(i.cn),N=i.cr(i.an),{token:P}=p.Vt(),F=p.i(),I=i.Wt(),L=e.hasOwnProperty(`type`)?i.wr:i.Br,R=p.h(i.ea.ON_SHARE_ID),z=p.h(i.ea.ON_SHOW_PREVIEW_ID),[B,V]=(0,v.useState)(!1),[H,ee]=(0,v.useState)(0),[U,W]=(0,v.useState)(!1),[G,K]=(0,v.useState)(n(`—`)),q=i.cr(i.B),J=!i.cr(i.r)&&x.id?.toString()===q?.members?.owner.ID,Y=i.G(),te=c?`emailId`:`blockId`,X=e?.project,ne=t=>{let n=L===`block`?`block`:`email`;typeof t==`string`?(r(i.wn(t)),!M&&r(i.Cn())):r(i.Cn()),Y({event:`activate`,action:`activate_code_mode`,entity_type:n,entity_id:e?.id||c||l,project_id:e?.project||X}),setTimeout(()=>{r(L===`block`?u._({type:null}):u.L({type:null}))},300),s({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET}),J&&(V(!0),ee(1))},re=(0,v.useCallback)(async()=>{if(i.ii.isPlugin)return!0;let e=m.a(`preview`,(await E(`preview`)).data?.stats);return e?(K(e.previousLimit),W(!0),!1):!0},[E]),ie=async()=>{await re()&&(r(o.r(i.$r.SEND_TEST_EMAIL)),Y({event:`open`,action:`open_test_email_modal`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X}))},ae=()=>{k.undo()},oe=()=>{k.redo()},Z=async()=>{let t=(await R.fire({project:X,id:c})).find(e=>e===!1||typeof e==`string`);t!==!1&&navigator.clipboard.writeText(t||`https://app.emailmaker.ru/email/${c}/raw?key=${(0,O_.default)(`${X}${c}d41d8`)}`).then(()=>{F.success(n(`A shareable link to this page has been copied to the clipboard.`)),Y({event:`click`,action:`share_email`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X})})},se=async()=>{if(!f){if(!await re())return;g({email:c,subject:encodeURIComponent(`#`+e.project+` `+e.title).replaceAll(/%20/gi,`+`).replaceAll(/%0A/gi,`%0D%0A`),content:encodeURIComponent(O?.getValue()||``).replaceAll(/%20/gi,`+`).replaceAll(/%0A/gi,`%0D%0A`)}),h(!0),Y({event:`click`,action:`open_email_inbox_tests`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X})}},ce=(0,v.useCallback)(async()=>{await re()&&(K(n(`—`)),W(!0))},[n,re]);(0,v.useEffect)(()=>{y.isError&&(F.error(y),h(!1))},[y]),(0,v.useEffect)(()=>{if(y.isSuccess&&f){if(y.data?.status===401)F.error({message:y.data.code,description:y.data.message});else if(y.data){let e=document.createElement(`A`);e.setAttribute(`target`,`_blank`),e.setAttribute(`href`,y.data.message),e.click()}h(!1)}},[y,f,F]);let[le,ue]=(0,v.useState)(!1),de=()=>{s({operation:i.Wr.SANDBOX_LOCK_EDIT,data:j}),r(i.Tn(!j))},fe=c?w:T,pe=()=>{j?(ue(!0),fe({[te]:e?.id}).then(t=>{t.isSuccess?t.data.data.length===0&&!i.ii.isPlugin&&F.error({message:n(`No history records available.`)}):t.isError&&F.error(t),de(),r(i.hn(i.Kr)),ue(!1),Y({event:`open`,action:`open_version_control`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X}),J&&(V(!0),ee(4))})):(r(i.nn()),de())},me=()=>{j||(de(),r(i.nn())),M&&r(i.Cn()),V(!1)},he=[],ge=(0,v.useCallback)(async()=>{let t=await z.fire({project:X,id:c});t.find(e=>e===!1||typeof e==`string`)!==!1&&(window.open(t.find(e=>e)||`/email/${c}/raw?key=${(0,O_.default)(`${X}${c}d41d8`)}`),Y({event:`click`,action:`open_email_preview`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X}))},[z,X,c,Y,L,e,l]),_e=(0,v.useCallback)(async()=>{window.open(`/getemail/${c}?secret_hash=${(0,O_.default)(`${X}${c}${i.li}`)}&raw=true`),Y({event:`click`,action:`open_web_version`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X})},[X,c,Y,L,e,l]);I.previewModeEnabled&&he.push({key:`Preview_mode`,icon:(0,C.jsx)(m.d,{icon:`EyeOutlined`,size:18,strokeWidth:I.iconStrokeWidth}),label:n(`Preview mode`),onClick:ge}),I.livePreviewEnabled&&he.push({key:`Live_preview`,icon:f?(0,C.jsx)(m.d,{icon:`LoadingOutlined`,style:{fontSize:16}}):(0,C.jsx)(m.d,{icon:`CheckCircleVerified`,size:18,strokeWidth:I.iconStrokeWidth}),label:n(`Live preview`),onClick:x.id?.toString()===e.project_author?.toString()&&x?.subscription?.post_name===`community`&&D?ce:se}),I.webversionEnabled&&he.push({key:`Web version`,icon:(0,C.jsx)(m.d,{icon:`Web`,size:18,strokeWidth:I.iconStrokeWidth}),label:n(`Web version`),onClick:_e}),I.sharePreviewEnabled&&he.push({key:`Share`,icon:(0,C.jsx)(m.d,{icon:`ShareAltOutlined`,size:18,strokeWidth:I.iconStrokeWidth}),label:n(`Share`),onClick:Z,className:`em-analytics__email-share`});let ve=[{key:`Left_mode`,icon:(0,C.jsx)(m.d,{icon:`PanelLeft`,size:18,strokeWidth:I.iconStrokeWidth,style:{color:N===`left`&&M?P.colorPrimary:`inherit`}}),label:n(`Left Code panel`),onClick:()=>ne(`left`)},{key:`Right_mode`,icon:(0,C.jsx)(m.d,{icon:`PanelLeft`,size:18,strokeWidth:I.iconStrokeWidth,style:{transform:`rotate(180deg)`,color:N===`right`&&M?P.colorPrimary:`inherit`}}),label:n(`Right Code panel`),onClick:()=>ne(`right`)},{key:`Bottom_mode`,icon:(0,C.jsx)(m.d,{icon:`PanelLeft`,size:18,strokeWidth:I.iconStrokeWidth,style:{transform:`rotate(-90deg)`,color:N===`bottom`&&M?P.colorPrimary:`inherit`}}),label:n(`Bottom Code panel`),onClick:()=>ne(`bottom`)}];return(0,C.jsxs)(`div`,{className:`email-preview-menu email-preview-menu_new`,children:[(0,C.jsxs)(p.xt,{size:32,children:[(0,C.jsxs)(p.xt,{className:`email-preview-menu__versions`,size:8,style:{borderRadius:`calc(var(--borderRadius) * 1px`},children:[(0,C.jsx)(p.K,{title:n(t?_.r:`Undo (Ctrl+Z)`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`text`,icon:(0,C.jsx)(m.d,{icon:`UndoOutlined`,size:22,strokeWidth:I.iconStrokeWidth}),onClick:ae,disabled:!A.canUndo})}),(0,C.jsx)(p.K,{title:n(t?_.r:`Redo (Ctrl+Shift+Z)`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`text`,icon:(0,C.jsx)(m.d,{icon:`RedoOutlined`,size:22,strokeWidth:I.iconStrokeWidth}),onClick:oe,disabled:!A.canRedo})}),I.historyEnabled&&(0,C.jsx)(p.K,{title:n(`Version history`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:j?`text`:`primary`,ghost:!j,onClick:pe,disabled:e.isNew||le,className:`email-preview-menu__history`,icon:le?(0,C.jsx)(p.Y,{size:`small`}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(m.d,{icon:`HistoryOutlined`,size:22,strokeWidth:I.iconStrokeWidth,className:`email-preview-menu__list-item-icon email-preview-menu__list-item-icon_revert`}),J&&(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:I.iconStrokeWidth,className:`free-mode-firewall-icon`})]})})})]}),(0,C.jsxs)(p.xt,{size:8,style:{borderRadius:`calc(var(--borderRadius) * 1px`},children:[I.codeEnabled&&(0,C.jsx)(p.nt,{arrow:!0,placement:`bottom`,menu:{items:ve},trigger:`hover`,mouseEnterDelay:0,className:`email-preview-menu__code`,children:(0,C.jsx)(p.Rt,{type:M?`primary`:`text`,ghost:M,icon:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(m.d,{icon:`Code`,size:22,strokeWidth:I.iconStrokeWidth}),J&&(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:I.iconStrokeWidth,className:`free-mode-firewall-icon`})]}),onClick:ne})},`Code mode`),I.previewIconEnabled&&(J?(0,C.jsx)(p.K,{title:n(`Preview mode`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`text`,icon:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(m.d,{icon:`EyeOutlined`,size:22,strokeWidth:I.iconStrokeWidth,className:`email-preview-menu__list-item-icon`}),(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:I.iconStrokeWidth,className:`free-mode-firewall-icon`})]}),onClick:()=>{V(!0),ee(7)}})}):(0,C.jsx)(p.nt,{arrow:!0,placement:`bottom`,menu:{items:he},className:`email-preview-menu__preview`,children:(0,C.jsx)(p.Rt,{type:`text`,target:`_blank`,rel:`noreferrer`,icon:(0,C.jsx)(m.d,{icon:`EyeOutlined`,size:22,strokeWidth:I.iconStrokeWidth,className:`email-preview-menu__list-item-icon`}),onClick:I.previewModeEnabled?ge:void 0})},`Preview`)),I.sendTestEnabled&&(0,C.jsx)(p.K,{title:n(`Send a test email`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{className:`em-analytics__email-open-test email-preview-menu__test`,type:`text`,icon:(0,C.jsx)(m.d,{icon:`SendOutlined`,size:22,strokeWidth:I.iconStrokeWidth,className:`email-preview-menu__list-item-icon`}),onClick:ie})})]})]}),(0,C.jsx)(A_,{isModalVisible:d===i.$r.SEND_TEST_EMAIL,email:e}),(0,C.jsx)(m.p,{open:B,onCancel:me,initialSlide:H}),(0,C.jsx)(m.l,{open:U,onClose:()=>W(!1),title:n(M_.titleKey),subtitle:n(M_.subtitleKey),usageResource:M_.usageResource,previousDisplay:G,nextDisplay:m.c(`infinity`),onChangePlan:()=>{W(!1),document.body.classList.remove(`editor`),b(`/billing`),r(o.r(i.$r.SWITCH_TO_PLAN_MODAL))}})]})};N_.propTypes={};function P_({code:e,...t},n){let r=n.getState();return{...t,...e?{html:e}:{},renderGuid:i.Zn(),project:r.projectSlice?.project?.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function F_({html:e,renderGuid:t,...n},r){let{project:a,config:o}=r.getState().configSlice;return i.qn({...n,code:e,project:a===void 0?n.project:a,utm_parameters:o.UTMEnabled?n.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0})}var I_=r.a(((e,t)=>{r.i(),(function(t,n){typeof define==`function`&&define.amd?define([],n):e===void 0?(n(),t.FileSaver={exports:{}}.exports):n()})(e,function(){"use strict";function e(e,t){return t===void 0?t={autoBom:!1}:typeof t!=`object`&&(t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function n(e,t,n){var r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){c(r.response,t,n)},r.onerror=function(){},r.send()}function i(e){var t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{var t=document.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof r.r==`object`&&r.r.global===r.r?r.r:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||(typeof window!=`object`||window!==o?function(){}:`download`in HTMLAnchorElement.prototype&&!s?function(e,t,r){var s=o.URL||o.webkitURL,c=document.createElement(`a`);t=t||e.name||`download`,c.download=t,c.rel=`noopener`,typeof e==`string`?(c.href=e,c.origin===location.origin?a(c):i(c.href)?n(e,t,r):a(c,c.target=`_blank`)):(c.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){a(c)},0))}:`msSaveOrOpenBlob`in navigator?function(t,r,o){if(r=r||t.name||`download`,typeof t!=`string`)navigator.msSaveOrOpenBlob(e(t,o),r);else if(i(t))n(t,r,o);else{var s=document.createElement(`a`);s.href=t,s.target=`_blank`,setTimeout(function(){a(s)})}}:function(e,t,r,i){if(i||=open(``,`_blank`),i&&(i.document.title=i.document.body.innerText=`downloading...`),typeof e==`string`)return n(e,t,r);var a=e.type===`application/octet-stream`,c=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&c||s)&&typeof FileReader<`u`){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout(function(){d.revokeObjectURL(f)},4e4)}});o.saveAs=c.saveAs=c,t!==void 0&&(t.exports=c)})}))(),L_=`NEXT_BUTTON`,R_=`SAVE_BUTTON`,z_=`KEYBOARD`,B_=`EXTERNAL`,V_=(e,t,n,r,a=!0,o=.8,s,c)=>{window.location.host.indexOf(`localhost`);let l=`&cacheControl=true&cache-hash=${(0,O_.default)(String(r??c??n))}`;return`https://scr.emcdn.ru/screenshot?delay=1000&width=800${s?``:`&fullPage=true`}&deviceScaleFactor=${o}&format=jpg&clearCache=${a}${l}&url=${encodeURIComponent(`https://app.emailmaker.ru/get${e}/${n}?secret_hash=${(0,O_.default)(`${t}${n}${i.li}`)}&raw=true`)}${s?`&selector=${s}`:``}`},H_=(e,t,n=!0,r=.8,i,a)=>{let o=`https://racs.emcdn.ru/v3/file/${e}?resource=exportPngApi`;window.location.host.indexOf(`localhost`);let s=`&cacheControl=true&cache-hash=${(0,O_.default)(String(t??a??e))}`;return`https://scr.emcdn.ru/screenshot?delay=1000&width=800${i?``:`&fullPage=true`}&deviceScaleFactor=${r}&format=jpg&clearCache=${n}${s}&url=${encodeURIComponent(`${o}`,`${o}`)}${i?`&selector=${i}`:``}`},U_=({email:e=null,isEditableRights:t=null,autoSaveEmailResult:n,disabled:r})=>{let o=i.lr(),s=(0,S.useNavigate)(),{__:c,_x:l}=p.v(),{projectId:d,emailId:f}=(0,S.useParams)(),h=g.u(),y=p.i(),b=i.Wt(),x=_.l(),w=i.ur(),T=i.cr(u.D),E=i.cr(u.P),D=i.cr(i.n),[O,k]=(0,v.useState)(!1),[A,j]=(0,v.useState)(null);(0,v.useEffect)(()=>{window?.navigator?.userAgent.includes(`Macintosh`)&&j(!0)},[]);let{data:M,refetch:N}=i.ht(+d,{skip:!+d}),{data:P,refetch:F}=i.lt({parent:M?.folder?.[0]},{skip:!i.ii.isPlugin||!M?.folder?.[0]}),[I]=i.vt(),[L]=i.ot(),[R,z]=i.bt(),[B,V]=i._t(),[H]=i.pt(),[ee,U]=(0,v.useState)(!1),[W,G]=(0,v.useState)(``),K=`project_${d}`,q=M&&i.b(M,`emailtags`).find(e=>e.name===K),J=M&&i.x(M,`emailtags`),Y=p.h(i.ea.BEFORE_SAVE_EMAIL),te=i.G(),X=(0,v.useCallback)(n=>{if(!t&&e.lock&&W){y.error({id:`EMAIL_ACCESS_TO_LOCKED_ERROR`,data:p.r(e),message:c(`No access to edit the letter.`)});return}if((e?.tags?.length||e.emailtags?.length)>10&&W){y.error({id:`EMAIL_TOO_MANY_TAGS_ERROR`,data:p.r(e),message:c(`Maximum 10 tags available.`)});return}let r=async t=>{let r=Object.entries(T).flatMap(([e,t])=>t.map(({value:t,label:n})=>({id:+t,name:n,parent:+e.split(`_`)[0]}))),s=[];E.length&&E.forEach(e=>{s.push(...e?.children.map(e=>({id:e.id,parentId:e.parent})))});let l=e.tags?.map(e=>{let n=J?.find(t=>t.name===e);return n?n.id:I({name:e,parent:t}).then(({error:t,data:n})=>{if(t?.status===400)return t?.data?.data?.term_id;if(n)return n.id;t&&(y.fromError(`TAG_CREATING_ERROR`,e,t),U(!1))})})||[],u=r?.map(e=>{let t=s?.find(t=>t.id===e.id);return t?t.id:L({name:e.name,parent:e.parent}).then(({error:t,data:n})=>{if(t?.status===400)return t?.data?.data?.term_id;if(n)return n.id;t&&(y.fromError(`GROUP_CREATING_ERROR`,e,t),U(!1))})})||[],f=e.tags!==void 0,m=r?.length>0,g=(e,r=null,s=null,l=[])=>{let u=e.title?.trim()||e.subject?.trim()||c(`Untitled email.`),f=n=>{if(w.dispatch(i.at.endpoints.getTags.initiate({parent:t})),!i.ii.isPlugin&&N)try{N()}catch{}if(W&&(y.success({id:`EMAIL_SAVING_SUCCESS`,message:c(`The email was successfully saved.`),data:p.r(e)}),U(!1),!i.ii.isPlugin&&P&&F))try{F()}catch{}i.ii.isPlugin||fetch(V_(i.Br,d,n.id,n.modified),{mode:`no-cors`}).then(()=>{})},m=i.b(e,i.Vr).filter(t=>(r||e.emailtags).includes(t.id)).map(e=>e.name);if(!e.isNew)z.status!==`pending`&&R({emailId:e.id,source:n,title:u,...e.meta===void 0?{}:{meta:e.meta},project:e.project,preheader:e.preheader,subject:e.subject,utm_parameters:{utm_source:e.utm_parameters?.utm_source,utm_medium:e.utm_parameters?.utm_medium,utm_campaign:e.utm_parameters?.utm_campaign,utm_term:e.utm_parameters?.utm_term,utm_content:e.utm_parameters?.utm_content},description:e.description,html:x?.getValue()||``,common_styles:e.common_styles||``,emailtags:r||e.emailtags,tags:m,group:s||e.group,is_template:e.is_template||!1}).then(({error:t})=>{le.current=!1,t?(n===L_&&ue(!1),W&&y.fromError(`EMAIL_EDITING_ERROR`,p.r(e),t),U(!1)):f(e)});else if(V.status!==`pending`){let t=h.get(i.br.em_folder);B({title:u,source:n,...e.meta===void 0?{}:{meta:e.meta},project:e.project,subject:e.subject,preheader:e.preheader,description:e.description,utm_parameters:{utm_source:e.utm_parameters.utm_source,utm_medium:e.utm_parameters.utm_medium,utm_campaign:e.utm_parameters.utm_campaign,utm_term:e.utm_parameters.utm_term,utm_content:e.utm_parameters.utm_content},html:x?.getValue()||``,parent_email:e.parent_email||127017,common_styles:e.common_styles||``,emailtags:r?r.join(`,`):e.emailtags,tags:m,group:s||e.group,is_template:e.is_template||!1,is_inited:e.is_inited,renderGuid:e.renderGuid,folder:t!==`all`&&t}).then(({data:t,error:r})=>{le.current=!1,r?(n===L_&&ue(!1),W&&y.fromError(`EMAIL_CREATING_ERROR`,{title:e.title,code:x?.getValue()||``},r),U(!1)):(o(a.bt(null)),f(t),h.remove(i.br.em_folder))})}te({event:`save`,action:n?`save_email`:`auto_save_email`,email_id:e.id,project_id:d,subscription:D?.subscription?.post_title})},_={...e};Y.fire(_).finally(()=>{f||m?Promise.all(l).then(e=>{Promise.all(u).then(t=>{g(_,f?e:null,m?t:null,[])})}):g(_,null,null,[])})};U(!0),q?r(q.id):I({name:K}).then(async({data:t,error:n})=>{if(n)y.fromError(`FOLDER_CREATING_ERROR`,K,n),U(!1);else{let{data:n,error:i}=await H({projectId:d,emailtags:t.id});i?(y.fromError(`EMAIL_CLONING_ERROR`,p.r(e),i),U(!1)):n&&r(n.emailtags&&n.emailtags[0])}}).catch(e=>void 0)},[V.status,B,z.status,R,e,t,I,o,H,d,M,c,l,W,x,J,Y]);p.u(p.s,(0,v.useCallback)(e=>X(e||B_),[X]));let ne=p.h(i.ea.ON_NEXTBUTTON_CLICK_ID),re=p.h(i.ea.ON_SAVEBUTTON_CLICK_ID);(0,v.useEffect)(()=>{W&&(setTimeout(()=>X(W)),G(``))},[W]);let ie=(0,v.useCallback)(e=>{(e.ctrlKey||e.metaKey)&&e.keyCode===83&&(e.preventDefault(),G(z_))},[X]);(0,v.useEffect)(()=>(document.addEventListener(`keydown`,ie),()=>{document.removeEventListener(`keydown`,ie)}),[ie]),_.g((0,v.useCallback)(e=>{let t=e.data.operation,n=e.data.action;t===i.Wr.APPLICATION_ACTION&&n===`save_email`&&G(z_)},[X])),(0,v.useEffect)(()=>{e.isNew&&V.isSuccess&&(U(!0),o(i.gt.util.upsertQueryData(`getEmail`,V.data.id,{...V.data,...e.meta===void 0?{}:{meta:e.meta},lock:e.lock,isAmp:e.isAmp,subject:e.subject,preheader:e.preheader,description:e.description,html:x?.getValue()||``,project:e.project,tags:e.tags,utm_parameters:e.utm_parameters,parent_email:e.parent_email,common_styles:e.common_styles,renderGuid:e.renderGuid,is_inited:e.is_inited,isNew:!1})).then(()=>{s(`/projects/${V.data.project}/emails/${V.data.id}`),U(!1),W&&y.success({id:`EMAIL_SAVING_SUCCESS`,message:c(`The email was successfully saved.`),data:p.r(e)})}))},[s,o,V,e.isNew,c,l,W,x]);let ae=p.m(i.ea.ON_EMAIL_INIT_ID);(0,v.useEffect)(()=>{let e=0,t=ae(()=>{e=setTimeout(()=>k(!0),1e4)});return()=>{e&&clearTimeout(e),t.dispose()}},[k,ae]),(0,v.useEffect)(()=>{e.isNew&&!f&&O&&(X(),k(!1))},[O,e,X,f]);let oe=z.isLoading||H?.isLoading||V.isLoading||ee||n&&n.isLoading,Z=b.saveButtonEnabled&&(0,C.jsx)(p.K,{title:c(A?`Save by ⌘S`:`Save by Ctrl+S`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{disabled:r,type:b.nextButtonEnabled?`default`:`primary`,block:`false`,className:`em-analytics__email-save`,loading:oe,icon:(0,C.jsx)(m.d,{icon:`SaveOutlined`,size:16,strokeWidth:b.iconStrokeWidth}),onClick:async()=>{let t={...e,html:x.getValue()};try{await re.fire(t)!==!1&&G(R_)}catch(e){y.fromError(`SAVE_BUTTON_CLICK_EVENT_ERROR`,p.r(t),e,!0)}},children:b.saveButtonText||c(`Save`)})},`save-button`),se=b.disableDoubleClickNextButton!==!1,ce=b.activeNextButton===!1,le=(0,v.useRef)(!1),ue=e=>{o(i.It(!e))},de=b.nextButtonEnabled&&(0,C.jsx)(p.Rt,{disabled:r||ce,type:`primary`,block:`false`,className:`em-analytics__email-save`,icon:b.primaryCommandButtonIcon,loading:oe,onClick:async()=>{if(le.current)return;le.current=!0;let t={...e,html:x.getValue()};try{se&&ue(!0),(await ne.fire(t)).every(e=>e!==!1)?G(L_):(ue(!1),le.current=!1)}catch(e){y.fromError(`NEXT_BUTTON_CLICK_EVENT_ERROR`,p.r(t),e,!0),ue(!1),le.current=!1}},children:b.nextButtonText||c(`Continue`)},`next-button`);return(0,C.jsx)(C.Fragment,{children:b.saveButtonEnabled&&b.nextButtonEnabled?(0,C.jsx)(p.xt,{children:[Z,de]}):[Z,de]})};U_.propTypes={email:b.default.shape({id:b.default.string,isNew:b.default.bool,title:b.default.string,lock:b.default.bool,subject:b.default.string,html:b.default.string,description:b.default.string,utm_parameters:b.default.shape({utm_source:b.default.string,utm_medium:b.default.string,utm_campaign:b.default.string,utm_term:b.default.string,utm_content:b.default.string}),project:b.default.number,is_template:b.default.bool}),isEditableRights:b.default.bool};function W_(e){return String(e).replace(/"/g,`&quot;`)}function G_(e){let t=/<(table|tr|div)(\s[^>]*)>/gi,n;for(;(n=t.exec(e))!==null;){let e=n[2]??``;if(/\bem\s*=\s*["']block["']/i.test(e))return{full:n[0],index:n.index}}return null}function K_(e,t){if(!e?.trim()||!t)return e;let n=String(t);if(e.includes(`em-block-id="${n}"`)||e.includes(`em-block-id='${n}'`))return e;let r=G_(e);if(!r)return e;let{full:i,index:a}=r;if(/\bem-block-id\s*=/.test(i))return e;let o=i.replace(/>$/,` em-block-id="${W_(n)}">`);return e.slice(0,a)+o+e.slice(a+i.length)}var q_=(e,t,n,r)=>`https://scr.emcdn.ru/screenshot?delay=1000&width=800&fullPage=true&deviceScaleFactor=0.8&format=jpg&clearCache=true${r?`&cacheControl=true&cache-hash=${(0,O_.default)(r)}`:``}&url=${encodeURIComponent(`https://dev-backend-1.emailmaker.ru/get${e}/${n}?secret_hash=${(0,O_.default)(`${t}${n}${i.li}`)}&raw=true`)}`,J_=({block:e=null,isEditableRights:t,rightCol:n,autoSaveBlockResult:r,disabled:a})=>{let{__:o}=p.v(),{projectId:s,blockId:c}=(0,S.useParams)(),l=i.cr(u.f),d=i.cr(u.f),f=i.lr(),h=p.i(),g=_.l(),y=i.ur(),b=i.et(),[x,w]=(0,v.useState)(!1),[T,E]=(0,v.useState)(null),[D,O]=(0,v.useState)(!1),[k,A]=(0,v.useState)(!1),j=i.G();(0,v.useEffect)(()=>{window?.navigator?.userAgent.includes(`Macintosh`)&&E(!0)},[]);let{data:M,refetch:N}=i.ht(+s,{skip:!+s}),[P]=i.On(),[F,I]=i.An(),[L,R]=i.Dn(),[z]=i.pt(),B=`project_${s}`,V=M&&i.b(M,`blocktags`).find(e=>e.name===B),H=M&&i.x(M,`blocktags`),ee=(0,v.useCallback)(n=>{if(O(!0),!t&&e.lock&&k){h.error({id:`BLOCK_ACCESS_TO_LOCKED_ERROR`,message:o(`No access to edit the letter.`),data:p.n(e)}),O(!1);return}if((e.tags?.length||e.blocktags?.length)>10&&k){h.error({id:`BLOCK_TOO_MANY_TAGS_ERROR`,message:o(`Maximum 10 tags available.`),data:p.n(e)}),O(!1);return}if(e.type===``){h.error({message:o(`Set the type`),description:o(`Please set the 'Type' field in the Settings section.`)}),O(!1);return}let r=t=>{let r=e.tags?.map(e=>{let n=H?.find(t=>t.name===e);return n?n.id:P({name:e,parent:t}).then(({error:t,data:n})=>{if(t?.status===400)return t?.data?.data?.term_id;if(n)return n.id;t&&(h.fromError(`TAG_CREATING_ERROR`,e,t),O(!1))})}),a=(r=null)=>{let a=n=>{y.dispatch(i.at.endpoints.getTags.initiate({parent:t})),N(),n.global_block&&n.id&&b({operation:i.Wr.SANDBOX_EBLOCK_SET_EM_BLOCK_ID,settings:{emBlockId:String(n.id)}}),k&&(h.success({id:`BLOCK_EDITING_SUCCESS`,message:o(`The block was successfully saved.`,`block`),data:p.n(e)}),O(!1)),fetch(q_(i.wr,s,n.id,n.modified),{mode:`no-cors`}).then(()=>{})},c=i.b(e,i.Vr).filter(t=>(r||e.blocktags).includes(t.id)).map(e=>e.name);if(e.isNew)R.status!==`pending`&&L({source:n,title:e.title===null?o(`New block title`):e.title,project:e.project,type:e.type?e.type:`Other`,description:e.description,html:g?.getValue()||``,blocktags:r?r.join(`,`):e.blocktags,tags:c,...i.ii.isPlugin&&$r(e)?{meta:e.meta}:{}}).then(async({data:t,error:n})=>{if(n)h.fromError(`BLOCK_CREATING_ERROR`,{title:e.title,html:g?.getValue()||``},n),O(!1);else{let e=t,n=g?.getValue()||``;if(t?.global_block&&t?.id&&n){let r=K_(n,String(t.id));if(r!==n){let n=await F({blockId:t.id,html:r});!n.error&&n.data&&(e=n.data)}}a(e)}});else if(I.status!==`pending`){let t=g?.getValue()||``,o=e.global_block?K_(t,String(e.id)):t;F({blockId:e.id,source:n,title:e.title,project:e.project,type:e.type?e.type:`Other`,description:e.description,html:o,blocktags:r||e.blocktags,tags:c,...i.ii.isPlugin&&$r(e)?{meta:e.meta}:{}}).then(({data:t,error:n})=>{n&&k?(h.fromError(`BLOCK_EDITING_ERROR`,p.n(e),n),O(!1)):a(t)})}};r?Promise.all(r).then(e=>a(e)):a(null)};O(!0),V?r(V.id):P({name:B}).then(async({data:t,error:n})=>{if(n)h.fromError(`FOLDER_CREATING_ERROR`,B,n),O(!1);else{let{data:n,error:i}=await z({projectId:s,blocktags:t.id});i?(h.fromError(`BLOCK_CLONING_ERROR`,p.n(e),i),O(!1)):n&&r(n.blocktags&&n.blocktags[0])}}).catch(e=>void 0)},[R.status,L,I.status,F,e,t,P,z,s,o,k,g,h,H,N,y,V,B,b]);(0,v.useEffect)(()=>{k&&(ee(),A(!1))},[k,ee]);let U=(0,v.useCallback)(e=>{(e.ctrlKey||e.metaKey)&&e.keyCode===83&&(e.preventDefault(),A(!0))},[]);return(0,v.useEffect)(()=>(document.addEventListener(`keydown`,U),()=>{document.removeEventListener(`keydown`,U)}),[U]),_.g((0,v.useCallback)(e=>{let t=e.data.operation,n=e.data.action;t===i.Wr.APPLICATION_ACTION&&n===`save_email`&&A(!0)},[])),(0,v.useEffect)(()=>{R.isError&&(O(!1),h.error(R))},[f,R]),(0,v.useEffect)(()=>{let e=setTimeout(()=>{w(!0)},1e4);return()=>{clearTimeout(e)}},[]),(0,v.useEffect)(()=>{e.isNew&&!c&&x&&(ee(),w(!1))},[x,e,ee,c]),(0,C.jsx)(p.K,{title:o(T?`Save by ⌘S`:`Save by Ctrl+S`),placement:n?`right`:`bottomRight`,children:(0,C.jsx)(p.Rt,{type:`primary`,block:n,className:`em-analytics__block-save`,icon:(0,C.jsx)(m.d,{icon:`SaveOutlined`}),onClick:()=>{j({event:`click`,action:`save_block`}),A(!0)},loading:I.isLoading||z.isLoading||R.isLoading||D||r,children:n||l||d?``:o(`Save`)})})};J_.propTypes={block:b.default.shape({id:b.default.string,isNew:b.default.bool,lock:b.default.bool,type:b.default.string,html:b.default.string,description:b.default.string,project:b.default.number,title:b.default.string}),isEditableRights:b.default.bool.isRequired};var Y_=({element:e,context:t=`list`})=>{let{__:n,_x:r}=p.v(),[a]=i.bt(),[o]=i.An(),s=p.i(),c=i.G();e.hasOwnProperty(`type`);let l=(e,t)=>{if(e.error)return s.error(e),!1;s.success(n(`The `)+(t.hasOwnProperty(`type`)?n(`block`):r(`email`,`letter`))+` `+n(`“`)+e.data.title+n(`”`)+n(`was successfully`)+` `+(t.lock?t.hasOwnProperty(`type`)?r(`unlocked.`,`block`):r(`unlocked.`,`email`):t.hasOwnProperty(`type`)?r(`locked.`,`block`):r(`locked.`,`email`)))};return(0,C.jsx)(`div`,{className:e.hasOwnProperty(`type`)?`em-analytics__block-lock`:`em-analytics__email-lock`,onClick:()=>{let n=!e.lock,r=n?`lock_email`:`unlock_email`;e.hasOwnProperty(`type`)?o({blockId:e.id,lock:n}).then(r=>{l(r,e),r.error||c({event:n?`lock`:`unlock`,action:n?`lock_block`:`unlock_block`,entity_type:`block`,entity_id:e.id,project_id:e.project,context:t})}):a({emailId:e.id,lock:n}).then(i=>{l(i,e),i.error||c({event:n?`lock`:`unlock`,action:r,entity_type:`email`,entity_id:e.id,project_id:e.project,context:t})})},children:e.lock?n(`Unlock`):n(`Lock`)})};Y_.propTypes={element:b.default.shape({lock:b.default.bool,id:b.default.string})},Y_.defaultProps={element:b.default.shape({lock:null,id:null})};var X_=({open:e,codeSize:t,onMinimize:n,onDownloadAsIs:r,onCancel:i})=>{let{__:a}=p.v(),o=s_(t);return(0,C.jsx)(p.Z,{open:e,onCancel:i,footer:null,className:`code-size-warning-modal`,width:480,children:(0,C.jsxs)(`div`,{className:`code-size-warning-modal__content`,children:[(0,C.jsx)(`h3`,{className:`code-size-warning-modal__title`,children:a(`Code Size Warning`)}),(0,C.jsxs)(`div`,{className:`code-size-warning-modal__message`,children:[(0,C.jsxs)(`p`,{children:[a(`The current code size is`),` `,(0,C.jsx)(`strong`,{children:o}),`,`,` `,a(`which exceeds the recommended 90 KB limit.`)]}),(0,C.jsx)(`p`,{children:a(`Large emails may have delivery issues and load slowly. We recommend minimizing code before exporting.`)})]}),(0,C.jsxs)(p.xt,{className:`code-size-warning-modal__actions`,size:`middle`,children:[(0,C.jsx)(p.Rt,{type:`primary`,onClick:n,size:`large`,children:a(`Minimize code`)}),(0,C.jsx)(p.Rt,{onClick:r,size:`large`,children:a(`Download as is`)})]})]})})};function Z_(e,t){if(t===`amp`)e.handleRender(async({contentDocument:e,managedNodeController:t})=>{for(let t of e.querySelectorAll(`.em-amp-show-disabled`))t.remove();await a.n(e,{mappedTags:{script:`___script`},commit:()=>t.commit()})});else if(t===`html`){let t=e.document;for(let e of t.querySelectorAll(`.em-amp-show-only`))e.remove();a.t(t,{mappedTags:{script:`___script`}})}}var Q_=/\n/g;function $_(e){let t=[...e.matchAll(Q_)].map((e=>e.index||0));t.unshift(-1);let n=ev(t,0,t.length);return e=>tv(n,e)}function ev(e,t,n){if(n-t==1)return{offset:e[t],index:t+1};let r=Math.ceil((t+n)/2),i=ev(e,t,r),a=ev(e,r,n);return{offset:i.offset,low:i,high:a}}function tv(e,t){return function(e){return Object.prototype.hasOwnProperty.call(e,`index`)}(e)?{line:e.index,column:t-e.offset}:tv(e.high.offset<t?e.high:e.low,t)}function nv(e,t=``,n={}){let r=typeof t==`string`?n:t,i=typeof t==`string`?t:``,a=e.map(rv),o=!!r.lineNumbers;return function(e,t=0){let n=o?$_(e):()=>({line:0,column:0}),r=t,s=[];e:for(;r<e.length;){let t=!1;for(let o of a){o.regex.lastIndex=r;let a=o.regex.exec(e);if(a&&a[0].length>0){if(!o.discard){let e=n(r),t=typeof o.replace==`string`?a[0].replace(new RegExp(o.regex.source,o.regex.flags),o.replace):a[0];s.push({state:i,name:o.name,text:t,offset:r,len:a[0].length,line:e.line,column:e.column})}if(r=o.regex.lastIndex,t=!0,o.push){let t=o.push(e,r);s.push(...t.tokens),r=t.offset}if(o.pop)break e;break}}if(!t)break}return{tokens:s,offset:r,complete:e.length<=r}}}function rv(e,t){return{...e,regex:iv(e,t)}}function iv(e,t){if(e.name.length===0)throw Error(`Rule #${t} has empty name, which is not allowed.`);if(function(e){return Object.prototype.hasOwnProperty.call(e,`regex`)}(e))return function(e){if(e.global)throw Error(`Regular expression /${e.source}/${e.flags} contains the global flag, which is not allowed.`);return e.sticky?e:new RegExp(e.source,e.flags+`y`)}(e.regex);if(function(e){return Object.prototype.hasOwnProperty.call(e,`str`)}(e)){if(e.str.length===0)throw Error(`Rule #${t} ("${e.name}") has empty "str" property, which is not allowed.`);return new RegExp(av(e.str),`y`)}return new RegExp(av(e.name),`y`)}function av(e){return e.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,`\\$&`)}function ov(e,t){return(n,r)=>{let i=r,a;return r<n.tokens.length?(a=e(n.tokens[r],n,r),a!==void 0&&i++):t?.(n,r),a===void 0?{matched:!1}:{matched:!0,position:i,value:a}}}function sv(e,t){return e.matched?{matched:!0,position:e.position,value:t(e.value,e.position)}:e}function cv(e,t){return e.matched?t(e):e}function lv(e,t){return(n,r)=>sv(e(n,r),(e,i)=>t(e,n,r,i))}function uv(e,t){return(n,r)=>{let i=e(n,r);return i.matched?i:{matched:!0,position:r,value:t}}}function dv(...e){return(t,n)=>{for(let r of e){let e=r(t,n);if(e.matched)return e}return{matched:!1}}}function fv(e,t){return(n,r)=>{let i=e(n,r);return i.matched?i:t(n,r)}}function pv(e,t){return(n,r)=>{let i=[],a=!0;do{let o=e(n,r);o.matched&&t(o.value,i.length+1,n,r,o.position)?(i.push(o.value),r=o.position):a=!1}while(a);return{matched:!0,position:r,value:i}}}function mv(e){return pv(e,()=>!0)}function hv(e){return gv(e,mv(e),(e,t)=>[e,...t])}function gv(e,t,n){return(r,i)=>cv(e(r,i),e=>sv(t(r,e.position),(t,a)=>n(e.value,t,r,i,a)))}function _v(e,t){return gv(e,t,e=>e)}function vv(e,t){return gv(e,t,(e,t)=>t)}function yv(e,t,n,r){return(i,a)=>cv(e(i,a),e=>cv(t(i,e.position),t=>sv(n(i,t.position),(n,o)=>r(e.value,t.value,n,i,a,o))))}function bv(e,t,n){return yv(e,t,n,(e,t)=>t)}function xv(...e){return(t,n)=>{let r=[],i=n;for(let n of e){let e=n(t,i);if(e.matched)r.push(e.value),i=e.position;else return{matched:!1}}return{matched:!0,position:i,value:r}}}function Sv(...e){return Cv(xv(...e))}function Cv(e){return lv(e,e=>e.flatMap(e=>e))}function wv(e,t){return(n,r)=>{let i=!0,a=e,o=r;do{let e=t(a,n,o)(n,o);e.matched?(a=e.value,o=e.position):i=!1}while(i);return{matched:!0,position:o,value:a}}}function Tv(e,t,n){return wv(e,e=>lv(t,(t,r,i,a)=>n(e,t,r,i,a)))}function Ev(e,t,n){return Dv(e,e=>Tv(e,gv(t,n,(e,t)=>[e,t]),(e,[t,n])=>t(e,n)))}function Dv(e,t){return(n,r)=>cv(e(n,r),e=>t(e.value,n,r,e.position)(n,e.position))}var Ov=`(?:[ \\t\\r\\n\\f]*)`,kv=`(?:\\n|\\r\\n|\\r|\\f)`,Av=`[^\\x00-\\x7F]`,jv=`(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)`,Mv=`(?:\\\\[^\\n\\r\\f0-9a-f])`,Nv=`(?:[_a-z]|${Av}|${jv}|${Mv})`,Pv=`(?:[_a-z0-9-]|${Av}|${jv}|${Mv})`,Fv=`(?:${Pv}+)`,Iv=`(?:[-]?${Nv}${Pv}*)`,Lv=`'([^\\n\\r\\f\\\\']|\\\\${kv}|${Av}|${jv}|${Mv})*'`,Rv=`"([^\\n\\r\\f\\\\"]|\\\\${kv}|${Av}|${jv}|${Mv})*"`,zv=nv([{name:`ws`,regex:new RegExp(Ov)},{name:`hash`,regex:RegExp(`#${Fv}`,`i`)},{name:`ident`,regex:new RegExp(Iv,`i`)},{name:`str1`,regex:new RegExp(Lv,`i`)},{name:`str2`,regex:new RegExp(Rv,`i`)},{name:`*`},{name:`.`},{name:`,`},{name:`[`},{name:`]`},{name:`=`},{name:`>`},{name:`|`},{name:`+`},{name:`~`},{name:`^`},{name:`$`}]),Bv=nv([{name:`unicode`,regex:new RegExp(jv,`i`)},{name:`escape`,regex:new RegExp(Mv,`i`)},{name:`any`,regex:RegExp(`[\\s\\S]`,`i`)}]);function Vv([e,t,n],[r,i,a]){return[e+r,t+i,n+a]}function Hv(e){return e.reduce(Vv,[0,0,0])}var Uv=lv(mv(dv(ov(e=>e.name===`unicode`?String.fromCodePoint(parseInt(e.text.slice(1),16)):void 0),ov(e=>e.name===`escape`?e.text.slice(1):void 0),ov(e=>e.name===`any`?e.text:void 0))),e=>e.join(``));function Wv(e){return Uv({tokens:Bv(e).tokens,options:void 0},0).value}function Gv(e){return ov(t=>t.name===e?!0:void 0)}var Kv=ov(e=>e.name===`ws`?null:void 0),qv=uv(Kv,null);function Jv(e){return bv(qv,e,qv)}var Yv=ov(e=>e.name===`ident`?Wv(e.text):void 0),Xv=ov(e=>e.name===`hash`?Wv(e.text.slice(1)):void 0),Zv=ov(e=>e.name.startsWith(`str`)?Wv(e.text.slice(1,-1)):void 0),Qv=_v(uv(Yv,``),Gv(`|`)),$v=fv(gv(Qv,Yv,(e,t)=>({name:t,namespace:e})),lv(Yv,e=>({name:e,namespace:null}))),ey=fv(gv(Qv,Gv(`*`),e=>({type:`universal`,namespace:e,specificity:[0,0,0]})),lv(Gv(`*`),()=>({type:`universal`,namespace:null,specificity:[0,0,0]}))),ty=lv($v,({name:e,namespace:t})=>({type:`tag`,name:e,namespace:t,specificity:[0,0,1]})),ny=gv(Gv(`.`),Yv,(e,t)=>({type:`class`,name:t,specificity:[0,1,0]})),ry=lv(Xv,e=>({type:`id`,name:e,specificity:[1,0,0]})),iy=ov(e=>{if(e.name===`ident`){if(e.text===`i`||e.text===`I`)return`i`;if(e.text===`s`||e.text===`S`)return`s`}}),ay=fv(gv(Zv,uv(vv(qv,iy),null),(e,t)=>({value:e,modifier:t})),gv(Yv,uv(vv(Kv,iy),null),(e,t)=>({value:e,modifier:t}))),oy=dv(lv(Gv(`=`),()=>`=`),gv(Gv(`~`),Gv(`=`),()=>`~=`),gv(Gv(`|`),Gv(`=`),()=>`|=`),gv(Gv(`^`),Gv(`=`),()=>`^=`),gv(Gv(`$`),Gv(`=`),()=>`$=`),gv(Gv(`*`),Gv(`=`),()=>`*=`)),sy=fv(yv(Gv(`[`),Jv($v),Gv(`]`),(e,{name:t,namespace:n})=>({type:`attrPresence`,name:t,namespace:n,specificity:[0,1,0]})),bv(Gv(`[`),yv(Jv($v),oy,Jv(ay),({name:e,namespace:t},n,{value:r,modifier:i})=>({type:`attrValue`,name:e,namespace:t,matcher:n,value:r,modifier:i,specificity:[0,1,0]})),Gv(`]`))),cy=fv(ey,ty),ly=dv(ry,ny,sy),uy=lv(fv(Sv(cy,mv(ly)),hv(ly)),e=>({type:`compound`,list:e,specificity:Hv(e.map(e=>e.specificity))})),dy=Ev(uy,lv(fv(Jv(dv(lv(Gv(`>`),()=>`>`),lv(Gv(`+`),()=>`+`),lv(Gv(`~`),()=>`~`),gv(Gv(`|`),Gv(`|`),()=>`||`))),lv(Kv,()=>` `)),e=>(t,n)=>({type:`compound`,list:[...n.list,{type:`combinator`,combinator:e,left:t,specificity:t.specificity}],specificity:Vv(t.specificity,n.specificity)})),uy);Ev(lv(dy,e=>({type:`list`,list:[e]})),lv(Jv(Gv(`,`)),()=>(e,t)=>({type:`list`,list:[...e.list,t]})),dy);function fy(e,t){if(!(typeof t==`string`||t instanceof String))throw Error(`Expected a selector string. Actual input is not a string!`);let n=zv(t);if(!n.complete)throw Error(`The input "${t}" was only partially tokenized, stopped at offset ${n.offset}!\n`+py(t,n.offset));let r=Jv(e)({tokens:n.tokens,options:void 0},0);if(!r.matched)throw Error(`No match for "${t}" input!`);if(r.position<n.tokens.length){let e=n.tokens[r.position];throw Error(`The input "${t}" was only partially parsed, stopped at offset ${e.offset}!\n`+py(t,e.offset,e.len))}return r.value}function py(e,t,n=1){return`${e.replace(/(\t)|(\r)|(\n)/g,(e,t,n)=>t?`␉`:n?`␍`:`␊`)}\n${``.padEnd(t)}${`^`.repeat(n)}`}function my(e){return fy(dy,e)}function hy(e){if(!e.type)throw Error(`This is not an AST node.`);switch(e.type){case`universal`:return gy(e.namespace)+`*`;case`tag`:return gy(e.namespace)+vy(e.name);case`class`:return`.`+vy(e.name);case`id`:return`#`+vy(e.name);case`attrPresence`:return`[${gy(e.namespace)}${vy(e.name)}]`;case`attrValue`:return`[${gy(e.namespace)}${vy(e.name)}${e.matcher}"${yy(e.value)}"${e.modifier?e.modifier:``}]`;case`combinator`:return hy(e.left)+e.combinator;case`compound`:return e.list.reduce((e,t)=>t.type===`combinator`?hy(t)+e:e+hy(t),``);case`list`:return e.list.map(hy).join(`,`)}}function gy(e){return e||e===``?vy(e)+`|`:``}function _y(e){return`\\${e.codePointAt(0).toString(16)} `}function vy(e){return e.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(e,t,n,r,i,a,o,s)=>t?_y(t):n?`-`+_y(n.slice(1)):r?`\\-`:i||(a?`�`:o?_y(o):`\\`+s))}function yy(e){return e.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(e,t,n,r,i)=>t?`\\"`:n?`\\\\`:r?`�`:_y(i))}function by(e){if(!e.type)throw Error(`This is not an AST node.`);switch(e.type){case`compound`:e.list.forEach(by),e.list.sort((e,t)=>Cy(xy(e),xy(t)));break;case`combinator`:by(e.left);break;case`list`:e.list.forEach(by),e.list.sort((e,t)=>hy(e)<hy(t)?-1:1);break}return e}function xy(e){switch(e.type){case`universal`:return[1];case`tag`:return[1];case`id`:return[2];case`class`:return[3,e.name];case`attrPresence`:return[4,hy(e)];case`attrValue`:return[5,hy(e)];case`combinator`:return[15,hy(e)]}}function Sy(e,t){return Cy(e,t)}function Cy(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw Error(`Arguments must be arrays.`);let n=e.length<t.length?e.length:t.length;for(let r=0;r<n;r++)if(e[r]!==t[r])return e[r]<t[r]?-1:1;return e.length-t.length}var wy=class{constructor(e){this.branches=Oy(Ty(e))}build(e){return e(this.branches)}};function Ty(e){let t=e.length,n=Array(t);for(let r=0;r<t;r++){let[t,i]=e[r],a=Ey(my(t));n[r]={ast:a,terminal:{type:`terminal`,valueContainer:{index:r,value:i,specificity:a.specificity}}}}return n}function Ey(e){return Dy(e),by(e),e}function Dy(e){let t=[];e.list.forEach(e=>{switch(e.type){case`class`:t.push({matcher:`~=`,modifier:null,name:`class`,namespace:null,specificity:e.specificity,type:`attrValue`,value:e.name});break;case`id`:t.push({matcher:`=`,modifier:null,name:`id`,namespace:null,specificity:e.specificity,type:`attrValue`,value:e.name});break;case`combinator`:Dy(e.left),t.push(e);break;case`universal`:break;default:t.push(e);break}}),e.list=t}function Oy(e){let t=[];for(;e.length;){let n=By(e,e=>!0,jy),{matches:r,nonmatches:i,empty:a}=Ay(e,n);e=i,r.length&&t.push(My(n,r)),a.length&&t.push(...ky(a))}return t}function ky(e){let t=[];for(let n of e){let e=n.terminal;if(e.type===`terminal`)t.push(e);else{let{matches:n,rest:r}=Vy(e.cont,e=>e.type===`terminal`);n.forEach(e=>t.push(e)),r.length&&(e.cont=r,t.push(e))}}return t}function Ay(e,t){let n=[],r=[],i=[];for(let a of e){let e=a.ast.list;e.length?(e.some(e=>jy(e)===t)?n:r).push(a):i.push(a)}return{matches:n,nonmatches:r,empty:i}}function jy(e){switch(e.type){case`attrPresence`:return`attrPresence ${e.name}`;case`attrValue`:return`attrValue ${e.name}`;case`combinator`:return`combinator ${e.combinator}`;default:return e.type}}function My(e,t){if(e===`tag`)return Ny(t);if(e.startsWith(`attrValue `))return Fy(e.substring(10),t);if(e.startsWith(`attrPresence `))return Py(e.substring(13),t);if(e===`combinator >`)return Ly(`>`,t);if(e===`combinator +`)return Ly(`+`,t);throw Error(`Unsupported selector kind: ${e}`)}function Ny(e){let t=Ry(e,e=>e.type===`tag`,e=>e.name);return{type:`tagName`,variants:Object.entries(t).map(([e,t])=>({type:`variant`,value:e,cont:Oy(t.items)}))}}function Py(e,t){for(let n of t)zy(n,t=>t.type===`attrPresence`&&t.name===e);return{type:`attrPresence`,name:e,cont:Oy(t)}}function Fy(e,t){let n=Ry(t,t=>t.type===`attrValue`&&t.name===e,e=>`${e.matcher} ${e.modifier||``} ${e.value}`),r=[];for(let e of Object.values(n)){let t=e.oneSimpleSelector,n=Iy(t),i=Oy(e.items);r.push({type:`matcher`,matcher:t.matcher,modifier:t.modifier,value:t.value,predicate:n,cont:i})}return{type:`attrValue`,name:e,matchers:r}}function Iy(e){if(e.modifier===`i`){let t=e.value.toLowerCase();switch(e.matcher){case`=`:return e=>t===e.toLowerCase();case`~=`:return e=>e.toLowerCase().split(/[ \t]+/).includes(t);case`^=`:return e=>e.toLowerCase().startsWith(t);case`$=`:return e=>e.toLowerCase().endsWith(t);case`*=`:return e=>e.toLowerCase().includes(t);case`|=`:return e=>{let n=e.toLowerCase();return t===n||n.startsWith(t)&&n[t.length]===`-`}}}else{let t=e.value;switch(e.matcher){case`=`:return e=>t===e;case`~=`:return e=>e.split(/[ \t]+/).includes(t);case`^=`:return e=>e.startsWith(t);case`$=`:return e=>e.endsWith(t);case`*=`:return e=>e.includes(t);case`|=`:return e=>t===e||e.startsWith(t)&&e[t.length]===`-`}}}function Ly(e,t){let n=Ry(t,t=>t.type===`combinator`&&t.combinator===e,e=>hy(e.left)),r=[];for(let e of Object.values(n)){let t=Oy(e.items),n=e.oneSimpleSelector.left;r.push({ast:n,terminal:{type:`popElement`,cont:t}})}return{type:`pushElement`,combinator:e,cont:Oy(r)}}function Ry(e,t,n){let r={};for(;e.length;){let i=By(e,t,n),a=e=>t(e)&&n(e)===i,{matches:o,rest:s}=Hy(e,e=>e.ast.list.some(a)),c=null;for(let e of o){let t=zy(e,a);c||=t}if(c==null)throw Error(`No simple selector is found.`);r[i]={oneSimpleSelector:c,items:o},e=s}return r}function zy(e,t){let n=e.ast.list,r=Array(n.length),i=-1;for(let e=n.length;e-- >0;)t(n[e])&&(r[e]=!0,i=e);if(i==-1)throw Error(`Couldn't find the required simple selector.`);let a=n[i];return e.ast.list=n.filter((e,t)=>!r[t]),a}function By(e,t,n){let r={};for(let i of e){let e={};for(let r of i.ast.list.filter(t))e[n(r)]=!0;for(let t of Object.keys(e))r[t]?r[t]++:r[t]=1}let i=``,a=0;for(let e of Object.entries(r))e[1]>a&&(i=e[0],a=e[1]);return i}function Vy(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}function Hy(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}var Uy=class{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,t=!1){let n=this.f(e),r=n.length;if(r===0)return null;if(r===1)return n[0].value;let i=t?Wy:Gy,a=n[0];for(let e=1;e<r;e++){let t=n[e];i(a,t)&&(a=t)}return a.value}};function Wy(e,t){let n=Sy(t.specificity,e.specificity);return n>0||n===0&&t.index<e.index}function Gy(e,t){let n=Sy(t.specificity,e.specificity);return n>0||n===0&&t.index>e.index}function Ky(e){return new Uy(qy(e))}function qy(e){let t=e.map(Jy);return(e,...n)=>t.flatMap(t=>t(e,...n))}function Jy(e){switch(e.type){case`terminal`:return()=>[e.valueContainer];case`tagName`:return Yy(e);case`attrValue`:return Zy(e);case`attrPresence`:return Xy(e);case`pushElement`:return Qy(e);case`popElement`:return $y(e);default:return()=>[]}}function Yy(e){let t={};for(let n of e.variants)t[n.value.toLowerCase()]=qy(n.cont);return(e,...n)=>{let r=e.tagName?.toLowerCase(),i=r&&t[r];return i?i(e,...n):[]}}function Xy(e){let t=e.name,n=qy(e.cont);return(e,...r)=>e.hasAttribute(t)?n(e,...r):[]}function Zy(e){let t=[];for(let n of e.matchers){let e=n.predicate,r=qy(n.cont);t.push((t,n,...i)=>e(t)?r(n,...i):[])}let n=e.name;return(e,...r)=>{let i=e.getAttribute(n);return i===null?[]:t.flatMap(t=>t(i,e,...r))}}function Qy(e){let t=qy(e.cont),n=e.combinator===`+`?eb:tb;return(e,...r)=>{let i=n(e);return i?t(i,e,...r):[]}}function $y(e){let t=qy(e.cont);return(e,n,...r)=>t(n,...r)}function eb(e){let t=e.previousSibling;for(;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}function tb(e){return e.parentElement}var nb=r.a(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g})),rb=r.l(nb());function ib(e,t,n=()=>void 0){if(e===void 0){let e=function(...n){return t(e,...n)};return e}return e>=0?function(...r){return t(ib(e-1,t,n),...r)}:n}function ab(e,t){let n=0,r=e.length;for(;n<r&&e[n]===t;)++n;for(;r>n&&e[r-1]===t;)--r;return n>0||r<e.length?e.substring(n,r):e}function ob(e,t){let n=e.length;for(;n>0&&e[n-1]===t;)--n;return n<e.length?e.substring(0,n):e}function sb(e){return e.replace(/[\s\S]/g,e=>`\\u`+e.charCodeAt().toString(16).padStart(4,`0`))}function cb(e,t){let n=new Map;for(let r=e.length;r-- >0;){let i=e[r],a=t(i);n.set(a,n.has(a)?(0,rb.default)(i,n.get(a),{arrayMerge:lb}):i)}return[...n.values()].reverse()}var lb=(e,t,n)=>[...t];function ub(e,t){for(let n of t){if(!e)return;e=e[n]}return e}function db(e,t=`a`,n=26){let r=[];do--e,r.push(e%n),e=e/n>>0;while(e>0);let i=t.charCodeAt(0);return r.reverse().map(e=>String.fromCharCode(i+e)).join(``)}var fb=[`I`,`X`,`C`,`M`],pb=[`V`,`L`,`D`];function mb(e){return[...e+``].map(e=>+e).reverse().map((e,t)=>e%5<4?(e<5?``:pb[t])+fb[t].repeat(e%5):fb[t]+(e<5?pb[t]:fb[t+1])).reverse().join(``)}var hb=class{constructor(e,t=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=ub(e,[`longWordSplit`,`wrapCharacters`])||[],this.forceWrapOnLimit=ub(e,[`longWordSplit`,`forceWrapOnLimit`])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,t=!1){this.nextLineAvailableChars<=0&&!t&&this.startNewLine();let n=this.nextLineWords.length===0,r=e.length+ +!n;if(r<=this.nextLineAvailableChars||t)this.nextLineWords.push(e),this.nextLineAvailableChars-=r;else{let[t,...r]=this.splitLongWord(e);n||this.startNewLine(),this.nextLineWords.push(t),this.nextLineAvailableChars-=t.length;for(let e of r)this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){let e=this.nextLineWords.pop();if(e!==void 0){let t=this.nextLineWords.length===0,n=e.length+ +!t;this.nextLineAvailableChars+=n}return e}concatWord(e,t=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,t),this.wordBreakOpportunity=!1;else{let n=this.popWord();this.pushWord(n?n.concat(e):e,t)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(e=>e.join(` `)).join(`
825
+ `))},[s,r]),{data:k}=i.ft.useGetProjectQuery(Number(o),{skip:!o}),[A,j]=(0,v.useState)([]);(0,v.useEffect)(()=>{if(k){let{owner:e,admins:t,users:n}=k?.members;j([e&&{...e},t&&Array.isArray(t)&&t.map(e=>({...e})),n&&Array.isArray(n)&&n.map(e=>({...e}))].filter(e=>e).flat(1).map(e=>({id:e.ID,display_name:e.display_name})))}},[k,k?.members,t]);let[M,N]=(0,v.useState)(1),[P,F]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let e=Array.isArray(c)&&c.length&&c?.map(e=>({key:e.id,author:e.author,date:i.h(i.D(e.date||e.modified),t),title:e.title,html:e.html,common_styles:e.common_styles,loading:!1,isAutosave:e.slug?.includes(`autosave`)}));T(e||[]),x(e),h(!1),l<2&&F(!0)},[c,l,t]);let I=!f&&!g&&!P?(0,C.jsx)(`div`,{style:{textAlign:`center`,marginTop:24,marginBottom:24,height:32,lineHeight:`32px`},children:(0,C.jsx)(p.Rt,{onClick:()=>{y(!0),T(b.concat([...[,,,]].map(()=>({loading:!0})))),r(i.gt.endpoints.getEmailHistory.initiate({emailId:e.id,page:M+1})).then(e=>{let{data:n,totalPages:r}=e.data,a=Array.isArray(n)&&n?.map(e=>({key:e.id,author:e.author,date:i.h(i.D(e.date||e.modified),t),title:e.title,html:e.html,loading:!1})),o=b.concat(a);T(o),x(o),y(!1),window.dispatchEvent(new Event(`resize`)),M+1>=r&&F(!0),N(M+1)})},children:t(`loading more`)})}):null,[L,R]=(0,v.useState)(),[z,B]=(0,v.useState)(null),V=(0,v.useRef)();V.current=e,(0,v.useEffect)(()=>{if(!d&&!z){let e=V.current;e&&B({html:s.getValue(),preheader:e.preheader,common_styles:e.common_styles,subject:e.subject})}},[d,B,s,z]),(0,v.useEffect)(()=>{d&&z&&(O(z),B(null))},[d,z,O]);let H=i.Wt();return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.$,{className:`secondary-tabs email-settings__collapse secondary-tabs_unset_scroll`,size:`large`,activeKey:i.Kr,items:[{label:(0,C.jsx)(C.Fragment,{children:t(`Version history`)}),key:i.Kr,forceRender:!0,className:`email-settings__collapse-panel`,style:{height:`100%`},children:(0,C.jsx)(p.ft,{className:`history-panel__list`,loading:f,itemLayout:`horizontal`,loadMore:I,dataSource:w,header:(0,C.jsxs)(`div`,{className:`history-panel__list-header`,children:[(0,C.jsx)(`div`,{className:`history-panel__list-date`,children:t(`Time`)}),(0,C.jsx)(`div`,{className:`history-panel__list-author`,children:t(`Author`)}),(0,C.jsx)(`div`,{className:`history-panel__restore`,children:`Set`})]}),renderItem:(e,a)=>(0,C.jsx)(p.ft.Item,{onClick:()=>{a!==L&&(R(a),O(b[a])),r(u.h(!0))},className:(0,E.default)(`history-panel__item`,{"history-panel__item_active":a===L}),children:(0,C.jsxs)(p.lt,{title:!1,loading:e.loading||!1,active:!0,children:[(0,C.jsx)(`div`,{className:`history-panel__list-date`,children:e.date}),(0,C.jsx)(`div`,{className:`history-panel__list-author`,children:i.ii.isPlugin&&H.revisionService?e.author:A.find(t=>t.id?.toString()===e.author?.toString())?.display_name||`–`}),e.isAutosave&&L!==a&&(0,C.jsx)(`div`,{style:{opacity:.45},className:`history-panel__list-autosave`,children:t(`Auto`)}),!e.isAutosave&&(0,C.jsx)(p.Rt,{size:`small`,className:`history-panel__restore`,type:`link`,onClick:e=>{L===a&&e.stopPropagation(),O(b[a]),R(null),B(null),n({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1}),r(i.nn())},children:t(`Set`)}),e.isAutosave&&L===a&&(0,C.jsx)(p.Rt,{size:`small`,className:`history-panel__restore`,type:`link`,onClick:e=>{L===a&&e.stopPropagation(),O(b[a]),D(!0),R(null),B(null),n({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1})},children:t(`Set`)})]})})})}]}),(0,C.jsx)(p.Rt,{type:`text`,className:`ant-modal-close`,"aria-label":`Close`,onClick:()=>{r(i.nn()),O(z),B(null),D(!0),n({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1})},children:(0,C.jsx)(m.d,{icon:`Close`})})]})};gg.propTypes={};var _g=({elementPath:e})=>{let{_x:t}=p.v(),n=i.lr(),r=i.$(),a=i.Wt(),{emailId:o,blockId:s,projectId:c}=(0,S.useParams)(),l=i.cr(i.B),u=i.G(),d=(0,v.useCallback)(e=>{r.send({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_SET,index:e})},[r]),f=(0,v.useCallback)(e=>{let t=`element`;e?.target?.closest(`svg`)||e?.target?.closest(`.anticon`)||e?.target?.closest(`[class*="icon"]`)?t=`icon`:e?.target?.textContent&&!e?.target?.closest(`svg`)&&!e?.target?.closest(`.anticon`)&&(t=`text`),n(i.hn(i.pi)),r.send({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1}),r.send({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET}),u({event:`click`,action:`click_breadcrumb_email`,email_id:o||s,project_id:l?.id||c,click_target:t})},[r,n,u,o,s,c,l]),[h,g]=(0,v.useState)([{title:(0,C.jsxs)(`span`,{onClick:f,children:[(0,C.jsx)(m.d,{icon:`Email`,size:16,strokeWidth:a.iconStrokeWidth}),` `,t(`Email`,`letter`)]})}]),_=(0,v.useCallback)(e=>{r.send({operation:i.Wr.SANDBOX_ELEMENT_HOVER_SET,index:e})},[r]),y=e=>{if(e.includes(`em-element-path-item-text`))return(0,C.jsx)(m.d,{icon:`ElementText`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-image`))return(0,C.jsx)(m.d,{icon:`ElementImage`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-link`))return(0,C.jsx)(m.d,{icon:`LinkOutlined`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-atom`))return(0,C.jsx)(m.d,{icon:`Atom`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-column`))return(0,C.jsx)(m.d,{icon:`Column`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-block`))return(0,C.jsx)(m.d,{icon:`Block`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-group`))return(0,C.jsx)(m.d,{icon:`Group`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-button`))return(0,C.jsx)(m.d,{icon:`ElementButton`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-table`))return(0,C.jsx)(m.d,{icon:`ElementTable`,size:16,strokeWidth:a.iconStrokeWidth});if(e.includes(`em-element-path-item-amp`))return(0,C.jsx)(m.d,{icon:`AMP`,size:16,strokeWidth:a.iconStrokeWidth})},b=(0,v.useCallback)((t,n)=>(0,C.jsxs)(`span`,{className:t.className,onClick:t=>{let r=`element`;t.target.closest(`svg`)||t.target.closest(`.anticon`)||t.target.closest(`[class*="icon"]`)?r=`icon`:t.target.textContent&&!t.target.closest(`svg`)&&!t.target.closest(`.anticon`)&&(r=`text`);let i=e?.[n],a=i?.className?.replace(`em-element-path-item-`,``)||`unknown`;u({event:`click`,action:`click_breadcrumb_element`,email_id:o||s,project_id:l?.id||c,element_type:a,element_index:n,element_title:i?.title||``,click_target:r}),d(n)},onMouseOver:()=>{_(n)},children:[y(t.className),` `,t.title]}),[d,_,e,u,o,s,c,l]);return(0,v.useEffect)(()=>{if(e){let n=e.map((e,t)=>({title:b(e,t)}));g([{title:(0,C.jsxs)(`span`,{onClick:f,children:[(0,C.jsx)(m.d,{icon:`Email`,size:16,strokeWidth:a.iconStrokeWidth}),` `,t(`Email`,`letter`)]})},...n])}},[e,b,f,t]),(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(p.rt,{items:h,type:`separator`,separator:``})})},vg=[i.Si,i.Ur,i.Ci],yg=({summary:e,__:t,selectedTags:n,setSelectedTags:r})=>{let i=(0,v.useCallback)((e,t)=>{r(t?n.length===2?[]:[...n,e]:n.filter(t=>t!==e))},[n,r]),a=(0,v.useCallback)(e=>t(e===`valid`?`Valid`:e===`warnings`?`Warnings`:`Errors`),[t]);return(0,C.jsx)(p.B,{level:5,className:`optimise__valid-title`,children:(0,C.jsx)(p.xt,{className:`optimise__valid-title-space`,size:8,children:vg.map((t,r)=>(0,C.jsxs)(p.at,{checked:n?.includes(t),onChange:e=>i(t,e),className:(0,E.default)(`${t} optimise__button`,{[`${t}_active`]:n.includes(t)}),children:[a(t),`: `,e?.[t]||0]},t+r))})})},{LINKS:bg}=i.ni,xg=(0,v.memo)(({__:e,activeTab:t,validateLinksResult:n,validateLinks:r,selectedTags:a,setSelectedTags:o,isLoading:s,disabled:c,iconStrokeWidth:l,onValidate:u,goToLinkHandler:d})=>t!==bg||!n?.links?null:n.links.length===0?(0,C.jsx)(p.At,{className:`optimise__row-mb-24`,children:(0,C.jsx)(p.Q,{message:e(`No links found.`),type:`info`})}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.At,{className:`optimise__row-mb-14`,children:(0,C.jsxs)(`div`,{className:`optimise__title-wrapper`,children:[(0,C.jsx)(yg,{__:e,summary:n.summary,setSelectedTags:o,selectedTags:a}),(0,C.jsx)(p.Rt,{disabled:c,loading:s,onClick:u,icon:(0,C.jsx)(m.d,{icon:`SyncOutlined`,size:16,strokeWidth:l}),children:e(`Refresh`)})]})}),(0,C.jsx)(p.At,{className:`optimise__row-mb-24`,children:(0,C.jsx)(p.kt,{span:24,children:(0,C.jsx)(p.ft,{itemLayout:`horizontal`,dataSource:r,renderItem:(t,n)=>(0,C.jsx)(p.ft.Item,{className:p.dt,children:(0,C.jsx)(p.ft.Item.Meta,{avatar:t.status===`valid`?(0,C.jsx)(m.d,{icon:`CheckCircleFilled`,className:i.Si}):t.status===`warnings`?(0,C.jsx)(m.d,{icon:`CheckCircleFilled`,className:i.Ci}):(0,C.jsx)(m.d,{icon:`CloseCircleFilled`,className:i.Ur}),title:(0,C.jsx)(p.U,{className:`optimise__link optimise__link-blue`,draggable:!1,onClick:()=>d(t.linkId,600>(t.statusCode||0)&&(t.statusCode||0)>399||!t.statusCode),children:t.url===``?e(`empty link`):t.url}),description:(0,C.jsxs)(C.Fragment,{children:[!!t.text?.length&&(0,C.jsx)(p.V,{type:`secondary`,children:t.text}),t.page?.title&&t.page.title,t.page?.secure&&t.status===`valid`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`span`,{className:`image-size-splitter`,children:`\xA0•\xA0`}),(0,C.jsx)(`span`,{className:`valid`,children:e(`secure`)})]}),!t.resolvedUrl&&!t.statusCode&&t.type===`url`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`span`,{className:`image-size-splitter`,children:`\xA0•\xA0`}),(0,C.jsx)(p.V,{type:`secondary`,children:e(`Failed to load`)})]})]})})},n+`_`+t.linkId)})})})]}));xg.displayName=`LinksSection`;var{IMAGES:Sg}=i.ni,Cg=(0,v.memo)(({__:e,activeTab:t,validateImagesResult:n,validateImages:r,selectedTags:i,setSelectedTags:a,isLoading:o,disabled:s,iconStrokeWidth:c,onValidate:l,goToImageHandler:u,showImgPreviewHandler:d,hideBlockPreviewHandler:f})=>t!==Sg||!n?.images?null:n.images.length===0?(0,C.jsx)(p.At,{className:`optimise__row-mb-24`,children:(0,C.jsx)(p.Q,{message:e(`No images found.`),type:`info`})}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.At,{className:`optimise__row-mb-16`,children:(0,C.jsx)(p.Q,{className:`optimise__alert-custom`,message:(0,C.jsxs)(`div`,{className:`optimise__summary`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsxs)(p.B,{level:4,className:`optimise__summary-title`,children:[n.images.length,` `]}),(0,C.jsx)(`span`,{className:`optimise__summary-label`,children:e(`images`)})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsxs)(p.B,{level:4,className:`optimise__summary-title`,children:[n.summaryTime?.value,n.summaryTime?.name]}),(0,C.jsx)(`span`,{className:`optimise__summary-label`,children:e(`total size`)})]}),(0,C.jsxs)(`div`,{children:[(0,C.jsx)(p.B,{level:4,className:`optimise__summary-title`,children:(Math.max(...n.images.map(e=>e.image.responseTime))/1e3).toFixed(2)+e(`s`)}),(0,C.jsx)(`span`,{className:`optimise__summary-label`,children:e(`time to load`)})]})]}),type:`warning`})}),(0,C.jsx)(p.At,{className:`optimise__row-mb-12`,children:(0,C.jsxs)(`div`,{className:`optimise__title-wrapper`,children:[(0,C.jsx)(yg,{__:e,summary:n.summary,setSelectedTags:a,selectedTags:i}),(0,C.jsx)(p.Rt,{icon:(0,C.jsx)(m.d,{icon:`SyncOutlined`,size:16,strokeWidth:c}),disabled:s,loading:o,onClick:l,children:e(`Refresh`)})]})}),(0,C.jsx)(p.At,{className:`optimise__row-mb-12`,children:(0,C.jsx)(p.kt,{span:24,children:(0,C.jsx)(p.ft,{className:`optimise__result-list`,itemLayout:`horizontal`,dataSource:r,renderItem:(t,n)=>(0,C.jsx)(p.ft.Item,{className:`optimise__image-item image-item ${p.dt}`,children:(0,C.jsx)(p.ft.Item.Meta,{className:(0,E.default)(`image-item__meta`,{"image-item__meta_fail":!t.resolvedUrl&&!t.statusCode}),avatar:(0,C.jsx)(p.pt,{className:(0,E.default)(`image-item__image optimise__image-auto-height`,{"image-item__image_fail":!t.resolvedUrl||!t.valid}),width:92,height:`auto`,src:t.resolvedUrl||``,preview:!1,onMouseEnter:()=>d(t.url,t.image.dimensions?.width),onMouseLeave:()=>f()}),title:t.url?(0,C.jsx)(p.K,{placement:`top`,title:t.message,children:(0,C.jsx)(p.U,{className:`optimise__link optimise__link-blue`,draggable:!1,onClick:()=>u(t.imageId,600>(t.statusCode||0)&&(t.statusCode||0)>399||!t.statusCode),children:t?.url===``?e(`empty src`):t.url})}):t.message,description:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(`div`,{className:`image-size`,children:[t.image.dimensions&&(0,C.jsxs)(C.Fragment,{children:[t.image.dimensions.width+` × `+t.image.dimensions.height,(0,C.jsx)(`span`,{className:`image-size-splitter`,children:` \xA0•\xA0 `}),(0,C.jsxs)(`span`,{children:[Math.round(t.image.bytes/1024),e(`kB`)]}),(0,C.jsx)(`span`,{className:`image-size-splitter`,children:` \xA0•\xA0 `}),(0,C.jsxs)(`span`,{children:[t.image.responseTime,e(`ms`)]}),(0,C.jsx)(`span`,{className:`image-size-splitter`,children:` \xA0•\xA0 `}),(0,C.jsx)(`span`,{className:`image-size-format`,children:g.s(t.image.contentType)})]}),t.image.secure&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`span`,{className:`image-size-splitter`,children:` \xA0•\xA0 `}),(0,C.jsx)(`span`,{className:`valid`,children:e(`secure`)})]}),t.resolvedUrl&&!t.valid&&(0,C.jsx)(p.V,{type:`danger`,children:e(`not valid`)})]}),!t.resolvedUrl&&!t.statusCode&&(0,C.jsx)(p.V,{type:`danger`,children:e(`Failed to load`)})]})})},n)})})})]}));Cg.displayName=`ImagesSection`;var{SPAM_ASSASSIN:wg}=i.ni,Tg=(0,v.memo)(({__:e,activeTab:t,validateSpamResult:n,isLoading:r,disabled:i,iconStrokeWidth:a,onValidate:o})=>{let s=n?.report?.length||Object.prototype.hasOwnProperty.call(n,`spamScore`);if(t!==wg||!s)return null;let c=n.spamScore||0,l=n.baseSpamScore||0;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)(p.At,{className:`optimise__row-mb-8`,children:[(0,C.jsxs)(`div`,{className:`optimise__title-wrapper optimise__title-wrapper_spam`,children:[(0,C.jsxs)(p.B,{level:1,className:`optimise__spam-score-title`,type:c<2||!n.spamScore||c<=l-1?`success`:c<l-1?`warning`:`danger`,children:[(0,C.jsx)(`span`,{className:`optimise__spam-score-value`,children:c}),(0,C.jsx)(p.V,{className:`optimise__spam-score-text`,children:`Score`})]}),(0,C.jsx)(p.Rt,{disabled:i,icon:(0,C.jsx)(m.d,{icon:`SyncOutlined`,size:16,strokeWidth:a}),loading:r,onClick:o,children:e(`Refresh`)})]}),c>l-1&&(0,C.jsx)(p.V,{children:e(`Lower scores are better. Aim for a score less than `)+(l-1)+`.`})]}),(0,C.jsx)(p.At,{className:`optimise__row-mb-8`,children:(0,C.jsx)(p.kt,{span:24,children:(n.report?.length||0)>0?(0,C.jsx)(p.ft,{itemLayout:`horizontal`,dataSource:n.report,renderItem:e=>(0,C.jsx)(p.ft.Item,{className:p.dt,children:(0,C.jsx)(p.ft.Item.Meta,{title:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.V,{className:`optimise__spam-report-score`,children:e.score}),(0,C.jsx)(`span`,{className:`optimise__spam-report-description`,children:e.description})]})})})}):(0,C.jsx)(C.Fragment,{children:n.spamScore===0&&e(`Your email doesn't look like spam.`)})})})]})});Tg.displayName=`SpamSection`;var{PROBLEMS:Eg}=i.ni,Dg=(0,v.memo)(({__:e,activeTab:t,problemsList:n,onSetMonacoPosition:r})=>t===Eg?n?.length?(0,C.jsx)(p.At,{className:`optimise__row-mb-8`,children:(0,C.jsx)(p.kt,{span:24,children:(0,C.jsx)(p.ft,{itemLayout:`horizontal`,dataSource:n,renderItem:e=>(0,C.jsx)(p.ft.Item,{className:p.dt,children:(0,C.jsx)(p.ft.Item.Meta,{avatar:e.severity<6?(0,C.jsx)(m.d,{icon:`CloseCircleFilled`,className:i.Ci}):(0,C.jsx)(m.d,{icon:`CloseCircleFilled`,className:i.Ur}),title:(0,C.jsxs)(p.V,{onClick:()=>r(e),className:(0,E.default)(`optimise__text-clickable`,{warning:e.severity<6,error:e.severity>=6}),children:[`Line: `,e.startLineNumber,` `,e.startLineNumber!==e.endLineNumber&&` – `+e.endLineNumber]}),description:(0,C.jsx)(p.V,{children:e.message})})})})})}):(0,C.jsx)(p.At,{className:`optimise__row-mb-24`,children:(0,C.jsx)(p.Q,{message:e(`No problems found.`),type:`info`})}):null);Dg.displayName=`ProblemsSection`;var Og={activeTab:``,selectedTags:[],validateLinks:[],validateImages:[],validateSpamResult:{},optimisationCounter:0,validateLinksResult:{},validateImagesResult:{}},kg=(e,t)=>{switch(t.type){case`SET_ACTIVE_TAB`:return{...e,activeTab:t.payload===e.activeTab?``:t.payload};case`SET_SELECTED_TAGS`:return{...e,selectedTags:t.payload};case`SET_VALIDATE_LINKS`:return{...e,validateLinks:t.payload};case`SET_VALIDATE_IMAGES`:return{...e,validateImages:t.payload};case`SET_VALIDATE_SPAM_RESULT`:return{...e,validateSpamResult:t.payload};case`SET_OPTIMISATION_COUNTER`:return{...e,optimisationCounter:t.payload};case`INCREMENT_OPTIMISATION_COUNTER`:return{...e,optimisationCounter:e.optimisationCounter+1};case`SET_VALIDATE_LINKS_RESULT`:return{...e,validateLinksResult:t.payload};case`SET_VALIDATE_IMAGES_RESULT`:return{...e,validateImagesResult:t.payload};case`RESET_SELECTED_TAGS`:return{...e,selectedTags:[]};default:return e}},Ag=({appConfig:e,data:t,isSuccess:n,optimisationCounter:r,setOptimisationCounter:a})=>{let o=(0,v.useMemo)(()=>!!(e.limits&&e.counters)&&i.ii.isPlugin,[e]),{limits:s}=(0,v.useMemo)(()=>i.ii.isPlugin?e.limits?e:{limits:{optimization_limit:0}}:t?.limits?t:{limits:{optimization_limit:0}},[e,t]),c=(0,v.useMemo)(()=>s.optimization_limit,[s]),l=(0,v.useMemo)(()=>r>=c&&c>0,[r,c]);return(0,v.useEffect)(()=>{if(o)a(e?.counters?.optimization_counter||0);else{let e=t?.counters;n&&e?.optimization_counter&&a(e.optimization_counter)}},[o,t,n,e,a]),{limitsInPlugin:o,currentBillingOptimisationLimits:c,disableFields:l}},jg=()=>{let e=(0,v.useRef)(null);return{showImgPreviewHandler:(0,v.useCallback)((t,n)=>{e.current&&clearTimeout(e.current);let r=document.querySelector(`.img-preview`),i=document.querySelector(`.img-preview-content`);document.querySelector(`.img-preview`)||(r=document.createElement(`div`),r.classList.add(`img-preview`),i=document.createElement(`div`),i.classList.add(`img-preview-content`),r.append(i),document.querySelector(`.email-pane__col_settings-inner`)?.append(r)),i&&(i.innerHTML=`<table cellspacing="0" cellpadding="0" border="0" width="100%"><img height="auto" width=${(n||0)+`px`} alt="" style="max-width: 100%; object-fit: contain" src=${t}></table>`),r&&r.style.opacity!==`1`&&setTimeout(()=>{r&&(r.style.opacity=`1`,r.style.transform=`translateX(-100%)`)},10)},[]),hideBlockPreviewHandler:(0,v.useCallback)(()=>{let t=document.querySelector(`.img-preview`);t&&(e.current=setTimeout(()=>{t&&(t.style.opacity=`0`,t.style.transform=`translateX(-99%)`,setTimeout(()=>{t?.remove()},300))},300))},[])}},{LINKS:Mg,IMAGES:Ng}=i.ni,Pg=({activeTab:e,selectedTags:t,validateLinksResult:n,validateImagesResult:r,setValidateLinks:i,setValidateImages:a})=>{(0,v.useEffect)(()=>{e===Mg&&n.links&&i(t.length>0?n.links.filter(e=>t.includes(e.status)):n.links),e===Ng&&r.images&&a(t.length>0?r.images.filter(e=>t.includes(e.status)):r.images)},[n.links,r.images,t,e,i,a])},Fg=e=>(e.statusCode===null?e.type!==`invalid`:e.statusCode<300&&(e.page?.secure??!0))?i.Si:(e.statusCode&&e.statusCode<400||e.statusCode===200&&(e.page?.secure??!0))&&e.type!==`invalid`?i.Ci:i.Ur,Ig=e=>e.statusCode!==null&&e.statusCode<300?i.Si:e.statusCode<400&&e.statusCode>=300||e.statusCode===200&&!e.valid?i.Ci:i.Ur,Lg=e=>({valid:e.filter(e=>e.status===i.Si).length,warnings:e.filter(e=>e.status===i.Ci).length,errors:e.filter(e=>e.status===i.Ur).length}),{LINKS:Rg,IMAGES:zg,SPAM_ASSASSIN:Bg,PROBLEMS:Vg}=i.ni,Hg=()=>{let{__:e,_n:t}=p.v(),n=i.lr(),r=(0,S.useNavigate)(),s=p.i(),c=_.l(),l=i.Wt(),{emailId:d,projectId:f}=(0,S.useParams)(),[h,g]=(0,v.useState)(null),y=(0,v.useRef)(!1),[b]=o.h(),x=(0,v.useCallback)(e=>{g(e)},[]),w=(0,v.useCallback)((t,r)=>t?.status===401&&t?.data?.code===`usage_limit_exceeded`?(x({presetId:{link_check:`link_check_exceeded`,image_check:`image_check_exceeded`,spam_check:`spam_check_exceeded`}[r],previousDisplay:e(`—`),nextDisplay:m.c(`infinity`)}),n(o.f.util.invalidateTags([`LimitsStats`,`LimitsWarnings`])),!0):!1,[n,e,x]),T=(0,v.useCallback)(async e=>{if(i.ii.isPlugin)return!0;let t=m.a(e,(await b(e)).data?.stats);return t?(x({presetId:t.presetId,previousDisplay:t.previousLimit,nextDisplay:m.c(t.nextLimit)}),n(o.f.util.invalidateTags([`LimitsStats`,`LimitsWarnings`])),!1):!0},[n,b,x]),E=i.$(),D=i.cr(u.N),O=p.h(i.ea.ON_LIMIT_ID),k=i.G(),[A,j]=(0,v.useReducer)(kg,Og),[M,N]=a.gn(),[P,F]=a.hn(),[I,L]=a.mn(),{data:R,isSuccess:z,refetch:B}=i.ht(+(f||0),{skip:!!i.ii.isPlugin||!+f}),V=(0,v.useCallback)(e=>j({type:`SET_OPTIMISATION_COUNTER`,payload:e}),[]),H=(0,v.useCallback)(e=>j({type:`SET_VALIDATE_LINKS`,payload:e}),[]),ee=(0,v.useCallback)(e=>j({type:`SET_VALIDATE_IMAGES`,payload:e}),[]),U=(0,v.useCallback)(e=>j({type:`SET_SELECTED_TAGS`,payload:e}),[]),{limitsInPlugin:W,currentBillingOptimisationLimits:G,disableFields:K}=Ag({appConfig:l,data:R,isSuccess:z,optimisationCounter:A.optimisationCounter,setOptimisationCounter:V});Pg({activeTab:A.activeTab,selectedTags:A.selectedTags,validateLinksResult:A.validateLinksResult,validateImagesResult:A.validateImagesResult,setValidateLinks:H,setValidateImages:ee});let{showImgPreviewHandler:q,hideBlockPreviewHandler:J}=jg(),Y=(0,v.useCallback)(()=>{O.fire({name:`OptimizationCount`,count:A.optimisationCounter+1})},[O,A.optimisationCounter]),te=(0,v.useCallback)((e,t)=>{E.send({operation:i.Wr.SANDBOX_SET_POSITION_TO_LINK,settings:{elementId:e,isError:t}})},[E]),X=(0,v.useCallback)((e,t)=>{E.send({operation:i.Wr.SANDBOX_SET_POSITION_TO_IMG,settings:{elementId:e,isError:t}})},[E]),ne=(0,v.useCallback)(e=>{n(u.F({startColumn:e.startColumn,startLineNumber:e.startLineNumber,endColumn:e.endColumn,endLineNumber:e.endLineNumber}))},[n]),re=(0,v.useCallback)(e=>{j({type:`SET_ACTIVE_TAB`,payload:e}),j({type:`RESET_SELECTED_TAGS`}),e===Vg&&D?.length>0&&k({event:`check`,action:`check_email_code`,email_id:d,project_id:f,problems_count:D?.length||0})},[D,k,d,f]),ie=(0,v.useCallback)(async()=>{if(!d){s.error({message:`Save the mail first.`});return}if(K){x({presetId:`optimization_exceeded`,previousDisplay:G,nextDisplay:m.c(`infinity`)});return}if(!await T(`link_check`))return;W&&(j({type:`INCREMENT_OPTIMISATION_COUNTER`}),Y());let t=c.getValue(),n=new DOMParser().parseFromString(t,`text/html`),r={},a={};n.querySelectorAll(`a[href]`).forEach((e,t)=>{r[`link_${t}`]=e.getAttribute(`href`),a[`link_${t}`]=e.textContent||``}),E.send({operation:`sandbox_set_attr_to_links`}),P({entity_id:d,data:r}).then(({data:t,error:n})=>{if(n)w(n,`link_check`)||s.error({error:n});else if(t?.result){let n=[...t.result];n?.sort((e,t)=>e.linkId-t.linkId);let r=n.map(e=>({...e,text:a[e.linkId],status:Fg(e)})),o={links:r,summary:Lg(r)};j({type:`SET_VALIDATE_LINKS_RESULT`,payload:o}),s.success(e(`Links validation was successfully completed`)),t.limit_warning&&t.limit_remaining!=null&&s.warning({message:`${e(`Approaching usage limit. Remaining`)}: ${t.limit_remaining}`}),k({event:`check`,action:`check_email_links`,email_id:d,project_id:f,links_count:o.links?.length||0}),!i.ii.isPlugin&&B()}else t.statusCode>300||!t.success?s.error({error:{data:t}}):s.error({message:e(`Something went wrong.`)}),!A.validateLinksResult.links&&re(``)}).catch(e=>{w(e,`link_check`)||s.error({error:e})})},[d,W,K,G,x,c,E,P,s,e,k,f,B,Y,A.validateLinksResult.links,w,T]),ae=(0,v.useCallback)(async()=>{if(!d){s.error({message:`Save the mail first.`});return}if(K){x({presetId:`optimization_exceeded`,previousDisplay:G,nextDisplay:m.c(`infinity`)});return}if(!await T(`image_check`))return;W&&(j({type:`INCREMENT_OPTIMISATION_COUNTER`}),Y());let t=c.getValue(),n=new DOMParser().parseFromString(t,`text/html`),r={};n.querySelectorAll(`img`).forEach((e,t)=>r[`image_${t}`]=e.src),E.send({operation:`sandbox_set_attr_to_images`}),I({entity_id:d,data:r}).then(({data:t,error:n})=>{let r;if(n)w(n,`image_check`)||s.error({error:n});else if(t?.result){let n=Object.values(t.result);n.sort((e,t)=>e.imageId-t.imageId);let a=n.reduce((e,t)=>e+Math.round(t.image.bytes/1024),0);r={images:n.map(e=>({...e,status:Ig(e)}))||[],summary:Lg(n.map(e=>({...e,status:Ig(e)}))),summaryTime:{value:(a>1200?a/1e3:a).toFixed(1),name:e(a>1200?`MB`:`KB`)}},r&&j({type:`SET_VALIDATE_IMAGES_RESULT`,payload:r}),s.success(e(`Images validation was successfully completed`)),t.limit_warning&&t.limit_remaining!=null&&s.warning({message:`${e(`Approaching usage limit. Remaining`)}: ${t.limit_remaining}`}),k({event:`check`,action:`check_email_images`,email_id:d,project_id:f,images_count:r.images?.length||0}),!i.ii.isPlugin&&B()}else t.statusCode>300||!t.success?s.error({error:{data:t}}):s.error({message:e(`Something went wrong.`)}),!A.validateImagesResult?.images?.length&&re(``)}).catch(e=>{w(e,`image_check`)||s.error({error:e})})},[d,W,K,G,x,c,E,I,s,e,k,f,B,Y,A.validateImagesResult,w,T]),oe=(0,v.useCallback)(async()=>{if(!d){s.error({message:`Save the mail first.`});return}if(K){x({presetId:`optimization_exceeded`,previousDisplay:G,nextDisplay:m.c(`infinity`)});return}await T(`spam_check`)&&(W&&(j({type:`INCREMENT_OPTIMISATION_COUNTER`}),Y()),M({entity_id:d,data:{html:c.getValue()}}).then(({data:t,error:n})=>{if(n)w(n,`spam_check`)||s.error({error:n});else if(t&&t.success){let n=!!t.result.report&&Object.values(t.result.report);n?(n.sort((e,t)=>e.score-t.score),j({type:`SET_VALIDATE_SPAM_RESULT`,payload:{...t.result,report:n}})):t.result&&j({type:`SET_VALIDATE_SPAM_RESULT`,payload:{...t.result,report:n}}),s.success(e(`Spam validation was successfully completed`)),t.limit_warning&&t.limit_remaining!=null&&s.warning({message:`${e(`Approaching usage limit. Remaining`)}: ${t.limit_remaining}`}),k({event:`check`,action:`check_email_spam`,email_id:d,project_id:f,spam_score:t.result?.spamScore||0}),!i.ii.isPlugin&&B()}else t.statusCode>300||!t.success?s.error({error:{data:t}}):s.error({message:e(`Something went wrong.`)}),!A.validateSpamResult?.report?.length&&re(``)}).catch(e=>{w(e,`spam_check`)||s.error({error:e})}))},[d,W,K,G,x,c,M,s,e,k,f,B,Y,A.validateSpamResult,w,T]);(0,v.useEffect)(()=>{if(!(G>0&&A.optimisationCounter>=+G)){y.current=!1;return}y.current||(y.current=!0,x({presetId:`optimization_exceeded`,previousDisplay:G,nextDisplay:m.c(`infinity`)}))},[A.optimisationCounter,G,x]);let Z=h?m.s(h.presetId):null;return(0,C.jsxs)(`div`,{className:`optimise selected_form-props-wrapper selected_form-props-wrapper_optimize`,children:[Z&&h?(0,C.jsx)(m.l,{open:!0,onClose:()=>g(null),title:e(Z.titleKey),subtitle:e(Z.subtitleKey),usageResource:Z.usageResource,previousDisplay:h.previousDisplay,nextDisplay:h.nextDisplay,onChangePlan:()=>{g(null),r(`/billing`)}}):null,W&&(0,C.jsx)(p.L,{text:`${A.optimisationCounter} ${e(`of`)} ${G>0?G:`∞`} ${t(`test`,`tests`,G)} ${t(`was used`,`were used`,A.optimisationCounter)}`,exceeded:G>0&&A.optimisationCounter>=G,extra:(0,C.jsx)(`span`,{style:{textDecoration:`underline`,cursor:`pointer`},onClick:()=>r(l.billingPageUrl||i.xr.billing),children:e(`Need more?`)})}),l.optimizeLinksEnabled&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Nt,{className:`selected-td-form__divider optimise__divider-no-margin`}),(0,C.jsxs)(p.At,{gutter:10,align:`middle`,children:[(0,C.jsx)(p.kt,{span:20,children:(0,C.jsx)(`div`,{style:{padding:`15px 0`},children:e(`Links validation`)})}),(0,C.jsx)(p.kt,{span:4,className:`optimise__col-align-right`,children:(0,C.jsx)(p.Rt,{className:`selected-td-form__button ghost-button`,type:`text`,onMouseDown:e=>e.preventDefault(),onClick:()=>{re(Rg),!A.validateLinksResult?.links?.length&&A.activeTab!==Rg&&ie()},loading:F.isLoading,disabled:K&&!A.validateLinksResult?.links?.length,children:!F.isLoading&&(A.activeTab===Rg?(0,C.jsx)(m.d,{icon:`DownOutlined`,size:16,strokeWidth:l.iconStrokeWidth}):(0,C.jsx)(m.d,{icon:`RightOutlined`,size:16,strokeWidth:l.iconStrokeWidth}))})})]}),(0,C.jsx)(xg,{__:e,activeTab:A.activeTab,validateLinksResult:A.validateLinksResult,validateLinks:A.validateLinks,selectedTags:A.selectedTags,setSelectedTags:U,isLoading:F.isLoading,disabled:K,iconStrokeWidth:l.iconStrokeWidth,onValidate:ie,goToLinkHandler:te})]}),l.optimizeImagesEnabled&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Nt,{className:`selected-td-form__divider optimise__divider-no-margin`}),(0,C.jsxs)(p.At,{gutter:10,align:`middle`,children:[(0,C.jsx)(p.kt,{span:20,children:(0,C.jsx)(`div`,{style:{padding:`15px 0`},children:e(`Images validation`)})}),(0,C.jsx)(p.kt,{span:4,className:`optimise__col-align-right`,children:(0,C.jsx)(p.Rt,{className:`selected-td-form__button ghost-button`,type:`text`,onMouseDown:e=>e.preventDefault(),onClick:()=>{re(zg),!A.validateImagesResult?.images?.length&&A.activeTab!==zg&&ae()},loading:L.isLoading,children:!L.isLoading&&(A.activeTab===zg?(0,C.jsx)(m.d,{icon:`DownOutlined`,size:16,strokeWidth:l.iconStrokeWidth}):(0,C.jsx)(m.d,{icon:`RightOutlined`,size:16,strokeWidth:l.iconStrokeWidth}))})})]}),(0,C.jsx)(Cg,{__:e,activeTab:A.activeTab,validateImagesResult:A.validateImagesResult,validateImages:A.validateImages,selectedTags:A.selectedTags,setSelectedTags:U,isLoading:L.isLoading,disabled:K,iconStrokeWidth:l.iconStrokeWidth,onValidate:ae,goToImageHandler:X,showImgPreviewHandler:q,hideBlockPreviewHandler:J})]}),l.optimizeSpamAssassinEnabled&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Nt,{className:`selected-td-form__divider optimise__divider-no-margin`}),(0,C.jsxs)(p.At,{gutter:10,align:`middle`,children:[(0,C.jsx)(p.kt,{span:20,children:(0,C.jsx)(`div`,{style:{padding:`15px 0`},children:e(`SpamAssassin`)})}),(0,C.jsx)(p.kt,{span:4,className:`optimise__col-align-right`,children:(0,C.jsx)(p.Rt,{className:`selected-td-form__button ghost-button`,type:`text`,onMouseDown:e=>e.preventDefault(),loading:N.isLoading,onClick:()=>{re(Bg),A.validateSpamResult.report?.length||Object.prototype.hasOwnProperty.call(A.validateSpamResult,`spamScore`)||oe()},disabled:K&&!(A.validateSpamResult?.report?.length||Object.prototype.hasOwnProperty.call(A.validateSpamResult,`spamScore`)),children:!N.isLoading&&(A.activeTab===Bg?(0,C.jsx)(m.d,{icon:`DownOutlined`,size:16,strokeWidth:l.iconStrokeWidth}):(0,C.jsx)(m.d,{icon:`RightOutlined`,size:16,strokeWidth:l.iconStrokeWidth}))})})]}),(0,C.jsx)(Tg,{__:e,activeTab:A.activeTab,validateSpamResult:A.validateSpamResult,isLoading:N.isLoading,disabled:K,iconStrokeWidth:l.iconStrokeWidth,onValidate:oe})]}),l.optimizeCheckCodeEnabled&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(p.Nt,{className:`selected-td-form__divider optimise__divider-no-margin`}),(0,C.jsxs)(p.At,{gutter:10,align:`middle`,children:[(0,C.jsx)(p.kt,{span:20,children:(0,C.jsx)(`div`,{style:{padding:`15px 0`},children:e(`Source code validation`)})}),(0,C.jsx)(p.kt,{span:4,className:`optimise__col-align-right`,children:(0,C.jsx)(p.Rt,{className:`selected-td-form__button ghost-button`,type:`text`,onMouseDown:e=>e.preventDefault(),onClick:()=>re(Vg),children:A.activeTab===Vg?(0,C.jsx)(m.d,{icon:`DownOutlined`,size:16,strokeWidth:l.iconStrokeWidth}):(0,C.jsx)(m.d,{icon:`RightOutlined`,size:16,strokeWidth:l.iconStrokeWidth})})})]}),(0,C.jsx)(Dg,{__:e,activeTab:A.activeTab,problemsList:D,onSetMonacoPosition:ne})]})]})},Ug=({open:e,onClose:t})=>{let{__:n}=p.v();return(0,C.jsxs)(p.Z,{open:e,centered:!0,closable:!1,maskClosable:!1,footer:null,width:520,className:`browser-extension-warning-modal`,title:n(`Browser extension detected`),onCancel:t,children:[(0,C.jsx)(`p`,{children:n(`A browser extension (for example, Urban VPN Proxy or similar ad blockers/VPN tools) is injecting code into the email preview. This can corrupt your template when saving.`)}),(0,C.jsx)(`p`,{children:n(`We removed the injected code automatically. To avoid this issue, disable the extension for this site or use the editor in an incognito window without extensions.`)}),(0,C.jsx)(`div`,{className:`browser-extension-warning-modal__footer`,children:(0,C.jsxs)(p.Rt,{type:`primary`,onClick:t,children:[n(`Got it`),` `]})})]})},Wg=(0,v.lazy)(()=>Promise.resolve().then(()=>e(`./a2f4a86d.js`))),Gg=(0,v.lazy)(()=>Promise.resolve().then(()=>e(`./1503d3c5.js`))),Kg={height:`100%`},qg=()=>{let e=i.Wt(),t=m.t(),n=i.nr(),r=i.cr(i.B),a=i.tr(),o=p.v(),s=i.cr(i.n),c=r?.id===void 0?``:String(r?.id),l=i.ii.isPlugin?s?.id===`0`?``:String(s.id):``,{storageProvider:u,pathProxy:d,dataProvider:f}=(0,v.useMemo)(()=>qs({storageProvider:n,projectId:c,restApi:a,i18n:o,pathPostfix:l,appConfig:e,isStandalone:t}),[e,o,t,c,a,n,l]),h=(0,C.jsx)(p.q,{style:Kg});return u&&f&&e.imageCenterFileManagerView?h=(0,C.jsx)(Wg,{storageProvider:u,dataProvider:f,pathProxy:d}):u&&f&&(h=(0,C.jsx)(Gg,{dataProvider:f})),(0,C.jsx)(v.Suspense,{fallback:(0,C.jsx)(p.q,{style:Kg}),children:h})},Jg=`calendar_`;`${Jg}`,`${Jg}`,`${Jg}`,`${Jg}`,`${Jg}`;var Yg=e=>e.closest(`.email-pane__collapse-wrapper`)||e.closest(`.email-pane__content-col`)||document.body;function Xg({namePrefix:e,microLabel:t}){let{__:n}=p.v(),r=i.cr(u.O)?.usedColors;return(0,C.jsx)(p.w,{namePrefix:e,microLabel:t,usedColors:r,usedLabel:n(`Used`),recommendedLabel:n(`Recommended`),loadGoogleFonts:bc,getPopupContainer:Yg,formatLabels:{bold:n(`Strong ( Ctrl+B )`),italic:n(`Italic ( Ctrl+I )`),strikethrough:n(`Strikethrough ( Alt+Shift+5 )`),underline:n(`Underline ( Ctrl+U )`)},inputLabels:{fontSize:n(`Font size`),lineHeight:n(`Line height`),textColor:n(`Text color`)}})}Xg.propTypes={namePrefix:b.default.string.isRequired,microLabel:b.default.node.isRequired};var Zg=`dropdown_`;`${Zg}`,`${Zg}`,`${Zg}`,`${Zg}`,`${Zg}`;var Qg=e=>e.closest(`.email-pane__collapse-wrapper`)||e.closest(`.email-pane__content-col`)||document.body;function $g({namePrefix:e,microLabel:t}){let{__:n}=p.v(),r=i.cr(u.O)?.usedColors;return(0,C.jsx)(p.w,{namePrefix:e,microLabel:t,usedColors:r,usedLabel:n(`Used`),recommendedLabel:n(`Recommended`),loadGoogleFonts:bc,getPopupContainer:Qg,formatLabels:{bold:n(`Strong ( Ctrl+B )`),italic:n(`Italic ( Ctrl+I )`),strikethrough:n(`Strikethrough ( Alt+Shift+5 )`),underline:n(`Underline ( Ctrl+U )`)},inputLabels:{fontSize:n(`Font size`),lineHeight:n(`Line height`),textColor:n(`Text color`)}})}$g.propTypes={namePrefix:b.default.string.isRequired,microLabel:b.default.node.isRequired};var e_=`radio_`;`${e_}`,`${e_}`,`${e_}`,`${e_}`,`${e_}`;var t_=e=>e.closest(`.email-pane__collapse-wrapper`)||e.closest(`.email-pane__content-col`)||document.body;function n_({namePrefix:e,microLabel:t}){let{__:n}=p.v(),r=i.cr(u.O)?.usedColors;return(0,C.jsx)(p.w,{namePrefix:e,microLabel:t,usedColors:r,usedLabel:n(`Used`),recommendedLabel:n(`Recommended`),loadGoogleFonts:bc,getPopupContainer:t_,formatLabels:{bold:n(`Strong ( Ctrl+B )`),italic:n(`Italic ( Ctrl+I )`),strikethrough:n(`Strikethrough ( Alt+Shift+5 )`),underline:n(`Underline ( Ctrl+U )`)},inputLabels:{fontSize:n(`Font size`),lineHeight:n(`Line height`),textColor:n(`Text color`)}})}n_.propTypes={namePrefix:b.default.string.isRequired,microLabel:b.default.node.isRequired};var r_=`checkbox_`;`${r_}`,`${r_}`,`${r_}`,`${r_}`,`${r_}`;var i_=e=>e.closest(`.email-pane__collapse-wrapper`)||e.closest(`.email-pane__content-col`)||document.body;function a_({namePrefix:e,microLabel:t}){let{__:n}=p.v(),r=i.cr(u.O)?.usedColors;return(0,C.jsx)(p.w,{namePrefix:e,microLabel:t,usedColors:r,usedLabel:n(`Used`),recommendedLabel:n(`Recommended`),loadGoogleFonts:bc,getPopupContainer:i_,formatLabels:{bold:n(`Strong ( Ctrl+B )`),italic:n(`Italic ( Ctrl+I )`),strikethrough:n(`Strikethrough ( Alt+Shift+5 )`),underline:n(`Underline ( Ctrl+U )`)},inputLabels:{fontSize:n(`Font size`),lineHeight:n(`Line height`),textColor:n(`Text color`)}})}a_.propTypes={namePrefix:b.default.string.isRequired,microLabel:b.default.node.isRequired};var o_=`inputField_`;`${o_}`,`${o_}`,`${o_}`,`${o_}`,`${o_}`;var s_=e=>{if(e===0)return`0 B`;let t=1024,n=[`B`,`KB`,`MB`,`GB`,`TB`],r=Math.min(Math.floor(Math.log(e)/Math.log(t)),n.length-1),i=n.at(r)??`B`;return parseFloat((e/t**+r).toFixed(1))+` `+i},c_=e=>e?new TextEncoder().encode(e).length:0,l_=(e,t=90)=>e>t*1024,u_=e=>{let t=[],n=e;n=n.replace(/<!--\[if[^\]]*\]>[\s\S]*?<!\[endif\]-->/gi,e=>{let n=t.length,r=e.replace(/\s+/g,` `).replace(/> </g,`><`).replace(/\s+>/g,`>`).replace(/<!--\[if([^\]]*)\]>\s+/g,`<!--[if$1]>`).replace(/\s+<!\[endif\]-->/g,`<![endif]-->`);return t.push(r),`___CONDITIONAL_COMMENT_${n}___`});let r=n.replace(/<!--(?!\[if)[\s\S]*?-->/g,``).replace(/\s+/g,` `).replace(/> </g,`><`).replace(/\s+>/g,`>`).trim();return t.forEach((e,t)=>{r=r.replace(`___CONDITIONAL_COMMENT_${t}___`,e)}),r};function d_(){let[e,t]=(0,v.useState)(!1),n=p.h(i.ea.ON_BROWSER_EXTENSION_DETECTED_ID),r=(0,v.useCallback)(()=>{t(!1)},[]);return(0,v.useEffect)(()=>{let e=n.event(()=>{t(!0)});return()=>e.dispose()},[n]),{open:e,close:r}}var f_=`code`,p_=(e,t)=>(0,C.jsx)(t,{className:`email-pane__tab-bar`,...e}),{Content:m_}=p.G,h_=(0,v.memo)(e=>(0,C.jsx)(Rm,{...e})),g_=(0,v.memo)(e=>(0,C.jsx)(gl,{...e})),__=(0,v.memo)(e=>(0,C.jsx)(wl,{...e})),v_=(0,v.memo)(e=>(0,C.jsx)(hg,{...e})),y_=(0,v.memo)((0,v.forwardRef)((e,t)=>(0,C.jsx)(fg,{...e,ref:t}))),b_=(0,v.memo)(e=>(0,C.jsx)(Nu,{...e})),x_=(0,v.memo)(e=>(0,C.jsx)(Ns,{...e})),S_=(0,v.memo)(e=>(0,C.jsx)(gg,{...e})),C_=({emailElement:e,isSuccess:t,setIsCollaborationEditor:n,isShowAddAllBlocksModal:r,triggerOpenSavedBlocksTab:s,setIsShowAddAllBlocksModal:c})=>{let l=1200,{__:d,_x:f}=p.v(),h=i.$(),{emailId:y,blockId:b,projectId:x}=(0,S.useParams)(),w=i.lr(),{modal:T}=p.Wt.useApp(),D=i.Wt(),{token:O}=p.Vt(),k=p.i(),A=i.G(),j=i.cr(i.B),M=g.u(),N=i.cr(i.in),P=i.cr(i.n),F=i.cr(i.r),I=i.ur(),L=i.cr(o.s),R=i.cr(i.sn),z=i.cr(u.C),B=i.cr(u.d),V=i.cr(i.cn),H=i.cr(i.an),ee=i.cr(a.Q),U=i.cr(a.et),W=i.cr(a.$),G=i.cr(i.mn),[K]=a.Kt(),[q]=a.On(),[J,Y]=(0,v.useState)(!1),[te,X]=(0,v.useState)(i.qr),[ne,re]=(0,v.useState)(),[ie,ae]=(0,v.useState)(D.defaultBuildPanel||`empty`),[oe,Z]=(0,v.useState)(`empty`),[se,ce]=(0,v.useState)(!1),[le,ue]=(0,v.useState)([]),[de,fe]=(0,v.useState)(!1),[pe,me]=(0,v.useState)([]),[he,ge]=(0,v.useState)(!1),[_e,ve]=(0,v.useState)(!1),{open:ye,close:be}=d_(),xe=i.Z(),Se=_.l(),[Ce,we]=(0,v.useState)(Se?.getValue()||``);(0,v.useEffect)(()=>{if(!Se)return;we(Se.getValue());let e=Se.onDidChangeContent(()=>{we(Se.getValue())});return()=>{e.dispose()}},[Se]);let Te=(0,v.useMemo)(()=>c_(Ce||e?.html||``),[e?.html,Ce]),Ee=s_(Te),De=l_(Te),Oe=!F&&P.id?.toString()===j?.members?.owner.ID,ke=i.ii.isPlugin?D?.configSwither||!1:!0;(0,v.useEffect)(()=>{w(i.tn())},[w]),(0,v.useEffect)(()=>{let e=window.localStorage.getItem(i.Yr.em_active_tab);e&&w(i.hn(e))},[M,w]);let Ae=y||b,je=e.hasOwnProperty(`type`)?i.wr:i.Br,Me=je===`email`?z:B,[Ne,Pe]=(0,v.useState)({}),Fe=(0,v.useRef)(null),Ie=(0,v.useRef)(),Le=(0,v.useRef)(),Re=(0,v.useRef)(),ze=(0,v.useRef)(),Be=(0,v.useRef)(),Ve=(0,v.useRef)(null),He=(0,v.useRef)(!1),Ue=(0,v.useRef)(!1),We=(0,v.useCallback)(()=>{Ue.current=!1},[]),Ge=(0,v.useCallback)(()=>{Ue.current=!0},[]),Ke=(0,v.useCallback)(e=>{e?.type===i.zr.SOCIAL&&Ge()},[Ge]),[qe,Je]=(0,v.useState)(!1),[Ye,Xe]=(0,v.useState)(!1),Ze=p.m(i.pa),[Qe]=i.Kt(),[$e,et]=(0,v.useState)(!1),[tt,nt]=(0,v.useState)(0),[rt,it]=(0,v.useState)(!1);(0,v.useEffect)(()=>{let e=Ze(e=>{let t=e?.type===i.aa;if((!e||!e.type&&!e.content&&!e.advancedTabs?.length)&&N===`Properties`)Pe({}),u.L({}),w(i.nn());else if(N!==`Properties`&&w(i.hn(i.si)),e.advancedTabs?.length&&!t&&!e.content){let t=e.advancedTabs.map(e=>({content:e.content,label:e.label,key:e.key,className:e.className}));Pe(e=>({settings:{},extraTabs:t}))}else if(t&&e.content){let t=e.advancedTabs?.map(e=>({content:e.content,label:e.label,key:e.key,className:e.className}));Pe(n=>({settings:{},type:e.type,content:e.content,instanceKey:e.instanceKey,parent:e.parent,caption:e.caption,extraTabs:t,deletable:e.deletable}))}});return()=>e.dispose()},[Ze,Pe,w,N,Me]);let at=i.ii.isPlugin?D.configSwither?localStorage.getItem(`configSwither`)===`pro`?!0:localStorage.getItem(`configSwither`)===`editor`?!1:D.mode===`pro`:!1:P.email_builder_config===`pro`||P.email_builder_config===`simple`,ot=(0,v.useCallback)(()=>{clearTimeout(Ve.current);let e=`.blocks-search__result-holder`;xe.querySelector(e)&&(ee||U||W)&&(xe.querySelector(e).style.removeProperty(`transition`),xe.querySelector(e).style.opacity=0,xe.querySelectorAll(`.blocks-search__result-body`).forEach(e=>e.style.removeProperty(`height`)),Ve.current=setTimeout(()=>{xe.querySelectorAll(`.blocks-search__result-body`).forEach(e=>{e.style.height=e.getBoundingClientRect().height*207/660+`px`}),xe.querySelector(e)&&(xe.querySelector(e).style.transition=`opacity 0.2s`,xe.querySelectorAll(e).forEach(e=>e.style.opacity=1))},200))},[U,ee,W]),st=(0,v.useCallback)(e=>{let t=e.target;setTimeout(()=>{Je(t.closest(`.desktop_view`)),Xe(t.closest(`.mobile_view`))},100)});(0,v.useEffect)(()=>{let e=ef(xe,`mouseover`,st);return()=>{e.dispose()}},[xe,st]),(0,v.useEffect)(()=>{w(i._n(J?i.Qr:i.Mr))},[J,w]),(0,v.useEffect)(()=>{typeof n==`function`&&(pe.length>0?n(!0):n(!1))},[pe]);let[ct]=a.zn(),{data:lt={},refetch:ut,status:dt}=a.Ln({entity_id:Ae},{skip:!Ae||D.aiAssistentEnabled===!1}),[ft,pt]=(0,v.useState)([]),[mt,ht]=(0,v.useState)(D.defaultBuildPanel===``?i.Sr:i.Tr),[gt,_t]=(0,v.useState)(null),vt=(0,v.useCallback)(()=>{let e=Le.current?.getBoundingClientRect(),t=ne?.getBoundingClientRect();h.send({operation:i.Wr.SANDBOX_WINDOW_CHARACTERISTIC,settings:{iframeOffsetTop:V&&H!==`bottom`?0:30,scrollTop:-e?.top+t?.top+30,innerHeight:window.innerHeight,previewHeight:t?.height,mode:V&&H!==`bottom`?f_:`default`}})},[H,V,ne,h]),yt=t&&e,bt=(0,v.useCallback)(e=>{let t=window.navigator.platform.match(`Mac`);D.codeEnabled&&D.codeSideEnabled&&e.altKey&&e.keyCode===88&&(w(i.Cn()),Oe&&(et(!0),nt(1))),((t?e.metaKey:e.ctrlKey)&&e.shiftKey&&e.keyCode===76||(t?e.metaKey:e.ctrlKey)&&e.shiftKey&&e.keyCode===69||(t?e.metaKey:e.ctrlKey)&&e.shiftKey&&e.keyCode===82)&&e.preventDefault()},[w,D.codeEnabled,Oe,D.codeSideEnabled]),xt=L.includes(`UPLOAD_IMAGE_`)||L.includes(`UPLOAD_BACKGROUND_`),St=(0,v.useRef)(!1),Ct=(0,v.useCallback)(e=>{let t=e.target;St.current=!!(t.closest(`.email-pane__content-col`)||t.closest(`.email-pane__collapse-wrapper`)||t.closest(`.selected-element-panel-content`)||t.closest(`.selected-element-panel`)||t.closest(`.em-analytics__email-tab-properties`)||t.closest(`.em-analytics__email-tab-styles`)||t.closest(`.em-analytics__email-tab-history`)||t.closest(`.blocks-modal-container`)||t.closest(`.email-pane__sizes`)||t.closest(`.email-preview-menu`)||t.closest(`.monaco-editor`)||t.closest(`.ant-modal-wrap`))},[]),wt=(0,v.useCallback)(t=>{let n=St.current,r=window.getSelection().toString().length>0||document.activeElement&&document.activeElement.tagName===`INPUT`&&document.activeElement.selectionStart!==document.activeElement.selectionEnd;St.current=!1,!(n||r)&&(!document.querySelector(`.easylogic-colorpicker`)&&!xe.querySelector(`.easylogic-colorpicker`)&&!t.target.closest(`.email-pane__content-col`)&&!t.target.closest(`.blocks-modal-container`)&&!t.target.closest(`.email-pane__collapse-wrapper`)&&!t.target.closest(`.selected-element-panel__columns-settings__controls__column__remove`)&&!t.target.closest(`.email-preview__content-col_main`)&&!t.target.closest(`.email-preview-menu`)&&!t.target.closest(`.monaco-editor`)&&!t.target.closest(`.main__pane-close-btn`)&&!t.target.closest(`.main__pane-trigger`)&&!t.target.closest(`.ant-modal-wrap`)&&!t.target.closest(`.email-pane__sizes`)&&!t.target.closest(`.ant-input-clear-icon`)&&!t.target.closest(`.ant-color-picker`)&&!t.target.closest(`.control-font-family-dropdown`)&&!gt&&!t.target.closest(`.email-preview-menu__history`)&&!t.target.closest(`.selected-element-panel-content`)&&!t.target.closest(`.ant-select-dropdown`)&&!t.target.closest(`.toggle_view`)&&!t.target.closest(`.upload-bg-image__menu`)&&!t.target.closest(`.email-pane__paths`)&&!t.target.closest(`.ant-tabs-extra-content`)&&!t.target.closest(`.anticon-delete`)&&!xt&&L!==i.$r.IMAGE_EDITOR_MODAL&&(N===`Properties`&&(Ge(),w(i.nn()),h.send({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET}),ue([])),N===`History`&&w(i.hn(i.Dr)),w(i.Tn(!0)),h.send({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1}),setTimeout(()=>{e.type?w(u._({type:null})):w(u.L({type:null}))},300)),_t(null))},[w,e.type,L,gt,N,h,xt]),[Tt,Et]=(0,v.useState)(!0),{data:Dt=[],refetch:Ot}=a.Cn(Ae,{skip:!Ae}),[kt,At]=(0,v.useState)(``),[jt,Mt]=(0,v.useState)(``);(0,v.useEffect)(()=>{Ae&&Ot()},[N,Ae,Ot]),(0,v.useEffect)(()=>{Ae&&!Object.keys(lt).length&&dt===`fulfilled`&&ut()},[N,Ae,ut,lt,dt]),(0,v.useEffect)(()=>{let e=new i.Da,t=window.localStorage.getItem(i.Yr.em_active_tab);if(lt?.totalCount===0&&dt!==`pending`){let n={project_id:x,connection:`chat`,entity_id:Ae,context:`default`,locale:P.locale.slice(0,2)};t||ct({body:n}).then(()=>{e.isDisposed()||dt===`fulfilled`&&ut()})}let n={data:{role:`assistant`,message:d(`Typing...`),isLoading:!0}};return lt?.documents?.length>0?(window.localStorage.removeItem(i.Yr.em_active_tab),pt(lt?.documents),lt?.documents[lt?.documents?.length-1].data?.userInfo&&pt([...lt?.documents,n])):t||pt([n]),()=>e.dispose()},[Ae,P.locale,lt?.totalCount,lt?.documents,x,ut,ct,dt]),(0,v.useEffect)(()=>{Pe({}),w(je===`email`?u.L({}):u._({}))},[w,je]);let Nt=(0,v.useCallback)(e=>{w(u.W(e))},[w]),Pt=(0,v.useCallback)(e=>{w(u.m(e))},[w]),Ft=(0,v.useCallback)(e=>{w(je===`email`?u.L(e):u._(e))},[w,je]);(0,v.useEffect)(()=>{let e=ze.current,t=Re.current;re(V?t:e)},[V,H]);let It=(0,v.useCallback)(e=>{ae(e),e===`search`?ce(!0):(ce(!1),Z(e)),setTimeout(ot,50)},[ot]),Lt=(0,v.useCallback)(t=>{let n=t.data.operation,r=t.data,a=t.data.action;if(n===`application_block_inserted`||t.data.operationId===`application_block_inserted`){let n=t.data.operationId?t.data.data:r||{},i=n.type===`project`||n.type===`template`||n.type===`common`?`block`:`structure`;A({event:`add`,action:`add_element_to_email`,element_type:i,element_name:n.name||n.type||(i===`block`?`block`:`structure`),entity_id:e?.id||y||b,project_id:j?.id||x})}if(n===i.Wr.APPLICATION_SCROLL_TO&&setTimeout(()=>{Re.current?.scrollTo({top:t.data.settings.value,behavior:`smooth`})},100),n===i.Wr.APPLICATION_PREVIEW_ALERT_SHOW&&ge(r.settings.show),n===i.Wr.APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW&&ve(!0),n===i.Wr.APPLICATION_ACTION&&a===`toggle_editor`&&w(i.Cn()),n===i.Wr.APPLICATION_IFRAME_SET_HEIGHT&&(xe.querySelector(`.email-pane__iframe`).style.height=r.settings.height+`px`),n===i.Wr.APPLICATION_EMAIL_SETTINGS_SET){let e=Object.assign({},r.settings);delete e.preheader,Object.values(e).every(e=>!e)?(w(u.G(!0)),w(i.nn())):Nt(r.settings),r.settings.noBlocks,w(i.xn(r.settings.responsive)),Et(e.structuresMedia)}if(n===i.Wr.APPLICATION_BLOCK_SETTINGS_SET&&(Object.values(r.settings).every(e=>!e)?(w(u.h(!0)),w(i.nn())):(Pt(r.settings),Et(r.settings.structuresMedia))),n===i.Wr.APPLICATION_ELEMENT_SETTINGS_SET){let e=Object.values(i.zr).includes(r.type),t=Ne?.type===`advanced`&&!!Ne.content,n=r.tab?!0:!e&&!t;n&&N===`Properties`&&w(i.nn()),r.type===i.zr.EMPTY_TABLE||r.type===i.zr.EMPTY_TD?(w(i.hn(i.Dr)),r.type===i.zr.EMPTY_TABLE?(ht(i.Tr),r.tab?It(r.tab):It(`common`)):r.type===i.zr.EMPTY_TD&&ht(i.Sr)):r.type&&N!==`Properties`?r.type===i.zr.SOCIAL&&Ue.current?We():(We(),w(i.hn(i.si))):r.type!==i.zr.SOCIAL&&We(),r.type===i.zr.CAROUSEL||r.type===i.zr.ACCORDION||r.type===i.zr.SOCIAL?(Pe(e=>({settings:{...r.settings,type:n?null:r.type,caption:r.caption,parent:n?null:r.settings.parent},type:n?null:r.type,parent:n?null:r.settings.parent,caption:r.caption,extraTabs:e.extraTabs})),Ft({})):(Ft({...r.settings,type:n?null:r.type,parent:n?null:r.settings.parent,caption:r.caption}),Pe(t=>!e&&t.type===`advanced`&&t.content?{...t,settings:{...r.settings,type:r.type,parent:r.settings?.parent,caption:r.caption}}:t.extraTabs?.length?{extraTabs:t.extraTabs}:{})),r.settings?.path?.length>0&&ue(r.settings?.path)}n===i.Wr.APPLICATION_ELEMENT_SETTINGS_CLOSE&&(Ne?.type===i.zr.SOCIAL&&Ge(),w(i.nn()))},[w,Nt,Pt,Ft,N,It,xe,Ne,A,e,y,b,j,Ne,We,Ge]);(0,v.useEffect)(()=>{fs({id:P?.id,email:P?.email,username:P?.name})},[P]),(0,v.useEffect)(()=>{let e=P.email_builder_config,t=F||P.id?.toString()!==j?.members?.owner.ID,n=i.kt(I.getState());if(!e||typeof e!=`string`){!i.ii.isPlugin&&t&&n===`simple`&&w(i.Dt(`pro`));return}let r=t&&e===`simple`?`pro`:e;r!==n&&w(i.Dt(r))},[j?.members?.owner?.ID,P.email_builder_config,P.id,w,F,I]),(0,v.useEffect)(()=>{if(V&&Oe&&w(i.Cn()),i.ii.isPlugin){if(D.configSwither){let e=localStorage.getItem(`configSwither`)||D.mode||`editor`;localStorage.setItem(`configSwither`,e),w(i.Dt(e))}}else F||P.id?.toString()!==j?.members?.owner.ID?D.mode===`simple`&&w(i.Dt(`pro`)):w(i.Dt(`simple`))},[]);let Rt=t=>{F||(P.id?.toString(),j?.members?.owner.ID),setTimeout(()=>{if(F||P.id?.toString()!==j?.members?.owner.ID){let n=t?`pro`:`editor`;localStorage.setItem(`configSwither`,n),w(i.Dt(n)),A({event:`change`,action:`change_config_mode`,config_mode:n,entity_id:e?.id||y||b,project_id:j?.id||x})}else w(i.Dt(`pro`)),it(!0),et(!0),A({event:`change`,action:`change_config_mode`,config_mode:`pro`,entity_id:e?.id||y||b,project_id:j?.id||x})},200)},zt=()=>{V&&w(i.Cn()),w(i.nn()),w(i.Dt(`simple`)),it(!1),et(!1),A({event:`change`,action:`change_config_mode`,config_mode:`simple`,entity_id:e?.id||y||b,project_id:j?.id||x})};_.g(Lt);let Bt=(0,v.useRef)({emailElementType:je,emailElementSettings:z,blockElementSettings:B});Bt.current={emailElementType:je,emailElementSettings:z,blockElementSettings:B},(0,v.useEffect)(()=>{let e=h.addListener(e=>{let t=e?.data?.operation===void 0?e:e.data;if(t?.operation!==i.Wr.APPLICATION_NATIVE_IMAGE_DROP)return;let n=t.file,r=j?.id??x;if(!n||!(n instanceof File)||!r||!P?.id){h.send({operation:i.Wr.SANDBOX_NATIVE_IMAGE_DROP_CLEAR});return}(async()=>{try{let e=n;n.type!==`image/gif`&&(e=await hd(n,{maxSizeMB:D.compressMaxSize||.45,maxWidthOrHeight:D.compressMaxWidthOrHeight||2e3}));let t=await q({user_id:P.id,folder:String(r),file:e});if(t.error){k.fromError(`IMAGE_UPLOAD_ERROR`,n,t.error,!0),h.send({operation:i.Wr.SANDBOX_NATIVE_IMAGE_DROP_CLEAR});return}let a=Yd(t.data);if(a.error||!a.file_url){h.send({operation:i.Wr.SANDBOX_NATIVE_IMAGE_DROP_CLEAR});return}let o=a.file_url;h.send({operation:i.Wr.SANDBOX_ELEMENT_SETTINGS_SET,type:i.zr.IMG,settings:{src:o}});let{emailElementType:s,emailElementSettings:c,blockElementSettings:l}=Bt.current,u=s===`email`?c:l;u?.type===i.zr.IMG&&Ft({...u,src:o,changeKey:`src`})}catch{h.send({operation:i.Wr.SANDBOX_NATIVE_IMAGE_DROP_CLEAR})}})()});return()=>e.dispose()},[h,q,P,x,j?.id,D.compressMaxSize,D.compressMaxWidthOrHeight,k,Ft]),(0,v.useEffect)(()=>{let t=h.addListener(`application_atom_inserted`,t=>{A({event:`add`,action:`add_element_to_email`,element_type:`atom`,element_name:t||`atom`,entity_id:e?.id||y||b,project_id:j?.id||x})}),n=h.addListener(`application_block_inserted`,t=>{let n=t?.type===`project`||t?.type===`template`||t?.type===`common`?`block`:`structure`;A({event:`add`,action:`add_element_to_email`,element_type:n,element_name:t?.name||t?.type||(n===`block`?`block`:`structure`),entity_id:e?.id||y||b,project_id:j?.id||x})});return()=>{t?.dispose(),n?.dispose()}},[h,A,e?.id,y,b,x,j?.id]);let Vt=t=>{if(xe.querySelector(`.atoms__list`),D.toggleSidePanel&&t===N?w(i.hn(i.Nr)):t===`Optimize`?i.d(d,T):t!==`Properties`&&t!==`History`?(w(i.hn(t)),A({event:`navigate`,action:`navigate_email_pane_tab`,tab_name:t===`Disabled_tab`?`DISABLED_TAB`:t,entity_id:e?.id||y||b,project_id:j?.id||x}),h.send({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1}),h.send({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET}),ue([])):(t===`Properties`||t===`History`)&&A({event:`navigate`,action:`navigate_email_pane_tab`,tab_name:t,entity_id:e?.id||y||b,project_id:j?.id||x}),Oe&&(t===`Discuss`||t===`Optimise`||t===`AiChat`))switch(et(!0),t){case`Discuss`:nt(7);break;case`Optimise`:nt(6);break;case`AiChat`:nt(9);break;default:nt(0)}},Ht=(0,v.useRef)(),[Ut,Wt]=(0,v.useState)(`unset`),Gt=(0,v.useCallback)(()=>{let e,t=Re.current?.getBoundingClientRect();if(Ht?.current?.getBoundingClientRect().top>=0){let e=t&&Math.round(t&&t?.height-30);Ht.current.style.height=`${e}px`,Wt(e-30)}e&&window.clearTimeout(e),e=window.setTimeout(function(){h.isInited()&&vt()},100)},[vt,h]);(0,v.useEffect)(()=>(N===`AiChat`?Fe.current=setInterval(()=>{ut({entity_id:Ae})},5e3):clearInterval(Fe.current),clearInterval(Fe.current)),[Ae,ut,N]);let Kt=e=>ht(e||``),[qt,Jt]=(0,v.useState)(+window.localStorage.getItem(i.Yr.em_code_mode_pane_sizes)||50),Yt=(0,v.useRef)(qt);(0,v.useEffect)(()=>{Yt.current=qt},[qt]);let Xt=()=>{ce(!1),ae(oe)},Zt=()=>{let e=xe.querySelector(`.block-search__preview`);e&&(e.style.opacity=`0`,e.style.transform=`translateX(-99%)`,setTimeout(function(){e.remove()},300))},Qt=[],$t={display:`flex`,alignItems:`center`,justifyContent:`center`};D.blocksEmptyEnabled&&Qt.push({label:(0,C.jsx)(p.K,{placement:`top`,title:d(`Empty blocks`),children:(0,C.jsx)(`div`,{style:$t,children:(0,C.jsx)(m.d,{icon:`BorderOuterOutlined`,style:{fontSize:18}})})}),value:`empty`}),D.blocksSavedEnabled&&Qt.push({label:(0,C.jsx)(p.K,{placement:`top`,title:d(`Saved blocks`),children:(0,C.jsx)(`div`,{style:$t,children:(0,C.jsx)(m.d,{icon:`AppstoreAddOutlined`,style:{fontSize:18}})})}),value:`project`}),D.blocksCommonEnabled&&Qt.push({label:(0,C.jsx)(p.K,{placement:`top`,title:d(`Common blocks`),children:(0,C.jsx)(`div`,{style:$t,children:(0,C.jsx)(m.d,{icon:`AppstoreOutlined`,style:{fontSize:18}})})}),value:`common`}),D.blocksTemplateEnabled&&Qt.push({label:(0,C.jsx)(p.K,{placement:`top`,title:d(`Template blocks`),children:(0,C.jsx)(`div`,{style:$t,children:(0,C.jsx)(m.d,{icon:`BuildOutlined`,style:{fontSize:18}})})}),value:`template`}),D.blocksSearchEnabled&&Qt.push({label:(0,C.jsx)(p.K,{placement:`top`,title:d(`Blocks search`),children:(0,C.jsx)(`div`,{style:$t,children:(0,C.jsx)(m.d,{icon:`SearchOutlined`,style:{fontSize:18}})})}),value:`search`});let en=ie!==`empty`||se,tn=!D.blocksSectionsShow||en?`100%`:`calc(100% - 44px)`,nn=[{label:(0,C.jsx)(`div`,{className:`email-pane__tab`,children:d(`Elements`)}),key:i.Sr,forceRender:!0,className:`email-pane__collapse-panel email-pane__atoms`,children:(0,C.jsx)(b_,{})},{label:(0,C.jsx)(`div`,{className:`email-pane__tab`,children:d(`Blocks`)}),key:i.Tr,forceRender:!0,className:`email-pane__collapse-panel email-pane__blocks-search`,style:{height:tn},children:(0,C.jsxs)(`div`,{className:(0,E.default)(`email-pane__blocks-panel`,{"email-pane__blocks-panel_scrollable":en}),children:[D.blocksSectionsShow&&(0,C.jsxs)(`div`,{className:`email-pane__blocks-panel-header`,children:[(0,C.jsxs)(p.xt.Compact,{block:!0,children:[!se&&(0,C.jsx)(p.et,{block:!0,style:{width:`100%`,marginTop:24},onChange:It,value:ie,options:Qt}),se&&(0,C.jsx)(`div`,{style:{width:`100%`,height:36}}),se&&(0,C.jsx)(`div`,{style:{width:36,textAlign:`right`,marginTop:22},children:(0,C.jsx)(m.d,{icon:`CloseOutlined`,style:{padding:`0 2px 0`,cursor:`pointer`},onClick:Xt})})]}),(0,C.jsx)(`div`,{className:`blocks-search__divider-wrapper`,style:{marginTop:se?28:12},children:(0,C.jsx)(p.Nt,{className:`blocks-search__divider`})})]}),(0,C.jsxs)(`div`,{className:`email-pane__blocks-panel-body`,children:[(0,C.jsx)(`div`,{className:`blocks-search__empty-shadow`,style:{display:ie===`empty`&&!se?`block`:`none`},children:Tt?(0,C.jsx)(Ol,{}):(0,C.jsx)(El,{})}),(0,C.jsx)(`div`,{className:(0,E.default)(`email-pane__blocks-panel-results`,{"email-pane__blocks-panel-results_visible":en}),children:(0,C.jsx)(__,{parentEmailId:e?.parent_email,blocksTab:ie,search:se,reloadBlockScreens:ot,email:e,setIsShowAddAllBlocksModal:c})})]})]})}],rn=[{disabled:$e,key:i.si,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`},className:`em-analytics__email-tab-properties`,children:(0,C.jsx)(C.Fragment,{children:(!!Me?.type||!!Ne?.type||!!Ne?.content||!!Ne?.extraTabs?.length)&&(0,C.jsx)(`div`,{className:(0,E.default)(`email-pane__collapse-wrapper`,{"mobile-view":J,"mobile-properties":J&&G!==`Structure`}),onMouseLeave:Zt,children:(0,C.jsx)($p,{email:e,formSettings:Ne,onClosePanel:Ke})})})},{disabled:$e,key:i.Kr,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`},className:`em-analytics__email-tab-history`,children:yt&&(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,onMouseLeave:Zt,children:(0,C.jsx)(S_,{setCollapsedHistory:()=>w(i.Tn(!0)),emailElement:yt})})},{key:i.Nr,className:`em-analytics__email-tab-properties`},{disabled:$e,label:(0,C.jsx)(p.K,{placement:`left`,title:f(`Build`,`tab`),children:(0,C.jsx)(m.d,{"data-testid":`contentIcon`,icon:`PlusCircleOutlined`,size:24,strokeWidth:D.iconStrokeWidth})}),key:i.Dr,className:`em-analytics__email-tab-build`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(`div`,{className:(0,E.default)(`email-pane__collapse-wrapper`,{"email-pane__collapse-wrapper_no-topleft-radius":N===`Build`||!N,"email-pane__collapse-wrapper_build":mt===`Blocks`&&en}),onMouseLeave:Zt,children:(0,C.jsx)(p.$,{className:(0,E.default)(`secondary-tabs email-pane__collapse`,{"secondary-tabs_unset_scroll":mt===i.Tr}),size:`large`,activeKey:mt,onChange:Kt,items:nn})})},{disabled:$e,label:(0,C.jsx)(p.K,{styles:{body:{border:`2px dot-dash red`}},placement:`left`,title:f(`Styles`,`tab`),children:(0,C.jsx)(m.d,{"data-testid":`stylesIcon`,icon:`Styles`,size:24,strokeWidth:D.iconStrokeWidth})}),key:i.pi,className:`em-analytics__email-tab-styles`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,children:(0,C.jsx)(g_,{email:e})})}];D.commentsEnabled&&rn.push({disabled:$e,label:(0,C.jsxs)(p.K,{placement:`left`,title:f(`Discuss`,`tab`),children:[(0,C.jsx)(m.d,{"data-testid":`commentsIcon`,icon:`CommentOutlined`,size:24,strokeWidth:D.iconStrokeWidth}),Oe&&(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:D.iconStrokeWidth,className:`free-mode-firewall-icon free-mode-firewall-icon_emailpane`}),!!Dt.length&&(0,C.jsx)(`span`,{className:`email-pane__comment-counter`,children:Dt.filter(e=>e.comment_status!==`deleted`).length})]}),key:`Discuss`,className:`email-pane__tab-discuss em-analytics__email-tab-discuss`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,children:(0,C.jsx)(p.$,{className:`secondary-tabs email-settings__collapse discuss-wrapper`,size:`large`,activeKey:`Discuss`,items:[{label:(0,C.jsx)(C.Fragment,{children:d(`Discuss`)}),key:`Discuss`,forceRender:!0,className:`email-settings__collapse-panel`,children:Ae?(0,C.jsx)(Pu,{email:e,comments:Dt,subjectId:Ae,isLoggedIn:!0,emailElementType:je}):(0,C.jsx)(`div`,{className:`aside-content-wrapper`,children:e.hasOwnProperty(`type`)?(0,C.jsx)(p.Q,{description:d(`Save the block before commenting.`),type:`info`,showIcon:!0,style:{marginBottom:20}}):(0,C.jsx)(p.Q,{description:d(`Save the email before commenting.`),type:`info`,showIcon:!0,style:{marginBottom:20}})})}]})})});let an=()=>{K({entity_id:Ae}).then(e=>{e.error?k.error({message:e.error.data.code,description:e.error.data.message}):e.data.success&&k.success({message:d(`Success`),description:e.data.success}),ut(),fe(!1)})},on=()=>{fe(!1)};D.aiAssistentEnabled&&rn.push({disabled:$e,label:(0,C.jsxs)(p.K,{placement:`left`,title:f(`AI assistant`,`tab`),children:[(0,C.jsx)(m.d,{"data-testid":`aiAssistentIcon`,icon:`AI`,size:24,strokeWidth:D.iconStrokeWidth}),Oe&&(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:D.iconStrokeWidth,className:`free-mode-firewall-icon free-mode-firewall-icon_emailpane`}),lt?.totalCount>0&&Ae&&(0,C.jsx)(`span`,{className:`email-pane__comment-counter`,children:lt?.totalCount})]}),key:`AiChat`,className:`email-pane__tab-discuss em-analytics__email-tab-discuss`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(C.Fragment,{children:(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,children:(0,C.jsx)(p.$,{className:`secondary-tabs email-settings__collapse discuss-ai-wrapper`,size:`large`,activeKey:`AiChat`,tabBarExtraContent:(0,C.jsx)(p.K,{placement:`top`,title:d(`Clear chat`),children:(0,C.jsx)(p.X,{description:d(`Clear chat history?`),onConfirm:an,okText:d(`Yes`),cancelText:d(`No`),icon:``,placement:`leftTop`,title:!1,children:(0,C.jsx)(p.Rt,{type:`text`,icon:(0,C.jsx)(m.d,{icon:`ClearChat`,style:{fontSize:16}}),style:{marginRight:16}})})}),items:[{label:(0,C.jsx)(C.Fragment,{children:d(`AI assistant`)}),key:`AiChat`,forceRender:!0,className:`email-settings__collapse-panel`,children:Ae||window.localStorage.getItem(i.Yr.em_active_tab)?(0,C.jsx)(h_,{messages:ft.length>0?ft:[{data:{role:`assistant`,message:d(`Typing...`),isLoading:!0}}],newEmailAiGeneratorRef:He}):(0,C.jsx)(`div`,{className:`aside-content-wrapper`,children:e.hasOwnProperty(`type`)?(0,C.jsx)(p.Q,{description:d(`Save the block before commenting.`),type:`info`,showIcon:!0,style:{marginBottom:20}}):(0,C.jsx)(p.Q,{description:d(`Save the email before commenting.`),type:`info`,showIcon:!0,style:{marginBottom:20}})})}]})})})}),D.optimizeEnabled&&rn.push({disabled:$e,label:(0,C.jsxs)(p.K,{styles:{body:{border:`2px dot-dash red`}},placement:`left`,title:f(`Optimize`,`tab`),children:[(0,C.jsx)(m.d,{"data-testid":`optimizeIcon`,icon:`Speed`,size:24,strokeWidth:D.iconStrokeWidth}),Oe&&(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:D.iconStrokeWidth,className:`free-mode-firewall-icon free-mode-firewall-icon_emailpane`})]}),key:`Optimise`,className:`em-analytics__email-tab-optimise`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,children:(0,C.jsx)(p.$,{className:`secondary-tabs secondary-tabs_optimise email-settings__collapse optimise-wrapper`,size:`large`,activeKey:`Optimise`,items:[{label:(0,C.jsx)(C.Fragment,{children:d(`Optimize`)}),key:`Optimise`,forceRender:!0,className:`email-settings__collapse-panel`,children:(0,C.jsx)(Hg,{})}]})})}),D.settingsEnabled&&rn.push({disabled:$e,label:(0,C.jsx)(p.K,{placement:`left`,title:f(`Settings`,`tab`),children:(0,C.jsx)(`span`,{children:(0,C.jsx)(m.d,{"data-testid":`settingsIcon`,icon:`SettingOutlined`,size:24,strokeWidth:D.iconStrokeWidth})})}),key:`Edit`,className:`em-analytics__email-tab-edit`,style:{height:D.sidePanelFloating?V&&H===`bottom`?Ut:`calc(100% - 30px)`:`100%`,overflow:`hidden`},children:(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper`,children:(0,C.jsx)(x_,{email:e})})});let[sn,cn]=(0,v.useState)([]),[ln,un]=(0,v.useState)(!1),[dn,fn]=(0,v.useState)(0),[pn,mn]=(0,v.useState)(0),hn=xe.querySelector(`.email-pane__col_preview`)?.getBoundingClientRect().width-(D.sidePanelFloating?0:38),[gn,_n]=(0,v.useState)(null);(0,v.useEffect)(()=>{Ae&&Ot(Ae)},[Ae,Ot]),(0,v.useEffect)(()=>{let e=h.onInit(()=>{h.send({operation:i.Wr.SANDBOX_LOCK_EDIT,data:!1}),h.send({operation:i.Wr.SANDBOX_LOCK_DISCUSS,value:ln})});return()=>e.dispose()},[ln,h]),(0,v.useEffect)(()=>{if(sn.length<2){let t=ne?.getBoundingClientRect(),n=setInterval(e,50);cn(e=>[...e,n]);function e(){h.isInited()&&t&&(vt(),clearInterval(n))}}return clearInterval(sn[sn.length-1])},[sn,ne,vt,h]);let vn=(0,v.useCallback)((e=R)=>{h.send({operation:i.Wr.SANDBOX_IFRAME_SETSIZE,settings:{iframeWidth:e+2}}),Ie.current?.resize()},[R,h]);(0,v.useEffect)(()=>{if(un(N===i.Pr),N!==`Disabled_tab`){let e=xe.querySelector(`.email-pane__row`)?.getBoundingClientRect().width;Le?.current?.getBoundingClientRect().width+540>e&&w(i.vn(`100%`))}},[w,N,xe]);let yn=(0,v.useCallback)(()=>{let e=Le.current;e&&(e.style.borderWidth=`1px`,D.sidePanelFloating||(e.style.marginLeft=`-1px`,e.style.marginRight=`-1px`),e.style.borderLeftColor=null,e.style.borderRightColor=null)},[D.sidePanelFloating]),bn=(0,v.useCallback)(e=>{let t=Yt.current;wn(!1),gn&&(setTimeout(()=>vn(),50),_n(null)),e.target.classList.contains(`email-pane__handle`)||yn(),window.localStorage.setItem(i.Yr.em_code_mode_pane_sizes,JSON.stringify(t))},[vn,gn,yn]),xn=e=>t=>{t.target.classList.contains(`email-pane__handle`)&&(t.preventDefault(),fn(t.target.parentNode.offsetWidth),mn(t.pageX),_n(e),_t(e))},Sn=e=>{let t=Le.current;typeof e==`string`&&(!gn||gn===e)?(xe.querySelector(`.email-pane__iframe`).style.width=`calc(100% + 1px)`,e===`right`?(t.style.borderRightColor=O.colorPrimary,t.style.borderRightWidth=`2px`):(t.style.borderLeftColor=O.colorPrimary,t.style.borderLeftWidth=`2px`,xe.querySelector(`.email-pane__iframe`).style.marginLeft=`-1px`)):gn||(yn(),xe.querySelector(`.email-pane__iframe`).style.width=`1px`,xe.querySelector(`.email-pane__iframe`).style.removeProperty(`margin-left`))},[Cn,wn]=(0,v.useState)(!1),Tn=()=>wn(!0),En=(0,v.useCallback)(e=>{if(!gn)return;let t=(e.pageX-pn)*2,n=dn+(gn===`left`?-t:t);if(n>318&&n<Math.min(hn,l)){let e=Math.min(n,l);w(i.vn(e)),typeof e==`number`&&e<=425?J||Y(!0):J&&Y(!1),Ie.current?.resize()}},[w,dn,pn,gn,hn,J,Y]),Dn=(0,v.useCallback)(e=>{if(Cn)if(H===`bottom`){let t=Be.current.getBoundingClientRect().height,n=Be.current.getBoundingClientRect().top,r=(e.clientY-n)/t*100;if(r<20||r>80)return;Jt(r),Gt()}else{let t=Be.current.getBoundingClientRect().width,n=Be.current.getBoundingClientRect().left,r=(e.clientX-n)/t*100,a=Le.current.getBoundingClientRect().width;if(D.desktopMobileSwitchPanel&&typeof a==`number`&&a<=425&&(w(i.vn(425)),J||Y(!0)),r<20||r>80)return;Jt(r)}},[Cn,H,Gt,J,w,D.desktopMobileSwitchPanel,Y]);(0,v.useEffect)(()=>{Gt()},[V,Gt]);let On=e=>{e?.stopPropagation?.();let t=te===`light`?i.Ar:i.qr;h.send({operation:i.Wr.SANDBOX_SWITCH_THEME,data:{theme:t}}),X(t)},kn=(e=`panel`)=>{let t=e===`panel`,n=te===i.Ar;return(0,C.jsx)(p.K,{title:d(n?`Light theme`:`Dark theme`),placement:t?`top`:`bottom`,children:(0,C.jsx)(p.Rt,{type:t?n?`primary`:`text`:`default`,icon:(0,C.jsx)(m.d,{icon:n?`LightMode`:`DarkMode`,size:t?18:16,strokeWidth:t?D.iconStrokeWidth:2}),shape:`circle`,size:t?void 0:`small`,onClick:On,className:`toggle_view theme_view email-pane__theme-toggle`,style:t?void 0:{left:4,top:4,zIndex:999,padding:0,position:`absolute`}})})},An=t=>{let n=typeof t==`number`?Math.min(t,l):t;w(i.vn(n)),setTimeout(()=>vn(n),700),typeof n==`number`&&n<=425?J||Y(!0):J&&Y(!1);let r=typeof n==`number`?n:n===`100%`?`full`:n,a=typeof n==`number`&&n<=425?`mobile`:`desktop`;A({event:`change`,action:`change_email_size`,email_id:e?.id||y||b,project_id:j?.id||x,width:r,view_type:a})};(0,v.useEffect)(()=>{let e=new i.Da;return e.addDisposable($d(xe,`mousedown`,Ct,!0)),e.addDisposable($d(xe,`click`,wt)),e.addDisposable($d(xe,`mouseup`,e=>bn(e,qt),!0)),()=>{e.dispose()}},[xe,wt,Ct,bn]),(0,v.useEffect)(()=>(window.addEventListener(`scroll`,Gt,!0),window.addEventListener(`mousemove`,En,!0),window.addEventListener(`mousemove`,Dn),window.addEventListener(`keydown`,bt),()=>{window.removeEventListener(`mousemove`,En,!0),window.removeEventListener(`mousemove`,Dn),window.removeEventListener(`scroll`,Gt,!0),window.removeEventListener(`keydown`,bt)}));let jn=t=>{let n=V?`visual`:`code`,r=!V;if(V?w(i.Cn()):typeof t==`string`?(w(i.wn(t)),!V&&w(i.Cn())):w(i.Cn()),r){let n=je===`block`?`block`:`email`,r=typeof t==`string`?t:H||`toggle`;A({event:`activate`,action:`activate_code_mode`,entity_type:n,entity_id:e?.id||y||b,project_id:j?.id||x,code_mode_direction:r})}A({event:`change`,action:`change_editor_mode`,editor_mode:n,entity_id:e?.id||y||b,project_id:j?.id||x}),w(i.nn()),setTimeout(()=>{w(je===`block`?u._({type:null}):u.L({type:null}))},300),h.send({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET}),w(u.n())},[Mn,Nn]=(0,v.useState)(D.emailPaneDesktopSize||R);(0,v.useEffect)(()=>{D.emailPaneDesktopSize&&w(i.vn(D.emailPaneDesktopSize))},[w,D.emailPaneDesktopSize]),(0,v.useEffect)(()=>{Nn(V&&H!==`bottom`&&!J&&D.desktopMobileSwitchPanel?`100%`:R)},[w,D.emailPaneDesktopSize,V,H,J,D.desktopMobileSwitchPanel,R]);let Pn=()=>{ht(i.Tr),It(`project`)};return(0,v.useEffect)(()=>{s&&Pn()},[s]),(0,C.jsxs)(p.G,{className:(0,E.default)(`email-pane`,{"email-pane_code-mode":V,"email-pane_only_code_mode_mobile":D.onlyCodeModeInMobile,"email-pane_code-mode-bottom":V&&H===`bottom`,"email-pane_no-element-navigation":!D.switchDesktopMobilePropsEnabled&&!D.stepToOtherElementEnabled&&!D.deleteButtonEnabled,"email-pane_is-mobile":J,"email-pane_path-enabled":D.pathEnabled}),children:[(0,C.jsxs)(m_,{className:`email-pane__container`,ref:ze,children:[(Me?.type===i.zr.TEXT||Me?.type===i.zr.LINK||Me.type===i.zr.IMG||Me.type===i.zr.BUTTON)&&V&&H!==`bottom`&&(0,C.jsx)(Yp,{className:(0,E.default)(`selected-element-panel__content selected-element-panel__content_abs`,{"selected-element-panel__hidden":Me.type===i.zr.IMG}),emailElementType:je,formSettings:Ne}),he&&J&&(0,C.jsx)(p.Q,{message:d(`Template is not mobile-friendly`),description:d(`While editing, some elements of the email no longer fit the screen of the mobile device. Check that these elements are set to a smaller width for mobile devices.`),type:`warning`,className:`email-pane__col__alert`,closable:!0}),_e&&i.ii.isPlugin&&D.templateNotEmAlertShow&&(0,C.jsx)(p.Q,{message:d(`Template from another editor`),description:d(`This template was created in another editor. Rebuild it from our components to get stable rendering, error-free editing, and full design control.`),type:`warning`,className:`email-pane__col__alert`,closable:!0}),(0,C.jsxs)(p.At,{ref:Be,className:(0,E.default)(`email-pane__row`,{"email-pane__left":V&&H===`right`,"email-pane__right":V&&H===`left`,"email-pane__bottom":V&&H===`bottom`,"email-pane__sizeSwitcher":D.desktopMobileSwitchPanel,"email-pane__reverse":D.menuDirection===`left`,"email-pane__pinch":!D.sidePanelFloating}),children:[(0,C.jsxs)(p.kt,{style:{flexGrow:1,overflowY:D.sidePanelFloating?`scroll`:`hidden`,overflowX:`hidden`,height:V&&H===`bottom`?`calc(${qt}%)`:`100%`,width:`${H===`left`?100-qt:H===`bottom`?100:qt}%`},id:`pane-content-wrapper`,ref:D.sidePanelFloating?Re:null,children:[(0,C.jsx)(`div`,{className:`email-pane__iframe-scroll-top`,id:`iframe-scroll-top`}),D.desktopMobileSwitchPanel&&(0,C.jsxs)(p.xt,{className:`email-pane__sizes-panel-wrapper`,direction:`vertical`,size:10,children:[(0,C.jsxs)(p.xt,{className:`email-pane__sizes-panel`,size:0,children:[kn(`panel`),(0,C.jsx)(p.K,{title:d(`Desktop view`),placement:`top`,open:qe,children:(0,C.jsx)(p.Rt,{type:J?`text`:`primary`,icon:(0,C.jsx)(m.d,{icon:`DesktopOutlined`,size:18,strokeWidth:D.iconStrokeWidth}),shape:`circle`,onClick:()=>An(D.emailPaneDesktopSize||1e3),className:`toggle_view desktop_view`})}),(0,C.jsx)(p.K,{title:d(`Mobile view`),placement:`top`,open:Ye,children:(0,C.jsx)(p.Rt,{type:J?`primary`:`text`,icon:(0,C.jsx)(m.d,{icon:`MobileOutlined`,size:18,strokeWidth:D.iconStrokeWidth}),shape:`circle`,onClick:()=>An(425),className:`toggle_view mobile_view`})})]}),D.codeSideEnabled&&(0,C.jsx)(p.K,{title:d(`Code mode`),placement:`right`,children:(0,C.jsx)(p.Rt,{type:V?`primary`:`default`,icon:(0,C.jsx)(m.d,{icon:`Code`}),shape:`circle`,onClick:()=>jn(`right`)})})]}),(0,C.jsxs)(p.At,{className:(0,E.default)(`email-pane__col-wrapper`,{container:V&&H===`bottom`||!V,"email-pane__col-wrapper_reverse":D.menuDirection===`left`,"email-pane__col-wrapper_pinch":!D.sidePanelFloating}),style:{flexGrow:1,maxWidth:`unset`,paddingTop:D.desktopMobileSwitchPanel&&V&&H!==`bottom`?`60px`:``},children:[(0,C.jsxs)(p.kt,{className:`email-pane__col email-pane__col_preview`,style:{flexGrow:1,maxWidth:`unset`},ref:D.sidePanelFloating?null:Re,children:[D.desktopMobileSwitchRule&&(0,C.jsx)(`div`,{className:`email-pane__sizes ${kt}`,children:(0,C.jsxs)(`div`,{className:`email-pane__width-selectors-wrapper`,children:[(0,C.jsx)(`div`,{className:`device-width__theme`,children:kn(`rule`)}),(0,C.jsx)(`div`,{className:`device-width__full`,style:{flexGrow:1},onMouseEnter:()=>{At(`device-width__full-hovered`),Mt(d(`Desktop`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(1200)}),(0,C.jsx)(`div`,{className:`device-width__768`,style:{width:342/2},onMouseEnter:()=>{At(`device-width__768-hovered`),Mt(d(`Small desktop – 768px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(768)}),(0,C.jsx)(`div`,{className:`device-width__425`,style:{width:50/2},onMouseEnter:()=>{At(`device-width__425-hovered`),Mt(d(`Mobile L – 425px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(425)}),(0,C.jsx)(`div`,{className:`device-width__375`,style:{width:56/2},onMouseEnter:()=>{At(`device-width__375-hovered`),Mt(d(`Mobile M – 375px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(375)}),(0,C.jsx)(`div`,{className:`device-width__320`,style:{width:320},onMouseEnter:()=>{At(`device-width__320-hovered`),Mt(d(`Mobile S – 320px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(320),children:jt}),(0,C.jsx)(`div`,{className:`device-width__375`,style:{width:56/2},onMouseEnter:()=>{At(`device-width__375-hovered`),Mt(d(`Mobile M – 375px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(375)}),(0,C.jsx)(`div`,{className:`device-width__425`,style:{width:50/2},onMouseEnter:()=>{At(`device-width__425-hovered`),Mt(d(`Mobile L – 425px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(425),children:(0,C.jsx)(p.K,{title:d(`Mobile view`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`default`,icon:(0,C.jsx)(m.d,{icon:`MobileOutlined`,size:16,strokeWidth:2}),size:`small`,shape:`circle`,style:{right:-12,top:4,zIndex:999,padding:0,position:`absolute`,onClick:()=>An(425)}})})}),(0,C.jsx)(`div`,{className:`device-width__768`,style:{width:342/2},onMouseEnter:()=>{At(`device-width__768-hovered`),Mt(d(`Small desktop – 768px`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(768),children:(0,C.jsx)(p.K,{title:d(`Desktop view`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`default`,icon:(0,C.jsx)(m.d,{icon:`DesktopOutlined`,size:16,strokeWidth:2}),size:`small`,shape:`circle`,style:{right:-12,top:4,zIndex:999,padding:0,position:`absolute`,onClick:()=>An(768)}})})}),(0,C.jsx)(`div`,{className:`device-width__full`,style:{flexGrow:1},onMouseEnter:()=>{At(`device-width__full-hovered`),Mt(d(`Desktop`))},onMouseLeave:()=>{At(``),Mt(``)},onClick:()=>An(1200)})]})}),(0,C.jsxs)(`div`,{className:(0,E.default)(`email-pane__resizable`,{"email-pane__resizable_drag":gn||Cn}),style:{maxWidth:typeof Mn==`number`?Math.min(Mn,l):l},children:[(0,C.jsx)(`div`,{className:`email-pane__handle left`,onMouseDown:xn(`left`),onMouseEnter:()=>Sn(`left`),onMouseLeave:Sn}),(0,C.jsx)(`div`,{className:`email-pane__handle right`,onMouseDown:xn(`right`),onMouseEnter:()=>Sn(`right`),onMouseLeave:Sn}),(0,C.jsx)(`div`,{className:(0,E.default)(`email-pane__content-col email-pane__content-col_main`,{"email-pane__content-col_disable":gn||Cn}),ref:Le,id:`pane-content-iframe`,children:(0,C.jsx)(y_,{ref:Ie,className:`email-pane__iframe`,email:e,handlerSendPosition:Gt})})]})]}),(0,C.jsx)(p.kt,{style:{display:V&&H!==`bottom`||D.disableSideMenu?`none`:`initial`},ref:Ht,className:(0,E.default)(`email-pane__content-col email-pane__content-col_menu email-pane__content-col_tabs email-pane__col email-pane__col_settings`,{"email-pane__col_disabled":N===i.Nr}),children:(!V||H===`bottom`)&&(0,C.jsx)(p.$,{className:(0,E.default)(`email-pane__col_settings-inner`,{"email-pane__col_settings-inner_reverse":D.menuDirection===`left`}),size:`middle`,activeKey:N,onTabClick:Vt,renderTabBar:p_,tabPosition:`right`,items:rn,tabBarExtraContent:ke&&(0,C.jsx)(`div`,{style:{paddingTop:15,textAlign:`center`},children:F||P.id?.toString()!==j?.members?.owner.ID?(0,C.jsx)(p.bt,{variant:`editorMode`,checkedChildren:`Pro`,unCheckedChildren:`Pro`,onChange:Rt,defaultChecked:at}):(0,C.jsx)(p.bt,{variant:`editorMode`,checkedChildren:`Pro`,unCheckedChildren:`Pro`,onChange:Rt,checked:rt})})})})]}),(0,C.jsx)(`div`,{className:`email-pane__iframe-scroll-bottom`,id:`iframe-scroll-bottom`})]}),(0,C.jsxs)(p.kt,{style:{width:`${H===`right`?100-qt:H===`bottom`?100:qt}%`,position:`relative`,height:H===`bottom`?`calc(${100-qt}%)`:`unset`,display:V?`initial`:`none`},children:[(0,C.jsx)(`div`,{className:`email-pane__code-divider`,onMouseDown:Tn}),(0,C.jsx)(`div`,{className:`code-mode__pane code-mode__pane_editor email-pane__pane email-pane__pane_editor`,children:(0,C.jsx)(`div`,{className:`code-mode__pane-content email-pane__pane-content`,children:(0,C.jsx)(v_,{email:e,setOtherUsers:me,readOnly:D.lockEditor,newEmailAiGeneratorRef:He})})})]})]}),D.pathEnabled&&(0,C.jsxs)(`div`,{className:`email-pane__paths`,children:[(0,C.jsx)(_g,{elementPath:le}),(0,C.jsx)(p.K,{placement:`left`,title:d(De?`The code size exceeds the recommended value 90kB`:`Code size`),children:(0,C.jsx)(`span`,{className:(0,E.default)(`email-pane__code-size`,{"email-pane__code-size_exceeded":De}),children:Ee})})]}),(0,C.jsx)(`div`,{className:`collaborator-list`,children:(0,C.jsx)(_.t,{users:pe,isEditor:i.kr.isEditor,isPlugin:i.ii.isPlugin,token:O})})]}),Ne?.type===`img`&&V&&H!==`bottom`&&(0,C.jsx)(`div`,{className:`email-pane__collapse-wrapper email-pane__collapse-wrapper_disabled`,children:(0,C.jsx)($p,{email:e,formSettings:Ne,onClosePanel:Ke})}),(0,C.jsx)(qg,{}),(0,C.jsx)(m.p,{open:$e,onCancel:zt,initialSlide:tt}),(0,C.jsx)(p.Z,{title:d(`Warning`),open:de,onOk:an,onCancel:on,children:(0,C.jsx)(`p`,{children:d(`Clear chat history?`)})}),(0,C.jsx)(Ug,{open:ye,onClose:be})]})};C_.propTypes={};var w_=r.a(((e,t)=>{(function(){var e=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return n.rotl(e,8)&16711935|n.rotl(e,24)&4278255360;for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(Math.random()*256));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<e.length*32;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((e[n]&15).toString(16));return t.join(``)},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(t){for(var n=[],r=0;r<t.length;r+=3)for(var i=t[r]<<16|t[r+1]<<8|t[r+2],a=0;a<4;a++)r*8+a*6<=t.length*8?n.push(e.charAt(i>>>6*(3-a)&63)):n.push(`=`);return n.join(``)},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,``);for(var n=[],r=0,i=0;r<t.length;i=++r%4)i!=0&&n.push((e.indexOf(t.charAt(r-1))&2**(-2*i+8)-1)<<i*2|e.indexOf(t.charAt(r))>>>6-i*2);return n}};t.exports=n})()})),T_=r.a(((e,t)=>{var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n)&255);return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join(``)}}};t.exports=n})),E_=r.a(((e,t)=>{t.exports=function(e){return e!=null&&(n(e)||r(e)||!!e._isBuffer)};function n(e){return!!e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}function r(e){return typeof e.readFloatLE==`function`&&typeof e.slice==`function`&&n(e.slice(0,0))}})),D_=r.a(((e,t)=>{(function(){var e=w_(),n=T_().utf8,r=E_(),i=T_().bin,a=function(t,o){t.constructor==String?t=o&&o.encoding===`binary`?i.stringToBytes(t):n.stringToBytes(t):r(t)?t=Array.prototype.slice.call(t,0):!Array.isArray(t)&&t.constructor!==Uint8Array&&(t=t.toString());for(var s=e.bytesToWords(t),c=t.length*8,l=1732584193,u=-271733879,d=-1732584194,f=271733878,p=0;p<s.length;p++)s[p]=(s[p]<<8|s[p]>>>24)&16711935|(s[p]<<24|s[p]>>>8)&4278255360;s[c>>>5]|=128<<c%32,s[(c+64>>>9<<4)+14]=c;for(var m=a._ff,h=a._gg,g=a._hh,_=a._ii,p=0;p<s.length;p+=16){var v=l,y=u,b=d,x=f;l=m(l,u,d,f,s[p+0],7,-680876936),f=m(f,l,u,d,s[p+1],12,-389564586),d=m(d,f,l,u,s[p+2],17,606105819),u=m(u,d,f,l,s[p+3],22,-1044525330),l=m(l,u,d,f,s[p+4],7,-176418897),f=m(f,l,u,d,s[p+5],12,1200080426),d=m(d,f,l,u,s[p+6],17,-1473231341),u=m(u,d,f,l,s[p+7],22,-45705983),l=m(l,u,d,f,s[p+8],7,1770035416),f=m(f,l,u,d,s[p+9],12,-1958414417),d=m(d,f,l,u,s[p+10],17,-42063),u=m(u,d,f,l,s[p+11],22,-1990404162),l=m(l,u,d,f,s[p+12],7,1804603682),f=m(f,l,u,d,s[p+13],12,-40341101),d=m(d,f,l,u,s[p+14],17,-1502002290),u=m(u,d,f,l,s[p+15],22,1236535329),l=h(l,u,d,f,s[p+1],5,-165796510),f=h(f,l,u,d,s[p+6],9,-1069501632),d=h(d,f,l,u,s[p+11],14,643717713),u=h(u,d,f,l,s[p+0],20,-373897302),l=h(l,u,d,f,s[p+5],5,-701558691),f=h(f,l,u,d,s[p+10],9,38016083),d=h(d,f,l,u,s[p+15],14,-660478335),u=h(u,d,f,l,s[p+4],20,-405537848),l=h(l,u,d,f,s[p+9],5,568446438),f=h(f,l,u,d,s[p+14],9,-1019803690),d=h(d,f,l,u,s[p+3],14,-187363961),u=h(u,d,f,l,s[p+8],20,1163531501),l=h(l,u,d,f,s[p+13],5,-1444681467),f=h(f,l,u,d,s[p+2],9,-51403784),d=h(d,f,l,u,s[p+7],14,1735328473),u=h(u,d,f,l,s[p+12],20,-1926607734),l=g(l,u,d,f,s[p+5],4,-378558),f=g(f,l,u,d,s[p+8],11,-2022574463),d=g(d,f,l,u,s[p+11],16,1839030562),u=g(u,d,f,l,s[p+14],23,-35309556),l=g(l,u,d,f,s[p+1],4,-1530992060),f=g(f,l,u,d,s[p+4],11,1272893353),d=g(d,f,l,u,s[p+7],16,-155497632),u=g(u,d,f,l,s[p+10],23,-1094730640),l=g(l,u,d,f,s[p+13],4,681279174),f=g(f,l,u,d,s[p+0],11,-358537222),d=g(d,f,l,u,s[p+3],16,-722521979),u=g(u,d,f,l,s[p+6],23,76029189),l=g(l,u,d,f,s[p+9],4,-640364487),f=g(f,l,u,d,s[p+12],11,-421815835),d=g(d,f,l,u,s[p+15],16,530742520),u=g(u,d,f,l,s[p+2],23,-995338651),l=_(l,u,d,f,s[p+0],6,-198630844),f=_(f,l,u,d,s[p+7],10,1126891415),d=_(d,f,l,u,s[p+14],15,-1416354905),u=_(u,d,f,l,s[p+5],21,-57434055),l=_(l,u,d,f,s[p+12],6,1700485571),f=_(f,l,u,d,s[p+3],10,-1894986606),d=_(d,f,l,u,s[p+10],15,-1051523),u=_(u,d,f,l,s[p+1],21,-2054922799),l=_(l,u,d,f,s[p+8],6,1873313359),f=_(f,l,u,d,s[p+15],10,-30611744),d=_(d,f,l,u,s[p+6],15,-1560198380),u=_(u,d,f,l,s[p+13],21,1309151649),l=_(l,u,d,f,s[p+4],6,-145523070),f=_(f,l,u,d,s[p+11],10,-1120210379),d=_(d,f,l,u,s[p+2],15,718787259),u=_(u,d,f,l,s[p+9],21,-343485551),l=l+v>>>0,u=u+y>>>0,d=d+b>>>0,f=f+x>>>0}return e.endian([l,u,d,f])};a._ff=function(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},a._gg=function(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},a._hh=function(e,t,n,r,i,a,o){var s=e+(t^n^r)+(i>>>0)+o;return(s<<a|s>>>32-a)+t},a._ii=function(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+(i>>>0)+o;return(s<<a|s>>>32-a)+t},a._blocksize=16,a._digestsize=16,t.exports=function(t,n){if(t==null)throw Error(`Illegal argument `+t);var r=e.wordsToBytes(a(t,n));return n&&n.asBytes?r:n&&n.asString?i.bytesToString(r):e.bytesToHex(r)}})()})),O_=r.l(D_()),k_=e=>e.replace(/[\\]/g,`\\\\`).replace(/["]/g,`\\"`).replace(/[/]/g,`\\/`).replace(/[\b]/g,`\\b`).replace(/[\f]/g,`\\f`).replace(/[\n]/g,`\\n`).replace(/[\r]/g,`\\r`).replace(/[\t]/g,`\\t`),A_=({isModalVisible:e=!1,email:t=null})=>{let{__:n}=p.v(),[r]=p.It.useForm(),s=i.lr(),{emailId:c}=(0,S.useParams)(),l=p.i(),u=i.cr(i.n),d=i.cr(i.V),[f,h]=a.Dn(),{token:g}=p.Vt(),y=i.ur(),[b,x]=(0,v.useState)(!1);i.Wt();let w=t.project,[T,E]=i.pt(),{data:D}=i.ft.endpoints.getProject.select(+w)(y.getState()),{testEmails:O}=i.Wt(),[k,A]=(0,v.useState)([]),[j,M]=(0,v.useState)(!1),N=p.h(i.ea.ON_SEND_EMAIL_MODAL_ID);(0,v.useEffect)(()=>{i.ii.isPlugin&&e?N.fire(t).then(t=>{t.some(e=>e===!1)?s(o.t()):x(e)}):x(e)},[e,s,x,t,N]),(0,v.useEffect)(()=>{if(D&&!i.ii.isPlugin){let{owner:e,admins:t,users:n,invited_users:r}=D.members,a=[],o=localStorage.getItem(i.Yr.em_test_emails)?JSON.parse(localStorage.getItem(i.Yr.em_test_emails)):[];if(o.length&&o[w]&&o[w].map(({prevLSEmail:e})=>a.push(e)),r&&r.map(({invited_user_email:e})=>a.push(e)),n&&n.map(({user_email:e})=>a.push(e)),e&&a.push(e.user_email),t&&t.map(({user_email:e})=>a.push(e)),D.projects_test_emails){let e=D.projects_test_emails.map(({projects_test_email:e})=>e);a.push(...e)}let s=Array.from(new Set(a));a.length&&A(s.map(e=>({value:e})))}},[D,w]),(0,v.useEffect)(()=>{i.ii.isPlugin&&A(O.map(e=>({value:e})))},[O]),(0,v.useEffect)(()=>{let e=localStorage.getItem(i.Yr.em_test_emails);if(e&&b&&r.getFieldValue(`recipients`)?.length===0){let t=JSON.parse(e);t?.[w]&&r.setFieldsValue({recipients:t[w]})}},[w,b,r]),(0,v.useEffect)(()=>{r.setFieldsValue({subject:t.subject})},[r,t.subject]);let P=()=>{s(o.t()),r.resetFields()},F=_.l(),I=()=>{r.validateFields().then(()=>{f({user_id:u.id,project_id:w,email_id:c,subject:r.getFieldValue(`subject`),email:r.getFieldValue(`recipients`).join(`,`),html:k_(F?.getValue()||``)}).unwrap().catch(e=>{l.error({error:{data:{code:e?.data?.code,message:e?.data?.message}}})}),M(!0),pushToDataLayer({event:`submit`,action:`send_test_email`,entity_id:c,project_id:w,recipients_count:r.getFieldValue(`recipients`).length})}).catch(e=>{})},L=v.default.useRef(d);return L.current=d,(0,v.useEffect)(()=>{let e=L.current;if(h.isSuccess&&j){if(h.data?.status!==200&&!i.ii.isPlugin)l.error({error:{data:{code:h.data?.code,message:h.data?.message}}});else{let a=[...new Set([...k.map(e=>e.value),...r.getFieldValue(`recipients`)])].map(e=>({projects_test_email:e}));((e,t)=>{if(!e||!t)return e===t;if(e.length!==t.length)return!1;let n=e.map(e=>e.projects_test_email).sort(),r=t.map(e=>e.projects_test_email).sort();return n.every((e,t)=>e===r[t])})(a,e)||T({projectId:w,projects_test_emails:a});let o=localStorage.getItem(i.Yr.em_test_emails)?JSON.parse(localStorage.getItem(i.Yr.em_test_emails)):[],s=r.getFieldValue(`recipients`);localStorage.setItem(i.Yr.em_test_emails,JSON.stringify({...o,[w]:[...new Set(s)]})),l.success(n(`The email “`)+t.title+n(`” was successfully sent.`))}M(!1),r.resetFields(),s(o.t())}},[h,r,w,T,k,j,s,t.title,E,n]),(0,v.useEffect)(()=>{E.isError&&(l.error(E),M(!1),r.resetFields(),s(o.t()))},[s,E,r]),(0,v.useEffect)(()=>{r.setFieldsValue({subject:t.subject||t.title})},[t,r]),(0,C.jsx)(p.Z,{width:572,title:(0,C.jsxs)(`div`,{style:{paddingBottom:8},children:[(0,C.jsx)(m.d,{icon:`SendOutlined`,size:20,strokeWidth:2}),` `,n(`Send a test email`)]}),open:b,onCancel:P,footer:[(0,C.jsx)(p.Rt,{size:`large`,className:`em-analytics__email-send-test`,type:`primary`,htmlType:`submit`,form:`Send mail`,loading:E.isLoading,icon:(0,C.jsx)(m.d,{icon:`SendOutlined`,size:18,strokeWidth:2,className:`email-preview-menu__list-item-icon`}),onClick:I,disabled:h.isLoading,children:n(`Send`)},`submit`)],forceRender:!0,children:(0,C.jsxs)(p.It,{form:r,layout:`vertical`,name:`send_mail_form`,initialValues:{subject:t.subject||t.title,recipients:[]},autoComplete:`off`,children:[(0,C.jsx)(p.It.Item,{label:n(`Subject`),name:`subject`,rules:[{required:!1,message:n(`Please type subject`)}],children:(0,C.jsx)(p.jt,{size:`large`,placeholder:n(`Type subject`)})}),(0,C.jsx)(p.It.Item,{label:n(`Recipients`),name:`recipients`,tooltip:{title:n(`The test email will be sent to the specified addresses.`),icon:(0,C.jsx)(m.d,{icon:`InfoCircleOutlined`})},rules:[{required:!0,validator:(e,t)=>t.length>10?Promise.reject(Error(n(`A test email can be sent to a maximum of 10 addresses.`))):t.length===0?Promise.reject(Error(n(`Please type emails`))):t.every(e=>i.p.test(e.toLowerCase()))?Promise.resolve():Promise.reject(Error(n(`Please type correct emails`)))}],children:(0,C.jsx)(p.St,{size:`large`,mode:`tags`,placeholder:n(`Add up to 10 recipients`),tooltip:{title:`Tooltip with customize icon`,icon:(0,C.jsx)(m.d,{icon:`InfoCircleOutlined`})},options:k,tagRender:e=>{let{label:t,closable:n,onClose:r}=e;return(0,C.jsx)(p.it,{color:g.colorPrimary,onMouseDown:e=>{e.preventDefault(),e.stopPropagation()},closable:n,onClose:r,style:{borderRadius:6},children:t})},getPopupContainer:()=>document.getElementById(`send_mail_form`)})})]})})};A_.propTypes={isModalVisible:b.default.bool,email:b.default.shape({html:b.default.string,subject:b.default.string})};var j_=e=>{let t=i.cr(i.n),[n,r]=(0,v.useState)({owner:!1,admin:!1}),a=(0,S.useOutletContext)(),{data:o}=i.ht(e,{skip:!e||!t.id||!a?.isUninitialized}),s=a?.data||o;return(0,v.useEffect)(()=>{if(s){let{owner:e,admins:n,users:i}=s.members,a=n&&n.map(e=>e.ID),o=i&&i.map(e=>e.ID);r({owner:e.ID?.toString()===t.id?.toString(),admin:a&&a.includes(t.id),user:o&&o.includes(t.id)})}},[s,t.id]),n},M_=m.s(`preview_exceeded`),N_=({emailElement:e,isCollaborationEditor:t})=>{let{__:n}=p.v(),r=i.lr(),s=i.et(),{emailId:c,blockId:l}=(0,S.useParams)(),d=i.cr(o.s),[f,h]=(0,v.useState)(!1),[g,y]=a.Tn(),b=(0,S.useNavigate)(),x=i.cr(i.n),[w]=i.Tt(c),[T]=i.Fn(l),[E]=o.h(),{owner:D}=j_(),O=_.l(),k=_.p(O),A=_.m(O),j=i.cr(i.dn),M=i.cr(i.cn),N=i.cr(i.an),{token:P}=p.Vt(),F=p.i(),I=i.Wt(),L=e.hasOwnProperty(`type`)?i.wr:i.Br,R=p.h(i.ea.ON_SHARE_ID),z=p.h(i.ea.ON_SHOW_PREVIEW_ID),[B,V]=(0,v.useState)(!1),[H,ee]=(0,v.useState)(0),[U,W]=(0,v.useState)(!1),[G,K]=(0,v.useState)(n(`—`)),q=i.cr(i.B),J=!i.cr(i.r)&&x.id?.toString()===q?.members?.owner.ID,Y=i.G(),te=c?`emailId`:`blockId`,X=e?.project,ne=t=>{let n=L===`block`?`block`:`email`;typeof t==`string`?(r(i.wn(t)),!M&&r(i.Cn())):r(i.Cn()),Y({event:`activate`,action:`activate_code_mode`,entity_type:n,entity_id:e?.id||c||l,project_id:e?.project||X}),setTimeout(()=>{r(L===`block`?u._({type:null}):u.L({type:null}))},300),s({operation:i.Wr.SANDBOX_ELEMENT_ACTIVE_RESET}),J&&(V(!0),ee(1))},re=(0,v.useCallback)(async()=>{if(i.ii.isPlugin)return!0;let e=m.a(`preview`,(await E(`preview`)).data?.stats);return e?(K(e.previousLimit),W(!0),!1):!0},[E]),ie=async()=>{await re()&&(r(o.r(i.$r.SEND_TEST_EMAIL)),Y({event:`open`,action:`open_test_email_modal`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X}))},ae=()=>{k.undo()},oe=()=>{k.redo()},Z=async()=>{let t=(await R.fire({project:X,id:c})).find(e=>e===!1||typeof e==`string`);t!==!1&&navigator.clipboard.writeText(t||`https://app.emailmaker.ru/email/${c}/raw?key=${(0,O_.default)(`${X}${c}d41d8`)}`).then(()=>{F.success(n(`A shareable link to this page has been copied to the clipboard.`)),Y({event:`click`,action:`share_email`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X})})},se=async()=>{if(!f){if(!await re())return;g({email:c,subject:encodeURIComponent(`#`+e.project+` `+e.title).replaceAll(/%20/gi,`+`).replaceAll(/%0A/gi,`%0D%0A`),content:encodeURIComponent(O?.getValue()||``).replaceAll(/%20/gi,`+`).replaceAll(/%0A/gi,`%0D%0A`)}),h(!0),Y({event:`click`,action:`open_email_inbox_tests`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X})}},ce=(0,v.useCallback)(async()=>{await re()&&(K(n(`—`)),W(!0))},[n,re]);(0,v.useEffect)(()=>{y.isError&&(F.error(y),h(!1))},[y]),(0,v.useEffect)(()=>{if(y.isSuccess&&f){if(y.data?.status===401)F.error({message:y.data.code,description:y.data.message});else if(y.data){let e=document.createElement(`A`);e.setAttribute(`target`,`_blank`),e.setAttribute(`href`,y.data.message),e.click()}h(!1)}},[y,f,F]);let[le,ue]=(0,v.useState)(!1),de=()=>{s({operation:i.Wr.SANDBOX_LOCK_EDIT,data:j}),r(i.Tn(!j))},fe=c?w:T,pe=()=>{j?(ue(!0),fe({[te]:e?.id}).then(t=>{t.isSuccess?t.data.data.length===0&&!i.ii.isPlugin&&F.error({message:n(`No history records available.`)}):t.isError&&F.error(t),de(),r(i.hn(i.Kr)),ue(!1),Y({event:`open`,action:`open_version_control`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X}),J&&(V(!0),ee(4))})):(r(i.nn()),de())},me=()=>{j||(de(),r(i.nn())),M&&r(i.Cn()),V(!1)},he=[],ge=(0,v.useCallback)(async()=>{let t=await z.fire({project:X,id:c});t.find(e=>e===!1||typeof e==`string`)!==!1&&(window.open(t.find(e=>e)||`/email/${c}/raw?key=${(0,O_.default)(`${X}${c}d41d8`)}`),Y({event:`click`,action:`open_email_preview`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X}))},[z,X,c,Y,L,e,l]),_e=(0,v.useCallback)(async()=>{window.open(`/getemail/${c}?secret_hash=${(0,O_.default)(`${X}${c}${i.li}`)}&raw=true`),Y({event:`click`,action:`open_web_version`,entity_type:L===`block`?`block`:`email`,entity_id:e?.id||c||l,project_id:e?.project||X})},[X,c,Y,L,e,l]);I.previewModeEnabled&&he.push({key:`Preview_mode`,icon:(0,C.jsx)(m.d,{icon:`EyeOutlined`,size:18,strokeWidth:I.iconStrokeWidth}),label:n(`Preview mode`),onClick:ge}),I.livePreviewEnabled&&he.push({key:`Live_preview`,icon:f?(0,C.jsx)(m.d,{icon:`LoadingOutlined`,style:{fontSize:16}}):(0,C.jsx)(m.d,{icon:`CheckCircleVerified`,size:18,strokeWidth:I.iconStrokeWidth}),label:n(`Live preview`),onClick:x.id?.toString()===e.project_author?.toString()&&x?.subscription?.post_name===`community`&&D?ce:se}),I.webversionEnabled&&he.push({key:`Web version`,icon:(0,C.jsx)(m.d,{icon:`Web`,size:18,strokeWidth:I.iconStrokeWidth}),label:n(`Web version`),onClick:_e}),I.sharePreviewEnabled&&he.push({key:`Share`,icon:(0,C.jsx)(m.d,{icon:`ShareAltOutlined`,size:18,strokeWidth:I.iconStrokeWidth}),label:n(`Share`),onClick:Z,className:`em-analytics__email-share`});let ve=[{key:`Left_mode`,icon:(0,C.jsx)(m.d,{icon:`PanelLeft`,size:18,strokeWidth:I.iconStrokeWidth,style:{color:N===`left`&&M?P.colorPrimary:`inherit`}}),label:n(`Left Code panel`),onClick:()=>ne(`left`)},{key:`Right_mode`,icon:(0,C.jsx)(m.d,{icon:`PanelLeft`,size:18,strokeWidth:I.iconStrokeWidth,style:{transform:`rotate(180deg)`,color:N===`right`&&M?P.colorPrimary:`inherit`}}),label:n(`Right Code panel`),onClick:()=>ne(`right`)},{key:`Bottom_mode`,icon:(0,C.jsx)(m.d,{icon:`PanelLeft`,size:18,strokeWidth:I.iconStrokeWidth,style:{transform:`rotate(-90deg)`,color:N===`bottom`&&M?P.colorPrimary:`inherit`}}),label:n(`Bottom Code panel`),onClick:()=>ne(`bottom`)}];return(0,C.jsxs)(`div`,{className:`email-preview-menu email-preview-menu_new`,children:[(0,C.jsxs)(p.xt,{size:32,children:[(0,C.jsxs)(p.xt,{className:`email-preview-menu__versions`,size:8,style:{borderRadius:`calc(var(--borderRadius) * 1px`},children:[(0,C.jsx)(p.K,{title:n(t?_.r:`Undo (Ctrl+Z)`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`text`,icon:(0,C.jsx)(m.d,{icon:`UndoOutlined`,size:22,strokeWidth:I.iconStrokeWidth}),onClick:ae,disabled:!A.canUndo})}),(0,C.jsx)(p.K,{title:n(t?_.r:`Redo (Ctrl+Shift+Z)`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`text`,icon:(0,C.jsx)(m.d,{icon:`RedoOutlined`,size:22,strokeWidth:I.iconStrokeWidth}),onClick:oe,disabled:!A.canRedo})}),I.historyEnabled&&(0,C.jsx)(p.K,{title:n(`Version history`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:j?`text`:`primary`,ghost:!j,onClick:pe,disabled:e.isNew||le,className:`email-preview-menu__history`,icon:le?(0,C.jsx)(p.Y,{size:`small`}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(m.d,{icon:`HistoryOutlined`,size:22,strokeWidth:I.iconStrokeWidth,className:`email-preview-menu__list-item-icon email-preview-menu__list-item-icon_revert`}),J&&(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:I.iconStrokeWidth,className:`free-mode-firewall-icon`})]})})})]}),(0,C.jsxs)(p.xt,{size:8,style:{borderRadius:`calc(var(--borderRadius) * 1px`},children:[I.codeEnabled&&(0,C.jsx)(p.nt,{arrow:!0,placement:`bottom`,menu:{items:ve},trigger:`hover`,mouseEnterDelay:0,className:`email-preview-menu__code`,children:(0,C.jsx)(p.Rt,{type:M?`primary`:`text`,ghost:M,icon:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(m.d,{icon:`Code`,size:22,strokeWidth:I.iconStrokeWidth}),J&&(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:I.iconStrokeWidth,className:`free-mode-firewall-icon`})]}),onClick:ne})},`Code mode`),I.previewIconEnabled&&(J?(0,C.jsx)(p.K,{title:n(`Preview mode`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{type:`text`,icon:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(m.d,{icon:`EyeOutlined`,size:22,strokeWidth:I.iconStrokeWidth,className:`email-preview-menu__list-item-icon`}),(0,C.jsx)(m.d,{icon:`Lock`,size:14,strokeWidth:I.iconStrokeWidth,className:`free-mode-firewall-icon`})]}),onClick:()=>{V(!0),ee(7)}})}):(0,C.jsx)(p.nt,{arrow:!0,placement:`bottom`,menu:{items:he},className:`email-preview-menu__preview`,children:(0,C.jsx)(p.Rt,{type:`text`,target:`_blank`,rel:`noreferrer`,icon:(0,C.jsx)(m.d,{icon:`EyeOutlined`,size:22,strokeWidth:I.iconStrokeWidth,className:`email-preview-menu__list-item-icon`}),onClick:I.previewModeEnabled?ge:void 0})},`Preview`)),I.sendTestEnabled&&(0,C.jsx)(p.K,{title:n(`Send a test email`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{className:`em-analytics__email-open-test email-preview-menu__test`,type:`text`,icon:(0,C.jsx)(m.d,{icon:`SendOutlined`,size:22,strokeWidth:I.iconStrokeWidth,className:`email-preview-menu__list-item-icon`}),onClick:ie})})]})]}),(0,C.jsx)(A_,{isModalVisible:d===i.$r.SEND_TEST_EMAIL,email:e}),(0,C.jsx)(m.p,{open:B,onCancel:me,initialSlide:H}),(0,C.jsx)(m.l,{open:U,onClose:()=>W(!1),title:n(M_.titleKey),subtitle:n(M_.subtitleKey),usageResource:M_.usageResource,previousDisplay:G,nextDisplay:m.c(`infinity`),onChangePlan:()=>{W(!1),document.body.classList.remove(`editor`),b(`/billing`),r(o.r(i.$r.SWITCH_TO_PLAN_MODAL))}})]})};N_.propTypes={};function P_({code:e,...t},n){let r=n.getState();return{...t,...e?{html:e}:{},renderGuid:i.Zn(),project:r.projectSlice?.project?.id,utm_parameters:t.utm_parameters||{},_embedded:void 0}}function F_({html:e,renderGuid:t,...n},r){let{project:a,config:o}=r.getState().configSlice;return i.qn({...n,code:e,project:a===void 0?n.project:a,utm_parameters:o.UTMEnabled?n.utm_parameters:void 0,tags:void 0,template:void 0,guid:void 0,emailtags:void 0,project_title:void 0,project_author:void 0,is_template:void 0,is_inited:void 0})}var I_=r.a(((e,t)=>{r.i(),(function(t,n){typeof define==`function`&&define.amd?define([],n):e===void 0?(n(),t.FileSaver={exports:{}}.exports):n()})(e,function(){"use strict";function e(e,t){return t===void 0?t={autoBom:!1}:typeof t!=`object`&&(t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function n(e,t,n){var r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){c(r.response,t,n)},r.onerror=function(){},r.send()}function i(e){var t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function a(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{var t=document.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof r.r==`object`&&r.r.global===r.r?r.r:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||(typeof window!=`object`||window!==o?function(){}:`download`in HTMLAnchorElement.prototype&&!s?function(e,t,r){var s=o.URL||o.webkitURL,c=document.createElement(`a`);t=t||e.name||`download`,c.download=t,c.rel=`noopener`,typeof e==`string`?(c.href=e,c.origin===location.origin?a(c):i(c.href)?n(e,t,r):a(c,c.target=`_blank`)):(c.href=s.createObjectURL(e),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){a(c)},0))}:`msSaveOrOpenBlob`in navigator?function(t,r,o){if(r=r||t.name||`download`,typeof t!=`string`)navigator.msSaveOrOpenBlob(e(t,o),r);else if(i(t))n(t,r,o);else{var s=document.createElement(`a`);s.href=t,s.target=`_blank`,setTimeout(function(){a(s)})}}:function(e,t,r,i){if(i||=open(``,`_blank`),i&&(i.document.title=i.document.body.innerText=`downloading...`),typeof e==`string`)return n(e,t,r);var a=e.type===`application/octet-stream`,c=/constructor/i.test(o.HTMLElement)||o.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||a&&c||s)&&typeof FileReader<`u`){var u=new FileReader;u.onloadend=function(){var e=u.result;e=l?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,f=d.createObjectURL(e);i?i.location=f:location.href=f,i=null,setTimeout(function(){d.revokeObjectURL(f)},4e4)}});o.saveAs=c.saveAs=c,t!==void 0&&(t.exports=c)})}))(),L_=`NEXT_BUTTON`,R_=`SAVE_BUTTON`,z_=`KEYBOARD`,B_=`EXTERNAL`,V_=(e,t,n,r,a=!0,o=.8,s,c)=>{window.location.host.indexOf(`localhost`);let l=`&cacheControl=true&cache-hash=${(0,O_.default)(String(r??c??n))}`;return`https://scr.emcdn.ru/screenshot?delay=1000&width=800${s?``:`&fullPage=true`}&deviceScaleFactor=${o}&format=jpg&clearCache=${a}${l}&url=${encodeURIComponent(`https://app.emailmaker.ru/get${e}/${n}?secret_hash=${(0,O_.default)(`${t}${n}${i.li}`)}&raw=true`)}${s?`&selector=${s}`:``}`},H_=(e,t,n=!0,r=.8,i,a)=>{let o=`https://racs.emcdn.ru/v3/file/${e}?resource=exportPngApi`;window.location.host.indexOf(`localhost`);let s=`&cacheControl=true&cache-hash=${(0,O_.default)(String(t??a??e))}`;return`https://scr.emcdn.ru/screenshot?delay=1000&width=800${i?``:`&fullPage=true`}&deviceScaleFactor=${r}&format=jpg&clearCache=${n}${s}&url=${encodeURIComponent(`${o}`,`${o}`)}${i?`&selector=${i}`:``}`},U_=({email:e=null,isEditableRights:t=null,autoSaveEmailResult:n,disabled:r})=>{let o=i.lr(),s=(0,S.useNavigate)(),{__:c,_x:l}=p.v(),{projectId:d,emailId:f}=(0,S.useParams)(),h=g.u(),y=p.i(),b=i.Wt(),x=_.l(),w=i.ur(),T=i.cr(u.D),E=i.cr(u.P),D=i.cr(i.n),[O,k]=(0,v.useState)(!1),[A,j]=(0,v.useState)(null);(0,v.useEffect)(()=>{window?.navigator?.userAgent.includes(`Macintosh`)&&j(!0)},[]);let{data:M,refetch:N}=i.ht(+d,{skip:!+d}),{data:P,refetch:F}=i.lt({parent:M?.folder?.[0]},{skip:!i.ii.isPlugin||!M?.folder?.[0]}),[I]=i.vt(),[L]=i.ot(),[R,z]=i.bt(),[B,V]=i._t(),[H]=i.pt(),[ee,U]=(0,v.useState)(!1),[W,G]=(0,v.useState)(``),K=`project_${d}`,q=M&&i.b(M,`emailtags`).find(e=>e.name===K),J=M&&i.x(M,`emailtags`),Y=p.h(i.ea.BEFORE_SAVE_EMAIL),te=i.G(),X=(0,v.useCallback)(n=>{if(!t&&e.lock&&W){y.error({id:`EMAIL_ACCESS_TO_LOCKED_ERROR`,data:p.r(e),message:c(`No access to edit the letter.`)});return}if((e?.tags?.length||e.emailtags?.length)>10&&W){y.error({id:`EMAIL_TOO_MANY_TAGS_ERROR`,data:p.r(e),message:c(`Maximum 10 tags available.`)});return}let r=async t=>{let r=Object.entries(T).flatMap(([e,t])=>t.map(({value:t,label:n})=>({id:+t,name:n,parent:+e.split(`_`)[0]}))),s=[];E.length&&E.forEach(e=>{s.push(...e?.children.map(e=>({id:e.id,parentId:e.parent})))});let l=e.tags?.map(e=>{let n=J?.find(t=>t.name===e);return n?n.id:I({name:e,parent:t}).then(({error:t,data:n})=>{if(t?.status===400)return t?.data?.data?.term_id;if(n)return n.id;t&&(y.fromError(`TAG_CREATING_ERROR`,e,t),U(!1))})})||[],u=r?.map(e=>{let t=s?.find(t=>t.id===e.id);return t?t.id:L({name:e.name,parent:e.parent}).then(({error:t,data:n})=>{if(t?.status===400)return t?.data?.data?.term_id;if(n)return n.id;t&&(y.fromError(`GROUP_CREATING_ERROR`,e,t),U(!1))})})||[],f=e.tags!==void 0,m=r?.length>0,g=(e,r=null,s=null,l=[])=>{let u=e.title?.trim()||e.subject?.trim()||c(`Untitled email.`),f=n=>{if(w.dispatch(i.at.endpoints.getTags.initiate({parent:t})),!i.ii.isPlugin&&N)try{N()}catch{}if(W&&(y.success({id:`EMAIL_SAVING_SUCCESS`,message:c(`The email was successfully saved.`),data:p.r(e)}),U(!1),!i.ii.isPlugin&&P&&F))try{F()}catch{}i.ii.isPlugin||fetch(V_(i.Br,d,n.id,n.modified),{mode:`no-cors`}).then(()=>{})},m=i.b(e,i.Vr).filter(t=>(r||e.emailtags).includes(t.id)).map(e=>e.name);if(!e.isNew)z.status!==`pending`&&R({emailId:e.id,source:n,title:u,...e.meta===void 0?{}:{meta:e.meta},project:e.project,preheader:e.preheader,subject:e.subject,utm_parameters:{utm_source:e.utm_parameters?.utm_source,utm_medium:e.utm_parameters?.utm_medium,utm_campaign:e.utm_parameters?.utm_campaign,utm_term:e.utm_parameters?.utm_term,utm_content:e.utm_parameters?.utm_content},description:e.description,html:x?.getValue()||``,common_styles:e.common_styles||``,emailtags:r||e.emailtags,tags:m,group:s||e.group,is_template:e.is_template||!1}).then(({error:t})=>{le.current=!1,t?(n===L_&&ue(!1),W&&y.fromError(`EMAIL_EDITING_ERROR`,p.r(e),t),U(!1)):f(e)});else if(V.status!==`pending`){let t=h.get(i.br.em_folder);B({title:u,source:n,...e.meta===void 0?{}:{meta:e.meta},project:e.project,subject:e.subject,preheader:e.preheader,description:e.description,utm_parameters:{utm_source:e.utm_parameters.utm_source,utm_medium:e.utm_parameters.utm_medium,utm_campaign:e.utm_parameters.utm_campaign,utm_term:e.utm_parameters.utm_term,utm_content:e.utm_parameters.utm_content},html:x?.getValue()||``,parent_email:e.parent_email||127017,common_styles:e.common_styles||``,emailtags:r?r.join(`,`):e.emailtags,tags:m,group:s||e.group,is_template:e.is_template||!1,is_inited:e.is_inited,renderGuid:e.renderGuid,folder:t!==`all`&&t}).then(({data:t,error:r})=>{le.current=!1,r?(n===L_&&ue(!1),W&&y.fromError(`EMAIL_CREATING_ERROR`,{title:e.title,code:x?.getValue()||``},r),U(!1)):(o(a.bt(null)),f(t),h.remove(i.br.em_folder))})}te({event:`save`,action:n?`save_email`:`auto_save_email`,email_id:e.id,project_id:d,subscription:D?.subscription?.post_title})},_={...e};Y.fire(_).finally(()=>{f||m?Promise.all(l).then(e=>{Promise.all(u).then(t=>{g(_,f?e:null,m?t:null,[])})}):g(_,null,null,[])})};U(!0),q?r(q.id):I({name:K}).then(async({data:t,error:n})=>{if(n)y.fromError(`FOLDER_CREATING_ERROR`,K,n),U(!1);else{let{data:n,error:i}=await H({projectId:d,emailtags:t.id});i?(y.fromError(`EMAIL_CLONING_ERROR`,p.r(e),i),U(!1)):n&&r(n.emailtags&&n.emailtags[0])}}).catch(e=>void 0)},[V.status,B,z.status,R,e,t,I,o,H,d,M,c,l,W,x,J,Y]);p.u(p.s,(0,v.useCallback)(e=>X(e||B_),[X]));let ne=p.h(i.ea.ON_NEXTBUTTON_CLICK_ID),re=p.h(i.ea.ON_SAVEBUTTON_CLICK_ID);(0,v.useEffect)(()=>{W&&(setTimeout(()=>X(W)),G(``))},[W]);let ie=(0,v.useCallback)(e=>{(e.ctrlKey||e.metaKey)&&e.keyCode===83&&(e.preventDefault(),G(z_))},[X]);(0,v.useEffect)(()=>(document.addEventListener(`keydown`,ie),()=>{document.removeEventListener(`keydown`,ie)}),[ie]),_.g((0,v.useCallback)(e=>{let t=e.data.operation,n=e.data.action;t===i.Wr.APPLICATION_ACTION&&n===`save_email`&&G(z_)},[X])),(0,v.useEffect)(()=>{e.isNew&&V.isSuccess&&(U(!0),o(i.gt.util.upsertQueryData(`getEmail`,V.data.id,{...V.data,...e.meta===void 0?{}:{meta:e.meta},lock:e.lock,isAmp:e.isAmp,subject:e.subject,preheader:e.preheader,description:e.description,html:x?.getValue()||``,project:e.project,tags:e.tags,utm_parameters:e.utm_parameters,parent_email:e.parent_email,common_styles:e.common_styles,renderGuid:e.renderGuid,is_inited:e.is_inited,isNew:!1})).then(()=>{s(`/projects/${V.data.project}/emails/${V.data.id}`),U(!1),W&&y.success({id:`EMAIL_SAVING_SUCCESS`,message:c(`The email was successfully saved.`),data:p.r(e)})}))},[s,o,V,e.isNew,c,l,W,x]);let ae=p.m(i.ea.ON_EMAIL_INIT_ID);(0,v.useEffect)(()=>{let e=0,t=ae(()=>{e=setTimeout(()=>k(!0),1e4)});return()=>{e&&clearTimeout(e),t.dispose()}},[k,ae]),(0,v.useEffect)(()=>{e.isNew&&!f&&O&&(X(),k(!1))},[O,e,X,f]);let oe=z.isLoading||H?.isLoading||V.isLoading||ee||n&&n.isLoading,Z=b.saveButtonEnabled&&(0,C.jsx)(p.K,{title:c(A?`Save by ⌘S`:`Save by Ctrl+S`),placement:`bottom`,children:(0,C.jsx)(p.Rt,{disabled:r,type:b.nextButtonEnabled?`default`:`primary`,block:`false`,className:`em-analytics__email-save`,loading:oe,icon:(0,C.jsx)(m.d,{icon:`SaveOutlined`,size:16,strokeWidth:b.iconStrokeWidth}),onClick:async()=>{let t={...e,html:x.getValue()};try{await re.fire(t)!==!1&&G(R_)}catch(e){y.fromError(`SAVE_BUTTON_CLICK_EVENT_ERROR`,p.r(t),e,!0)}},children:b.saveButtonText||c(`Save`)})},`save-button`),se=b.disableDoubleClickNextButton!==!1,ce=b.activeNextButton===!1,le=(0,v.useRef)(!1),ue=e=>{o(i.It(!e))},de=b.nextButtonEnabled&&(0,C.jsx)(p.Rt,{disabled:r||ce,type:`primary`,block:`false`,className:`em-analytics__email-save`,icon:b.primaryCommandButtonIcon,loading:oe,onClick:async()=>{if(le.current)return;le.current=!0;let t={...e,html:x.getValue()};try{se&&ue(!0),(await ne.fire(t)).every(e=>e!==!1)?G(L_):(ue(!1),le.current=!1)}catch(e){y.fromError(`NEXT_BUTTON_CLICK_EVENT_ERROR`,p.r(t),e,!0),ue(!1),le.current=!1}},children:b.nextButtonText||c(`Continue`)},`next-button`);return(0,C.jsx)(C.Fragment,{children:b.saveButtonEnabled&&b.nextButtonEnabled?(0,C.jsx)(p.xt,{children:[Z,de]}):[Z,de]})};U_.propTypes={email:b.default.shape({id:b.default.string,isNew:b.default.bool,title:b.default.string,lock:b.default.bool,subject:b.default.string,html:b.default.string,description:b.default.string,utm_parameters:b.default.shape({utm_source:b.default.string,utm_medium:b.default.string,utm_campaign:b.default.string,utm_term:b.default.string,utm_content:b.default.string}),project:b.default.number,is_template:b.default.bool}),isEditableRights:b.default.bool};function W_(e){return String(e).replace(/"/g,`&quot;`)}function G_(e){let t=/<(table|tr|div)(\s[^>]*)>/gi,n;for(;(n=t.exec(e))!==null;){let e=n[2]??``;if(/\bem\s*=\s*["']block["']/i.test(e))return{full:n[0],index:n.index}}return null}function K_(e,t){if(!e?.trim()||!t)return e;let n=String(t);if(e.includes(`em-block-id="${n}"`)||e.includes(`em-block-id='${n}'`))return e;let r=G_(e);if(!r)return e;let{full:i,index:a}=r;if(/\bem-block-id\s*=/.test(i))return e;let o=i.replace(/>$/,` em-block-id="${W_(n)}">`);return e.slice(0,a)+o+e.slice(a+i.length)}var q_=(e,t,n,r)=>`https://scr.emcdn.ru/screenshot?delay=1000&width=800&fullPage=true&deviceScaleFactor=0.8&format=jpg&clearCache=true${r?`&cacheControl=true&cache-hash=${(0,O_.default)(r)}`:``}&url=${encodeURIComponent(`https://dev-backend-1.emailmaker.ru/get${e}/${n}?secret_hash=${(0,O_.default)(`${t}${n}${i.li}`)}&raw=true`)}`,J_=({block:e=null,isEditableRights:t,rightCol:n,autoSaveBlockResult:r,disabled:a})=>{let{__:o}=p.v(),{projectId:s,blockId:c}=(0,S.useParams)(),l=i.cr(u.f),d=i.cr(u.f),f=i.lr(),h=p.i(),g=_.l(),y=i.ur(),b=i.et(),[x,w]=(0,v.useState)(!1),[T,E]=(0,v.useState)(null),[D,O]=(0,v.useState)(!1),[k,A]=(0,v.useState)(!1),j=i.G();(0,v.useEffect)(()=>{window?.navigator?.userAgent.includes(`Macintosh`)&&E(!0)},[]);let{data:M,refetch:N}=i.ht(+s,{skip:!+s}),[P]=i.On(),[F,I]=i.An(),[L,R]=i.Dn(),[z]=i.pt(),B=`project_${s}`,V=M&&i.b(M,`blocktags`).find(e=>e.name===B),H=M&&i.x(M,`blocktags`),ee=(0,v.useCallback)(n=>{if(O(!0),!t&&e.lock&&k){h.error({id:`BLOCK_ACCESS_TO_LOCKED_ERROR`,message:o(`No access to edit the letter.`),data:p.n(e)}),O(!1);return}if((e.tags?.length||e.blocktags?.length)>10&&k){h.error({id:`BLOCK_TOO_MANY_TAGS_ERROR`,message:o(`Maximum 10 tags available.`),data:p.n(e)}),O(!1);return}if(e.type===``){h.error({message:o(`Set the type`),description:o(`Please set the 'Type' field in the Settings section.`)}),O(!1);return}let r=t=>{let r=e.tags?.map(e=>{let n=H?.find(t=>t.name===e);return n?n.id:P({name:e,parent:t}).then(({error:t,data:n})=>{if(t?.status===400)return t?.data?.data?.term_id;if(n)return n.id;t&&(h.fromError(`TAG_CREATING_ERROR`,e,t),O(!1))})}),a=(r=null)=>{let a=n=>{y.dispatch(i.at.endpoints.getTags.initiate({parent:t})),N(),n.global_block&&n.id&&b({operation:i.Wr.SANDBOX_EBLOCK_SET_EM_BLOCK_ID,settings:{emBlockId:String(n.id)}}),k&&(h.success({id:`BLOCK_EDITING_SUCCESS`,message:o(`The block was successfully saved.`,`block`),data:p.n(e)}),O(!1)),fetch(q_(i.wr,s,n.id,n.modified),{mode:`no-cors`}).then(()=>{})},c=i.b(e,i.Vr).filter(t=>(r||e.blocktags).includes(t.id)).map(e=>e.name);if(e.isNew)R.status!==`pending`&&L({source:n,title:e.title===null?o(`New block title`):e.title,project:e.project,type:e.type?e.type:`Other`,description:e.description,html:g?.getValue()||``,blocktags:r?r.join(`,`):e.blocktags,tags:c,...i.ii.isPlugin&&$r(e)?{meta:e.meta}:{}}).then(async({data:t,error:n})=>{if(n)h.fromError(`BLOCK_CREATING_ERROR`,{title:e.title,html:g?.getValue()||``},n),O(!1);else{let e=t,n=g?.getValue()||``;if(t?.global_block&&t?.id&&n){let r=K_(n,String(t.id));if(r!==n){let n=await F({blockId:t.id,html:r});!n.error&&n.data&&(e=n.data)}}a(e)}});else if(I.status!==`pending`){let t=g?.getValue()||``,o=e.global_block?K_(t,String(e.id)):t;F({blockId:e.id,source:n,title:e.title,project:e.project,type:e.type?e.type:`Other`,description:e.description,html:o,blocktags:r||e.blocktags,tags:c,...i.ii.isPlugin&&$r(e)?{meta:e.meta}:{}}).then(({data:t,error:n})=>{n&&k?(h.fromError(`BLOCK_EDITING_ERROR`,p.n(e),n),O(!1)):a(t)})}};r?Promise.all(r).then(e=>a(e)):a(null)};O(!0),V?r(V.id):P({name:B}).then(async({data:t,error:n})=>{if(n)h.fromError(`FOLDER_CREATING_ERROR`,B,n),O(!1);else{let{data:n,error:i}=await z({projectId:s,blocktags:t.id});i?(h.fromError(`BLOCK_CLONING_ERROR`,p.n(e),i),O(!1)):n&&r(n.blocktags&&n.blocktags[0])}}).catch(e=>void 0)},[R.status,L,I.status,F,e,t,P,z,s,o,k,g,h,H,N,y,V,B,b]);(0,v.useEffect)(()=>{k&&(ee(),A(!1))},[k,ee]);let U=(0,v.useCallback)(e=>{(e.ctrlKey||e.metaKey)&&e.keyCode===83&&(e.preventDefault(),A(!0))},[]);return(0,v.useEffect)(()=>(document.addEventListener(`keydown`,U),()=>{document.removeEventListener(`keydown`,U)}),[U]),_.g((0,v.useCallback)(e=>{let t=e.data.operation,n=e.data.action;t===i.Wr.APPLICATION_ACTION&&n===`save_email`&&A(!0)},[])),(0,v.useEffect)(()=>{R.isError&&(O(!1),h.error(R))},[f,R]),(0,v.useEffect)(()=>{let e=setTimeout(()=>{w(!0)},1e4);return()=>{clearTimeout(e)}},[]),(0,v.useEffect)(()=>{e.isNew&&!c&&x&&(ee(),w(!1))},[x,e,ee,c]),(0,C.jsx)(p.K,{title:o(T?`Save by ⌘S`:`Save by Ctrl+S`),placement:n?`right`:`bottomRight`,children:(0,C.jsx)(p.Rt,{type:`primary`,block:n,className:`em-analytics__block-save`,icon:(0,C.jsx)(m.d,{icon:`SaveOutlined`}),onClick:()=>{j({event:`click`,action:`save_block`}),A(!0)},loading:I.isLoading||z.isLoading||R.isLoading||D||r,children:n||l||d?``:o(`Save`)})})};J_.propTypes={block:b.default.shape({id:b.default.string,isNew:b.default.bool,lock:b.default.bool,type:b.default.string,html:b.default.string,description:b.default.string,project:b.default.number,title:b.default.string}),isEditableRights:b.default.bool.isRequired};var Y_=({element:e,context:t=`list`})=>{let{__:n,_x:r}=p.v(),[a]=i.bt(),[o]=i.An(),s=p.i(),c=i.G();e.hasOwnProperty(`type`);let l=(e,t)=>{if(e.error)return s.error(e),!1;s.success(n(`The `)+(t.hasOwnProperty(`type`)?n(`block`):r(`email`,`letter`))+` `+n(`“`)+e.data.title+n(`”`)+n(`was successfully`)+` `+(t.lock?t.hasOwnProperty(`type`)?r(`unlocked.`,`block`):r(`unlocked.`,`email`):t.hasOwnProperty(`type`)?r(`locked.`,`block`):r(`locked.`,`email`)))};return(0,C.jsx)(`div`,{className:e.hasOwnProperty(`type`)?`em-analytics__block-lock`:`em-analytics__email-lock`,onClick:()=>{let n=!e.lock,r=n?`lock_email`:`unlock_email`;e.hasOwnProperty(`type`)?o({blockId:e.id,lock:n}).then(r=>{l(r,e),r.error||c({event:n?`lock`:`unlock`,action:n?`lock_block`:`unlock_block`,entity_type:`block`,entity_id:e.id,project_id:e.project,context:t})}):a({emailId:e.id,lock:n}).then(i=>{l(i,e),i.error||c({event:n?`lock`:`unlock`,action:r,entity_type:`email`,entity_id:e.id,project_id:e.project,context:t})})},children:e.lock?n(`Unlock`):n(`Lock`)})};Y_.propTypes={element:b.default.shape({lock:b.default.bool,id:b.default.string})},Y_.defaultProps={element:b.default.shape({lock:null,id:null})};var X_=({open:e,codeSize:t,onMinimize:n,onDownloadAsIs:r,onCancel:i})=>{let{__:a}=p.v(),o=s_(t);return(0,C.jsx)(p.Z,{open:e,onCancel:i,footer:null,className:`code-size-warning-modal`,width:480,children:(0,C.jsxs)(`div`,{className:`code-size-warning-modal__content`,children:[(0,C.jsx)(`h3`,{className:`code-size-warning-modal__title`,children:a(`Code Size Warning`)}),(0,C.jsxs)(`div`,{className:`code-size-warning-modal__message`,children:[(0,C.jsxs)(`p`,{children:[a(`The current code size is`),` `,(0,C.jsx)(`strong`,{children:o}),`,`,` `,a(`which exceeds the recommended 90 KB limit.`)]}),(0,C.jsx)(`p`,{children:a(`Large emails may have delivery issues and load slowly. We recommend minimizing code before exporting.`)})]}),(0,C.jsxs)(p.xt,{className:`code-size-warning-modal__actions`,size:`middle`,children:[(0,C.jsx)(p.Rt,{type:`primary`,onClick:n,size:`large`,children:a(`Minimize code`)}),(0,C.jsx)(p.Rt,{onClick:r,size:`large`,children:a(`Download as is`)})]})]})})};function Z_(e,t){if(t===`amp`)e.handleRender(async({contentDocument:e,managedNodeController:t})=>{for(let t of e.querySelectorAll(`.em-amp-show-disabled`))t.remove();await a.n(e,{mappedTags:{script:`___script`},commit:()=>t.commit()})});else if(t===`html`){let t=e.document;for(let e of t.querySelectorAll(`.em-amp-show-only`))e.remove();a.t(t,{mappedTags:{script:`___script`}})}}var Q_=/\n/g;function $_(e){let t=[...e.matchAll(Q_)].map((e=>e.index||0));t.unshift(-1);let n=ev(t,0,t.length);return e=>tv(n,e)}function ev(e,t,n){if(n-t==1)return{offset:e[t],index:t+1};let r=Math.ceil((t+n)/2),i=ev(e,t,r),a=ev(e,r,n);return{offset:i.offset,low:i,high:a}}function tv(e,t){return function(e){return Object.prototype.hasOwnProperty.call(e,`index`)}(e)?{line:e.index,column:t-e.offset}:tv(e.high.offset<t?e.high:e.low,t)}function nv(e,t=``,n={}){let r=typeof t==`string`?n:t,i=typeof t==`string`?t:``,a=e.map(rv),o=!!r.lineNumbers;return function(e,t=0){let n=o?$_(e):()=>({line:0,column:0}),r=t,s=[];e:for(;r<e.length;){let t=!1;for(let o of a){o.regex.lastIndex=r;let a=o.regex.exec(e);if(a&&a[0].length>0){if(!o.discard){let e=n(r),t=typeof o.replace==`string`?a[0].replace(new RegExp(o.regex.source,o.regex.flags),o.replace):a[0];s.push({state:i,name:o.name,text:t,offset:r,len:a[0].length,line:e.line,column:e.column})}if(r=o.regex.lastIndex,t=!0,o.push){let t=o.push(e,r);s.push(...t.tokens),r=t.offset}if(o.pop)break e;break}}if(!t)break}return{tokens:s,offset:r,complete:e.length<=r}}}function rv(e,t){return{...e,regex:iv(e,t)}}function iv(e,t){if(e.name.length===0)throw Error(`Rule #${t} has empty name, which is not allowed.`);if(function(e){return Object.prototype.hasOwnProperty.call(e,`regex`)}(e))return function(e){if(e.global)throw Error(`Regular expression /${e.source}/${e.flags} contains the global flag, which is not allowed.`);return e.sticky?e:new RegExp(e.source,e.flags+`y`)}(e.regex);if(function(e){return Object.prototype.hasOwnProperty.call(e,`str`)}(e)){if(e.str.length===0)throw Error(`Rule #${t} ("${e.name}") has empty "str" property, which is not allowed.`);return new RegExp(av(e.str),`y`)}return new RegExp(av(e.name),`y`)}function av(e){return e.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,`\\$&`)}function ov(e,t){return(n,r)=>{let i=r,a;return r<n.tokens.length?(a=e(n.tokens[r],n,r),a!==void 0&&i++):t?.(n,r),a===void 0?{matched:!1}:{matched:!0,position:i,value:a}}}function sv(e,t){return e.matched?{matched:!0,position:e.position,value:t(e.value,e.position)}:e}function cv(e,t){return e.matched?t(e):e}function lv(e,t){return(n,r)=>sv(e(n,r),(e,i)=>t(e,n,r,i))}function uv(e,t){return(n,r)=>{let i=e(n,r);return i.matched?i:{matched:!0,position:r,value:t}}}function dv(...e){return(t,n)=>{for(let r of e){let e=r(t,n);if(e.matched)return e}return{matched:!1}}}function fv(e,t){return(n,r)=>{let i=e(n,r);return i.matched?i:t(n,r)}}function pv(e,t){return(n,r)=>{let i=[],a=!0;do{let o=e(n,r);o.matched&&t(o.value,i.length+1,n,r,o.position)?(i.push(o.value),r=o.position):a=!1}while(a);return{matched:!0,position:r,value:i}}}function mv(e){return pv(e,()=>!0)}function hv(e){return gv(e,mv(e),(e,t)=>[e,...t])}function gv(e,t,n){return(r,i)=>cv(e(r,i),e=>sv(t(r,e.position),(t,a)=>n(e.value,t,r,i,a)))}function _v(e,t){return gv(e,t,e=>e)}function vv(e,t){return gv(e,t,(e,t)=>t)}function yv(e,t,n,r){return(i,a)=>cv(e(i,a),e=>cv(t(i,e.position),t=>sv(n(i,t.position),(n,o)=>r(e.value,t.value,n,i,a,o))))}function bv(e,t,n){return yv(e,t,n,(e,t)=>t)}function xv(...e){return(t,n)=>{let r=[],i=n;for(let n of e){let e=n(t,i);if(e.matched)r.push(e.value),i=e.position;else return{matched:!1}}return{matched:!0,position:i,value:r}}}function Sv(...e){return Cv(xv(...e))}function Cv(e){return lv(e,e=>e.flatMap(e=>e))}function wv(e,t){return(n,r)=>{let i=!0,a=e,o=r;do{let e=t(a,n,o)(n,o);e.matched?(a=e.value,o=e.position):i=!1}while(i);return{matched:!0,position:o,value:a}}}function Tv(e,t,n){return wv(e,e=>lv(t,(t,r,i,a)=>n(e,t,r,i,a)))}function Ev(e,t,n){return Dv(e,e=>Tv(e,gv(t,n,(e,t)=>[e,t]),(e,[t,n])=>t(e,n)))}function Dv(e,t){return(n,r)=>cv(e(n,r),e=>t(e.value,n,r,e.position)(n,e.position))}var Ov=`(?:[ \\t\\r\\n\\f]*)`,kv=`(?:\\n|\\r\\n|\\r|\\f)`,Av=`[^\\x00-\\x7F]`,jv=`(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)`,Mv=`(?:\\\\[^\\n\\r\\f0-9a-f])`,Nv=`(?:[_a-z]|${Av}|${jv}|${Mv})`,Pv=`(?:[_a-z0-9-]|${Av}|${jv}|${Mv})`,Fv=`(?:${Pv}+)`,Iv=`(?:[-]?${Nv}${Pv}*)`,Lv=`'([^\\n\\r\\f\\\\']|\\\\${kv}|${Av}|${jv}|${Mv})*'`,Rv=`"([^\\n\\r\\f\\\\"]|\\\\${kv}|${Av}|${jv}|${Mv})*"`,zv=nv([{name:`ws`,regex:new RegExp(Ov)},{name:`hash`,regex:RegExp(`#${Fv}`,`i`)},{name:`ident`,regex:new RegExp(Iv,`i`)},{name:`str1`,regex:new RegExp(Lv,`i`)},{name:`str2`,regex:new RegExp(Rv,`i`)},{name:`*`},{name:`.`},{name:`,`},{name:`[`},{name:`]`},{name:`=`},{name:`>`},{name:`|`},{name:`+`},{name:`~`},{name:`^`},{name:`$`}]),Bv=nv([{name:`unicode`,regex:new RegExp(jv,`i`)},{name:`escape`,regex:new RegExp(Mv,`i`)},{name:`any`,regex:RegExp(`[\\s\\S]`,`i`)}]);function Vv([e,t,n],[r,i,a]){return[e+r,t+i,n+a]}function Hv(e){return e.reduce(Vv,[0,0,0])}var Uv=lv(mv(dv(ov(e=>e.name===`unicode`?String.fromCodePoint(parseInt(e.text.slice(1),16)):void 0),ov(e=>e.name===`escape`?e.text.slice(1):void 0),ov(e=>e.name===`any`?e.text:void 0))),e=>e.join(``));function Wv(e){return Uv({tokens:Bv(e).tokens,options:void 0},0).value}function Gv(e){return ov(t=>t.name===e?!0:void 0)}var Kv=ov(e=>e.name===`ws`?null:void 0),qv=uv(Kv,null);function Jv(e){return bv(qv,e,qv)}var Yv=ov(e=>e.name===`ident`?Wv(e.text):void 0),Xv=ov(e=>e.name===`hash`?Wv(e.text.slice(1)):void 0),Zv=ov(e=>e.name.startsWith(`str`)?Wv(e.text.slice(1,-1)):void 0),Qv=_v(uv(Yv,``),Gv(`|`)),$v=fv(gv(Qv,Yv,(e,t)=>({name:t,namespace:e})),lv(Yv,e=>({name:e,namespace:null}))),ey=fv(gv(Qv,Gv(`*`),e=>({type:`universal`,namespace:e,specificity:[0,0,0]})),lv(Gv(`*`),()=>({type:`universal`,namespace:null,specificity:[0,0,0]}))),ty=lv($v,({name:e,namespace:t})=>({type:`tag`,name:e,namespace:t,specificity:[0,0,1]})),ny=gv(Gv(`.`),Yv,(e,t)=>({type:`class`,name:t,specificity:[0,1,0]})),ry=lv(Xv,e=>({type:`id`,name:e,specificity:[1,0,0]})),iy=ov(e=>{if(e.name===`ident`){if(e.text===`i`||e.text===`I`)return`i`;if(e.text===`s`||e.text===`S`)return`s`}}),ay=fv(gv(Zv,uv(vv(qv,iy),null),(e,t)=>({value:e,modifier:t})),gv(Yv,uv(vv(Kv,iy),null),(e,t)=>({value:e,modifier:t}))),oy=dv(lv(Gv(`=`),()=>`=`),gv(Gv(`~`),Gv(`=`),()=>`~=`),gv(Gv(`|`),Gv(`=`),()=>`|=`),gv(Gv(`^`),Gv(`=`),()=>`^=`),gv(Gv(`$`),Gv(`=`),()=>`$=`),gv(Gv(`*`),Gv(`=`),()=>`*=`)),sy=fv(yv(Gv(`[`),Jv($v),Gv(`]`),(e,{name:t,namespace:n})=>({type:`attrPresence`,name:t,namespace:n,specificity:[0,1,0]})),bv(Gv(`[`),yv(Jv($v),oy,Jv(ay),({name:e,namespace:t},n,{value:r,modifier:i})=>({type:`attrValue`,name:e,namespace:t,matcher:n,value:r,modifier:i,specificity:[0,1,0]})),Gv(`]`))),cy=fv(ey,ty),ly=dv(ry,ny,sy),uy=lv(fv(Sv(cy,mv(ly)),hv(ly)),e=>({type:`compound`,list:e,specificity:Hv(e.map(e=>e.specificity))})),dy=Ev(uy,lv(fv(Jv(dv(lv(Gv(`>`),()=>`>`),lv(Gv(`+`),()=>`+`),lv(Gv(`~`),()=>`~`),gv(Gv(`|`),Gv(`|`),()=>`||`))),lv(Kv,()=>` `)),e=>(t,n)=>({type:`compound`,list:[...n.list,{type:`combinator`,combinator:e,left:t,specificity:t.specificity}],specificity:Vv(t.specificity,n.specificity)})),uy);Ev(lv(dy,e=>({type:`list`,list:[e]})),lv(Jv(Gv(`,`)),()=>(e,t)=>({type:`list`,list:[...e.list,t]})),dy);function fy(e,t){if(!(typeof t==`string`||t instanceof String))throw Error(`Expected a selector string. Actual input is not a string!`);let n=zv(t);if(!n.complete)throw Error(`The input "${t}" was only partially tokenized, stopped at offset ${n.offset}!\n`+py(t,n.offset));let r=Jv(e)({tokens:n.tokens,options:void 0},0);if(!r.matched)throw Error(`No match for "${t}" input!`);if(r.position<n.tokens.length){let e=n.tokens[r.position];throw Error(`The input "${t}" was only partially parsed, stopped at offset ${e.offset}!\n`+py(t,e.offset,e.len))}return r.value}function py(e,t,n=1){return`${e.replace(/(\t)|(\r)|(\n)/g,(e,t,n)=>t?`␉`:n?`␍`:`␊`)}\n${``.padEnd(t)}${`^`.repeat(n)}`}function my(e){return fy(dy,e)}function hy(e){if(!e.type)throw Error(`This is not an AST node.`);switch(e.type){case`universal`:return gy(e.namespace)+`*`;case`tag`:return gy(e.namespace)+vy(e.name);case`class`:return`.`+vy(e.name);case`id`:return`#`+vy(e.name);case`attrPresence`:return`[${gy(e.namespace)}${vy(e.name)}]`;case`attrValue`:return`[${gy(e.namespace)}${vy(e.name)}${e.matcher}"${yy(e.value)}"${e.modifier?e.modifier:``}]`;case`combinator`:return hy(e.left)+e.combinator;case`compound`:return e.list.reduce((e,t)=>t.type===`combinator`?hy(t)+e:e+hy(t),``);case`list`:return e.list.map(hy).join(`,`)}}function gy(e){return e||e===``?vy(e)+`|`:``}function _y(e){return`\\${e.codePointAt(0).toString(16)} `}function vy(e){return e.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(e,t,n,r,i,a,o,s)=>t?_y(t):n?`-`+_y(n.slice(1)):r?`\\-`:i||(a?`�`:o?_y(o):`\\`+s))}function yy(e){return e.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(e,t,n,r,i)=>t?`\\"`:n?`\\\\`:r?`�`:_y(i))}function by(e){if(!e.type)throw Error(`This is not an AST node.`);switch(e.type){case`compound`:e.list.forEach(by),e.list.sort((e,t)=>Cy(xy(e),xy(t)));break;case`combinator`:by(e.left);break;case`list`:e.list.forEach(by),e.list.sort((e,t)=>hy(e)<hy(t)?-1:1);break}return e}function xy(e){switch(e.type){case`universal`:return[1];case`tag`:return[1];case`id`:return[2];case`class`:return[3,e.name];case`attrPresence`:return[4,hy(e)];case`attrValue`:return[5,hy(e)];case`combinator`:return[15,hy(e)]}}function Sy(e,t){return Cy(e,t)}function Cy(e,t){if(!Array.isArray(e)||!Array.isArray(t))throw Error(`Arguments must be arrays.`);let n=e.length<t.length?e.length:t.length;for(let r=0;r<n;r++)if(e[r]!==t[r])return e[r]<t[r]?-1:1;return e.length-t.length}var wy=class{constructor(e){this.branches=Oy(Ty(e))}build(e){return e(this.branches)}};function Ty(e){let t=e.length,n=Array(t);for(let r=0;r<t;r++){let[t,i]=e[r],a=Ey(my(t));n[r]={ast:a,terminal:{type:`terminal`,valueContainer:{index:r,value:i,specificity:a.specificity}}}}return n}function Ey(e){return Dy(e),by(e),e}function Dy(e){let t=[];e.list.forEach(e=>{switch(e.type){case`class`:t.push({matcher:`~=`,modifier:null,name:`class`,namespace:null,specificity:e.specificity,type:`attrValue`,value:e.name});break;case`id`:t.push({matcher:`=`,modifier:null,name:`id`,namespace:null,specificity:e.specificity,type:`attrValue`,value:e.name});break;case`combinator`:Dy(e.left),t.push(e);break;case`universal`:break;default:t.push(e);break}}),e.list=t}function Oy(e){let t=[];for(;e.length;){let n=By(e,e=>!0,jy),{matches:r,nonmatches:i,empty:a}=Ay(e,n);e=i,r.length&&t.push(My(n,r)),a.length&&t.push(...ky(a))}return t}function ky(e){let t=[];for(let n of e){let e=n.terminal;if(e.type===`terminal`)t.push(e);else{let{matches:n,rest:r}=Vy(e.cont,e=>e.type===`terminal`);n.forEach(e=>t.push(e)),r.length&&(e.cont=r,t.push(e))}}return t}function Ay(e,t){let n=[],r=[],i=[];for(let a of e){let e=a.ast.list;e.length?(e.some(e=>jy(e)===t)?n:r).push(a):i.push(a)}return{matches:n,nonmatches:r,empty:i}}function jy(e){switch(e.type){case`attrPresence`:return`attrPresence ${e.name}`;case`attrValue`:return`attrValue ${e.name}`;case`combinator`:return`combinator ${e.combinator}`;default:return e.type}}function My(e,t){if(e===`tag`)return Ny(t);if(e.startsWith(`attrValue `))return Fy(e.substring(10),t);if(e.startsWith(`attrPresence `))return Py(e.substring(13),t);if(e===`combinator >`)return Ly(`>`,t);if(e===`combinator +`)return Ly(`+`,t);throw Error(`Unsupported selector kind: ${e}`)}function Ny(e){let t=Ry(e,e=>e.type===`tag`,e=>e.name);return{type:`tagName`,variants:Object.entries(t).map(([e,t])=>({type:`variant`,value:e,cont:Oy(t.items)}))}}function Py(e,t){for(let n of t)zy(n,t=>t.type===`attrPresence`&&t.name===e);return{type:`attrPresence`,name:e,cont:Oy(t)}}function Fy(e,t){let n=Ry(t,t=>t.type===`attrValue`&&t.name===e,e=>`${e.matcher} ${e.modifier||``} ${e.value}`),r=[];for(let e of Object.values(n)){let t=e.oneSimpleSelector,n=Iy(t),i=Oy(e.items);r.push({type:`matcher`,matcher:t.matcher,modifier:t.modifier,value:t.value,predicate:n,cont:i})}return{type:`attrValue`,name:e,matchers:r}}function Iy(e){if(e.modifier===`i`){let t=e.value.toLowerCase();switch(e.matcher){case`=`:return e=>t===e.toLowerCase();case`~=`:return e=>e.toLowerCase().split(/[ \t]+/).includes(t);case`^=`:return e=>e.toLowerCase().startsWith(t);case`$=`:return e=>e.toLowerCase().endsWith(t);case`*=`:return e=>e.toLowerCase().includes(t);case`|=`:return e=>{let n=e.toLowerCase();return t===n||n.startsWith(t)&&n[t.length]===`-`}}}else{let t=e.value;switch(e.matcher){case`=`:return e=>t===e;case`~=`:return e=>e.split(/[ \t]+/).includes(t);case`^=`:return e=>e.startsWith(t);case`$=`:return e=>e.endsWith(t);case`*=`:return e=>e.includes(t);case`|=`:return e=>t===e||e.startsWith(t)&&e[t.length]===`-`}}}function Ly(e,t){let n=Ry(t,t=>t.type===`combinator`&&t.combinator===e,e=>hy(e.left)),r=[];for(let e of Object.values(n)){let t=Oy(e.items),n=e.oneSimpleSelector.left;r.push({ast:n,terminal:{type:`popElement`,cont:t}})}return{type:`pushElement`,combinator:e,cont:Oy(r)}}function Ry(e,t,n){let r={};for(;e.length;){let i=By(e,t,n),a=e=>t(e)&&n(e)===i,{matches:o,rest:s}=Hy(e,e=>e.ast.list.some(a)),c=null;for(let e of o){let t=zy(e,a);c||=t}if(c==null)throw Error(`No simple selector is found.`);r[i]={oneSimpleSelector:c,items:o},e=s}return r}function zy(e,t){let n=e.ast.list,r=Array(n.length),i=-1;for(let e=n.length;e-- >0;)t(n[e])&&(r[e]=!0,i=e);if(i==-1)throw Error(`Couldn't find the required simple selector.`);let a=n[i];return e.ast.list=n.filter((e,t)=>!r[t]),a}function By(e,t,n){let r={};for(let i of e){let e={};for(let r of i.ast.list.filter(t))e[n(r)]=!0;for(let t of Object.keys(e))r[t]?r[t]++:r[t]=1}let i=``,a=0;for(let e of Object.entries(r))e[1]>a&&(i=e[0],a=e[1]);return i}function Vy(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}function Hy(e,t){let n=[],r=[];for(let i of e)t(i)?n.push(i):r.push(i);return{matches:n,rest:r}}var Uy=class{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,t=!1){let n=this.f(e),r=n.length;if(r===0)return null;if(r===1)return n[0].value;let i=t?Wy:Gy,a=n[0];for(let e=1;e<r;e++){let t=n[e];i(a,t)&&(a=t)}return a.value}};function Wy(e,t){let n=Sy(t.specificity,e.specificity);return n>0||n===0&&t.index<e.index}function Gy(e,t){let n=Sy(t.specificity,e.specificity);return n>0||n===0&&t.index>e.index}function Ky(e){return new Uy(qy(e))}function qy(e){let t=e.map(Jy);return(e,...n)=>t.flatMap(t=>t(e,...n))}function Jy(e){switch(e.type){case`terminal`:return()=>[e.valueContainer];case`tagName`:return Yy(e);case`attrValue`:return Zy(e);case`attrPresence`:return Xy(e);case`pushElement`:return Qy(e);case`popElement`:return $y(e);default:return()=>[]}}function Yy(e){let t={};for(let n of e.variants)t[n.value.toLowerCase()]=qy(n.cont);return(e,...n)=>{let r=e.tagName?.toLowerCase(),i=r&&t[r];return i?i(e,...n):[]}}function Xy(e){let t=e.name,n=qy(e.cont);return(e,...r)=>e.hasAttribute(t)?n(e,...r):[]}function Zy(e){let t=[];for(let n of e.matchers){let e=n.predicate,r=qy(n.cont);t.push((t,n,...i)=>e(t)?r(n,...i):[])}let n=e.name;return(e,...r)=>{let i=e.getAttribute(n);return i===null?[]:t.flatMap(t=>t(i,e,...r))}}function Qy(e){let t=qy(e.cont),n=e.combinator===`+`?eb:tb;return(e,...r)=>{let i=n(e);return i?t(i,e,...r):[]}}function $y(e){let t=qy(e.cont);return(e,n,...r)=>t(n,...r)}function eb(e){let t=e.previousSibling;for(;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.previousSibling;return t}function tb(e){return e.parentElement}var nb=r.a(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(p(e,i)&&n.isMergeableObject(t[i])?r[i]=u(i,n)(e[i],t[i],n):r[i]=c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g})),rb=r.l(nb());function ib(e,t,n=()=>void 0){if(e===void 0){let e=function(...n){return t(e,...n)};return e}return e>=0?function(...r){return t(ib(e-1,t,n),...r)}:n}function ab(e,t){let n=0,r=e.length;for(;n<r&&e[n]===t;)++n;for(;r>n&&e[r-1]===t;)--r;return n>0||r<e.length?e.substring(n,r):e}function ob(e,t){let n=e.length;for(;n>0&&e[n-1]===t;)--n;return n<e.length?e.substring(0,n):e}function sb(e){return e.replace(/[\s\S]/g,e=>`\\u`+e.charCodeAt().toString(16).padStart(4,`0`))}function cb(e,t){let n=new Map;for(let r=e.length;r-- >0;){let i=e[r],a=t(i);n.set(a,n.has(a)?(0,rb.default)(i,n.get(a),{arrayMerge:lb}):i)}return[...n.values()].reverse()}var lb=(e,t,n)=>[...t];function ub(e,t){for(let n of t){if(!e)return;e=e[n]}return e}function db(e,t=`a`,n=26){let r=[];do--e,r.push(e%n),e=e/n>>0;while(e>0);let i=t.charCodeAt(0);return r.reverse().map(e=>String.fromCharCode(i+e)).join(``)}var fb=[`I`,`X`,`C`,`M`],pb=[`V`,`L`,`D`];function mb(e){return[...e+``].map(e=>+e).reverse().map((e,t)=>e%5<4?(e<5?``:pb[t])+fb[t].repeat(e%5):fb[t]+(e<5?pb[t]:fb[t+1])).reverse().join(``)}var hb=class{constructor(e,t=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=t||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=ub(e,[`longWordSplit`,`wrapCharacters`])||[],this.forceWrapOnLimit=ub(e,[`longWordSplit`,`forceWrapOnLimit`])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,t=!1){this.nextLineAvailableChars<=0&&!t&&this.startNewLine();let n=this.nextLineWords.length===0,r=e.length+ +!n;if(r<=this.nextLineAvailableChars||t)this.nextLineWords.push(e),this.nextLineAvailableChars-=r;else{let[t,...r]=this.splitLongWord(e);n||this.startNewLine(),this.nextLineWords.push(t),this.nextLineAvailableChars-=t.length;for(let e of r)this.startNewLine(),this.nextLineWords.push(e),this.nextLineAvailableChars-=e.length}}popWord(){let e=this.nextLineWords.pop();if(e!==void 0){let t=this.nextLineWords.length===0,n=e.length+ +!t;this.nextLineAvailableChars+=n}return e}concatWord(e,t=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,t),this.wordBreakOpportunity=!1;else{let n=this.popWord();this.pushWord(n?n.concat(e):e,t)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(e=>e.join(` `)).join(`
826
826
  `)}splitLongWord(e){let t=[],n=0;for(;e.length>this.maxLineLength;){let r=e.substring(0,this.maxLineLength),i=e.substring(this.maxLineLength),a=r.lastIndexOf(this.wrapCharacters[n]);if(a>-1)e=r.substring(a+1)+i,t.push(r.substring(0,a+1));else if(n++,n<this.wrapCharacters.length)e=r+i;else{if(this.forceWrapOnLimit){if(t.push(r),e=i,e.length>this.maxLineLength)continue}else e=r+i;break}}return t.push(e),t}},gb=class{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}},_b=class extends gb{constructor(e,t=null,n=1,r=void 0){super(t),this.leadingLineBreaks=n,this.inlineTextBuilder=new hb(e,r),this.rawText=``,this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}},vb=class extends _b{constructor(e,t=null,{interRowLineBreaks:n=1,leadingLineBreaks:r=2,maxLineLength:i=void 0,maxPrefixLength:a=0,prefixAlign:o=`left`}={}){super(e,t,r,i),this.maxPrefixLength=a,this.prefixAlign=o,this.interRowLineBreaks=n}},yb=class extends _b{constructor(e,t=null,{leadingLineBreaks:n=1,maxLineLength:r=void 0,prefix:i=``}={}){super(e,t,n,r),this.prefix=i}},bb=class extends gb{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}},xb=class extends gb{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}},Sb=class extends gb{constructor(e,t=null,n=void 0){super(t),this.inlineTextBuilder=new hb(e,n),this.rawText=``,this.stashedLineBreaks=0,this.isPre=t&&t.isPre,this.isNoWrap=t&&t.isNoWrap}},Cb=class extends gb{constructor(e=null,t){super(e),this.transform=t}};function wb(e){return[...e].map(e=>`\\u`+e.charCodeAt(0).toString(16).padStart(4,`0`)).join(``)}var Tb=class{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,``):e.whitespaceCharacters;let t=wb(this.whitespaceChars);if(this.leadingWhitespaceRe=RegExp(`^[${t}]`),this.trailingWhitespaceRe=RegExp(`[${t}]$`),this.allWhitespaceOrEmptyRe=RegExp(`^[${t}]*$`),this.newlineOrNonWhitespaceRe=RegExp(`(\\n|[^\\n${t}])`,`g`),this.newlineOrNonNewlineStringRe=RegExp(`(\\n|[^\\n]+)`,`g`),e.preserveNewlines){let e=RegExp(`\\n|[^\\n${t}]+`,`gm`);this.shrinkWrapAdd=function(t,n,r=e=>e,i=!1){if(!t)return;let a=n.stashedSpace,o=!1,s=e.exec(t);if(s)for(o=!0,s[0]===`
827
827
  `?n.startNewLine():a||this.testLeadingWhitespace(t)?n.pushWord(r(s[0]),i):n.concatWord(r(s[0]),i);(s=e.exec(t))!==null;)s[0]===`
828
828
  `?n.startNewLine():n.pushWord(r(s[0]),i);n.stashedSpace=a&&!o||this.testTrailingWhitespace(t)}}else{let e=RegExp(`[^${t}]+`,`g`);this.shrinkWrapAdd=function(t,n,r=e=>e,i=!1){if(!t)return;let a=n.stashedSpace,o=!1,s=e.exec(t);if(s)for(o=!0,a||this.testLeadingWhitespace(t)?n.pushWord(r(s[0]),i):n.concatWord(r(s[0]),i);(s=e.exec(t))!==null;)n.pushWord(r(s[0]),i);n.stashedSpace=a&&!o||this.testTrailingWhitespace(t)}}}addLiteral(e,t,n=!0){if(!e)return;let r=t.stashedSpace,i=!1,a=this.newlineOrNonNewlineStringRe.exec(e);if(a)for(i=!0,a[0]===`