2 lines
1.1 MiB
2 lines
1.1 MiB
/*! For license information please see jodit-react.js.LICENSE.txt */
|
||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.JoditEditor=t(require("react")):(e.JoditEditor=e.JoditEditor||{},e.JoditEditor.Jodit=t(e.React))}(self,(e=>(()=>{"use strict";var t={616:(e,t,o)=>{o.d(t,{A:()=>g});var n=o(772),r=o.n(n),i=o(333),a=o.n(i),l=o(504),s=o.n(l),c=new URL(o(523),o.b),u=new URL(o(789),o.b),d=new URL(o(65),o.b),f=a()(r()),p=s()(c),h=s()(u),v=s()(d);f.push([e.id,`.jodit-ui-group{display:inline-flex;flex:0 0 auto;flex-shrink:0;flex-wrap:wrap;max-width:100%}.jodit-ui-group_line_true{display:flex;justify-content:stretch}.jodit-ui-group_separated_true:not(:last-child):not(.jodit-ui-group_before-spacer_true):after{border-left:0;border-right:1px solid var(--jd-color-border);content:"";cursor:default;margin:2px;padding:0}.jodit-ui-group:last-child{border-bottom:0}.jodit-ui-list{display:flex;flex-direction:column}.jodit-ui-list_mode_vertical .jodit-ui-group{background-color:transparent;border:0;flex-direction:column}.jodit-ui-list_mode_vertical .jodit-toolbar-button{height:auto;min-height:var(--jd-button-size)}.jodit-ui-list_mode_vertical .jodit-toolbar-button__button{cursor:pointer;height:auto;min-height:var(--jd-button-size);width:100%}.jodit-ui-list_mode_vertical .jodit-toolbar-button__text:not(:empty){justify-content:left}.jodit-ui-separator{border-left:0;border-right:1px solid var(--jd-color-border);cursor:default;margin:2px;padding:0}.jodit-ui-break{border-top:1px solid var(--jd-color-border);flex-basis:100%;height:0!important;width:0}.jodit-ui-spacer{flex:1}.jodit-ui-button-icon-text__icon{display:none}.jodit-ui-button-icon-text__icon:not(:empty){display:inline-flex}.jodit-ui-button-icon-text__text{display:none}.jodit-ui-button-icon-text__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-ui-button-icon-text_context_menu .jodit-ui-button-icon-text__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-ui-button-icon-text_context_menu .jodit-ui-button-icon-text__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-ui-button-icon-text__icon:not(:empty)+.jodit-ui-button-icon-text__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-ui-button-icon-text__icon:empty+.jodit-ui-button-icon-text__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-ui-button-clear,.jodit-ui-button_clear{appearance:none;background:0 0;border:0;box-shadow:none;box-sizing:border-box;font-style:normal;outline:0;padding:0;position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-ui-button-sizes{height:34px;min-width:34px}.jodit-ui-button-sizes .jodit-icon{height:14px;width:14px}.jodit-ui-button-sizes button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-ui-button-sizes_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_tiny{height:16px;min-width:16px}.jodit-ui-button-sizes_size_tiny .jodit-icon{height:8px;width:8px}.jodit-ui-button-sizes_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-ui-button-sizes_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_xsmall{height:22px;min-width:22px}.jodit-ui-button-sizes_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-ui-button-sizes_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-ui-button-sizes_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_small{height:28px;min-width:28px}.jodit-ui-button-sizes_size_small .jodit-icon{height:12px;width:12px}.jodit-ui-button-sizes_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-ui-button-sizes_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-sizes_size_large{height:40px;min-width:40px}.jodit-ui-button-sizes_size_large .jodit-icon{height:16px;width:16px}.jodit-ui-button-sizes_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-ui-button-sizes_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button-variants_variant_outline{border:1px solid var(--jd-color-border)}.jodit-ui-button-variants_variant_default{background-color:#e3e3e3;color:#212529}.jodit-ui-button-variants_variant_default svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default [disabled]{opacity:.7}.jodit-ui-button-variants_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button-variants_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button-variants_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button-variants_variant_primary{background-color:#007bff;color:#fff}.jodit-ui-button-variants_variant_primary svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary [disabled]{opacity:.7}.jodit-ui-button-variants_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-ui-button-variants_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-ui-button-variants_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-ui-button-variants_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-ui-button-variants_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary [disabled]{opacity:.7}.jodit-ui-button-variants_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button-variants_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button-variants_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button-variants_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button-variants_variant_success{background-color:#28a745;color:#fff}.jodit-ui-button-variants_variant_success svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success [disabled]{opacity:.7}.jodit-ui-button-variants_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-ui-button-variants_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-ui-button-variants_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-ui-button-variants_variant_danger{background-color:#dc3545;color:#fff}.jodit-ui-button-variants_variant_danger svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger [disabled]{opacity:.7}.jodit-ui-button-variants_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-ui-button-variants_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-ui-button-variants_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button-variants_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-ui-button-style{border-radius:var(--jd-border-radius-default);padding:0 var(--jd-padding-default)}.jodit-ui-button,.jodit-ui-button-style{align-items:center;color:var(--jd-color-text-icons);display:inline-flex;justify-content:center}.jodit-ui-button{appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;cursor:pointer;font-style:normal;height:34px;min-width:34px;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-ui-button:focus-visible:not([disabled]),.jodit-ui-button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-ui-button:active:not([disabled]),.jodit-ui-button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-ui-button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-ui-button[disabled]{opacity:.3;pointer-events:none}.jodit-ui-button .jodit-icon{height:14px;width:14px}.jodit-ui-button button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-ui-button_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_tiny{height:16px;min-width:16px}.jodit-ui-button_size_tiny .jodit-icon{height:8px;width:8px}.jodit-ui-button_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-ui-button_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_xsmall{height:22px;min-width:22px}.jodit-ui-button_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-ui-button_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-ui-button_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_small{height:28px;min-width:28px}.jodit-ui-button_size_small .jodit-icon{height:12px;width:12px}.jodit-ui-button_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-ui-button_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button_size_large{height:40px;min-width:40px}.jodit-ui-button_size_large .jodit-icon{height:16px;width:16px}.jodit-ui-button_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-ui-button_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-ui-button__icon{display:none}.jodit-ui-button__icon:not(:empty){display:inline-flex}.jodit-ui-button__text{display:none}.jodit-ui-button__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-ui-button_context_menu .jodit-ui-button__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-ui-button_context_menu .jodit-ui-button__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-ui-button__icon:not(:empty)+.jodit-ui-button__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-ui-button__icon:empty+.jodit-ui-button__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-ui-button:focus:not([disabled]){outline:1px dashed var(--jd-color-background-selection)}.jodit-ui-button_variant_outline{border:1px solid var(--jd-color-border)}.jodit-ui-button_variant_default{background-color:#e3e3e3;color:#212529}.jodit-ui-button_variant_default svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default [disabled]{opacity:.7}.jodit-ui-button_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button_variant_primary{background-color:#007bff;color:#fff}.jodit-ui-button_variant_primary svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary [disabled]{opacity:.7}.jodit-ui-button_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-ui-button_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-ui-button_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-ui-button_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-ui-button_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary [disabled]{opacity:.7}.jodit-ui-button_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-ui-button_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-ui-button_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-ui-button_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-ui-button_variant_success{background-color:#28a745;color:#fff}.jodit-ui-button_variant_success svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success [disabled]{opacity:.7}.jodit-ui-button_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-ui-button_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-ui-button_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-ui-button_variant_danger{background-color:#dc3545;color:#fff}.jodit-ui-button_variant_danger svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger [disabled]{opacity:.7}.jodit-ui-button_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-ui-button_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-ui-button_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-ui-button_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-ui-button-group{margin-bottom:var(--jd-padding-default)}.jodit-ui-button-group__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-button-group__options{display:flex;justify-content:flex-start}.jodit-ui-button-group .jodit-ui-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.jodit-ui-button-group .jodit-ui-button+.jodit-ui-button{border-bottom-left-radius:0;border-left:1px solid var(--jd-color-button-background-hover-opacity40);border-top-left-radius:0}.jodit-ui-button-group .jodit-ui-button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover);border-left:0;box-shadow:inset 0 0 3px 0 var(--jd-color-dark);color:var(--jd-color-dark);outline:0}.jodit-ui-button-group .jodit-ui-button[aria-pressed=true]:not([disabled])+.jodit-ui-button{border:0}:root{--jd-tooltip-color:#fff;--jd-tooltip-background-color:rgba(0,0,0,.7);--jd-tooltip-sfx-shadow:rgba(0,0,0,.15);--jd-tooltip-border-width:0;--jd-tooltip-border-color:#e5e5e5}.jodit-ui-tooltip{animation-fill-mode:forwards;animation-timing-function:ease-out;background-clip:padding-box;background-color:var(--jd-tooltip-background-color);border-radius:4px;box-shadow:0 0 0 var(--jd-tooltip-border-width) var(--jd-tooltip-border-color),0 8px 20px var(--jd-tooltip-border-width) var(--jd-tooltip-sfx-shadow);color:var(--jd-tooltip-color);font-family:var(--jd-font-default);font-size:var(--jd-font-size-small);line-height:1.4;max-width:120px;opacity:0;outline:none;pointer-events:none;position:fixed;text-rendering:optimizelegibility;transform:translate(-50%,calc(var(--jd-padding-default)/2));transition:opacity .2s ease 0s;user-select:none;white-space:normal;width:auto;z-index:var(--jd-z-index-tooltip)}@media (max-width:768px){.jodit-ui-tooltip{display:none}}.jodit-ui-tooltip__content{padding:calc(var(--jd-padding-default)/2) calc(var(--jd-padding-default)*1.5)}.jodit-ui-tooltip.jodit-ui-tooltip_visible_true{opacity:1}.jodit-ui-block{align-items:center;display:flex;justify-content:stretch;margin-bottom:var(--jd-padding-default)}.jodit-ui-block_width_full{width:100%}.jodit-ui-block_align_full{justify-content:space-between}.jodit-ui-block_align_right{justify-content:flex-end}.jodit-ui-block_padding_true{padding:var(--jd-padding-default)}.jodit-ui-label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-input{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-ui-input__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-input__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-input__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-input__input:focus{outline:0}.jodit-ui-input_theme_dark .jodit-ui-input__input{background-color:var(--jd-color-gray)}.jodit-ui-input_has-error_true .jodit-ui-input__input{border-color:var(--jd-color-red)}.jodit-ui-input__error,.jodit-ui-input__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-input__error,.jodit-ui-input_has-error_true .jodit-ui-input__label{color:var(--jd-color-error)}.jodit-ui-input__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-input__wrapper{min-width:140px}}.jodit-ui-input_theme_dark .jodit-ui-input__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-input_focused_true .jodit-ui-input__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-input__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-input__icon:not(:empty) svg{height:16px;width:16px;fill:var(--jd-color-border)}.jodit-ui-input__icon:not(:empty)+.jodit-ui-input__input{padding-left:0}.jodit-ui-input__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-input__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-input__clear svg{height:12px;width:12px;fill:var(--jd-color-border)}.jodit-ui-input_theme_dark .jodit-ui-input__clear svg,.jodit-ui-input_theme_dark .jodit-ui-input__icon svg{fill:var(--jd-color-dark)}.jodit-ui-block .jodit-ui-input{margin-bottom:0}.jodit-ui-select{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-ui-select__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-select__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-select__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-select__input:focus{outline:0}.jodit-ui-select_theme_dark .jodit-ui-select__input{background-color:var(--jd-color-gray)}.jodit-ui-select_has-error_true .jodit-ui-select__input{border-color:var(--jd-color-red)}.jodit-ui-select__error,.jodit-ui-select__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-select__error,.jodit-ui-select_has-error_true .jodit-ui-select__label{color:var(--jd-color-error)}.jodit-ui-select__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-select__wrapper{min-width:140px}}.jodit-ui-select_theme_dark .jodit-ui-select__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-select_focused_true .jodit-ui-select__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-select__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-select__icon:not(:empty) svg{height:16px;width:16px;fill:var(--jd-color-border)}.jodit-ui-select__icon:not(:empty)+.jodit-ui-select__input{padding-left:0}.jodit-ui-select__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-select__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-select__clear svg{height:12px;width:12px;fill:var(--jd-color-border)}.jodit-ui-select_theme_dark .jodit-ui-select__clear svg,.jodit-ui-select_theme_dark .jodit-ui-select__icon svg{fill:var(--jd-color-dark)}.jodit-ui-select__input[multiple]{height:auto;padding:0}.jodit-ui-select__input[multiple] option{padding:calc(var(--jd-padding-default)*.5) var(--jd-padding-default)}.jodit-ui-select__input:not([multiple]){background-image:url(${p});background-position:98% 50%;background-repeat:no-repeat;padding-right:calc(var(--jd-padding-default)*2)}.jodit-ui-select_size_tiny{margin-bottom:0}.jodit-ui-select_size_tiny .jodit-ui-select__input{--jd-height:calc(var(--jd-input-height)/1.8);height:var(--jd-height);line-height:var(--jd-height)}.jodit-ui-select_variant_outline .jodit-ui-select__wrapper{border:0}.jodit-ui-select_variant_outline .jodit-ui-select__wrapper select{outline:0}.jodit-ui-select_width_auto{width:auto}.jodit-ui-select_width_auto .jodit-ui-select__wrapper{min-width:auto}.jodit-ui-text-area{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default);width:100%}.jodit-ui-text-area__input{appearance:none;background-color:var(--jd-color-white);border:0;border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-text-area__input[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit-ui-text-area__input_has-error_true{border-color:var(--jd-color-red)}.jodit-ui-text-area__input:focus{outline:0}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__input{background-color:var(--jd-color-gray)}.jodit-ui-text-area_has-error_true .jodit-ui-text-area__input{border-color:var(--jd-color-red)}.jodit-ui-text-area__error,.jodit-ui-text-area__label{color:var(--jd-color-label);display:block;font-size:.8em;margin-bottom:calc(var(--jd-padding-default)/4)}.jodit-ui-text-area__error,.jodit-ui-text-area_has-error_true .jodit-ui-text-area__label{color:var(--jd-color-error)}.jodit-ui-text-area__wrapper{align-items:center;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);display:flex;justify-content:stretch;min-width:200px}@media (max-width:480px){.jodit-ui-text-area__wrapper{min-width:140px}}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__wrapper{background-color:var(--jd-color-gray);border-color:var(--jd-color-border)}.jodit-ui-text-area_focused_true .jodit-ui-text-area__wrapper{border-color:var(--jd-color-border-selected)}.jodit-ui-text-area__icon:not(:empty){align-items:center;display:flex;padding:0 var(--jd-padding-default)}.jodit-ui-text-area__icon:not(:empty) svg{height:16px;width:16px;fill:var(--jd-color-border)}.jodit-ui-text-area__icon:not(:empty)+.jodit-ui-text-area__input{padding-left:0}.jodit-ui-text-area__clear{align-items:center;display:flex;opacity:.8;padding:0 var(--jd-padding-default) 0 0}.jodit-ui-text-area__clear:active{opacity:1;transform:scale(1.1)}.jodit-ui-text-area__clear svg{height:12px;width:12px;fill:var(--jd-color-border)}.jodit-ui-text-area_theme_dark .jodit-ui-text-area__clear svg,.jodit-ui-text-area_theme_dark .jodit-ui-text-area__icon svg{fill:var(--jd-color-dark)}.jodit-ui-text-area__wrapper{flex:1}.jodit-ui-text-area__input{height:100%;min-height:60px;padding:var(--jd-padding-default)}.jodit-ui-checkbox{align-items:center;display:flex;flex-direction:row-reverse;justify-content:flex-end;margin-bottom:var(--jd-padding-default)}.jodit-ui-checkbox__input{margin-right:var(--jd-padding-default)}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__wrapper{display:inline-block;height:34px;margin-right:var(--jd-padding-default);position:relative;width:60px}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__wrapper input{height:0;opacity:0;width:0}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__switch-slider{background-color:#ccc;border-radius:34px;cursor:pointer;inset:0;position:absolute;transition:.4s}.jodit-ui-checkbox_switch_true .jodit-ui-checkbox__switch-slider:before{background-color:#fff;border-radius:50%;bottom:4px;content:"";height:26px;left:4px;position:absolute;transition:.4s;width:26px}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_checked_true .jodit-ui-checkbox__switch-slider{background-color:#2196f3}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_checked_true .jodit-ui-checkbox__switch-slider:before{transform:translateX(26px)}.jodit-ui-checkbox_switch_true.jodit-ui-checkbox_focused_true .jodit-ui-checkbox__switch-slider{box-shadow:0 0 1px #2196f3}.jodit-ui-block .jodit-ui-checkbox{margin-bottom:0}.jodit-ui-file-input{overflow:hidden;position:relative}.jodit-ui-file-input__input{bottom:0;cursor:pointer;font-size:400px;margin:0 calc(var(--jd-padding-default)*-1) 0 0;opacity:0;padding:0;position:absolute;right:0;top:0}:root{--jd-popup-box-shadow:0 4px 1px -2px rgba(76,76,76,.2),0 3px 3px 0 rgba(76,76,76,.15),0 1px 4px 0 rgba(76,76,76,.13);--jd-popup-max-height:max(50vh,350px)}.jodit-popup{background:0 0;border:0;box-shadow:var(--jd-popup-box-shadow);display:inline-block;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;position:fixed;transform:translateZ(0);width:auto;z-index:var(--jd-z-index-popup)}.jodit-popup__content{background:var(--jd-color-background-default);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);max-height:var(--jd-popup-max-height,400px);overflow:auto;padding:var(--jd-padding-default);overflow-scrolling:touch}.jodit-popup_padding_false .jodit-popup__content{padding:0}.jodit-popup_max-height_false .jodit-popup__content{max-height:fit-content}@keyframes a{30%{opacity:.6}60%{opacity:0}to{opacity:.6}}.jodit-progress-bar{border-radius:1px;height:2px;left:0;opacity:.7;position:absolute;top:0;z-index:2147483647}.jodit-progress-bar div{background:var(--jd-color-background-progress);height:2px;position:relative;transition:width .5s ease-out,opacity .5s linear;will-change:width,opacity}.jodit-progress-bar div:after,.jodit-progress-bar div:before{animation:a 2s ease-out 0s infinite;border-radius:100%;box-shadow:var(--jd-color-background-progress) 1px 0 6px 1px;content:"";display:inline-block;height:2px;opacity:.6;position:absolute;top:0}.jodit-progress-bar div:before{right:-80px;width:180px;clip:rect(-6px,90px,14px,-6px)}.jodit-progress-bar div:after{right:0;width:20px;clip:rect(-6px,22px,14px,var(--jd-padding-default))}:root{--jd-em-color-border:#b6d4fe;--jd-em-color-bg:#cfe2ff;--jd-em-color-color:#084298;--jd-em-border-radius:0.375rem;--jd-em-padding:0.5rem 1rem;--jd-em-font-size:1rem}.jodit-ui-messages{bottom:0;height:0;overflow:visible;position:absolute;right:0;width:0;z-index:3}.jodit-ui-message{background:var(--jd-em-color-bg);border:1px solid var(--jd-em-color-border);border-radius:var(--jd-em-border-radius);bottom:0;color:var(--jd-em-color-color);cursor:pointer;display:block;font-size:var(--jd-em-font-size);opacity:0;padding:var(--jd-em-padding);position:absolute;right:calc(var(--jd-padding-default)/2);transition:opacity .1s linear,bottom .3s linear,transform .1s ease-out;white-space:pre}.jodit-ui-message_active_true{opacity:1}.jodit-ui-message:active{transform:scale(.76)}.jodit-ui-message_variant_secondary{--jd-em-color-border:#d3d6d8;--jd-em-color-bg:#e2e3e5;--jd-em-color-color:#41464b}.jodit-ui-message_variant_danger,.jodit-ui-message_variant_error,.jodit-ui-message_variant_secondary{background:var(--jd-em-color-bg);border-color:var(--jd-em-color-border);color:var(--jd-em-color-color)}.jodit-ui-message_variant_danger,.jodit-ui-message_variant_error{--jd-em-color-border:#f5c2c7;--jd-em-color-bg:#f8d7da;--jd-em-color-color:#842029}.jodit-ui-message_variant_success{--jd-em-color-border:#badbcc;--jd-em-color-bg:#d1e7dd;--jd-em-color-color:#0f5132;background:var(--jd-em-color-bg);border-color:var(--jd-em-color-border);color:var(--jd-em-color-color)}.jodit-toolbar-collection,.jodit-toolbar-editor-collection{display:flex;flex-direction:column}.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent calc(var(--jd-button-size) - 1px),var(--jd-color-border) var(--jd-button-size));position:relative}.jodit-toolbar-collection_mode_horizontal:after,.jodit-toolbar-editor-collection_mode_horizontal:after{background-color:var(--jd-color-background-default);bottom:0;content:"";display:block;height:1px;left:0;position:absolute;width:100%}.jodit-toolbar-collection_size_tiny,.jodit-toolbar-editor-collection_size_tiny{--jd-button-icon-size:8px}.jodit-toolbar-collection_size_tiny.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_tiny.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_tiny.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_tiny.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 19px,var(--jd-color-border) 20px)}.jodit-toolbar-collection_size_xsmall,.jodit-toolbar-editor-collection_size_xsmall{--jd-button-icon-size:10px}.jodit-toolbar-collection_size_xsmall.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_xsmall.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_xsmall.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_xsmall.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 25px,var(--jd-color-border) 26px)}.jodit-toolbar-collection_size_small,.jodit-toolbar-editor-collection_size_small{--jd-button-icon-size:12px}.jodit-toolbar-collection_size_small.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_small.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_small.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_small.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 31px,var(--jd-color-border) 32px)}.jodit-toolbar-collection_size_middle,.jodit-toolbar-editor-collection_size_middle{--jd-button-icon-size:14px}.jodit-toolbar-collection_size_middle.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_middle.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_middle.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_middle.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 37px,var(--jd-color-border) 38px)}.jodit-toolbar-collection_size_large,.jodit-toolbar-editor-collection_size_large{--jd-button-icon-size:16px}.jodit-toolbar-collection_size_large.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-collection_size_large.jodit-toolbar-editor-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_large.jodit-toolbar-collection_mode_horizontal,.jodit-toolbar-editor-collection_size_large.jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent 43px,var(--jd-color-border) 44px)}.jodit-toolbar-collection_mode_vertical .jodit-ui-group,.jodit-toolbar-editor-collection_mode_vertical .jodit-ui-group{background-color:transparent;border:0;flex-direction:column}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button,.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button{height:auto;min-height:var(--jd-button-size)}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button__button,.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button__button{cursor:pointer;height:auto;min-height:var(--jd-button-size);width:100%}.jodit-toolbar-collection_mode_vertical .jodit-toolbar-button__text:not(:empty),.jodit-toolbar-editor-collection_mode_vertical .jodit-toolbar-button__text:not(:empty){justify-content:left}.jodit-toolbar-collection .jodit-toolbar-button,.jodit-toolbar-collection .jodit-toolbar-content,.jodit-toolbar-collection .jodit-toolbar-select,.jodit-toolbar-editor-collection .jodit-toolbar-button,.jodit-toolbar-editor-collection .jodit-toolbar-content,.jodit-toolbar-editor-collection .jodit-toolbar-select{margin:var(--jd-margin-v) 1px;padding:0}.jodit-dialog .jodit-toolbar-collection_mode_horizontal,.jodit-dialog .jodit-toolbar-editor-collection_mode_horizontal{background-image:none}:root{--jd-button-trigger-size:14px}.jodit-toolbar-button{align-items:center;border:1px solid transparent;border-radius:var(--jd-border-radius-default);display:flex;height:34px;justify-content:center;min-width:34px;overflow:hidden}.jodit-toolbar-button__icon{display:none}.jodit-toolbar-button__icon:not(:empty){display:inline-flex}.jodit-toolbar-button__text{display:none}.jodit-toolbar-button__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-button_context_menu .jodit-toolbar-button__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-button_context_menu .jodit-toolbar-button__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-button__icon:not(:empty)+.jodit-toolbar-button__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-button__icon:empty+.jodit-toolbar-button__text:not(:empty){padding:0 var(--jd-padding-default);padding:0}.jodit-toolbar-button .jodit-icon{height:14px;width:14px}.jodit-toolbar-button button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-button_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_tiny{height:16px;min-width:16px}.jodit-toolbar-button_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-button_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-button_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-button_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-button_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-button_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_small{height:28px;min-width:28px}.jodit-toolbar-button_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-button_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-button_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button_size_large{height:40px;min-width:40px}.jodit-toolbar-button_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-button_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-button_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-button__button{align-items:center;appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);cursor:pointer;display:inline-flex;font-style:normal;justify-content:center;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-button__button:focus-visible:not([disabled]),.jodit-toolbar-button__button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-button__button:active:not([disabled]),.jodit-toolbar-button__button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-button__button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-button__button[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-button__trigger{align-items:center;border-radius:0 var(--jd-border-radius-default) var(--jd-border-radius-default) 0;cursor:pointer;display:flex;height:100%;justify-content:center;opacity:.4;--jd-button-trigger-size:14px;width:calc(var(--jd-button-trigger-size, 14px) + 2px)}.jodit-toolbar-button__trigger:focus-visible:not([disabled]),.jodit-toolbar-button__trigger:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-button__trigger:active:not([disabled]),.jodit-toolbar-button__trigger[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-button__trigger[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-button__trigger[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 14px) - 4px)}.jodit-toolbar-button_size_tiny .jodit-toolbar-button__trigger{--jd-button-trigger-size:8px;width:calc(var(--jd-button-trigger-size, 8px) + 2px)}.jodit-toolbar-button_size_tiny .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 8px) - 4px)}.jodit-toolbar-button_size_xsmall .jodit-toolbar-button__trigger{--jd-button-trigger-size:10px;width:calc(var(--jd-button-trigger-size, 10px) + 2px)}.jodit-toolbar-button_size_xsmall .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 10px) - 4px)}.jodit-toolbar-button_size_small .jodit-toolbar-button__trigger{--jd-button-trigger-size:12px;width:calc(var(--jd-button-trigger-size, 12px) + 2px)}.jodit-toolbar-button_size_small .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 12px) - 4px)}.jodit-toolbar-button_size_large .jodit-toolbar-button__trigger{--jd-button-trigger-size:16px;width:calc(var(--jd-button-trigger-size, 16px) + 2px)}.jodit-toolbar-button_size_large .jodit-toolbar-button__trigger svg{width:calc(var(--jd-button-trigger-size, 16px) - 4px)}.jodit-toolbar-button_with-trigger_true .jodit-toolbar-button__button{border-radius:var(--jd-border-radius-default) 0 0 var(--jd-border-radius-default)}.jodit-toolbar-button_with-trigger_true:hover:not([disabled]){border-color:var(--jd-color-border)}.jodit-toolbar-button_stroke_false svg{stroke:none}.jodit-toolbar-content{align-items:center;appearance:none;background:0 0;border:1px solid transparent;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);cursor:pointer;display:inline-flex;font-style:normal;height:34px;justify-content:center;min-width:34px;outline:0;padding:0;position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-content:focus-visible:not([disabled]),.jodit-toolbar-content:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-content:active:not([disabled]),.jodit-toolbar-content[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-content[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-content[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-content .jodit-icon{height:14px;width:14px}.jodit-toolbar-content button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-content_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_tiny{height:16px;min-width:16px}.jodit-toolbar-content_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-content_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-content_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-content_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-content_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-content_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_small{height:28px;min-width:28px}.jodit-toolbar-content_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-content_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-content_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content_size_large{height:40px;min-width:40px}.jodit-toolbar-content_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-content_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-content_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-content__icon{display:none}.jodit-toolbar-content__icon:not(:empty){display:inline-flex}.jodit-toolbar-content__text{display:none}.jodit-toolbar-content__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-content_context_menu .jodit-toolbar-content__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-content_context_menu .jodit-toolbar-content__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-content__icon:not(:empty)+.jodit-toolbar-content__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-content__icon:empty+.jodit-toolbar-content__text:not(:empty){padding:0 var(--jd-padding-default)}.jodit-toolbar-content:focus:not([disabled]){outline:1px dashed var(--jd-color-background-selection)}.jodit-toolbar-content_variant_outline{border:1px solid var(--jd-color-border)}.jodit-toolbar-content_variant_default{background-color:#e3e3e3;color:#212529}.jodit-toolbar-content_variant_default svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default [disabled]{opacity:.7}.jodit-toolbar-content_variant_default:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-content_variant_default:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-content_variant_default:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_default:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-content_variant_primary{background-color:#007bff;color:#fff}.jodit-toolbar-content_variant_primary svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary [disabled]{opacity:.7}.jodit-toolbar-content_variant_primary:hover:not([disabled]){background-color:#0069d9;color:#fff}.jodit-toolbar-content_variant_primary:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary:active:not([disabled]){background-color:#0062cc;color:#fff}.jodit-toolbar-content_variant_primary:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_primary:focus:not([disabled]){outline:1px dashed #0062cc}.jodit-toolbar-content_variant_secondary{background-color:#d8d8d8;border-radius:0;color:#212529}.jodit-toolbar-content_variant_secondary svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary [disabled]{opacity:.7}.jodit-toolbar-content_variant_secondary:hover:not([disabled]){background-color:#c9cdd1;color:#212529}.jodit-toolbar-content_variant_secondary:hover:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary:active:not([disabled]){background-color:#dae0e5;color:#212529}.jodit-toolbar-content_variant_secondary:active:not([disabled]) svg{fill:#212529;stroke:#212529}.jodit-toolbar-content_variant_secondary:focus:not([disabled]){outline:1px dashed #dae0e5}.jodit-toolbar-content_variant_success{background-color:#28a745;color:#fff}.jodit-toolbar-content_variant_success svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success [disabled]{opacity:.7}.jodit-toolbar-content_variant_success:hover:not([disabled]){background-color:#218838;color:#fff}.jodit-toolbar-content_variant_success:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success:active:not([disabled]){background-color:#1e7e34;color:#fff}.jodit-toolbar-content_variant_success:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_success:focus:not([disabled]){outline:1px dashed #1e7e34}.jodit-toolbar-content_variant_danger{background-color:#dc3545;color:#fff}.jodit-toolbar-content_variant_danger svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger [disabled]{opacity:.7}.jodit-toolbar-content_variant_danger:hover:not([disabled]){background-color:#c82333;color:#fff}.jodit-toolbar-content_variant_danger:hover:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger:active:not([disabled]){background-color:#bd2130;color:#fff}.jodit-toolbar-content_variant_danger:active:not([disabled]) svg{fill:#fff;stroke:#fff}.jodit-toolbar-content_variant_danger:focus:not([disabled]){outline:1px dashed #bd2130}.jodit-toolbar-content:hover:not([disabled]){background-color:transparent;opacity:1;outline:0}.jodit-toolbar-select{--jd-color-button-background-hover-opacity40:hsla(0,0%,86%,.2);--jd-color-button-background-hover-opacity60:hsla(0,0%,86%,.1);align-items:center;border:1px solid transparent;border-radius:var(--jd-border-radius-default);cursor:pointer;display:flex;height:34px;justify-content:center;justify-content:space-between;min-width:34px;min-width:100px;overflow:hidden}.jodit-toolbar-select__icon{display:none}.jodit-toolbar-select__icon:not(:empty){display:inline-flex}.jodit-toolbar-select__text{display:none}.jodit-toolbar-select__text:not(:empty){display:inline-flex;flex-grow:1;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);justify-content:center;overflow:hidden;text-overflow:ellipsis}.jodit-toolbar-select_context_menu .jodit-toolbar-select__text{justify-content:left;padding-left:var(--jd-padding-default);position:relative}.jodit-toolbar-select_context_menu .jodit-toolbar-select__text:before{border-left:1px solid var(--jd-color-border);content:"";height:35px;left:0;position:absolute;top:calc(var(--jd-padding-default)*-1)}.jodit-toolbar-select__icon:not(:empty)+.jodit-toolbar-select__text:not(:empty){margin-left:var(--jd-padding-default)}.jodit-toolbar-select__icon:empty+.jodit-toolbar-select__text:not(:empty){padding:0 var(--jd-padding-default);padding:0}.jodit-toolbar-select .jodit-icon{height:14px;width:14px}.jodit-toolbar-select button{appearance:none;height:34px;min-width:34px;padding:0}.jodit-toolbar-select_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_tiny{height:16px;min-width:16px}.jodit-toolbar-select_size_tiny .jodit-icon{height:8px;width:8px}.jodit-toolbar-select_size_tiny button{appearance:none;height:16px;min-width:16px;padding:0}.jodit-toolbar-select_size_tiny_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_xsmall{height:22px;min-width:22px}.jodit-toolbar-select_size_xsmall .jodit-icon{height:10px;width:10px}.jodit-toolbar-select_size_xsmall button{appearance:none;height:22px;min-width:22px;padding:0}.jodit-toolbar-select_size_xsmall_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_small{height:28px;min-width:28px}.jodit-toolbar-select_size_small .jodit-icon{height:12px;width:12px}.jodit-toolbar-select_size_small button{appearance:none;height:28px;min-width:28px;padding:0}.jodit-toolbar-select_size_small_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select_size_large{height:40px;min-width:40px}.jodit-toolbar-select_size_large .jodit-icon{height:16px;width:16px}.jodit-toolbar-select_size_large button{appearance:none;height:40px;min-width:40px;padding:0}.jodit-toolbar-select_size_large_text-icons_true button{padding:0 var(--jd-padding-default)}.jodit-toolbar-select__button{align-items:center;appearance:none;background:0 0;border:0;border-radius:var(--jd-border-radius-default);box-shadow:none;box-sizing:border-box;color:var(--jd-color-text-icons);cursor:pointer;display:inline-flex;font-style:normal;justify-content:center;outline:0;padding:0;padding:0 var(--jd-padding-default);position:relative;text-align:center;text-decoration:none;text-transform:none;user-select:none}.jodit-toolbar-select__button:focus-visible:not([disabled]),.jodit-toolbar-select__button:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select__button:active:not([disabled]),.jodit-toolbar-select__button[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select__button[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select__button[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__trigger{align-items:center;border-radius:0 var(--jd-border-radius-default) var(--jd-border-radius-default) 0;cursor:pointer;display:flex;height:100%;justify-content:center;opacity:.4;--jd-button-trigger-size:14px;width:calc(var(--jd-button-trigger-size, 14px) + 2px)}.jodit-toolbar-select__trigger:focus-visible:not([disabled]),.jodit-toolbar-select__trigger:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select__trigger:active:not([disabled]),.jodit-toolbar-select__trigger[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select__trigger[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select__trigger[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 14px) - 4px)}.jodit-toolbar-select_size_tiny .jodit-toolbar-select__trigger{--jd-button-trigger-size:8px;width:calc(var(--jd-button-trigger-size, 8px) + 2px)}.jodit-toolbar-select_size_tiny .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 8px) - 4px)}.jodit-toolbar-select_size_xsmall .jodit-toolbar-select__trigger{--jd-button-trigger-size:10px;width:calc(var(--jd-button-trigger-size, 10px) + 2px)}.jodit-toolbar-select_size_xsmall .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 10px) - 4px)}.jodit-toolbar-select_size_small .jodit-toolbar-select__trigger{--jd-button-trigger-size:12px;width:calc(var(--jd-button-trigger-size, 12px) + 2px)}.jodit-toolbar-select_size_small .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 12px) - 4px)}.jodit-toolbar-select_size_large .jodit-toolbar-select__trigger{--jd-button-trigger-size:16px;width:calc(var(--jd-button-trigger-size, 16px) + 2px)}.jodit-toolbar-select_size_large .jodit-toolbar-select__trigger svg{width:calc(var(--jd-button-trigger-size, 16px) - 4px)}.jodit-toolbar-select_with-trigger_true .jodit-toolbar-button__button{border-radius:var(--jd-border-radius-default) 0 0 var(--jd-border-radius-default)}.jodit-toolbar-select_with-trigger_true:hover:not([disabled]){border-color:var(--jd-color-border)}.jodit-toolbar-select_stroke_false svg{stroke:none}.jodit-toolbar-select:focus-visible:not([disabled]),.jodit-toolbar-select:hover:not([disabled]){background-color:var(--jd-color-button-background-hover);opacity:1;outline:0}.jodit-toolbar-select:active:not([disabled]),.jodit-toolbar-select[aria-pressed=true]:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity40);outline:0}.jodit-toolbar-select[aria-pressed=true]:hover:not([disabled]){background-color:var(--jd-color-button-background-hover-opacity60)}.jodit-toolbar-select[disabled]{opacity:.3;pointer-events:none}.jodit-toolbar-select__text:not(:empty){justify-content:left}.jodit-toolbar-select__button{flex:1}.jodit-toolbar__box:not(:empty){--jd-color-background-default:var(--jd-color-panel);background-color:var(--jd-color-background-default);border-bottom:1px solid var(--jd-color-border);border-radius:var(--jd-border-radius-default) var(--jd-border-radius-default) 0 0;overflow:hidden}.jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after{background-color:var(--jd-color-panel)}.jodit-dialog{border:0;box-sizing:border-box;display:none;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:0;position:absolute;width:0;will-change:left,top,width,height}.jodit-dialog_moved_true{user-select:none}.jodit-dialog *{box-sizing:border-box}.jodit-dialog .jodit_elfinder,.jodit-dialog .jodit_elfinder *{box-sizing:initial}.jodit-dialog__overlay{background-color:rgba(0,0,0,.5);display:none;height:100%;left:0;overflow:auto;position:fixed;text-align:center;top:0;white-space:nowrap;width:100%;z-index:var(--jd-z-index-dialog-overlay)}.jodit-dialog_static_true .jodit-dialog__overlay{display:none}.jodit-dialog_active_true,.jodit-dialog_modal_true .jodit-dialog__overlay{display:block}.jodit-dialog__panel{background-color:#fff;display:flex;flex-flow:column nowrap;left:0;max-height:100%;max-width:100%;min-height:100px;min-width:200px;position:fixed;top:0;z-index:var(--jd-z-index-dialog);--jd-box-shadow-blur:calc(var(--jd-padding-default)*2);--jd-box-shadow-1:0 var(--jd-padding-default) var(--jd-box-shadow-blur) rgba(0,0,0,.19);box-shadow:var(--jd-box-shadow-1),0 6px 6px rgba(0,0,0,.23);text-align:left;white-space:normal}@media (max-width:480px){.jodit-dialog:not(.jodit-dialog_adaptive_false) .jodit-dialog__panel{height:100%!important;left:0!important;max-width:100%;top:0!important;width:100%!important}}.jodit-dialog_static_true{box-sizing:border-box;display:block;height:auto;position:relative;width:auto;z-index:inherit}.jodit-dialog_static_true .jodit-dialog__panel{border:1px solid var(--jd-color-border);box-shadow:none;left:auto!important;position:relative;top:auto!important;width:100%!important;z-index:inherit}.jodit-dialog_theme_dark,.jodit-dialog_theme_dark .jodit-dialog__panel{background-color:var(--jd-dark-background-darknes);color:var(--jd-dark-text-color)}.jodit-dialog__header{border-bottom:1px solid var(--jd-color-border);cursor:move;display:flex;justify-content:space-between;min-height:50px;text-align:left}.jodit-dialog__header-title,.jodit-dialog__header-toolbar{align-items:center;display:flex;flex-shrink:3;font-size:18px;font-weight:400;line-height:48px;margin:0;padding:0 var(--jd-padding-default);vertical-align:top}@media (max-width:480px){.jodit-dialog__header-toolbar{padding-left:0}}.jodit-dialog__header-button{color:#222;flex-basis:48px;font-size:28px;height:48px;line-height:48px;text-align:center;text-decoration:none;transition:background-color .2s ease 0s}.jodit-dialog__header-button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-dialog__header .jodit_toolbar{background:transparent;border:0;box-shadow:none}.jodit-dialog__header .jodit_toolbar>li.jodit-toolbar-button .jodit-input{padding-left:var(--jd-padding-default);width:auto}@media (max-width:480px){.jodit-dialog:not(.jodit-dialog_adaptive_false) .jodit-dialog__header{flex-direction:column}}.jodit-dialog_slim_true .jodit-dialog__header{min-height:10px}.jodit-dialog_slim_true .jodit-dialog__header-title,.jodit-dialog_slim_true .jodit-dialog__header-toolbar{padding:0 calc(var(--jd-padding-default)/4)}.jodit-dialog_theme_dark .jodit-dialog__header{border-color:var(--jd-color-dark)}.jodit-dialog_fullsize_true .jodit-dialog__header{cursor:default}.jodit-dialog__content{flex:1;min-height:100px;overflow:auto}.jodit-dialog__content .jodit-form__group{margin-bottom:calc(var(--jd-padding-default)*1.5);padding:0 var(--jd-padding-default)}.jodit-dialog__content .jodit-form__group:first-child{margin-top:var(--jd-padding-default)}.jodit-dialog__content .jodit-form__group .jodit-input_group{border-collapse:separate;display:table;width:100%}.jodit-dialog__content .jodit-form__group .jodit-input_group>*{display:table-cell;height:34px;vertical-align:middle}.jodit-dialog__content .jodit-form__group .jodit-input_group>input{margin:0!important}.jodit-dialog__content .jodit-form__group .jodit-input_group>input:not([class*=col-]){width:100%}.jodit-dialog__content .jodit-form__group .jodit-input_group-buttons{font-size:0;vertical-align:middle;white-space:nowrap;width:1%}.jodit-dialog__content .jodit-form__group .jodit-input_group-buttons>.jodit-button{border:1px solid var(--jd-color-border);border-radius:0;height:34px;line-height:34px;margin-left:-1px}.jodit-dialog__footer{display:none;flex-wrap:nowrap;justify-content:space-between;padding:var(--jd-padding-default)}.jodit-dialog__footer button{margin-right:calc(var(--jd-padding-default)/2)}.jodit-dialog__footer button:last-child{margin-right:0}.jodit-dialog__column{display:flex}.jodit-dialog__resizer{display:none;position:relative}.jodit-dialog__resizer svg{bottom:0;cursor:nwse-resize;height:12px;overflow:hidden;position:absolute;right:0;width:12px;fill:var(--jd-color-gray-dark);user-select:none}.jodit-dialog_resizable_true .jodit-dialog__resizer{display:block}@media (max-width:480px){.jodit-dialog__resizer{display:none}}.jodit-dialog_prompt{max-width:300px;min-width:200px;padding:var(--jd-padding-default);word-break:break-all}.jodit-dialog_prompt label{display:block;margin-bottom:calc(var(--jd-padding-default)/2)}.jodit-dialog_alert{max-width:300px;min-width:200px;padding:var(--jd-padding-default);word-break:break-all}.jodit-dialog_footer_true .jodit-dialog__footer{display:flex}.jodit_fullsize .jodit-dialog__panel{height:100%!important;inset:0!important;width:100%!important}.jodit_fullsize .jodit-dialog__panel .jodit-dialog__resizer{display:none}.jodit-dialog .jodit-ui-messages{z-index:var(--jd-z-index-dialog)}.jodit-context-menu{background:0 0;border:0;box-shadow:var(--jd-popup-box-shadow);display:inline-block;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;position:fixed;transform:translateZ(0);width:auto;z-index:var(--jd-z-index-popup);z-index:var(--jd-z-index-context-menu)}.jodit-context-menu,.jodit-context-menu__content{font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-context-menu__content{background:var(--jd-color-background-default);max-height:var(--jd-popup-max-height,400px);overflow:auto;padding:var(--jd-padding-default);overflow-scrolling:touch}.jodit-context-menu_padding_false .jodit-context-menu__content{padding:0}.jodit-context-menu_max-height_false .jodit-context-menu__content{max-height:fit-content}.jodit-context-menu .jodit-ui-button{display:flex}.jodit-context-menu button{width:100%}.jodit-context-menu_theme_dark{background-color:var(--jd-dark-background-color)}:root{--jd-image-editor-resizer-border-color:#05ff00;--jd-image-editor-resizer-target-size:padding-default;--jd-image-editor-resizer-target-border-color:#383838;--jd-image-editor-resizer-target-bg-color:#8c7878}.jodit-image-editor{height:100%;overflow:hidden;padding:var(--jd-padding-default);width:100%}@media (max-width:768px){.jodit-image-editor{height:auto}}.jodit-image-editor>div,.jodit-image-editor>div>div{height:100%}@media (max-width:768px){.jodit-image-editor>div,.jodit-image-editor>div>div{height:auto;min-height:200px}}.jodit-image-editor *{box-sizing:border-box}.jodit-image-editor .jodit-image-editor__slider-title{background-color:#f9f9f9;border-bottom:1px solid hsla(0,0%,62%,.31);color:#333;cursor:pointer;font-weight:700;line-height:1em;padding:.8em 1em;text-overflow:ellipsis;text-shadow:#f3f3f3 0 1px 0;user-select:none;white-space:nowrap}.jodit-image-editor .jodit-image-editor__slider-title svg{display:inline-block;margin-right:var(--jd-padding-default);vertical-align:middle;width:16px}.jodit-image-editor .jodit-image-editor__slider-content{display:none}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title{background-color:#5d5d5d;color:#fff;text-shadow:#000 0 1px 0}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title svg{fill:#fff}.jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-content{display:block}.jodit-image-editor__area{background-color:#eee;background-image:linear-gradient(45deg,var(--jd-color-border) 25%,transparent 25%,transparent 75%,var(--jd-color-border) 75%,var(--jd-color-border)),linear-gradient(45deg,var(--jd-color-border) 25%,transparent 25%,transparent 75%,var(--jd-color-border) 75%,var(--jd-color-border));background-position:0 0,15px 15px;background-size:30px 30px;display:none;height:100%;overflow:hidden;position:relative;user-select:none;width:100%}.jodit-image-editor__area.jodit-image-editor_active{display:block}.jodit-image-editor__area .jodit-image-editor__box{height:100%;overflow:hidden;pointer-events:none;position:relative;z-index:1}.jodit-image-editor__area .jodit-image-editor__box img{max-height:100%;max-width:100%;user-select:none}.jodit-image-editor__area .jodit-image-editor__croper,.jodit-image-editor__area .jodit-image-editor__resizer{background-repeat:no-repeat;border:1px solid #fff;box-shadow:0 0 11px #000;height:100px;left:20px;pointer-events:none;position:absolute;top:var(--jd-padding-default);width:100px;z-index:2}.jodit-image-editor__area .jodit-image-editor__croper i.jodit_bottomright,.jodit-image-editor__area .jodit-image-editor__resizer i.jodit_bottomright{background-color:var(--jd-image-editor-resizer-target-bg-color);border:1px solid var(--jd-image-editor-resizer-target-border-color);border-radius:50%;bottom:calc(var(--jd-padding-default)*-1);box-shadow:0 0 11px #000;cursor:se-resize;display:inline-block;height:20px;pointer-events:all;position:absolute;right:calc(var(--jd-padding-default)*-1);width:20px;z-index:4}.jodit-image-editor__area .jodit-image-editor__croper i.jodit_bottomright:active,.jodit-image-editor__area .jodit-image-editor__resizer i.jodit_bottomright:active{border:1px solid #ff0}.jodit-image-editor__area.jodit-image-editor__area_crop{background:#eee;height:100%;line-height:100%;position:relative;text-align:center}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box{height:100%;line-height:100%;overflow:visible;pointer-events:all;text-align:left}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box img{height:100%;max-height:100%;max-width:100%;width:100%}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box:after{background:hsla(0,0%,100%,.3);content:"";inset:0;margin:auto;position:absolute;z-index:1}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box .jodit-image-editor__croper{cursor:move;pointer-events:all}.jodit-image-editor__area.jodit-image-editor__area_crop .jodit-image-editor__box .jodit-image-editor__croper i.jodit-image-editor__sizes{background:rgba(0,0,0,.2);border-radius:.4em;bottom:-30px;color:#fff;display:block;font-size:12px;left:100%;padding:9px 6px;position:absolute;text-align:center;text-shadow:none;white-space:pre}.jodit-image-editor__area.jodit-image-editor__area_crop.jodit-image-editor_active{align-items:center;display:flex;justify-content:center}.jodit-file-browser-files{display:none;height:100%;overflow-anchor:auto;position:relative;vertical-align:top}.jodit-file-browser-files .jodit-button{border-radius:0}.jodit-file-browser-files_loading_true:before{content:"";height:100%;left:0;position:absolute;top:0;width:100%}.jodit-file-browser-files_loading_true:after{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:calc(var(--jd-icon-loader-size)/-2);margin-top:calc(var(--jd-icon-loader-size)/-2);opacity:.7;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-file-browser-files::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-files::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-files::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #708090}.jodit-file-browser-files_active_true{align-content:flex-start;display:flex;flex-wrap:wrap;overflow-y:auto;padding:calc(var(--jd-padding-default)/2);width:100%}.jodit-file-browser-files__item{align-items:center;border:1px solid var(--jd-color-border);display:flex;font-size:0;height:var(--jd-col-size);justify-content:center;margin:calc(var(--jd-padding-default)/2);overflow:hidden;position:relative;text-align:center;transition:border .1s linear,bottom .1s linear;width:var(--jd-col-size)}@media (max-width:480px){.jodit-file-browser-files__item{width:calc(50% - var(--jd-padding-default))}}.jodit-file-browser-files__item img{max-width:100%}.jodit-file-browser-files__item:hover{border-color:#433b5c}.jodit-file-browser-files__item_active_true{background-color:var(--jd-color-border-active);border-color:var(--jd-color-border-selected)}.jodit-file-browser-files__item_active_true .jodit-file-browser-files__item-info{background-color:var(--jd-color-border-active);color:#fff;text-shadow:none}.jodit-file-browser-files__item-info{background-color:var(--jd-info-background);bottom:0;color:#333;font-size:14px;left:0;line-height:16px;opacity:.85;overflow:visible;padding:.3em .6em;position:absolute;right:0;text-align:left;text-shadow:#eee 0 1px 0;transition:opacity .4s ease;white-space:normal}.jodit-file-browser-files__item-info>span{display:block;font-size:.75em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jodit-file-browser-files__item-info>span.jodit-file-browser-files__item-info-filename{font-size:.9em;font-weight:700}.jodit-file-browser-files__item:hover:not(.jodit-file-browser-files__item_active_true) .jodit-file-browser-files__item-info{bottom:-100px}.jodit-file-browser-files_view_list{scroll-behavior:smooth}.jodit-file-browser-files_view_list a{border-width:0 0 1px;display:block;height:26px;line-height:26px;margin:0;text-align:left;white-space:nowrap;width:100%}.jodit-file-browser-files_view_list a img{display:inline-block;margin-left:4px;max-width:16px;min-width:16px;vertical-align:middle}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info{background-color:transparent;display:inline-block;font-size:0;height:100%;line-height:inherit;margin-left:4px;padding:0;position:static;vertical-align:middle;width:calc(100% - 20px)}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info>span{display:inline-block;font-size:12px;height:100%}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filename{width:50%}.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filechanged,.jodit-file-browser-files_view_list a .jodit-file-browser-files__item-info-filesize{width:25%}.jodit-file-browser-files_view_list a:hover{background-color:#433b5c}.jodit-file-browser-files_view_list a:hover .jodit-file-browser-files__item-info{color:#fff;text-shadow:none}.jodit-file-browser-files_view_list a:before{content:"";display:inline-block;height:100%;vertical-align:middle}:root{--jd-color-folder-title:#b1b1b1}.jodit-file-browser-tree{--jd-color-background-filebrowser-folders:#3f3f3f;display:none;height:100%;overflow-anchor:auto;position:relative;vertical-align:top}.jodit-file-browser-tree .jodit-button{border-radius:0}.jodit-file-browser-tree_loading_true:before{content:"";height:100%;left:0;position:absolute;top:0;width:100%}.jodit-file-browser-tree_loading_true:after{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:calc(var(--jd-icon-loader-size)/-2);margin-top:calc(var(--jd-icon-loader-size)/-2);opacity:.7;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-file-browser-tree::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-tree::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-tree::-webkit-scrollbar-thumb{background-color:#a9a9a9;outline:1px solid #708090}.jodit-file-browser-tree_active_true{background-color:var(--jd-color-background-filebrowser-folders);display:flex;flex-direction:column;max-width:290px;min-width:200px;overflow-y:auto;width:var(--jd-first-column);z-index:2}@media (max-width:480px){.jodit-file-browser-tree_active_true{height:100px;max-width:100%;width:auto}}.jodit-file-browser-tree_active_true::-webkit-scrollbar{width:calc(var(--jd-padding-default)/2)}.jodit-file-browser-tree_active_true::-webkit-scrollbar-track{box-shadow:inset 0 0 6px rgba(0,0,0,.3)}.jodit-file-browser-tree_active_true::-webkit-scrollbar-thumb{background-color:hsla(0,0%,50%,.5);outline:1px solid #708090}.jodit-file-browser-tree__item{align-items:center;border-bottom:1px solid #474747;color:var(--jd-color-folder-title);display:flex;justify-content:space-between;min-height:38px;padding:calc(var(--jd-padding-default)/2) var(--jd-padding-default);position:relative;text-decoration:none;transition:background-color .2s ease 0s;word-break:break-all}.jodit-file-browser-tree__item-title{color:var(--jd-color-folder-title);flex:1}.jodit-file-browser-tree__item .jodit-icon_folder{align-items:center;display:flex;height:calc(var(--jd-icon-size) + 4px);justify-content:center;margin-left:calc(var(--jd-padding-default)/2);opacity:.3;width:calc(var(--jd-icon-size) + 4px)}.jodit-file-browser-tree__item .jodit-icon_folder svg{height:var(--jd-icon-size);width:var(--jd-icon-size);fill:var(--jd-color-folder-title)!important;stroke:var(--jd-color-folder-title)!important}.jodit-file-browser-tree__item .jodit-icon_folder:hover{background:#696969}.jodit-file-browser-tree__item:hover{background-color:var(--jd-color-background-button-hover)}.jodit-file-browser-tree__item:hover-title{color:var(--jd-color-text)}.jodit-file-browser-tree__item:hover i.jodit-icon_folder{opacity:.6}.jodit-file-browser-tree__source-title{background:#5a5a5a;border-bottom:1px solid #484848;color:#969696;display:block;font-size:12px;padding:2px 4px;position:relative;user-select:none;word-break:break-all}a+.jodit-file-browser-tree__source-title{margin-top:var(--jd-padding-default)}:root{--jd-first-column:31%;--jd-cols:4;--jd-info-background:#e9e9e9;--jd-icon-size:12px;--jd-col-size:150px}.jodit-file-browser{display:flex;font-family:var(--jd-font-default);height:100%}.jodit-file-browser_no-files_true{padding:var(--jd-padding-default)}@media (max-width:480px){.jodit-file-browser{flex-flow:column-reverse}}.jodit-dialog .jodit-dialog__header-title.jodit-file-browser__title-box{align-items:center;display:flex;padding-left:var(--jd-padding-default)}.jodit-file-browser-preview{align-items:center;display:flex;height:100%;justify-content:center;margin:auto;max-height:100%;max-width:min(100%,1000px);min-height:min(100%,500px);min-width:400px;position:relative;text-align:center}@media (max-width:768px){.jodit-file-browser-preview{height:100%;max-height:100%;max-width:100%;min-height:auto;min-width:auto}}.jodit-file-browser-preview__box{align-items:center;display:flex;flex-grow:1;justify-content:center}.jodit-file-browser-preview__navigation{cursor:pointer;height:100%;left:0;position:absolute;top:0}.jodit-file-browser-preview__navigation_arrow_next{left:auto;right:0}.jodit-file-browser-preview__navigation svg{height:45px;position:relative;top:50%;width:45px;fill:#9e9ba7;transform:translateY(-50%);transition:fill .3s linear}.jodit-file-browser-preview__navigation:hover svg{fill:#000}.jodit-file-browser-preview img{max-height:100%;max-width:100%}.jodit-status-bar{align-items:center;background-color:var(--jd-color-panel);border-radius:0 0 var(--jd-border-radius-default) var(--jd-border-radius-default);color:var(--jd-color-text-icons);display:flex;font-size:var(--jd-font-size-small);height:20px;justify-content:flex-start;overflow:hidden;padding:0 calc(var(--jd-padding-default)/2);text-transform:uppercase}.jodit-status-bar_resize-handle_true{padding-right:14px}.jodit-status-bar:before{content:"";flex:auto;order:1}.jodit-status-bar .jodit-status-bar__item{line-height:1.5714em;margin:0 var(--jd-padding-default) 0 0;order:0;padding:0}.jodit-status-bar .jodit-status-bar__item,.jodit-status-bar .jodit-status-bar__item>span{font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);font-size:var(--jd-font-size-small)}.jodit-status-bar .jodit-status-bar__item.jodit-status-bar__item-right{margin:0 0 0 var(--jd-padding-default);order:2}.jodit-status-bar .jodit-status-bar__item a{border-radius:3px;cursor:default;text-decoration:none}.jodit-status-bar .jodit-status-bar__item a:hover{background-color:var(--jd-color-background-gray);text-decoration:none}.jodit-status-bar a.jodit-status-bar-link{cursor:pointer}.jodit-status-bar a.jodit-status-bar-link,.jodit-status-bar a.jodit-status-bar-link:hover,.jodit-status-bar a.jodit-status-bar-link:visited{background-color:transparent;color:var(--jd-color-text-icons)}.jodit-status-bar a.jodit-status-bar-link:hover{text-decoration:underline}.jodit-workplace+.jodit-status-bar:not(:empty){border-top:1px solid var(--jd-color-border)}.jodit_disabled .jodit-status-bar{opacity:.4}.jodit-drag-and-drop__file-box,.jodit_uploadfile_button{border:1px dashed var(--jd-color-gray);margin:var(--jd-padding-default) 0;overflow:hidden;padding:25px 0;position:relative;text-align:center;width:100%}.jodit-drag-and-drop__file-box:hover,.jodit_uploadfile_button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-drag-and-drop__file-box input,.jodit_uploadfile_button input{cursor:pointer;font-size:400px;inset:0;margin:0;opacity:0;padding:0;position:absolute}@media (max-width:768px){.jodit-drag-and-drop__file-box{max-width:100%;min-width:var(--jd-width-input-min);width:auto}}.jodit-about{padding:20px}.jodit-about a{color:#459ce7;text-decoration:none}.jodit-about a:focus,.jodit-about a:hover{color:#23527c;outline:0;text-decoration:underline}.jodit-about div{margin-bottom:calc(var(--jd-padding-default)/2)}:root{--jd-anl-color-new-line:var(--jd-color-border);--jd-anl-handle-size:20px;--jd-anl-handle-offset:calc(100% - var(--jd-anl-handle-size))}.jodit-add-new-line{display:block;height:1px;outline:none;position:fixed;top:0;z-index:1}.jodit-add-new-line,.jodit-add-new-line *{box-sizing:border-box}.jodit-add-new-line:after{background-color:var(--jd-anl-color-new-line);content:"";display:block;height:1px;width:100%}.jodit-add-new-line span{align-items:center;background:var(--jd-color-background-button-hover-opacity30);border:1px solid var(--jd-anl-color-new-line);cursor:pointer;display:flex;height:var(--jd-anl-handle-size);justify-content:center;left:var(--jd-anl-handle-offset);position:absolute;top:0;transform:translateY(-50%);width:var(--jd-anl-handle-size)}.jodit-add-new-line span:hover{background:var(--jd-color-background-button-hover)}.jodit-add-new-line svg{width:calc(var(--jd-anl-handle-size)/2);fill:var(--jd-anl-color-new-line)}.jodit-source__mode .jodit-add-new-line{display:none!important}:root{--jd-color-picker-cell-size:24px}.jodit-color-picker{margin:0;text-align:left;user-select:none}.jodit-color-picker__group{display:flex;flex-wrap:wrap;margin-bottom:calc(var(--jd-padding-default)/2);max-width:calc(var(--jd-color-picker-cell-size)*10);white-space:normal}.jodit-color-picker__color-item{border:1px solid transparent;display:block;height:var(--jd-color-picker-cell-size);text-align:center;text-decoration:none;vertical-align:middle;width:var(--jd-color-picker-cell-size)}.jodit-color-picker__color-item:hover{border-color:#000}.jodit-color-picker__color-item:active,.jodit-color-picker__color-item_active_true{border:2px solid var(--jd-color-border-selected)}.jodit-color-picker__native svg{display:inline-block;height:16px;margin-right:4px;width:16px}.jodit-color-picker__native input{appearance:none;border:none;height:18px;padding:0;width:18px}.jodit-color-picker__native input[type=color]::-webkit-color-swatch-wrapper{padding:0}.jodit-color-picker__native input input[type=color]::-webkit-color-swatch{border:none}.jodit-tabs{--jd-box-shadow-tabs:0 0 #0000,0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-tabs .jodit-tabs__buttons{background-color:var(--jd-color-background-light-gray);border-radius:var(--jd-border-radius-default);display:flex;justify-content:center;margin-bottom:var(--jd-padding-default);margin-top:calc(var(--jd-padding-default)/2);padding:calc(var(--jd-padding-default)/2)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button{color:var(--jd-color-placeholder)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button svg{fill:var(--jd-color-placeholder)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]){box-shadow:var(--jd-box-shadow-tabs);color:var(--jd-color-text-icons)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]),.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text{background-color:var(--jd-color-background-default)}.jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg{fill:var(--jd-color-text-icons)}.jodit-tabs .jodit-tabs__buttons>*{cursor:pointer;margin-left:calc(var(--jd-padding-default)/2)}.jodit-tabs .jodit-tabs__buttons>:only-of-type{width:100%}.jodit-tabs .jodit-tabs__buttons>:first-child{margin-left:0}@media (max-width:480px){.jodit-tabs .jodit-tabs__buttons{display:block}.jodit-tabs .jodit-tabs__buttons>*{margin-left:0;width:100%}}.jodit-tabs__button{max-width:210px;min-width:80px}.jodit-tabs__button .jodit-ui-button__text{flex:1;justify-content:space-around;white-space:nowrap}.jodit-tabs__button_columns_3{width:33.33333%}.jodit-tabs__button_columns_2{width:50%}.jodit-tabs .jodit-tabs__wrapper .jodit-tab{display:none}.jodit-tabs .jodit-tabs__wrapper .jodit-tab.jodit-tab_active{display:block}.jodit-tabs .jodit-tabs__wrapper .jodit-tab.jodit-tab_empty{min-height:100px;min-width:220px}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons{background-color:var(--jd-dark-background-color);border-radius:var(--jd-border-radius-default)}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) .jodit-ui-button__text,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) .jodit-ui-button__text{color:var(--jd-dark-toolbar-color)}.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit-dialog_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button:active:not([disabled]) svg,.jodit_theme_dark .jodit-tabs .jodit-tabs__buttons .jodit-ui-button[aria-pressed=true]:not([disabled]) svg{fill:var(--jd-color-text-icons)}.jodit_fullsize-box_true{overflow:visible!important;position:static!important;z-index:var(--jd-z-index-full-size)!important}body.jodit_fullsize-box_true,html.jodit_fullsize-box_true{height:0!important;overflow:hidden!important;width:0!important}html.jodit_fullsize-box_true{position:fixed!important}.jodit_fullsize{inset:0;max-width:none!important;position:absolute;z-index:var(--jd-z-index-full-size)}.jodit_fullsize .toolbar{width:100%!important}.jodit_fullsize .jodit__area,.jodit_fullsize .jodit_editor{height:100%}.jodit-ui-image-position-tab__lockMargin>svg,.jodit-ui-image-position-tab__lockSize>svg,.jodit-ui-image-properties-form__lockMargin>svg,.jodit-ui-image-properties-form__lockSize>svg{display:inline-block;height:var(--jd-icon-middle-size);overflow:hidden;width:var(--jd-icon-middle-size);fill:var(--jd-color-dark);line-height:var(--jd-icon-middle-size);transform-origin:0 0!important;vertical-align:middle}.jodit-ui-image-position-tab__view-box,.jodit-ui-image-properties-form__view-box{padding:var(--jd-padding-default)}.jodit-ui-image-position-tab__imageView,.jodit-ui-image-properties-form__imageView{align-items:center;background-color:var(--jd-color-background-light-gray);display:flex;height:var(--jd-width-default);justify-content:center;margin:0 0 var(--jd-padding-default);padding:0}.jodit-ui-image-position-tab__imageView img,.jodit-ui-image-properties-form__imageView img{max-height:100%;max-width:100%}.jodit-ui-image-position-tab__imageSizes.jodit-form__group,.jodit-ui-image-properties-form__imageSizes.jodit-form__group{align-items:center;flex-direction:row;margin:0;min-width:auto;padding:0}.jodit-ui-image-position-tab__imageSizes.jodit-form__group a,.jodit-ui-image-properties-form__imageSizes.jodit-form__group a{cursor:pointer;display:inline-block}.jodit-ui-image-position-tab .jodit-form__group,.jodit-ui-image-properties-form .jodit-form__group{padding:0}.jodit-ui-image-position-tab__tabsBox,.jodit-ui-image-properties-form__tabsBox{padding:0 var(--jd-padding-default)}.jodit-dialog_theme_dark .jodit-ui-image-properties-form__imageView,.jodit_theme_dark .jodit-ui-image-properties-form__imageView{background-color:var(--jd-dark-background-color)}.jodit-ui-image-properties-form_lock_true:before{background-color:var(--jd-color-button-background-hover-opacity60);content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:3}.jodit-ui-image-properties-form_lock_true:after{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;background-size:var(--jd-icon-loader-size);content:"";display:inline-block;height:var(--jd-icon-loader-size);left:50%;margin-left:-10px;margin-top:-10px;position:absolute;top:50%;vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-popup-inline__container{min-width:700px;z-index:1300}.jodit-paste-storage{max-width:600px;padding:var(--jd-padding-default)}@media (max-width:768px){.jodit-paste-storage{max-width:100%}}.jodit-paste-storage>div{border:1px solid var(--jd-color-border);max-height:300px;max-width:100%}.jodit-paste-storage>div:first-child{margin-bottom:var(--jd-padding-default)}.jodit-paste-storage>div:first-child a{border:1px solid transparent;box-sizing:border-box;color:var(--jd-color-default);display:block;margin:0;max-width:100%;outline:none;overflow:hidden;padding:calc(var(--jd-padding-default)/2);text-decoration:none;text-overflow:ellipsis;white-space:pre}.jodit-paste-storage>div:first-child a.jodit_active{background-color:var(--jd-dark-background-color);color:var(--jd-color-white)}.jodit-paste-storage>div:first-child a:focus{outline:none}.jodit-paste-storage>div:last-child{overflow:auto;padding:var(--jd-padding-default)}.jodit-paste-storage>div:last-child li,.jodit-paste-storage>div:last-child ul{margin:0}.jodit-placeholder{color:var(--jd-color-placeholder);display:block;left:0;padding:var(--jd-padding-default);pointer-events:none;position:absolute;top:0;user-select:none!important;width:100%;z-index:1}.jodit__preview-box table{border:none;border-collapse:collapse;empty-cells:show;margin-bottom:1em;margin-top:1em;max-width:100%}.jodit__preview-box table tr{user-select:none}.jodit__preview-box table tr td,.jodit__preview-box table tr th{border:1px solid var(--jd-color-border);min-width:2em;padding:.4em;user-select:text;vertical-align:middle}.jodit-table-resizer{cursor:col-resize;margin-left:calc(var(--jd-padding-default)/-2);padding-left:calc(var(--jd-padding-default)/2);padding-right:calc(var(--jd-padding-default)/2);position:absolute;z-index:3}.jodit-table-resizer:after{border:0;content:"";display:block;height:100%;width:0}.jodit-table-resizer_moved{background-color:var(--jd-color-background-selection);z-index:2}.jodit-table-resizer_moved:after{border-right:1px solid moved}[data-jodit_iframe_wrapper]{display:block;position:relative;user-select:none}[data-jodit_iframe_wrapper] iframe{position:relative}[data-jodit_iframe_wrapper]:after{background:transparent;content:"";cursor:pointer;display:block;inset:0;position:absolute;z-index:1}[data-jodit_iframe_wrapper][data-jodit-wrapper_active=true] iframe{z-index:2}.jodit_lock [data-jodit-wrapper_active=true] iframe{z-index:1}:root{--jd-viewer-width:70px;--jd-viewer-height:24px;--jd-resizer-handle-size:10px;--jd-resizer-border-color:#98c1f1;--jd-resizer-handle-color:#5ba4f3;--jd-resizer-handle-hover-color:#537ebb}.jodit-resizer{font-size:0;height:100px;left:0;outline:3px solid var(--jd-resizer-border-color);pointer-events:none;position:absolute;top:0;width:100px}.jodit-resizer,.jodit-resizer *{box-sizing:border-box}.jodit-resizer>span{background-color:var(--jd-color-placeholder);color:var(--jd-color-white);display:inline-block;font-size:12px;height:var(--jd-viewer-height);left:50%;line-height:var(--jd-viewer-height);margin-left:calc(var(--jd-viewer-width)/-2);margin-top:calc(var(--jd-viewer-height)/-2);opacity:0;overflow:visible;position:absolute;text-align:center;top:50%;transition:opacity .2s linear;width:var(--jd-viewer-width)}.jodit-resizer>div{background-color:var(--jd-resizer-handle-color);display:inline-block;height:var(--jd-resizer-handle-size);pointer-events:all;position:absolute;width:var(--jd-resizer-handle-size);z-index:4}.jodit-resizer>div:hover{background-color:var(--jd-resizer-handle-hover-color)}.jodit-resizer>div:first-child{cursor:nwse-resize;left:calc(var(--jd-resizer-handle-size)/-2);top:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(2){cursor:nesw-resize;right:calc(var(--jd-resizer-handle-size)/-2);top:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(3){bottom:calc(var(--jd-resizer-handle-size)/-2);cursor:nwse-resize;right:calc(var(--jd-resizer-handle-size)/-2)}.jodit-resizer>div:nth-child(4){bottom:calc(var(--jd-resizer-handle-size)/-2);cursor:nesw-resize;left:calc(var(--jd-resizer-handle-size)/-2)}@media (max-width:768px){.jodit-resizer>div :root{--jd-resizer-handle-size:calc(var(--jd-resizer-handle-size)*2)}}:root{--jd-height-search:30px;--jd-width-search:320px;--jd-width-search-input-box:60%;--jd-width-search-count-box:15%;--jd-transform-button-active:0.95;--jd-timeout-button-active:0.1s}.jodit-ui-search{height:0;position:absolute;right:0;top:0;width:0}.jodit-ui-search_sticky_true{position:fixed}.jodit-ui-search__box{background-color:var(--jd-color-panel);border:solid var(--jd-color-border);border-width:0 0 1px 1px;display:flex;max-width:100vw;padding:calc(var(--jd-padding-default)/2);position:absolute;right:0;width:var(--jd-width-search)}.jodit-ui-search__box input{background-color:transparent;border:0;height:100%;margin:0;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit-ui-search__box input[data-ref=replace]{display:none}.jodit-ui-search__box input:not(:focus)+input:not(:focus){border-top:1px solid var(--jd-color-border)}.jodit-ui-search__buttons,.jodit-ui-search__counts,.jodit-ui-search__inputs{height:var(--jd-height-search)}.jodit-ui-search__inputs{padding-right:calc(var(--jd-padding-default)/2);width:var(--jd-width-search-input-box)}.jodit-ui-search__counts{border-left:1px solid var(--jd-color-border);color:var(--jd-color-border);width:var(--jd-width-search-count-box)}.jodit-ui-search__buttons,.jodit-ui-search__counts{align-items:center;display:flex;justify-content:center}.jodit-ui-search__buttons{flex:1;padding-left:0}.jodit-ui-search__buttons button{background-color:transparent;border:1px solid transparent;height:100%;margin-right:1%;width:32%}.jodit-ui-search__buttons button[data-ref=replace-btn]{border:1px solid var(--jd-color-border);display:none;margin-top:2px;width:100%}.jodit-ui-search__buttons button:hover{background-color:var(--jd-color-background-button-hover)}.jodit-ui-search__buttons button:focus{border:1px solid var(--jd-color-background-selection-opacity50)}.jodit-ui-search__buttons button:active{border:1px solid var(--jd-color-background-selection);transform:scale(var(--jd-transform-button-active))}.jodit-ui-search_empty-query_true [data-ref=next],.jodit-ui-search_empty-query_true [data-ref=prev]{opacity:.5}.jodit-ui-search_replace_true .jodit-ui-search__counts,.jodit-ui-search_replace_true .jodit-ui-search__inputs{height:calc(var(--jd-height-search)*2)}.jodit-ui-search_replace_true .jodit-ui-search__counts input,.jodit-ui-search_replace_true .jodit-ui-search__inputs input{height:50%;transition:background-color var(--jd-timeout-button-active) linear}.jodit-ui-search_replace_true .jodit-ui-search__counts input:focus,.jodit-ui-search_replace_true .jodit-ui-search__inputs input:focus{box-shadow:inset 0 0 3px 0 var(--jd-color-border)}.jodit-ui-search_replace_true .jodit-ui-search__counts input[data-ref=replace],.jodit-ui-search_replace_true .jodit-ui-search__inputs input[data-ref=replace]{display:block}.jodit-ui-search_replace_true .jodit-ui-search__buttons{flex-wrap:wrap}.jodit-ui-search_replace_true .jodit-ui-search__buttons button[data-ref=replace-btn]{display:block}::highlight(jodit-search-result),[jd-tmp-selection]{background-color:var(--jd-color-background-selection);color:var(--jd-color-text-selection)}.jodit-container:not(.jodit_inline){min-height:100px}.jodit-container:not(.jodit_inline) .jodit-workplace{display:flex;flex-direction:column;height:auto;min-height:50px;overflow:hidden}.jodit-container:not(.jodit_inline) .jodit-editor__resize{position:relative}.jodit-container:not(.jodit_inline) .jodit-editor__resize svg{bottom:0;cursor:nwse-resize;height:12px;overflow:hidden;position:absolute;right:0;width:12px;fill:var(--jd-color-gray-dark);user-select:none}.jodit-source{background-color:var(--jd-color-source-area);display:none;flex:auto;overflow:auto;position:relative}.jodit-source,.jodit-source .jodit-source__mirror-fake{min-height:100%}.jodit-source *{font:12px/normal Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace}.jodit-container.jodit-source__mode .jodit-wysiwyg,.jodit-container.jodit-source__mode .jodit-wysiwyg_iframe{display:none!important}.jodit-container.jodit-source__mode .jodit-source{display:block!important}.jodit-container.jodit_split_mode .jodit-workplace{flex-flow:row nowrap}.jodit-container.jodit_split_mode .jodit-source,.jodit-container.jodit_split_mode .jodit-wysiwyg,.jodit-container.jodit_split_mode .jodit-wysiwyg_iframe{display:block!important;flex:1;width:50%}.jodit-source__mirror{background:var(--jd-color-source-area);border:0;box-shadow:none;box-sizing:border-box;color:#f0f0f0;height:100%;line-height:1.5;font:12px/normal Monaco,Menlo,Ubuntu Mono,Consolas,source-code-pro,monospace;margin:0;min-height:100%;outline:none;overflow:auto;padding:var(--jd-padding-default);resize:none;tab-size:2em;white-space:pre-wrap;width:100%;z-index:2}.jodit-source__mirror::selection{background:var(--jd-color-selection-area)}.jodit_sticky-dummy_toolbar{display:none}.jodit_sticky>.jodit-toolbar__box{border-bottom:1px solid var(--jd-color-border);left:auto;position:fixed;position:sticky;top:0;z-index:3}.jodit_sticky .jodit_sticky-dummy_toolbar{display:block}.jodit-symbols{padding:var(--jd-padding-default);width:460px}.jodit-symbols__container{display:flex}.jodit-symbols__container_table{width:88%}.jodit-symbols__container_preview{width:12%}.jodit-symbols__preview{border:1px solid var(--jd-color-border);font-size:34px;padding:20px 0;text-align:center}.jodit-symbols__table{border:0;border-spacing:0;table-layout:fixed}.jodit-symbols__table td{padding:0}.jodit-symbols__table td a{border:1px solid transparent;box-sizing:border-box;color:var(--jd-color-text);cursor:pointer;display:inline-block;font-size:16px;height:calc(var(--jd-height-element-default)*1.2);line-height:calc(var(--jd-height-element-default)*1.2);text-align:center;text-decoration:none;vertical-align:top;width:calc(var(--jd-width-element-default)*1.2)}.jodit-symbols__table td a:focus,.jodit-symbols__table td a:hover{outline:2px solid var(--jd-color-border)}.jodit-ui-ai-assistant{min-width:460px;padding:var(--jd-padding-default);width:100%}@media (max-width:768px){.jodit-ui-ai-assistant{min-width:100%}}.jodit-ui-ai-assistant__body{margin-bottom:10px}.jodit-ui-ai-assistant__prompt-row{align-items:flex-start;display:flex;margin-bottom:10px}.jodit-ui-ai-assistant__prompt-row-label{margin-right:10px}.jodit-ui-ai-assistant__prompt-row-input{flex:1;margin-right:10px}.jodit-ui-ai-assistant__prompt-row .jodit-icon_ai_assistant{cursor:pointer;height:22px;width:22px}.jodit-ui-ai-assistant__prompt-row .jodit-ui-button{margin-right:10px}.jodit-ui-ai-assistant__prompt-row .jodit-ui-button_ai_assistant{margin-right:0;margin-top:20px}.jodit-ui-ai-assistant__results{border-color:var(--jd-color-label);border-style:solid;border-width:1px;height:300px;line-height:1.5;max-width:460px;min-height:300px;min-width:100%;overflow:auto;padding:var(--jd-padding-default);position:relative}.jodit-ui-ai-assistant__results p{margin:0 0 10px}.jodit-ui-ai-assistant__close{cursor:pointer;padding:10px;position:absolute;right:0;top:0}.jodit-ui-ai-assistant_hide_true{display:none}.jodit-ui-ai-assistant__spinner:before{animation:b .6s linear infinite;border:1px solid #ccc;border-radius:50%;border-top-color:#8817c3;box-sizing:border-box;content:"";height:30px;left:50%;margin-left:-15px;margin-top:-15px;position:absolute;top:50%;width:30px}.jodit-ui-ai-assistant__error{color:var(--jd-color-error)}.jodit-context table,.jodit-wysiwyg table{border:none;border-collapse:collapse;empty-cells:show;margin-bottom:1em;margin-top:1em;max-width:100%}.jodit-context table tr,.jodit-wysiwyg table tr{user-select:none}.jodit-context table tr td,.jodit-context table tr th,.jodit-wysiwyg table tr td,.jodit-wysiwyg table tr th{border:1px solid var(--jd-color-border);min-width:2em;padding:.4em;user-select:text;vertical-align:middle}.jodit-form__inserter{--jd-color-table-cell-background-hover:var(--jd-color-button-background-hover)}.jodit-form__inserter .jodit-form__table-creator-box{display:flex}@media (max-width:768px){.jodit-form__inserter .jodit-form__table-creator-box{flex-direction:column}}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container{font-size:0;margin:0;min-width:180px;padding:0}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span{border:1px solid var(--jd-color-border);box-sizing:border-box;cursor:pointer;display:inline-block;height:var(--jd-height-element-default);margin-bottom:2px;margin-left:2px;vertical-align:top;width:var(--jd-width-element-default)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span:first-child{margin-left:0}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__container>div>span.jodit_hovered{background:var(--jd-color-table-cell-background-hover);border-color:var(--jd-color-table-cell-background-hover)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options{font-size:var(--jd-font-size-default)}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options label{padding-top:0;text-align:left}.jodit-form__inserter .jodit-form__table-creator-box .jodit-form__options label input{margin-right:var(--jd-padding-default)}.jodit-form__inserter label{font-size:14px;margin:0;padding:8px;text-align:center}.jodit-xpath{align-items:center;display:flex;margin-left:calc(var(--jd-padding-default)/-2)}.jodit-xpath__item{display:flex;height:var(--jd-font-size-small);line-height:calc(var(--jd-font-size-small) - 1px)}.jodit-xpath__item a{color:var(--jd-color-default);font-size:var(--jd-font-size-small);margin-left:2px;outline:0;padding:0 3px}:root{--jd-color-white:#fff;--jd-color-gray:#dadada;--jd-color-gray-dark:#a5a5a5;--jd-color-dark:#4c4c4c;--jd-color-blue:#b5d6fd;--jd-color-light-blue:rgba(181,214,253,.5);--jd-color-red:#ff3b3b;--jd-color-light-red:rgba(255,59,59,.4);--jd-color-default:var(--jd-color-dark);--jd-color-text:#222;--jd-color-label:var(--jd-color-gray-dark);--jd-color-error:var(--jd-color-red);--jd-color-border:var(--jd-color-gray);--jd-color-border-dark:var(--jd-color-dark);--jd-color-border-selected:#1e88e5;--jd-color-border-active:#b5b5b5;--jd-color-selection:var(--jd-color-dark);--jd-color-selection-area:#bdbdbd;--jd-color-separator:var(--jd-color-border);--jd-color-placeholder:var(--jd-color-gray-dark);--jd-color-panel:#f9f9f9;--jd-color-resizer:#c8c8c8;--jd-color-background-default:var(--jd-color-white);--jd-color-background-light-gray:#f5f5f6;--jd-color-background-gray:var(--jd-color-gray);--jd-color-background-gray-hover:#f8f8f8;--jd-color-background-button-hover:#ecebe9;--jd-color-background-button-hover-opacity30:hsla(40,7%,92%,.3);--jd-color-background-progress:#b91f1f;--jd-color-background-active:#2196f3;--jd-color-background-selection:#b5d6fd;--jd-color-text-selection:var(--jd-color-white);--jd-color-background-selection-opacity50:rgba(181,214,253,.995);--jd-color-source-area:#323232;--jd-color-button-background-hover:#dcdcdc;--jd-color-button-background-hover-opacity40:hsla(0,0%,86%,.4);--jd-color-button-background-hover-opacity60:hsla(0,0%,86%,.6);--jd-font-default:-apple-system,blinkmacsystemfont,"Segoe UI",roboto,oxygen-sans,ubuntu,cantarell,"Helvetica Neue",sans-serif;--jd-font-size-default:14px;--jd-font-size-small:11px;--jd-color-text-icons:rgba(0,0,0,.75);--jd-color-icon:var(--jd-color-dark);--jd-padding-default:8px;--jd-border-radius-default:3px;--jd-icon-tiny-size:8px;--jd-icon-xsmall-size:10px;--jd-icon-small-size:12px;--jd-icon-middle-size:14px;--jd-icon-large-size:16px;--jd-z-index-full-size:100000;--jd-z-index-popup:10000001;--jd-z-index-dialog-overlay:20000003;--jd-z-index-dialog:20000004;--jd-z-index-context-menu:30000005;--jd-z-index-tooltip:30000006;--jd-icon-loader-size:48px;--jd-width-element-default:18px;--jd-height-element-default:18px;--jd-dark-background-color:#575757;--jd-dark-background-ligher:silver;--jd-dark-background-darknes:#353535;--jd-dark-border-color:#444;--jd-dark-text-color:#d1cccc;--jd-dark-text-color-opacity80:hsla(0,5%,81%,.8);--jd-dark-text-color-opacity50:hsla(0,5%,81%,.5);--jd-dark-icon-color:silver;--jd-dark-toolbar-color:#5f5c5c;--jd-dark-toolbar-seperator-color1:rgba(81,81,81,.41);--jd-dark-toolbar-seperator-color2:#686767;--jd-dark-toolbar-seperator-color-opacity80:hsla(0,0%,41%,.8);--jd-dark-toolbar-seperator-color3:hsla(0,0%,41%,.75);--jd-dark-color-border-selected:#152f5f;--jd-width-default:180px;--jd-width-input-min:var(--jd-width-default);--jd-input-height:32px;--jd-button-icon-size:14px;--jd-margin-v:2px;--jd-button-df-size:calc((var(--jd-button-icon-size) - 4px)*2);--jd-button-size:calc(var(--jd-button-icon-size) + var(--jd-button-df-size) + var(--jd-margin-v)*2);--jd-focus-input-box-shadow:0 0 0 0.05rem rgba(0,123,255,.25)}.jodit-wysiwyg{outline:0}.jodit-wysiwyg ::selection,.jodit-wysiwyg::selection{background:#b5d6fd;color:#4c4c4c}.jodit-container:not(.jodit_inline) .jodit-wysiwyg{margin:0;outline:0;overflow-x:auto;padding:8px;position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg img{max-width:100%;position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media{position:relative}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media *{position:relative;z-index:0}.jodit-container:not(.jodit_inline) .jodit-wysiwyg jodit-media:before{content:"";inset:0;position:absolute;z-index:1}:root{--jd-switche-width:60px;--jd-switche-height:32px;--jd-switche-slider-margin:4px;--jd-switche-slider-size:calc(var(--jd-switche-height) - var(--jd-switche-slider-margin)*2)}.jodit-form{color:var(--jd-color-default);font-family:var(--jd-font-default);font-size:var(--jd-font-size-default)}.jodit-form.jodit_error{border-color:var(--jd-color-error);box-shadow:inset 0 0 3px 0 hsla(0,0%,74%,.3)}@media (max-width:768px){.jodit-form{min-width:150px}}.jodit-form button{background:#d6d6d6;border:none;color:var(--jd-color-dark);cursor:pointer;font-size:16px;height:36px;line-height:1;margin-bottom:var(--jd-padding-default);margin-top:var(--jd-padding-default);outline:none;padding:var(--jd-padding-default);text-decoration:none;transition:background .2s ease 0s}.jodit-form button:hover{background-color:var(--jd-color-background-button-hover);color:var(--jd-color-dark)}.jodit-form button:active{background:var(--jd-color-background-button-hover);color:var(--jd-color-dark)}.jodit-form label{align-items:center;display:flex;margin-bottom:var(--jd-padding-default);text-align:left;white-space:nowrap}.jodit-form label:last-child{margin-bottom:0}.jodit-form .jodit-form__center{justify-content:center}.jodit .jodit-input,.jodit .jodit-select,.jodit .jodit-textarea{appearance:none;background-color:var(--jd-color-white);border:1px solid var(--jd-color-border);border-radius:0;box-sizing:border-box;font-family:var(--jd-font-default);font-size:var(--jd-font-size-default);height:var(--jd-input-height);line-height:1.2;outline:none;padding:0 var(--jd-padding-default);width:100%}.jodit .jodit-input[disabled],.jodit .jodit-select[disabled],.jodit .jodit-textarea[disabled]{background-color:#f0f0f0;color:var(--jd-color-border)}.jodit .jodit-input_has-error_true,.jodit .jodit-select_has-error_true,.jodit .jodit-textarea_has-error_true{border-color:var(--jd-color-red)}.jodit .jodit-input:focus{border-color:#66afe9;outline:0}.jodit-checkbox{border:0;cursor:pointer;height:16px;margin:0 calc(var(--jd-padding-default)/2) 0 0;outline:none;padding:0;position:relative;width:16px;z-index:2}.jodit-select{background-image:url(${v});background-position:98% 50%;background-repeat:no-repeat;padding-right:calc(var(--jd-padding-default)*2)}.jodit-textarea{height:auto}.jodit-form__group,.jodit-textarea{min-width:var(--jd-width-input-min)}.jodit-form__group{display:flex;flex-direction:column;margin-bottom:var(--jd-padding-default)}.jodit-form__group label{margin-bottom:calc(var(--jd-padding-default)/2)}.jodit-button{align-items:center;background-color:var(--jd-color-background-gray);border:0;border-radius:.25rem;color:var(--jd-color-default);cursor:pointer;display:inline-flex;height:calc(var(--jd-padding-default)*4);justify-content:center;line-height:1;margin:0;padding:0 var(--jd-padding-default);position:relative;text-decoration:none;user-select:none;width:auto}.jodit-button svg{display:inline-block;height:24px;width:24px}.jodit-button svg+span{margin-left:calc(var(--jd-padding-default)/2)}.jodit-button:active,.jodit-button:focus{outline:0}.jodit-button.disabled{opacity:.7}.jodit-buttons{display:flex;flex-wrap:nowrap;justify-content:space-between;margin-bottom:var(--jd-padding-default)}.jodit-button .jodit_icon,.jodit-button svg,.jodit-dialog__header .jodit_icon,.jodit-dialog__header svg{display:inline-block;height:16px;vertical-align:middle;width:16px}.jodit-switcher-wrapper{align-items:center;display:flex}.jodit-switcher-wrapper .jodit-switcher+span{margin-left:var(--jd-padding-default)}.jodit-switcher{display:inline-block;height:var(--jd-switche-height);position:relative;width:var(--jd-switche-width)}.jodit-switcher input{height:0;opacity:0;width:0}.jodit-switcher .jodit-switcher__slider{background-color:var(--jd-color-gray);border-radius:var(--jd-switche-height);cursor:pointer;inset:0;position:absolute;transition:.4s}.jodit-switcher .jodit-switcher__slider:before{background-color:#fff;border-radius:50%;bottom:var(--jd-switche-slider-margin);content:"";height:var(--jd-switche-slider-size);left:var(--jd-switche-slider-margin);position:absolute;transition:.4s;width:var(--jd-switche-slider-size)}input:checked+.jodit-switcher__slider{background-color:var(--jd-color-background-active)}input:checked+.jodit-switcher__slider:before{transform:translateX(calc(var(--jd-switche-width) - var(--jd-switche-slider-margin)*2 - var(--jd-switche-slider-size)))}input:focus+.jodit-switcher__slider{box-shadow:0 0 1px var(--jd-color-background-active)}.jodit-button-group{display:flex}.jodit-button-group input{display:none}.jodit-button-group button{display:flex;flex:1;justify-content:center;text-align:center}.jodit-button-group button+button{margin-left:-1px}.jodit-button-group button:first-child,.jodit-button-group input:first-child+button{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0}.jodit-button-group button:last-child,.jodit-button-group input:last-child+button{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0}.jodit-button-group input[type=checkbox]:checked+button,.jodit-button-group input[type=checkbox]:not(:checked)+button+button{background-image:none;box-shadow:inset 0 2px 4px rgba(0,0,0,.3),0 1px 2px rgba(0,0,0,.05)}.jodit_text_icons .jodit_icon{font-size:var(--jd-font-size-default);width:auto}.jodit_text_icons .jodit_icon:first-letter{text-transform:uppercase}.jodit_text_icons .jodit-tabs .jodit-tabs__buttons>a{font-family:var(--jd-font-default);width:auto}.jodit_text_icons .jodit-tabs .jodit-tabs__buttons>a i{width:auto}.jodit_text_icons.jodit-dialog .jodit-button,.jodit_text_icons.jodit-dialog .jodit-dialog__header a{color:var(--jd-color-text-icons);font-family:var(--jd-font-default);padding:var(--jd-padding-default);width:auto}.jodit_text_icons.jodit-dialog .jodit-button .jodit_icon,.jodit_text_icons.jodit-dialog .jodit-dialog__header a .jodit_icon{width:auto}.jodit-grid{display:flex;width:100%}.jodit-grid.jodit-grid_column{flex-direction:column}@media (max-width:480px){.jodit-grid.jodit-grid_xs-column{flex-direction:column}}.jodit-grid [class*=jodit_col-]{flex:1 1 auto}.jodit-grid .jodit_col-lg-5-5{width:100%}.jodit-grid .jodit_col-lg-4-5{width:80%}.jodit-grid .jodit_col-lg-3-5{width:60%}.jodit-grid .jodit_col-lg-2-5{width:40%}.jodit-grid .jodit_col-lg-1-5{width:20%}.jodit-grid .jodit_col-lg-4-4{width:100%}.jodit-grid .jodit_col-lg-3-4{width:75%}.jodit-grid .jodit_col-lg-2-4{width:50%}.jodit-grid .jodit_col-lg-1-4{width:25%}@media (max-width:992px){.jodit-grid .jodit_col-md-5-5{width:100%}.jodit-grid .jodit_col-md-4-5{width:80%}.jodit-grid .jodit_col-md-3-5{width:60%}.jodit-grid .jodit_col-md-2-5{width:40%}.jodit-grid .jodit_col-md-1-5{width:20%}.jodit-grid .jodit_col-md-4-4{width:100%}.jodit-grid .jodit_col-md-3-4{width:75%}.jodit-grid .jodit_col-md-2-4{width:50%}.jodit-grid .jodit_col-md-1-4{width:25%}}@media (max-width:768px){.jodit-grid .jodit_col-sm-5-5{width:100%}.jodit-grid .jodit_col-sm-4-5{width:80%}.jodit-grid .jodit_col-sm-3-5{width:60%}.jodit-grid .jodit_col-sm-2-5{width:40%}.jodit-grid .jodit_col-sm-1-5{width:20%}.jodit-grid .jodit_col-sm-4-4{width:100%}.jodit-grid .jodit_col-sm-3-4{width:75%}.jodit-grid .jodit_col-sm-2-4{width:50%}.jodit-grid .jodit_col-sm-1-4{width:25%}}@media (max-width:480px){.jodit-grid .jodit_col-xs-5-5{width:100%}.jodit-grid .jodit_col-xs-4-5{width:80%}.jodit-grid .jodit_col-xs-3-5{width:60%}.jodit-grid .jodit_col-xs-2-5{width:40%}.jodit-grid .jodit_col-xs-1-5{width:20%}.jodit-grid .jodit_col-xs-4-4{width:100%}.jodit-grid .jodit_col-xs-3-4{width:75%}.jodit-grid .jodit_col-xs-2-4{width:50%}.jodit-grid .jodit_col-xs-1-4{width:25%}}@keyframes b{to{transform:rotate(1turn)}}.jodit-icon_loader{animation:b 2s ease-out 0s infinite;background:url(${h}) no-repeat 50%;background-size:100% 100%;display:inline-block;height:var(--jd-icon-loader-size);vertical-align:middle;width:var(--jd-icon-loader-size);will-change:transform}.jodit-icon{background:50% no-repeat;background-size:contain;height:14px;overflow:visible;width:14px;fill:var(--jd-color-icon);transform-origin:0 0!important}.jodit-icon,.jodit-icon_close{stroke:var(--jd-color-icon)}svg.jodit-icon{height:auto;isolation:isolate}.jodit-icon_text{font-size:14px}.jodit,.jodit *,.jodit-container,.jodit-container *{box-sizing:border-box}.jodit .jodit-workplace,.jodit-container .jodit-workplace{overflow:auto;position:relative}.jodit .jodit-workplace .jodit-wysiwyg,.jodit .jodit-workplace .jodit-wysiwyg_iframe,.jodit-container .jodit-workplace .jodit-wysiwyg,.jodit-container .jodit-workplace .jodit-wysiwyg_iframe{height:100%;width:100%}.jodit-wysiwyg [contenteditable=false]{cursor:default}.jodit-container:not(.jodit_inline){background-color:var(--jd-color-background-light-gray);border:1px solid var(--jd-color-border);border-radius:var(--jd-border-radius-default)}.jodit-container:not(.jodit_inline) .jodit-workplace{background-color:var(--jd-color-background-default);border:0 solid var(--jd-color-border);max-height:100%}.jodit-container:not(.jodit_inline).jodit_disabled{background:var(--jd-color-background-gray)}.jodit-container:not(.jodit_inline).jodit_disabled .jodit-workplace{opacity:.4}.jodit_disabled,.jodit_lock{user-select:none!important}.jodit_hidden{display:none!important}.jodit_vertical_middle{align-items:center;display:flex}.jodit-box{background:0 0;border:0;float:none;height:auto;margin:0;max-width:none;outline:0;padding:0;position:static;width:auto}.jodit-dialog_theme_dark,.jodit_theme_dark{--jd-color-border:#6b6b6b;--jd-color-text:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-toolbar-collection_mode_horizontal,.jodit-dialog_theme_dark .jodit-toolbar-editor-collection_mode_horizontal,.jodit_theme_dark .jodit-toolbar-collection_mode_horizontal,.jodit_theme_dark .jodit-toolbar-editor-collection_mode_horizontal{background-image:repeating-linear-gradient(transparent 0,transparent calc(var(--jd-button-size) - 1px),var(--jd-color-border) var(--jd-button-size))}.jodit-dialog_theme_dark .jodit-toolbar-collection_mode_horizontal:after,.jodit-dialog_theme_dark .jodit-toolbar-editor-collection_mode_horizontal:after,.jodit_theme_dark .jodit-toolbar-collection_mode_horizontal:after,.jodit_theme_dark .jodit-toolbar-editor-collection_mode_horizontal:after{background-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty),.jodit_theme_dark .jodit-toolbar__box:not(:empty){border-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after,.jodit_theme_dark .jodit-toolbar__box:not(:empty) .jodit-toolbar-editor-collection:after{background-color:var(--jd-color-border)}.jodit-dialog_theme_dark .jodit-ui-group_separated_true:not(:last-child,.jodit-ui-group_before-spacer_true):after,.jodit_theme_dark .jodit-ui-group_separated_true:not(:last-child,.jodit-ui-group_before-spacer_true):after{border-right-color:var(--jd-color-border)}.jodit-dialog_theme_dark.jodit-container,.jodit_theme_dark.jodit-container{background-color:var(--jd-dark-background-color);border-color:var(--jd-color-border)}.jodit-dialog_theme_dark.jodit-container.jodit_disabled,.jodit_theme_dark.jodit-container.jodit_disabled{background-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark.jodit-container:not(.jodit_inline) .jodit-workplace,.jodit_theme_dark.jodit-container:not(.jodit_inline) .jodit-workplace{border-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-popup__content,.jodit_theme_dark .jodit-popup__content{background:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-toolbar-button,.jodit-dialog_theme_dark .jodit-toolbar-select,.jodit-dialog_theme_dark .jodit-ui-button,.jodit_theme_dark .jodit-toolbar-button,.jodit_theme_dark .jodit-toolbar-select,.jodit_theme_dark .jodit-ui-button{--jd-color-icon:var(--jd-dark-icon-color)}.jodit-dialog_theme_dark .jodit-toolbar-button__text,.jodit-dialog_theme_dark .jodit-toolbar-select__text,.jodit-dialog_theme_dark .jodit-ui-button__text,.jodit_theme_dark .jodit-toolbar-button__text,.jodit_theme_dark .jodit-toolbar-select__text,.jodit_theme_dark .jodit-ui-button__text{color:var(--jd-color-text)}.jodit-dialog_theme_dark .jodit-toolbar-button .jodit-icon,.jodit-dialog_theme_dark .jodit-toolbar-button svg,.jodit-dialog_theme_dark .jodit-toolbar-button__trigger,.jodit-dialog_theme_dark .jodit-toolbar-select .jodit-icon,.jodit-dialog_theme_dark .jodit-toolbar-select svg,.jodit-dialog_theme_dark .jodit-toolbar-select__trigger,.jodit-dialog_theme_dark .jodit-ui-button .jodit-icon,.jodit-dialog_theme_dark .jodit-ui-button svg,.jodit-dialog_theme_dark .jodit-ui-button__trigger,.jodit_theme_dark .jodit-toolbar-button .jodit-icon,.jodit_theme_dark .jodit-toolbar-button svg,.jodit_theme_dark .jodit-toolbar-button__trigger,.jodit_theme_dark .jodit-toolbar-select .jodit-icon,.jodit_theme_dark .jodit-toolbar-select svg,.jodit_theme_dark .jodit-toolbar-select__trigger,.jodit_theme_dark .jodit-ui-button .jodit-icon,.jodit_theme_dark .jodit-ui-button svg,.jodit_theme_dark .jodit-ui-button__trigger{fill:var(--jd-color-icon);stroke:var(--jd-color-icon)}.jodit-dialog_theme_dark .jodit-toolbar-button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-button__trigger:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-toolbar-select__trigger:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__button:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__text:hover:not([disabled]),.jodit-dialog_theme_dark .jodit-ui-button__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__text:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-button__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__button:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__text:hover:not([disabled]),.jodit_theme_dark .jodit-toolbar-select__trigger:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__button:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__text:hover:not([disabled]),.jodit_theme_dark .jodit-ui-button__trigger:hover:not([disabled]){--jd-color-text:var(--jd-dark-background-color);--jd-color-icon:var(--jd-dark-background-color);background-color:var(--jd-dark-background-ligher);color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark .jodit-status-bar,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty),.jodit_theme_dark .jodit-status-bar,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty){background-color:var(--jd-dark-toolbar-color);border-color:var(--jd-color-border);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-status-bar,.jodit-dialog_theme_dark .jodit-status-bar .jodit-status-bar__item a,.jodit-dialog_theme_dark .jodit-status-bar .jodit-status-bar__item span,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link:hover,.jodit-dialog_theme_dark .jodit-status-bar a.jodit-status-bar-link:visited,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty),.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item a,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item span,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:hover,.jodit-dialog_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:visited,.jodit_theme_dark .jodit-status-bar,.jodit_theme_dark .jodit-status-bar .jodit-status-bar__item a,.jodit_theme_dark .jodit-status-bar .jodit-status-bar__item span,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link:hover,.jodit_theme_dark .jodit-status-bar a.jodit-status-bar-link:visited,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty),.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item a,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) .jodit-status-bar__item span,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:hover,.jodit_theme_dark .jodit-workplace+.jodit-status-bar:not(:empty) a.jodit-status-bar-link:visited{color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-toolbar__box:not(:empty),.jodit_theme_dark .jodit-toolbar__box:not(:empty){background:var(--jd-dark-toolbar-color)}.jodit-dialog_theme_dark .jodit-icon-close,.jodit_theme_dark .jodit-icon-close{stroke:var(--jd-dark-icon-color)}.jodit-dialog_theme_dark .jodit-wysiwyg,.jodit-dialog_theme_dark .jodit-wysiwyg_iframe,.jodit_theme_dark .jodit-wysiwyg,.jodit_theme_dark .jodit-wysiwyg_iframe{background-color:var(--jd-dark-background-color);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-form input[type=text],.jodit-dialog_theme_dark .jodit-form input[type=url],.jodit-dialog_theme_dark .jodit-form textarea,.jodit_theme_dark .jodit-form input[type=text],.jodit_theme_dark .jodit-form input[type=url],.jodit_theme_dark .jodit-form textarea{background-color:var(--jd-dark-toolbar-seperator-color1);border-color:var(--jd-dark-toolbar-seperator-color2);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-form button,.jodit_theme_dark .jodit-form button{background-color:var(--jd-dark-toolbar-seperator-color3);color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-placeholder,.jodit_theme_dark .jodit-placeholder{color:var(--jd-dark-text-color-opacity80)}.jodit-dialog_theme_dark .jodit-drag-and-drop__file-box,.jodit-dialog_theme_dark .jodit_uploadfile_button,.jodit_theme_dark .jodit-drag-and-drop__file-box,.jodit_theme_dark .jodit_uploadfile_button{color:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-drag-and-drop__file-box:hover,.jodit-dialog_theme_dark .jodit_uploadfile_button:hover,.jodit_theme_dark .jodit-drag-and-drop__file-box:hover,.jodit_theme_dark .jodit_uploadfile_button:hover{background-color:var(--jd-dark-toolbar-seperator-color3)}.jodit-dialog_theme_dark .jodit-add-new-line:before,.jodit_theme_dark .jodit-add-new-line:before{border-top-color:var(--jd-dark-toolbar-seperator-color2)}.jodit-dialog_theme_dark .jodit-add-new-line span,.jodit_theme_dark .jodit-add-new-line span{background:var(--jd-dark-toolbar-seperator-color3);border-color:var(--jd-dark-toolbar-seperator-color2)}.jodit-dialog_theme_dark .jodit-add-new-line span svg,.jodit_theme_dark .jodit-add-new-line span svg{fill:var(--jd-dark-text-color)}.jodit-dialog_theme_dark .jodit-resizer>i,.jodit_theme_dark .jodit-resizer>i{background:var(--jd-dark-toolbar-seperator-color3);border-color:var(--jd-dark-icon-color)}.jodit-dialog_theme_dark .jodit-input,.jodit-dialog_theme_dark .jodit-select,.jodit_theme_dark .jodit-input,.jodit_theme_dark .jodit-select{background-color:var(--jd-dark-background-ligher);border-color:var(--jd-dark-border-color);color:var(--jd-dark-border-color)}.jodit-dialog_theme_dark.jodit-dialog,.jodit_theme_dark.jodit-dialog{background-color:var(--jd-dark-background-color)}.jodit-dialog_theme_dark.jodit-dialog .jodit-dialog__header,.jodit-dialog_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item,.jodit_theme_dark.jodit-dialog .jodit-dialog__header,.jodit_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item{border-color:var(--jd-dark-border-color)}.jodit-dialog_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item-info,.jodit_theme_dark.jodit-dialog .jodit-filebrowser__files.active .jodit-filebrowser__files-item-info{background-color:var(--jd-dark-text-color)}`,""]);const g=f},72:e=>{var t=[];function o(e){for(var o=-1,n=0;n<t.length;n++)if(t[n].identifier===e){o=n;break}return o}function n(e,n){for(var i={},a=[],l=0;l<e.length;l++){var s=e[l],c=n.base?s[0]+n.base:s[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var f=o(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var h=r(p,n);n.byIndex=l,t.splice(l,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function r(e,t){var o=t.domAPI(t);return o.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;o.update(e=t)}else o.remove()}}e.exports=function(e,r){var i=n(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=o(i[a]);t[l].references--}for(var s=n(e,r),c=0;c<i.length;c++){var u=o(i[c]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}i=s}}},659:e=>{var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,o)=>{e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var r=void 0!==o.layer;r&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,r&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var i=o.sourceMap;i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},333:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o})).join("")},t.i=function(e,o,n,r,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var l=0;l<this.length;l++){var s=this[l][0];null!=s&&(a[s]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);n&&a[u[0]]||(void 0!==i&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=i),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},504:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},772:e=>{e.exports=function(e){return e[1]}},789:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAABRsSURBVHja7F1/aJfVGn/33RgUg8FiNfK2WCykyS7GLoYyUbwYipZMumgLo+iPS9HlXhSHkRXdislESxMz0mapuaFo2myjkfnNlTQ2FJdTu8NvLVcrdbpcfGvxrfs823m/vXt3fjznvOedzr0PPJzzPe+7d+97Ps95nuc851fGAw884CD98ccfI1Jqmc3UpEyQz4FkMqRTgYshn8fymZ57SyGbzf5mENIOz9+ngE9Atg/SLkhPQHoWeEDn3SmpSZlJnvf7ypUrTpb7IyMjY+gGN6WWmaY84l2T3c+u58D1csjOgvwsyBdBvsDRo2zgMl/ZNM59vcAJ4Dj8nzikLa5QmBLv28YCfPd3li7gPHBMwKdcEwhCJgN6FoLOWJtUgiWovALG04FXsbI44xbgw8AplbaU/Q+ZQNgGf0gA/JWhC1aQyle1eN91rPRKKKuEsjzZvSph0m2RiutpIYRrfZC8B+l7kB6jgq0CnQIy9X39v2NYQW5FeUFQlQVN/aALyiYBPw/5M5B+Dvw02vMggqcDukEl57F3xHf9H747+4bA5oD6dzqaYEgAqIDbBl9RhvZ4H/B5yL+IDp3oXhmwNkm3lTLn80VIz+O3QFqm2/rHwgeI6QDOa006LZ3Q4lHNNwK3AVeYAD4WgmHQUivYNzWyb7xufICYaavXVbuKZ6MXfwRVJ+TnXW+Am/oMnNaO3/Y5pPitcyh/a6LqtXwAt+J01LVFEzAJ0jpIj7JunJYd1wHchnBQHUSC3Uan8WPgPVgHlBiBCcAkH4Da2i2DjwGZlcy5W0K17zLwVb9NgaY4iJpawJs+BCnWwUo3SKXT4oOAP8IHCFsIfMCguj8JaQ2kOaaA227d10ALuIR1gHVxErjctPtHBd8btSR3A4MIgSePAZxqVPeQlthq7ZRuZVABCVkLuGkJpGgKsY4ybfUEVO84qhsoAzSgrUfHZ1UQVe99B6o2oMYdwg7latAq5iROGoueQExW6UE0gCe/ANIh9SZ6jqkWsN3STZ0rHWEgpkNmEvILxqQbSAXaAPxqSBswQkbpbpo6fGPR0m3GBYjBIIwqNjCTEAr4wkBQUA0AjKNrdZCu0okAqgQhTKCDhFxV91BNgsDuYx3WQZptG3xtDUCJEDKvthGuLVEJlq4gUMyAylfQERadPrhKOHTmB3Ces4RFEXNsgW8UClbZcEhxqPQIpHOord2k1ZsAH4YvYNJXN3EgWX4Ocw4LbIEvDQSJfADJtULWxSuj+BBUP4DaC6D0DkyFg6JKTVo/5brvXqzbo2zSi3af3/9bGgrW1Ar5kH4MXEzVHEHVf5CuYZC4fti9AoI/gXX8Eda5Tp9f9I4xWWsnOoc5zNMv1okjmKp/vzay3epNJ4+YmALdoWBPWTHksc5zTU1AekqYt7LcWTruTYTZQdmQHoB0GuXv/de8L8e7xrsuA8kPNtx3AZIOxp3APc7wvD6kvi+//DLh3nvPPfegWs1jf4dBGGxpOA+hlOXzgw7VBjEBnDKcs4jzDOZDOmjqD2SJQFGBx9JaSOcQ7xVO2RIJhf86AfB+Z3huHs7Ra2pra+ugtubTp0+jMLgC0e6/ftddd6EgzMO5iGwSaq4NITCdLczy6GzXAj8KnDIxAaM0AKeViwCtgbRSNgGUJwQyDaACngO4w6S/CXgb8KEvvvgiFUaw59y5c64mWXvnnXdmsijdYxjpdP6cXh6oS0g1Bb48zpFEzValA3663pcuXaoleSzFltBIlWhRmWx+v6yMcQJ4PU7A/Oyzz/qca0R33HEHrjlAEJa73rns24JqA0keTUGTjglIJpNOxsMPP6wLfiGkx53hxRbcewwXc1BAx0u4gGMNcP2nn36acq4juv322ytZ5K7UlhBo5LER3AvcTXU60wKgYbsyWTCi3LTV6wLvKesGrvrkk0/qneucCgoKHoJkHbxvYRAhMMij/zMbVzZRTMAvv/wycj4AoRv4Mk7oII4HkLp+vC6drwxt/FrgKeMBfKTe3t69UMFTgPG9B3WcQdMeBsvjhJJqnYGqjMrKSmr/tZxNWAi87o9i+1l5O6SPNjc3dzrjlPLz83HyC/aWpqk0gWZUUHZtJvxuUZmAtAYgtHycr/a6qIXz2DQI5OH1UDRjPIOPdOHChU6o+JmQXW+68JYS4vUB/bozvN5RGAImdwPZA3AC51RKrMAfyBHFGCRBnz4oe7ypqemgc4PQxYsX0YytuOWWW3BRaa3DWd0U1A/w/Z4KvBx4jcoExAitE6dzPStr3RR/QKQ5fOUJ4PsaGxtvGPC9dOnSJfyu+7ALa9MJFPx+lkU05YNBBDVdg0uwKc4eAWCZ83cC8jM+/PDDLucGpr6+Pvy+GWz/ASs9AMFvd7ax1ATEFOBjmLdSBraN3gBwHHhmQ0NDrzMB6PLly73MUYubOs3EiB/GJebyTEB6QogCnGrV6KAFR7AVeP4HH3ww4EwgunLlCn7vfACi1UQDqMb5PWUvm5qAB3HESXNomKz2GaOHv/DAgQNJZwJSf38/fvdC3J5G1iPQnf3jK5sGvx80MQHP69hxHWZ/2wN8//vvv3/BmcD0008/XWCaoEcUJ6C0eoUWeFbXBOBCzTKKJ2/YExgEXrRv374eJyLn6tWrWA+LAJRBy+o/rQUQUx0TsFwzRKzLK/bu3dseQf8nDQwMYH2sCOL0ibx9Vr6cagIKmf0nxe8pguC7vn/Pnj2bIshH088//4z1st+m+veUI6ZFFBOwLGj/XqIh0O4/HkEtJgDmcZ4/EED9e69VKk0ACoDN1u/jqrq6uv4IZjElk0msnypbwPs0wTKVCUBnYbLuMC5REA7v3r37vQhikhBgPTWrTAEFeB9NZt3C0SbAr/6DdPM4jF7/PyNotUzBU26vgAo8x+7zri3jmgAgnOJdKYrVB9QEb+zcubMrgpVOv/76K9bXGzrACwTJfw1D+9k8EzAXOE8GviEPAK+JIDXSAlhvA7yWTWztvMfiXM65PBNQrgLfUBi2v/vuu70RnPo0ODjYC0BtN3D2VNfLR5gAz04eRn17yb0p4A0RlIEI6y+la/MV1xf4fYACSEtDiP031dbWRrY/AP32229dAGCTrs1XrHHEaesFXh+gXCfooyEM2yIIrdC2ADZ/1D1eM+CagHLJ5ExTxrl9hyLsrDiDWI99EjApgPvLRwhAmQh4HV/Axwe3bt06GMEXnFKpFK4tOBgQcH95WdoEAE01nc8Xi8VEArA3gs4q7VWpfsHaCpEg4GrnoeXhOEKUw3u4yZYqbGo4Lk2KR5hZpcOsXjO9GIm0AYFycTErmoDJVLWu0Tto3bJly0CEmT36/fffkzh/UKfVE3yLkix3Xx+v5FjYaaslgiwUZxDrdbrm38guF6EAFFKAF5kEwcFPrRFcoVCrIdAiKsSlYUWqFi/zBwTXOiKsQqGOIKe1cQRmSAPkmYIv0ADY9Yuif+GYgC5Wv9kB1L6X8lAA8k3BFwhB94YNG1IRXPYJutwpINwBpNjSI/O5AhDQGUxEUIVKCRMBEGiFIQG4yX+Daf+fPacvwihUM2Czfm/KcgMLtjZZhudEY//hks2VVJlZ7tJvi5SMMApVA9gMsOVkXYvDFiO6fggFACUqJ6qKcaMBbD5uAH2AlE0fIKJxRSnUAGizcykePtWzjOo1VA2gpa0V2CVRALBbURDwQV4qiGAKVQDyLZ571JfFum0lFqTJvScvgilUytPxAxSY9boawMbD3OtFEUahaoAinQap0gA4JSzhPswSFz733HOZEVT2KZlMYr0WesGV7KpOoQRqgG6DVi4rx5EqjFWfjSCz3vqLHd9IoGyYnoBjNwpAwhBoWXlpJAChCECpv66p5ycJBCSBcwI7daZ7E83FtAiuUGgaT/WLACaYhk4MBCVk0UDKWb2c3+URVqFogOm8OqccqMW5d+Dmm29OuGsDOyw7gmUvvfRSFBCySFevXsX6LBO1cIoG8NEQ5u7KoFbLi0Kz3fODI7JGeHbwTSJADcxCq1cAWnR39yYIQUWEmVX1X2G6SYTgnhavABwL0uoF91dUV1dnR9AFp/7+fjysq0IGvIEGODYkAOwa7t/XYXl3kDzgBRF8Vgg3eczT2SqGYP97vBoA83ELrd6/WPSJCDsr6v8Jw91BRdfS6za9ewQ1qVo9RQv47plXU1NTHEFoTpcvX8aTwueJgKdoAI4wpE8Y9e4SdtgdGLK4S1gm8L8jGAO1fqy/TNmiUE1hQIwPj9AADOQk7ugRdJ9ADj+2bt26aI6AAV26dAnr7THqnsFEYTgEnBRtFl0fwk6hOcCrIjiNaBXOAKIcuq3hG4w4fTXma+lNOEHEZFs4hcA8+eqrr0a+gAZdvHgRbf+TsrMDDMxBr2v/eT7A0L5+8HN7AKdPFhncHMGqZftfB84Wga0yBwKtsN1hk4B5PsCIrd0C2HwRz924cWNlBK2afvzxx0rX89c5Qo4gCNv85bwDI7r8XUKqynfL/KmHazZt2pQbQSymH374AffuqeEB7gWXCrzHFCCmXf5niE4NWxPkJFAJ41GmtRHMUtWP9TNJdYScgQZYo3NoFEYF21WmgAq8776KzZs3Px1BPZq+//57rJcKXhg3oClo90b/qCeHvqLjA2j6B+u2bNlSFkH+J3333XdlAMo6ntq3cJroK6K4gOzgyP2oBaj2nqIdPGXYKzjw5ptvToqgd5yenh5U+Qcgmy07UdxQA7QD7xfFClSnh68Oelag6H5n+Fj6j9566638iQz++fPn8wGMRq/dV4EviwVwrq0W9QpUJsAdINof5LRQxfNLgBu2bt06IaePffvttzjDp8EZ3r6dDL7sQEkfyAdVW82rjo9H/hdkB2y2ft89eEB149tvvz2hlqh/8803OazlTzMFX6ENcKLvU7LgEMUEuIc9vqLb+inBJE8ezyo+un379gkxaPT111/jdx4FEGbJwOd1A2VdQ9896Pj1qIJDMSJI6yHpNGnpGlHFqVgp77zzzg29tjCRSBQx8KfKWrmJBvDkO4HXU3oI7pQwFUDpc/8s9ABk14uB23bs2HFDTiU7d+7cAqj4NrbESxtojeAQYjWoOnyaqwF4AsFSnDm81lT1y2YZ+cpwLmHDzp07a3bt2nVDTCrt6urKBq5hDl8eBXCTHgGjtWxTaVK8IEYFjKWrvVPIdU8VE2kMgUCsBD6ye/fukvEM/ldffVUCFX4EsitVtl3UYjU0wDHg1dQIodQJFJShKXgE0j5dLaACn6MJkKcDH6+rq6uur68fV72EM2fO5Jw9e7YasseBp5u0cKoQsDxO9Vrqqn6R2hdGAjWEoBvSR03B9wPNA95HGDVcBXxqz549D40H8E+fPo3vecoZntGTreqzmwgBRyDw2Plu3TBxxmuvvcYFUQYwy+OQ5UoV6DITQzEJnGsdbLSyfvHixdfVptSnTp2qZMJaqtsVVtWbAiP0zap498ryt956q5OxYcMGyj/gpbhbxS5IlwSJBQQYYsZVzWtREBYtWnTN9ic+efIkOq1LmM9SZDKplioQgrJ6ZpZTVODd32kBIEoZL0UvvdFdCBoUfGo8gXM0/UHgHTireeHChaFrhePHj+N0dzxqdxnwg2xwS0vD6YIvwAOnd89nvhkZeJduu+02J2Pjxo0UKZO9GM7w+cjdFMIgCmiqAXj39bO5DPFYLNY8b948ayeXtLW1lbIT1mcxzjVZUGtqCjh44Bj/34H7ZXjJhCItAAHAd1Mc0fvcPYAqCPhBhIHDF5jP0MF2QkmwE02HTMjs2bPTpqOlpSXPVeHABSwoVcLsOebzTWZH2fADOClO7ZqB3yfDTWUSUACyiHZG9UJY0SiNH7PKIjsiqt6BooegIhTMOYxHUTweN3q26EAN/wkr3t+qvEaKczbvxzoXPcf7brL/a9oNFKXYPZzpnUpGlX6dbqHIDIRNlIWXsuibbjdQkGLdzoQ0YfJ/uJFAamsndllw19HZzDlxVGFmkcqilFnSEFotnnKNOlZPGQX0lWOdzoa01xR47nCwDtBEpwbHoedj94wy0KSKCOoIQhgaQrXZgkoYdMCXPAvrcr57WITuXEHlcLCu00cQGjza7BEcRjbRAFSNQAXXVAh0zuY1BV/Q2r3pekixnz+oGRomvVtMV9Vr3I/98RXAC73LzoM4grIWb1sIxgp8iSnAOlsIKdZhynB8QG8wiKIBDPyCQ5C9F0cRKY6gDFwZ2DaFIEzwCS3e3b/nXlzKras1dFr/KA2go/5FLVRwfzdzDtfodgupZoFqGohbqIYGPsH+Yx3NxF6V7D2omkXlmMZM1T8PDMXfoUl4BruKkHaaaANbtj2MnoEJ+L6/72RdvGe8Kt9kjqBOj4SsAUyvce7BCSV/Ba6C/EBYXcSg5oIKtqkj5ikbgLSKqfwWaheRWqZ6j1gIAFPuQW2AI3lTIN0b1CSonMSwYgCU6wqQ8NunsOHcQcozVKZIVwhiKjVuMEihY0YwevgPSDG0eUy3ezjWYOsEhRRAHWPf/A93Egc1MKTj+FGEIGZhIEgJiMzPYPlmHNxgjmLTtRSCsOw+o2YWzcNvbTYIBVsVgrQGsAW+6cCSJx9nUcS/QbrfVAjCDgQZ/P1+yOM33Q9pPMizqCaAKgSxsMCntk6B2sdVyYsh/QvwC7hriY4QhCkUGi0e3/kF/AYow29pJ8YArJkAihDEwgRfVyNw8rif7X+B74Y8qs03nOGNDq0IgQ3Afff0sXecAfm72bv3UFoxpdWbtH7V32cFcfgoLcyCEKQdJ9zVHNL/AM9ijOP808MYD/CP7UvuO8ZGP+OMB3nP4T1PNfYvey/KXAPKd2XpevA27iWYANk9g8yZamblOa5A4FQtZ/jEsjybWsBTaX1sQkbcA/iACAQd0E2EQgU8RUiyKC02qGnQjS6qwPP9LQJwiLFLuUwQcBuaIiYQuBjTPc8wk/32VtYJFq104xQnmLlJMPuNNr3fUEuQQtDUVm8DeNcc/F+AAQBKd8HaIWdjwQAAAABJRU5ErkJggg=="},523:e=>{e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJMYXllcl8xIiBkYXRhLW5hbWU9IkxheWVyIDEiIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0ye2ZpbGw6IzQ0NH08L3N0eWxlPjwvZGVmcz48dGl0bGU+YXJyb3dzPC90aXRsZT48cGF0aCBkPSJNMCAwaDQuOTV2MTBIMHoiIHN0eWxlPSJmaWxsOiNmZmYiLz48cGF0aCBkPSJtMS40MSA0LjY3IDEuMDctMS40OSAxLjA2IDEuNDl6TTMuNTQgNS4zMyAyLjQ4IDYuODIgMS40MSA1LjMzeiIgY2xhc3M9ImNscy0yIi8+PC9zdmc+"},65:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 id=%27Layer_1%27 data-name=%27Layer 1%27 viewBox=%270 0 4.95 10%27%3E%3Cdefs%3E%3Cstyle%3E.cls-2{fill:%23444}%3C/style%3E%3C/defs%3E%3Ctitle%3Earrows%3C/title%3E%3Cpath d=%27M0 0h4.95v10H0z%27 style=%27fill:%23fff%27/%3E%3Cpath d=%27m1.41 4.67 1.07-1.49 1.06 1.49zM3.54 5.33 2.48 6.82 1.41 5.33z%27 class=%27cls-2%27/%3E%3C/svg%3E"},442:t=>{t.exports=e}},o={};function n(e){var r=o[e];if(void 0!==r)return r.exports;var i=o[e]={id:e,exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.b=document.baseURI||self.location.href,n.nc=void 0;var r={};n.r(r),n.d(r,{Jodit:()=>fz,default:()=>hz});var i={};n.r(i),n.d(i,{ACCURACY:()=>Gt,APP_VERSION:()=>st,BASE_PATH:()=>yo,BASE_PATH_IS_MIN:()=>_o,BR:()=>Xt,CLIPBOARD_ID:()=>ko,COMMAND_KEYS:()=>Jt,EMULATE_DBLCLICK_TIMEOUT:()=>ao,ES:()=>ct,FAT_MODE:()=>ht,HOMEPAGE:()=>vt,INSEPARABLE_TAGS:()=>Pt,INSERT_AS_HTML:()=>lo,INSERT_AS_TEXT:()=>co,INSERT_CLEAR_HTML:()=>so,INSERT_ONLY_TEXT:()=>uo,INVISIBLE_SPACE:()=>bt,INVISIBLE_SPACE_REG_EXP:()=>_t,INVISIBLE_SPACE_REG_EXP_END:()=>jt,INVISIBLE_SPACE_REG_EXP_START:()=>wt,IS_BLOCK:()=>zt,IS_ES_MODERN:()=>ut,IS_ES_NEXT:()=>dt,IS_IE:()=>to,IS_INLINE:()=>Et,IS_MAC:()=>po,IS_PROD:()=>ft,IS_TEST:()=>pt,KEY_ALIASES:()=>ho,KEY_ALT:()=>Nt,KEY_BACKSPACE:()=>Lt,KEY_DELETE:()=>Ut,KEY_DOWN:()=>Vt,KEY_ENTER:()=>Bt,KEY_ESC:()=>Dt,KEY_F3:()=>Yt,KEY_LEFT:()=>Ht,KEY_META:()=>At,KEY_RIGHT:()=>qt,KEY_SPACE:()=>Wt,KEY_TAB:()=>Mt,KEY_UP:()=>Ft,LIST_TAGS:()=>Tt,MARKER_CLASS:()=>io,MODE_SOURCE:()=>$t,MODE_SPLIT:()=>eo,MODE_WYSIWYG:()=>Qt,NBSP_SPACE:()=>yt,NEARBY:()=>Kt,NO_EMPTY_TAGS:()=>Rt,PARAGRAPH:()=>Zt,PASSIVE_EVENTS:()=>xo,SAFE_COUNT_CHANGE_CALL:()=>fo,SET_TEST:()=>gt,SOURCE_CONSUMER:()=>So,SPACE_REG_EXP:()=>kt,SPACE_REG_EXP_END:()=>xt,SPACE_REG_EXP_START:()=>St,TEMP_ATTR:()=>jo,TEXT_HTML:()=>no,TEXT_PLAIN:()=>oo,TEXT_RTF:()=>ro,TOKENS:()=>mt,globalDocument:()=>Ct,globalWindow:()=>Ot,lang:()=>wo});var a={};n.r(a),n.d(a,{$$:()=>Jr,CamelCaseToKebabCase:()=>On,ConfigDeepFlatten:()=>yr,ConfigFlatten:()=>br,ConfigProto:()=>mr,ConnectionError:()=>Ir,LimitedStack:()=>ii,NUMBER_FIELDS_REG:()=>Cn,OptionsError:()=>Br,abort:()=>Sr,alignElement:()=>Ln,alreadyLoadedList:()=>Bn,appendScriptAsync:()=>Nn,appendStyleAsync:()=>Hn,applyStyles:()=>Ii,asArray:()=>zi,assert:()=>Jn,attr:()=>Xn,browser:()=>Zn,buildQuery:()=>Qn,call:()=>sr,callPromise:()=>ur,camelCase:()=>Tn,cleanFromWord:()=>Pi,clearAlign:()=>An,clearCenterAlign:()=>Pn,clearTimeout:()=>wi,cns:()=>Ur,colorToHex:()=>Sn,completeUrl:()=>Mn,connection:()=>Nr,convertMediaUrlToVideoEmbed:()=>jr,css:()=>In,cssPath:()=>Qr,ctrlKey:()=>wr,dataBind:()=>ar,defaultLanguage:()=>kr,error:()=>Dr,fastClone:()=>rr,fuzzySearchIndex:()=>ea,get:()=>Ao,getClassName:()=>qr,getContentWidth:()=>Gi,getDataTransfer:()=>hr,getScrollParent:()=>Ji,getXPathByElement:()=>Xr,hAlignElement:()=>Rn,hasBrowserColorPicker:()=>Do,hasContainer:()=>Jo,htmlspecialchars:()=>Ri,humanSizeToBytes:()=>Vr,i18n:()=>na,inView:()=>ti,innerWidth:()=>Xi,isAbort:()=>xr,isAbortError:()=>No,isArray:()=>To,isAtom:()=>or,isBoolean:()=>Ho,isDestructable:()=>Go,isEqual:()=>Vo,isFastEqual:()=>Wo,isFunction:()=>Oo,isHTML:()=>Uo,isHtmlFromWord:()=>Yo,isInitable:()=>Ko,isInt:()=>Zo,isJoditObject:()=>$o,isLicense:()=>en,isMarker:()=>tn,isNativeFunction:()=>Eo,isNumber:()=>on,isNumeric:()=>Xo,isPlainObject:()=>rn,isPromise:()=>an,isSet:()=>ln,isString:()=>Io,isStringArray:()=>Po,isURL:()=>sn,isValidName:()=>cn,isViewObject:()=>un,isVoid:()=>Ro,isWindow:()=>nn,kebabCase:()=>xn,keepNames:()=>Fr,keys:()=>fr,loadImage:()=>dr,loadNext:()=>Fn,loadNextStyle:()=>qn,markAsAtomic:()=>nr,markDeprecated:()=>Yr,markOwner:()=>cr,memorizeExec:()=>pr,nl2br:()=>Ai,normalizeColor:()=>Fi,normalizeCssNumericValue:()=>zn,normalizeCssValue:()=>En,normalizeKeyAliases:()=>qi,normalizeLicense:()=>Vi,normalizePath:()=>Wi,normalizeRelativePath:()=>Ui,normalizeSize:()=>Yi,normalizeUrl:()=>Ki,offset:()=>Qi,options:()=>Hr,parseQuery:()=>_r,position:()=>$i,previewBox:()=>ei,refs:()=>Zr,reset:()=>Mo,resolveElement:()=>$r,safeHTML:()=>Li,sanitizeHTMLElement:()=>Mi,scrollIntoViewIfNeeded:()=>oi,set:()=>ni,setTimeout:()=>ji,size:()=>Zi,splitArray:()=>Ei,sprintf:()=>oa,stringify:()=>qo,stripTags:()=>Hi,toArray:()=>Bo,trim:()=>dn,trimChars:()=>fn,trimInv:()=>pn,ucfirst:()=>ta});var l={};n.r(l),n.d(l,{autobind:()=>Co,cache:()=>fi,cacheHTML:()=>pi,cached:()=>di,component:()=>bi,debounce:()=>Xa,derive:()=>el,getPropertyDescriptor:()=>ka,hook:()=>tl,idle:()=>nl,nonenumerable:()=>rl,persistent:()=>il,throttle:()=>Za,wait:()=>ll,watch:()=>Sa});var s={};n.r(s),n.d(s,{required:()=>Zs,url:()=>Qs});var c={};n.r(c),n.d(c,{Ajax:()=>ml,Alert:()=>cf,Async:()=>Ci,Button:()=>Os,CommitStyle:()=>Sv,Component:()=>qa,Confirm:()=>uf,ContextMenu:()=>jf,Create:()=>ju,Dialog:()=>sf,Dom:()=>ui,EventEmitter:()=>ba,EventHandlersStore:()=>ha,Eventify:()=>gn,FileBrowser:()=>Pp,Helpers:()=>a,History:()=>nh,Icon:()=>kl,ImageEditor:()=>tp,LazyWalker:()=>kn,Plugin:()=>Hp,PluginSystem:()=>da,Popup:()=>pu,ProgressBar:()=>yu,Prompt:()=>df,Response:()=>fl,STATUSES:()=>zo,Selection:()=>Tv,Snapshot:()=>Gp,StatusBar:()=>uh,Table:()=>bh,ToolbarButton:()=>bd,ToolbarCollection:()=>id,ToolbarContent:()=>xd,ToolbarEditorCollection:()=>Nd,ToolbarSelect:()=>Pd,UIBlock:()=>Xs,UIButton:()=>xs,UIButtonGroup:()=>Rs,UIButtonState:()=>Ss,UICheckbox:()=>Kc,UIElement:()=>Il,UIFileInput:()=>tu,UIForm:()=>Oc,UIGroup:()=>ql,UIInput:()=>cc,UIList:()=>gs,UIMessages:()=>Fu,UISelect:()=>yc,UISeparator:()=>Gl,UISpacer:()=>es,UITextArea:()=>Mc,UITooltip:()=>Ws,Uploader:()=>Ah,View:()=>Xu,ViewComponent:()=>Ja,ViewWithToolbar:()=>Zd,defaultNameSpace:()=>pa,observable:()=>Ea});var u={};n.r(u),n.d(u,{angle_down:()=>Kv,angle_left:()=>Gv,angle_right:()=>Jv,angle_up:()=>Xv,bin:()=>Zv,cancel:()=>Qv,center:()=>$v,check:()=>eg,chevron:()=>tg,dots:()=>og,eye:()=>ng,file:()=>rg,folder:()=>ig,info_circle:()=>ag,left:()=>lg,lock:()=>sg,ok:()=>cg,pencil:()=>ug,plus:()=>dg,resize_handler:()=>fg,right:()=>pg,save:()=>hg,settings:()=>vg,unlock:()=>gg,update:()=>mg,upload:()=>bg,valign:()=>yg});var d={};n.r(d),n.d(d,{removeExtraBr:()=>Fb});var f={};n.r(f),n.d(f,{checkBlockNesting:()=>qb});var p={};n.r(p),n.d(p,{allowAttributes:()=>Ay,fillEmptyParagraph:()=>My,removeEmptyTextNode:()=>By,removeInvTextNodes:()=>Dy,replaceOldTags:()=>Ny,sanitizeAttributes:()=>Hy,tryRemoveNode:()=>Fy});var h={};n.r(h),n.d(h,{ar:()=>t_,cs_cz:()=>o_,de:()=>n_,es:()=>r_,fa:()=>i_,fi:()=>a_,fr:()=>l_,he:()=>s_,hu:()=>c_,id:()=>u_,it:()=>d_,ja:()=>f_,ko:()=>p_,mn:()=>h_,nl:()=>v_,pl:()=>g_,pt_br:()=>m_,ru:()=>b_,tr:()=>y_,zh_cn:()=>__,zh_tw:()=>j_});var v={};n.r(v),n.d(v,{default:()=>vw});var g={};n.r(g),n.d(g,{default:()=>gw});var m={};n.r(m),n.d(m,{default:()=>mw});var b={};n.r(b),n.d(b,{default:()=>bw});var y={};n.r(y),n.d(y,{default:()=>yw});var _={};n.r(_),n.d(_,{default:()=>_w});var j={};n.r(j),n.d(j,{default:()=>jw});var w={};n.r(w),n.d(w,{default:()=>ww});var k={};n.r(k),n.d(k,{default:()=>kw});var S={};n.r(S),n.d(S,{default:()=>Sw});var x={};n.r(x),n.d(x,{default:()=>xw});var O={};n.r(O),n.d(O,{default:()=>Ow});var C={};n.r(C),n.d(C,{default:()=>Cw});var z={};n.r(z),n.d(z,{default:()=>zw});var E={};n.r(E),n.d(E,{default:()=>Ew});var T={};n.r(T),n.d(T,{default:()=>Tw});var I={};n.r(I),n.d(I,{default:()=>Iw});var P={};n.r(P),n.d(P,{default:()=>Pw});var R={};n.r(R),n.d(R,{default:()=>Rw});var A={};n.r(A),n.d(A,{default:()=>Aw});var L={};n.r(L),n.d(L,{default:()=>Lw});var M={};n.r(M),n.d(M,{default:()=>Mw});var B={};n.r(B),n.d(B,{ar:()=>v,cs_cz:()=>g,de:()=>m,es:()=>b,fa:()=>y,fi:()=>_,fr:()=>j,he:()=>w,hu:()=>k,id:()=>S,it:()=>x,ja:()=>O,ko:()=>C,mn:()=>z,nl:()=>E,pl:()=>T,pt_br:()=>I,ru:()=>P,tr:()=>R,ua:()=>A,zh_cn:()=>L,zh_tw:()=>M});var D={};n.r(D),n.d(D,{default:()=>kx});var N={};n.r(N),n.d(N,{default:()=>Sx});var H={};n.r(H),n.d(H,{default:()=>xx});var F={};n.r(F),n.d(F,{default:()=>Ox});var q={};n.r(q),n.d(q,{default:()=>Cx});var V={};n.r(V),n.d(V,{default:()=>zx});var W={};n.r(W),n.d(W,{default:()=>Ex});var U={};n.r(U),n.d(U,{default:()=>Tx});var Y={};n.r(Y),n.d(Y,{default:()=>Ix});var K={};n.r(K),n.d(K,{default:()=>Px});var G={};n.r(G),n.d(G,{default:()=>Rx});var J={};n.r(J),n.d(J,{default:()=>Ax});var X={};n.r(X),n.d(X,{default:()=>Lx});var Z={};n.r(Z),n.d(Z,{default:()=>Mx});var Q={};n.r(Q),n.d(Q,{default:()=>Bx});var $={};n.r($),n.d($,{default:()=>Dx});var ee={};n.r(ee),n.d(ee,{default:()=>Nx});var te={};n.r(te),n.d(te,{default:()=>Hx});var oe={};n.r(oe),n.d(oe,{default:()=>Fx});var ne={};n.r(ne),n.d(ne,{default:()=>qx});var re={};n.r(re),n.d(re,{default:()=>Vx});var ie={};n.r(ie),n.d(ie,{default:()=>Wx});var ae={};n.r(ae),n.d(ae,{default:()=>Ux});var le={};n.r(le),n.d(le,{ar:()=>D,cs_cz:()=>N,de:()=>H,es:()=>F,fa:()=>q,fi:()=>V,fr:()=>W,he:()=>U,hu:()=>Y,id:()=>K,it:()=>G,ja:()=>J,ko:()=>X,mn:()=>Z,nl:()=>Q,no:()=>$,pl:()=>ee,pt_br:()=>te,ru:()=>oe,tr:()=>ne,ua:()=>re,zh_cn:()=>ie,zh_tw:()=>ae});var se={};n.r(se),n.d(se,{default:()=>cO});var ce={};n.r(ce),n.d(ce,{default:()=>uO});var ue={};n.r(ue),n.d(ue,{default:()=>dO});var de={};n.r(de),n.d(de,{default:()=>fO});var fe={};n.r(fe),n.d(fe,{default:()=>pO});var pe={};n.r(pe),n.d(pe,{default:()=>hO});var he={};n.r(he),n.d(he,{default:()=>vO});var ve={};n.r(ve),n.d(ve,{default:()=>gO});var ge={};n.r(ge),n.d(ge,{default:()=>mO});var me={};n.r(me),n.d(me,{default:()=>bO});var be={};n.r(be),n.d(be,{default:()=>yO});var ye={};n.r(ye),n.d(ye,{default:()=>_O});var _e={};n.r(_e),n.d(_e,{default:()=>jO});var je={};n.r(je),n.d(je,{default:()=>wO});var we={};n.r(we),n.d(we,{default:()=>kO});var ke={};n.r(ke),n.d(ke,{default:()=>SO});var Se={};n.r(Se),n.d(Se,{default:()=>xO});var xe={};n.r(xe),n.d(xe,{default:()=>OO});var Oe={};n.r(Oe),n.d(Oe,{default:()=>CO});var Ce={};n.r(Ce),n.d(Ce,{default:()=>zO});var ze={};n.r(ze),n.d(ze,{default:()=>EO});var Ee={};n.r(Ee),n.d(Ee,{default:()=>TO});var Te={};n.r(Te),n.d(Te,{ar:()=>se,cs_cz:()=>ce,de:()=>ue,es:()=>de,fa:()=>fe,fi:()=>pe,fr:()=>he,he:()=>ve,hu:()=>ge,id:()=>me,it:()=>be,ja:()=>ye,ko:()=>_e,mn:()=>je,nl:()=>we,pl:()=>ke,pt_br:()=>Se,ru:()=>xe,tr:()=>Oe,ua:()=>Ce,zh_cn:()=>ze,zh_tw:()=>Ee});var Ie={};n.r(Ie),n.d(Ie,{default:()=>UO});var Pe={};n.r(Pe),n.d(Pe,{default:()=>YO});var Re={};n.r(Re),n.d(Re,{en:()=>Ie,es:()=>Pe});var Ae={};n.r(Ae),n.d(Ae,{default:()=>AC});var Le={};n.r(Le),n.d(Le,{default:()=>LC});var Me={};n.r(Me),n.d(Me,{default:()=>MC});var Be={};n.r(Be),n.d(Be,{default:()=>BC});var De={};n.r(De),n.d(De,{default:()=>DC});var Ne={};n.r(Ne),n.d(Ne,{default:()=>NC});var He={};n.r(He),n.d(He,{default:()=>HC});var Fe={};n.r(Fe),n.d(Fe,{default:()=>FC});var qe={};n.r(qe),n.d(qe,{default:()=>qC});var Ve={};n.r(Ve),n.d(Ve,{default:()=>VC});var We={};n.r(We),n.d(We,{default:()=>WC});var Ue={};n.r(Ue),n.d(Ue,{default:()=>UC});var Ye={};n.r(Ye),n.d(Ye,{default:()=>YC});var Ke={};n.r(Ke),n.d(Ke,{default:()=>KC});var Ge={};n.r(Ge),n.d(Ge,{default:()=>GC});var Je={};n.r(Je),n.d(Je,{default:()=>JC});var Xe={};n.r(Xe),n.d(Xe,{default:()=>XC});var Ze={};n.r(Ze),n.d(Ze,{default:()=>ZC});var Qe={};n.r(Qe),n.d(Qe,{default:()=>QC});var $e={};n.r($e),n.d($e,{default:()=>$C});var et={};n.r(et),n.d(et,{default:()=>ez});var tt={};n.r(tt),n.d(tt,{default:()=>tz});var ot={};n.r(ot),n.d(ot,{default:()=>oz});var nt={};n.r(nt),n.d(nt,{ar:()=>Ae,cs_cz:()=>Le,de:()=>Me,es:()=>Be,fa:()=>De,fi:()=>Ne,fr:()=>He,he:()=>Fe,hu:()=>qe,id:()=>Ve,it:()=>We,ja:()=>Ue,ko:()=>Ye,mn:()=>Ke,nl:()=>Ge,no:()=>Je,pl:()=>Xe,pt_br:()=>Ze,ru:()=>Qe,tr:()=>$e,ua:()=>et,zh_cn:()=>tt,zh_tw:()=>ot});var rt=n(442),it=n.n(rt);function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var lt,st="4.7.9",ct="es2020",ut=!0,dt=!0,ft=!0,pt=!1,ht=!0,vt="https://xdsoft.net/jodit/",gt=function(){return pt=!0},mt={},bt="\ufeff",yt=" ",_t=function(){return/[\uFEFF]/g},jt=function(){return/[\uFEFF]+$/g},wt=function(){return/^[\uFEFF]+/g},kt=function(){return/[\s\n\t\r\uFEFF\u200b]+/g},St=function(){return/^[\s\n\t\r\uFEFF\u200b]+/g},xt=function(){return/[\s\n\t\r\uFEFF\u200b]+$/g},Ot="undefined"!=typeof window?window:void 0,Ct="undefined"!=typeof document?document:void 0,zt=/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|CANVAS|DD|DFN|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[1-6]|HEADER|HGROUP|HR|LI|MAIN|NAV|NOSCRIPT|OUTPUT|P|PRE|RUBY|SCRIPT|STYLE|OBJECT|OL|SECTION|IFRAME|JODIT|JODIT-MEDIA|UL|TR|TD|TH|TBODY|THEAD|TFOOT|TABLE|BODY|HTML|VIDEO)$/i,Et=/^(STRONG|SPAN|I|EM|B|SUP|SUB|A|U)$/i,Tt=new Set(["ul","ol"]),It=["img","video","svg","iframe","script","input","textarea","link","jodit","jodit-media"],Pt=new Set((lt=It,function(e){if(Array.isArray(e))return at(e)}(lt)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(lt)||function(e,t){if(e){if("string"==typeof e)return at(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?at(e,t):void 0}}(lt)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(["br","hr"])),Rt=new Set(It),At="Meta",Lt="Backspace",Mt="Tab",Bt="Enter",Dt="Escape",Nt="Alt",Ht="ArrowLeft",Ft="ArrowUp",qt="ArrowRight",Vt="ArrowDown",Wt="Space",Ut="Delete",Yt="F3",Kt=5,Gt=10,Jt=[At,Lt,Ut,Ft,Vt,qt,Ht,Bt,Dt,Yt,Mt],Xt="br",Zt="p",Qt=1,$t=2,eo=3,to="undefined"!=typeof navigator&&(-1!==navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),oo=to?"text":"text/plain",no=to?"html":"text/html",ro=to?"rtf":"text/rtf",io="jodit-selection_marker",ao=300,lo="insert_as_html",so="insert_clear_html",co="insert_as_text",uo="insert_only_text",fo=10,po=void 0!==Ot&&/Mac|iPod|iPhone|iPad/.test(Ot.navigator.platform),ho={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:po?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:"space",spacebar:"space",up:"arrowup",win:"meta",windows:"meta"},vo=function(e){var t=e.split("/"),o=!1;return/\.js/.test(t[t.length-1])?{basePath:t.slice(0,t.length-1).join("/")+"/",isMin:o}:{basePath:e,isMin:o}},go=function(){if("undefined"==typeof document)return{basePath:"",isMin:Boolean(!1)};var e=Ct.currentScript;if(e)return vo(e.src);var t=Ct.querySelectorAll("script[src]");return t&&t.length?vo(t[t.length-1].src):vo(Ot.location.href)}(),mo=go.basePath,bo=go.isMin,yo=mo,_o=bo,jo="data-jodit-temp",wo={},ko="clipboard",So="source-consumer",xo=new Set(["touchstart","touchend","scroll","mousewheel","mousemove","touchmove"]);function Oo(e){return"function"==typeof e}function Co(e,t,o){if(!Oo(o.value))throw new TypeError('@autobind can only be applied to methods, but "'.concat(t,'" is not a function'));var n=o.value;return{configurable:!0,get:function(){var e=n.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}}var zo={beforeInit:"beforeInit",ready:"ready",beforeDestruct:"beforeDestruct",destructed:"destructed"};function Eo(e){return Boolean(e)&&"function"===(void 0===e?"undefined":(t=e,t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)).toLowerCase()&&(e===Function.prototype||/^\s*function\s*(\b[a-z$_][a-z0-9$_]*\b)*\s*\((|([a-z$_][a-z0-9$_]*)(\s*,[a-z$_][a-z0-9$_]*)*)\)\s*{\s*\[native code]\s*}\s*$/i.test(String(e)));var t}function To(e){return Array.isArray(e)}function Io(e){return"string"==typeof e}function Po(e){return To(e)&&Io(e[0])}function Ro(e){return null==e}function Ao(e,t){if(!Io(e)||!e.length)return null;var o=e.split("."),n=t;try{var r=!0,i=!1,a=void 0;try{for(var l,s=o[Symbol.iterator]();!(r=(l=s.next()).done);r=!0){var c=l.value;if(Ro(n[c]))return null;n=n[c]}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}}catch(e){return null}return Ro(n)?null:n}var Lo={};function Mo(e){var t,o;if(!(e in Lo)){var n=Ct.createElement("iframe");try{if(n.src="about:blank",Ct.body.appendChild(n),!n.contentWindow)return null;var r=Ao(e,n.contentWindow),i=Ao(e.split(".").slice(0,-1).join("."),n.contentWindow);Oo(r)&&(Lo[e]=r.bind(i))}catch(e){if(!ft)throw e}finally{null===(t=n.parentNode)||void 0===t||t.removeChild(n)}}return null!==(o=Lo[e])&&void 0!==o?o:null}var Bo=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var n;return(Eo(Array.from)?Array.from:null!==(n=Mo("Array.from"))&&void 0!==n?n:Array.from).apply(Array,t)};function Do(){var e=!0;try{var t=Ct.createElement("input");t.type="color",t.value="!",e="color"===t.type&&"!"!==t.value}catch(t){e=!1}return e}function No(e){return Boolean(e)&&(t=e,null!=(o=DOMException)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](t):t instanceof o)&&"AbortError"===e.name;var t,o}function Ho(e){return"boolean"==typeof e}function Fo(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function qo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==(void 0===e?"undefined":Fo(e)))return String(e);var o=new Set(t.excludeKeys),n=new WeakMap;return JSON.stringify(e,(function(e,t){if(!o.has(e)){if("object"===(void 0===t?"undefined":Fo(t))&&null!=t){if(n.get(t))return"[refObject]";n.set(t,!0)}return t}}),t.prettify)}function Vo(e,t){return e===t||qo(e)===qo(t)}function Wo(e,t){return e===t}var Uo=function(e){return Io(e)&&/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e.replace(/[\r\n]/g,""))};function Yo(e){return-1!==e.search(/<meta.*?Microsoft Excel\s[\d].*?>/)||-1!==e.search(/<meta.*?Microsoft Word\s[\d].*?>/)||-1!==e.search(/style="[^"]*mso-/)&&-1!==e.search(/<font/)}function Ko(e){return!Ro(e)&&Oo(e.init)}function Go(e){return!Ro(e)&&Oo(e.destruct)}function Jo(e){return!Ro(e)&&ui.isElement(e.container)}function Xo(e){if(Io(e)){if(!e.match(/^([+-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function Zo(e){return Io(e)&&Xo(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}function Qo(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function $o(e){return Boolean(e&&Qo(e,Object)&&Oo(e.constructor)&&("undefined"!=typeof Jodit&&Qo(e,Jodit)||e.isJodit))}var en=function(e){return Io(e)&&23===e.length&&/^[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{5}$/i.test(e)};function tn(e){return ui.isNode(e)&&ui.isTag(e,"span")&&e.hasAttribute("data-"+io)}function on(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function nn(e){return null!=e&&e===e.window}function rn(e){return!(!e||"object"!==(void 0===e?"undefined":function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}(e))||e.nodeType||nn(e)||e.constructor&&!{}.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))}function an(e){return e&&"function"==typeof e.then}function ln(e){return Boolean(e)&&Oo(e.has)&&Oo(e.add)&&Oo(e.delete)}function sn(e){if(e.includes(" "))return!1;if("undefined"!=typeof URL)try{var t=new URL(e);return["https:","http:","ftp:","file:","rtmp:"].includes(t.protocol)}catch(e){return!1}var o=Ct.createElement("a");return o.href=e,Boolean(o.hostname)}function cn(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_. ]/.test(e)&&e.trim().length>0}function un(e){return Boolean(e&&(t=e,null!=(o=Object)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](t):t instanceof o)&&Oo(e.constructor)&&e.isView);var t,o}function dn(e){return e.replace(xt(),"").replace(St(),"")}function fn(e,t){return e.replace(RegExp("[".concat(t,"]+$")),"").replace(RegExp("^[".concat(t,"]+")),"")}function pn(e){return e.replace(jt(),"").replace(wt(),"")}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function vn(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var gn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__map=new Map}var t,o;return t=e,o=[{key:"on",value:function(e,t){var o;return this.__map.has(e)||this.__map.set(e,new Set),null===(o=this.__map.get(e))||void 0===o||o.add(t),this}},{key:"off",value:function(e,t){var o;return this.__map.has(e)&&(null===(o=this.__map.get(e))||void 0===o||o.delete(t)),this}},{key:"destruct",value:function(){this.__map.clear()}},{key:"emit",value:function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];var r,i;return this.__map.has(e)&&(null===(r=this.__map.get(e))||void 0===r||r.forEach((function(e){i=e.apply(void 0,function(e){return function(e){if(Array.isArray(e))return hn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return hn(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?hn(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o))}))),i}}],o&&vn(t.prototype,o),e}();function mn(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bn(e,t,o){return bn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=yn(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},bn(e,t,o||e)}function yn(e){return yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yn(e)}function _n(e,t){return _n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_n(e,t)}function jn(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function wn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wn=function(){return!!e})()}var kn=function(e){function t(e){var o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=yn(t),function(e,t){return!t||"object"!==jn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,wn()?Reflect.construct(t,o||[],yn(e).constructor):t.apply(e,o))}(this,t)).async=e,o.options=n,o.workNodes=null,o.hadAffect=!1,o.isWorked=!1,o.isFinished=!1,o.idleId=0,o.__schedulerController=null,o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_n(e,t)}(t,e),o=t,(n=[{key:"setWork",value:function(e){return this.isWorked&&this.break(),this.workNodes=ui.eachGen(e,!this.options.reverse),this.isFinished=!1,this._requestStarting(),this}},{key:"_requestStarting",value:function(){this.__schedulerController=new AbortController,this.async.schedulerPostTask(this.__workPerform,{delay:this.options.timeout,signal:this.__schedulerController.signal}).catch((function(){return null}))}},{key:"break",value:function(e){this.isWorked&&(this.stop(),this.emit("break",e))}},{key:"end",value:function(){this.isWorked&&(this.stop(),this.emit("end",this.hadAffect),this.hadAffect=!1)}},{key:"stop",value:function(){this.isWorked=!1,this.isFinished=!0,this.workNodes=null,this.async.cancelIdleCallback(this.idleId)}},{key:"destruct",value:function(){bn(yn(t.prototype),"destruct",this).call(this),this.stop()}},{key:"__workPerform",value:function(){var e;if(this.workNodes){this.isWorked=!0;for(var t=0,o=null!==(e=this.options.timeoutChunkSize)&&void 0!==e?e:50;!this.isFinished&&t<=o;){var n=this.workNodes.next();if(t+=1,this.visitNode(n.value)&&(this.hadAffect=!0),n.done)return void this.end()}}else this.end();this.isFinished||this._requestStarting()}},{key:"visitNode",value:function(e){var t;return!(!e||void 0!==this.options.whatToShow&&e.nodeType!==this.options.whatToShow)&&null!==(t=this.emit("visit",e))&&void 0!==t&&t}}])&&mn(o.prototype,n),t}(gn);!function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":jn(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)}([Co],kn.prototype,"__workPerform",null);var Sn=function(e){if("rgba(0, 0, 0, 0)"===e||""===e)return!1;if(!e)return"#000000";if("#"===e.substr(0,1))return e;var t=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!t)return"#000000";for(var o=parseInt(t[2],10),n=parseInt(t[3],10),r=(parseInt(t[4],10)|n<<8|o<<16).toString(16).toUpperCase();r.length<6;)r="0"+r;return t[1]+"#"+r},xn=function(e){return e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase()},On=function(e){return e.replace(/([A-Z])([A-Z])([a-z])/g,"$1-$2$3").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()},Cn=/^(left|top|bottom|right|width|min|max|height|margin|padding|fontsize|font-size)/i;function zn(e,t){return!Ro(t)&&Cn.test(e)&&Xo(t.toString())?parseInt(t.toString(),10)+"px":t}function En(e,t){if("font-weight"===xn(e)){switch(t.toString().toLowerCase()){case"700":case"bold":return 700;case"400":case"normal":return 400;case"900":case"heavy":return 900}return Xo(t)?Number(t):t}return/color/i.test(e)&&/^rgb/i.test(t.toString())&&Sn(t.toString())||t}var Tn=function(e){return e.replace(/([-_])(.)/g,(function(e,t,o){return o.toUpperCase()}))};function In(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(Ho(o)&&(n=o,o=void 0),rn(t)||void 0!==o){var r=function(e,t,o){void 0===(o=zn(t,o))||null!=o&&In(e,t,!0)===En(t,o)||(e.style[t]=o)};if(rn(t))for(var i=Object.keys(t),a=0;a<i.length;a+=1)r(e,Tn(i[a]),t[i[a]]);else r(e,Tn(t),o);return""}var l=xn(t),s=e.ownerDocument||document,c=!!s&&(s.defaultView||s.parentWindow),u=e.style[t],d="";return void 0!==u&&""!==u?d=u:c&&!n&&(d=c.getComputedStyle(e).getPropertyValue(l)),Cn.test(t)&&/^[-+]?[0-9.]+px$/.test(d.toString())&&(d=parseInt(d.toString(),10)),En(t,d)}var Pn=function(e){"block"===In(e,"display")&&In(e,"display","");var t=e.style;"auto"===t.marginLeft&&"auto"===t.marginRight&&(t.marginLeft="",t.marginRight="")};function Rn(e,t){t&&"normal"!==t?"center"!==t?(In(e,"float",t),Pn(e)):In(e,{float:"",display:"block",marginLeft:"auto",marginRight:"auto"}):(In(e,"float")&&-1!==["right","left"].indexOf(In(e,"float").toString().toLowerCase())&&In(e,"float",""),Pn(e))}function An(e){ui.each(e,(function(e){ui.isHTMLElement(e)&&e.style.textAlign&&(e.style.textAlign="",e.style.cssText.trim().length||e.removeAttribute("style"))}))}function Ln(e,t){if(ui.isNode(t)&&ui.isElement(t))switch(An(t),e.toLowerCase()){case"justifyfull":t.style.textAlign="justify";break;case"justifyright":t.style.textAlign="right";break;case"justifyleft":t.style.textAlign="left";break;case"justifycenter":t.style.textAlign="center"}}var Mn=function(e){return"file:"===Ot.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e},Bn=new Map,Dn=function(e){return function(t,o){if(Bn.has(o))return Bn.get(o);var n=e(t,o);return Bn.set(o,n),n}},Nn=Dn((function(e,t){return e.async.promise((function(o,n){if(e.isInDestruct)return n();var r=e.c.element("script",{type:"text/javascript",crossorigin:"anonymous",referrerpolicy:"no-referrer",async:!0,src:Mn(t)});e.e.one(r,"error",n).one(r,"load",o),e.od.body.appendChild(r)}))})),Hn=Dn((function(e,t){return e.async.promise((function(o,n){if(e.isInDestruct)return n();var r=e.c.element("link");r.rel="stylesheet",r.media="all",r.crossOrigin="anonymous",!e.isInDestruct&&e.e.on(r,"load",(function(){return o(r)})).on(r,"error",n),r.href=Mn(t),e.o.shadowRoot?e.o.shadowRoot.appendChild(r):e.od.body.appendChild(r)}))}));function Fn(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Io(t[o])?Nn(e,t[o]).then((function(){return Fn(e,t,o+1)})):Promise.resolve()}function qn(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Io(t[o])?Hn(e,t[o]).then((function(){return qn(e,t,o+1)})):Promise.resolve()}function Vn(e,t,o){return Vn=Kn()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Un(r,o.prototype),r},Vn.apply(null,arguments)}function Wn(e){return Wn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wn(e)}function Un(e,t){return Un=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Un(e,t)}function Yn(e){var t="function"==typeof Map?new Map:void 0;return Yn=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Vn(e,arguments,Wn(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Un(n,e)},Yn(e)}function Kn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kn=function(){return!!e})()}var Gn=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Wn(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,Kn()?Reflect.construct(t,o||[],Wn(e).constructor):t.apply(e,o))}(this,t,[e])).name="AssertionError",o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Un(e,t)}(t,e),t}(Yn(Error));function Jn(e,t){if(!e)throw new Gn("Assertion failed: ".concat(t))}function Xn(e,t,o){if(!e||!Oo(e.getAttribute))return null;if(!Io(t))return Object.keys(t).forEach((function(o){var n=t[o];rn(n)&&"style"===o?In(e,n):("className"===o&&(o="class"),Xn(e,o,n))})),null;var n=On(t);if(/^-/.test(n)){var r=Xn(e,"data".concat(n));if(r)return r;n=n.substr(1)}if(void 0!==o){if(null!=o){var i=o.toString();return"IMG"!==e.nodeName||"width"!==n&&"height"!==n||(i=i.replace("px","")),e.setAttribute(n,i),i}e.hasAttribute(n)&&e.removeAttribute(n)}return e.getAttribute(n)}var Zn=function(e){var t=navigator.userAgent.toLowerCase(),o=/(firefox)[\s/]([\w.]+)/.exec(t)||/(chrome)[\s/]([\w.]+)/.exec(t)||/(webkit)[\s/]([\w.]+)/.exec(t)||/(opera)(?:.*version)[\s/]([\w.]+)/.exec(t)||/(msie)[\s]([\w.]+)/.exec(t)||/(trident)\/([\w.]+)/.exec(t)||t.indexOf("compatible")<0||[];return"version"===e?o[2]:"webkit"===e?"chrome"===o[1]||"webkit"===o[1]:"ff"===e?"firefox"===o[1]:"msie"===e?"trident"===o[1]||"msie"===o[1]:o[1]===e},Qn=function(e,t){var o=[],n=encodeURIComponent;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=t?t+"["+r+"]":r,a=e[r];o.push(rn(a)?Qn(a,i):n(i)+"="+n(a))}return o.join("&")};function $n(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var er={},tr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache=!0,this.defaultTimeout=100,this.namespace="",this.safeMode=!1,this.width="auto",this.height="auto",this.safePluginsList=["about","enter","backspace","size","bold","hotkeys"],this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,toolbarInlineForSelection:!0,showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument=Ct,this.ownerWindow=Ot,this.shadowRoot=null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.allowCommandsInReadOnly=["selectall","preview","print"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.editorClassName=!1,this.className=!1,this.style=!1,this.containerStyle=!1,this.styleValues={},this.triggerChangeEvent=!0,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n=!1,this.tabIndex=-1,this.toolbar=!0,this.statusbar=!0,this.showTooltip=!0,this.showTooltipDelay=200,this.useNativeTooltip=!1,this.defaultActionOnPaste=lo,this.enter=Zt,this.iframe=!1,this.editHTMLDocumentMode=!1,this.enterBlock="br"!==this.enter?this.enter:Zt,this.defaultMode=Qt,this.useSplitMode=!1,this.colors={greyscale:["#000000","#434343","#666666","#999999","#B7B7B7","#CCCCCC","#D9D9D9","#EFEFEF","#F3F3F3","#FFFFFF"],palette:["#980000","#FF0000","#FF9900","#FFFF00","#00F0F0","#00FFFF","#4A86E8","#0000FF","#9900FF","#FF00FF"],full:["#E6B8AF","#F4CCCC","#FCE5CD","#FFF2CC","#D9EAD3","#D0E0E3","#C9DAF8","#CFE2F3","#D9D2E9","#EAD1DC","#DD7E6B","#EA9999","#F9CB9C","#FFE599","#B6D7A8","#A2C4C9","#A4C2F4","#9FC5E8","#B4A7D6","#D5A6BD","#CC4125","#E06666","#F6B26B","#FFD966","#93C47D","#76A5AF","#6D9EEB","#6FA8DC","#8E7CC3","#C27BA0","#A61C00","#CC0000","#E69138","#F1C232","#6AA84F","#45818E","#3C78D8","#3D85C6","#674EA7","#A64D79","#85200C","#990000","#B45F06","#BF9000","#38761D","#134F5C","#1155CC","#0B5394","#351C75","#733554","#5B0F00","#660000","#783F04","#7F6000","#274E13","#0C343D","#1C4587","#073763","#20124D","#4C1130"]},this.colorPickerDefaultTab="background",this.imageDefaultWidth=300,this.removeButtons=[],this.disablePlugins=[],this.extraPlugins=[],this.extraButtons=[],this.extraIcons={},this.createAttributes={table:{style:"border-collapse:collapse;width: 100%;"}},this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"script",buttons:[]},{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"clipboard",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},{group:"form",buttons:[]},"---",{group:"history",buttons:[]},{group:"search",buttons:[]},{group:"source",buttons:[]},{group:"other",buttons:[]},{group:"info",buttons:[]}],this.events={},this.textIcons=!1,this.popupRoot=null,this.showBrowserColorPicker=!0,Object.assign(this,er)}var t,o;return t=e,o=[{key:"defaultOptions",get:function(){return e.__defaultOptions||(e.__defaultOptions=new e),e.__defaultOptions}}],null&&$n(t.prototype,null),o&&$n(t,o),e}();function or(e){return e&&e.isAtom}function nr(e){return Object.defineProperty(e,"isAtom",{enumerable:!1,value:!0,configurable:!1}),e}function rr(e){return JSON.parse(qo(e))}er=tr.prototype,tr.prototype.controls={};var ir=new WeakMap,ar=function(e,t,o){var n=ir.get(e);if(!n){n={},ir.set(e,n);var r=null;un(e.j)&&(r=e.j.e),un(e)&&(r=e.e),r&&r.on("beforeDestruct",(function(){ir.delete(e)}))}return void 0===o?n[t]:(n[t]=o,o)};function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function sr(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];return e.apply(void 0,function(e){return function(e){if(Array.isArray(e))return lr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lr(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?lr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o))}function cr(e,t){Xn(t,"data-editor_id",e.id),!t.component&&Object.defineProperty(t,"jodit",{value:e})}function ur(e,t){return an(e)?e.then((function(e){return e}),(function(){return null})).finally(t):null==t?void 0:t()}var dr=function(e,t){return t.async.promise((function(o,n){var r=new Image,i=function(){t.e.off(r),null==n||n()},a=function(){t.e.off(r),o(r)};t.e.one(r,"load",a).one(r,"error",i).one(r,"abort",i),r.src=e,r.complete&&a()}))},fr=function(e){if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])return Object.keys(e);var t=[];for(var o in e)t.push(o);return t},pr=function(e,t,o,n){var r,i=o.control,a="button".concat(i.command),l=null!==(r=i.args&&i.args[0])&&void 0!==r?r:ar(e,a);if(Ro(l))return!1;ar(e,a,l),n&&(l=n(l)),e.execCommand(i.command,!1,null!=l?l:void 0)},hr=function(e){if(e.clipboardData)return e.clipboardData;try{return e.dataTransfer||new DataTransfer}catch(e){return null}};function vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function gr(e){return function(e){if(Array.isArray(e))return vr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return vr(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?vr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mr(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(Object.getPrototypeOf(e)!==Object.prototype)return e;var n=tr.defaultOptions;if(Io(e.preset)){if(void 0!==n.presets[e.preset]){var r=n.presets[e.preset];Object.keys(r).forEach((function(t){Ro(e[t])&&(e[t]=r[t])}))}delete e.preset}var i={};return Object.keys(e).forEach((function(n){var r=e[n],a=t?t[n]:null;rn(r)&&rn(a)&&!or(r)?i[n]=mr(r,a,o+1):0!==o&&To(r)&&!or(r)&&To(a)?i[n]=gr(r).concat(gr(a.slice(r.length))):i[n]=r})),Object.setPrototypeOf(i,t),i}function br(e){return fr(e,!1).reduce((function(t,o){return t[o]=e[o],t}),{})}function yr(e){return fr(e,!1).reduce((function(t,o){return t[o]=rn(e[o])?yr(e[o]):e[o],t}),{})}var _r=function(e){for(var t={},o=e.substring(1).split("&"),n=0;n<o.length;n+=1){var r=o[n].split("=");t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]||"")}return t},jr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=t.width,n=void 0===o?400:o,r=t.height,i=void 0===r?345:r;if(!sn(e))return e;var a=Ct.createElement("a"),l=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;a.href=e,n||(n=400),i||(i=345);var s=a.protocol||"";switch(a.hostname){case"www.vimeo.com":case"vimeo.com":return l.test(e)?e.replace(l,'<iframe width="'+n+'" height="'+i+'" src="'+s+'//player.vimeo.com/video/$1" frameborder="0" allowfullscreen></iframe>'):e;case"youtube.com":case"www.youtube.com":case"youtu.be":case"www.youtu.be":var c=a.search?_r(a.search):{v:a.pathname.substring(1)};return/^embed\/.*/.test(c.v)&&(c.v=c.v.substring(6)),c.v?'<iframe width="'+n+'" height="'+i+'" src="'+s+"//www.youtube.com/embed/"+c.v+'" frameborder="0" allowfullscreen></iframe>':e}return e},wr=function(e){if("undefined"!=typeof navigator&&-1!==navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1},kr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return"auto"!==e&&Io(e)?e:Ct.documentElement&&Ct.documentElement.lang?Ct.documentElement.lang:navigator.language?navigator.language.substring(0,2):t};function Sr(){return new DOMException(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Aborted","AbortError")}var xr=No;function Or(e,t,o){return Or=Tr()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&zr(r,o.prototype),r},Or.apply(null,arguments)}function Cr(e){return Cr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cr(e)}function zr(e,t){return zr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zr(e,t)}function Er(e){var t="function"==typeof Map?new Map:void 0;return Er=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Or(e,arguments,Cr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),zr(n,e)},Er(e)}function Tr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tr=function(){return!!e})()}var Ir=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t,o){return t=Cr(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,Tr()?Reflect.construct(t,o||[],Cr(e).constructor):t.apply(e,o))}(this,t,[e]),Object.setPrototypeOf(o,t.prototype),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zr(e,t)}(t,e),t}(Er(Error));function Pr(e,t,o){return Pr=Mr()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Ar(r,o.prototype),r},Pr.apply(null,arguments)}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rr(e)}function Ar(e,t){return Ar=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ar(e,t)}function Lr(e){var t="function"==typeof Map?new Map:void 0;return Lr=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Pr(e,arguments,Rr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ar(n,e)},Lr(e)}function Mr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mr=function(){return!!e})()}var Br=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t,o){return t=Rr(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,Mr()?Reflect.construct(t,o||[],Rr(e).constructor):t.apply(e,o))}(this,t,[e]),Object.setPrototypeOf(o,t.prototype),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ar(e,t)}(t,e),t}(Lr(TypeError));function Dr(e){return new TypeError(e)}function Nr(e){return new Ir(e)}function Hr(e){return new Br(e)}var Fr=new Map,qr=function(e){var t;if(Oo(e.className))return e.className();var o=(null===(t=e.constructor)||void 0===t?void 0:t.originalConstructor)||e.constructor;if(Fr.has(o))return Fr.get(o);if(o.name)return o.name;var n=new RegExp(/^\s*function\s*(\S*)\s*\(/),r=o.toString().match(n);return r?r[1]:""},Vr=function(e){if(/^[0-9.]+$/.test(e.toString()))return parseFloat(e);var t=e.substr(-2,2).toUpperCase(),o=["KB","MB","GB","TB"],n=parseFloat(e.substr(0,e.length-2));return-1!==o.indexOf(t)?n*Math.pow(1024,o.indexOf(t)+1):parseInt(e,10)};function Wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var Ur=console;function Yr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a;return Ur.warn('Method "'.concat(t[0],'" deprecated.')+(t[1]?' Use "'.concat(t[1],'" instead'):"")),(a=e).call.apply(a,[o].concat(function(e){return function(e){if(Array.isArray(e))return Wr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Wr(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Wr(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r)))}}var Kr=1,Gr=function(){return++Kr};function Jr(e,t){var o;if(dt||!/:scope/.test(e)||!to||t&&t.nodeType===Node.DOCUMENT_NODE)o=t.querySelectorAll(e);else{var n=t.id,r=n||"_selector_id_"+String(Math.random()).slice(2)+Gr();e=e.replace(/:scope/g,"#"+r),!n&&t.setAttribute("id",r),o=t.parentNode.querySelectorAll(e),n||t.removeAttribute("id")}return[].slice.call(o)}var Xr=function(e,t){if(!e||e.nodeType!==Node.ELEMENT_NODE)return"";if(!e.parentNode||t===e)return"";if(e.id)return"//*[@id='"+e.id+"']";var o=[].filter.call(e.parentNode.childNodes,(function(t){return t.nodeName===e.nodeName}));return Xr(e.parentNode,t)+"/"+e.nodeName.toLowerCase()+(o.length>1?"["+(Bo(o).indexOf(e)+1)+"]":"")},Zr=function(e){return"container"in e&&(e=e.container),Jr("[ref],[data-ref]",e).reduce((function(e,t){var o=Xn(t,"-ref");return o&&Io(o)&&(e[Tn(o)]=t,e[o]=t),e}),{})},Qr=function(e){if(!ui.isElement(e))return null;for(var t=[],o=e;o&&o.nodeType===Node.ELEMENT_NODE;){var n=o.nodeName.toLowerCase();if(o.id){n+="#"+o.id,t.unshift(n);break}var r=o,i=1;do{(r=r.previousElementSibling)&&r.nodeName.toLowerCase()===n&&i++}while(r);n+=":nth-of-type("+i+")",t.unshift(n),o=o.parentNode}return t.join(" > ")};function $r(e,t){var o,n=e;if(Io(e))try{n=t.querySelector(e)}catch(t){throw Dr('String "'+e+'" should be valid HTML selector')}if(!n||"object"!=(void 0===n?"undefined":(o=n)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)||!ui.isElement(n)||!n.cloneNode)throw Dr('Element "'+e+'" should be string or HTMLElement instance');return n}function ei(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"px",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=[],i=function(e,t){var o=[];try{Jr("img",e.editor).forEach((function(n){var r=[Xn(n,"width"),Xn(n,"height"),n.src];Xn(n,{width:n.offsetWidth+t,height:n.offsetHeight+t});var i=e.createInside.a();e.ed.body.appendChild(i),i.href=n.src,n.src=i.href,ui.safeRemove(i),o.push((function(){var e;n.src=null!==(e=r[2])&&void 0!==e?e:"",Xn(n,{width:r[0]||null,height:r[1]||null})}))}))}catch(e){throw o.forEach((function(e){return e()})),o.length=0,e}return o}(e,o);try{var a=e.e.fire("beforePreviewBox",t,o);if(null!=a)return a;var l=e.c.div("jodit__preview-box jodit-context");n&&n.appendChild(l),In(l,{position:"relative",padding:16});var s=e.value||"<div style='position: absolute;left:50%;top:50%;transform: translateX(-50%) translateY(-50%);color:#ccc;'>".concat(e.i18n("Empty"),"</div>");if(e.iframe){var c=e.create.element("iframe");In(c,{minWidth:800,minHeight:600,border:0}),l.appendChild(c);var u=c.contentWindow;if(u&&(e.e.fire("generateDocumentStructure.iframe",u.document,e),l=u.document.body,"function"==typeof ResizeObserver)){var d=!1,f=u.document.body,p=new ResizeObserver(e.async.debounce((function(){p.unobserve(f),c.style.height="".concat(f.offsetHeight+20,"px"),e.async.requestAnimationFrame((function(){!d&&p.observe(f)}))}),100)),h=function(){d=!0,p.unobserve(f),p.disconnect(),e.e.off("beforeDestruct",h)};r.push(h),e.e.on("beforeDestruct",h)}}else In(l,{minWidth:1024,minHeight:600,border:0});var v=function(t,o){var n=Io(o)?e.c.div():o;Io(o)&&(n.innerHTML=o);for(var r=0;r<n.childNodes.length;r+=1){var i=n.childNodes[r];if(ui.isElement(i)){for(var a=t.ownerDocument.createElement(i.nodeName),l=0;l<i.attributes.length;l+=1)Xn(a,i.attributes[l].nodeName,i.attributes[l].nodeValue);0===i.childNodes.length||ui.isTag(i,"table")?"SCRIPT"===i.nodeName?i.textContent&&(a.textContent=i.textContent):i.innerHTML&&(a.innerHTML=i.innerHTML):v(a,i);try{t.appendChild(a)}catch(e){}}else try{t.appendChild(i.cloneNode(!0))}catch(e){}}};return v(l,s),e.e.fire("afterPreviewBox",l),[l,function(){r.forEach((function(e){return e()}))}]}finally{i.forEach((function(e){return e()}))}}function ti(e,t,o){for(var n=e.getBoundingClientRect(),r=e,i=n.top,a=n.height;r&&r!==t&&r.parentNode;){if(!(i<=(n=(r=r.parentNode).getBoundingClientRect()).bottom))return!1;if(i+a<=n.top)return!1}return i<=(o.documentElement&&o.documentElement.clientHeight||0)}function oi(e,t,o){ui.isHTMLElement(e)&&!ti(e,t,o)&&(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),ti(e,t,o)||e.scrollIntoView())}function ni(e,t,o){if(Io(e)&&e.length){for(var n=e.split("."),r=o,i=n[0],a=0;a<n.length-1;a+=1)To(r[i=n[a]])||rn(r[i])||(r[i]=Xo(n[a+1])?[]:{}),r=r[i];r&&(r[n[n.length-1]]=t)}}function ri(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ii=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.limit=t,this.stack=[]}var t,o;return t=e,(o=[{key:"push",value:function(e){return this.stack.push(e),this.stack.length>this.limit&&this.stack.shift(),this}},{key:"pop",value:function(){return this.stack.pop()}},{key:"find",value:function(e){return this.stack.find(e)}}])&&ri(t.prototype,o),e}();function ai(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function li(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function si(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}function ci(e){var t="function"==typeof Symbol&&Symbol.iterator,o=t&&e[t],n=0;if(o)return o.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var ui=function(){function e(){throw function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),new Error("Dom is static module")}var t,o;return t=e,o=[{key:"detach",value:function(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}},{key:"wrapNextInline",value:function(t,o,n){var r,i=t,a=t;n.s.save();var l=!1;do{l=!1,!(r=a.nextSibling)||e.isBlock(r)||e.isTag(r,"br")||(l=!0,a=r)}while(l);return e.__wrapElements(o,n,i,a)}},{key:"__wrapElements",value:function(e,t,o,n){var r=Io(e)?t.createInside.element(e):e;o.parentNode&&o.parentNode.insertBefore(r,o);for(var i=o;i&&(i=o.nextSibling,r.appendChild(o),o!==n&&i);)o=i;return t.s.restore(),r}},{key:"wrapInline",value:function(t,o,n){var r,i=t,a=t;n.s.save();var l=!1;do{l=!1,(r=i.previousSibling)&&!e.isBlock(r)&&(l=!0,i=r)}while(l);do{l=!1,(r=a.nextSibling)&&!e.isBlock(r)&&(l=!0,a=r)}while(l);return e.__wrapElements(o,n,i,a)}},{key:"wrap",value:function(t,o,n){var r=Io(o)?n.element(o):o;if(e.isNode(t)){if(!t.parentNode)throw Dr("Element should be in DOM");t.parentNode.insertBefore(r,t),r.appendChild(t)}else{var i=t.extractContents();t.insertNode(r),r.appendChild(i)}return r}},{key:"unwrap",value:function(t){var o=t.parentNode;if(o){for(;t.firstChild;)o.insertBefore(t.firstChild,t);e.safeRemove(t)}}},{key:"between",value:function(e,t,o){for(var n=e;n&&n!==t&&(e===n||!o(n));){var r=n.firstChild||n.nextSibling;if(!r){for(;n&&!n.nextSibling;)n=n.parentNode;r=null==n?void 0:n.nextSibling}n=r}}},{key:"replace",value:function(t,o,n){var r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(Uo(o)&&(Jn(n,"Need create instance for new tag"),o=n.fromHTML(o)),Io(o)?(Jn(n,"Need create instance for new tag"),r=n.element(o)):r=o,!a)for(;t.firstChild;)r.appendChild(t.firstChild);return i&&e.isElement(t)&&e.isElement(r)&&Bo(t.attributes).forEach((function(e){r.setAttribute(e.name,e.value)})),t.parentNode&&t.parentNode.replaceChild(r,t),r}},{key:"isEmptyTextNode",value:function(t){return e.isText(t)&&(!t.nodeValue||0===t.nodeValue.replace(_t(),"").trim().length)}},{key:"isEmptyContent",value:function(t){return e.each(t,(function(t){return e.isEmptyTextNode(t)}))}},{key:"isContentEditable",value:function(t,o){return e.isNode(t)&&!e.closest(t,(function(t){return e.isElement(t)&&"false"===t.getAttribute("contenteditable")}),o)}},{key:"isEmpty",value:function(t){var o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rt;if(!t)return!0;o=Oo(n)?n:function(e){return n.has(e.nodeName.toLowerCase())};var r=function(e){return null==e.nodeValue||0===dn(e.nodeValue).length};return e.isText(t)?r(t):!(e.isElement(t)&&o(t))&&e.each(t,(function(t){if(e.isText(t)&&!r(t)||e.isElement(t)&&o(t))return!1}))}},{key:"isNode",value:function(e){return Boolean(e&&Io(e.nodeName)&&"number"==typeof e.nodeType&&e.childNodes&&Oo(e.appendChild))}},{key:"isCell",value:function(t){return e.isNode(t)&&("TD"===t.nodeName||"TH"===t.nodeName)}},{key:"isList",value:function(t){return e.isTag(t,Tt)}},{key:"isLeaf",value:function(t){return e.isTag(t,"li")}},{key:"isImage",value:function(t){return e.isNode(t)&&/^(img|svg|picture|canvas)$/i.test(t.nodeName)}},{key:"isBlock",value:function(t){return!Ro(t)&&"object"==(void 0===t?"undefined":(o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&e.isNode(t)&&zt.test(t.nodeName);var o}},{key:"isText",value:function(e){return Boolean(e&&e.nodeType===Node.TEXT_NODE)}},{key:"isComment",value:function(e){return Boolean(e&&e.nodeType===Node.COMMENT_NODE)}},{key:"isElement",value:function(t){var o;if(!e.isNode(t))return!1;var n=null===(o=t.ownerDocument)||void 0===o?void 0:o.defaultView;return Boolean(n&&t.nodeType===Node.ELEMENT_NODE)}},{key:"isFragment",value:function(t){var o;if(!e.isNode(t))return!1;var n=null===(o=t.ownerDocument)||void 0===o?void 0:o.defaultView;return Boolean(n&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)}},{key:"isHTMLElement",value:function(t){var o;if(!e.isNode(t))return!1;var n=null===(o=t.ownerDocument)||void 0===o?void 0:o.defaultView;return Boolean(n&&li(t,n.HTMLElement))}},{key:"isInlineBlock",value:function(t){return e.isElement(t)&&!/^(BR|HR)$/i.test(t.tagName)&&-1!==["inline","inline-block"].indexOf(In(t,"display").toString())}},{key:"canSplitBlock",value:function(t){return!Ro(t)&&e.isHTMLElement(t)&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&void 0!==t.style&&!/^(fixed|absolute)/i.test(t.style.position)}},{key:"last",value:function(e,t){var o=null==e?void 0:e.lastChild;if(!o)return null;do{if(t(o))return o;var n=o.lastChild;if(n||(n=o.previousSibling),!n&&o.parentNode!==e){do{o=o.parentNode}while(o&&!(null==o?void 0:o.previousSibling)&&o.parentNode!==e);n=null==o?void 0:o.previousSibling}o=n}while(o);return null}},{key:"prev",value:function(t,o,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return e.find(t,o,n,!1,r)}},{key:"next",value:function(t,o,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return e.find(t,o,n,!0,r)}},{key:"prevWithClass",value:function(t,o){return e.prev(t,(function(t){return e.isElement(t)&&t.classList.contains(o)}),t.parentNode)}},{key:"nextWithClass",value:function(t,o){return e.next(t,(function(t){return e.isElement(t)&&t.classList.contains(o)}),t.parentNode)}},{key:"find",value:function(e,t,o){for(var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=this.nextGen(e,o,n,r),a=i.next();!a.done;){if(t(a.value))return a.value;a=i.next()}return null}},{key:"nextGen",value:function(e,t){var o,n,r,i,a,l=arguments;return si(this,(function(s){switch(s.label){case 0:o=!(l.length>2&&void 0!==l[2])||l[2],n=!(l.length>3&&void 0!==l[3])||l[3],r=[],i=e,s.label=1;case 1:for(a=o?i.nextSibling:i.previousSibling;a;)r.unshift(a),a=o?a.nextSibling:a.previousSibling;return[5,ci(this.runInStack(e,r,o,n))];case 2:s.sent(),i=i.parentNode,s.label=3;case 3:if(i&&i!==t)return[3,1];s.label=4;case 4:return[2,null]}}))}},{key:"each",value:function(e,t){for(var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.eachGen(e,o),r=n.next();!r.done;){if(!1===t(r.value))return!1;r=n.next()}return!0}},{key:"eachGen",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.runInStack(e,[e],t)}},{key:"runInStack",value:function(e,t,o){var n,r,i,a=arguments;return si(this,(function(l){switch(l.label){case 0:n=!(a.length>3&&void 0!==a[3])||a[3],l.label=1;case 1:if(!t.length)return[3,4];if(r=t.pop(),n)for(i=o?r.lastChild:r.firstChild;i;)t.push(i),i=o?i.previousSibling:i.nextSibling;return e===r?[3,3]:[4,r];case 2:l.sent(),l.label=3;case 3:return[3,1];case 4:return[2]}}))}},{key:"findWithCurrent",value:function(t,o,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"nextSibling",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"firstChild",a=t;do{if(o(a))return a||null;if(i&&a&&a[i]){var l=e.findWithCurrent(a[i],o,a,r,i);if(l)return l}for(;a&&!a[r]&&a!==n;)a=a.parentNode;a&&a[r]&&a!==n&&(a=a[r])}while(a&&a!==n);return null}},{key:"findSibling",value:function(t){for(var o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return!e.isEmptyTextNode(t)},r=e.sibling(t,o);r&&!n(r);)r=e.sibling(r,o);return r&&n(r)?r:null}},{key:"findNotEmptySibling",value:function(t,o){return e.findSibling(t,o,(function(t){var o;return!e.isEmptyTextNode(t)&&Boolean(!e.isText(t)||(null===(o=t.nodeValue)||void 0===o?void 0:o.length)&&dn(t.nodeValue))}))}},{key:"findNotEmptyNeighbor",value:function(t,o,n){return sr(o?e.prev:e.next,t,(function(t){return Boolean(t&&(!(e.isText(t)||e.isComment(t))||dn((null==t?void 0:t.nodeValue)||"").length))}),n)}},{key:"sibling",value:function(e,t){return t?e.previousSibling:e.nextSibling}},{key:"up",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e;if(!r)return null;do{if(t(r))return r;if(r===o||!r.parentNode)break;r=r.parentNode}while(r&&r!==o);return r===o&&n&&t(r)?r:null}},{key:"closest",value:function(t,o,n){var r,i=function(e){return e.toLowerCase()};if(Oo(o))r=o;else if(To(o)||ln(o)){var a=ln(o)?o:new Set(o.map(i));r=function(e){return Boolean(e&&a.has(i(e.nodeName)))}}else r=function(e){return Boolean(e&&i(o)===i(e.nodeName))};return e.up(t,r,n)}},{key:"furthest",value:function(e,t,o){for(var n=null,r=null==e?void 0:e.parentElement;r&&r!==o;)t(r)&&(n=r),r=null==r?void 0:r.parentElement;return n}},{key:"appendChildFirst",value:function(e,t){var o=e.firstChild;o?o!==t&&e.insertBefore(t,o):e.appendChild(t)}},{key:"after",value:function(e,t){var o=e.parentNode;o&&(o.lastChild===e?o.appendChild(t):o.insertBefore(t,e.nextSibling))}},{key:"before",value:function(e,t){var o=e.parentNode;o&&o.insertBefore(t,e)}},{key:"prepend",value:function(e,t){e.insertBefore(t,e.firstChild)}},{key:"append",value:function(e,t){var o=this;To(t)?t.forEach((function(t){o.append(e,t)})):e.appendChild(t)}},{key:"moveContent",value:function(t,o){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){return!0},i=(t.ownerDocument||Ct).createDocumentFragment();Bo(t.childNodes).filter((function(t){return!!r(t)||(e.safeRemove(t),!1)})).forEach((function(e){i.appendChild(e)})),n&&o.firstChild?o.insertBefore(i,o.firstChild):o.appendChild(i)}},{key:"isOrContains",value:function(e,t){return e===t?!(arguments.length>2&&void 0!==arguments[2]&&arguments[2]):Boolean(t&&e&&this.up(t,(function(t){return t===e}),e,!0))}},{key:"safeRemove",value:function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];o.forEach((function(t){return e.isNode(t)&&t.parentNode&&t.parentNode.removeChild(t)}))}},{key:"safeInsertNode",value:function(t,o){t.collapsed||t.deleteContents();var n=e.isFragment(o)?o.lastChild:o;t.startContainer===t.endContainer&&t.collapsed&&e.isTag(t.startContainer,Pt)?e.after(t.startContainer,o):(t.insertNode(o),n&&t.setStartBefore(n)),t.collapse(!0),[o.nextSibling,o.previousSibling].forEach((function(t){return e.isText(t)&&!t.nodeValue&&e.safeRemove(t)}))}},{key:"hide",value:function(e){e&&(ar(e,"__old_display",e.style.display),e.style.display="none")}},{key:"show",value:function(e){if(e){var t=ar(e,"__old_display");"none"===e.style.display&&(e.style.display=t||"")}}},{key:"isTag",value:function(e,t){if(!this.isElement(e))return!1;var o=e.tagName.toLowerCase(),n=e.tagName.toUpperCase();if(li(t,Set))return t.has(o)||t.has(n);if(Array.isArray(t))throw new TypeError("Dom.isTag does not support array");return o===t||n===t}},{key:"markTemporary",value:function(e,t){return t&&Xn(e,t),Xn(e,jo,!0),e}},{key:"isTemporary",value:function(t){return!!e.isElement(t)&&(tn(t)||"true"===Xn(t,jo))}},{key:"replaceTemporaryFromString",value:function(e){return e.replace(/<([a-z]+)[^>]+data-jodit-temp[^>]+>(.+?)<\/\1>/gi,"$2")}},{key:"temporaryList",value:function(e){return Jr("[".concat(jo,"]"),e)}}],null&&ai(t.prototype,null),o&&ai(t,o),e}();function di(e,t){var o=Object.getOwnPropertyDescriptor(e,t);return!o||Oo(o.get)?null:o.value}function fi(e,t,o){var n=o.get;if(!n)throw Dr("Getter property descriptor expected");o.get=function(){ft||this.isInDestruct&&console.error("Trying to access property in destructed component");var e=n.call(this);return e&&!0===e.noCache||Object.defineProperty(this,t,{configurable:o.configurable,enumerable:o.enumerable,writable:!1,value:e}),e}}function pi(e,t,o){var n=o.value;if(!Oo(n))throw Dr("Handler must be a Function");var r=!0,i=new WeakMap;o.value=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var a;if(r&&i.has(this.constructor))return null===(a=i.get(this.constructor))||void 0===a?void 0:a.cloneNode(!0);var l=n.apply(this,t);return r&&ui.isElement(l)&&i.set(this.constructor,l),r?l.cloneNode(!0):l},e.hookStatus(zo.ready,(function(e){var t=un(e)?e:e.jodit;r=Boolean(t.options.cache)}))}function hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function vi(e){return vi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vi(e)}function gi(e,t){return gi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gi(e,t)}function mi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mi=function(){return!!e})()}function bi(e){var t=function(e){function t(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];var r,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,o){return t=vi(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,mi()?Reflect.construct(t,o||[],vi(e).constructor):t.apply(e,o))}(this,t,function(e){return function(e){if(Array.isArray(e))return hi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return hi(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?hi(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o))).constructor===t&&(i=r,(null!=(a=t)&&"undefined"!=typeof Symbol&&a[Symbol.hasInstance]?a[Symbol.hasInstance](i):i instanceof a)||Object.setPrototypeOf(r,t.prototype),r.setStatus("ready")),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gi(e,t)}(t,e),t}(e);return t}function yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function _i(e){return function(e){if(Array.isArray(e))return yi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yi(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?yi(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ji(e,t){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];var i,a;return t?(i=Ot).setTimeout.apply(i,[e,t].concat(_i(n))):((a=e).call.apply(a,[null].concat(_i(n))),0)}function wi(e){Ot.clearTimeout(e)}function ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Si(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xi(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Oi(e){return function(e){if(Array.isArray(e))return ki(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ki(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ki(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ci=function(){function e(){var t,o,n,r,i,a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.timers=new Map,this.__callbacks=new Map,this.__queueMicrotaskNative=null!==(t=null===queueMicrotask||void 0===queueMicrotask?void 0:queueMicrotask.bind(window))&&void 0!==t?t:Promise.resolve().then.bind(Promise.resolve()),this.promisesRejections=new Set,this.__requestsIdle=new Set,this.__controllers=new Set,this.__requestsRaf=new Set,this.__requestIdleCallbackNative=null!==(n=null===(o=window.requestIdleCallback)||void 0===o?void 0:o.bind(window))&&void 0!==n?n:function(e,t){var o,n=Date.now();return a.setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-n))}})}),null!==(o=null==t?void 0:t.timeout)&&void 0!==o?o:1)},this.__cancelIdleCallbackNative=null!==(i=null===(r=window.cancelIdleCallback)||void 0===r?void 0:r.bind(window))&&void 0!==i?i:function(e){a.clearTimeout(e)},this.isDestructed=!1}var t,o;return t=e,o=[{key:"delay",value:function(e){var t=this;return this.promise((function(o){return t.setTimeout(o,e)}))}},{key:"setTimeout",value:function(e,t){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];if(this.isDestructed)return 0;var i={};Ro(t)&&(t=0),on(t)||(t=(i=t).timeout||0),i.label&&this.clearLabel(i.label);var a=ji.apply(void 0,[e,t].concat(Oi(n))),l=i.label||a;return this.timers.set(l,a),this.__callbacks.set(l,e),a}},{key:"updateTimeout",value:function(e,t){if(Jn(e&&this.timers.has(e),"Label does not exist"),!e||!this.timers.has(e))return null;var o=this.__callbacks.get(e);return Jn(Oo(o),"Callback is not a function"),this.setTimeout(o,{label:e,timeout:t})}},{key:"clearLabel",value:function(e){e&&this.timers.has(e)&&(wi(this.timers.get(e)),this.timers.delete(e),this.__callbacks.delete(e))}},{key:"clearTimeout",value:function(e){if(Io(e))return this.clearLabel(e);wi(e),this.timers.delete(e),this.__callbacks.delete(e)}},{key:"debounce",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this,r=0,i=!1,a=[],l=function(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];if(!i){r=0;var l=e.apply(void 0,Oi(o));if(i=!0,a.length){var s=function(){a.forEach((function(e){return e()})),a.length=0};an(l)?l.finally(s):s()}}},s=function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];i=!1,t?(!r&&o&&l.apply(void 0,Oi(s)),wi(r),r=n.setTimeout((function(){return l.apply(void 0,Oi(s))}),Oo(t)?t():t),n.timers.set(e,r)):l.apply(void 0,Oi(s))};return rn(t)&&t.promisify?function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r=n.promise((function(e){a.push(e)})).catch((function(e){if(No(e))return null;throw e}));return s.apply(void 0,Oi(t)),r}:s}},{key:"microDebounce",value:function(e){var t,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this,r=!1,i=!0;return function(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];t=l,r?i=!0:(i=!0,o&&(i=!1,e.apply(void 0,Oi(t))),r=!0,n.__queueMicrotaskNative((function(){r=!1,n.isDestructed||i&&e.apply(void 0,Oi(t))})))}}},{key:"throttle",value:function(e,t){var o,n,r,i=this,a=null;return function(){for(var l=arguments.length,s=new Array(l),c=0;c<l;c++)s[c]=arguments[c];o=!0,r=s,t?a||(n=function(){o?(e.apply(void 0,Oi(r)),o=!1,a=i.setTimeout(n,Oo(t)?t():t),i.timers.set(n,a)):a=null})():e.apply(void 0,Oi(r))}}},{key:"promise",value:function(e){var t=this,o=function(){},n=new Promise((function(n,r){o=function(){return r(Sr("Abort async"))},t.promisesRejections.add(o),e(n,r)}));return n.finally||"undefined"==typeof process||dt||(n.finally=function(e){return n.then(e).catch(e),n}),n.finally((function(){t.promisesRejections.delete(o)})).catch((function(){return null})),n.rejectCallback=o,n}},{key:"promiseState",value:function(e){var t=this;if(e.status)return e.status;if(!Promise.race)return new Promise((function(o){e.then((function(e){return o("fulfilled"),e}),(function(e){throw o("rejected"),e})),t.setTimeout((function(){o("pending")}),100)}));var o={};return Promise.race([e,o]).then((function(e){return e===o?"pending":"fulfilled"}),(function(){return"rejected"}))}},{key:"requestIdleCallback",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeout:100},o=this.__requestIdleCallbackNative(e,t);return this.__requestsIdle.add(o),o}},{key:"requestIdlePromise",value:function(e){var t=this;return this.promise((function(o){var n=t.requestIdleCallback((function(){return o(n)}),e)}))}},{key:"schedulerPostTask",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0,priority:"user-visible"},n=new AbortController;if(o.signal&&o.signal.addEventListener("abort",(function(){return n.abort()})),this.__controllers.add(n),void 0!==globalThis.scheduler){var r=globalThis.scheduler.postTask(e,function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){xi(e,t,o[t])}))}return e}({},o),{signal:n.signal}));return r.finally((function(){t.__controllers.delete(n)})).catch((function(){return null})),r}return this.promise((function(r,i){var a=t.setTimeout((function(){try{r(e())}catch(e){i(e)}t.__controllers.delete(n)}),o.delay||1);n.signal.addEventListener("abort",(function(){t.clearTimeout(a),t.__controllers.delete(n),i(Sr())}))}))}},{key:"schedulerYield",value:function(){return this.schedulerPostTask((function(){}),{priority:"user-visible"})}},{key:"cancelIdleCallback",value:function(e){return this.__requestsIdle.delete(e),this.__cancelIdleCallbackNative(e)}},{key:"requestAnimationFrame",value:function(e){var t=requestAnimationFrame(e);return this.__requestsRaf.add(t),t}},{key:"cancelAnimationFrame",value:function(e){this.__requestsRaf.delete(e),cancelAnimationFrame(e)}},{key:"clear",value:function(){var e=this;this.__requestsIdle.forEach((function(t){return e.cancelIdleCallback(t)})),this.__requestsRaf.forEach((function(t){return e.cancelAnimationFrame(t)})),this.__controllers.forEach((function(e){return e.abort()})),this.timers.forEach((function(t){return wi(e.timers.get(t))})),this.timers.clear(),this.promisesRejections.forEach((function(e){return e()})),this.promisesRejections.clear()}},{key:"destruct",value:function(){this.clear(),this.isDestructed=!0}}],o&&Si(t.prototype,o),e}(),zi=function(e){return To(e)?e:[e]};function Ei(e){return Array.isArray(e)?e:e.split(/[,\s]+/)}function Ti(e){return e.replace(/mso-[a-z-]+:[\s]*[^;]+;/gi,"").replace(/mso-[a-z-]+:[\s]*[^";']+$/gi,"").replace(/border[a-z-]*:[\s]*[^;]+;/gi,"").replace(/([0-9.]+)(pt|cm)/gi,(function(e,t,o){switch(o.toLowerCase()){case"pt":return(1.328*parseFloat(t)).toFixed(0)+"px";case"cm":return(.02645833*parseFloat(t)).toFixed(0)+"px"}return e}))}function Ii(e){if(-1===e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7);var t=Ct.createElement("iframe");t.style.display="none",Ct.body.appendChild(t);var o="";try{var n=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(n){n.open(),n.write(e),n.close();try{for(var r=function(e){for(var t=function(e){if(""===o[e].selectorText)return"continue";Jr(o[e].selectorText,n.body).forEach((function(t){t.style.cssText=Ti(o[e].style.cssText+";"+t.style.cssText)}))},o=n.styleSheets[e].cssRules,r=0;r<o.length;r+=1)t(r)},i=0;i<n.styleSheets.length;i+=1)r(i)}catch(e){if(!ft)throw e}ui.each(n.body,(function(e){if(ui.isElement(e)){var t=e,o=t.getAttribute("style");o&&(t.style.cssText=Ti(o)),t.hasAttribute("style")&&!t.getAttribute("style")&&t.removeAttribute("style")}})),o=n.firstChild?dn(n.body.innerHTML):""}}catch(e){}finally{ui.safeRemove(t)}return o&&(e=o),dn(e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,""))}function Pi(e){-1!==e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,e.lastIndexOf("</html>")+7));var t="";try{var o=Ct.createElement("div");o.innerHTML=e;var n=[];o.firstChild&&ui.each(o,(function(e){if(e)switch(e.nodeType){case Node.ELEMENT_NODE:switch(e.nodeName){case"STYLE":case"LINK":case"META":n.push(e);break;case"W:SDT":case"W:SDTPR":case"FONT":ui.unwrap(e);break;default:Bo(e.attributes).forEach((function(t){-1===["src","href","rel","content"].indexOf(t.name.toLowerCase())&&e.removeAttribute(t.name)}))}break;case Node.TEXT_NODE:break;default:n.push(e)}})),ui.safeRemove.apply(null,n),t=o.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(dn).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}function Ri(e){var t=Ct.createElement("div");return t.textContent=e,t.innerHTML}function Ai(e){return e.replace(/\r\n|\r|\n/g,"<br/>")}function Li(e,t){(ui.isElement(e)||ui.isFragment(e))&&(t.removeOnError&&(Mi(e),Jr("[onerror]",e).forEach((function(e){return Mi(e,t)}))),t.safeJavaScriptLink&&(Mi(e),Jr('a[href^="javascript"]',e).forEach((function(e){return Mi(e,t)}))))}function Mi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{safeJavaScriptLink:!0,removeOnError:!0},o=t.safeJavaScriptLink,n=t.removeOnError;if(!ui.isElement(e))return!1;var r=!1;n&&e.hasAttribute("onerror")&&(Xn(e,"onerror",null),r=!0);var i=e.getAttribute("href");return o&&i&&0===i.trim().indexOf("javascript")&&(Xn(e,"href",location.protocol+"//"+i),r=!0),r}var Bi=new Set(["div","p","br","h1","h2","h3","h4","h5","h6","hr"]),Di=new Set(["script","style"]),Ni=new Set(["br","hr","input"]);function Hi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=t.createElement("div");return Io(e)?n.innerHTML=e:n.appendChild(e),Jr("*",n).forEach((function(e){var n=e.parentNode;if(n){if(o&&ui.isTag(e,o)){var r=e.nodeName.toLowerCase(),i=ui.isTag(e,Ni)?"%%%jodit-single-".concat(r,"%%%"):"%%%jodit-".concat(r,"%%%").concat(Hi(e.innerHTML,t,o),"%%%/jodit-").concat(r,"%%%");return ui.before(e,t.createTextNode(i)),void ui.safeRemove(e)}if(ui.isTag(e,Di))ui.safeRemove(e);else if(ui.isTag(e,Bi)){var a=e.nextSibling;ui.isText(a)&&/^\s/.test(a.nodeValue||"")||a&&n.insertBefore(t.createTextNode(" "),a)}}})),dn(n.innerText).replace(/%%%(\/)?jodit(-single)?-([\w\n]+)%%%/g,(function(e,t,o,n){return"<".concat(t?"/":"").concat(n,">")}))}var Fi=function(e){var t=["#"],o=Sn(e);if(!o)return!1;if(3===(o=(o=dn(o.toUpperCase())).substring(1)).length){for(var n=0;n<3;n+=1)t.push(o[n]),t.push(o[n]);return t.join("")}return o.length>6&&(o=o.slice(0,6)),"#"+o};function qi(e){var t={},o={meta:1,ctrl:2,control:2,alt:3,shift:4,space:5};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map((function(e){return dn(e.toLowerCase())})).map((function(e){return ho[e]||e})).sort((function(e,t){return o[e]&&!o[t]?-1:!o[e]&&o[t]?1:o[e]&&o[t]?o[e]-o[t]:e>t?1:-1})).filter((function(e){return!t[e]&&""!==e&&(t[e]=!0)})).join("+")}var Vi=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,o=[];e.length;)o.push(e.substr(0,t)),e=e.substr(t);return o[1]=o[1].replace(/./g,"*"),o[2]=o[2].replace(/./g,"*"),o.join("-")},Wi=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.filter((function(e){return dn(e).length})).map((function(e,o){return e=e.replace(/([^:])[\\/]+/g,"$1/"),o&&(e=e.replace(/^\//,"")),o!==t.length-1&&(e=e.replace(/\/$/,"")),e})).join("/")},Ui=function(e){return e.split("/").reduce((function(e,t){switch(t){case"":case".":break;case"..":e.pop();break;default:e.push(t)}return e}),[]).join("/")+(e.endsWith("/")?"/":"")},Yi=function(e,t){return/^[0-9]+$/.test(e.toString())?e+t:e.toString()},Ki=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.filter((function(e){return e.length})).map((function(e){return e.replace(/\/$/,"")})).join("/").replace(/([^:])[\\/]+/g,"$1/")},Gi=function(e,t){var o=function(e){return parseInt(e,10)},n=t.getComputedStyle(e);return e.offsetWidth-o(n.getPropertyValue("padding-left")||"0")-o(n.getPropertyValue("padding-right")||"0")};function Ji(e){if(!e)return null;var t=ui.isHTMLElement(e),o=t&&In(e,"overflowY");return t&&"visible"!==o&&"hidden"!==o&&e.scrollHeight>=e.clientHeight?e:Ji(e.parentNode)||Ct.scrollingElement||Ct.body}var Xi=function(e,t){var o=t.getComputedStyle(e);return e.clientWidth-(parseFloat(o.paddingLeft||"0")+parseFloat(o.paddingRight||"0"))};function Zi(e){return Io(e)||To(e)?e.length:rn(e)?Object.keys(e).length:0}var Qi=function(e,t,o){var n,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];try{n=e.getBoundingClientRect()}catch(e){n={top:0,bottom:0,left:0,right:0,width:0,height:0}}var i,a,l=o.body,s=o.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},c=o.defaultView||o.parentWindow,u=c.pageYOffset||s.scrollTop||l.scrollTop,d=c.pageXOffset||s.scrollLeft||l.scrollLeft,f=s.clientTop||l.clientTop||0,p=s.clientLeft||l.clientLeft||0,h=t.iframe;if(!r&&t&&t.options&&t.o.iframe&&h){var v=Qi(h,t,t.od,!0),g=v.top,m=v.left;i=n.top+g,a=n.left+m}else i=n.top+u-f,a=n.left+d-p;return{top:Math.round(i),left:Math.round(a),width:n.width,height:n.height}};function $i(e,t){var o,n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.getBoundingClientRect(),a=i.left,l=i.top;if($o(t)&&t.iframe&&t.ed.body.contains(e)&&!r){var s=$i(t.iframe,t,!0);a+=s.left,l+=s.top}return{left:Math.round(a),top:Math.round(l),width:Math.round(null!==(o=e.offsetWidth)&&void 0!==o?o:i.width),height:Math.round(null!==(n=e.offsetHeight)&&void 0!==n?n:i.height)}}function ea(e,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=0,r=0,i=-1,a=0,l=0;for(r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n<e.length&&r<t.length;)e[n].toLowerCase()===t[r].toLowerCase()?(n++,a++,l=0,-1===i&&(i=r)):n>0&&(l>=o&&t[r]!==bt?(n=0,i=-1,a=0,l=0,r--):(l++,a++)),r++;return n===e.length?[i,a]:[-1,0]}function ta(e){return e.length?e[0].toUpperCase()+e.substring(1):""}var oa=function(e,t){if(!t||!t.length)return e;for(var o=/%([sd])/g,n=o.exec(e),r=e,i=0;n&&void 0!==t[i];)r=r.replace(n[0],t[i].toString()),i+=1,n=o.exec(e);return r};function na(e,t,o){if(!Io(e))throw Dr("i18n: Need string in first argument");if(!e.length)return e;var n=Boolean(null==o?void 0:o.debugLanguage),r={},i=function(e){return t&&t.length?oa(e,t):e},a=kr(tr.defaultOptions.language,tr.defaultOptions.language),l=kr(null==o?void 0:o.language,a),s=function(t){if(t){if(Io(t[e]))return i(t[e]);var o=e.toLowerCase();if(Io(t[o]))return i(t[o]);var n=ta(e);return Io(t[n])?i(t[n]):void 0}};void 0!==wo[l]?r=wo[l]:n||(r=void 0!==wo[a]?wo[a]:wo.en);var c=null==o?void 0:o.i18n;if(c&&c[l]){var u=s(c[l]);if(u)return u}return s(r)||(!n&&wo.en&&Io(wo.en[e])&&wo.en[e]?i(wo.en[e]):n?"{"+e+"}":(ft||"en"===l||console.warn('i18n need "'.concat(e,'" in "').concat(l,'"')),i(e)))}function ra(e){return xn(e).toLowerCase()}function ia(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}var aa=new Set;function la(){var e;return e=function(e,t){var o;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(n){return o=sa(e,t,!1),aa.has(o)?[2]:(aa.add(o),[2,Hn(e,o)])}))},la=function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){ia(i,n,r,a,l,"next",e)}function l(e){ia(i,n,r,a,l,"throw",e)}a(void 0)}))},la.apply(this,arguments)}function sa(e,t,o){t=xn(t);var n=e.minified?".min":"";return e.basePath+"plugins/"+t+"/"+t+n+"."+(o?"js":"css")}function ca(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function ua(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var da=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__items=new Map}var t,o;return t=e,o=[{key:"size",get:function(){return this.__items.size}},{key:"add",value:function(e,t){this.__items.set(ra(e),t),Na.fire("plugin:".concat(e,":ready"))}},{key:"get",value:function(e){return this.__items.get(ra(e))}},{key:"remove",value:function(e){this.__items.delete(ra(e))}},{key:"__getFullPluginsList",value:function(e){var t=[];return this.__items.forEach((function(o,n){e&&!e.has(n)||t.push([n,o])})),t}},{key:"__init",value:function(e){var t=this,o=function(e){return{extraList:e.o.extraPlugins.map((function(e){return Io(e)?{name:e}:e})),disableList:new Set(Ei(e.o.disablePlugins).map(ra)),filter:e.o.safeMode?new Set(e.o.safePluginsList):null}}(e),n=o.extraList,r=o.disableList,i=o.filter,a=new Map,l={},s=new Set;e.__plugins=l;var c=function(){if(!e.isInDestruct){var o=!1;t.__getFullPluginsList(i).forEach((function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ca(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ca(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),i=n[0],c=n[1];if(!r.has(i)&&!a.has(i)){var u=null==c?void 0:c.requires;if(u&&To(u)&&u.length){if(u.some((function(e){return r.has(e)})))return;if(!u.every((function(e){return a.has(e)})))return void s.add(i)}o=!0;var d=function(e,t){try{try{return Oo(t)?new t(e):t}catch(o){if(Oo(t)&&!t.prototype)return t(e)}}catch(e){if(console.error(e),!ft)throw e}return null}(e,c);if(!d)return a.set(i,null),void s.delete(i);(function(e,t,o,n,r,i){if(Ko(n))try{n.init(e)}catch(e){if(console.error(e),!ft)throw e}r.set(t,n),i.delete(t),n.hasStyle&&function(e,t){return la.apply(this,arguments)}(e,t).catch((function(e){!ft&&console.error(e)})),n.styles&&(Ba(e,t,"style").innerHTML=n.styles)})(e,i,0,d,a,s),l[i]=d}})),o&&(e.e.fire("updatePlugins"),c())}};n&&n.length&&function(e,t,o,n){try{var r=o.filter((function(t){return!e.has(ra(t.name))}));r.length&&function(e,t,o){t.map((function(t){var n=t.url||sa(e,t.name,!0);return Nn(e,n).then(o).catch((function(){return null}))}))}(t,r,n)}catch(e){if(!ft)throw e}}(this.__items,e,n,c),c(),function(e,t){e.e.on("beforeDestruct",(function(){Object.keys(t).forEach((function(o){var n=t[o];Go(n)&&n.destruct(e),delete t[o]})),delete e.__plugins}))}(e,l),!ft&&s.size&&console.warn("After init plugin waiting list is not clean:",s)}},{key:"wait",value:function(e){var t=this;return new Promise((function(o){if(t.get(e))return o();var n=function(){o(),Na.off("plugin:".concat(e,":ready"),n)};Na.on("plugin:".concat(e,":ready"),n)}))}}],o&&ua(t.prototype,o),e}();function fa(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var pa="JoditEventDefaultNamespace",ha=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__store=new Map}var t,o;return t=e,o=[{key:"get",value:function(e,t){if(this.__store.has(t)){var o=this.__store.get(t);return Jn(o,"-"),o[e]}}},{key:"indexOf",value:function(e,t,o){var n=this.get(e,t);if(n)for(var r=0;r<n.length;r+=1)if(n[r].originalCallback===o)return r;return!1}},{key:"namespaces",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Bo(this.__store.keys());return e?t.filter((function(e){return e!==pa})):t}},{key:"events",value:function(e){var t=this.__store.get(e);return t?Object.keys(t):[]}},{key:"set",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=this.__store.get(t);r||(r={},this.__store.set(t,r)),void 0===r[e]&&(r[e]=[]),n?r[e].unshift(o):r[e].push(o)}},{key:"clear",value:function(){this.__store.clear()}},{key:"clearEvents",value:function(e,t){var o=this.__store.get(e);o&&o[t]&&(delete o[t],Object.keys(o).length||this.__store.delete(e))}},{key:"isEmpty",value:function(){return 0===this.__store.size}}],o&&fa(t.prototype,o),e}();function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function ga(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ma(e){return function(e){if(Array.isArray(e))return va(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return va(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?va(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ba=function(){function e(t){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__domEventsMap=new Map,this.__mutedEvents=new Set,this.__key="__JoditEventEmitterNamespaces",this.__doc=Ct,this.__prepareEvent=function(e){e.cancelBubble||(e.composed&&Oo(e.composedPath)&&e.composedPath()[0]&&Object.defineProperty(e,"target",{value:e.composedPath()[0],configurable:!0,enumerable:!0}),e.type.match(/^touch/)&&e.changedTouches&&e.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach((function(t){Object.defineProperty(e,t,{value:e.changedTouches[0][t],configurable:!0,enumerable:!0})})),e.originalEvent||(e.originalEvent=e),"paste"===e.type&&void 0===e.clipboardData&&o.__doc.defaultView.clipboardData&&Object.defineProperty(e,"clipboardData",{get:function(){return o.__doc.defaultView.clipboardData},configurable:!0,enumerable:!0}))},this.currents=[],this.__stopped=[],this.__isDestructed=!1,t&&(this.__doc=t),this.__key+=(new Date).getTime()}var t,o;return t=e,o=[{key:"mute",value:function(e){return this.__mutedEvents.add(null!=e?e:"*"),this}},{key:"isMuted",value:function(e){return!(!e||!this.__mutedEvents.has(e))||this.__mutedEvents.has("*")}},{key:"unmute",value:function(e){return this.__mutedEvents.delete(null!=e?e:"*"),this}},{key:"__eachEvent",value:function(e,t){var o=this;Ei(e).map((function(e){return e.trim()})).forEach((function(e){var n=e.split("."),r=n[1]||pa;t.call(o,n[0],r)}))}},{key:"__getStore",value:function(e){if(!e)throw Dr("Need subject");if(void 0===e[this.__key]){var t=new ha;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:t})}return e[this.__key]}},{key:"__removeStoreFromSubject",value:function(e){void 0!==e[this.__key]&&Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,writable:!0,value:void 0})}},{key:"__triggerNativeEvent",value:function(e,t){var o=this.__doc.createEvent("HTMLEvents");Io(t)?o.initEvent(t,!0,!0):(o.initEvent(t.type,t.bubbles,t.cancelable),["screenX","screenY","clientX","clientY","target","srcElement","currentTarget","timeStamp","which","keyCode"].forEach((function(e){Object.defineProperty(o,e,{value:t[e],enumerable:!0})})),Object.defineProperty(o,"originalEvent",{value:t,enumerable:!0})),e.dispatchEvent(o)}},{key:"current",get:function(){return this.currents[this.currents.length-1]}},{key:"on",value:function(e,t,o,n){var r,i,a,l,s=this;if(Io(e)||Po(e)?(r=this,i=e,a=t,l=o):(r=e,i=t,a=o,l=n),!Io(i)&&!Po(i)||0===i.length)throw Dr("Need events names");if(!Oo(a))throw Dr("Need event handler");if(To(r))return r.forEach((function(e){s.on(e,i,a,l)})),this;var c=r,u=this.__getStore(c),d=this,f=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];var r;if(!d.isMuted(e))return a&&(r=a).call.apply(r,[this].concat(ma(o)))};return ya(c)&&(f=function(e){if(!d.isMuted(e.type))return d.__prepareEvent(e),a&&!1===a.call(this,e)?(e.preventDefault(),e.stopImmediatePropagation(),!1):void 0}),this.__eachEvent(i,(function(e,t){var o,n;if(0===e.length)throw Dr("Need event name");if(!1===u.indexOf(e,t,a)){var r={event:e,originalCallback:a,syntheticCallback:f};if(u.set(e,t,r,null==l?void 0:l.top),ya(c)){var i=xo.has(e)?{passive:!0,capture:null!==(o=null==l?void 0:l.capture)&&void 0!==o&&o}:null!==(n=null==l?void 0:l.capture)&&void 0!==n&&n;f.options=i,c.addEventListener(e,f,i),s.__memoryDOMSubjectToHandler(c,f)}}})),this}},{key:"__memoryDOMSubjectToHandler",value:function(e,t){var o=this.__domEventsMap.get(e)||new Set;o.add(t),this.__domEventsMap.set(e,o)}},{key:"__unmemoryDOMSubjectToHandler",value:function(e,t){var o=this.__domEventsMap,n=o.get(e)||new Set;n.delete(t),n.size?o.set(e,n):o.delete(e)}},{key:"one",value:function(e,t,o,n){var r,i,a,l,s=this;Io(e)||Po(e)?(r=this,i=e,a=t,l=o):(r=e,i=t,a=o,l=n);var c=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return s.off(r,i,c),a.apply(void 0,ma(t))};return this.on(r,i,c,l),this}},{key:"off",value:function(e,t,o){var n,r,i,a=this;if(Io(e)||Po(e)?(n=this,r=e,i=t):(n=e,r=t,i=o),To(n))return n.forEach((function(e){a.off(e,r,i)})),this;var l=n,s=this.__getStore(l);if(!Io(r)&&!Po(r)||0===r.length)return s.namespaces().forEach((function(e){a.off(l,"."+e)})),this.__removeStoreFromSubject(l),this;var c=function(e){var t;ya(l)&&(l.removeEventListener(e.event,e.syntheticCallback,null!==(t=e.syntheticCallback.options)&&void 0!==t&&t),a.__unmemoryDOMSubjectToHandler(l,e.syntheticCallback))},u=function(e,t){if(""!==e){var o=s.get(e,t);if(o&&o.length)if(Oo(i)){var n=s.indexOf(e,t,i);!1!==n&&(c(o[n]),o.splice(n,1),o.length||s.clearEvents(t,e))}else o.forEach(c),o.length=0,s.clearEvents(t,e)}else s.events(t).forEach((function(e){""!==e&&u(e,t)}))};return this.__eachEvent(r,(function(e,t){t===pa?s.namespaces().forEach((function(t){u(e,t)})):u(e,t)})),s.isEmpty()&&this.__removeStoreFromSubject(l),this}},{key:"stopPropagation",value:function(e,t){var o=this,n=Io(e)?this:e,r=Io(e)?e:t;if("string"!=typeof r)throw Dr("Need event names");var i=this.__getStore(n);this.__eachEvent(r,(function(e,t){var r=i.get(e,t);r&&o.__stopped.push(r),t===pa&&i.namespaces(!0).forEach((function(t){return o.stopPropagation(n,e+"."+t)}))}))}},{key:"__removeStop",value:function(e){if(e){var t=this.__stopped.indexOf(e);-1!==t&&this.__stopped.splice(0,t+1)}}},{key:"__isStopped",value:function(e){return void 0!==e&&-1!==this.__stopped.indexOf(e)}},{key:"fire",value:function(e,t){for(var o,n,r=this,i=arguments.length,a=new Array(i>2?i-2:0),l=2;l<i;l++)a[l-2]=arguments[l];var s=Io(e)?this:e,c=Io(e)?e:t,u=Io(e)?[t].concat(ma(a)):a;if(!ya(s)&&!Io(c))throw Dr("Need events names");var d=this.__getStore(s);return!Io(c)&&ya(s)?this.__triggerNativeEvent(s,t):this.__eachEvent(c,(function(e,t){if(ya(s))r.__triggerNativeEvent(s,e);else{var i=d.get(e,t);if(i)try{ma(i).every((function(t){var a;return!r.__isStopped(i)&&(r.currents.push(e),n=(a=t.syntheticCallback).call.apply(a,[s,e].concat(ma(u))),r.currents.pop(),void 0!==n&&(o=n),!0)}))}finally{r.__removeStop(i)}t!==pa||ya(s)||d.namespaces().filter((function(e){return e!==t})).forEach((function(t){var n=r.fire.apply(r,[s,e+"."+t].concat(ma(u)));void 0!==n&&(o=n)}))}})),o}},{key:"destruct",value:function(){var e=this;this.__isDestructed||(this.__isDestructed=!0,this.__domEventsMap.forEach((function(t,o){e.off(o)})),this.__domEventsMap.clear(),this.__mutedEvents.clear(),this.currents.length=0,this.__stopped.length=0,this.off(this),this.__getStore(this).clear(),this.__removeStoreFromSubject(this))}}],o&&ga(t.prototype,o),e}();function ya(e){return Oo(e.addEventListener)}function _a(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function ja(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||wa(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wa(e,t){if(e){if("string"==typeof e)return _a(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_a(e,t):void 0}}function ka(e,t){var o;do{o=Object.getOwnPropertyDescriptor(e,t),e=Object.getPrototypeOf(e)}while(!o&&e);return o}function Sa(e,t){return function(o,n){var r;if(!Oo(o[n]))throw Dr("Handler must be a Function");var i=null===(r=null==t?void 0:t.immediately)||void 0===r||r,a=null==t?void 0:t.context,l=function(t){var r=un(t)?t:t.jodit,l=function(e){for(var o=arguments.length,r=new Array(o>1?o-1:0),i=1;i<o;i++)r[i-1]=arguments[i];var a;if(!t.isInDestruct)return(a=t)[n].apply(a,[e].concat(function(e){return function(e){if(Array.isArray(e))return _a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||wa(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r)))};i||(l=t.async.microDebounce(l,!0)),Ei(e).forEach((function(e){if(/:/.test(e)){var n=ja(e.split(":"),2),i=n[0],s=n[1],c=a;return i.length&&(c=t.get(i)),Oo(c)&&(c=c(t)),r.events.on(c||t,s,l),c||r.events.on(s,l),void t.hookStatus("beforeDestruct",(function(){r.events.off(c||t,s,l).off(s,l)}))}var u=e.split("."),d=ja(u,1)[0],f=u.slice(1),p=t[d];rn(p)&&Ea(p).on("change.".concat(f.join(".")),l);var h=ka(o,d);Object.defineProperty(t,d,{configurable:!0,set:function(e){var o=p;o!==e&&(p=e,h&&h.set&&h.set.call(t,e),rn(p)&&(p=Ea(p)).on("change.".concat(f.join(".")),l),l(d,o,p))},get:function(){return h&&h.get?h.get.call(t):p}})}))};Oo(o.hookStatus)?o.hookStatus(zo.ready,l):l(o)}}function xa(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Oa(e){return function(e){if(Array.isArray(e))return xa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return xa(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?xa(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ca=Symbol("observable-object");function za(e){return void 0!==e[Ca]}function Ea(e){if(za(e))return e;var t={},o={},n=function(t,r){return To(t)?(t.map((function(e){return n(e,r)})),e):(o[t]||(o[t]=[]),o[t].push(r),e)},r=function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];if(To(n))n.map((function(e){return r.apply(void 0,[e].concat(Oa(a)))}));else try{var s;!t[n]&&o[n]&&(t[n]=!0,o[n].forEach((function(t){return(s=t).call.apply(s,[e].concat(Oa(a)))})))}finally{t[n]=!1}},i=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a={};za(t)||(Object.defineProperty(t,Ca,{enumerable:!1,value:!0}),Object.keys(t).forEach((function(n){var l=n,s=o.concat(l).filter((function(e){return e.length}));a[l]=t[l];var c=ka(t,l);Object.defineProperty(t,l,{set:function(t){var o=a[l];if(!Wo(a[l],t)){r(["beforeChange","beforeChange.".concat(s.join("."))],l,t),rn(t)&&i(t,s),c&&c.set?c.set.call(e,t):a[l]=t;var n=[];r(["change"].concat(Oa(s.reduce((function(e,t){return n.push(t),e.push("change.".concat(n.join("."))),e}),[]))),s.join("."),o,(null==t?void 0:t.valueOf)?t.valueOf():t)}},get:function(){return c&&c.get?c.get.call(e):a[l]},enumerable:!0,configurable:!0}),rn(a[l])&&i(a[l],s)})),Object.defineProperty(e,"on",{value:n}))};return i(e),e}var Ta={},Ia=1,Pa=new Set,Ra=new da,Aa={},La=function(e){Object.keys(e).forEach((function(t){wo[t]?Object.assign(wo[t],e[t]):wo[t]=e[t]}))},Ma=new WeakMap;function Ba(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"div",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=Io(t)?t:t?qr(t.prototype):"jodit-utils",i=Ma.get(e)||{},a=r+o,l=un(e)?e:e.j,s=null;if(!i[a]){var c=l.c;if(s=Da(l.o,l.container,e.od.body),n&&$o(e)&&e.od!==e.ed){c=e.createInside;var u="style"===o?e.ed.head:e.ed.body;s=$o(e)&&e.o.shadowRoot?e.o.shadowRoot:u}var d=c.element(o,{className:"jodit jodit-".concat(xn(r),"-container jodit-box")});d.classList.add("jodit_theme_".concat(l.o.theme||"default")),s.appendChild(d),i[a]=d,e.hookStatus("beforeDestruct",(function(){l.events.off(d),ui.safeRemove(d),delete i[a],Object.keys(i).length&&Ma.delete(e)})),Ma.set(e,i),l.events.fire("getContainer",d)}return i[a].classList.remove("jodit_theme_default","jodit_theme_dark"),i[a].classList.add("jodit_theme_".concat(l.o.theme||"default")),i[a]}function Da(e,t,o){var n,r,i;return null!==(i=null!==(r=null!==(n=e.popupRoot)&&void 0!==n?n:e.shadowRoot)&&void 0!==r?r:ui.closest(t,(function(e){return ui.isHTMLElement(e)&&(ui.isTag(e,"dialog")||["fixed","absolute"].includes(In(e,"position")))}),o))&&void 0!==i?i:o}var Na=new ba;function Ha(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Fa=new Map,qa=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.async=new Ci,this.ownerWindow=window,this.__componentStatus=zo.beforeInit,this.uid="jodit-uid-"+function(){function e(){return Ia+=10*(Math.random()+1),Math.round(Ia).toString(16)}for(var t=e();Pa.has(t);)t=e();return Pa.add(t),t}()}var t,o,n;return t=e,o=[{key:"componentName",get:function(){return this.__componentName||(this.__componentName="jodit-"+xn((Oo(this.className)?this.className():"")||qr(this))),this.__componentName}},{key:"getFullElName",value:function(e,t,o){var n=[this.componentName];return e&&(e=e.replace(/[^a-z0-9-]/gi,"-"),n.push("__".concat(e))),t&&(n.push("_",t),n.push("_",Ro(o)?"true":o.toString())),n.join("")}},{key:"ownerDocument",get:function(){return this.ow.document}},{key:"od",get:function(){return this.ownerDocument}},{key:"ow",get:function(){return this.ownerWindow}},{key:"get",value:function(e,t){return Ao(e,t||this)}},{key:"isReady",get:function(){return this.componentStatus===zo.ready}},{key:"isDestructed",get:function(){return this.componentStatus===zo.destructed}},{key:"isInDestruct",get:function(){return zo.beforeDestruct===this.componentStatus||zo.destructed===this.componentStatus}},{key:"bindDestruct",value:function(e){var t=this;return e.hookStatus(zo.beforeDestruct,(function(){return!t.isInDestruct&&t.destruct()})),this}},{key:"destruct",value:function(){this.setStatus(zo.destructed),this.async&&(this.async.destruct(),this.async=void 0),Fa.get(this)&&Fa.delete(this),this.ownerWindow=void 0}},{key:"componentStatus",get:function(){return this.__componentStatus},set:function(e){this.setStatus(e)}},{key:"setStatus",value:function(e){return this.setStatusComponent(e,this)}},{key:"setStatusComponent",value:function(e,t){if(e!==this.__componentStatus){t===this&&(this.__componentStatus=e);var o=Object.getPrototypeOf(this);o&&Oo(o.setStatusComponent)&&o.setStatusComponent(e,t);var n=Fa.get(this),r=null==n?void 0:n[e];r&&r.length&&r.forEach((function(e){return e(t)}))}}},{key:"hookStatus",value:function(e,t){var o=Fa.get(this);o||(o={},Fa.set(this,o)),o[e]||(o[e]=[]),o[e].push(t)}}],n=[{key:"isInstanceOf",value:function(e,t){return o=e,null!=(n=t)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](o):o instanceof n;var o,n}}],o&&Ha(t.prototype,o),n&&Ha(t,n),e}();function Va(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Wa(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ua(e,t,o){return Ua="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ya(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Ua(e,t,o||e)}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ya(e)}function Ka(e,t){return Ka=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ka(e,t)}function Ga(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ga=function(){return!!e})()}qa.STATUSES=zo;var Ja=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Ya(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,Ga()?Reflect.construct(t,o||[],Ya(e).constructor):t.apply(e,o))}(this,t)).setParentView(e),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ka(e,t)}(t,e),o=t,n=[{key:"j",get:function(){return this.jodit}},{key:"defaultTimeout",get:function(){return this.j.defaultTimeout}},{key:"i18n",value:function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];var r;return(r=this.j).i18n.apply(r,[e].concat(function(e){return function(e){if(Array.isArray(e))return Va(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Va(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Va(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o)))}},{key:"setParentView",value:function(e){return this.jodit=e,e.components.add(this),this}},{key:"destruct",value:function(){return this.j.components.delete(this),Ua(Ya(t.prototype),"destruct",this).call(this)}}],n&&Wa(o.prototype,n),t}(qa);function Xa(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"debounce";return function(n,r){var i=n[r];if(!Oo(i))throw Dr("Handler must be a Function");return n.hookStatus(zo.ready,(function(n){var i=n.async;Jn(null!=i,"Component ".concat(n.componentName||n.constructor.name,' should have "async:IAsync" field'));var a=Oo(e)?e(n):e,l=on(a)||rn(a)?a:n.defaultTimeout;Object.defineProperty(n,r,{configurable:!0,value:i[o](n[r].bind(n),l,t)})})),{configurable:!0,get:function(){return i.bind(this)}}}}function Za(e){return Xa(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1],"throttle")}function Qa(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function $a(e){return function(e){if(Array.isArray(e))return Qa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Qa(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Qa(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function el(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(e){for(var o=e.prototype,n=0;n<t.length;n++)for(var r=function(e){var t=a[e],n=Object.getOwnPropertyDescriptor(i.prototype,t);null!=n&&Oo(n.value)&&!Oo(o[t])&&Object.defineProperty(o,t,{enumerable:!0,configurable:!0,writable:!0,value:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r;return(r=n.value).call.apply(r,[this].concat($a(t)))}})},i=t[n],a=Object.getOwnPropertyNames(i.prototype),l=0;l<a.length;l++)r(l)}}function tl(e){return function(t,o){if(!Oo(t[o]))throw Dr("Handler must be a Function");t.hookStatus(e,(function(e){e[o].call(e)}))}}function ol(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function nl(){return function(e,t){if(!Oo(e[t]))throw Dr("Handler must be a Function");e.hookStatus(zo.ready,(function(e){var o,n=e.async,r=e[t];e[t]=function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return n.requestIdleCallback((o=r).bind.apply(o,[e].concat(function(e){return function(e){if(Array.isArray(e))return ol(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ol(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ol(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i))))}}))}}var rl=function(e,t){!1!==(Object.getOwnPropertyDescriptor(e,t)||{}).enumerable&&Object.defineProperty(e,t,{enumerable:!1,set:function(e){Object.defineProperty(this,t,{enumerable:!1,writable:!0,value:e})}})};function il(e,t){e.hookStatus(zo.ready,(function(e){var o=un(e)?e:e.jodit,n="".concat(o.options.namespace).concat(e.componentName,"_prop_").concat(t),r=e[t];Object.defineProperty(e,t,{get:function(){var e;return null!==(e=o.storage.get(n))&&void 0!==e?e:r},set:function(e){o.storage.set(n,e)}})}))}function al(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function ll(e){return function(t,o){if(!Oo(t[o]))throw Dr("Handler must be a Function");t.hookStatus(zo.ready,(function(t){var n=t.async,r=t[o],i=0;Object.defineProperty(t,o,{configurable:!0,value:function o(){for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n.clearTimeout(i),e(t)?r.apply(t,l):i=n.setTimeout((function(){return o.apply(void 0,function(e){return function(e){if(Array.isArray(e))return al(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return al(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?al(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(l))}),10)}})}))}}function sl(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function cl(e){return function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){sl(i,n,r,a,l,"next",e)}function l(e){sl(i,n,r,a,l,"throw",e)}a(void 0)}))}}function ul(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dl(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}tr.prototype.defaultAjaxOptions={successStatuses:[200,201,202],method:"GET",url:"",data:null,contentType:"application/x-www-form-urlencoded; charset=UTF-8",headers:{"X-REQUESTED-WITH":"XMLHttpRequest"},withCredentials:!1,xhr:function(){return new XMLHttpRequest}};var fl=function(){function e(t,o,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.request=t,this.status=o,this.statusText=n,this.body=r}var t,o;return t=e,(o=[{key:"url",get:function(){return this.request.url}},{key:"json",value:function(){var e=this;return cl((function(){return dl(this,(function(t){return[2,JSON.parse(e.body)]}))}))()}},{key:"text",value:function(){return Promise.resolve(this.body)}},{key:"blob",value:function(){var e=this;return cl((function(){return dl(this,(function(t){return[2,e.body]}))}))()}}])&&ul(t.prototype,o),e}();function pl(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function hl(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vl(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function gl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var ml=function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:tr.prototype.defaultAjaxOptions;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__async=new Ci,this.__isFulfilled=!1,this.__activated=!1,this.__isDestructed=!1,this.options=mr(t||{},o),this.xhr=this.o.xhr?this.o.xhr():new XMLHttpRequest}var t,o;return t=e,o=[{key:"className",value:function(){return"Ajax"}},{key:"__buildParams",value:function(e,t){return rn(e)&&this.options.contentType&&this.options.contentType.includes("application/json")?JSON.stringify(e):Oo(this.o.queryBuild)?this.o.queryBuild.call(this,e,t):Io(e)||(o=e,null!=(n=Ot.FormData)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](o):o instanceof n)||"object"===(void 0===e?"undefined":gl(e))&&null!=e&&Oo(e.append)?e:Qn(e);var o,n}},{key:"o",get:function(){return this.options}},{key:"abort",value:function(){if(this.__isFulfilled)return this;try{this.__isFulfilled=!0,this.xhr.abort()}catch(e){}return this}},{key:"send",value:function(){this.__activated=!0;var e=this.xhr,t=this.o,o=this.prepareRequest(),n=this;return this.__async.promise(function(){var r,i=(r=function(r,i){var a,l,s,c,u,d,f;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(p){switch(p.label){case 0:return l=function(){n.__isFulfilled=!0,i(Nr("Connection error"))},s=function(){n.__isFulfilled=!0,r(new fl(o,e.status,e.statusText,e.responseType?e.response:e.responseText))},e.onload=s,e.onabort=function(){n.__isFulfilled=!0,i(Sr("Abort connection"))},e.onerror=l,e.ontimeout=l,t.responseType&&(e.responseType=t.responseType),e.onprogress=function(e){var t,o,r=0;e.lengthComputable&&(r=e.loaded/e.total*100),null===(o=(t=n.options).onProgress)||void 0===o||o.call(t,r)},e.onreadystatechange=function(){var o,r;null===(r=(o=n.options).onProgress)||void 0===r||r.call(o,10),e.readyState===XMLHttpRequest.DONE&&(t.successStatuses.includes(e.status)?s():e.statusText&&(n.__isFulfilled=!0,i(Nr(e.statusText))))},e.withCredentials=null!==(a=t.withCredentials)&&void 0!==a&&a,c=o.url,u=o.data,d=o.method,e.open(d,c,!0),t.contentType&&e.setRequestHeader&&e.setRequestHeader("Content-type",t.contentType),Oo(f=t.headers)?[4,f.call(n)]:[3,2];case 1:f=p.sent(),p.label=2;case 2:return f&&e.setRequestHeader&&Object.keys(f).forEach((function(t){e.setRequestHeader(t,f[t])})),n.__async.setTimeout((function(){e.send(u?n.__buildParams(u):void 0)}),0),[2]}}))},function(){var e=this,t=arguments;return new Promise((function(o,n){var i=r.apply(e,t);function a(e){pl(i,o,n,a,l,"next",e)}function l(e){pl(i,o,n,a,l,"throw",e)}a(void 0)}))});return function(e,t){return i.apply(this,arguments)}}())}},{key:"prepareRequest",value:function(){if(!this.o.url)throw Dr("Need URL for AJAX request");var t=this.o.url,o=this.o.data,n=(this.o.method||"get").toLowerCase();if("get"===n&&o&&rn(o)){var r=t.indexOf("?");if(-1!==r){var i=_r(t);t=t.substring(0,r)+"?"+Qn(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){vl(e,t,o[t])}))}return e}({},i,o))}else t+="?"+Qn(this.o.data)}var a={url:t,method:n,data:o};return e.log.splice(100),e.log.push(a),a}},{key:"destruct",value:function(){this.__isDestructed||(this.__isDestructed=!0,this.__activated&&!this.__isFulfilled&&(this.abort(),this.__isFulfilled=!0),this.__async.destruct())}}],o&&hl(t.prototype,o),e}();function bl(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}ml.log=[],function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":gl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)}([Co],ml.prototype,"destruct",null);var yl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,o;return t=e,(o=[{key:"getElm",value:function(e){return this.container.querySelector(".".concat(this.getFullElName(e)))}},{key:"getElms",value:function(e){return Bo(this.container.querySelectorAll(".".concat(this.getFullElName(e))))}}])&&bl(t.prototype,o),e}();function _l(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var jl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,o;return t=e,(o=[{key:"afterSetMod",value:function(e,t){}},{key:"setMod",value:function(e,t,o){e=e.toLowerCase();var n=this.mods[e];if(n===t)return this;var r="".concat(this.componentName,"_").concat(e,"_"),i=(o||this.container).classList;return null!=n&&i.remove("".concat(r).concat(n.toString().toLowerCase())),!Ro(t)&&""!==t&&i.add("".concat(r).concat(t.toString().toLowerCase())),this.mods[e]=t,this.afterSetMod(e,t),this}},{key:"getMod",value:function(e){var t;return null!==(t=this.mods[e])&&void 0!==t?t:null}}])&&_l(t.prototype,o),e}();function wl(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var kl=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,o;return t=e,o=[{key:"getIcon",value:function(t){if(/<svg/i.test(t))return t;var o=e.icons[t]||e.icons[t.replace(/-/g,"_")]||e.icons[t.replace(/_/g,"-")]||e.icons[Tn(t)]||e.icons[xn(t)]||e.icons[t.toLowerCase()];return ft||o||console.warn('Icon "'.concat(t,'" not found')),o}},{key:"exists",value:function(e){return void 0!==this.getIcon(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"<span></span>";return this.getIcon(e)||t}},{key:"set",value:function(e,t){return this.icons[e.replace("_","-")]=t,this}},{key:"makeIcon",value:function(t,o){var n,r,i,a;if(o){var l,s,c=o.name,u=o.iconURL,d=o.fill,f=c.replace(/[^a-zA-Z0-9]/g,"_");/<svg/.test(c)||(s=null===(r=(n=t.o).getIcon)||void 0===r?void 0:r.call(n,c,f));var p="".concat(c).concat(u).concat(d).concat(null!=s?s:"");if(t.o.cache&&this.__cache.has(p))return null===(i=this.__cache.get(p))||void 0===i?void 0:i.cloneNode(!0);if(u)In(l=t.c.span(),"backgroundImage","url("+u.replace("{basePath}",(null==t?void 0:t.basePath)||"")+")");else{var h=s||e.get(c,"")||(null===(a=t.o.extraIcons)||void 0===a?void 0:a[c]);h&&(l=t.c.fromHTML(h.trim()),/^<svg/i.test(c)||l.classList.add("jodit-icon_"+f))}return l&&(l.classList.add("jodit-icon"),l.style.fill=d,t.o.cache&&this.__cache.set(p,l.cloneNode(!0))),l}}}],null&&wl(t.prototype,null),o&&wl(t,o),e}();function Sl(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xl(e,t,o){return xl="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ol(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},xl(e,t,o||e)}function Ol(e){return Ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ol(e)}function Cl(e,t){return Cl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Cl(e,t)}function zl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function El(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(El=function(){return!!e})()}kl.icons={},kl.__cache=new Map;var Tl,Il=Tl=function(e){function t(e,o){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=Ol(t),function(e,t){return!t||"object"!==zl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,El()?Reflect.construct(t,o||[],Ol(e).constructor):t.apply(e,o))}(this,t,[e])).name="",n.__parentElement=null,n.mods={},n.container=n.createContainer(o),Object.defineProperty(n.container,"component",{value:n,configurable:!0}),n}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Cl(e,t)}(t,e),o=t,n=[{key:"parentElement",get:function(){return this.__parentElement},set:function(e){var t=this;this.__parentElement=e,e&&e.hookStatus("beforeDestruct",(function(){return t.destruct()})),this.updateParentElement(this)}},{key:"bubble",value:function(e){for(var t=this.parentElement;t;)e(t),t=t.parentElement;return this}},{key:"updateParentElement",value:function(e){var t;return null===(t=this.__parentElement)||void 0===t||t.updateParentElement(e),this}},{key:"get",value:function(e,o){return xl(Ol(t.prototype),"get",this).call(this,e,o)||this.getElm(e)}},{key:"closest",value:function(e){for(var t="object"===(void 0===e?"undefined":zl(e))?function(t){return t===e}:function(t){return qa.isInstanceOf(t,e)},o=this.__parentElement;o;){if(t(o))return o;o=!o.parentElement&&o.container.parentElement?Tl.closestElement(o.container.parentElement,Tl):o.parentElement}return null}},{key:"update",value:function(){}},{key:"appendTo",value:function(e){return e.appendChild(this.container),this}},{key:"clearName",value:function(e){return e.replace(/[^a-zA-Z0-9]/g,"_")}},{key:"render",value:function(e){return this.j.c.div(this.componentName)}},{key:"createContainer",value:function(e){var t=this.render(e);if(Io(t)){var o=this.parseTemplate(t);return o.classList.add(this.componentName),o}return t}},{key:"parseTemplate",value:function(e){var t=this;return this.j.c.fromHTML(e.replace(/\*([^*]+?)\*/g,(function(e,t){return kl.get(t)||""})).replace(/&_/g,this.componentName+"_").replace(/~([^~]+?)~/g,(function(e,o){return t.i18n(o)})))}},{key:"destruct",value:function(){return ui.safeRemove(this.container),this.parentElement=null,xl(Ol(t.prototype),"destruct",this).call(this)}}],r=[{key:"closestElement",value:function(e,t){var o=ui.up(e,(function(e){if(e){var o=e.component;return o&&qa.isInstanceOf(o,t)}return!1}));return o?null==o?void 0:o.component:null}}],n&&Sl(o.prototype,n),r&&Sl(o,r),t}(Ja);function Pl(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Rl(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Al(e,t,o){return Al="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ll(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Al(e,t,o||e)}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ll(e)}function Ml(e,t){return Ml=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ml(e,t)}function Bl(e){return function(e){if(Array.isArray(e))return Pl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Pl(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Pl(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Nl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nl=function(){return!!e})()}Il=Tl=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":zl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([el(jl,yl)],Il);var Hl,Fl=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Dl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},ql=Hl=function(e){function t(e,o,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,o){return t=Ll(t),function(e,t){return!t||"object"!==Dl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Nl()?Reflect.construct(t,o||[],Ll(e).constructor):t.apply(e,o))}(this,t,[e,n])).options=n,r.syncMod=!1,r.elements=[],r.buttonSize="middle",null==o||o.forEach((function(e){return e&&r.append(e)})),(null==n?void 0:n.name)&&(r.name=n.name),r}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ml(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UIGroup"}},{key:"allChildren",get:function(){for(var e=[],t=Bl(this.elements);t.length;){var o,n=t.shift();if(To(n))(o=t).push.apply(o,Bl(n));else if(qa.isInstanceOf(n,Hl)){var r;(r=t).push.apply(r,Bl(n.elements))}else n&&e.push(n)}return e}},{key:"update",value:function(){this.elements.forEach((function(e){return e.update()})),this.setMod("size",this.buttonSize)}},{key:"append",value:function(e,t){var o=this;if(To(e)){if("number"==typeof t)throw new Error("You can not use index when append array of elements");return e.forEach((function(e){return o.append(e,t)})),this}var n=e,r=void 0;if("number"==typeof t?(r=Math.min(Math.max(0,t),this.elements.length),this.elements.splice(r,0,n)):this.elements.push(n),n.name&&n.container.classList.add(this.getFullElName(n.name)),t&&"string"==typeof t){var i=this.getElm(t);if(null==i)throw new Error("Element does not exist");i.appendChild(n.container)}else this.appendChildToContainer(n.container,r);return n.parentElement=this,this}},{key:"afterSetMod",value:function(e,t){this.syncMod&&this.elements.forEach((function(o){return o.setMod(e,t)}))}},{key:"appendChildToContainer",value:function(e,t){void 0===t||t<0||t>this.elements.length-1||null==this.container.children[t]?this.container.appendChild(e):this.container.insertBefore(e,this.container.children[t])}},{key:"remove",value:function(e){var t=this.elements.indexOf(e);return-1!==t&&(this.elements.splice(t,1),ui.safeRemove(e.container),e.parentElement=null),this}},{key:"clear",value:function(){return this.elements.forEach((function(e){return e.destruct()})),this.elements.length=0,this}},{key:"destruct",value:function(){return this.clear(),Al(Ll(t.prototype),"destruct",this).call(this)}}],n&&Rl(o.prototype,n),t}(Il);function Vl(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wl(e){return Wl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wl(e)}function Ul(e,t){return Ul=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ul(e,t)}function Yl(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Kl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kl=function(){return!!e})()}Fl([Sa("buttonSize")],ql.prototype,"update",null),ql=Hl=Fl([bi],ql);var Gl=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=Wl(o=t),function(e,t){return!t||"object"!==Yl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Kl()?Reflect.construct(o,n||[],Wl(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ul(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"UISeparator"}}])&&Vl(o.prototype,n),t}(Il);function Jl(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Xl(e){return Xl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xl(e)}function Zl(e,t){return Zl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zl(e,t)}function Ql(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function $l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($l=function(){return!!e})()}Gl=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Yl(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],Gl);var es=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=Xl(o=t),function(e,t){return!t||"object"!==Ql(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,$l()?Reflect.construct(o,n||[],Xl(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zl(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"UISpacer"}}])&&Jl(o.prototype,n),t}(Il);function ts(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function os(e){return function(e){if(Array.isArray(e))return ts(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ts(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ts(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}es=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Ql(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],es);var ns=function(e){return To(e.buttons)};function rs(e,t){var o=t.getRegisteredButtonGroups();return new Set(e.reduce((function(e,t){var n;return ns(t)?e=e.concat(os(t.buttons).concat(os(null!==(n=o[t.group])&&void 0!==n?n:[]))):e.push(t),e}),[]))}function is(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function as(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ls(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){as(e,t,o[t])}))}return e}function ss(e,t){var o;return t||(t=tr.defaultOptions.controls),Io(e)?o=cs(e,t)||{name:e,command:e,tooltip:e}:void 0!==t[(o=ls({name:"empty"},br(e))).name]&&(o=ls({},br(t[o.name]),br(o))),o}function cs(e,t){var o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return is(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?is(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.split(/\./),2),n=o[0],r=o[1],i=t;return null!=r?void 0!==t[n]&&(i=t[n]):r=n,i[r]?ls({name:r},br(i[r])):void 0}function us(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ds(e){return ds=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ds(e)}function fs(e,t){return fs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fs(e,t)}function ps(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function hs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(hs=function(){return!!e})()}var vs=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":ps(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},gs=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=ds(t),function(e,t){return!t||"object"!==ps(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,hs()?Reflect.construct(t,o||[],ds(e).constructor):t.apply(e,o))}(this,t,[e])).mode="horizontal",o.removeButtons=[],o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fs(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UIList"}},{key:"__onChangeMode",value:function(){this.setMod("mode",this.mode)}},{key:"makeGroup",value:function(){return new ql(this.jodit)}},{key:"buttons",get:function(){return this.allChildren.filter((function(e){return qa.isInstanceOf(e,xs)}))}},{key:"getButtonsNames",value:function(){return this.buttons.map((function(e){return t=e,(null!=(o=xs)&&"undefined"!=typeof Symbol&&o[Symbol.hasInstance]?!!o[Symbol.hasInstance](t):t instanceof o)&&e.state.name||"";var t,o})).filter((function(e){return""!==e}))}},{key:"setRemoveButtons",value:function(e){return this.removeButtons=e||[],this}},{key:"build",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e=Ei(e),this.clear();var n,r=!1,i=this.makeGroup();this.append(i),i.setMod("line",!0);var a=function(e){var a=null;switch(e.name){case"\n":(i=t.makeGroup()).setMod("line",!0),n=t.makeGroup(),i.append(n),t.append(i);break;case"|":r||(r=!0,a=new Gl(t.j));break;case"---":n.setMod("before-spacer",!0);var l=new es(t.j);i.append(l),n=t.makeGroup(),i.append(n),r=!1;break;default:r=!1,a="select"===e.component?t.makeSelect(e,o):t.makeButton(e,o)}a&&(n||(n=t.makeGroup(),i.append(n)),n.append(a))},l=function(e){var o;return!t.removeButtons.includes(e.name)&&(!e.isVisible||(null===(o=e.isVisible)||void 0===o?void 0:o.call(e,t.j,e)))};return e.forEach((function(e){if(ns(e)){var o=e.buttons.filter((function(e){return e}));o.length&&((n=t.makeGroup()).setMod("separated",!0).setMod("group",e.group),i.append(n),function(e,t){var o=To(e)?e:fr(e,!1).map((function(t){return mr({name:t},e[t]||{})}));return o.map((function(e){return ss(e,t||tr.defaultOptions.controls)}))}(o,t.j.o.controls).filter(l).forEach(a))}else{n||(n=t.makeGroup(),i.append(n));var r=ss(e,t.j.o.controls);l(r)&&a(r)}})),this.update(),this}},{key:"makeSelect",value:function(e,t){throw new Error("Not implemented behaviour")}},{key:"makeButton",value:function(e,t){return new xs(this.j,{name:e.name})}}],n&&us(o.prototype,n),t}(ql);function ms(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bs(e,t,o){return bs="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ys(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},bs(e,t,o||e)}function ys(e){return ys=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ys(e)}function _s(e,t){return _s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_s(e,t)}function js(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ws(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ws=function(){return!!e})()}vs([Sa("mode"),tl("ready")],gs.prototype,"__onChangeMode",null),gs=vs([bi],gs);var ks=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":js(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Ss=function(){return{size:"middle",type:"button",role:"button",name:"",value:"",variant:"initial",disabled:!1,activated:!1,icon:{name:"empty",fill:"",iconURL:""},tooltip:"",text:"",tabIndex:void 0}},xs=function(e){function t(e,o){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=ys(t),function(e,t){return!t||"object"!==js(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ws()?Reflect.construct(t,o||[],ys(e).constructor):t.apply(e,o))}(this,t,[e])).isButton=!0,n.state=Ss(),n.actionHandlers=[],n.button=n.container,n.updateSize(),n.onChangeSize(),n.onChangeStatus(),o&&n.hookStatus(zo.ready,(function(){n.setState(o)})),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_s(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"UIButton"}},{key:"setState",value:function(e){return Object.assign(this.state,e),this}},{key:"text",get:function(){var e=this.getElm("text");return Jn(e,"Text element not found"),e}},{key:"icon",get:function(){var e=this.getElm("icon");return Jn(e,"Icon element not found"),e}},{key:"onChangeSize",value:function(){this.setMod("size",this.state.size)}},{key:"onChangeType",value:function(){Xn(this.container,"type",this.state.type)}},{key:"onChangeRole",value:function(){Xn(this.container,"role",this.state.role)}},{key:"updateSize",value:function(){var e=this.closest(gs);e&&(this.state.size=e.buttonSize)}},{key:"onChangeStatus",value:function(){this.setMod("variant",this.state.variant)}},{key:"onChangeText",value:function(){this.text.textContent=this.jodit.i18n(this.state.text)}},{key:"onChangeTextSetMode",value:function(){this.setMod("text-icons",Boolean(this.state.text.trim().length))}},{key:"onChangeDisabled",value:function(){Xn(this.container,"disabled",this.state.disabled||null)}},{key:"onChangeActivated",value:function(){Xn(this.container,"aria-pressed",this.state.activated)}},{key:"onChangeName",value:function(){this.container.classList.add("".concat(this.componentName,"_").concat(this.clearName(this.state.name))),this.name=this.state.name,Xn(this.container,"data-ref",this.state.name),Xn(this.container,"ref",this.state.name)}},{key:"onChangeTooltip",value:function(){this.get("j.o.useNativeTooltip")&&Xn(this.container,"title",this.state.tooltip),Xn(this.container,"aria-label",this.state.tooltip)}},{key:"onChangeTabIndex",value:function(){Xn(this.container,"tabindex",this.state.tabIndex)}},{key:"onChangeIcon",value:function(){var e=this.get("j.o.textIcons");if(!(!0===e||Oo(e)&&e(this.state.name))){ui.detach(this.icon);var t=kl.makeIcon(this.j,this.state.icon);t&&this.icon.appendChild(t)}}},{key:"focus",value:function(){this.container.focus()}},{key:"isFocused",value:function(){var e=this.od.activeElement;return Boolean(e&&ui.isOrContains(this.container,e))}},{key:"createContainer",value:function(){var e=this.componentName,t=this.j.c.element("button",{class:e,type:"button",role:"button",ariaPressed:!1}),o=this.j.c.span(e+"__icon"),n=this.j.c.span(e+"__text");return t.appendChild(o),t.appendChild(n),t}},{key:"destruct",value:function(){return this.j.e.off(this.container),bs(ys(t.prototype),"destruct",this).call(this)}},{key:"onAction",value:function(e){return this.actionHandlers.push(e),this}},{key:"__onActionFire",value:function(e){var t=this;e.buffer={actionTrigger:this},this.actionHandlers.forEach((function(o){return o.call(t,e)}))}}])&&ms(o.prototype,n),t}(Il);function Os(e,t,o,n){var r=new xs(e);return r.state.tabIndex=e.o.allowTabNavigation?0:-1,Io(t)?(r.state.icon.name=t,r.state.name=t,n&&(r.state.variant=n),o&&(r.state.text=o)):r.setState(t),r}function Cs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zs(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Es(e){return Es=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Es(e)}function Ts(e,t){return Ts=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ts(e,t)}function Is(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ps(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ps=function(){return!!e})()}ks([fi],xs.prototype,"text",null),ks([fi],xs.prototype,"icon",null),ks([Sa("state.size",{immediately:!1})],xs.prototype,"onChangeSize",null),ks([Sa("state.type",{immediately:!1})],xs.prototype,"onChangeType",null),ks([Sa("state.role",{immediately:!1})],xs.prototype,"onChangeRole",null),ks([Sa("parentElement")],xs.prototype,"updateSize",null),ks([Sa("state.variant",{immediately:!1})],xs.prototype,"onChangeStatus",null),ks([Sa("state.text",{immediately:!1})],xs.prototype,"onChangeText",null),ks([Sa("state.text",{immediately:!1})],xs.prototype,"onChangeTextSetMode",null),ks([Sa("state.disabled")],xs.prototype,"onChangeDisabled",null),ks([Sa("state.activated")],xs.prototype,"onChangeActivated",null),ks([Sa("state.name",{immediately:!1})],xs.prototype,"onChangeName",null),ks([Sa("state.tooltip",{immediately:!1})],xs.prototype,"onChangeTooltip",null),ks([Sa("state.tabIndex",{immediately:!1})],xs.prototype,"onChangeTabIndex",null),ks([Sa("state.icon",{immediately:!1})],xs.prototype,"onChangeIcon",null),ks([pi],xs.prototype,"createContainer",null),ks([Sa("button:click")],xs.prototype,"__onActionFire",null),xs=ks([bi],xs);var Rs=function(e){function t(e){var o,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{radio:!0};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Es(t),function(e,t){return!t||"object"!==Is(t)&&"function"!=typeof t?Cs(e):t}(e,Ps()?Reflect.construct(t,o||[],Es(e).constructor):t.apply(e,o))}(this,t,[e,null===(n=i.options)||void 0===n?void 0:n.map((function(t){var n=new xs(e,{text:t.text,value:t.value,variant:"primary"});return n.onAction((function(){Cs(o).select(t.value)})),n})),i])).options=i,o.select(null!==(r=i.value)&&void 0!==r?r:0),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ts(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UIButtonGroup"}},{key:"render",value:function(e){return'<div>\n\t\t\t<div class="&__label">~'.concat(e.label,'~</div>\n\t\t\t<div class="&__options"></div>\n\t\t</div>')}},{key:"appendChildToContainer",value:function(e){var t=this.getElm("options");Jn(null!=t,"Options does not exist"),t.appendChild(e)}},{key:"select",value:function(e){var t,o,n=this;this.elements.forEach((function(t,o){o===e||t.state.value===e?t.state.activated=!0:n.options.radio&&(t.state.activated=!1)}));var r=this.elements.filter((function(e){return e.state.activated})).map((function(e){return{text:e.state.text,value:e.state.value}}));this.jodit.e.fire(this,"select",r),null===(o=(t=this.options).onChange)||void 0===o||o.call(t,r)}}],n&&zs(o.prototype,n),t}(ql);function As(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ls(e,t,o){return Ls="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ms(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Ls(e,t,o||e)}function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ms(e)}function Bs(e,t){return Bs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bs(e,t)}function Ds(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ns(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ns=function(){return!!e})()}Rs=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Is(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],Rs);var Hs,Fs=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Ds(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},qs=["scroll.tooltip","joditCloseDialog","mouseleave.tooltip"],Vs=["escape.tooltip","change.tooltip","changePlace.tooltip","afterOpenPopup.tooltip","hidePopup.tooltip","beforePopupClose.tooltip","closeAllPopups.tooltip"],Ws=Hs=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Ms(t),function(e,t){return!t||"object"!==Ds(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Ns()?Reflect.construct(t,o||[],Ms(e).constructor):t.apply(e,o))}(this,t,[e])).__isOpened=!1,o.__attachedContainers=new Set,o.__listenClose=!1,o.__currentTarget=null,o.__delayShowTimeout=0,o.__hideTimeout=0,e.o.textIcons||!e.o.showTooltip||e.o.useNativeTooltip||(o.j.e.on("getContainer",(function(e){o.__onAttach(e)})),e.hookStatus(zo.ready,(function(){o.__onAttach(o.j.container)}))),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bs(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"UITooltip"}},{key:"render",value:function(){return'<div><div class="&__content"></div></div>'}},{key:"__onAttach",value:function(e){Ba(this.j,Hs).appendChild(this.container),this.__attachedContainers.add(e),this.__attachedContainers.add(this.j.container),this.j.e.on(e,"mouseenter.tooltip",this.__onMouseEnter,{capture:!0}).on(e,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0}).on(this.j.container,"mouseleave.tooltip",this.__onMouseLeave,{capture:!0})}},{key:"__addListenersOnEnter",value:function(){if(!this.__listenClose){this.__listenClose=!0;var e=this.j;e.e.on(e.ow,qs,this.__hide).on(Vs,this.__hide)}}},{key:"__removeListenersOnLeave",value:function(){if(this.__listenClose){this.__listenClose=!1;var e=this.j;e.e.off(e.ow,qs,this.__hide).off(Vs,this.__hide)}}},{key:"__onMouseLeave",value:function(e){this.__currentTarget===e.target&&(this.__hideDelay(),this.__currentTarget=null)}},{key:"__onMouseEnter",value:function(e){if(ui.isHTMLElement(e.target)){var t=Xn(e.target,"aria-label");if(t&&!Boolean(Xn(e.target,"disabled"))&&e.target.className.includes("jodit")){this.__currentTarget=e.target;var o=e.target;this.__open((function(){var e=$i(o);return{x:e.left+e.width/2,y:e.top+e.height}}),t)}}}},{key:"__open",value:function(e,t){var o=this;this.__addListenersOnEnter(),this.__isOpened=!0,this.j.async.clearTimeout(this.__hideTimeout),this.j.async.clearTimeout(this.__delayShowTimeout);var n=this.j.o.showTooltipDelay||this.j.defaultTimeout;n?this.__delayShowTimeout=this.j.async.setTimeout((function(){return o.__show(e,t)}),n):this.__show(e,t)}},{key:"__show",value:function(e,t){this.setMod("visible",!0),this.getElm("content").innerHTML=t;var o=e();In(this.container,{left:o.x,top:o.y})}},{key:"__hide",value:function(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__removeListenersOnLeave(),this.__isOpened&&(this.__isOpened=!1,this.setMod("visible",!1),this.getElm("content").innerHTML="",In(this.container,{left:-5e3}))}},{key:"__hideDelay",value:function(){this.j.async.clearTimeout(this.__delayShowTimeout),this.j.async.clearTimeout(this.__hideTimeout),this.__isOpened&&(this.__hideTimeout=this.async.setTimeout(this.__hide,this.j.defaultTimeout))}},{key:"destruct",value:function(){var e=this;this.__attachedContainers.forEach((function(t){e.j.e.off(t,"mouseenter.tooltip",e.__onMouseEnter).off(t,"mouseleave.tooltip",e.__onMouseLeave)})),this.__hide(),Ls(Ms(t.prototype),"destruct",this).call(this)}}])&&As(o.prototype,n),t}(Il);function Us(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ys(e){return Ys=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ys(e)}function Ks(e,t){return Ks=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ks(e,t)}function Gs(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Js(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Js=function(){return!!e})()}Fs([Co],Ws.prototype,"__onMouseLeave",null),Fs([Co],Ws.prototype,"__onMouseEnter",null),Fs([Co],Ws.prototype,"__hide",null),Fs([Co],Ws.prototype,"__hideDelay",null),Ws=Hs=Fs([bi],Ws);var Xs=function(e){function t(e,o){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{align:"left"};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=Ys(t),function(e,t){return!t||"object"!==Gs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Js()?Reflect.construct(t,o||[],Ys(e).constructor):t.apply(e,o))}(this,t,[e,o])).options=r,n.setMod("align",n.options.align||"left"),n.setMod("width",n.options.width||""),n.options.mod&&n.setMod(n.options.mod,!0),n.options.className&&n.container.classList.add(n.options.className),Xn(n.container,"data-ref",r.ref),Xn(n.container,"ref",r.ref),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ks(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"UIBlock"}}])&&Us(o.prototype,n),t}(ql);Xs=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Gs(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],Xs);var Zs=function(e){return!!dn(e.value).length||(e.error="Please fill out this field",!1)},Qs=function(e){return!!sn(dn(e.value))||(e.error="Please enter a web address",!1)},$s=function(e){return!!dn(e.value).length||(e.error="Please fill out this field",!1)};function ec(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tc(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function oc(e,t,o){return oc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nc(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},oc(e,t,o||e)}function nc(e){return nc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nc(e)}function rc(e,t){return rc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rc(e,t)}function ic(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ac(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ac=function(){return!!e})()}var lc,sc=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":ic(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},cc=lc=function(e){function t(e,o){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=nc(t),function(e,t){return!t||"object"!==ic(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ac()?Reflect.construct(t,o||[],nc(e).constructor):t.apply(e,o))}(this,t,[e,o])).label=n.j.c.span(n.getFullElName("label")),n.icon=n.j.c.span(n.getFullElName("icon")),n.clearButton=n.j.c.span(n.getFullElName("clear"),kl.get("cancel")),n.state=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){tc(e,t,o[t])}))}return e}({},lc.defaultState),n.__errorBox=n.j.c.span(n.getFullElName("error")),n.validators=new Set([]),void 0!==(null==o?void 0:o.value)&&(o.value=o.value.toString()),Object.assign(n.state,o),void 0!==n.state.clearButton&&(n.j.e.on(n.clearButton,"click",(function(e){e.preventDefault(),n.nativeInput.value="",n.j.e.fire(n.nativeInput,"input"),n.focus()})).on(n.nativeInput,"input",(function(){n.state.clearButton=Boolean(n.value.length)})),n.state.clearButton=Boolean(n.value.length)),n.j.e.on(n.nativeInput,"focus blur",(function(){n.onChangeFocus()})).on(n.nativeInput,"input change",n.onChangeValue),n.onChangeState(),n.onChangeClassName(),n.onChangeStateValue(),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rc(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UIInput"}},{key:"onChangeClear",value:function(){this.state.clearButton?ui.after(this.nativeInput,this.clearButton):ui.safeRemove(this.clearButton)}},{key:"onChangeClassName",value:function(e,t){t&&this.container.classList.remove(t),this.state.className&&this.container.classList.add(this.state.className)}},{key:"onChangeState",value:function(){this.name=this.state.name;var e=this.nativeInput,t=this.state,o=t.name,n=t.icon,r=t.type,i=t.ref,a=t.required,l=t.placeholder,s=t.autocomplete,c=t.label;Xn(e,"name",o),Xn(e,"type",r),Xn(e,"data-ref",i||o),Xn(e,"ref",i||o),Xn(e,"required",a||null),Xn(e,"autocomplete",s?null:"off"),Xn(e,"placeholder",l?this.j.i18n(l):""),n&&kl.exists(n)?(ui.before(e,this.icon),this.icon.innerHTML=kl.get(n)):ui.safeRemove(this.icon),c?(ui.before(this.wrapper,this.label),this.label.innerText=this.j.i18n(c)):ui.safeRemove(this.label),this.updateValidators()}},{key:"updateValidators",value:function(){var e,t=this;this.validators.clear(),this.state.required&&this.validators.add(Zs),null===(e=this.state.validators)||void 0===e||e.forEach((function(e){var o=s[e];o&&t.validators.add(o)}))}},{key:"error",set:function(e){this.setMod("has-error",Boolean(e)),e?(this.__errorBox.innerText=this.j.i18n(e,this.j.i18n(this.state.label||"")),this.container.appendChild(this.__errorBox)):ui.safeRemove(this.__errorBox)}},{key:"value",get:function(){return this.nativeInput.value},set:function(e){this.value!==e&&(this.nativeInput.value=e,this.onChangeValue())}},{key:"onChangeStateValue",value:function(){var e=this.state.value.toString();e!==this.value&&(this.value=e)}},{key:"onChangeValue",value:function(){var e,t,o=this.value;this.state.value!==o&&(this.state.value=o,this.j.e.fire(this,"change",o),null===(t=(e=this.state).onChange)||void 0===t||t.call(e,o))}},{key:"validate",value:function(){var e=this;this.error="";var t=Bo(this.validators).every((function(t){return t(e)}));return this.__markInputInvalid(),t}},{key:"__markInputInvalid",value:function(){var e,t,o,n;this.error?(this.nativeInput.setAttribute("aria-invalid","true"),null===(t=(e=this.nativeInput).setCustomValidity)||void 0===t||t.call(e,this.error)):(this.nativeInput.removeAttribute("aria-invalid"),null===(n=(o=this.nativeInput).setCustomValidity)||void 0===n||n.call(o,""))}},{key:"createContainer",value:function(e){var o=oc(nc(t.prototype),"createContainer",this).call(this);this.wrapper=this.j.c.div(this.getFullElName("wrapper")),this.nativeInput||(this.nativeInput=this.createNativeInput());var n=this.nativeInput;return n.classList.add(this.getFullElName("input")),this.wrapper.appendChild(n),o.appendChild(this.wrapper),Xn(n,"dir",this.j.o.direction||"auto"),o}},{key:"createNativeInput",value:function(e){return this.j.create.element("input")}},{key:"focus",value:function(){this.nativeInput.focus()}},{key:"isFocused",get:function(){return this.nativeInput===this.j.od.activeElement}},{key:"onChangeFocus",value:function(){this.setMod("focused",this.isFocused)}}],n&&ec(o.prototype,n),t}(Il);function uc(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function dc(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function fc(e,t,o){return fc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=pc(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},fc(e,t,o||e)}function pc(e){return pc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pc(e)}function hc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){dc(e,t,o[t])}))}return e}function vc(e,t){return vc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vc(e,t)}function gc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function mc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mc=function(){return!!e})()}cc.defaultState={className:"",autocomplete:!0,name:"",value:"",icon:"",label:"",ref:"",type:"text",placeholder:"",required:!1,validators:[]},sc([Sa("state.clearButton")],cc.prototype,"onChangeClear",null),sc([Sa("state.className")],cc.prototype,"onChangeClassName",null),sc([Sa(["state.name","state.type","state.label","state.placeholder","state.autocomplete","state.icon"],{immediately:!1}),Xa()],cc.prototype,"onChangeState",null),sc([Sa("state.value")],cc.prototype,"onChangeStateValue",null),sc([Co],cc.prototype,"onChangeValue",null),cc=lc=sc([bi],cc);var bc,yc=bc=function(e){function t(e,o){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=pc(t),function(e,t){return!t||"object"!==gc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,mc()?Reflect.construct(t,o||[],pc(e).constructor):t.apply(e,o))}(this,t,[e,o])).state=hc({},bc.defaultState),Object.assign(n.state,o),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vc(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"UISelect"}},{key:"createContainer",value:function(e){var o,n=fc(pc(t.prototype),"createContainer",this).call(this,e),r=this.j,i=this.nativeInput,a=function(){return r.create.element("option")};if(void 0!==e.placeholder){var l=a();l.value="",l.text=r.i18n(e.placeholder),i.add(l)}return null===(o=e.options)||void 0===o||o.forEach((function(e){var t=a();t.value=e.value.toString(),t.text=r.i18n(e.text),i.add(t)})),e.size&&e.size>0&&Xn(i,"size",e.size),e.multiple&&Xn(i,"multiple",""),n}},{key:"createNativeInput",value:function(){return this.j.create.element("select")}},{key:"updateValidators",value:function(){fc(pc(t.prototype),"updateValidators",this).call(this),this.state.required&&(this.validators.delete(Zs),this.validators.add($s))}}])&&uc(o.prototype,n),t}(cc);function _c(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function jc(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wc(e)}function kc(e,t){return kc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kc(e,t)}function Sc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function xc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xc=function(){return!!e})()}yc.defaultState=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}(hc({},cc.defaultState),{options:[],size:1,multiple:!1}),yc=bc=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":gc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],yc);var Oc=function(e){function t(){for(var e=arguments.length,o=new Array(e),n=0;n<e;n++)o[n]=arguments[n];var r,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(null===(i=(r=function(e,t,o){return t=wc(t),function(e,t){return!t||"object"!==Sc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,xc()?Reflect.construct(t,o||[],wc(e).constructor):t.apply(e,o))}(this,t,function(e){return function(e){if(Array.isArray(e))return _c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _c(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o))).options)||void 0===i?void 0:i.className)&&r.container.classList.add(null===(a=r.options)||void 0===a?void 0:a.className),r}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kc(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UIForm"}},{key:"submit",value:function(){this.j.e.fire(this.container,"submit")}},{key:"validate",value:function(){var e=this.allChildren.filter((function(e){return qa.isInstanceOf(e,cc)})),t=!0,o=!1,n=void 0;try{for(var r,i=e[Symbol.iterator]();!(t=(r=i.next()).done);t=!0)if(!r.value.validate())return!1}catch(e){o=!0,n=e}finally{try{t||null==i.return||i.return()}finally{if(o)throw n}}var a=this.allChildren.filter((function(e){return qa.isInstanceOf(e,yc)})),l=!0,s=!1,c=void 0;try{for(var u,d=a[Symbol.iterator]();!(l=(u=d.next()).done);l=!0)if(!u.value.validate())return!1}catch(e){s=!0,c=e}finally{try{l||null==d.return||d.return()}finally{if(s)throw c}}return!0}},{key:"onSubmit",value:function(e){var t=this;return this.j.e.on(this.container,"submit",(function(){var o=t.allChildren.filter((function(e){return qa.isInstanceOf(e,cc)}));return!!t.validate()&&(e(o.reduce((function(e,t){return e[t.state.name]=t.value,e}),{})),!1)})),this}},{key:"createContainer",value:function(){var e=this.j.c.element("form");return e.classList.add(this.componentName),Xn(e,"dir",this.j.o.direction||"auto"),Xn(e,"novalidate",""),e}}],n&&jc(o.prototype,n),t}(ql);function Cc(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zc(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Ec(e){return Ec=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ec(e)}function Tc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){zc(e,t,o[t])}))}return e}function Ic(e,t){return Ic=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ic(e,t)}function Pc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Rc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rc=function(){return!!e})()}Oc=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Sc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],Oc);var Ac,Lc=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Pc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Mc=Ac=function(e){function t(e,o){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=Ec(t),function(e,t){return!t||"object"!==Pc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Rc()?Reflect.construct(t,o||[],Ec(e).constructor):t.apply(e,o))}(this,t,[e,o])).state=Tc({},Ac.defaultState),Object.assign(n.state,o),!1===n.state.resizable&&(n.nativeInput.style.resize="none"),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ic(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UITextArea"}},{key:"createNativeInput",value:function(e){return this.j.create.element("textarea")}},{key:"onChangeStateSize",value:function(){var e=this.state,t=e.size,o=e.resizable;this.nativeInput.style.resize=o?"auto":"none",this.nativeInput.rows=null!=t?t:5}}],n&&Cc(o.prototype,n),t}(cc);function Bc(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Dc(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Nc(e){return Nc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nc(e)}function Hc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){Dc(e,t,o[t])}))}return e}function Fc(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}function qc(e,t){return qc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},qc(e,t)}function Vc(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Wc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Wc=function(){return!!e})()}Mc.defaultState=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}(Tc({},cc.defaultState),{size:5,resizable:!0}),Lc([Sa(["state.size","state.resizable"])],Mc.prototype,"onChangeStateSize",null),Mc=Ac=Lc([bi],Mc);var Uc,Yc=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Vc(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Kc=Uc=function(e){function t(e,o){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=Nc(t),function(e,t){return!t||"object"!==Vc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Wc()?Reflect.construct(t,o||[],Nc(e).constructor):t.apply(e,o))}(this,t,[e,Fc(Hc({},o),{type:"checkbox"})])).state=Hc({},Uc.defaultState),Object.assign(n.state,o),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qc(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"UICheckbox"}},{key:"render",value:function(){return this.j.c.element("label",{className:this.componentName})}},{key:"onChangeChecked",value:function(){this.value=this.state.checked.toString(),this.nativeInput.checked=this.state.checked,this.setMod("checked",this.state.checked)}},{key:"onChangeNativeCheckBox",value:function(){this.state.checked=this.nativeInput.checked}},{key:"onChangeSwitch",value:function(){this.setMod("switch",this.state.switch);var e=this.getElm("switch-slider");this.state.switch?(e||(e=this.j.c.div(this.getFullElName("switch-slider"))),ui.after(this.nativeInput,e)):ui.safeRemove(e)}}])&&Bc(o.prototype,n),t}(cc);function Gc(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Jc(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Xc(e){return Xc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xc(e)}function Zc(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){Jc(e,t,o[t])}))}return e}function Qc(e,t){return Qc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Qc(e,t)}function $c(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function eu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eu=function(){return!!e})()}Kc.defaultState=Fc(Hc({},cc.defaultState),{checked:!1,switch:!1}),Yc([Sa("state.checked"),tl("ready")],Kc.prototype,"onChangeChecked",null),Yc([Sa("nativeInput:change")],Kc.prototype,"onChangeNativeCheckBox",null),Yc([Sa("state.switch"),tl("ready")],Kc.prototype,"onChangeSwitch",null),Kc=Uc=Yc([bi],Kc);var tu=function(e){function t(e,o){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=Xc(t),function(e,t){return!t||"object"!==$c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,eu()?Reflect.construct(t,o||[],Xc(e).constructor):t.apply(e,o))}(this,t,[e,Zc({type:"file"},o)])).state=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}(Zc({},cc.defaultState),{type:"file",onlyImages:!0}),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qc(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UIFileInput"}},{key:"createContainer",value:function(e){this.button=new xs(this.j,{tooltip:e.tooltip,icon:{name:"plus"}});var t=this.button.container;this.nativeInput||(this.nativeInput=this.createNativeInput(e));var o=this.nativeInput;return o.classList.add(this.getFullElName("input")),t.classList.add(this.componentName),t.appendChild(o),t}},{key:"createNativeInput",value:function(e){return this.j.create.fromHTML('<input\n\t\t\ttype="file"\n\t\t\taccept="'.concat(e.onlyImages?"image/*":"*",'"\n\t\t\ttabindex="-1"\n\t\t\tdir="auto"\n\t\t\tmultiple=""\n\t\t/>'))}}],n&&Gc(o.prototype,n),t}(cc);function ou(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function nu(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ru(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function iu(e,t,o){return iu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=au(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},iu(e,t,o||e)}function au(e){return au=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},au(e)}function lu(e,t){return lu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lu(e,t)}function su(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ou(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ou(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cu(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function uu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uu=function(){return!!e})()}tu=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":$c(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],tu);var du=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":cu(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},fu=["escape","cut","delete","backSpaceAfterDelete","beforeCommandDelete"],pu=function(e){function t(e){var o,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=au(t),function(e,t){return!t||"object"!==cu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,uu()?Reflect.construct(t,o||[],au(e).constructor):t.apply(e,o))}(this,t,[e])).smart=n,o.isOpened=!1,o.strategy="leftBottom",o.viewBound=function(){return{left:0,top:0,width:o.ow.innerWidth,height:o.ow.innerHeight}},o.__childrenPopups=new Set,Xn(o.container,"role","popup"),o}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lu(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"Popup"}},{key:"appendChildToContainer",value:function(e){var t=this.getElm("content");Jn(t,"Content element should exist"),t.appendChild(e)}},{key:"updateParentElement",value:function(e){var o=this;return e!==this&&qa.isInstanceOf(e,t)&&(this.__childrenPopups.forEach((function(t){!e.closest(t)&&t.isOpened&&t.close()})),this.__childrenPopups.has(e)||this.j.e.on(e,"beforeClose",(function(){o.__childrenPopups.delete(e)})),this.__childrenPopups.add(e)),iu(au(t.prototype),"updateParentElement",this).call(this,e)}},{key:"setContent",value:function(e){if(this.allChildren.length)throw new Error("Remove children");if(qa.isInstanceOf(e,Il))this.append(e);else{var t=Io(e)?this.j.c.fromHTML(e):e;this.appendChildToContainer(t)}return this.updatePosition(),this}},{key:"open",value:function(e){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;if(cr(this.jodit,this.container),this.container.classList.add("jodit_theme_".concat(this.jodit.o.theme)),this.__calculateZIndex(),this.isOpened=!0,this.__addGlobalListeners(),this.__targetBound=o?this.getKeepBound(e):e,n)n.appendChild(this.container);else{var r=Ba(this.jodit,t);n!==this.container.parentElement&&r.appendChild(this.container)}return this.updatePosition(),this.j.e.fire(this,"afterOpen"),this.j.e.fire("afterOpenPopup",this),this}},{key:"__calculateZIndex",value:function(){var e=this;if(!this.container.style.zIndex){var t=function(t){var o=t.container.style.zIndex||t.o.zIndex;return!!o&&(e.setZIndex(1+parseInt(o.toString(),10)),!0)};if(!t(this.j))for(var o=this.parentElement;o;){if(t(o.j))return;if(o.container.style.zIndex)return void this.setZIndex(1+parseInt(o.container.style.zIndex.toString(),10));if(!o.parentElement&&o.container.parentElement){var n=Il.closestElement(o.container.parentElement,Il);if(n){o=n;continue}}o=o.parentElement}}}},{key:"getKeepBound",value:function(e){var t=this,o=e(),n=this.od.elementFromPoint(o.left,o.top);if(!n)return e;var r=ui.isHTMLElement(n)?n:n.parentElement,i=$i(r,this.j);return function(){var o=e(),n=$i(r,t.j);return function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){ru(e,t,o[t])}))}return e}({},o),{top:o.top+(n.top-i.top),left:o.left+(n.left-i.left)})}}},{key:"updatePosition",value:function(){if(!this.isOpened)return this;var e=su(this.__calculatePosition(this.__targetBound(),this.viewBound(),$i(this.container,this.j)),2),t=e[0],o=e[1];return this.setMod("strategy",o),In(this.container,{left:t.left,top:t.top}),this.__childrenPopups.forEach((function(e){return e.updatePosition()})),this}},{key:"__throttleUpdatePosition",value:function(){this.updatePosition()}},{key:"__calculatePosition",value:function(e,o,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.strategy,i={left:e.left,right:e.left-(n.width-e.width)},a={bottom:e.top+e.height,top:e.top-n.height},l=Object.keys(i).reduce((function(e,t){return e.concat(Object.keys(a).map((function(e){return"".concat(t).concat(ta(e))})))}),[]),s=function(e){var t=su(xn(e).split("-"),2),o=t[0],r=t[1];return{left:i[o],top:a[r],width:n.width,height:n.height}},c=function(e){var o;return o=t.boxInView(s(r),e)?r:l.find((function(o){if(t.boxInView(s(o),e))return o}))||null,o},u=c($i(this.j.container,this.j));return u&&t.boxInView(s(u),o)||(u=c(o)||u||r),[s(u),u]}},{key:"close",value:function(){return this.isOpened?(this.isOpened=!1,this.__childrenPopups.forEach((function(e){return e.close()})),this.j.e.fire(this,"beforeClose"),this.j.e.fire("beforePopupClose",this),this.__removeGlobalListeners(),ui.safeRemove(this.container),this):this}},{key:"__closeOnOutsideClick",value:function(e){this.isOpened&&!this.isOwnClick(e)&&this.close()}},{key:"isOwnClick",value:function(e){if(!e.target)return!1;var o=Il.closestElement(e.target,t);return Boolean(o&&(this===o||o.closest(this)))}},{key:"__addGlobalListeners",value:function(){var e=this,t=this.__throttleUpdatePosition,o=this.ow;Na.on("closeAllPopups",this.close),this.smart&&this.j.e.on(fu,this.close).on("mousedown touchstart",this.__closeOnOutsideClick).on(o,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.on("closeAllPopups",this.close).on("resize",t).on(this.container,"scroll mousewheel",t).on(o,"scroll",t).on(o,"resize",t),ui.up(this.j.container,(function(o){o&&e.j.e.on(o,"scroll mousewheel",t)}))}},{key:"__removeGlobalListeners",value:function(){var e=this,t=this.__throttleUpdatePosition,o=this.ow;Na.off("closeAllPopups",this.close),this.smart&&this.j.e.off(fu,this.close).off("mousedown touchstart",this.__closeOnOutsideClick).off(o,"mousedown touchstart",this.__closeOnOutsideClick),this.j.e.off("closeAllPopups",this.close).off("resize",t).off(this.container,"scroll mousewheel",t).off(o,"scroll",t).off(o,"resize",t),this.j.container.isConnected&&ui.up(this.j.container,(function(o){o&&e.j.e.off(o,"scroll mousewheel",t)}))}},{key:"setZIndex",value:function(e){this.container.style.zIndex=e.toString()}},{key:"render",value:function(){return'<div>\n\t\t\t<div class="&__content"></div>\n\t\t</div>'}},{key:"destruct",value:function(){return this.close(),iu(au(t.prototype),"destruct",this).call(this)}}],r=[{key:"boxInView",value:function(e,t){return e.top-t.top>=-2&&e.left-t.left>=-2&&t.top+t.height-(e.top+e.height)>=-2&&t.left+t.width-(e.left+e.width)>=-2}}],n&&nu(o.prototype,n),r&&nu(o,r),t}(ql);function hu(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vu(e,t,o){return vu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=gu(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},vu(e,t,o||e)}function gu(e){return gu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gu(e)}function mu(e,t){return mu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mu(e,t)}function bu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bu=function(){return!!e})()}du([Co],pu.prototype,"updatePosition",null),du([Za(10),Co],pu.prototype,"__throttleUpdatePosition",null),du([Co],pu.prototype,"close",null),du([Co],pu.prototype,"__closeOnOutsideClick",null);var yu=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=gu(o=t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,bu()?Reflect.construct(o,n||[],gu(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mu(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"ProgressBar"}},{key:"render",value:function(){return"<div><div></div></div>"}},{key:"show",value:function(){return(this.j.workplace||this.j.container).appendChild(this.container),this}},{key:"hide",value:function(){return ui.safeRemove(this.container),this}},{key:"progress",value:function(e){return this.container.style.width=e.toFixed(2)+"%",this}},{key:"destruct",value:function(){return this.hide(),vu(gu(t.prototype),"destruct",this).call(this)}}])&&hu(o.prototype,n),t}(Il);function _u(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ju=function(){function e(t,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.document=t,this.createAttributes=o}var t,o;return t=e,o=[{key:"doc",get:function(){return Oo(this.document)?this.document():this.document}},{key:"element",value:function(e,t,o){var n=this,r=this.doc.createElement(e.toLowerCase());return this.applyCreateAttributes(r),t&&(rn(t)?Xn(r,t):o=t),o&&zi(o).forEach((function(e){return r.appendChild(Io(e)?n.fromHTML(e):e)})),r}},{key:"div",value:function(e,t,o){var n=this.element("div",t,o);return e&&(n.className=e),n}},{key:"sandbox",value:function(){var e,t=this.element("iframe",{sandbox:"allow-same-origin"});this.doc.body.appendChild(t);var o=null===(e=t.contentWindow)||void 0===e?void 0:e.document;if(Jn(o,"iframe.contentWindow.document"),!o)throw Error("Iframe error");return o.open(),o.write("<!DOCTYPE html><html><head></head><body></body></html>"),o.close(),[o.body,t]}},{key:"span",value:function(e,t,o){var n=this.element("span",t,o);return e&&(n.className=e),n}},{key:"a",value:function(e,t,o){var n=this.element("a",t,o);return e&&(n.className=e),n}},{key:"text",value:function(e){return this.doc.createTextNode(e)}},{key:"fake",value:function(){return this.text(bt)}},{key:"fragment",value:function(){return this.doc.createDocumentFragment()}},{key:"fromHTML",value:function(e,t){var o=this.div();o.innerHTML=e.toString();var n=o.firstChild===o.lastChild&&o.firstChild?o.firstChild:o;if(ui.safeRemove(n),t){var r=Zr(n);Object.keys(t).forEach((function(e){var o=r[e];o&&!1===t[e]&&ui.hide(o)}))}return n}},{key:"applyCreateAttributes",value:function(e){if(this.createAttributes){var t=this.createAttributes;if(t&&t[e.tagName.toLowerCase()]){var o=t[e.tagName.toLowerCase()];Oo(o)?o(e):rn(o)&&Xn(e,o)}}}}],o&&_u(t.prototype,o),e}();function wu(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ku,Su=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rootKey=t}var t,o;return t=e,o=[{key:"set",value:function(e,t){try{var o=localStorage.getItem(this.rootKey),n=o?JSON.parse(o):{};n[e]=t,localStorage.setItem(this.rootKey,JSON.stringify(n))}catch(e){}return this}},{key:"delete",value:function(e){try{localStorage.removeItem(this.rootKey)}catch(e){}return this}},{key:"get",value:function(e){try{var t=localStorage.getItem(this.rootKey),o=t?JSON.parse(t):{};return void 0!==o[e]?o[e]:void 0}catch(e){}}},{key:"exists",value:function(e){return null!=this.get(e)}},{key:"clear",value:function(){try{localStorage.removeItem(this.rootKey)}catch(e){}return this}}],o&&wu(t.prototype,o),e}();function xu(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Ou=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=new Map}var t,o;return t=e,o=[{key:"set",value:function(e,t){return this.data.set(e,t),this}},{key:"delete",value:function(e){return this.data.delete(e),this}},{key:"get",value:function(e){return this.data.get(e)}},{key:"exists",value:function(e){return this.data.has(e)}},{key:"clear",value:function(){return this.data.clear(),this}}],o&&xu(t.prototype,o),e}();function Cu(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var zu="Jodit_",Eu=function(){function e(t,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.provider=t,this.prefix=zu,o&&(this.prefix+=o)}var t,o,n;return t=e,o=[{key:"set",value:function(e,t){return this.provider.set(Tn(this.prefix+e),t),this}},{key:"delete",value:function(e){return this.provider.delete(Tn(this.prefix+e)),this}},{key:"get",value:function(e){return this.provider.get(Tn(this.prefix+e))}},{key:"exists",value:function(e){return this.provider.exists(Tn(this.prefix+e))}},{key:"clear",value:function(){return this.provider.clear(),this}}],n=[{key:"makeStorage",value:function(){var t,o=arguments.length>1?arguments[1]:void 0;return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(void 0===ku&&(ku=function(){var e="___Jodit___"+Math.random().toString();try{localStorage.setItem(e,"1");var t="1"===localStorage.getItem(e);return localStorage.removeItem(e),t}catch(e){}return!1}()),ku)&&(t=new Su(zu+o)),t||(t=new Ou),new e(t,o)}}],o&&Cu(t.prototype,o),n&&Cu(t,n),e}();function Tu(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Iu(e){return Iu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Iu(e)}function Pu(e,t){return Pu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pu(e,t)}function Ru(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Au(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Au=function(){return!!e})()}var Lu=function(e){function t(e,o){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=Iu(t),function(e,t){return!t||"object"!==Ru(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Au()?Reflect.construct(t,o||[],Iu(e).constructor):t.apply(e,o))}(this,t,[e])).setMod("active",!0),n.setMod("variant",o.variant),n.container.textContent=o.text,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pu(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"UIMessage"}}])&&Tu(o.prototype,n),t}(Il);function Mu(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bu(e){return Bu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bu(e)}function Du(e,t){return Du=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Du(e,t)}function Nu(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Hu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hu=function(){return!!e})()}Lu=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Ru(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],Lu);var Fu=function(e){function t(e,o){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{defaultTimeout:3e3,defaultOffset:5};return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=Bu(t),function(e,t){return!t||"object"!==Nu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Hu()?Reflect.construct(t,o||[],Bu(e).constructor):t.apply(e,o))}(this,t,[e])).__box=o,n.options=r,n.__messages=new Set,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Du(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UIMessages"}},{key:"info",value:function(e,t){this.__message(e,"info",t)}},{key:"success",value:function(e,t){this.__message(e,"success",t)}},{key:"error",value:function(e,t){this.__message(e,"error",t)}},{key:"message",value:function(e,t,o){this.__message(e,t,o)}},{key:"__message",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",o=arguments.length>2?arguments[2]:void 0,n=e+":"+t;if(this.__messages.has(n))this.async.updateTimeout(n,o||this.options.defaultTimeout);else{if(!this.__box)throw new Error("Container is not defined: "+n);this.__box.appendChild(this.container);var r=new Lu(this.j,{text:e,variant:t});this.append(r),this.__calcOffsets(),this.__messages.add(n);var i=this.__getRemoveCallback(r,n);this.j.e.on(r.container,"pointerdown",i),this.async.setTimeout(i,{label:n,timeout:o||this.options.defaultTimeout})}}},{key:"__getRemoveCallback",value:function(e,t){var o=this,n=function(r){r&&r.preventDefault(),e.isInDestruct||(o.async.clearTimeout(t),o.j.e.off(e.container,"pointerdown",n),o.__messages.delete(t),e.setMod("active",!1),o.async.setTimeout((function(){o.remove(e),e.destruct(),o.__calcOffsets()}),300))};return n}},{key:"__calcOffsets",value:function(){var e=this,t=5;this.elements.forEach((function(o){In(o.container,"bottom",t+"px"),t+=o.container.offsetHeight+e.options.defaultOffset}))}}],n&&Mu(o.prototype,n),t}(ql);function qu(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vu(e,t,o){return Vu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Wu(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Vu(e,t,o||e)}function Wu(e){return Wu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Wu(e)}function Uu(e,t){return Uu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Uu(e,t)}function Yu(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ku(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ku=function(){return!!e})()}Fu=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Nu(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],Fu);var Gu,Ju=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Yu(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Xu=Gu=function(e){function t(e){var o,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Wu(t),function(e,t){return!t||"object"!==Yu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Ku()?Reflect.construct(t,o||[],Wu(e).constructor):t.apply(e,o))}(this,t)).isJodit=n,o.isView=!0,o.parent=null,o.mods={},o.components=new Set,o.OPTIONS=Gu.defaultOptions,o.__isFullSize=!1,o.__whoLocked="",o.isLockedNotBy=function(e){return o.isLocked&&o.__whoLocked!==e},o.__modulesInstances=new Map,o.id=(new Date).getTime().toString(),o.initOptions(e),o.initOwners(),o.events=new ba(o.od),o.create=new ju(o.od),o.__container=o.c.div("jodit ".concat(o.componentName)),o}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Uu(e,t)}(t,e),o=t,n=[{key:"basePath",get:function(){return this.o.basePath?this.o.basePath:yo}},{key:"minified",get:function(){return void 0!==this.o.minified?this.o.minified:_o}},{key:"defaultTimeout",get:function(){return Ro(this.o.defaultTimeout)?100:this.o.defaultTimeout}},{key:"buffer",get:function(){return Eu.makeStorage()}},{key:"message",get:function(){return this.getMessageModule(this.container)}},{key:"getMessageModule",value:function(e){return new Fu(this,e)}},{key:"storage",get:function(){return Eu.makeStorage(!0,this.id)}},{key:"c",get:function(){return this.create}},{key:"container",get:function(){return this.__container},set:function(e){this.__container=e}},{key:"e",get:function(){return this.events}},{key:"progressbar",get:function(){return new yu(this)}},{key:"options",get:function(){return this.__options},set:function(e){this.__options=e}},{key:"o",get:function(){return this.options}},{key:"i18n",value:function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];return na(e,o,this.options)}},{key:"toggleFullSize",value:function(e){void 0===e&&(e=!this.__isFullSize),e!==this.__isFullSize&&(this.__isFullSize=e,this.e.fire("toggleFullSize",e))}},{key:"isLocked",get:function(){return""!==this.__whoLocked}},{key:"lock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return!this.isLocked&&(this.__whoLocked=e,!0)}},{key:"unlock",value:function(){return!!this.isLocked&&(this.__whoLocked="",!0)}},{key:"isFullSize",get:function(){return this.__isFullSize}},{key:"getVersion",value:function(){return Gu.version}},{key:"initOptions",value:function(e){this.options=mr(e||{},mr(this.options||{},Gu.defaultOptions))}},{key:"initOwners",value:function(){var e;this.ownerWindow=null!==(e=this.o.ownerWindow)&&void 0!==e?e:window}},{key:"attachEvents",value:function(e){var t=this;if(e){var o=null==e?void 0:e.events;o&&Object.keys(o).forEach((function(e){return t.e.on(e,o[e])}))}}},{key:"getInstance",value:function(e,t){var o=Oo(e)?e.prototype.className():e,n=this.e.fire(Tn("getInstance_"+o),t);if(n)return n;var r,i,a=Oo(e)?e:Aa[o],l=this.__modulesInstances;if(!Oo(a))throw Dr("Need real module name");if(!l.has(o)){var s=(r=a.prototype,(null!=(i=Ja)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](r):r instanceof i)?new a(this,t):new a(t));this.components.add(s),l.set(o,s)}return l.get(o)}},{key:"addDisclaimer",value:function(e){this.container.appendChild(e)}},{key:"beforeDestruct",value:function(){this.e.fire(zo.beforeDestruct,this),this.components.forEach((function(e){Go(e)&&!e.isInDestruct&&e.destruct()})),this.components.clear()}},{key:"destruct",value:function(){var e,o,n;this.isDestructed||(null===(e=di(this,"progressbar"))||void 0===e||e.destruct(),null===(o=di(this,"message"))||void 0===o||o.destruct(),this.events&&(this.events.destruct(),this.events=void 0),null===(n=di(this,"buffer"))||void 0===n||n.clear(),ui.safeRemove(this.container),Vu(Wu(t.prototype),"destruct",this).call(this))}}],r=[{key:"getVersion",value:function(){return Gu.version}}],n&&qu(o.prototype,n),r&&qu(o,r),t}(qa);function Zu(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Qu(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $u(e,t,o){return $u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ed(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},$u(e,t,o||e)}function ed(e){return ed=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ed(e)}function td(e,t){return td=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},td(e,t)}function od(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function nd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nd=function(){return!!e})()}Xu.ES=ct,Xu.version=st,Xu.esNext=dt,Xu.esModern=ut,Ju([fi],Xu.prototype,"buffer",null),Ju([fi],Xu.prototype,"message",null),Ju([fi],Xu.prototype,"storage",null),Ju([fi],Xu.prototype,"c",null),Ju([fi],Xu.prototype,"e",null),Ju([fi],Xu.prototype,"progressbar",null),Ju([tl(zo.beforeDestruct)],Xu.prototype,"beforeDestruct",null),(Xu=Gu=Ju([el(jl,yl)],Xu)).defaultOptions={extraButtons:[],cache:!0,textIcons:!1,namespace:"",removeButtons:[],zIndex:100002,defaultTimeout:100,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullSize:!0,language:"auto"};var rd=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":od(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},id=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=ed(t),function(e,t){return!t||"object"!==od(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,nd()?Reflect.construct(t,o||[],ed(e).constructor):t.apply(e,o))}(this,t,[e])).__listenEvents="updatePlugins updateToolbar changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart focus blur",o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&td(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"ToolbarCollection"}},{key:"firstButton",get:function(){return function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zu(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Zu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.buttons,1)[0]||null}},{key:"makeButton",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return Fd(this.j,e,t)}},{key:"makeSelect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(e,t){return new Pd(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}(this.j,e,t)}},{key:"shouldBeActive",value:function(e){}},{key:"shouldBeDisabled",value:function(e){}},{key:"getTarget",value:function(e){return e.target||null}},{key:"__immediateUpdate",value:function(){this.isDestructed||this.j.isLocked||($u(ed(t.prototype),"update",this).call(this),this.j.e.fire("afterUpdateToolbar",this))}},{key:"update",value:function(){this.__immediateUpdate()}},{key:"setDirection",value:function(e){this.container.style.direction=e,this.container.setAttribute("dir",e)}},{key:"__initEvents",value:function(){this.j.e.on(this.__listenEvents,this.update).on("afterSetMode focus",this.__immediateUpdate)}},{key:"hide",value:function(){this.container.remove()}},{key:"show",value:function(){this.appendTo(this.j.toolbarContainer)}},{key:"showInline",value:function(e){throw Dr("The method is not implemented for this class.")}},{key:"build",value:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.j.e.fire("beforeToolbarBuild",e);return n&&(e=n),$u(ed(t.prototype),"build",this).call(this,e,o),this}},{key:"destruct",value:function(){this.isDestructed||(this.j.e.off(this.__listenEvents,this.update).off("afterSetMode focus",this.__immediateUpdate),$u(ed(t.prototype),"destruct",this).call(this))}}],n&&Qu(o.prototype,n),t}(gs);function ad(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function ld(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sd(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function cd(e,t,o){return cd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ud(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},cd(e,t,o||e)}function ud(e){return ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ud(e)}function dd(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){sd(e,t,o[t])}))}return e}function fd(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}function pd(e,t){return pd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pd(e,t)}function hd(e){return function(e){if(Array.isArray(e))return ad(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ad(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ad(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vd(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function gd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gd=function(){return!!e})()}rd([Co],id.prototype,"__immediateUpdate",null),rd([Xa((function(e){return e.j.defaultTimeout}),!0)],id.prototype,"update",null),rd([tl("ready")],id.prototype,"__initEvents",null),id=rd([bi],id);var md=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":vd(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},bd=function(e){function t(e,o){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=ud(t),function(e,t){return!t||"object"!==vd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,gd()?Reflect.construct(t,o||[],ud(e).constructor):t.apply(e,o))}(this,t,[e])).control=o,n.target=r,n.state=fd(dd({},Ss()),{theme:"toolbar",currentValue:"",hasTrigger:!1}),n.openedPopup=null;var i=n.getElm("button");Jn(i,"Element button should exists"),n.button=i,Object.defineProperty(i,"component",{value:n,configurable:!0});var a=n.getElm("trigger");return Jn(a,"Element trigger should exists"),n.trigger=a,a.remove(),e.e.on([n.button,n.trigger],"mousedown",(function(e){return e.preventDefault()})),n.onAction(n.onClick),n.hookStatus(zo.ready,(function(){n.__initFromControl(),n.update()})),o.mods&&Object.keys(o.mods).forEach((function(e){o.mods&&n.setMod(e,o.mods[e])})),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pd(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"ToolbarButton"}},{key:"toolbar",get:function(){return this.closest(id)}},{key:"update",value:function(){var e,t,o=this.control,n=this.state,r=this.closest(id);if(r){var i=null===(e=o.value)||void 0===e?void 0:e.call(o,r.jodit,this);void 0!==i&&(n.value=i),n.disabled=this.__calculateDisabledStatus(r),n.activated=this.__calculateActivatedStatus(r),null===(t=o.update)||void 0===t||t.call(o,r.jodit,this)}}},{key:"__calculateActivatedStatus",value:function(e){var t,o;return!($o(this.j)&&!this.j.editorIsActive)&&(!!(null===(o=(t=this.control).isActive)||void 0===o?void 0:o.call(t,this.j,this))||Boolean(e&&e.shouldBeActive(this)))}},{key:"__calculateDisabledStatus",value:function(e){var t,o;return!!this.j.o.disabled||!(!this.j.o.readonly||this.j.o.activeButtonsInReadOnly&&this.j.o.activeButtonsInReadOnly.includes(this.control.name))||!!(null===(o=(t=this.control).isDisabled)||void 0===o?void 0:o.call(t,this.j,this))||Boolean(e&&e.shouldBeDisabled(this))}},{key:"onChangeActivated",value:function(){Xn(this.button,"aria-pressed",this.state.activated),cd(ud(t.prototype),"onChangeActivated",this).call(this)}},{key:"onChangeText",value:function(){Oo(this.control.template)?this.text.innerHTML=this.control.template(this.j,this.control.name,this.j.i18n(this.state.text)):cd(ud(t.prototype),"onChangeText",this).call(this),this.setMod("text-icons",Boolean(this.text.innerText.trim().length))}},{key:"onChangeTabIndex",value:function(){Xn(this.button,"tabindex",this.state.tabIndex)}},{key:"createContainer",value:function(){var e=this.componentName,o=this.j.c.span(e),n=cd(ud(t.prototype),"createContainer",this).call(this);Xn(o,"role","listitem"),n.classList.remove(e),n.classList.add(e+"__button"),Object.defineProperty(n,"component",{value:this}),o.appendChild(n);var r=this.j.c.fromHTML('<span role="trigger" class="'.concat(e,'__trigger">').concat(kl.get("chevron"),"</span>"));return n.appendChild(r),o}},{key:"focus",value:function(){var e;null===(e=this.container.querySelector("button"))||void 0===e||e.focus()}},{key:"onChangeHasTrigger",value:function(){this.state.hasTrigger?this.container.appendChild(this.trigger):ui.safeRemove(this.trigger),this.setMod("with-trigger",this.state.hasTrigger||null)}},{key:"onChangeDisabled",value:function(){var e=this.state.disabled?"disabled":null;Xn(this.trigger,"disabled",e),Xn(this.button,"disabled",e),Xn(this.container,"disabled",e)}},{key:"__initFromControl",value:function(){var e,t=this.control,o=this.state;this.updateSize(),o.name=t.name;var n=this.j.o.textIcons;if(!0===n||Oo(n)&&n(t.name)||t.template)o.icon=Ss().icon,o.text=t.text||t.name;else{if(t.iconURL)o.icon.iconURL=t.iconURL;else{var r=t.icon||t.name;o.icon.name=kl.exists(r)||(null===(e=this.j.o.extraIcons)||void 0===e?void 0:e[r])?r:""}t.iconURL||o.icon.name||(o.text=t.text||t.name)}t.tooltip&&(o.tooltip=this.j.i18n(Oo(t.tooltip)?t.tooltip(this.j,t,this):t.tooltip)),o.hasTrigger=Boolean(t.list||t.popup&&t.exec)}},{key:"onTriggerClick",value:function(e){var t,o,n,r=this;if(this.openedPopup)this.__closePopup();else{var i=this.control;if(e.buffer={actionTrigger:this},i.list)return this.__openControlList(i);if(Oo(i.popup)){var a=this.openPopup();a.parentElement=this;try{if(!1!==this.j.e.fire(Tn("before-".concat(i.name,"-open-popup")),this.target,i,a)){var l=null!==(n=null!==(o=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==o?o:this.target)&&void 0!==n?n:null,s=i.popup(this.j,l,this.__closePopup,this);s?a.setContent(Io(s)?this.j.c.fromHTML(s):s).open((function(){return $i(r.container)}),!1,this.j.o.allowTabNavigation?this.container:void 0):this.__closePopup()}}catch(e){throw this.__closePopup(),e}this.j.e.fire(Tn("after-".concat(i.name,"-open-popup")),a.container)}}}},{key:"__openControlList",value:function(e){var t,o=this,n=null!==(t=this.jodit.options.controls)&&void 0!==t?t:{},r=function(e){return cs(e,n)},i=e.list,a=this.openPopup(),l=Hd(this.j);a.parentElement=this,l.parentElement=a,l.mode="vertical";var s=function(t,n){if(Io(n)&&r(n))return dd({name:n.toString()},r(n));if(Io(t)&&r(t))return dd({name:t.toString()},r(t),"object"===(void 0===n?"undefined":vd(n))?n:{});(function(e){return rn(e)&&"title"in e&&"value"in e})(t)&&(n=t.value,t=t.title);var i=e.childTemplate,a={name:t.toString(),template:i&&function(e,t,n){return i(e,t,n,o)},exec:e.childExec?function(t,o,n){var r;return null===(r=e.childExec)||void 0===r?void 0:r.call(e,t,o,fd(dd({},n),{parentControl:e}))}:e.exec,data:e.data,command:e.command,isActive:e.isChildActive,value:e.value,isDisabled:e.isChildDisabled,mode:e.mode,args:hd(e.args?e.args:[]).concat([t,n])};return Io(n)&&(a.text=n),a};l.build(To(i)?i.map(s):fr(i,!1).map((function(e){return s(e,i[e])})),this.target),a.setContent(l).open((function(){return $i(o.container)}),!1,this.j.o.allowTabNavigation?this.container:void 0),this.state.activated=!0}},{key:"onOutsideClick",value:function(e){this.openedPopup&&(e&&ui.isNode(e.target)&&(ui.isOrContains(this.container,e.target)||this.openedPopup.isOwnClick(e))||this.__closePopup())}},{key:"openPopup",value:function(){return this.__closePopup(),this.openedPopup=new pu(this.j,!1),this.j.e.on(this.ow,"mousedown touchstart",this.onOutsideClick).on("escape closeAllPopups",this.onOutsideClick),this.openedPopup}},{key:"__closePopup",value:function(){this.openedPopup&&(this.j.e.off(this.ow,"mousedown touchstart",this.onOutsideClick).off("escape closeAllPopups",this.onOutsideClick),this.state.activated=!1,this.openedPopup.close(),this.openedPopup.destruct(),this.openedPopup=null)}},{key:"onClick",value:function(e){var t,o,n,r,i,a,l,s=this.control;if(Oo(s.exec)){var c=null!==(n=null!==(o=null===(t=this.toolbar)||void 0===t?void 0:t.getTarget(this))&&void 0!==o?o:this.target)&&void 0!==n?n:null,u=s.exec(this.j,c,{control:s,originalEvent:e,button:this});if(!1!==u&&!0!==u&&(null===(i=null===(r=this.j)||void 0===r?void 0:r.e)||void 0===i||i.fire("synchro"),this.parentElement&&this.parentElement.update(),null===(l=null===(a=this.j)||void 0===a?void 0:a.e)||void 0===l||l.fire("closeAllPopups afterExec")),!1!==u)return}return s.list?this.__openControlList(s):Oo(s.popup)?this.onTriggerClick(e):void((s.command||s.name)&&(sr($o(this.j)?this.j.execCommand.bind(this.j):this.j.od.execCommand.bind(this.j.od),s.command||s.name,!1,s.args&&s.args[0]),this.j.e.fire("closeAllPopups")))}},{key:"destruct",value:function(){return this.__closePopup(),cd(ud(t.prototype),"destruct",this).call(this)}}],n&&ld(o.prototype,n),t}(xs);function yd(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _d(e,t,o){return _d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=jd(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},_d(e,t,o||e)}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jd(e)}function wd(e,t){return wd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wd(e,t)}function kd(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Sd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Sd=function(){return!!e})()}md([pi],bd.prototype,"createContainer",null),md([Sa("state.hasTrigger",{immediately:!1})],bd.prototype,"onChangeHasTrigger",null),md([Sa("trigger:click")],bd.prototype,"onTriggerClick",null),md([Co],bd.prototype,"onOutsideClick",null),md([Co],bd.prototype,"__closePopup",null),bd=md([bi],bd);var xd=function(e){function t(e,o){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=jd(t),function(e,t){return!t||"object"!==kd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Sd()?Reflect.construct(t,o||[],jd(e).constructor):t.apply(e,o))}(this,t,[e])).control=o,n.target=r,n.container.classList.add("".concat(n.componentName,"_").concat(n.clearName(o.name))),Xn(n.container,"role","content"),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wd(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"ToolbarContent"}},{key:"update",value:function(){var e=this.control.getContent(this.j,this);(Io(e)||e.parentNode!==this.container)&&(ui.detach(this.container),this.container.appendChild(Io(e)?this.j.create.fromHTML(e):e)),_d(jd(t.prototype),"update",this).call(this)}},{key:"createContainer",value:function(){return this.j.c.span(this.componentName)}}])&&yd(o.prototype,n),t}(xs);function Od(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Cd(e,t,o){return Cd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=zd(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Cd(e,t,o||e)}function zd(e){return zd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zd(e)}function Ed(e,t){return Ed=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ed(e,t)}function Td(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Id(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Id=function(){return!!e})()}xd=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":kd(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],xd);var Pd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=zd(o=t),function(e,t){return!t||"object"!==Td(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Id()?Reflect.construct(o,n||[],zd(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ed(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"ToolbarSelect"}},{key:"update",value:function(){var e,o,n;Cd(zd(t.prototype),"update",this).call(this),this.state.icon.name="";var r=this.control,i=r.list,a=r.data;if(i){var l=this.state.value||(a&&Io(a.currentValue)?a.currentValue:void 0);l||(l=Object.keys(i)[0]);var s=(rn(i)&&i[l.toString()]||l).toString();this.state.text=null!==(n=null===(o=(e=this.control).textTemplate)||void 0===o?void 0:o.call(e,this.jodit,s))&&void 0!==n?n:s}}}],n&&Od(o.prototype,n),t}(bd);function Rd(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ad(e,t,o){return Ad="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ld(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Ad(e,t,o||e)}function Ld(e){return Ld=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ld(e)}function Md(e,t){return Md=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Md(e,t)}function Bd(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Dd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dd=function(){return!!e})()}Pd=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Td(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],Pd);var Nd=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Ld(t),function(e,t){return!t||"object"!==Bd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Dd()?Reflect.construct(t,o||[],Ld(e).constructor):t.apply(e,o))}(this,t,[e])).checkActiveStatus=function(e,t){var n=0,r=0;return Object.keys(e).forEach((function(i){var a=e[i];Oo(a)?a(o.j,In(t,i).toString())&&(n+=1):-1!==a.indexOf(In(t,i).toString())&&(n+=1),r+=1})),r===n},o.prependInvisibleInput(o.container),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Md(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"ToolbarEditorCollection"}},{key:"shouldBeDisabled",value:function(e){var o=Ad(Ld(t.prototype),"shouldBeDisabled",this).call(this,e);if(void 0!==o)return o;var n=void 0===e.control.mode?Qt:e.control.mode;return!(n===eo||n===this.j.getRealMode())}},{key:"shouldBeActive",value:function(e){var o=this,n=Ad(Ld(t.prototype),"shouldBeActive",this).call(this,e);if(void 0!==n)return n;var r,i=this.j.selection?this.j.s.current():null;if(!i)return!1;if(e.control.tags){var a=e.control.tags;if(r=i,ui.up(r,(function(e){if(e&&-1!==a.indexOf(e.nodeName.toLowerCase()))return!0}),this.j.editor))return!0}if(e.control.css){var l=e.control.css;if(r=i,ui.up(r,(function(e){if(e&&!ui.isText(e)&&!ui.isComment(e))return o.checkActiveStatus(l,e)}),this.j.editor))return!0}return!1}},{key:"getTarget",value:function(e){return e.target||this.j.s.current()||null}},{key:"prependInvisibleInput",value:function(e){var t=this.j.create.element("input",{tabIndex:-1,disabled:!0,style:"width: 0; height:0; position: absolute; visibility: hidden;"});ui.appendChildFirst(e,t)}},{key:"showInline",value:function(e){this.jodit.e.fire("showInlineToolbar",e)}},{key:"hide",value:function(){this.jodit.e.fire("hidePopup"),Ad(Ld(t.prototype),"hide",this).call(this),this.jodit.e.fire("toggleToolbar")}},{key:"show",value:function(){Ad(Ld(t.prototype),"show",this).call(this),this.jodit.e.fire("toggleToolbar")}}],n&&Rd(o.prototype,n),t}(id);function Hd(e,t){var o=$o(e)?new Nd(e):new id(e);return e.o.textIcons&&o.container.classList.add("jodit_text_icons"),t&&(o.parentElement=t),e.o.toolbarButtonSize&&(o.buttonSize=e.o.toolbarButtonSize),o}function Fd(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Oo(t.getContent))return new xd(e,t,o);var n=new bd(e,t,o);return n.state.tabIndex=e.o.allowTabNavigation?0:-1,n}function qd(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Vd(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wd(e,t,o){return Wd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ud(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Wd(e,t,o||e)}function Ud(e){return Ud=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ud(e)}function Yd(e,t){return Yd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yd(e,t)}function Kd(e){return function(e){if(Array.isArray(e))return qd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qd(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?qd(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gd(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Jd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jd=function(){return!!e})()}Nd=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Bd(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],Nd);var Xd=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Gd(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Zd=function(e){function t(e){var o,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Ud(t),function(e,t){return!t||"object"!==Gd(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Jd()?Reflect.construct(t,o||[],Ud(e).constructor):t.apply(e,o))}(this,t,[e,n])).toolbar=Hd(o),o.__defaultToolbarContainer=o.c.div("jodit-toolbar__box"),o.registeredButtons=new Set,o.groupToButtons={},o.isJodit=!1,o.__tooltip=new Ws(o),o.isJodit=n,o.e.on("beforeToolbarBuild",o.beforeToolbarBuild),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yd(e,t)}(t,e),o=t,(n=[{key:"toolbarContainer",get:function(){return this.o.fullsize||!Io(this.o.toolbar)&&!ui.isHTMLElement(this.o.toolbar)?(this.o.toolbar&&ui.appendChildFirst(this.container,this.__defaultToolbarContainer),this.__defaultToolbarContainer):$r(this.o.toolbar,this.o.shadowRoot||this.od)}},{key:"setPanel",value:function(e){this.o.toolbar=e,this.buildToolbar()}},{key:"buildToolbar",value:function(){var e;if(this.o.toolbar){var t=this.o.buttons?Ei(this.o.buttons):[];null===(e=this.toolbar)||void 0===e||e.setRemoveButtons(this.o.removeButtons).build(t.concat(this.o.extraButtons||[])).appendTo(this.toolbarContainer)}}},{key:"getRegisteredButtonGroups",value:function(){return this.groupToButtons}},{key:"registerButton",value:function(e){var t;this.registeredButtons.add(e);var o=null!==(t=e.group)&&void 0!==t?t:"other";return this.groupToButtons[o]||(this.groupToButtons[o]=[]),null!=e.position?this.groupToButtons[o][e.position]=e.name:this.groupToButtons[o].push(e.name),this}},{key:"unregisterButton",value:function(e){var t;this.registeredButtons.delete(e);var o=null!==(t=e.group)&&void 0!==t?t:"other",n=this.groupToButtons[o];if(n){var r=n.indexOf(e.name);-1!==r&&n.splice(r,1),0===n.length&&delete this.groupToButtons[o]}return this}},{key:"beforeToolbarBuild",value:function(e){var t=this;if(Object.keys(this.groupToButtons).length)return e.map((function(e){return ns(e)&&e.group&&t.groupToButtons[e.group]?{group:e.group,buttons:Kd(e.buttons).concat(Kd(t.groupToButtons[e.group]))}:e}))}},{key:"destruct",value:function(){this.isDestructed||(this.setStatus(zo.beforeDestruct),this.e.off("beforeToolbarBuild",this.beforeToolbarBuild),this.__tooltip.destruct(),this.toolbar.destruct(),this.toolbar=void 0,Wd(Ud(t.prototype),"destruct",this).call(this))}}])&&Vd(o.prototype,n),t}(Xu);function Qd(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $d(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function ef(e,t,o){return ef="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=tf(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},ef(e,t,o||e)}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tf(e)}function of(e,t){return of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},of(e,t)}function nf(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function rf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(rf=function(){return!!e})()}Xd([Sa(":rebuildToolbar")],Zd.prototype,"buildToolbar",null),Xd([Co],Zd.prototype,"beforeToolbarBuild",null);var af,lf=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":nf(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};tr.prototype.dialog={namespace:"",extraButtons:[],resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[],toolbarButtonSize:"middle",zIndex:"inherit"},tr.prototype.controls.dialog={close:{icon:"cancel",exec:function(e){e.close()}}};var sf=af=function(e){function t(){var e,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=tf(t),function(e,t){return!t||"object"!==nf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,rf()?Reflect.construct(t,o||[],tf(e).constructor):t.apply(e,o))}(this,t,[o])).destroyAfterClose=!1,e.moved=!1,e.resizable=!1,e.draggable=!1,e.startX=0,e.startY=0,e.startPoint={x:0,y:0,w:0,h:0},e.lockSelect=function(){e.setMod("moved",!0)},e.unlockSelect=function(){e.setMod("moved",!1)},e.__onResize=function(){e.options&&e.o.resizable&&!e.moved&&e.isOpened&&!e.offsetX&&!e.offsetY&&e.setPosition()},e.isModal=!1,e.isOpened=!1;var n=e;n.options=mr(o,mr(tr.prototype.dialog,af.defaultOptions)),ui.safeRemove(n.container);var r=e.getFullElName.bind(e);n.container=e.c.fromHTML('<div class="jodit jodit-dialog '.concat(e.componentName,'">\n\t\t\t\t<div class="').concat(r("overlay"),'"></div>\n\t\t\t\t<div class="').concat(e.getFullElName("panel"),'">\n\t\t\t\t\t<div class="').concat(r("header"),'">\n\t\t\t\t\t\t<div class="').concat(r("header-title"),'"></div>\n\t\t\t\t\t\t<div class="').concat(r("header-toolbar"),'"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="').concat(r("content"),'"></div>\n\t\t\t\t\t<div class="').concat(r("footer"),'"></div>\n\t\t\t\t\t<div class="').concat(r("resizer"),'">').concat(kl.get("resize_handler"),"</div>\n\t\t\t\t</div>\n\t\t\t</div>")),"rtl"===n.options.direction&&(n.container.style.direction="rtl",n.container.setAttribute("dir","rtl")),e.o.zIndex&&(e.container.style.zIndex=e.o.zIndex.toString()),Xn(n.container,"role","dialog"),Object.defineProperty(n.container,"component",{value:e}),n.setMod("theme",n.o.theme||"default").setMod("resizable",Boolean(n.o.resizable));var i=n.getElm("panel");Jn(null!=i,"Panel element does not exist");var a=n.getElm("resizer");Jn(null!=a,"Resizer element does not exist");var l=n.getElm("header-title");Jn(null!=l,"header-title element does not exist");var s=n.getElm("content");Jn(null!=s,"Content element does not exist");var c=n.getElm("footer");Jn(null!=c,"Footer element does not exist");var u=n.getElm("header-toolbar");Jn(null!=u,"header-toolbar element does not exist"),e.dialog=i,e.resizer=a,e.dialogbox_header=l,e.dialogbox_content=s,e.dialogbox_footer=c,e.dialogbox_toolbar=u,In(n.dialog,{maxWidth:n.options.maxWidth,minHeight:n.options.minHeight,minWidth:n.options.minWidth});var d=n.getElm("header");d&&n.e.on(d,"pointerdown touchstart",n.__onHeaderMouseDown),n.e.on(n.resizer,"mousedown touchstart",n.__onResizerMouseDown);var f=Ra.get("fullsize");if(Oo(f)&&f(n),e.e.on(n.container,"close_dialog",n.close).on(e.ow,"keydown",e.__onEsc).on(e.ow,"resize",e.__onResize),e.o.closeOnClickOverlay){var p=n.getElm("overlay");Jn(null!=p,"Overlay element does not exist"),e.e.on(p,"click",n.close)}return e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&of(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"Dialog"}},{key:"destination",get:function(){var e=this.o,t=e.popupRoot,o=e.shadowRoot;return t||o||this.od.body}},{key:"setElements",value:function(e,t){var o=this,n=[];zi(t).forEach((function(t){if(To(t)){var r=o.c.div(o.getFullElName("column"));return n.push(r),e.appendChild(r),o.setElements(r,t)}var i;i=Io(t)?o.c.fromHTML(t):Jo(t)?t.container:t,n.push(i),i.parentNode!==e&&e.appendChild(i)})),Bo(e.childNodes).forEach((function(t){-1===n.indexOf(t)&&e.removeChild(t)}))}},{key:"__onMouseUp",value:function(){(this.draggable||this.resizable)&&(this.__removeGlobalResizeListeners(),this.draggable=!1,this.resizable=!1,this.unlockSelect(),this.e&&(this.__removeGlobalResizeListeners(),this.e.fire(this,"endResize endMove")))}},{key:"__onHeaderMouseDown",value:function(e){var t=e.target;!this.o.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/)||(this.draggable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.x=In(this.dialog,"left"),this.startPoint.y=In(this.dialog,"top"),this.setMaxZIndex(),e.cancelable&&e.preventDefault(),this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&(this.e.fire(this,"startMove"),this.e.fire("closeAllPopups")))}},{key:"__onMouseMove",value:function(e){this.draggable&&this.o.draggable&&(this.setPosition(this.startPoint.x+e.clientX-this.startX,this.startPoint.y+e.clientY-this.startY),this.e&&this.e.fire(this,"move",e.clientX-this.startX,e.clientY-this.startY),e.stopImmediatePropagation()),this.resizable&&this.o.resizable&&(this.setSize(this.startPoint.w+e.clientX-this.startX,this.startPoint.h+e.clientY-this.startY),this.e&&this.e.fire(this,"resizeDialog",e.clientX-this.startX,e.clientY-this.startY))}},{key:"__onEsc",value:function(e){if(this.o.closeOnEsc&&this.isOpened&&e.key===Dt&&!0!==this.getMod("static")){var t=this.getMaxZIndexDialog();t?t.close():this.close(),e.stopImmediatePropagation()}}},{key:"__onResizerMouseDown",value:function(e){this.resizable=!0,this.startX=e.clientX,this.startY=e.clientY,this.startPoint.w=this.dialog.offsetWidth,this.startPoint.h=this.dialog.offsetHeight,this.lockSelect(),this.__addGlobalResizeListeners(),this.e&&this.e.fire(this,"startResize")}},{key:"__addGlobalResizeListeners",value:function(){var e=this;e.e.on(e.ow,"pointermove touchmove",e.__onMouseMove).on(e.ow,"pointerup touchend",e.__onMouseUp)}},{key:"__removeGlobalResizeListeners",value:function(){var e=this;e.e.off(e.ow,"mousemove pointermove",e.__onMouseMove).off(e.ow,"mouseup pointerup",e.__onMouseUp)}},{key:"setSize",value:function(e,t){return null==e&&(e=this.dialog.offsetWidth),null==t&&(t=this.dialog.offsetHeight),In(this.dialog,{width:e,height:t}),this}},{key:"calcAutoSize",value:function(){return this.setSize("auto","auto"),this.setSize(),this}},{key:"setPosition",value:function(e,t){var o=this.ow.innerWidth,n=this.ow.innerHeight,r=o/2-this.dialog.offsetWidth/2,i=n/2-this.dialog.offsetHeight/2;return r<0&&(r=0),i<0&&(i=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=Math.abs(e-r)>100||Math.abs(t-i)>100),this.dialog.style.left=(e||r)+"px",this.dialog.style.top=(t||i)+"px",this}},{key:"setHeader",value:function(e){return this.setElements(this.dialogbox_header,e),this}},{key:"setContent",value:function(e){return this.setElements(this.dialogbox_content,e),this}},{key:"setFooter",value:function(e){return this.setElements(this.dialogbox_footer,e),this.setMod("footer",Boolean(e)),this}},{key:"getZIndex",value:function(){return parseInt(In(this.container,"zIndex"),10)||0}},{key:"getMaxZIndexDialog",value:function(){var e,t,o=0,n=this;return Jr(".jodit-dialog",this.destination).forEach((function(r){e=r.component,t=parseInt(In(r,"zIndex"),10),e.isOpened&&!isNaN(t)&&t>o&&(n=e,o=t)})),n}},{key:"setMaxZIndex",value:function(){if(!this.getMod("static")){var e=20000004,t=0;Jr(".jodit-dialog",this.destination).forEach((function(o){t=parseInt(In(o,"zIndex"),10),e=Math.max(isNaN(t)?0:t,e)})),this.container.style.zIndex=(e+1).toString()}}},{key:"toggleFullSize",value:function(e){Ro(e)&&(e=!this.getMod("fullsize")),this.setMod("fullsize",e),ef(tf(t.prototype),"toggleFullSize",this).call(this,e)}},{key:"open",value:function(e,t,o,n){if(Na.fire("closeAllPopups hideHelpers"),!1===this.e.fire(this,"beforeOpen"))return this;Ho(e)&&(o=e),Ho(t)&&(n=t),this.destroyAfterClose=!0===o;var r=Ho(e)?void 0:e,i=Ho(t)?void 0:t;return void 0!==i&&this.setHeader(i),r&&this.setContent(r),this.setMod("active",!0),this.isOpened=!0,this.setModal(n),this.destination.appendChild(this.container),!0!==this.getMod("static")?(this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex()):this.container.style.removeProperty("z-index"),this.o.fullsize&&this.toggleFullSize(!0),this.e.fire("afterOpen",this),this}},{key:"setModal",value:function(e){return this.isModal=Boolean(e),this.setMod("modal",this.isModal),this}},{key:"close",value:function(){if(this.isDestructed||!this.isOpened||!0===this.getMod("static"))return this;var e=this.e;return!1===e.fire(this,"beforeClose")||!1===e.fire("beforeClose",this)||(this.setMod("active",!1),this.isOpened=!1,this.isFullSize&&this.toggleFullSize(!1),ui.safeRemove(this.container),this.__removeGlobalResizeListeners(),e.fire(this,"afterClose"),e.fire(this.ow,"joditCloseDialog"),this.destroyAfterClose&&this.destruct()),this}},{key:"buildToolbar",value:function(){this.o.buttons&&this.toolbar.build(Ei(this.o.buttons)).setMod("mode","header").appendTo(this.dialogbox_toolbar)}},{key:"destruct",value:function(){this.isInDestruct||(this.setStatus(zo.beforeDestruct),this.isOpened&&this.close(),this.events&&(this.__removeGlobalResizeListeners(),this.events.off(this.container,"close_dialog",self.close).off(this.ow,"keydown",this.__onEsc).off(this.ow,"resize",this.__onResize)),ef(tf(t.prototype),"destruct",this).call(this))}}],n&&Qd(o.prototype,n),t}(Zd);function cf(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"jodit-dialog_alert";Oo(t)&&(o=t,t=void 0);var r,i=(null!=(r=sf)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](this):this instanceof r)?this:new sf({closeOnClickOverlay:!0}),a=i.c.div(n),l=Os(i,"ok","Ok");return zi(e).forEach((function(e){a.appendChild(ui.isNode(e)?e:i.c.fromHTML(e))})),l.onAction((function(){o&&Oo(o)&&!1===o(i)||i.close()})),i.setFooter([l]),i.open(a,t||" ",!0,!0),l.focus(),i}function uf(e,t,o){var n,r=(null!=(n=sf)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](this):this instanceof n)?this:new sf({closeOnClickOverlay:!0}),i=r.c.fromHTML('<form class="jodit-dialog_prompt"></form>'),a=r.c.element("label");Oo(t)&&(o=t,t=void 0),a.appendChild(r.c.fromHTML(e)),i.appendChild(a);var l=function(e){return function(){o&&!1===o(e)||r.close()}},s=Os(r,"cancel","Cancel"),c=Os(r,"ok","Yes");return s.onAction(l(!1)),c.onAction(l(!0)),r.e.on(i,"submit",(function(){return l(!0)(),!1})),r.setFooter([c,s]),r.open(i,t||" ",!0,!0),c.focus(),r}function df(e,t,o,n,r){var i,a=(null!=(i=sf)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](this):this instanceof i)?this:new sf({closeOnClickOverlay:!0}),l=Os(a,"cancel","Cancel"),s=Os(a,"ok","Ok"),c=a.c.element("form",{class:"jodit-dialog_prompt"}),u=a.c.element("input",{autofocus:!0,class:"jodit-input"}),d=a.c.element("label");Oo(t)&&(o=t,t=void 0),n&&Xn(u,"placeholder",n),d.appendChild(a.c.text(e)),c.appendChild(d),c.appendChild(u),l.onAction(a.close);var f=function(){o&&Oo(o)&&!1===o(u.value)||a.close()};return s.onAction(f),a.e.on(c,"submit",(function(){return f(),!1})),a.setFooter([s,l]),a.open(c,t||" ",!0,!0),u.focus(),void 0!==r&&r.length&&(u.value=r,u.select()),a}function ff(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function pf(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}sf.defaultOptions=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){$d(e,t,o[t])}))}return e}({},Xu.defaultOptions),{closeOnClickOverlay:!1,closeOnEsc:!0}),lf([Co],sf.prototype,"__onMouseUp",null),lf([Co],sf.prototype,"__onHeaderMouseDown",null),lf([Co],sf.prototype,"__onMouseMove",null),lf([Co],sf.prototype,"__onEsc",null),lf([Co],sf.prototype,"__onResizerMouseDown",null),lf([Co],sf.prototype,"close",null),lf([tl("ready")],sf.prototype,"buildToolbar",null),sf=af=lf([bi],sf);var hf=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,o;return t=e,o=[{key:"dlg",value:function(e){var t=Da(this.o,this.container,this.od.body),o=new sf(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){pf(e,t,o[t])}))}return e}({language:this.o.language,shadowRoot:this.o.shadowRoot,popupRoot:t,ownerWindow:this.o.ownerWindow,defaultTimeout:this.o.defaultTimeout,direction:this.o.direction,theme:this.o.theme,globalFullSize:this.o.globalFullSize},e));return cr(this,o.container),o.parent=this,o.bindDestruct(this)}},{key:"confirm",value:function(e,t,o){return e=vf(e,this),t=vf(t,this),uf.call(this.dlg({closeOnClickOverlay:!0}),e,t,o)}},{key:"prompt",value:function(e,t,o,n,r){return e=vf(e,this),t=vf(t,this),n=vf(n,this),df.call(this.dlg({closeOnClickOverlay:!0}),e,t,o,n,r)}},{key:"alert",value:function(e,t,o,n){return e=vf(e,this),t=vf(t,this),cf.call(this.dlg({closeOnClickOverlay:!0}),e,t,o,n)}}],o&&ff(t.prototype,o),e}();function vf(e,t){return Io(e)&&!Uo(e)&&(e=t.i18n(e)),e}function gf(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mf(e)}function bf(e,t){return bf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bf(e,t)}function yf(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_f=function(){return!!e})()}var jf=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=mf(o=t),function(e,t){return!t||"object"!==yf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,_f()?Reflect.construct(o,n||[],mf(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bf(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"ContextMenu"}},{key:"show",value:function(e,t,o){var n=this,r=this;r.clear(),To(o)&&(o.forEach((function(e){if(e){var t=Os(n.jodit,e.icon||"empty",e.title);n.jodit&&t.setParentView(n.jodit),t.setMod("context","menu"),t.onAction((function(t){var o;return null===(o=e.exec)||void 0===o||o.call(r,t),r.clear(),r.close(),!1})),n.append(t)}})),this.open((function(){return{left:e,top:t,width:0,height:0}}),!0))}}])&&gf(o.prototype,n),t}(pu);function wf(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function kf(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Sf(e){return e.files.setMod("active",!0),e.files.setMod("loading",!0),e.dataProvider.items(e.state.currentPath,e.state.currentSource,{sortBy:e.state.sortBy,onlyImages:e.state.onlyImages,filterWord:e.state.filterWord}).then((function(t){t&&(e.state.elements=t,e.state.activeElements=[])})).catch(e.status).finally((function(){return e.files.setMod("loading",!1)}))}function xf(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function Of(e){return Cf.apply(this,arguments)}function Cf(){var e;return e=function(e){var t,o;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(n){return e.tree.setMod("active",!0),ui.detach(e.tree.container),t=Sf(e),e.o.showFoldersPanel?(e.tree.setMod("loading",!0),o=e.dataProvider.tree(e.state.currentPath,e.state.currentSource).then((function(t){e.state.sources=t})).catch(e.status).finally((function(){return e.tree.setMod("loading",!1)})),[2,Promise.all([o,t])]):(e.tree.setMod("active",!1),[2,t])}))},Cf=function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){xf(i,n,r,a,l,"next",e)}function l(e){xf(i,n,r,a,l,"throw",e)}a(void 0)}))},Cf.apply(this,arguments)}jf=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":yf(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi],jf),tr.prototype.filebrowser={namespace:"",cache:!0,extraButtons:[],filter:function(e,t){return t=t.toLowerCase(),Io(e)?-1!==e.toLowerCase().indexOf(t):Io(e.name)?-1!==e.name.toLowerCase().indexOf(t):!Io(e.file)||-1!==e.file.toLowerCase().indexOf(t)},sortBy:"changed-desc",sort:function(e,t,o){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wf(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?wf(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o.toLowerCase().split("-"),2),r=n[0],i="asc"===n[1],a=function(e,t){return e<t?i?-1:1:e>t?i?1:-1:0};if(Io(e))return a(e.toLowerCase(),t.toLowerCase());if(void 0===e[r]||"name"===r)return Io(e.name)?a(e.name.toLowerCase(),t.name.toLowerCase()):Io(e.file)?a(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(r){case"changed":var l=new Date(e.changed).getTime(),s=new Date(t.changed).getTime();return i?l-s:s-l;case"size":var c=Vr(e.size),u=Vr(t.size);return i?c-u:u-c}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,renameFolder:!0,moveFolder:!0,moveFile:!0,permissionsPresets:{allowFileDownload:void 0,allowFileMove:void 0,allowFileRemove:void 0,allowFileRename:void 0,allowFileUpload:void 0,allowFileUploadRemote:void 0,allowFiles:void 0,allowFolderCreate:void 0,allowFolderMove:void 0,allowFolderRemove:void 0,allowFolderRename:void 0,allowFolderTree:void 0,allowFolders:void 0,allowGeneratePdf:void 0,allowImageCrop:void 0,allowImageResize:void 0},showFoldersPanel:!0,storeLastOpenedFolder:!0,width:859,height:400,buttons:["filebrowser.upload","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.tiles","filebrowser.list","|","filebrowser.filter","|","filebrowser.sort"],removeButtons:[],fullsize:!1,showTooltip:!0,view:null,isSuccess:function(e){return e.success},getMessage:function(e){return void 0!==e.data.messages&&To(e.data.messages)?e.data.messages.join(" "):""},showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:{storeLastOpenedFolder:!0,storeView:!0,storeSortBy:!0},pixelOffsetLoadNewChunk:200,getThumbTemplate:function(e,t,o){var n=this.options,r=this.files.getFullElName("item"),i=n.showFileName,a=n.showFileSize&&e.size,l=n.showFileChangeTime&&e.time,s="";void 0!==e.file&&(s=e.file);var c='<div class="'.concat(r,'-info">').concat(i?'<span class="'.concat(r,'-info-filename">').concat(s,"</span>"):"").concat(a?'<span class="'.concat(r,'-info-filesize">').concat(e.size,"</span>"):"").concat(l?'<span class="'.concat(r,'-info-filechanged">').concat(l,"</span>"):"","</div>");return'<a\n\t\t\tdata-jodit-file-browser-item="true"\n\t\t\tdata-is-file="'.concat(e.isImage?0:1,'"\n\t\t\tdraggable="true"\n\t\t\tclass="').concat(r,'"\n\t\t\thref="').concat(e.fileURL,'"\n\t\t\tdata-source="').concat(o,'"\n\t\t\tdata-path="').concat(e.path,'"\n\t\t\tdata-name="').concat(s,'"\n\t\t\ttitle="').concat(s,'"\n\t\t\tdata-url="').concat(e.fileURL,'">\n\t\t\t\t<img\n\t\t\t\t\tdata-is-file="').concat(e.isImage?0:1,'"\n\t\t\t\t\tdata-src="').concat(e.fileURL,'"\n\t\t\t\t\tsrc="').concat(e.imageURL,'"\n\t\t\t\t\talt="').concat(s,'"\n\t\t\t\t\tloading="lazy"\n\t\t\t\t/>\n\t\t\t\t').concat(i||a||l?c:"","\n\t\t\t</a>")},ajax:function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){kf(e,t,o[t])}))}return e}({},tr.prototype.defaultAjaxOptions),{url:"",data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,headers:{},prepareData:function(e){return e},process:function(e){return e}}),create:{data:{action:"folderCreate"}},getLocalFileByUrl:{data:{action:"getLocalFileByUrl"}},resize:{data:{action:"imageResize"}},crop:{data:{action:"imageCrop"}},fileMove:{data:{action:"fileMove"}},folderMove:{data:{action:"folderMove"}},fileRename:{data:{action:"fileRename"}},folderRename:{data:{action:"folderRename"}},fileRemove:{data:{action:"fileRemove"}},folderRemove:{data:{action:"folderRemove"}},items:{data:{action:"files"}},folder:{data:{action:"folders"}},permissions:{data:{action:"permissions"}}},tr.prototype.controls.filebrowser={upload:{icon:"plus",tooltip:"Upload file",isInput:!0,isDisabled:function(e){return!e.dataProvider.canI("FileUpload")},getContent:function(e,t){var o=new tu(e,{tooltip:t.control.tooltip,onlyImages:e.state.onlyImages});return e.e.fire("bindUploader.filebrowser",o.container),o.container}},remove:{icon:"bin",tooltip:"Remove file",isDisabled:function(e){return!e.state.activeElements.length||!e.dataProvider.canI("FileRemove")},exec:function(e){e.e.fire("fileRemove.filebrowser")}},update:{tooltip:"Update file list",exec:function(e){e.e.fire("update.filebrowser")}},select:{tooltip:"Select file",icon:"check",isDisabled:function(e){return!e.state.activeElements.length},exec:function(e){e.e.fire("select.filebrowser")}},edit:{tooltip:"Edit image",icon:"pencil",isDisabled:function(e){var t=e.state.activeElements;return 1!==t.length||!t[0].isImage||!(e.dataProvider.canI("ImageCrop")||e.dataProvider.canI("ImageResize"))},exec:function(e){e.e.fire("edit.filebrowser")}},tiles:{tooltip:"Tiles view",icon:"th",isActive:function(e){return"tiles"===e.state.view},exec:function(e){e.e.fire("view.filebrowser","tiles")}},list:{tooltip:"List view",icon:"th-list",isActive:function(e){return"list"===e.state.view},exec:function(e){e.e.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent:function(e,t){var o=t.container.querySelector(".jodit-input");if(o)return o;var n=e.c.element("input",{class:"jodit-input",placeholder:e.i18n("Filter")});return n.value=e.state.filterWord,e.e.on(n,"keydown mousedown",e.async.debounce((function(){e.e.fire("filter.filebrowser",n.value)}),e.defaultTimeout)),n}},sort:{isInput:!0,getContent:function(e){var t=e.c.fromHTML('<select class="jodit-input jodit-select">'+'<option value="changed-asc">'.concat(e.i18n("Sort by changed")," (⬆)</option>")+'<option value="changed-desc">'.concat(e.i18n("Sort by changed")," (⬇)</option>")+'<option value="name-asc">'.concat(e.i18n("Sort by name")," (⬆)</option>")+'<option value="name-desc">'.concat(e.i18n("Sort by name")," (⬇)</option>")+'<option value="size-asc">'.concat(e.i18n("Sort by size")," (⬆)</option>")+'<option value="size-desc">'.concat(e.i18n("Sort by size")," (⬇)</option>")+"</select>");return t.value=e.state.sortBy,e.e.on("sort.filebrowser",(function(e){t.value!==e&&(t.value=e)})).on(t,"change",(function(){e.e.fire("sort.filebrowser",t.value)})),t}}};var zf=new WeakMap,Ef=function(e){var t=zf.get(e);return t||(t={},zf.set(e,t)),t};function Tf(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var If=function(){function e(t){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,Object.keys(t).forEach((function(e){o[e]=t[e]}))}var t,o,n;return t=e,o=[{key:"path",get:function(){return Wi(this.data.source.path?this.data.source.path+"/":"/")}},{key:"imageURL",get:function(){var e=this.time||(new Date).getTime().toString(),t=this.data,o=t.thumbIsAbsolute,n=t.source,r=t.thumb,i=t.file,a=r||i;return o&&a?a:Ki(n.baseurl,n.path,a||"")+"?_tmst="+encodeURIComponent(e)}},{key:"fileURL",get:function(){var e=this.data.name,t=this.data,o=t.file,n=t.fileIsAbsolute,r=t.source;return void 0!==o&&(e=o),n&&e?e:Ki(r.baseurl,r.path,e||"")}},{key:"time",get:function(){var e=this.data.changed;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""}},{key:"uniqueHashKey",get:function(){var e=this.data,t=[e.sourceName,e.name,e.file,this.time,e.thumb].join("_");return t.toLowerCase().replace(/[^0-9a-z\-.]/g,"-")}},{key:"toJSON",value:function(){return this.data}}],n=[{key:"create",value:function(t){return o=t,(null!=(n=e)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](o):o instanceof n)?t:new e(t);var o,n}}],o&&Tf(t.prototype,o),n&&Tf(t,n),e}();function Pf(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function Rf(e){return function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){Pf(i,n,r,a,l,"next",e)}function l(e){Pf(i,n,r,a,l,"throw",e)}a(void 0)}))}}function Af(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Lf(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Mf(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var Bf="default",Df=new Set(["allowFiles","allowFileMove","allowFileUpload","allowFileUploadRemote","allowFileRemove","allowFileRename","allowFolders","allowFolderMove","allowFolderCreate","allowFolderRemove","allowFolderRename","allowImageResize","allowImageCrop"]),Nf=function(){function e(t,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t,this.options=o,this.__currentPermissions=null,this.__ajaxInstances=new Map,this.progressHandler=function(e){}}var t,o;return t=e,o=[{key:"o",get:function(){return this.options}},{key:"get",value:function(e){var t=this,o=this.__ajaxInstances;if(o.has(e)){var n=o.get(e);null==n||n.abort(),o.delete(e)}var r=mr(void 0!==this.options[e]?this.options[e]:{},mr({onProgress:this.progressHandler},this.o.ajax));r.prepareData&&(r.data=r.prepareData.call(this,r.data));var i=new ml(r);o.set(e,i);var a=i.send();return a.finally((function(){i.destruct(),o.delete(e),t.progressHandler(100)})).catch((function(){return null})),a.then((function(e){return e.json()})).then((function(e){if(e&&!t.isSuccess(e))throw new Error(t.getMessage(e));return e}))}},{key:"onProgress",value:function(e){this.progressHandler=e}},{key:"permissions",value:function(e,t){var o=this;return Rf((function(){return Mf(this,(function(n){return o.o.permissions?(o.o.permissions.data.path=e,o.o.permissions.data.source=t,o.o.permissions.url?[2,o.get("permissions").then((function(e){if(o.parent.isInDestruct)throw Sr();var t=o.o.permissions.process;if(t||(t=o.o.ajax.process),t){var n=t.call(self,e);n.data.permissions&&(o.parent.events.fire(o,"changePermissions",o.__currentPermissions,n.data.permissions),o.__currentPermissions=n.data.permissions)}return o.__currentPermissions}))]:[2,null]):[2,null]}))}))()}},{key:"canI",value:function(e){var t="allow"+e;if(!ft&&!Df.has(t))throw Dr("Wrong action "+e);var o=this.o.permissionsPresets[t];return void 0!==o?o:null==this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]}},{key:"__items",value:function(e,t,o,n){var r=this,i=this.options;return i.items?(i.items.data.path=e,i.items.data.source=t,i.items.data.mods=o,this.get("items").then((function(e){var t=r.o.items.process;return t||(t=r.o.ajax.process),t&&(e=t.call(self,e)),n(e)}))):Promise.reject(Error("Set Items api options"))}},{key:"items",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.__items(e,t,n,(function(e){return o.generateItemsList(e.data.sources,n)}))}},{key:"itemsEx",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.__items(e,t,n,(function(e){return{items:o.generateItemsList(e.data.sources,n),loadedTotal:(t=e.data.sources,t.reduce((function(e,t){return e+t.files.length}),0))};var t}))}},{key:"generateItemsList",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return e.forEach((function(e){if(e.files&&e.files.length){var r=t.o.sort;Oo(r)&&o.sortBy&&e.files.sort((function(e,t){return r(e,t,o.sortBy)})),e.files.forEach((function(r){(function(e){var n;return!(null===(n=o.filterWord)||void 0===n?void 0:n.length)||void 0===t.o.filter||t.o.filter(e,o.filterWord)})(r)&&function(e){return"folder"===e.type||!o.onlyImages||void 0===e.isImage||e.isImage}(r)&&n.push(If.create(function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){Lf(e,t,o[t])}))}return e}({},r),{sourceName:e.name,source:e})))}))}})),n}},{key:"tree",value:function(e,t){var o=this;return Rf((function(){return Mf(this,(function(n){switch(n.label){case 0:return e=Ui(e),o.o.folder?[4,o.permissions(e,t)]:[2,Promise.reject(Error("Set Folder Api options"))];case 1:return n.sent(),o.o.folder.data.path=e,o.o.folder.data.source=t,[2,o.get("folder").then((function(e){var t=o.o.folder.process;return t||(t=o.o.ajax.process),t&&(e=t.call(self,e)),e.data.sources}))]}}))}))()}},{key:"getPathByUrl",value:function(e){var t=this;return ni("options.getLocalFileByUrl.data.url",e,this),this.get("getLocalFileByUrl").then((function(e){if(t.isSuccess(e))return e.data;throw Dr(t.getMessage(e))}))}},{key:"createFolder",value:function(e,t,o){var n=this,r=this.o.create;if(!r)throw Dr("Set Create api options");return r.data.source=o,r.data.path=t,r.data.name=e,this.get("create").then((function(e){if(n.isSuccess(e))return!0;throw Dr(n.getMessage(e))}))}},{key:"move",value:function(e,t,o,n){var r=this,i=n?"fileMove":"folderMove",a=this.options[i];if(!a)throw Dr("Set Move api options");return a.data.from=e,a.data.path=t,a.data.source=o,this.get(i).then((function(e){if(r.isSuccess(e))return!0;throw Dr(r.getMessage(e))}))}},{key:"remove",value:function(e,t,o,n){var r=this,i=this.o[e];if(!i)throw Dr('Set "'.concat(e,'" api options'));return i.data.path=t,i.data.name=o,i.data.source=n,this.get(e).then((function(e){return i.process&&(e=i.process.call(r,e)),r.getMessage(e)}))}},{key:"fileRemove",value:function(e,t,o){return this.remove("fileRemove",e,t,o)}},{key:"folderRemove",value:function(e,t,o){return this.remove("folderRemove",e,t,o)}},{key:"rename",value:function(e,t,o,n,r){var i=this,a=this.o[e];if(!a)throw Dr('Set "'.concat(e,'" api options'));return a.data.path=t,a.data.name=o,a.data.newname=n,a.data.source=r,this.get(e).then((function(e){return a.process&&(e=a.process.call(self,e)),i.getMessage(e)}))}},{key:"folderRename",value:function(e,t,o,n){return this.rename("folderRename",e,t,o,n)}},{key:"fileRename",value:function(e,t,o,n){return this.rename("fileRename",e,t,o,n)}},{key:"changeImage",value:function(e,t,o,n,r,i){this.o[e]||(this.o[e]={data:{}});var a=this.o[e];return void 0===a.data&&(a.data={action:e}),a.data.newname=r||n,i&&(a.data.box=i),a.data.path=t,a.data.name=n,a.data.source=o,this.get(e).then((function(){return!0}))}},{key:"crop",value:function(e,t,o,n,r){return this.changeImage("crop",e,t,o,n,r)}},{key:"resize",value:function(e,t,o,n,r){return this.changeImage("resize",e,t,o,n,r)}},{key:"getMessage",value:function(e){return this.options.getMessage(e)}},{key:"isSuccess",value:function(e){return this.options.isSuccess(e)}},{key:"destruct",value:function(){this.__ajaxInstances.forEach((function(e){return e.destruct()})),this.__ajaxInstances.clear()}}],o&&Af(t.prototype,o),e}();function Hf(e,t,o){return e.dataProvider.fileRemove(e.state.currentPath,t,o).then((function(o){e.status(o||e.i18n('File "%s" was deleted',t),!0)})).catch(e.status)}tr.prototype.imageeditor={min_width:20,min_height:20,closeAfterSave:!1,width:"85%",height:"85%",crop:!0,resize:!0,resizeUseRatio:!0,resizeMinWidth:20,resizeMinHeight:20,cropUseRatio:!0,cropDefaultWidth:"70%",cropDefaultHeight:"70%"},kl.set("crop",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M621 1280h595v-595zm-45-45l595-595h-595v595zm1152 77v192q0 14-9 23t-23 9h-224v224q0 14-9 23t-23 9h-192q-14 0-23-9t-9-23v-224h-864q-14 0-23-9t-9-23v-864h-224q-14 0-23-9t-9-23v-192q0-14 9-23t23-9h224v-224q0-14 9-23t23-9h192q14 0 23 9t9 23v224h851l246-247q10-9 23-9t23 9q9 10 9 23t-9 23l-247 246v851h224q14 0 23 9t9 23z"/> </svg> ').set("resize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="translate(-251.000000, -443.000000)"> <g transform="translate(215.000000, 119.000000)"/> <path d="M252,448 L256,448 L256,444 L252,444 L252,448 Z M257,448 L269,448 L269,446 L257,446 L257,448 Z M257,464 L269,464 L269,462 L257,462 L257,464 Z M270,444 L270,448 L274,448 L274,444 L270,444 Z M252,462 L252,466 L256,466 L256,462 L252,462 Z M270,462 L270,466 L274,466 L274,462 L270,462 Z M254,461 L256,461 L256,449 L254,449 L254,461 Z M270,461 L272,461 L272,449 L270,449 L270,461 Z"/> </g> </svg> ');var Ff="jodit-image-editor",qf=kl.get.bind(kl),Vf=function(e){return e?arguments.length>1&&void 0!==arguments[1]?arguments[1]:"jodti-image-editor_active":""};function Wf(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Uf(e,t,o){return Uf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Yf(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Uf(e,t,o||e)}function Yf(e){return Yf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yf(e)}function Kf(e,t){return Kf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Kf(e,t)}function Gf(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Jf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jf=function(){return!!e})()}var Xf,Zf=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Gf(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Qf="jodit-image-editor",$f="resize",ep="crop",tp=Xf=function(e){function t(e){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Yf(t),function(e,t){return!t||"object"!==Gf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Jf()?Reflect.construct(t,o||[],Yf(e).constructor):t.apply(e,o))}(this,t,[e])).resizeUseRatio=!0,o.cropUseRatio=!0,o.clicked=!1,o.start_x=0,o.start_y=0,o.top_x=0,o.top_y=0,o.width=0,o.height=0,o.activeTab=$f,o.naturalWidth=0,o.naturalHeight=0,o.ratio=0,o.new_h=0,o.new_w=0,o.diff_x=0,o.diff_y=0,o.cropBox={x:0,y:0,w:0,h:0},o.resizeBox={w:0,h:0},o.calcCropBox=function(){var e=o.crop_box.parentNode,t=.8*e.offsetWidth,n=.8*e.offsetHeight,r=t,i=n,a=o.naturalWidth,l=o.naturalHeight;t>a&&n>l?(r=a,i=l):o.ratio>t/n?(r=t,i=l*(t/a)):(r=a*(n/l),i=n),In(o.crop_box,{width:r,height:i})},o.showCrop=function(){if(o.cropImage){o.calcCropBox();var e=o.cropImage.offsetWidth||o.image.offsetWidth||o.image.naturalWidth;o.new_w=Xf.calcValueByPercent(e,o.o.cropDefaultWidth);var t=o.cropImage.offsetHeight||o.image.offsetHeight||o.image.naturalHeight;o.cropUseRatio?o.new_h=o.new_w/o.ratio:o.new_h=Xf.calcValueByPercent(t,o.o.cropDefaultHeight),In(o.cropHandler,{backgroundImage:"url("+Xn(o.cropImage,"src")+")",width:o.new_w,height:o.new_h,left:e/2-o.new_w/2,top:t/2-o.new_h/2}),o.j.e.fire(o.cropHandler,"updatesize")}},o.updateCropBox=function(){if(o.cropImage){var e=o.cropImage.offsetWidth/o.naturalWidth,t=o.cropImage.offsetHeight/o.naturalHeight;o.cropBox.x=In(o.cropHandler,"left")/e,o.cropBox.y=In(o.cropHandler,"top")/t,o.cropBox.w=o.cropHandler.offsetWidth/e,o.cropBox.h=o.cropHandler.offsetHeight/t,o.sizes.textContent=o.cropBox.w.toFixed(0)+"x"+o.cropBox.h.toFixed(0)}},o.updateResizeBox=function(){o.resizeBox.w=o.image.offsetWidth||o.naturalWidth,o.resizeBox.h=o.image.offsetHeight||o.naturalHeight},o.setHandlers=function(){var e=o,t=Zr(o.editor),n=t.widthInput,r=t.heightInput;e.j.e.on([e.editor.querySelector(".jodit_bottomright"),e.cropHandler],"mousedown.".concat(Qf),o.onResizeHandleMouseDown).on(o.j.ow,"resize.".concat(Qf),(function(){o.j.e.fire(e.resizeHandler,"updatesize"),e.showCrop(),o.j.e.fire(e.cropHandler,"updatesize")})),e.j.e.on(Bo(o.editor.querySelectorAll(".".concat(Qf,"__slider-title"))),"click",o.onTitleModeClick).on([n,r],"input",o.onChangeSizeInput);var i=Zr(o.editor),a=i.keepAspectRatioResize,l=i.keepAspectRatioCrop;a&&a.addEventListener("change",(function(){o.resizeUseRatio=a.checked})),l&&l.addEventListener("change",(function(){o.cropUseRatio=l.checked})),e.j.e.on(e.resizeHandler,"updatesize",(function(){In(e.resizeHandler,{top:0,left:0,width:e.image.offsetWidth||e.naturalWidth,height:e.image.offsetHeight||e.naturalHeight}),o.updateResizeBox()})).on(e.cropHandler,"updatesize",(function(){if(e.cropImage){var t=In(e.cropHandler,"left"),o=In(e.cropHandler,"top"),n=e.cropHandler.offsetWidth,r=e.cropHandler.offsetHeight;t<0&&(t=0),o<0&&(o=0),t+n>e.cropImage.offsetWidth&&(n=e.cropImage.offsetWidth-t,e.cropUseRatio&&(r=n/e.ratio)),o+r>e.cropImage.offsetHeight&&(r=e.cropImage.offsetHeight-o,e.cropUseRatio&&(n=r*e.ratio)),In(e.cropHandler,{width:n,height:r,left:t,top:o,backgroundPosition:-t-1+"px "+(-o-1)+"px",backgroundSize:e.cropImage.offsetWidth+"px "+e.cropImage.offsetHeight+"px"}),e.updateCropBox()}})),Object.values(e.buttons).forEach((function(t){t.onAction((function(){var o={action:e.activeTab,box:e.activeTab===$f?e.resizeBox:e.cropBox};switch(t){case e.buttons.saveas:e.j.prompt("Enter new name","Save in new file",(function(t){if(!dn(t))return e.j.alert("The name should not be empty"),!1;e.onSave(t,o,e.hide,(function(t){e.j.alert(t.message)}))}));break;case e.buttons.save:e.onSave(void 0,o,e.hide,(function(t){e.j.alert(t.message)}));break;case e.buttons.reset:e.activeTab===$f?(In(e.image,{width:null,height:null}),n.value=e.naturalWidth.toString(),r.value=e.naturalHeight.toString(),e.j.e.fire(e.resizeHandler,"updatesize")):e.showCrop()}}))}))},o.options=e&&e.o&&e.o.imageeditor?e.o.imageeditor:tr.defaultOptions.imageeditor;var n=o.options;o.resizeUseRatio=n.resizeUseRatio,o.cropUseRatio=n.cropUseRatio,o.buttons={reset:Os(o.j,"update","Reset"),save:Os(o.j,"save","Save"),saveas:Os(o.j,"save","Save as ...")},o.activeTab=n.resize?$f:ep,o.editor=function(e,t){var o=e.i18n.bind(e),n=function(e,t){return'<div class="jodit-form__group">\n\t\t\t<label class="jodit-switcher-wrapper">\n\t\t\t\t<span class=\'jodit-switcher\'>\n\t\t\t\t\t<input '.concat(Vf(!(arguments.length>2&&void 0!==arguments[2])||arguments[2],"checked"),' data-ref="').concat(t,'" type="checkbox"/>\n\t\t\t\t\t<span class="jodit-switcher__slider"></span>\n\t\t\t\t</span>\n\t\t\t\t<span>').concat(o(e),"</span>\n\t\t\t</label>\n\t</div>")};return e.create.fromHTML('<form class="'.concat(Ff,' jodit-properties">\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-3-4 jodit_col-sm-5-5">\n\t\t\t').concat(t.resize?'<div class="'.concat(Ff,"__area ").concat(Ff,"__area_resize ").concat(Ff,'_active">\n\t\t\t\t\t\t\t<div data-ref="resizeBox" class="').concat(Ff,'__box"></div>\n\t\t\t\t\t\t\t<div class="').concat(Ff,'__resizer">\n\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>'):"","\n\t\t\t").concat(t.crop?'<div class="'.concat(Ff,"__area ").concat(Ff,"__area_crop ").concat(Vf(!t.resize),'">\n\t\t\t\t\t\t\t<div data-ref="cropBox" class="').concat(Ff,'__box">\n\t\t\t\t\t\t\t\t<div class="').concat(Ff,'__croper">\n\t\t\t\t\t\t\t\t\t<i class="jodit_bottomright"></i>\n\t\t\t\t\t\t\t\t\t<i class="').concat(Ff,'__sizes"></i>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>'):"",'\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-1-4 jodit_col-sm-5-5">\n\t\t\t').concat(t.resize?'<div data-area="resize" class="'.concat(Ff,"__slider ").concat(Ff,'_active">\n\t\t\t\t\t\t\t<div class="').concat(Ff,'__slider-title">\n\t\t\t\t\t\t\t\t').concat(qf("resize"),"\n\t\t\t\t\t\t\t\t").concat(o("Resize"),'\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="').concat(Ff,'__slider-content">\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t').concat(o("Width"),'\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="widthInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class="jodit-form__group">\n\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t').concat(o("Height"),'\n\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t<input type="number" data-ref="heightInput" class="jodit-input"/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t').concat(n("Keep Aspect Ratio","keepAspectRatioResize"),"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>"):"","\n\t\t\t").concat(t.crop?'<div data-area="crop" class="'.concat(Ff,"__slider ").concat(Vf(!t.resize),'\'">\n\t\t\t\t\t\t\t<div class="').concat(Ff,'__slider-title">\n\t\t\t\t\t\t\t\t').concat(qf("crop"),"\n\t\t\t\t\t\t\t\t").concat(o("Crop"),'\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class="').concat(Ff,'__slider-content">\n\t\t\t\t\t\t\t\t').concat(n("Keep Aspect Ratio","keepAspectRatioCrop"),"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>"):"","\n\t\t\t</div>\n\t\t</div>\n\t</form>"))}(o.j,o.options);var r=Zr(o.editor),i=r.resizeBox,a=r.cropBox;return o.resize_box=i,o.crop_box=a,o.sizes=o.editor.querySelector(".".concat(Qf,"__area.").concat(Qf,"__area_crop .jodit-image-editor__sizes")),o.resizeHandler=o.editor.querySelector(".".concat(Qf,"__resizer")),o.cropHandler=o.editor.querySelector(".".concat(Qf,"__croper")),o._dialog=o.j.dlg({buttons:["fullsize","dialog.close"]}),o._dialog.setContent(o.editor),o._dialog.setSize(o.o.width,o.o.height),o._dialog.setHeader([o.buttons.reset,o.buttons.save,o.buttons.saveas]),o.setHandlers(),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kf(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"ImageEditor"}},{key:"o",get:function(){return this.options}},{key:"hide",value:function(){this._dialog.close()}},{key:"open",value:function(e,t){var o=this;return this.j.async.promise((function(n){var r=(new Date).getTime();o.image=o.j.c.element("img"),Jr("img,.jodit-icon_loader",o.resize_box).forEach(ui.safeRemove),Jr("img,.jodit-icon_loader",o.crop_box).forEach(ui.safeRemove),In(o.cropHandler,"background","transparent"),o.onSave=t,o.resize_box.appendChild(o.j.c.element("i",{class:"jodit-icon_loader"})),o.crop_box.appendChild(o.j.c.element("i",{class:"jodit-icon_loader"})),/\?/.test(e)?e+="&_tst="+r:e+="?_tst="+r,o.image.setAttribute("src",e),o._dialog.open();var i=Zr(o.editor),a=i.widthInput,l=i.heightInput,s=function(){o.isDestructed||(o.image.removeEventListener("load",s),o.naturalWidth=o.image.naturalWidth,o.naturalHeight=o.image.naturalHeight,a.value=o.naturalWidth.toString(),l.value=o.naturalHeight.toString(),o.ratio=o.naturalWidth/o.naturalHeight,o.resize_box.appendChild(o.image),o.cropImage=o.image.cloneNode(!0),o.crop_box.appendChild(o.cropImage),ui.safeRemove.apply(null,Jr(".jodit-icon_loader",o.editor)),o.activeTab===ep&&o.showCrop(),o.j.e.fire(o.resizeHandler,"updatesize"),o.j.e.fire(o.cropHandler,"updatesize"),o._dialog.setPosition(),o.j.e.fire("afterImageEditor"),n(o._dialog))};o.image.addEventListener("load",s),o.image.complete&&s()}))}},{key:"onTitleModeClick",value:function(e){var t=this,o=e.target,n=null==o?void 0:o.parentElement;if(n){Jr(".".concat(Qf,"__slider,.").concat(Qf,"__area"),t.editor).forEach((function(e){return e.classList.remove("".concat(Qf,"_active"))})),n.classList.add("".concat(Qf,"_active")),this.activeTab=Xn(n,"-area")||$f;var r=t.editor.querySelector(".".concat(Qf,"__area.").concat(Qf,"__area_")+t.activeTab);r&&r.classList.add("".concat(Qf,"_active")),t.activeTab===ep&&t.showCrop()}}},{key:"onChangeSizeInput",value:function(e){var t,o=this,n=e.target,r=Zr(this.editor),i=r.widthInput,a=r.heightInput,l="widthInput"===Xn(n,"data-ref"),s=parseInt(n.value,10),c=l?o.o.min_width:o.o.min_height,u=l?o.o.min_height:o.o.min_width;s>c&&(In(o.image,l?"width":"height",s),o.resizeUseRatio&&(t=l?Math.round(s/o.ratio):Math.round(s*o.ratio))>u&&(In(o.image,l?"height":"width",t),l?a.value=t.toString():i.value=t.toString())),this.j.e.fire(o.resizeHandler,"updatesize")}},{key:"onResizeHandleMouseDown",value:function(e){var t=this;t.target=e.target,e.preventDefault(),e.stopImmediatePropagation(),t.clicked=!0,t.start_x=e.clientX,t.start_y=e.clientY,t.activeTab===ep?(t.top_x=In(t.cropHandler,"left"),t.top_y=In(t.cropHandler,"top"),t.width=t.cropHandler.offsetWidth,t.height=t.cropHandler.offsetHeight):(t.width=t.image.offsetWidth,t.height=t.image.offsetHeight),t.j.e.on(this.j.ow,"mousemove",this.onGlobalMouseMove).one(this.j.ow,"mouseup",this.onGlobalMouseUp)}},{key:"onGlobalMouseUp",value:function(e){this.clicked&&(this.clicked=!1,e.stopImmediatePropagation(),this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove))}},{key:"onGlobalMouseMove",value:function(e){var t=this;if(t.clicked){var o=Zr(this.editor),n=o.widthInput,r=o.heightInput;t.diff_x=e.clientX-t.start_x,t.diff_y=e.clientY-t.start_y,t.activeTab===$f&&t.resizeUseRatio||t.activeTab===ep&&t.cropUseRatio?t.diff_x?(t.new_w=t.width+t.diff_x,t.new_h=Math.round(t.new_w/t.ratio)):(t.new_h=t.height+t.diff_y,t.new_w=Math.round(t.new_h*t.ratio)):(t.new_w=t.width+t.diff_x,t.new_h=t.height+t.diff_y),t.activeTab===$f?(t.new_w>t.o.resizeMinWidth&&(In(t.image,"width",t.new_w+"px"),n.value=t.new_w.toString()),t.new_h>t.o.resizeMinHeight&&(In(t.image,"height",t.new_h+"px"),r.value=t.new_h.toString()),this.j.e.fire(t.resizeHandler,"updatesize")):(t.target!==t.cropHandler?(t.top_x+t.new_w>t.cropImage.offsetWidth&&(t.new_w=t.cropImage.offsetWidth-t.top_x),t.top_y+t.new_h>t.cropImage.offsetHeight&&(t.new_h=t.cropImage.offsetHeight-t.top_y),In(t.cropHandler,{width:t.new_w,height:t.new_h})):(t.top_x+t.diff_x+t.cropHandler.offsetWidth>t.cropImage.offsetWidth&&(t.diff_x=t.cropImage.offsetWidth-t.top_x-t.cropHandler.offsetWidth),In(t.cropHandler,"left",t.top_x+t.diff_x),t.top_y+t.diff_y+t.cropHandler.offsetHeight>t.cropImage.offsetHeight&&(t.diff_y=t.cropImage.offsetHeight-t.top_y-t.cropHandler.offsetHeight),In(t.cropHandler,"top",t.top_y+t.diff_y)),this.j.e.fire(t.cropHandler,"updatesize"))}}},{key:"destruct",value:function(){this.isDestructed||(this._dialog&&!this._dialog.isInDestruct&&this._dialog.destruct(),ui.safeRemove(this.editor),this.j.e&&this.j.e.off(this.j.ow,"mousemove",this.onGlobalMouseMove).off(this.j.ow,"mouseup",this.onGlobalMouseUp).off(this.ow,".".concat(Qf)).off(".".concat(Qf)),Uf(Yf(t.prototype),"destruct",this).call(this))}}],n&&Wf(o.prototype,n),t}(Ja);function op(e,t,o,n,r,i){var a=this;return this.getInstance("ImageEditor",this.o).open(e,(function(e,l,s,c){return sr("resize"===l.action?a.dataProvider.resize:a.dataProvider.crop,o,n,t,e,l.box).then((function(e){e&&(s(),r&&r())})).catch((function(e){c(e),i&&i(e)}))}))}function np(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function rp(e){return function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){np(i,n,r,a,l,"next",e)}function l(e){np(i,n,r,a,l,"throw",e)}a(void 0)}))}}tp.calcValueByPercent=function(e,t){var o,n=t.toString(),r=parseFloat(e.toString());return(o=/^[-+]?[0-9]+(px)?$/.exec(n))?parseInt(n,10):(o=/^([-+]?[0-9.]+)%$/.exec(n))?Math.round(r*(parseFloat(o[1])/100)):r||0},Zf([Co],tp.prototype,"hide",null),Zf([Co],tp.prototype,"open",null),Zf([Co],tp.prototype,"onTitleModeClick",null),Zf([Xa(),Co],tp.prototype,"onChangeSizeInput",null),Zf([Co],tp.prototype,"onResizeHandleMouseDown",null),Zf([Co],tp.prototype,"onGlobalMouseUp",null),Zf([Za(10)],tp.prototype,"onGlobalMouseMove",null),tp=Xf=Zf([bi],tp);var ip="jodit-file-browser-preview",ap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"next",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"right";return'<div class="'.concat(ip,"__navigation ").concat(ip,"__navigation_arrow_").concat(e,'">')+""+kl.get("angle-"+t)+"</a>"};function lp(e){if(!e.o.contextMenu)return function(){};var t=new jf(e);return function(o){var n=cp(o.target,e.container);if(n){var r=n,i=e.options,a=function(e){return Xn(r,e)||""};return e.async.setTimeout((function(){var l=up(n,Ef(e));l&&(e.state.activeElements=[l],t.show(o.clientX,o.clientY,[!("1"===a("data-is-file")||!i.editImage||!e.dataProvider.canI("ImageResize")&&!e.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec:function(){return op.call(e,a("href"),a("data-name"),a("data-path"),a("data-source"))}},!!e.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec:function(){e.e.fire("fileRename.filebrowser",a("data-name"),a("data-path"),a("data-source"))}},!!e.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",exec:rp((function(){var t;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,Hf(e,a("data-name"),a("data-source"))];case 1:return o.sent(),[3,3];case 2:return t=o.sent(),[2,e.status(t)];case 3:return e.state.activeElements=[],[2,Of(e).catch(e.status)]}}))}))},!!i.preview&&{icon:"eye",title:"Preview",exec:function(){var t=e.dlg({buttons:["fullsize","dialog.close"]}),o=e.c.div(ip,'<div class="jodit-icon_loader"></div>'),n=e.c.div(ip+"__box"),l=e.c.fromHTML(ap()),s=e.c.fromHTML(ap("prev","left")),c=function(a){var c=e.c.element("img");c.setAttribute("src",a);var u=function(){var a;e.isInDestruct||(e.e.off(c,"load"),ui.detach(o),i.showPreviewNavigation&&(ui.prevWithClass(r,e.files.getFullElName("item"))&&o.appendChild(s),ui.nextWithClass(r,e.files.getFullElName("item"))&&o.appendChild(l)),o.appendChild(n),n.appendChild(c),t.setPosition(),null===(a=null==e?void 0:e.events)||void 0===a||a.fire("previewOpenedAndLoaded"))};e.e.on(c,"load",u),c.complete&&u()};e.e.on([l,s],"click",(function(){if(!(r=this===l?ui.nextWithClass(r,e.files.getFullElName("item")):ui.prevWithClass(r,e.files.getFullElName("item"))))throw Dr("Need element");ui.detach(o),ui.detach(n),o.innerHTML='<div class="jodit-icon_loader"></div>',c(a("href"))})),e.e.on("beforeDestruct",(function(){t.destruct()})),t.container.classList.add(ip+"__dialog"),t.setContent(o),t.setPosition(),t.open(),c(a("href")),e.events.on("beforeDestruct",(function(){t.destruct()})).fire("previewOpened")}},{icon:"upload",title:"Download",exec:function(){var t=a("href");t&&e.ow.open(t)}}]))}),e.defaultTimeout),e.e.on("beforeClose",(function(){t.close()})).on("beforeDestruct",(function(){return t.destruct()})),o.stopPropagation(),o.preventDefault(),!1}}}function sp(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var cp=function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a";return ui.closest(e,(function(e){return ui.isTag(e,o)}),t)},up=function(e,t){return t[e.dataset.key||""].item};function dp(){var e=this,t=!1,o=Ef(this),n=this;n.e.on(n.tree.container,"dragstart",(function(e){var o=cp(e.target,n.container);o&&n.o.moveFolder&&(t=o)})).on(n.tree.container,"drop",(function(o){if((n.o.moveFile||n.o.moveFolder)&&t){var r=Xn(t,"-path")||"";if(!n.o.moveFolder&&t.classList.contains(e.tree.getFullElName("item")))return!1;if(t.classList.contains(e.files.getFullElName("item"))&&(r+=Xn(t,"-name"),!n.o.moveFile))return!1;var i=cp(o.target,n.container);if(!i)return;n.dataProvider.move(r,Xn(i,"-path")||"",Xn(i,"-source")||"",t.classList.contains(e.files.getFullElName("item"))).then((function(){return Of(e)})).catch(n.status),t=!1}})).on(n.files.container,"contextmenu",lp(n)).on(n.files.container,"click",(function(t){wr(t)||(e.state.activeElements=[])})).on(n.files.container,"click",(function(e){var t=cp(e.target,n.container);if(t){var r=up(t,o);if(r)return wr(e)?n.state.activeElements=function(e){return function(e){if(Array.isArray(e))return sp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return sp(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?sp(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(n.state.activeElements).concat([r]):n.state.activeElements=[r],e.stopPropagation(),!1}})).on(n.files.container,"dragstart",(function(e){if(n.o.moveFile){var o=cp(e.target,n.container);if(!o)return;t=o}})).on(n.container,"drop",(function(e){return e.preventDefault()}))}function fp(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function pp(){var e=this,t=this.state,o=this.dataProvider,n=this;n.e.on("view.filebrowser",(function(e){e!==t.view&&(t.view=e)})).on("sort.filebrowser",(function(e){e!==t.sortBy&&(t.sortBy=e,Sf(n))})).on("filter.filebrowser",(function(e){e!==t.filterWord&&(t.filterWord=e,Sf(n))})).on("openFolder.filebrowser",(function(e){var t;t=".."===e.name?e.path.split("/").filter((function(e){return e.length})).slice(0,-1).join("/"):Wi(e.path,e.name),n.state.currentPath=t,n.state.currentSource="."===e.name?Bf:e.source})).on("removeFolder.filebrowser",(function(e){n.confirm("Are you sure?","Delete",(function(t){t&&o.folderRemove(e.path,e.name,e.source).then((function(e){return n.status(e,!0),Of(n)})).catch(n.status)}))})).on("renameFolder.filebrowser",(function(e){n.prompt("Enter new name","Rename",(function(t){if(!cn(t))return n.status(n.i18n("Enter new name")),!1;o.folderRename(e.path,e.name,t,e.source).then((function(e){return n.state.activeElements=[],n.status(e,!0),Of(n)})).catch(n.status)}),"type name",e.name)})).on("addFolder.filebrowser",(function(e){n.prompt("Enter Directory name","Create directory",(function(t){o.createFolder(t,e.path,e.source).then((function(){return Of(n)})).catch(n.status)}),"type name")})).on("fileRemove.filebrowser",(function(){n.state.activeElements.length&&n.confirm("Are you sure?","",(function(e){if(e){var t=[];n.state.activeElements.forEach((function(e){t.push(Hf(n,e.file||e.name||"",e.sourceName))})),n.state.activeElements=[],Promise.all(t).then((function(){return Of(n).catch(n.status)}),n.status)}}))})).on("edit.filebrowser",(function(){if(1===n.state.activeElements.length){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fp(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?fp(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.state.activeElements,1)[0];op.call(n,t.fileURL,t.file||"",t.path,t.sourceName)}})).on("fileRename.filebrowser",(function(e,t,r){1===n.state.activeElements.length&&n.prompt("Enter new name","Rename",(function(i){if(!cn(i))return n.status(n.i18n("Enter new name")),!1;o.fileRename(t,e,i,r).then((function(e){n.state.activeElements=[],n.status(e,!0),Sf(n)})).catch(n.status)}),"type name",e)})).on("update.filebrowser",(function(){Of(e).then(e.status,e.status)}))}function hp(){var e=this,t=Ef(this),o=this,n=o.state,r=o.files,i=o.create,a=o.options;n.on(["change.currentPath","change.currentSource"],this.async.debounce((function(){e.o.saveStateInStorage&&e.o.saveStateInStorage.storeLastOpenedFolder&&e.storage.set("currentPath",e.state.currentPath).set("currentSource",e.state.currentSource),Of(e).catch(e.status)}),this.defaultTimeout)).on("beforeChange.activeElements",(function(){n.activeElements.forEach((function(e){var o=e.uniqueHashKey,n=t[o].elm;n&&n.classList.remove(r.getFullElName("item","active",!0))}))})).on("change.activeElements",(function(){e.e.fire("changeSelection"),n.activeElements.forEach((function(e){var o=e.uniqueHashKey,n=t[o].elm;n&&n.classList.add(r.getFullElName("item","active",!0))}))})).on("change.view",(function(){r.setMod("view",n.view),e.o.saveStateInStorage&&e.o.saveStateInStorage.storeView&&e.storage.set("view",n.view)})).on("change.sortBy",(function(){e.o.saveStateInStorage&&e.o.saveStateInStorage.storeSortBy&&e.storage.set("sortBy",n.sortBy)})).on("change.elements",this.async.debounce((function(){ui.detach(r.container),n.elements.length?n.elements.forEach((function(o){e.files.container.appendChild(function(o){var n=o.uniqueHashKey;if(t[n])return t[n].elm;var r=i.fromHTML(a.getThumbTemplate.call(e,o,o.source,o.sourceName.toString()));return r.dataset.key=n,t[n]={item:o,elm:r},t[n].elm}(o))})):r.container.appendChild(i.div(e.componentName+"_no-files_true",e.i18n("There are no files")))}),this.defaultTimeout)).on("change.sources",this.async.debounce((function(){ui.detach(e.tree.container),n.sources.forEach((function(t){var o=t.name;if(o&&"default"!==o&&e.tree.container.appendChild(i.div(e.tree.getFullElName("source-title"),o)),t.folders.forEach((function(n){var r=i.a(e.tree.getFullElName("item"),{draggable:"draggable",href:"#","data-path":Wi(t.path,n+"/"),"data-name":n,"data-source":o,"data-source-path":t.path},i.span(e.tree.getFullElName("item-title"),n)),l=function(r){return function(i){e.e.fire("".concat(r,".filebrowser"),{name:n,path:Wi(t.path+"/"),source:o}),i.stopPropagation(),i.preventDefault()}};if(e.e.on(r,"click",l("openFolder")),e.tree.container.appendChild(r),".."!==n&&"."!==n){if(a.renameFolder&&e.dataProvider.canI("FolderRename")){var s=Os(e,{icon:{name:"pencil"},name:"rename",tooltip:"Rename",size:"tiny"});s.onAction(l("renameFolder")),r.appendChild(s.container)}if(a.deleteFolder&&e.dataProvider.canI("FolderRemove")){var c=Os(e,{icon:{name:"cancel"},name:"remove",tooltip:"Delete",size:"tiny"});c.onAction(l("removeFolder")),r.appendChild(c.container)}}})),a.createNewFolder&&e.dataProvider.canI("FolderCreate")){var n=Os(e,"plus","Add folder","secondary");n.onAction((function(){e.e.fire("addFolder",{path:Wi(t.path+"/"),source:o})})),e.tree.append(n)}}))}),this.defaultTimeout))}function vp(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gp(e){return gp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gp(e)}function mp(e,t){return mp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mp(e,t)}function bp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bp=function(){return!!e})()}var yp=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=gp(o=t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,bp()?Reflect.construct(o,n||[],gp(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mp(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"FileBrowserFiles"}}])&&vp(o.prototype,n),t}(ql);function _p(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jp(e)}function wp(e,t){return wp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wp(e,t)}function kp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(kp=function(){return!!e})()}var Sp=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=jp(o=t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,kp()?Reflect.construct(o,n||[],jp(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wp(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"FileBrowserTree"}}])&&_p(o.prototype,n),t}(ql);function xp(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Op(e,t,o){return Op="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Cp(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Op(e,t,o||e)}function Cp(e){return Cp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cp(e)}function zp(e,t){return zp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zp(e,t)}function Ep(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Tp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tp=function(){return!!e})()}var Ip=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Ep(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Pp=function(e){function t(e){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Cp(t),function(e,t){return!t||"object"!==Ep(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Tp()?Reflect.construct(t,o||[],Cp(e).constructor):t.apply(e,o))}(this,t,[e])).browser=o.c.div(o.componentName),o.status_line=o.c.div(o.getFullElName("status")),o.tree=new Sp(o),o.files=new yp(o),o.state=Ea({currentPath:"",currentSource:Bf,currentBaseUrl:"",activeElements:[],elements:[],sources:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),o.errorHandler=function(e){var t,n;No(e)||(t=e,(null!=(n=Error)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](t):t instanceof n)?o.status(o.i18n(e.message)):o.status(o.dataProvider.getMessage(e)))},o.close=function(){o._dialog.close()},o.__prevButtons=[],o.attachEvents(e);var n=o;n.options=mr(e||{},tr.defaultOptions.filebrowser),n.browser.component=o,n.container=n.browser,n.o.showFoldersPanel&&n.browser.appendChild(n.tree.container),n.browser.appendChild(n.files.container),n.browser.appendChild(n.status_line),pp.call(n),dp.call(n),hp.call(n),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach((function(e){null!=o.options[e]&&(o.options[e]=mr(o.options[e],o.o.ajax))}));var r=o.o.saveStateInStorage||{storeLastOpenedFolder:!1,storeView:!1,storeSortBy:!1},i=r.storeView,a=r.storeSortBy,l=r.storeLastOpenedFolder,s=i&&o.storage.get("view");s&&null==o.o.view?n.state.view="list"===s?"list":"tiles":n.state.view="list"===n.o.view?"list":"tiles",n.files.setMod("view",n.state.view);var c=a&&n.storage.get("sortBy");if(c){var u=c.split("-");n.state.sortBy=["changed","name","size"].includes(u[0])?c:"changed-desc"}else n.state.sortBy=n.o.sortBy||"changed-desc";if(l){var d=n.storage.get("currentPath"),f=n.storage.get("currentSource");n.state.currentPath=null!=d?d:"",n.state.currentSource=null!=f?f:""}return n.initUploader(n),n.setStatus(zo.ready),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zp(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"FileBrowser"}},{key:"dataProvider",get:function(){return function(e,t){return new Nf(e,t)}(this,this.options)}},{key:"onSelect",value:function(e){var t=this;return function(){if(t.state.activeElements.length){var o=[],n=[];t.state.activeElements.forEach((function(e){var t=e.fileURL;t&&(o.push(t),n.push(e.isImage||!1))})),t.close();var r={baseurl:"",files:o,isImages:n};Oo(e)&&e(r),t.close()}return!1}}},{key:"_dialog",get:function(){var e,t=this,o=this.dlg({minWidth:Math.min(700,screen.width),minHeight:300,buttons:null!==(e=this.o.headerButtons)&&void 0!==e?e:["fullsize","dialog.close"]});return["beforeClose","afterClose","beforeOpen"].forEach((function(e){return o.events.on(o,e,(function(){return t.e.fire(e)}))})),o.setSize(this.o.width,this.o.height),o}},{key:"storage",get:function(){return Eu.makeStorage(Boolean(this.o.saveStateInStorage),this.componentName)}},{key:"isOpened",get:function(){return this._dialog.isOpened&&"none"!==this.browser.style.display}},{key:"status",value:function(e,t){e&&!No(e)&&(Io(e)||(e=e.message),Io(e)&&dn(e).length&&this.message.message(e,t?"success":"error",this.o.howLongShowMsg))}},{key:"open",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.o.defaultCallback,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.state.onlyImages=o,this.async.promise((function(o,n){var r;if(!e.o.items||!e.o.items.url)throw Dr("Need set options.filebrowser.ajax.url");var i=0;e.e.off(e.files.container,"dblclick").on(e.files.container,"dblclick",e.onSelect(t)).on(e.files.container,"touchstart",(function(){var o=(new Date).getTime();o-i<ao&&e.onSelect(t)(),i=o})).off("select.filebrowser").on("select.filebrowser",e.onSelect(t));var a=e.c.div();null===(r=e.toolbar)||void 0===r||r.appendTo(a),e.__updateToolbarButtons(),e._dialog.open(e.browser,a),e.e.fire("sort.filebrowser",e.state.sortBy),Of(e).then(o,n).finally((function(){var t;e.isInDestruct||null===(t=null==e?void 0:e.e)||void 0===t||t.fire("fileBrowserReady.filebrowser")}))})).catch((function(e){if(!No(e)&&!ft)throw e}))}},{key:"__getButtons",value:function(){var e,t=this;return(null!==(e=this.o.buttons)&&void 0!==e?e:[]).filter((function(e){if(!Io(e))return!0;switch(e){case"filebrowser.upload":return t.dataProvider.canI("FileUpload");case"filebrowser.edit":return t.dataProvider.canI("ImageResize")||t.dataProvider.canI("ImageCrop");case"filebrowser.remove":return t.dataProvider.canI("FileRemove")}return!0}))}},{key:"initUploader",value:function(e){var t,o=this,n=this,r=mr((null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.uploader)||{},tr.defaultOptions.uploader),i=function(){return Sf(o)};n.uploader=n.getInstance("Uploader",r),n.uploader.setPath(n.state.currentPath).setSource(n.state.currentSource).bind(n.browser,i,n.errorHandler),this.state.on(["change.currentPath","change.currentSource"],(function(){o.uploader.setPath(o.state.currentPath).setSource(o.state.currentSource)})),n.e.on("bindUploader.filebrowser",(function(e){n.uploader.bind(e,i,n.errorHandler)}))}},{key:"destruct",value:function(){var e;this.isInDestruct||(null===(e=di(this,"_dialog"))||void 0===e||e.destruct(),Op(Cp(t.prototype),"destruct",this).call(this),this.events&&this.e.off(".filebrowser"),this.uploader&&this.uploader.destruct())}},{key:"__updateToolbarButtons",value:function(){var e,t=this.__getButtons();(function(e,t){if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0})(this.__prevButtons,t)||(this.__prevButtons=t,null===(e=this.toolbar)||void 0===e||e.build(t))}}],n&&xp(o.prototype,n),t}(Zd);function Rp(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ap(e,t,o){return Ap="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Lp(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Ap(e,t,o||e)}function Lp(e){return Lp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Lp(e)}function Mp(e,t){return Mp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Mp(e,t)}function Bp(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Dp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Dp=function(){return!!e})()}Ip([fi],Pp.prototype,"dataProvider",null),Ip([fi],Pp.prototype,"_dialog",null),Ip([fi],Pp.prototype,"storage",null),Ip([Co],Pp.prototype,"status",null),Ip([Co],Pp.prototype,"open",null),Ip([Sa("dataProvider:changePermissions")],Pp.prototype,"__updateToolbarButtons",null),Pp=Ip([el(hf)],Pp);var Np=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Bp(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Hp=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Lp(t),function(e,t){return!t||"object"!==Bp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Dp()?Reflect.construct(t,o||[],Lp(e).constructor):t.apply(e,o))}(this,t,[e])).buttons=[],o.hasStyle=!1,o.__inited=!1,e.e.on("afterPluginSystemInit",o.__afterPluginSystemInit).on("afterInit",o.__afterInit).on("beforeDestruct",o.__beforeDestruct),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mp(e,t)}(t,e),o=t,(n=[{key:"className",value:function(){return"Plugin"}},{key:"__afterPluginSystemInit",value:function(){var e=this.j,t=this.buttons;t&&$o(e)&&t.forEach((function(t){e.registerButton(t)}))}},{key:"__afterInit",value:function(){this.__inited=!0,this.setStatus(zo.ready),this.afterInit(this.jodit)}},{key:"init",value:function(e){this.jodit.isReady&&(this.afterInit(this.jodit),this.__afterPluginSystemInit(),this.jodit.e.fire("rebuildToolbar"))}},{key:"__beforeDestruct",value:function(){var e;if(!this.isInDestruct){var o=this.j;if(o.e.off("afterPluginSystemInit",this.__afterPluginSystemInit).off("afterInit",this.__afterInit).off("beforeDestruct",this.destruct),this.setStatus(zo.beforeDestruct),!this.__inited)return Ap(Lp(t.prototype),"destruct",this).call(this);$o(o)&&(null===(e=this.buttons)||void 0===e||e.forEach((function(e){null==o||o.unregisterButton(e)}))),this.beforeDestruct(this.j),Ap(Lp(t.prototype),"destruct",this).call(this)}}}])&&Rp(o.prototype,n),t}(Ja);function Fp(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Hp.requires=[],Np([Co],Hp.prototype,"__afterPluginSystemInit",null),Np([Co],Hp.prototype,"__afterInit",null),Np([Co],Hp.prototype,"__beforeDestruct",null);var qp=function(){function e(t,o,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.oldValue=t,this.newValue=o,this.history=n,this.tick=r}var t,o;return t=e,(o=[{key:"undo",value:function(){this.history.snapshot.restore(this.oldValue)}},{key:"redo",value:function(){this.history.snapshot.restore(this.newValue)}}])&&Fp(t.prototype,o),e}();function Vp(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Wp(e,t,o){return Wp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Up(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Wp(e,t,o||e)}function Up(e){return Up=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Up(e)}function Yp(e,t){return Yp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yp(e,t)}function Kp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kp=function(){return!!e})()}var Gp=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=Up(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,Kp()?Reflect.construct(t,o||[],Up(e).constructor):t.apply(e,o))}(this,t,arguments)).__isBlocked=!1,e.__levelOfTransaction=0,e}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yp(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"Snapshot"}},{key:"calcHierarchyLadder",value:function(e){var o=[];if(!e||!e.parentNode||!ui.isOrContains(this.j.editor,e))return[];for(;e&&e!==this.j.editor;)e&&!t.isIgnoredNode(e)&&o.push(t.countNodesBeforeInParent(e)),e=e.parentNode;return o.reverse()}},{key:"getElementByLadder",value:function(e){var t,o=this.j.editor;for(t=0;o&&t<e.length;t+=1)o=o.childNodes[e[t]];return o}},{key:"isBlocked",get:function(){return this.__isBlocked}},{key:"__block",value:function(e){this.__isBlocked=e}},{key:"transaction",value:function(e){this.__block(!0),this.__levelOfTransaction+=1;try{e()}catch(e){if(!ft)throw e}finally{this.__levelOfTransaction-=1,0===this.__levelOfTransaction&&this.__block(!1)}}},{key:"make",value:function(){var e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.__getCleanedEditorValue(this.j.editor);var o=this.j.s.sel;if(o&&o.rangeCount){var n=o.getRangeAt(0),r=this.calcHierarchyLadder(n.startContainer),i=this.calcHierarchyLadder(n.endContainer),a=t.strokeOffset(n.startContainer,n.startOffset),l=t.strokeOffset(n.endContainer,n.endOffset);r.length||n.startContainer===this.j.editor||(a=0),i.length||n.endContainer===this.j.editor||(l=0),e.range={startContainer:r,startOffset:a,endContainer:i,endOffset:l}}return e}},{key:"restore",value:function(e){var t=this;this.transaction((function(){var o=t.storeScrollState();t.__getCleanedEditorValue(t.j.editor)!==e.html&&(t.j.value=e.html),t.restoreOnlySelection(e),t.restoreScrollState(o)}))}},{key:"storeScrollState",value:function(){return[this.j.ow.scrollY,this.j.editor.scrollTop]}},{key:"restoreScrollState",value:function(e){var t=this.j,o=t.ow;o.scrollTo(o.scrollX,e[0]),t.editor.scrollTop=e[1]}},{key:"restoreOnlySelection",value:function(e){try{if(e.range){var t=this.j.ed.createRange();t.setStart(this.getElementByLadder(e.range.startContainer),e.range.startOffset),t.setEnd(this.getElementByLadder(e.range.endContainer),e.range.endOffset),this.j.s.selectRange(t)}}catch(e){this.j.editor.lastChild&&this.j.s.setCursorAfter(this.j.editor.lastChild),ft||console.warn("Broken snapshot",e)}}},{key:"destruct",value:function(){this.__block(!1),Wp(Up(t.prototype),"destruct",this).call(this)}},{key:"__getCleanedEditorValue",value:function(e){var t=e.cloneNode(!0);return ui.temporaryList(t).forEach(ui.unwrap),t.innerHTML}}],r=[{key:"equal",value:function(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)}},{key:"countNodesBeforeInParent",value:function(e){if(!e.parentNode)return 0;for(var t=e.parentNode.childNodes,o=0,n=null,r=0;r<t.length;r+=1){if(!n||this.isIgnoredNode(t[r])||ui.isText(n)&&ui.isText(t[r])||(o+=1),t[r]===e)return o;n=t[r]}return 0}},{key:"strokeOffset",value:function(e,t){for(;ui.isText(e);)e=e.previousSibling,ui.isText(e)&&e.nodeValue&&(t+=e.nodeValue.length);return t}},{key:"isIgnoredNode",value:function(e){return ui.isText(e)&&!e.nodeValue||ui.isTemporary(e)}}],n&&Vp(o.prototype,n),r&&Vp(o,r),t}(Ja);function Jp(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Xp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.size=t,this.commands=[],this.stackPosition=-1}var t,o;return t=e,(o=[{key:"length",get:function(){return this.commands.length}},{key:"clearRedo",value:function(){this.commands.length=this.stackPosition+1}},{key:"clear",value:function(){this.commands.length=0,this.stackPosition=-1}},{key:"push",value:function(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1,this.commands.length>this.size&&(this.commands.shift(),this.stackPosition-=1)}},{key:"replace",value:function(e){this.commands[this.stackPosition]=e}},{key:"current",value:function(){return this.commands[this.stackPosition]}},{key:"undo",value:function(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)}},{key:"redo",value:function(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)}},{key:"canUndo",value:function(){return this.stackPosition>=0}},{key:"canRedo",value:function(){return this.stackPosition<this.commands.length-1}}])&&Jp(t.prototype,o),e}();function Zp(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qp(e,t,o){return Qp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$p(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Qp(e,t,o||e)}function $p(e){return $p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$p(e)}function eh(e,t){return eh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},eh(e,t)}function th(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function oh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(oh=function(){return!!e})()}tr.prototype.history={enable:!0,maxHistoryLength:1/0,timeout:1e3};var nh=function(e){function t(e){var o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Xp(e.o.history.maxHistoryLength),r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Gp(e);return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=$p(t),function(e,t){return!t||"object"!==th(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,oh()?Reflect.construct(t,o||[],$p(e).constructor):t.apply(e,o))}(this,t,[e])).updateTick=0,o.__stack=n,o.snapshot=r,e.o.history.enable&&e.e.on("afterAddPlace.history",(function(){o.isInDestruct||(o.startValue=o.snapshot.make(),e.events.on("internalChange internalUpdate",(function(){o.startValue=o.snapshot.make()})).on(e.editor,["changeSelection","selectionstart","selectionchange","mousedown","mouseup","keydown","keyup"].map((function(e){return e+".history"})).join(" "),(function(){o.startValue.html===o.j.getNativeEditorValue()&&(o.startValue=o.snapshot.make())})).on(o,"change.history",o.onChange))})),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eh(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"History"}},{key:"redo",value:function(){this.__stack.redo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}},{key:"canRedo",value:function(){return this.__stack.canRedo()}},{key:"undo",value:function(){this.__stack.undo()&&(this.startValue=this.snapshot.make(),this.fireChangeStack())}},{key:"canUndo",value:function(){return this.__stack.canUndo()}},{key:"clear",value:function(){this.startValue=this.snapshot.make(),this.__stack.clear(),this.fireChangeStack()}},{key:"length",get:function(){return this.__stack.length}},{key:"startValue",get:function(){return this.__startValue},set:function(e){this.__startValue=e}},{key:"__upTick",value:function(){this.updateTick+=1}},{key:"onChange",value:function(){this.__processChanges()}},{key:"__processChanges",value:function(){!this.snapshot.isBlocked&&this.j.o.history.enable&&this.updateStack()}},{key:"updateStack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.snapshot.make();if(!Gp.equal(t,this.startValue)){var o=new qp(this.startValue,t,this,this.updateTick);if(e){var n=this.__stack.current();n&&this.updateTick===n.tick&&this.__stack.replace(o)}else this.__stack.push(o);this.startValue=t,this.fireChangeStack()}}},{key:"fireChangeStack",value:function(){var e;this.j&&!this.j.isInDestruct&&(null===(e=this.j.events)||void 0===e||e.fire("changeStack"))}},{key:"destruct",value:function(){this.isInDestruct||(this.j.events&&this.j.e.off(".history"),this.snapshot.destruct(),Qp($p(t.prototype),"destruct",this).call(this))}}],n&&Zp(o.prototype,n),t}(Ja);function rh(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ih(e,t,o){return ih="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ah(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},ih(e,t,o||e)}function ah(e){return ah=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ah(e)}function lh(e,t){return lh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lh(e,t)}function sh(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ch(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ch=function(){return!!e})()}!function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":th(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)}([Xa()],nh.prototype,"onChange",null);var uh=function(e){function t(e,o){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=ah(t),function(e,t){return!t||"object"!==sh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ch()?Reflect.construct(t,o||[],ah(e).constructor):t.apply(e,o))}(this,t,[e])).target=o,n.mods={},n.container=e.c.div("jodit-status-bar"),o.appendChild(n.container),n.hide(),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lh(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"StatusBar"}},{key:"hide",value:function(){this.container.classList.add("jodit_hidden")}},{key:"show",value:function(){this.container.classList.remove("jodit_hidden")}},{key:"isShown",get:function(){return!this.container.classList.contains("jodit_hidden")}},{key:"getHeight",value:function(){var e,t;return null!==(t=null===(e=this.container)||void 0===e?void 0:e.offsetHeight)&&void 0!==t?t:0}},{key:"findEmpty",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getElms(e?"item-right":"item"),o=0;o<t.length;o+=1)if(!t[o].innerHTML.trim().length)return t[o]}},{key:"append",value:function(e){var t,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.findEmpty(o)||this.j.c.div(this.getFullElName("item"));o&&n.classList.add(this.getFullElName("item-right")),n.appendChild(e),null===(t=this.container)||void 0===t||t.appendChild(n),this.j.o.statusbar&&this.show(),this.j.e.fire("resize")}},{key:"destruct",value:function(){this.isInDestruct||(this.setStatus(zo.beforeDestruct),ui.safeRemove(this.container),ih(ah(t.prototype),"destruct",this).call(this))}}],n&&rh(o.prototype,n),t}(Ja);function dh(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fh(e,t,o){return fh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ph(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},fh(e,t,o||e)}function ph(e){return ph=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ph(e)}function hh(e,t){return hh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hh(e,t)}function vh(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function gh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gh=function(){return!!e})()}uh=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":sh(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a}([bi,el(jl,yl)],uh);var mh=new WeakMap,bh=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=ph(t),function(e,t){return!t||"object"!==vh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,gh()?Reflect.construct(t,o||[],ph(e).constructor):t.apply(e,o))}(this,t,arguments)).selected=new Set,e}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hh(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"Table"}},{key:"__recalculateStyles",value:function(){var e=Ba(this.j,t,"style",!0),o=[];this.selected.forEach((function(e){var t=Qr(e);t&&o.push(t)})),e.innerHTML=o.length?o.join(",")+"{".concat(this.jodit.options.table.selectionCellStyle,"}"):""}},{key:"addSelection",value:function(e){this.selected.add(e),this.__recalculateStyles();var o=ui.closest(e,"table",this.j.editor);if(o){var n=t.__selectedByTable.get(o)||new Set;n.add(e),t.__selectedByTable.set(o,n)}}},{key:"removeSelection",value:function(e){this.selected.delete(e),this.__recalculateStyles();var o=ui.closest(e,"table",this.j.editor);if(o){var n=t.__selectedByTable.get(o);n&&(n.delete(e),n.size||t.__selectedByTable.delete(o))}}},{key:"getAllSelectedCells",value:function(){return Bo(this.selected)}},{key:"destruct",value:function(){return this.selected.clear(),fh(ph(t.prototype),"destruct",this).call(this)}},{key:"getRowsCount",value:function(e){return t.__getRowsCount(e)}},{key:"getColumnsCount",value:function(e){return t.__getColumnsCount(e)}},{key:"formalMatrix",value:function(e,o){return t.__formalMatrix(e,o)}},{key:"formalCoordinate",value:function(e,o){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.__formalCoordinate(e,o,n)}},{key:"appendRow",value:function(e,o,n){return t.__appendRow(e,o,n,this.j.createInside)}},{key:"removeRow",value:function(e,o){return t.__removeRow(e,o)}},{key:"appendColumn",value:function(e,o){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.__formalMatrix(e);if(!n&&ui.isCell(o.previousElementSibling))return this.appendColumn(e,o.previousElementSibling,!0);for(var i=n?o.cellIndex+((o.colSpan||1)-1):o.cellIndex,a=n?i+1:i,l=0;l<r.length;){var s=r[l];if(s[i]!==s[a]||i===a){var c=this.j.createInside.element("td");n?ui.after(s[i],c):ui.before(s[i],c),s[i].rowSpan>1&&(c.rowSpan=s[i].rowSpan)}else s[i].colSpan+=1;l+=s[i].rowSpan||1}}},{key:"removeColumn",value:function(e,o){return t.__removeColumn(e,o)}},{key:"getSelectedBound",value:function(e,o){return t.__getSelectedBound(e,o)}},{key:"normalizeTable",value:function(e){return t.__normalizeTable(e)}},{key:"mergeSelected",value:function(e){return t.__mergeSelected(e,this.j)}},{key:"splitHorizontal",value:function(e){return t.__splitHorizontal(e,this.j)}},{key:"splitVertical",value:function(e){return t.__splitVertical(e,this.j)}},{key:"setColumnWidthByDelta",value:function(e,o,n,r,i){return t.__setColumnWidthByDelta(e,o,n,r,i)}}],r=[{key:"__getSelectedCellsByTable",value:function(e){var o=t.__selectedByTable.get(e);return o?Bo(o):[]}},{key:"__getRowsCount",value:function(e){return e.rows.length}},{key:"__getColumnsCount",value:function(e){return t.__formalMatrix(e).reduce((function(e,t){return Math.max(e,t.length)}),0)}},{key:"__formalMatrix",value:function(e,t){for(var o=[[]],n=Bo(e.rows),r=function(e,n){void 0===o[n]&&(o[n]=[]);for(var r,i,a=e.colSpan,l=e.rowSpan,s=0;o[n][s];)s+=1;for(i=0;i<l;i+=1)for(r=0;r<a;r+=1){if(void 0===o[n+i]&&(o[n+i]=[]),t&&!1===t(e,n+i,s+r,a,l))return!1;o[n+i][s+r]=e}},i=0;i<n.length;i+=1)for(var a=Bo(n[i].cells),l=0;l<a.length;l+=1)if(!1===r(a[l],i))return o;return o}},{key:"__formalCoordinate",value:function(e,o){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0,i=0,a=1,l=1;return t.__formalMatrix(e,(function(e,t,s,c,u){if(o===e)return r=t,i=s,a=c||1,l=u||1,n&&(i+=(c||1)-1,r+=(u||1)-1),!1})),[r,i,a,l]}},{key:"__appendRow",value:function(e,o,n,r){var i,a;if(o)a=o.cloneNode(!0),Jr("td,th",o).forEach((function(e){var t=Xn(e,"rowspan");if(t&&parseInt(t,10)>1){var o=parseInt(t,10)-1;Xn(e,"rowspan",o>1?o:null)}})),Jr("td,th",a).forEach((function(e){e.innerHTML=""}));else{var l=t.__getColumnsCount(e);a=r.element("tr");for(var s=0;s<l;s+=1)a.appendChild(r.element("td"))}n&&o&&o.nextSibling?o.parentNode&&o.parentNode.insertBefore(a,o.nextSibling):!n&&o?o.parentNode&&o.parentNode.insertBefore(a,o):((null===(i=e.getElementsByTagName("tbody"))||void 0===i?void 0:i[0])||e).appendChild(a)}},{key:"__removeRow",value:function(e,o){var n,r=t.__formalMatrix(e),i=e.rows[o];r[o].forEach((function(t,a){if(n=!1,o-1>=0&&r[o-1][a]===t)n=!0;else if(r[o+1]&&r[o+1][a]===t){if(t.parentNode===i&&t.parentNode.nextSibling){n=!0;for(var l=a+1;r[o+1][l]===t;)l+=1;var s=ui.next(t.parentNode,(function(e){return ui.isTag(e,"tr")}),e);s&&(r[o+1][l]?s.insertBefore(t,r[o+1][l]):s.appendChild(t))}}else ui.safeRemove(t);if(n&&(t.parentNode===i||t!==r[o][a-1])){var c=t.rowSpan;Xn(t,"rowspan",c-1>1?c-1:null)}})),ui.safeRemove(i)}},{key:"__removeColumn",value:function(e,o){var n,r=t.__formalMatrix(e);r.forEach((function(e,t){var i=e[o];if(n=!1,o-1>=0&&r[t][o-1]===i||o+1<e.length&&r[t][o+1]===i?n=!0:ui.safeRemove(i),n&&(t-1<0||i!==r[t-1][o])){var a=i.colSpan;Xn(i,"colspan",a-1>1?(a-1).toString():null)}}))}},{key:"__getSelectedBound",value:function(e,o){var n,r,i,a=[[1/0,1/0],[0,0]],l=t.__formalMatrix(e);for(n=0;n<l.length;n+=1)for(r=0;l[n]&&r<l[n].length;r+=1)o.includes(l[n][r])&&(a[0][0]=Math.min(n,a[0][0]),a[0][1]=Math.min(r,a[0][1]),a[1][0]=Math.max(n,a[1][0]),a[1][1]=Math.max(r,a[1][1]));for(n=a[0][0];n<=a[1][0];n+=1)for(i=1,r=a[0][1];r<=a[1][1];r+=1){for(;l[n]&&l[n][r-i]&&l[n][r]===l[n][r-i];)a[0][1]=Math.min(r-i,a[0][1]),a[1][1]=Math.max(r-i,a[1][1]),i+=1;for(i=1;l[n]&&l[n][r+i]&&l[n][r]===l[n][r+i];)a[0][1]=Math.min(r+i,a[0][1]),a[1][1]=Math.max(r+i,a[1][1]),i+=1;for(i=1;l[n-i]&&l[n][r]===l[n-i][r];)a[0][0]=Math.min(n-i,a[0][0]),a[1][0]=Math.max(n-i,a[1][0]),i+=1;for(i=1;l[n+i]&&l[n][r]===l[n+i][r];)a[0][0]=Math.min(n+i,a[0][0]),a[1][0]=Math.max(n+i,a[1][0]),i+=1}return a}},{key:"__normalizeTable",value:function(e){var o=[],n=t.__formalMatrix(e);t.__removeExtraColspans(n,o),t.__removeExtraRowspans(n,o);for(var r=0;r<n.length;r+=1)for(var i=0;i<n[r].length;i+=1)void 0!==n[r][i]&&(n[r][i].hasAttribute("rowspan")&&1===n[r][i].rowSpan&&Xn(n[r][i],"rowspan",null),n[r][i].hasAttribute("colspan")&&1===n[r][i].colSpan&&Xn(n[r][i],"colspan",null),n[r][i].hasAttribute("class")&&!Xn(n[r][i],"class")&&Xn(n[r][i],"class",null));t.__unmark(o)}},{key:"__removeExtraColspans",value:function(e,o){for(var n=0;n<e[0].length;n+=1){for(var r=1e6,i=!1,a=0;a<e.length;a+=1)if(void 0!==e[a][n]){if(e[a][n].colSpan<2){i=!0;break}r=Math.min(r,e[a][n].colSpan)}if(!i)for(var l=0;l<e.length;l+=1)void 0!==e[l][n]&&t.__mark(e[l][n],"colspan",e[l][n].colSpan-r+1,o)}}},{key:"__removeExtraRowspans",value:function(e,o){var n=0,r=0;for(n=0;n<e.length;n+=1){var i=1e6,a=!1;for(r=0;r<e[n].length;r+=1)if(void 0!==e[n][r]){if(e[n][r].rowSpan<2){a=!0;break}i=Math.min(i,e[n][r].rowSpan)}if(!a)for(r=0;r<e[n].length;r+=1)void 0!==e[n][r]&&t.__mark(e[n][r],"rowspan",e[n][r].rowSpan-i+1,o)}}},{key:"__mergeSelected",value:function(e,o){var n,r=[],i=t.__getSelectedBound(e,t.__getSelectedCellsByTable(e)),a=0,l=null,s=0,c=0,u=0,d=new Set,f=[];i&&(i[0][0]-i[1][0]||i[0][1]-i[1][1])&&(t.__formalMatrix(e,(function(e,p,h,v,g){if(p>=i[0][0]&&p<=i[1][0]&&h>=i[0][1]&&h<=i[1][1]){if(n=e,d.has(n))return;d.add(n),p===i[0][0]&&n.style.width&&(a+=n.offsetWidth),""!==dn(e.innerHTML.replace(/<br(\/)?>/g,""))&&r.push(e.innerHTML),v>1&&(c+=v-1),g>1&&(u+=g-1),l?(t.__mark(n,"remove",1,f),yh(o).removeSelection(n)):(l=e,s=h)}})),c=i[1][1]-i[0][1]+1,u=i[1][0]-i[0][0]+1,l&&(c>1&&t.__mark(l,"colspan",c,f),u>1&&t.__mark(l,"rowspan",u,f),a&&(t.__mark(l,"width",(a/e.offsetWidth*100).toFixed(Gt)+"%",f),s&&t.__setColumnWidthByDelta(e,s,0,!0,f)),l.innerHTML=r.join("<br/>"),yh(o).addSelection(l),d.delete(l),t.__unmark(f),t.__normalizeTable(e),Bo(e.rows).forEach((function(e){e.cells.length||ui.safeRemove(e)}))))}},{key:"__splitHorizontal",value:function(e,o){var n,r,i,a,l,s=[];t.__getSelectedCellsByTable(e).forEach((function(c){(r=o.createInside.element("td")).appendChild(o.createInside.element("br")),i=o.createInside.element("tr"),n=t.__formalCoordinate(e,c),c.rowSpan<2?(t.__formalMatrix(e,(function(e,o,r){n[0]===o&&n[1]!==r&&e!==c&&t.__mark(e,"rowspan",e.rowSpan+1,s)})),ui.after(ui.closest(c,"tr",e),i),i.appendChild(r)):(t.__mark(c,"rowspan",c.rowSpan-1,s),t.__formalMatrix(e,(function(t,o,r){o>n[0]&&o<n[0]+c.rowSpan&&n[1]>r&&t.parentNode.rowIndex===o&&(l=t),n[0]<o&&t===c&&(a=e.rows[o])})),l?ui.after(l,r):a.insertBefore(r,a.firstChild)),c.colSpan>1&&t.__mark(r,"colspan",c.colSpan,s),t.__unmark(s),yh(o).removeSelection(c)})),this.__normalizeTable(e)}},{key:"__splitVertical",value:function(e,o){var n,r,i,a=[];t.__getSelectedCellsByTable(e).forEach((function(l){n=t.__formalCoordinate(e,l),l.colSpan<2?t.__formalMatrix(e,(function(e,o,r){n[1]===r&&n[0]!==o&&e!==l&&t.__mark(e,"colspan",e.colSpan+1,a)})):t.__mark(l,"colspan",l.colSpan-1,a),(r=o.createInside.element("td")).appendChild(o.createInside.element("br")),l.rowSpan>1&&t.__mark(r,"rowspan",l.rowSpan,a);var s=l.offsetWidth;ui.after(l,r),i=s/e.offsetWidth/2,t.__mark(l,"width",(100*i).toFixed(Gt)+"%",a),t.__mark(r,"width",(100*i).toFixed(Gt)+"%",a),t.__unmark(a),yh(o).removeSelection(l)})),t.__normalizeTable(e)}},{key:"__setColumnWidthByDelta",value:function(e,o,n,r,i){for(var a=t.__formalMatrix(e),l=0,s=0;s<a.length;s+=1){var c=a[s][o];if(!(c.colSpan>1&&a.length>1)){var u=(c.offsetWidth+n)/e.offsetWidth*100;t.__mark(c,"width",u.toFixed(Gt)+"%",i),l=s;break}}for(var d=l+1;d<a.length;d+=1){var f=a[d][o];t.__mark(f,"width",null,i)}r||t.__unmark(i)}},{key:"__mark",value:function(e,t,o,n){var r;n.push(e);var i=null!==(r=mh.get(e))&&void 0!==r?r:{};i[t]=void 0===o?1:o,mh.set(e,i)}},{key:"__unmark",value:function(e){e.forEach((function(e){var t=mh.get(e);t&&(Object.keys(t).forEach((function(o){var n=t[o];switch(o){case"remove":ui.safeRemove(e);break;case"rowspan":Xn(e,"rowspan",on(n)&&n>1?n:null);break;case"colspan":Xn(e,"colspan",on(n)&&n>1?n:null);break;case"width":null==n?(e.style.removeProperty("width"),Xn(e,"style")||Xn(e,"style",null)):e.style.width=n.toString()}delete t[o]})),mh.delete(e))}))}}],n&&dh(o.prototype,n),r&&dh(o,r),t}(Ja);bh.__selectedByTable=new WeakMap,function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":vh(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)}([Xa()],bh.prototype,"__recalculateStyles",null);var yh=function(e){return e.getInstance("Table",e.o)};function _h(e){for(var t=atob(e.split(",")[1]),o=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),r=new Uint8Array(n),i=0;i<t.length;i+=1)r[i]=t.charCodeAt(i);return new Blob([r.buffer],{type:o})}var jh=new WeakMap;function wh(e,t){var o=function(e,t){if(Oo(e.o.buildData))return e.o.buildData.call(e,t);var o,n,r=e.ow.FormData;if(void 0!==r){if(o=t,null!=(n=r)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](o):o instanceof n)return t;if(Io(t))return t;var i=new r,a=t;return Object.keys(a).forEach((function(e){i.append(e,a[e])})),i}return t}(e,t),n=function(t){e.j.progressbar.show().progress(t),t>=100&&e.j.progressbar.hide()},r=function(t,o){var n=new ml({xhr:function(){var t=new XMLHttpRequest;return void 0!==e.j.ow.FormData&&t.upload?(o(10),t.upload.addEventListener("progress",(function(e){if(e.lengthComputable){var t=e.loaded/e.total;o(t*=100)}}),!1)):o(100),t},method:e.o.method||"POST",data:t,url:Oo(e.o.url)?e.o.url(t):e.o.url,headers:e.o.headers,queryBuild:e.o.queryBuild,contentType:e.o.contentType.call(e,t),withCredentials:e.o.withCredentials||!1}),r=jh.get(e);return r||(r=new Set,jh.set(e,r)),r.add(n),e.j.e.one("beforeDestruct",n.destruct),n.send().then((function(e){return e.json()})).catch((function(e){return{success:!1,data:{messages:[e]}}})).finally((function(){n.destruct(),null==r||r.delete(n)}))};return Oo(e.o.customUploadFunction)&&(r=e.o.customUploadFunction),an(o)?o.then((function(e){return r(e,n)})).catch((function(t){e.o.error.call(e,t)})):r(o,n)}function kh(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Sh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kh(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?kh(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xh(e,t,o,n,r){if(!t)return Promise.reject(Dr("Need files"));var i=e.o,a=Bo(t);if(!a.length)return Promise.reject(Dr("Need files"));var l=[];if(i.insertImageAsBase64URI&&function(e,t,o,n,r,i){var a,l,s=function(){if((a=e[l])&&a.type){var s=a.type.match(/\/([a-z0-9]+)/i),c=s[1]?s[1].toLowerCase():"";if(!t.includes(c))return"continue";var u=new FileReader;o.push(n.j.async.promise((function(e,t){u.onerror=t,u.onloadend=function(){var t={baseurl:"",files:[u.result],isImages:[!0]};(Oo(r)?r:i).call(n,t),e(t)},u.readAsDataURL(a)}))),e[l]=null}};for(l=0;l<e.length;l+=1)s()}(a,i.imagesExtensions,l,e,o,i.defaultHandlerSuccess),a=a.filter((function(e){return e})),a.length){var s,c=new FormData;c.append(i.pathVariableName,e.path),c.append("source",e.source);for(var u=0;u<a.length;u+=1)if(s=a[u]){var d=/\.\w+$/.test(s.name),f=s.type.match(/\/([a-z0-9]+)/i),p=f&&f[1]?f[1].toLowerCase():"",h=a[u].name||Math.random().toString().replace(".","");if(!d&&p){var v=p;["jpeg","jpg"].includes(v)&&(v="jpeg|jpg"),new RegExp(".("+v+")$","i").test(h)||(h+="."+p)}var g=Sh(i.processFileName.call(e,i.filesVariableName(u),a[u],h),3),m=g[0],b=g[1],y=g[2];c.append(m,b,y)}r&&r(c),i.data&&rn(i.data)&&Object.keys(i.data).forEach((function(e){c.append(e,i.data[e])})),i.prepareData.call(e,c),l.push(wh(e,c).then((function(t){return i.isSuccess.call(e,t)?((Oo(o)?o:i.defaultHandlerSuccess).call(e,i.process.call(e,t)),t):((Oo(n)?n:i.defaultHandlerError).call(e,Dr(i.getMessage.call(e,t))),t)})).then((function(){e.j.events&&e.j.e.fire("filesWereUploaded")})))}return Promise.all(l)}function Oh(e){return Boolean(e&&e.files&&e.files.length>0)}function Ch(e){return Boolean(e&&e.items&&e.items.length>0)}function zh(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Eh(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Th(e,t,o){return Th="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ih(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Th(e,t,o||e)}function Ih(e){return Ih=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ih(e)}function Ph(e,t){return Ph=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ph(e,t)}function Rh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rh=function(){return!!e})()}tr.prototype.enableDragAndDropFileToEditor=!0,tr.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:function(e){return"files[".concat(e,"]")},withCredentials:!1,pathVariableName:"path",format:"json",method:"POST",prepareData:function(e){return e},isSuccess:function(e){return e.success},getMessage:function(e){return void 0!==e.data.messages&&To(e.data.messages)?e.data.messages.join(" "):""},processFileName:function(e,t,o){return[e,t,o]},process:function(e){return e.data},error:function(e){this.j.message.error(e.message,4e3)},getDisplayName:function(e,t){return e+t},defaultHandlerSuccess:function(e){var t=this,o=this.j||this;$o(o)&&e.files&&e.files.length&&e.files.forEach((function(n,r){var i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return zh(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?zh(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.isImages&&e.isImages[r]?["img","src"]:["a","href"],2),a=i[0],l=i[1],s=o.createInside.element(a);s.setAttribute(l,e.baseurl+n),"a"===a&&(s.textContent=o.o.uploader.getDisplayName.call(t,e.baseurl,n)),"img"===a?o.s.insertImage(s,null,o.o.imageDefaultWidth):o.s.insertNode(s)}))},defaultHandlerError:function(e){this.j.message.error(e.message)},contentType:function(e){return(void 0===this.ow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}};var Ah=function(e){function t(e,o){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=Ih(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,Rh()?Reflect.construct(t,o||[],Ih(e).constructor):t.apply(e,o))}(this,t,[e])).path="",n.source="default",n.options=mr(o||{},mr(tr.defaultOptions.uploader,$o(e)?e.o.uploader:{})),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ph(e,t)}(t,e),o=t,n=[{key:"j",get:function(){return this.jodit}},{key:"className",value:function(){return"Uploader"}},{key:"o",get:function(){return this.options}},{key:"setPath",value:function(e){return this.path=e,this}},{key:"setSource",value:function(e){return this.source=e,this}},{key:"bind",value:function(e,t,o){var n=function(){e.classList.remove("jodit_drag_hover")},r=this,i=function(e){var i,a,l,s=e.clipboardData,c=function(e){a&&(e.append("extension",l),e.append("mimetype",a.type))};if(!to&&Oh(s))return xh(r,s.files,t,o).finally(n),!1;if(to&&!dt)return function(e,t,o,n,r){if(t&&(!t.types.length||t.types[0]!==oo)){var i=e.j.c.div("",{tabindex:-1,style:"left: -9999px; top: 0; width: 0; height: 100%;line-height: 140%; overflow: hidden; position: fixed; z-index: 2147483647; word-break: break-all;",contenteditable:!0});Ba(e.j,e.constructor).appendChild(i);var a=$o(e.j)?e.j.s.save():null;i.focus(),e.j.async.setTimeout((function(){var t=i.firstChild;if(ui.safeRemove(i),t&&t.hasAttribute("src")){var l=Xn(t,"src")||"";a&&$o(e.j)&&e.j.s.restore(),xh(e,[_h(l)],o,n).finally(r)}}),e.j.defaultTimeout)}}(r,s,t,o,n);if(Ch(s)){var u=s.items;for(i=0;i<u.length;i+=1)if("file"===u[i].kind&&"image/png"===u[i].type){if(a=u[i].getAsFile()){var d=a.type.match(/\/([a-z0-9]+)/i);l=d[1]?d[1].toLowerCase():"",xh(r,[a],t,o,c).finally(n)}e.preventDefault();break}}};r.j&&r.j.editor!==e?r.j.e.on(e,"paste",i):r.j.e.on("beforePaste",i),this.attachEvents(e,t,o,n)}},{key:"attachEvents",value:function(e,t,o,n){var r=this;r.j.e.on(e,"dragend dragover dragenter dragleave drop",(function(e){e.preventDefault()})).on(e,"dragover",(function(t){(Oh(t.dataTransfer)||Ch(t.dataTransfer))&&(e.classList.add("jodit_drag_hover"),t.preventDefault())})).on(e,"dragend dragleave",(function(t){e.classList.remove("jodit_drag_hover"),Oh(t.dataTransfer)&&t.preventDefault()})).on(e,"drop",(function(i){e.classList.remove("jodit_drag_hover"),Oh(i.dataTransfer)&&(i.preventDefault(),i.stopImmediatePropagation(),xh(r,i.dataTransfer.files,t,o).finally(n))}));var i=e.querySelector("input[type=file]");i&&r.j.e.on(i,"change",(function(){xh(r,i.files,t,o).then((function(){i.value="",/safari/i.test(navigator.userAgent)||(i.type="",i.type="file")})).finally(n)}))}},{key:"uploadRemoteImage",value:function(e,t,o){var n=this,r=n.o,i=Oo(o)?o:r.defaultHandlerError;wh(n,{action:"fileUploadRemote",url:e}).then((function(e){r.isSuccess.call(n,e)?(Oo(t)?t:r.defaultHandlerSuccess).call(n,r.process.call(n,e)):i.call(n,Dr(r.getMessage.call(n,e)))})).catch((function(e){return i.call(n,e)}))}},{key:"destruct",value:function(){this.setStatus(zo.beforeDestruct);var e=jh.get(this);e&&(e.forEach((function(e){try{e.destruct()}catch(e){}})),e.clear()),Th(Ih(t.prototype),"destruct",this).call(this)}}],n&&Eh(o.prototype,n),t}(Ja),Lh="wrap",Mh="unwrap",Bh="change",Dh="unset",Nh="initial",Hh="replace",Fh="commitStyle";function qh(e,t,o){var n=o.s.createRange(),r=tn(t.previousSibling)?t.previousSibling:t;n.setStartBefore(e),n.setEndBefore(r),Vh(e,n,!0);var i=tn(t.nextSibling)?t.nextSibling:t;n.setStartAfter(i),n.setEndAfter(e),Vh(e,n,!1)}function Vh(e,t,o){var n=t.extractContents();n.textContent&&dn(n.textContent).length||!n.firstChild||ui.unwrap(n.firstChild),e.parentNode&&sr(o?ui.before:ui.after,e,n)}function Wh(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Uh=function(){function e(t,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.transitions=o,this.silent=!0,this.__previewsStates=new Set,this.setState(t)}var t,o;return t=e,(o=[{key:"setState",value:function(e){Jn(!this.__previewsStates.has(e),"Circled states"),this.__previewsStates.add(e),this.__state=e}},{key:"getState",value:function(){return this.__state}},{key:"disableSilent",value:function(){this.silent=!1}},{key:"dispatch",value:function(e,t){var o=this.transitions[this.getState()][e];if(o){var n=o.call(this,t);return Jn(n&&n!==t,"Action should return new value"),Jn(Io(n.next),"Value should contain the next state"),Jn(n.next!==this.getState(),"The new state should not be equal to the old one."),this.setState(n.next),ft||this.silent||console.log("State: ".concat(this.getState())),n}throw new Error("invalid action: ".concat(this.getState(),".").concat(e.toString()))}}])&&Wh(t.prototype,o),e}();function Yh(e){return Boolean(e&&!ui.isEmptyTextNode(e)&&!ui.isTemporary(e)&&!tn(e))}function Kh(e,t){return Boolean(!ui.isTag(e,"font")&&ui.isHTMLElement(e)&&Object.keys(t).every((function(o){var n=In(e,o,!0);return""===n&&(""===t[o]||null==t[o])||!Ro(n)&&""!==n&&!Ro(t[o])&&En(o,t[o]).toString().toLowerCase()===n.toString().toLowerCase()})))}if(Ct){var Gh=Ct.createElement("div");Gh.style.color="red",Jn(Kh(Gh,{color:"red"}),"Style test"),Jn(Kh(Gh,{fontSize:null}),"Style test"),Jn(Kh(Gh,{fontSize:""}),"Style test")}function Jh(e,t){return Boolean(!ui.isTag(e,"font")&&ui.isHTMLElement(e)&&Object.keys(t).every((function(t){return""!==In(e,t,!0)})))}if(Ct){var Xh=Ct.createElement("div");Xh.style.color="red",Jn(Jh(Xh,{color:"red"}),"Style test"),Jn(!Jh(Xh,{font:"Arial",color:"red"}),"Style test"),Jn(!Jh(Xh,{border:"1px solid #ccc"}),"Style test")}function Zh(e,t,o){var n,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t||!Yh(t))return!1;var i=e.element,a=e.elementIsDefault,l=e.options;if(ui.isList(t)&&e.elementIsList)return!0;var s=ui.isTag(t,i);return!(!s||a&&o)||!(!Boolean((null===(n=l.attributes)||void 0===n?void 0:n.style)&&(r?Kh(t,l.attributes.style):Jh(t,l.attributes.style)))||e.elementIsList)||!s&&!o&&a&&ui.isInlineBlock(t)}function Qh(e,t,o){return ui.closest(t,(function(t){return Zh(e,t,!0,!1)}),o)}function $h(e,t,o){var n=t.parentNode;return n===o||!ui.isHTMLElement(n)||ui.next(t,Yh,n)||ui.prev(t,Yh,n)?null:e.isElementCommit&&e.elementIsBlock&&!ui.isBlock(n)?$h(e,n,o):!Zh(e,n,!1)||ui.isBlock(n)&&!e.elementIsBlock?e.isElementCommit&&!ui.isBlock(n)?$h(e,n,o):null:n}var ev="toggleAttributes";function tv(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!r&&e.isApplied(t,ev))return n;!r&&e.setApplied(t,ev);var i=e.options.attributes;return i&&Zi(i)>0&&Object.keys(i).forEach((function(a){var l=i[a];switch(a){case"style":n=function(e,t,o,n,r,i){return Jn(rn(o)&&Zi(o),"Style must be an object"),Object.keys(o).forEach((function(a){var l=n.style.getPropertyValue(xn(a)),s=o[a];if(""!==l||null!=s){if(function(e,t,o){var n=e.create.element(t.tagName.toLowerCase());n.style.cssText=t.style.cssText;var r=function(e){var t;if(void 0!==ar(e,"shadowRoot"))return ar(e,"shadowRoot");var o=Ba(e),n=Ct.createElement("iframe");In(n,{width:0,height:0,position:"absolute",border:0}),n.src="about:blank",o.appendChild(n);var r=null===(t=n.contentWindow)||void 0===t?void 0:t.document,i=r?r.body:e.od.body;return ar(e,"shadowRoot",i),i}(e);r.appendChild(n);var i=In(n,o);return ui.safeRemove(n),i}(t,n,a)===En(a,s)){if(!l)return;return!r&&In(n,a,null),void(i=ov(e,n,i=Dh))}i=Bh,r||(In(n,a,s),i=ov(e,n,i))}})),i}(e,o,l,t,r,n);break;case"className":case"class":n=function(e,t,o,n,r){Jn(Io(t),"Class name must be a string");var i=e.e.fire.bind(e.e,"".concat(Fh,"AfterToggleAttribute"));return o.classList.contains(t.toString())?(n=Dh,r||(o.classList.remove(t),0===o.classList.length&&(Xn(o,"class",null),i(n,o,"class",null)))):(n=Bh,r||(o.classList.add(t),i(n,o,"class",t))),n}(o,l,t,n,r);break;default:n=function(e,t,o,n,r,i){Jn(Io(t)||on(t)||Ho(t)||null==t,"Attribute value must be a string or number or boolean or null");var a=e.e.fire.bind(e.e,"".concat(Fh,"AfterToggleAttribute"));return Xn(o,n)===t?(!r&&Xn(o,n,null),i=Dh,!r&&a(i,o,n,t),i):(i=Bh,r||(Xn(o,n,t),a(i,o,n,t)),i)}(o,l,t,a,r,n)}})),n}function ov(e,t,o){return Xn(t,"style")||(Xn(t,"style",null),t.tagName.toLowerCase()===e.defaultTag&&(ui.unwrap(t),o=Mh)),o}function nv(e,t,o){var n=o.e.fire("".concat(Fh,"BeforeWrapList"),Hh,t,e),r=null!=n?n:ui.replace(t,"li",o.createInside),i=r.previousElementSibling,a=r.nextElementSibling,l=ui.isTag(i,e.element)?i:null;return null!=l||(l=ui.isTag(a,e.element)?a:null),ui.isList(l)&&function(e,t){return!e.attributes.length&&!Zi(t)||!Zi(t)||(Jn(t,"Attrs must be a non-empty object"),Object.keys(t).every((function(o){return"class"===o||"className"===o?e.classList.contains(t[o]):"style"===o?Kh(e,t[o]):Xn(e,o)===t[o]})))}(l,e.options.attributes)||(tv(e,l=o.createInside.element(e.element),o,Nh),ui.before(r,l)),i===l?ui.append(l,r):ui.prepend(l,r),ui.isTag(l.nextElementSibling,e.element)&&function(e,t){return e.attributes.length===t.attributes.length&&Array.from(e.attributes).every((function(e){return t.hasAttribute(e.name)&&t.getAttribute(e.name)===e.value}))}(l,l.nextElementSibling)&&(ui.append(l,Array.from(l.nextElementSibling.childNodes)),ui.safeRemove(l.nextElementSibling)),o.e.fire("".concat(Fh,"AfterWrapList"),Lh,l,e),l}function rv(e,t,o,n){if(!t)return n;var r=t.parentElement;if(!r)return n;var i=o.e.fire("".concat(Fh,"BeforeToggleList"),n,e,r);if(void 0!==i)return i;var a=o.e.fire.bind(o.e,"".concat(Fh,"AfterToggleList"));if(n!==Mh){var l=tv(e,t.parentElement,o,Nh,!0)===Bh;if(n===Hh||l||r.tagName.toLowerCase()!==e.element){var s=nv(e,iv(Hh,r,t,o,e),o);return a(Hh,s,e),Hh}}var c=iv(Mh,r,t,o,e);return a(Mh,c,e),Mh}function iv(e,t,o,n,r){var i=n.e.fire("".concat(Fh,"BeforeUnwrapList"),e,t,r);return i?(Jn(ui.isHTMLElement(i),"".concat(Fh,"BeforeUnwrapList hook must return HTMLElement")),i):(qh(t,o,n),Jn(ui.isHTMLElement(o.parentElement),"Element should be inside the list"),ui.unwrap(o.parentElement),ui.replace(o,"br"!==n.o.enter.toLowerCase()?n.o.enter:n.createInside.fragment(),n.createInside))}var av=new Set(["td","th","tr","tbody","table","li","ul","ol"]);function lv(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function sv(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){lv(e,t,o[t])}))}return e}function cv(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}var uv,dv="START",fv="ELEMENT",pv="UNWRAP",hv="UNWRAP_CHILDREN",vv="CHANGE",gv="REPLACE_DEFAULT",mv="LIST",bv="TOGGLE_LIST",yv="WRAP",_v="EXTRACT",jv="END",wv=(lv(uv={},dv,{exec:function(e){var t,o,n=e.element,r=e.jodit,i=e.style,a=e.mode,l=e.collapsed;if(t=n,o=r.editor,Boolean(ui.closest(t,["style","script"],o))||!l&&ui.isEmptyContent(n))return cv(sv({},e),{next:jv});var s=$h(i,n,r.editor)||function(e,t){for(var o=t.firstChild;o&&!Yh(o);)if(!(o=o.nextSibling))return null;return o&&!ui.next(o,Yh,t)&&Zh(e,o,!1)?o:null}(i,n);if(s)return cv(sv({},e),{next:fv,element:s});var c=Qh(i,n,r.editor);return i.elementIsList&&ui.isList(c)?cv(sv({},e),{next:mv}):cv(sv({},e),c?{next:_v}:{next:a!==Mh?hv:jv})}}),lv(uv,mv,{exec:function(e){var t=e.element,o=e.jodit,n=e.mode;if(n!==Nh&&n!==Mh&&n!==Hh)return cv(sv({},e),{next:jv});var r=ui.closest(t,"li",o.editor);if(!r)return cv(sv({},e),{next:jv});var i=ui.closest(t,Tt,o.editor);return cv(sv({},e),i?{element:r,next:bv}:{next:jv})}}),lv(uv,bv,{exec:function(e){return cv(sv({},e),{mode:rv(e.style,e.element,e.jodit,e.mode),next:jv})}}),lv(uv,_v,{exec:function(e){var t,o=e.element,n=e.jodit,r=e.style,i=Qh(r,o,n.editor);return Jn(i,"This place should have an element"),!r.elementIsBlock&&(null===(t=r.options.attributes)||void 0===t?void 0:t.style)&&ui.isBlock(i)?cv(sv({},e),{next:yv}):(r.elementIsBlock||qh(i,o,n),cv(sv({},e),{element:i,next:fv}))}}),lv(uv,hv,{exec:function(e){var t=e.element;return function(e,t){var o,n,r=[],i=[],a=null===(o=e.options.attributes)||void 0===o?void 0:o.style;if(t.firstChild)for(var l=function(){var t=c.value;!Zh(e,t,!0)||a&&!Jh(t,a)?a&&function(e,t){var o,n,r=e.element,i=e.options;if(!t||!Yh(t))return!1;var a=t.nodeName.toLowerCase()===r,l=Boolean((null===(o=i.attributes)||void 0===o?void 0:o.style)&&Jh(t,null===(n=i.attributes)||void 0===n?void 0:n.style));return a&&l}(e,t)?(void 0===n&&(n=!1),i.push((function(){In(t,Object.keys(a).reduce((function(e,t){return e[t]=null,e}),{})),Xn(t,"style")||Xn(t,"style",null),Xn(t,"style")||t.nodeName.toLowerCase()!==e.element||r.push(t)}))):ui.isEmptyTextNode(t)||void 0===n&&(n=!1):(void 0===n&&(n=!0),r.push(t)),c=s.next()},s=ui.eachGen(t),c=s.next();!c.done;)l();return i.forEach((function(e){return e()})),r.forEach(ui.unwrap),Boolean(n)}(e.style,t)?cv(sv({},e),{mode:Mh,next:jv}):cv(sv({},e),{next:yv})}}),lv(uv,yv,{exec:function(e){var t=e.element,o=e.jodit,n=e.style,r=function(e,t,o){var n=function(e,t,o){return e.elementIsBlock?ui.up(t,(function(e){return ui.isBlock(e)&&!ui.isTag(e,av)}),o.editor)||function(e,t,o){var n=o.editor,r=o.createInside,i=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"previousSibling",r=e,i=e;i&&!tn(i)&&!ui.isTag(i,o.o.enter)&&(r=i,i=i[t]?i[t]:i.parentNode&&!ui.isBlock(i.parentNode)&&i.parentNode!==n?i.parentNode:null,!ui.isBlock(i)););return r},a=i(t),l=i(t,"nextSibling"),s=o.s.createRange();s.setStartBefore(a),s.setEndAfter(l);var c=s.extractContents(),u=r.element(e.element);return u.appendChild(c),ui.safeInsertNode(s,u),e.elementIsBlock&&ui.isEmpty(u)&&!ui.isTag(u.firstElementChild,"br")&&u.appendChild(r.element("br")),u}(e,t,o):(Xn(t,"size",null),t)}(e,t,o);return e.elementIsList?nv(e,n,o):ui.replace(n,e.element,o.createInside,!0)}(n,t,o);return cv(sv({},e),{next:n.elementIsList?jv:vv,mode:Lh,element:r})}}),lv(uv,fv,{exec:function(e){var t=e.style,o=e.element;return tv(t,o,e.jodit,Nh,!0)!==Nh?cv(sv({},e),{next:vv}):ui.isTag(o,t.element)?cv(sv({},e),{next:pv}):cv(sv({},e),{next:jv})}}),lv(uv,vv,{exec:function(e){var t=e.style,o=e.element,n=e.jodit,r=e.mode,i=tv(t,o,n,e.mode);return r!==Lh&&i===Dh&&!o.attributes.length&&ui.isTag(o,t.element)?cv(sv({},e),{next:pv}):cv(sv({},e),{mode:i,next:jv})}}),lv(uv,pv,{exec:function(e){return e.element.attributes.length&&ui.isTag(e.element,e.style.element)?cv(sv({},e),{next:gv}):(ui.unwrap(e.element),cv(sv({},e),{mode:Mh,next:jv}))}}),lv(uv,gv,{exec:function(e){return ui.replace(e.element,e.style.defaultTag,e.jodit.createInside,!0),cv(sv({},e),{mode:Hh,next:jv})}}),lv(uv,jv,{exec:function(e){return e}}),uv);function kv(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Sv=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t,this.__applyMap=new WeakMap}var t,o;return t=e,o=[{key:"isApplied",value:function(e,t){var o=this.__applyMap.get(e);return!!o&&o[t]}},{key:"setApplied",value:function(e,t){var o,n=null!==(o=this.__applyMap.get(e))&&void 0!==o?o:{};n[t]=!0,this.__applyMap.set(e,n)}},{key:"elementIsList",get:function(){return Boolean(this.options.element&&Tt.has(this.options.element))}},{key:"element",get:function(){return this.options.element||this.defaultTag}},{key:"elementIsBlock",get:function(){return Boolean(this.options.element&&zt.test(this.options.element))}},{key:"isElementCommit",get:function(){return Boolean(this.options.element&&this.options.element!==this.options.defaultTag)}},{key:"defaultTag",get:function(){return this.options.defaultTag?this.options.defaultTag:this.elementIsBlock?"p":"span"}},{key:"elementIsDefault",get:function(){return this.element===this.defaultTag}},{key:"apply",value:function(e){var t=this.options.hooks,o=t?Object.keys(t):[];try{o.forEach((function(o){e.e.on(Tn(Fh+"_"+o),t[o])})),function(e,t){var o,n=e.s;null===(o=e.editor.firstChild)||void 0===o||o.normalize();var r=n.fakes(),i=e.s.wrapInTagGen(r),a=i.next();if(!a.done){for(var l={collapsed:n.isCollapsed(),mode:Nh,element:a.value,next:dv,jodit:e,style:t};a&&!a.done;){var s=new Uh(dv,wv);for(l.element=a.value;s.getState()!==jv;)l=s.dispatch("exec",l);a=i.next()}n.restoreFakes(r)}}(e,this)}finally{o.forEach((function(o){e.e.off(Tn(Fh+"_"+o),t[o])})),this.__applyMap=new WeakMap}e.synchronizeValues(),e.e.fire("afterCommitStyle",this)}}],o&&kv(t.prototype,o),e}();function xv(e,t,o){for(var n=ui.findSibling(t,o),r=ui.findSibling(t,!o);ui.isElement(n)&&!ui.isTag(n,Pt)&&ui.isContentEditable(n,e.editor)&&(!r||!ui.closest(t,ui.isElement,e.editor));)o||!n.firstChild?n.appendChild(t):ui.before(n.firstChild,t),n=ui.sibling(t,o),r=ui.sibling(t,!o)}function Ov(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Cv(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zv(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var Ev=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":zv(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Tv=function(){function e(t){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.jodit=t,t.e.on("removeMarkers",(function(){o.removeMarkers()}))}var t,o;return t=e,o=[{key:"j",get:function(){return this.jodit}},{key:"errorNode",value:function(e){if(!ui.isNode(e))throw Dr("Parameter node must be instance of Node")}},{key:"area",get:function(){return this.j.editor}},{key:"win",get:function(){return this.j.ew}},{key:"doc",get:function(){return this.j.ed}},{key:"sel",get:function(){return this.j.o.shadowRoot&&Oo(this.j.o.shadowRoot.getSelection)?this.j.o.shadowRoot.getSelection():this.win.getSelection()}},{key:"range",get:function(){var e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()}},{key:"isInsideArea",get:function(){var e=this.sel,t=(null==e?void 0:e.rangeCount)?e.getRangeAt(0):null;return!(!t||!ui.isOrContains(this.area,t.startContainer))}},{key:"createRange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.doc.createRange();return e&&this.selectRange(t),t}},{key:"remove",value:function(){var e=this.sel,t=this.current();if(e&&t)for(var o=0;o<e.rangeCount;o+=1)e.getRangeAt(o).deleteContents(),e.getRangeAt(o).collapse(!0)}},{key:"clear",value:function(){var e,t;(null===(e=this.sel)||void 0===e?void 0:e.rangeCount)&&(null===(t=this.sel)||void 0===t||t.removeAllRanges())}},{key:"removeNode",value:function(e){if(!ui.isOrContains(this.j.editor,e,!0))throw Dr("Selection.removeNode can remove only editor's children");ui.safeRemove(e),this.j.e.fire("afterRemoveNode",e)}},{key:"insertCursorAtPoint",value:function(e,t){var o=this;this.removeMarkers();try{var n=this.createRange();return function(){if(o.doc.caretPositionFromPoint){var r=o.doc.caretPositionFromPoint(e,t);if(r)return void n.setStart(r.offsetNode,r.offset)}if(o.doc.caretRangeFromPoint){var i=o.doc.caretRangeFromPoint(e,t);Jn(i,"Incorrect caretRangeFromPoint behaviour"),n.setStart(i.startContainer,i.startOffset)}}(),n.collapse(!0),this.selectRange(n),!0}catch(e){}return!1}},{key:"hasMarkers",get:function(){return Boolean(this.markers.length)}},{key:"markers",get:function(){return Jr("span[data-"+io+"]",this.area)}},{key:"removeMarkers",value:function(){ui.safeRemove.apply(null,this.markers)}},{key:"marker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,o=null;t&&(o=t.cloneRange()).collapse(e);var n=this.j.createInside.span();return n.id=io+"_"+Number(new Date)+"_"+String(Math.random()).slice(2),n.style.lineHeight="0",n.style.display="none",ui.markTemporary(n),Xn(n,"data-"+io,e?"start":"end"),n.appendChild(this.j.createInside.text(bt)),o&&ui.isOrContains(this.area,e?o.startContainer:o.endContainer)&&o.insertNode(n),n}},{key:"restore",value:function(){var e=!1,t=function(e){return"span[data-".concat(io,"=").concat(e?"start":"end","]")},o=this.area.querySelector(t(!0)),n=this.area.querySelector(t(!1));if(o){if(e=this.createRange(),n)e.setStartAfter(o),ui.safeRemove(o),e.setEndBefore(n),ui.safeRemove(n);else{var r=o.previousSibling;ui.isText(r)?e.setStart(r,r.nodeValue?r.nodeValue.length:0):e.setStartBefore(o),ui.safeRemove(o),e.collapse(!0)}e&&this.selectRange(e)}}},{key:"fakes",value:function(){var e=this.sel;if(!e||!e.rangeCount)return[];var t=e.getRangeAt(0);Jn(t,"Range is null");var o=t.cloneRange();o.collapse(!0);var n=this.j.createInside.fake();ui.safeInsertNode(o,n),t.setStartBefore(n);var r=[n];if(!t.collapsed){var i=t.cloneRange();i.collapse(!1);var a=this.j.createInside.fake();ui.safeInsertNode(i,a),t.setEndAfter(a),r.push(a)}return this.selectRange(t),r}},{key:"restoreFakes",value:function(e){var t,o,n,r,i=e.filter((function(e){return e.isConnected}));if(i.length){var a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ov(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Ov(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i,2),l=a[0],s=a[1],c=this.createRange();c.setStartAfter(l),s&&c.setEndBefore(s),this.selectRange(c),(null===(t=l.parentNode)||void 0===t?void 0:t.firstChild)!==(null===(o=l.parentNode)||void 0===o?void 0:o.lastChild)&&ui.safeRemove(l),(null===(n=null==s?void 0:s.parentNode)||void 0===n?void 0:n.firstChild)!==(null===(r=null==s?void 0:s.parentNode)||void 0===r?void 0:r.lastChild)&&ui.safeRemove(s)}}},{key:"save",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasMarkers)return[];var t=this.sel;if(!t||!t.rangeCount)return[];for(var o=[],n=t.rangeCount,r=[],i=0;i<n;i+=1)if(r[i]=t.getRangeAt(i),r[i].collapsed){var a=this.marker(!0,r[i]);o[i]={startId:a.id,collapsed:!0,startMarker:a.outerHTML}}else{var l=this.marker(!0,r[i]),s=this.marker(!1,r[i]);o[i]={startId:l.id,endId:s.id,collapsed:!1,startMarker:l.outerHTML,endMarker:s.outerHTML}}if(!e){t.removeAllRanges();for(var c=n-1;c>=0;--c){var u=this.doc.getElementById(o[c].startId);if(u){if(o[c].collapsed)r[c].setStartAfter(u),r[c].collapse(!0);else if(r[c].setStartBefore(u),o[c].endId){var d=this.doc.getElementById(o[c].endId);d&&r[c].setEndAfter(d)}try{t.addRange(r[c].cloneRange())}catch(e){}}}}return o}},{key:"focus",value:function(){var e,t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{preventScroll:!0};if(!this.isFocused()){var n=Ji(this.j.container),r=null==n?void 0:n.scrollTop;this.j.iframe&&"complete"===this.doc.readyState&&this.j.iframe.focus(o),this.win.focus(),this.area.focus(o),r&&(null==n?void 0:n.scrollTo)&&n.scrollTo(0,r);var i=this.sel,a=(null==i?void 0:i.rangeCount)?null==i?void 0:i.getRangeAt(0):null;if(!a||!ui.isOrContains(this.area,a.startContainer)){var l=this.createRange();l.setStart(this.area,0),l.collapse(!0),this.selectRange(l,!1)}return this.j.editorIsActive||null===(t=null===(e=this.j)||void 0===e?void 0:e.events)||void 0===t||t.fire("focus"),!0}return!1}},{key:"isCollapsed",value:function(){for(var e=this.sel,t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0}},{key:"isFocused",value:function(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement}},{key:"current",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.j.getRealMode()!==Qt)return null;var t=this.sel;if(!t||0===t.rangeCount)return null;var o=t.getRangeAt(0),n=o.startContainer,r=!1;if(ui.isTag(n,"br")&&t.isCollapsed)return n;if(!ui.isText(n)){var i=function(e,t,o,n,r,i){if((e=t.startContainer.childNodes[t.startOffset])||(e=t.startContainer.childNodes[t.startOffset-1],o=!0),e&&n&&!ui.isText(e))if(!o&&ui.isText(e.previousSibling))e=e.previousSibling;else if(r)for(var a=i(e);a;){if(a&&ui.isText(a)){e=a;break}a=i(a)}if(e&&!n&&!ui.isText(e)){var l=e,s=e;do{l=l.firstChild,s=s.lastChild}while(l&&s&&!ui.isText(l));l===s&&l&&ui.isText(l)&&(e=l)}return{node:e,rightMode:o}}(n,o,r,t.isCollapsed,e,(function(e){return r?e.lastChild:e.firstChild}));n=i.node,r=i.rightMode}return n&&ui.isOrContains(this.area,n)?n:null}},{key:"insertNode",value:function(e){var t=this,o=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.errorNode(e);var r=ui.isFragment(e)?e.lastChild:e;this.j.e.fire("safeHTML",e),!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore());var i=this.sel;this.j.history.snapshot.transaction((function(){if(t.isCollapsed()||t.j.execCommand("Delete"),t.j.e.fire("beforeInsertNode",e),i&&i.rangeCount){var n=i.getRangeAt(0),a=e.firstChild;ui.isOrContains(t.area,n.commonAncestorContainer)?ui.safeInsertNode(n,e):t.area.appendChild(e),[function(){return null==a?void 0:a.previousSibling},function(){return null==a?void 0:a.previousSibling},function(){var e;return null===(e=null==a?void 0:a.previousSibling)||void 0===e?void 0:e.lastChild}].forEach((function(e){var t=e();t&&ui.isEmptyTextNode(t)&&ui.safeRemove(t)}))}else t.area.appendChild(e);var l=function(e){if(ui.isBlock(e)){var o=e.lastChild;if(o)return l(o)}t.setCursorAfter(e)};o&&(ui.isFragment(e)?r&&l(r):l(e)),t.j.o.scrollToPastedContent&&oi(null!=r?r:e,t.j.editor,t.doc)})),n&&this.j.events&&this.j.__imdSynchronizeValues(),this.j.events&&this.j.e.fire("afterInsertNode",ui.isFragment(e)?r:e)}},{key:"insertHTML",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(""!==e){var o=this.j.createInside.div(),n=this.j.createInside.fragment();if(!this.isFocused()&&this.j.isEditorMode()&&(this.focus(),this.restore()),ui.isNode(e)?o.appendChild(e):o.innerHTML=e.toString(),(this.j.isEditorMode()||!1!==this.j.e.fire("insertHTML",o.innerHTML))&&o.lastChild){for(;o.firstChild;)o.firstChild,n.appendChild(o.firstChild);this.insertNode(n,t,!1),this.j.__imdSynchronizeValues()}}}},{key:"insertImage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=Io(e)?this.j.createInside.element("img"):e;if(Io(e)&&n.setAttribute("src",e),null!=o){var r=o.toString();r&&"auto"!==r&&String(r).indexOf("px")<0&&String(r).indexOf("%")<0&&(r+="px"),Xn(n,"width",r)}t&&"object"===(void 0===t?"undefined":zv(t))&&In(n,t);var i=function(){(n.naturalHeight<n.offsetHeight||n.naturalWidth<n.offsetWidth)&&(n.style.width="",n.style.height=""),n.removeEventListener("load",i)};this.j.e.on(n,"load",i),n.complete&&i(),this.insertNode(n),this.j.e.fire("afterInsertImage",n)}},{key:"eachSelection",value:function(e){var t,o=this,n=this.sel;if(n&&n.rangeCount){var r=n.getRangeAt(0),i=r.commonAncestorContainer;ui.isHTMLElement(i)||(i=i.parentElement);var a=[],l=r.startOffset,s=i.childNodes.length,c=l<s?l:s-1,u=r.startContainer===this.area?i.childNodes[c]:r.startContainer,d=r.endContainer===this.area?i.childNodes[r.endOffset-1]:r.endContainer;ui.isText(u)&&u===r.startContainer&&r.startOffset===(null===(t=u.nodeValue)||void 0===t?void 0:t.length)&&u.nextSibling&&(u=u.nextSibling),ui.isText(d)&&d===r.endContainer&&0===r.endOffset&&d.previousSibling&&(d=d.previousSibling);var f=function(e){!e||e===i||ui.isEmptyTextNode(e)||tn(e)||a.push(e)};f(u),u!==d&&ui.isOrContains(i,u,!0)&&ui.find(u,(function(e){return f(e),e===d||e&&e.contains&&e.contains(d)}),i,!0,!1);var p=function(t){if(ui.isOrContains(o.j.editor,t,!0)){if(t.nodeName.match(/^(UL|OL)$/))return Bo(t.childNodes).forEach(p);if(ui.isTag(t,"li"))if(t.firstChild)t=t.firstChild;else{var n=o.j.createInside.text(bt);t.appendChild(n),t=n}e(t)}};0===a.length&&(ui.isEmptyTextNode(u)&&a.push(u),u.firstChild&&a.push(u.firstChild)),a.forEach(p)}}},{key:"cursorInTheEdge",value:function(e,t){var o,n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=!e,a=null===(o=this.sel)||void 0===o?void 0:o.getRangeAt(0);if(null!=r||(r=this.current(!1)),!a||!r||!ui.isOrContains(t,r,!0))return null;var l=e?a.startContainer:a.endContainer,s=e?a.startOffset:a.endOffset,c=function(e){return Boolean(e&&!ui.isTag(e,"br")&&!ui.isEmptyTextNode(e)&&!ui.isTemporary(e)&&!(ui.isElement(e)&&!0===n.j.e.fire("isInvisibleForCursor",e)))};if(ui.isText(l)){if(function(e,t,o,n){var r,i=(null===(r=e.nodeValue)||void 0===r?void 0:r.length)?e.nodeValue:"";if(n&&i.replace(jt(),"").length>t)return!0;var a=wt().exec(i);return o&&(a&&a[0].length<t||!a&&t>0)}(l,s,e,i))return!1}else{var u=Bo(l.childNodes);if(i){if(u.slice(s).some(c))return!1}else if(u.slice(0,s).some(c))return!1}for(var d=r;d&&d!==t;){var f=ui.sibling(d,e);if(f){if((d=f)&&c(d))return!1}else d=d.parentNode}return!0}},{key:"cursorOnTheLeft",value:function(e,t){return this.cursorInTheEdge(!0,e,t)}},{key:"cursorOnTheRight",value:function(e,t){return this.cursorInTheEdge(!1,e,t)}},{key:"setCursorAfter",value:function(e){return this.setCursorNearWith(e,!1)}},{key:"setCursorBefore",value:function(e){return this.setCursorNearWith(e,!0)}},{key:"setCursorNearWith",value:function(e,t){var o,n,r=this;if(this.errorNode(e),!ui.up(e,(function(e){return e===r.area||e&&e.parentNode===r.area}),this.area))throw Dr("Node element must be in editor");var i=this.createRange(),a=null;return ui.isText(e)?t?i.setStart(e,0):i.setEnd(e,null!==(n=null===(o=e.nodeValue)||void 0===o?void 0:o.length)&&void 0!==n?n:0):(a=this.j.createInside.fake(),t?i.setStartBefore(e):i.setEndAfter(e),i.collapse(t),ui.safeInsertNode(i,a),i.selectNode(a)),i.collapse(t),this.selectRange(i),a}},{key:"setCursorIn",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.errorNode(e),!ui.up(e,(function(e){return e===t.area||e&&e.parentNode===t.area}),this.area))throw Dr("Node element must be in editor");var n=this.createRange(),r=e,i=e;do{if(ui.isText(r)||ui.isTag(r,Pt))break;i=r,r=o?r.firstChild:r.lastChild}while(r);if(!r){var a=this.j.createInside.text(bt);ui.isTag(i,Pt)?r=i:(i.appendChild(a),i=a)}var l=r||i;return ui.isTag(l,Pt)?(o||ui.isTag(l,"br")?n.setStartBefore(l):n.setEndAfter(l),n.collapse(o)):(n.selectNodeContents(l),n.collapse(o)),this.selectRange(n),i}},{key:"selectRange",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=this.sel;return t&&!this.isFocused()&&this.focus(),o&&(o.removeAllRanges(),o.addRange(e)),this.j.e.fire("changeSelection"),this}},{key:"select",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.errorNode(e),!ui.up(e,(function(e){return e===t.area||e&&e.parentNode===t.area}),this.area))throw Dr("Node element must be in editor");var n=this.createRange();return n[o?"selectNodeContents":"selectNode"](e),this.selectRange(n)}},{key:"html",get:function(){var e=this.sel;if(e&&e.rangeCount>0){var t=e.getRangeAt(0).cloneContents(),o=this.j.createInside.div();return o.appendChild(t),o.innerHTML}return""}},{key:"wrapInTagGen",value:function(e){var t,o,n,r,i,a,l,s,c,u,d;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(f){switch(f.label){case 0:return this.isCollapsed()?(t=this.jodit.createInside.element("font",bt),this.insertNode(t,!1,!1),e&&e[0]&&t.appendChild(e[0]),[4,t]):[3,2];case 1:return f.sent(),ui.unwrap(t),[2];case 2:Jr("*[style*=font-size]",this.area).forEach((function(e){Xn(e,"data-font-size",e.style.fontSize.toString()),e.style.removeProperty("font-size")})),this.j.nativeExecCommand("fontsize",!1,"7"),Jr("*[data-font-size]",this.area).forEach((function(e){var t=Xn(e,"data-font-size");t&&(e.style.fontSize=t,Xn(e,"data-font-size",null))})),o=Jr('font[size="7"]',this.area),n=!0,r=!1,i=void 0,f.label=3;case 3:f.trys.push([3,8,9,10]),a=o[Symbol.iterator](),f.label=4;case 4:return(n=(l=a.next()).done)?[3,7]:(s=l.value,c=s.firstChild,u=s.lastChild,c&&c===u&&tn(c)?(ui.unwrap(s),[3,6]):(c&&tn(c)&&ui.before(s,c),u&&tn(u)&&ui.after(s,u),[4,s]));case 5:f.sent(),ui.unwrap(s),f.label=6;case 6:return n=!0,[3,4];case 7:return[3,10];case 8:return d=f.sent(),r=!0,i=d,[3,10];case 9:try{n||null==a.return||a.return()}finally{if(r)throw i}return[7];case 10:return[2]}}))}},{key:"wrapInTag",value:function(e){var t=[],o=!0,n=!1,r=void 0;try{for(var i,a=this.wrapInTagGen()[Symbol.iterator]();!(o=(i=a.next()).done);o=!0){var l=i.value;try{if(l.firstChild&&l.firstChild===l.lastChild&&tn(l.firstChild))continue;Oo(e)?e(l):t.push(ui.replace(l,e,this.j.createInside))}finally{var s=l.parentNode;s&&(ui.unwrap(l),ui.isEmpty(s)&&ui.unwrap(s))}}}catch(e){n=!0,r=e}finally{try{o||null==a.return||a.return()}finally{if(n)throw r}}return t}},{key:"commitStyle",value:function(e){Jn(Zi(e)>0,"Need to pass at least one option"),new Sv(e).apply(this.j)}},{key:"splitSelection",value:function(e,t){if(!this.isCollapsed())return null;var o=this.createRange(),n=this.range;o.setStartBefore(e);var r=this.cursorOnTheRight(e,t),i=this.cursorOnTheLeft(e,t),a=this.j.createInside.element("br"),l=this.j.createInside.fake(),s=l.cloneNode();try{if(r||i){t?ui.before(t,a):ui.safeInsertNode(n,a);var c=function(e,t){for(var o=t(e);o;){var n=t(o);if(!o||!ui.isTag(o,"br")&&!ui.isEmptyTextNode(o))break;ui.safeRemove(o),o=n}};c(a,(function(e){return e.nextSibling})),c(a,(function(e){return e.previousSibling})),ui.after(a,s),ui.before(a,l),r?(o.setEndBefore(a),n.setEndBefore(a)):(o.setEndAfter(a),n.setEndAfter(a))}else o.setEnd(n.startContainer,n.startOffset);var u=o.extractContents(),d=function(e){return ui.each(e,(function(e){return ui.isEmptyTextNode(e)&&ui.safeRemove(e)}))};Jn(e.parentNode,"Splitting fails");try{if(d(u),d(e),e.parentNode.insertBefore(u,e),!t&&r&&(null==a?void 0:a.parentNode)){var f=this.createRange();f.setStartBefore(a),this.selectRange(f)}}catch(e){if(!ft)throw e}var p=function(e){var t,o,n;(null===(t=null==e?void 0:e.parentNode)||void 0===t?void 0:t.firstChild)===(null===(o=null==e?void 0:e.parentNode)||void 0===o?void 0:o.lastChild)&&(null===(n=null==e?void 0:e.parentNode)||void 0===n||n.appendChild(a.cloneNode()))};p(l),p(s)}finally{ui.safeRemove(l),ui.safeRemove(s)}return e.previousElementSibling}},{key:"expandSelection",value:function(){var e=this;if(this.isCollapsed())return this;var t=this.range,o=t.cloneRange();if(!ui.isOrContains(this.j.editor,t.commonAncestorContainer,!0))return this;var n=function(o){var n=e.j.createInside.fake(),r=t.cloneRange();return r.collapse(o),ui.safeInsertNode(r,n),function(e,t,o){for(var n=e;n&&n!==o;){if(ui.findSibling(n,t))return;if(ui.isBlock(n.parentElement))break;(n=n.parentElement)&&n!==o&&(t?ui.before(n,e):ui.after(n,e))}}(n,o,e.j.editor),n},r=n(!0),i=n(!1);o.setStartAfter(r),o.setEndBefore(i);var a=ui.findSibling(r,!1),l=ui.findSibling(i,!0);if(a!==l){var s=ui.isElement(a)&&ui.isOrContains(a,i),c=!s&&ui.isElement(l)&&ui.isOrContains(l,r);if(s||c){for(var u=s?a:l,d=u;ui.isElement(u);)(u=s?u.firstElementChild:u.lastElementChild)&&(s?ui.isOrContains(u,i):ui.isOrContains(u,r))&&(d=u);s?o.setStart(d,0):o.setEnd(d,d.childNodes.length)}}if(this.selectRange(o),ui.safeRemove(r,i),this.isCollapsed())throw Dr("Selection is collapsed");return this}}],o&&Cv(t.prototype,o),e}();function Iv(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Pv(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Rv(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Av(e,t,o){return Av="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Lv(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},Av(e,t,o||e)}function Lv(e){return Lv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Lv(e)}function Mv(e,t){return!t||"object"!==Nv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Bv(e,t){return Bv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bv(e,t)}function Dv(e){return function(e){if(Array.isArray(e))return Iv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Iv(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Iv(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nv(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Hv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hv=function(){return!!e})()}Ev([Co],Tv.prototype,"createRange",null),Ev([Co],Tv.prototype,"focus",null),Ev([Co],Tv.prototype,"setCursorAfter",null),Ev([Co],Tv.prototype,"setCursorBefore",null),Ev([Co],Tv.prototype,"setCursorIn",null);var Fv,qv=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Nv(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Vv="data-jodit-default-style-display",Wv="data-jodit-default-classes",Uv=Fv=function(e){function t(e,o){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=Lv(t),Mv(e,Hv()?Reflect.construct(t,o||[],Lv(e).constructor):t.apply(e,o))}(this,t,[o,!0])).isJodit=!0,n.commands=new Map,n.__selectionLocked=null,n.__wasReadOnly=!1,n.editorIsActive=!1,n.__mode=Qt,n.__callChangeCount=0,n.__isSilentChange=!1,n.currentPlace={options:n.__options,container:n.__container},n.places=[],n.__elementToPlace=new Map;try{var r=$r(e,n.options.shadowRoot||n.od);if(Fv.isJoditAssigned(r))return Mv(n,r.component)}catch(e){if(!ft)throw e;throw n.destruct(),e}return n.setStatus(zo.beforeInit),n.id=Xn($r(e,n.o.shadowRoot||n.od),"id")||(new Date).getTime().toString(),Ta[n.id]=n,n.attachEvents(o),n.e.on(n.ow,"resize",(function(){n.e&&n.e.fire("resize")})),n.e.on("prepareWYSIWYGEditor",n.__prepareWYSIWYGEditor),n.selection=new Tv(n),ur(n.beforeInitHook(),(function(){if(!n.isInDestruct){n.e.fire("beforeInit",n),Ra.__init(n),n.e.fire("afterPluginSystemInit",n),n.e.on("changePlace",(function(){n.setReadOnly(n.o.readonly),n.setDisabled(n.o.disabled)})),n.places.length=0;var t=n.addPlace(e,o);Ta[n.id]=n,ur(t,(function(){n.isInDestruct||(n.e&&n.e.fire("afterInit",n),ur(n.afterInitHook()),n.setStatus(zo.ready),n.e.fire("afterConstructor",n))}))}})),n}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bv(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"Jodit"}},{key:"waitForReady",value:function(){var e=this;return this.isReady?Promise.resolve(this):this.async.promise((function(t){e.hookStatus("ready",(function(){return t(e)}))}))}},{key:"text",get:function(){if(this.editor)return this.editor.innerText||"";var e=this.createInside.div();return e.innerHTML=this.getElementValue(),e.innerText||""}},{key:"defaultTimeout",get:function(){return on(this.o.defaultTimeout)?this.o.defaultTimeout:tr.defaultOptions.defaultTimeout}},{key:"createInside",get:function(){var e=this;return new ju((function(){return e.ed}),this.o.createAttributes)}},{key:"__setPlaceField",value:function(e,t){this.currentPlace||(this.currentPlace={},this.places=[this.currentPlace]),this.currentPlace[e]=t}},{key:"element",get:function(){return this.currentPlace.element}},{key:"editor",get:function(){return this.currentPlace.editor},set:function(e){this.__setPlaceField("editor",e)}},{key:"container",get:function(){return this.currentPlace.container},set:function(e){this.__setPlaceField("container",e)}},{key:"workplace",get:function(){return this.currentPlace.workplace}},{key:"message",get:function(){return this.getMessageModule(this.workplace)}},{key:"statusbar",get:function(){return this.currentPlace.statusbar}},{key:"iframe",get:function(){return this.currentPlace.iframe},set:function(e){this.__setPlaceField("iframe",e)}},{key:"history",get:function(){return this.currentPlace.history}},{key:"editorWindow",get:function(){return this.currentPlace.editorWindow},set:function(e){this.__setPlaceField("editorWindow",e)}},{key:"ew",get:function(){return this.editorWindow}},{key:"editorDocument",get:function(){return this.currentPlace.editorWindow.document}},{key:"ed",get:function(){return this.editorDocument}},{key:"options",get:function(){return this.currentPlace.options},set:function(e){this.__options=e,this.__setPlaceField("options",e)}},{key:"s",get:function(){return this.selection}},{key:"uploader",get:function(){return this.getInstance("Uploader",this.o.uploader)}},{key:"filebrowser",get:function(){var e=this,t=mr({defaultTimeout:e.defaultTimeout,uploader:e.o.uploader,language:e.o.language,license:e.o.license,theme:e.o.theme,shadowRoot:e.o.shadowRoot,defaultCallback:function(t){t.files&&t.files.length&&t.files.forEach((function(o,n){var r=t.baseurl+o;t.isImages&&t.isImages[n]?e.s.insertImage(r,null,e.o.imageDefaultWidth):e.s.insertNode(e.createInside.fromHTML("<a href='".concat(r,"' title='").concat(r,"'>").concat(r,"</a>")))}))}},this.o.filebrowser);return e.getInstance("FileBrowser",t)}},{key:"mode",get:function(){return this.__mode},set:function(e){this.setMode(e)}},{key:"getNativeEditorValue",value:function(){var e=this.e.fire("beforeGetNativeEditorValue");return Io(e)?e:this.editor?this.editor.innerHTML:this.getElementValue()}},{key:"setNativeEditorValue",value:function(e){var t={value:e};this.e.fire("beforeSetNativeEditorValue",t)||this.editor&&(this.editor.innerHTML=t.value)}},{key:"value",get:function(){return this.getEditorValue()},set:function(e){this.setEditorValue(e),this.history.__processChanges()}},{key:"synchronizeValues",value:function(){this.__imdSynchronizeValues()}},{key:"__imdSynchronizeValues",value:function(){this.setEditorValue()}},{key:"getEditorValue",value:function(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=arguments.length>1?arguments[1]:void 0;if(void 0!==(e=this.e.fire("beforeGetValueFromEditor",o)))return e;e=this.getNativeEditorValue().replace(_t(),""),t&&(e=e.replace(/<span[^>]+id="jodit-selection_marker_[^>]+><\/span>/g,"")),"<br>"===e&&(e="");var n={value:e};return this.e.fire("afterGetValueFromEditor",n,o),n.value}},{key:"setEditorValue",value:function(e){var t=this.e.fire("beforeSetValueToEditor",e);if(!1!==t)if(Io(t)&&(e=t),this.editor){if(!Io(e)&&!Ro(e))throw Dr("value must be string");Ro(e)||this.getNativeEditorValue()===e||this.setNativeEditorValue(e),this.e.fire("postProcessSetEditorValue");var o=this.getElementValue(),n=this.getEditorValue();if(!this.__isSilentChange&&o!==n&&this.__callChangeCount<fo){this.__setElementValue(n),this.__callChangeCount+=1,!ft&&this.__callChangeCount>4&&console.warn("Too many recursive changes",n,o);try{this.history.__upTick(),this.e.fire("change",n,o),this.e.fire(this.history,"change",n,o)}finally{this.__callChangeCount=0}}}else void 0!==e&&this.__setElementValue(e)}},{key:"updateElementValue",value:function(){this.__setElementValue(this.getEditorValue())}},{key:"getElementValue",value:function(){return void 0!==this.element.value?this.element.value:this.element.innerHTML}},{key:"__setElementValue",value:function(e){var t=this;if(!Io(e))throw Dr("value must be string");if(this.element!==this.container&&e!==this.getElementValue()){var o={value:e};ur(this.e.fire("beforeSetElementValue",o),(function(){void 0!==t.element.value?t.element.value=o.value:t.element.innerHTML=o.value,t.e.fire("afterSetElementValue",o)}))}}},{key:"registerCommand",value:function(e,t,o){var n=e.toLowerCase(),r=this.commands.get(n);if(void 0===r&&(r=[],this.commands.set(n,r)),r.push(t),!Oo(t)){var i=this.o.commandToHotkeys[n]||this.o.commandToHotkeys[e]||t.hotkeys;i&&this.registerHotkeyToCommand(i,n,null==o?void 0:o.stopPropagation)}return this}},{key:"registerHotkeyToCommand",value:function(e,t){var o=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=zi(e).map(qi).map((function(e){return e+".hotkey"})).join(" ");this.e.off(r).on(r,(function(e,r){return r&&(r.shouldStop=null==n||n),o.execCommand(t)}))}},{key:"execCommand",value:function(e,t,o){for(var n=arguments.length,r=new Array(n>3?n-3:0),i=3;i<n;i++)r[i-3]=arguments[i];var a;if(this.s.isFocused()||this.s.focus(),!this.o.readonly||this.o.allowCommandsInReadOnly.includes(e)){var l,s;if(e=e.toLowerCase(),!1!==(l=(a=this.e).fire.apply(a,["beforeCommand".concat(ta(e)),t,o].concat(Dv(r))))&&(l=(s=this.e).fire.apply(s,["beforeCommand",e,t,o].concat(Dv(r)))),!1!==l&&(l=this.__execCustomCommands.apply(this,[e,t,o].concat(Dv(r)))),!1!==l){this.s.focus();try{l=this.nativeExecCommand(e,t,o)}catch(e){if(!ft)throw e}}return this.e.fire("afterCommand",e,t,o),this.__imdSynchronizeValues(),l}}},{key:"nativeExecCommand",value:function(e,t,o){this.__isSilentChange=!0;try{return this.ed.execCommand(e,t,o)}finally{this.__isSilentChange=!1}}},{key:"__execCustomCommands",value:function(e,t,o){for(var n=this,r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];e=e.toLowerCase();var l,s=this.commands.get(e);if(void 0!==s)return s.forEach((function(r){var a,s=(a=Oo(r)?r:r.exec).call.apply(a,[n,e,t,o].concat(Dv(i)));void 0!==s&&(l=s)})),l}},{key:"lock",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";return!!Av(Lv(t.prototype),"lock",this).call(this,e)&&(this.__selectionLocked=this.s.save(),this.s.clear(),this.editor.classList.add("jodit_lock"),this.e.fire("lock",!0),!0)}},{key:"unlock",value:function(){return!!Av(Lv(t.prototype),"unlock",this).call(this)&&(this.editor.classList.remove("jodit_lock"),this.__selectionLocked&&this.s.restore(),this.e.fire("lock",!1),!0)}},{key:"getMode",value:function(){return this.mode}},{key:"isEditorMode",value:function(){return this.getRealMode()===Qt}},{key:"getRealMode",value:function(){if(this.getMode()!==eo)return this.getMode();var e=this.od.activeElement;return e&&(e===this.iframe||ui.isOrContains(this.editor,e)||ui.isOrContains(this.toolbar.container,e))?Qt:$t}},{key:"setMode",value:function(e){var t=this,o=this.getMode(),n={mode:parseInt(e.toString(),10)},r=["jodit-wysiwyg_mode","jodit-source__mode","jodit_split_mode"];!1!==this.e.fire("beforeSetMode",n)&&(this.__mode=[$t,Qt,eo].includes(n.mode)?n.mode:Qt,this.o.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),r.forEach((function(e){t.container.classList.remove(e)})),this.container.classList.add(r[this.mode-1]),o!==this.getMode()&&this.e.fire("afterSetMode"))}},{key:"toggleMode",value:function(){var e=this.getMode();[$t,Qt,this.o.useSplitMode?eo:9].includes(e+1)?e+=1:e=Qt,this.setMode(e)}},{key:"setDisabled",value:function(e){this.o.disabled=e;var t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&(this.editor.setAttribute("aria-disabled",e.toString()),this.container.classList.toggle("jodit_disabled",e),this.e.fire("disabled",e))}},{key:"getDisabled",value:function(){return this.o.disabled}},{key:"setReadOnly",value:function(e){this.__wasReadOnly!==e&&(this.__wasReadOnly=e,this.o.readonly=e,e?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.e&&this.e.fire("readonly",e))}},{key:"getReadOnly",value:function(){return this.o.readonly}},{key:"focus",value:function(){this.getMode()!==$t&&this.s.focus()}},{key:"isFocused",get:function(){return this.s.isFocused()}},{key:"beforeInitHook",value:function(){}},{key:"afterInitHook",value:function(){}},{key:"initOptions",value:function(e){this.options=mr(e||{},tr.defaultOptions)}},{key:"initOwners",value:function(){this.editorWindow=this.o.ownerWindow,this.ownerWindow=this.o.ownerWindow}},{key:"addPlace",value:function(e,t){var o=this,n=$r(e,this.o.shadowRoot||this.od);this.attachEvents(t),n.attributes&&Bo(n.attributes).forEach((function(e){var n=e.name,r=e.value;void 0===tr.defaultOptions[n]||t&&void 0!==t[n]||(-1!==["readonly","disabled"].indexOf(n)&&(r=""===r||"true"===r),/^[0-9]+(\.)?([0-9]+)?$/.test(r.toString())&&(r=Number(r)),o.options[n]=r)}));var r=this.c.div("jodit-container");r.classList.add("jodit"),r.classList.add("jodit-container"),r.classList.add("jodit_theme_".concat(this.o.theme||"default")),Yv(this.o.className,r),this.o.containerStyle&&In(r,this.o.containerStyle);var i=this.o.styleValues;Object.keys(i).forEach((function(e){var t=xn(e);r.style.setProperty("--jd-".concat(t),i[e])})),r.setAttribute("contenteditable","false");var a=null;this.o.inline&&(-1===["TEXTAREA","INPUT"].indexOf(n.nodeName)&&(r=n,n.setAttribute(Wv,n.className.toString()),a=r.innerHTML,r.innerHTML=""),r.classList.add("jodit_inline"),r.classList.add("jodit-container")),n!==r&&(n.style.display&&n.setAttribute(Vv,n.style.display),n.style.display="none");var l=this.c.div("jodit-workplace",{contenteditable:!1});r.appendChild(l),n.parentNode&&n!==r&&n.parentNode.insertBefore(r,n),Object.defineProperty(n,"component",{enumerable:!1,configurable:!0,value:this});var s=this.c.div("jodit-wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:this.o.tabIndex});l.appendChild(s);var c={editor:s,element:n,container:r,workplace:l,statusbar:new uh(this,r),options:this.isReady?mr(t||{},tr.defaultOptions):this.options,history:new nh(this),editorWindow:this.ow};this.__elementToPlace.set(s,c),this.setCurrentPlace(c),this.places.push(c),this.setNativeEditorValue(this.getElementValue());var u=this.__initEditor(a),d=this.options;return ur(u,(function(){d.enableDragAndDropFileToEditor&&d.uploader&&(d.uploader.url||d.uploader.insertImageAsBase64URI)&&o.uploader.bind(o.editor),o.__elementToPlace.get(o.editor)||o.__elementToPlace.set(o.editor,c),o.e.fire("afterAddPlace",c)}))}},{key:"addDisclaimer",value:function(e){this.workplace.appendChild(e)}},{key:"setCurrentPlace",value:function(e){this.currentPlace!==e&&(this.isEditorMode()||this.setMode(Qt),this.currentPlace=e,this.buildToolbar(),this.isReady&&this.e.fire("changePlace",e))}},{key:"__initEditor",value:function(e){var t=this;return ur(this.__createEditor(),(function(){if(!t.isInDestruct){if(t.element!==t.container){var o=t.getElementValue();o!==t.getEditorValue()&&t.setEditorValue(o)}else null!=e&&t.setEditorValue(e);var n=t.o.defaultMode;if(t.o.saveModeInStorage){var r=t.storage.get("jodit_default_mode");"string"==typeof r&&(n=parseInt(r,10))}t.setMode(n),t.o.readonly&&(t.__wasReadOnly=!1,t.setReadOnly(!0)),t.o.disabled&&t.setDisabled(!0);try{t.ed.execCommand("defaultParagraphSeparator",!1,t.o.enter.toLowerCase())}catch(e){}}}))}},{key:"__createEditor",value:function(){var e=this,t=this.editor,o=this.e.fire("createEditor",this);return ur(o,(function(){e.isInDestruct||((!1===o||an(o))&&ui.safeRemove(t),Yv(e.o.editorClassName,e.editor),e.o.style&&In(e.editor,e.o.style),e.e.on("synchro",(function(){e.setEditorValue()})).on("focus",(function(){e.editorIsActive=!0})).on("blur",(function(){return e.editorIsActive=!1})),e.__prepareWYSIWYGEditor(),e.o.triggerChangeEvent&&e.e.on("change",e.async.debounce((function(){e.e&&e.e.fire(e.element,"change")}),e.defaultTimeout)))}))}},{key:"__prepareWYSIWYGEditor",value:function(){var e=this,t=this.editor;if(this.o.direction){var o="rtl"===this.o.direction.toLowerCase()?"rtl":"ltr";this.editor.style.direction=o,this.editor.setAttribute("dir",o),this.container.style.direction=o,this.container.setAttribute("dir",o),this.toolbar.setDirection(o)}this.e.on(t,"mousedown touchstart focus",(function(){var o=e.__elementToPlace.get(t);o&&e.setCurrentPlace(o)})).on(t,"compositionend",this.synchronizeValues).on(t,"selectionchange selectionstart keydown keyup input keypress dblclick mousedown mouseup click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",(function(t){var o,n;if(!e.o.readonly&&!e.__isSilentChange&&(o=t,(!(null!=(n=e.ew.KeyboardEvent)&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](o):o instanceof n)||!t.isComposing)&&e.e&&e.e.fire)){if(!1===e.e.fire(t.type,t))return!1;e.synchronizeValues()}}))}},{key:"fetch",value:function(e,t){var o=this,n=new ml(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){Rv(e,t,o[t])}))}return e}({url:e},t),this.o.defaultAjaxOptions),r=function(){o.e.off("beforeDestruct",r),o.progressbar.progress(100).hide(),n.destruct()};this.e.one("beforeDestruct",r),this.progressbar.show().progress(30);var i=n.send();return i.finally(r).catch((function(){return null})),i}},{key:"destruct",value:function(){var e,o,n=this;if(!this.isInDestruct){this.setStatus(zo.beforeDestruct),this.__elementToPlace.clear(),null===(e=di(this,"storage"))||void 0===e||e.clear(),null===(o=di(this,"buffer"))||void 0===o||o.clear(),this.commands.clear(),this.__selectionLocked=null,this.e.off(this.ow,"resize"),this.e.off(this.ow),this.e.off(this.od),this.e.off(this.od.body);var r=this.editor?this.getEditorValue():"";this.places.forEach((function(e){var t=e.container,o=e.workplace,i=e.statusbar,a=e.element,l=e.iframe,s=e.editor,c=e.history;if(a){if(a!==t)if(a.hasAttribute(Vv)){var u=Xn(a,Vv);u&&(a.style.display=u,a.removeAttribute(Vv))}else a.style.display="";else a.hasAttribute(Wv)&&(a.className=Xn(a,Wv)||"",a.removeAttribute(Wv));a.hasAttribute("style")&&!Xn(a,"style")&&a.removeAttribute("style"),i.destruct(),n.e.off(t),n.e.off(a),n.e.off(s),ui.safeRemove(o),ui.safeRemove(s),t!==a&&ui.safeRemove(t),Object.defineProperty(a,"component",{enumerable:!1,configurable:!0,value:null}),ui.safeRemove(l),t===a&&(a.innerHTML=r),c.destruct()}})),this.places.length=0,this.currentPlace={},delete Ta[this.id],Av(Lv(t.prototype),"destruct",this).call(this)}}}],r=[{key:"ready",get:function(){return new Promise((function(e){Na.on("joditready",e)}))}},{key:"atom",value:function(e){return nr(e)}},{key:"make",value:function(e,t){return new this(e,t)}},{key:"isJoditAssigned",value:function(e){return e&&$o(e.component)&&!e.component.isInDestruct}},{key:"defaultOptions",get:function(){return tr.defaultOptions}}],n&&Pv(o.prototype,n),r&&Pv(o,r),t}(Zd);function Yv(e,t){e&&e.split(/\s+/).forEach((function(e){return t.classList.add(e)}))}Uv.fatMode=ht,Uv.plugins=Ra,Uv.modules=Aa,Uv.ns=Aa,Uv.decorators={},Uv.constants=i,Uv.instances=Ta,Uv.lang=wo,Uv.core={Plugin:Hp},qv([fi],Uv.prototype,"createInside",null),qv([fi],Uv.prototype,"message",null),qv([fi],Uv.prototype,"s",null),qv([fi],Uv.prototype,"uploader",null),qv([fi],Uv.prototype,"filebrowser",null),qv([Za()],Uv.prototype,"synchronizeValues",null),qv([Sa(":internalChange")],Uv.prototype,"updateElementValue",null),qv([Co],Uv.prototype,"__prepareWYSIWYGEditor",null),Uv=Fv=qv([el(hf)],Uv);const Kv='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 736q0 13-10 23l-466 466q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l393 393 393-393q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> ',Gv='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1203 544q0 13-10 23l-393 393 393 393q10 10 10 23t-10 23l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23z"/> </svg> ',Jv='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1171 960q0 13-10 23l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> ',Xv='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1395 1184q0 13-10 23l-50 50q-10 10-23 10t-23-10l-393-393-393 393q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l466 466q10 10 10 23z"/> </svg> ',Zv='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M704 1376v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm256 0v-704q0-14-9-23t-23-9h-64q-14 0-23 9t-9 23v704q0 14 9 23t23 9h64q14 0 23-9t9-23zm-544-992h448l-48-117q-7-9-17-11h-317q-10 2-17 11zm928 32v64q0 14-9 23t-23 9h-96v948q0 83-47 143.5t-113 60.5h-832q-66 0-113-58.5t-47-141.5v-952h-96q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h309l70-167q15-37 54-63t79-26h320q40 0 79 26t54 63l70 167h309q14 0 23 9t9 23z"/> </svg> ',Qv='<svg viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" stroke-width="1"> <path d="M14,1.4 L12.6,0 L7,5.6 L1.4,0 L0,1.4 L5.6,7 L0,12.6 L1.4,14 L7,8.4 L12.6,14 L14,12.6 L8.4,7 L14,1.4 Z"/> </g> </svg> ',$v='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-896q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h896q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-640q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h640q26 0 45 19t19 45z"/> </svg> ',eg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1472 930v318q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q63 0 117 25 15 7 18 23 3 17-9 29l-49 49q-10 10-23 10-3 0-9-2-23-6-45-6h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113v-254q0-13 9-22l64-64q10-10 23-10 6 0 12 3 20 8 20 29zm231-489l-814 814q-24 24-57 24t-57-24l-430-430q-24-24-24-57t24-57l110-110q24-24 57-24t57 24l263 263 647-647q24-24 57-24t57 24l110 110q24 24 24 57t-24 57z"/> </svg> ',tg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 10 10"> <path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/> </svg> ',og='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24" > <circle cx="12" cy="12" r="2.2"/> <circle cx="12" cy="5" r="2.2"/> <circle cx="12" cy="19" r="2.2"/> </svg> ',ng='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 960q-152-236-381-353 61 104 61 225 0 185-131.5 316.5t-316.5 131.5-316.5-131.5-131.5-316.5q0-121 61-225-229 117-381 353 133 205 333.5 326.5t434.5 121.5 434.5-121.5 333.5-326.5zm-720-384q0-20-14-34t-34-14q-125 0-214.5 89.5t-89.5 214.5q0 20 14 34t34 14 34-14 14-34q0-86 61-147t147-61q20 0 34-14t14-34zm848 384q0 34-20 69-140 230-376.5 368.5t-499.5 138.5-499.5-139-376.5-368q-20-35-20-69t20-69q140-229 376.5-368t499.5-139 499.5 139 376.5 368q20 35 20 69z"/> </svg> ',rg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 512v-472q22 14 36 28l408 408q14 14 28 36h-472zm-128 32q0 40 28 68t68 28h544v1056q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1600q0-40 28-68t68-28h800v544z"/> </svg> ',ig='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 608v704q0 92-66 158t-158 66h-1216q-92 0-158-66t-66-158v-960q0-92 66-158t158-66h320q92 0 158 66t66 158v32h672q92 0 158 66t66 158z"/> </svg> ',ag='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> ',lg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm256-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm-384-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> ',sg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M640 768h512v-192q0-106-75-181t-181-75-181 75-75 181v192zm832 96v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h32v-192q0-184 132-316t316-132 316 132 132 316v192h32q40 0 68 28t28 68z"/></svg> ',cg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 32 32"> <path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"/> </svg> ',ug='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"/></svg> ',dg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1600 736v192q0 40-28 68t-68 28h-416v416q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-416h-416q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h416v-416q0-40 28-68t68-28h192q40 0 68 28t28 68v416h416q40 0 68 28t28 68z"/></svg> ',fg='<svg viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg"> <path d="M5.9814 11.8049C5.59087 11.4144 5.59087 10.7812 5.9814 10.3907L10.224 6.14806C10.6146 5.75754 11.2477 5.75754 11.6383 6.14806C12.0288 6.53859 12.0288 7.17175 11.6383 7.56228L7.39561 11.8049C7.00509 12.1954 6.37192 12.1954 5.9814 11.8049Z"/> <path d="M0.707107 12.0208C0.316582 11.6303 0.316582 10.9971 0.707107 10.6066L10.6066 0.707121C10.9971 0.316597 11.6303 0.316596 12.0208 0.707121C12.4113 1.09764 12.4113 1.73081 12.0208 2.12133L2.12132 12.0208C1.7308 12.4114 1.09763 12.4114 0.707107 12.0208Z"/> </svg> ',pg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1280q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1536q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1536q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1152q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1152q26 0 45 19t19 45z"/> </svg> ',hg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1536h768v-384h-768v384zm896 0h128v-896q0-14-10-38.5t-20-34.5l-281-281q-10-10-34-20t-39-10v416q0 40-28 68t-68 28h-576q-40 0-68-28t-28-68v-416h-128v1280h128v-416q0-40 28-68t68-28h832q40 0 68 28t28 68v416zm-384-928v-320q0-13-9.5-22.5t-22.5-9.5h-192q-13 0-22.5 9.5t-9.5 22.5v320q0 13 9.5 22.5t22.5 9.5h192q13 0 22.5-9.5t9.5-22.5zm640 32v928q0 40-28 68t-68 28h-1344q-40 0-68-28t-28-68v-1344q0-40 28-68t68-28h928q40 0 88 20t76 48l280 280q28 28 48 76t20 88z"/> </svg> ',vg='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path stroke="null" d="m42.276011,26.302547c0.098397,-0.76605 0.172194,-1.54407 0.172194,-2.33406s-0.073797,-1.56801 -0.172194,-2.33406l5.202718,-3.961917c0.467384,-0.359086 0.602679,-1.005441 0.29519,-1.532101l-4.919828,-8.29489c-0.307489,-0.51469 -0.947067,-0.730142 -1.500548,-0.51469l-6.125186,2.405877c-1.266856,-0.945594 -2.656707,-1.747553 -4.157255,-2.357999l-0.922468,-6.343855c-0.110696,-0.562568 -0.614979,-1.005441 -1.229957,-1.005441l-9.839656,0c-0.614979,0 -1.119261,0.442873 -1.217657,1.005441l-0.922468,6.343855c-1.500548,0.610446 -2.890399,1.400436 -4.157255,2.357999l-6.125186,-2.405877c-0.553481,-0.203482 -1.193058,0 -1.500548,0.51469l-4.919828,8.29489c-0.307489,0.51469 -0.172194,1.161045 0.29519,1.532101l5.190419,3.961917c-0.098397,0.76605 -0.172194,1.54407 -0.172194,2.33406s0.073797,1.56801 0.172194,2.33406l-5.190419,3.961917c-0.467384,0.359086 -0.602679,1.005441 -0.29519,1.532101l4.919828,8.29489c0.307489,0.51469 0.947067,0.730142 1.500548,0.51469l6.125186,-2.405877c1.266856,0.945594 2.656707,1.747553 4.157255,2.357999l0.922468,6.343855c0.098397,0.562568 0.602679,1.005441 1.217657,1.005441l9.839656,0c0.614979,0 1.119261,-0.442873 1.217657,-1.005441l0.922468,-6.343855c1.500548,-0.610446 2.890399,-1.400436 4.157255,-2.357999l6.125186,2.405877c0.553481,0.203482 1.193058,0 1.500548,-0.51469l4.919828,-8.29489c0.307489,-0.51469 0.172194,-1.161045 -0.29519,-1.532101l-5.190419,-3.961917zm-18.277162,6.044617c-4.759934,0 -8.609699,-3.746465 -8.609699,-8.378677s3.849766,-8.378677 8.609699,-8.378677s8.609699,3.746465 8.609699,8.378677s-3.849766,8.378677 -8.609699,8.378677z"/> </svg> ',gg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z"/> </svg> ',mg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1639 1056q0 5-1 7-64 268-268 434.5t-478 166.5q-146 0-282.5-55t-243.5-157l-129 129q-19 19-45 19t-45-19-19-45v-448q0-26 19-45t45-19h448q26 0 45 19t19 45-19 45l-137 137q71 66 161 102t187 36q134 0 250-65t186-179q11-17 53-117 8-23 30-23h192q13 0 22.5 9.5t9.5 22.5zm25-800v448q0 26-19 45t-45 19h-448q-26 0-45-19t-19-45 19-45l138-138q-148-137-349-137-134 0-250 65t-186 179q-11 17-53 117-8 23-30 23h-199q-13 0-22.5-9.5t-9.5-22.5v-7q65-268 270-434.5t480-166.5q146 0 284 55.5t245 156.5l130-129q19-19 45-19t45 19 19 45z"/> </svg> ',bg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h-256v448q0 26-19 45t-45 19h-256q-26 0-45-19t-19-45v-448h-256q-42 0-59-40-17-39 14-69l448-448q18-19 45-19t45 19l448 448q31 30 14 69z"/> </svg> ',yg='<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1216 320q0 26-19 45t-45 19h-128v1024h128q26 0 45 19t19 45-19 45l-256 256q-19 19-45 19t-45-19l-256-256q-19-19-19-45t19-45 45-19h128v-1024h-128q-26 0-45-19t-19-45 19-45l256-256q19-19 45-19t45 19l256 256q19 19 19 45z"/> </svg> ',_g={};var jg={};jg={ar:{"Type something":"إبدأ في الكتابة...","About Jodit":"حول جوديت","Jodit Editor":"محرر جوديت","Jodit User's Guide":"دليل مستخدم جوديت","contains detailed help for using":"يحتوي على مساعدة مفصلة للاستخدام","For information about the license, please go to our website:":"للحصول على معلومات حول الترخيص، يرجى الذهاب لموقعنا:","Buy full version":"شراء النسخة الكاملة","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"حقوق الطبع والنشر © XDSoft.net - Chupurnov Valeriy. كل الحقوق محفوظة.",Anchor:"مِرْساة","Open in new tab":"فتح في نافذة جديدة","Open in fullsize":"فتح المحرر في الحجم الكامل","Clear Formatting":"مسح التنسيق","Fill color or set the text color":"ملء اللون أو تعيين لون النص",Redo:"إعادة",Undo:"تراجع",Bold:"عريض",Italic:"مائل","Insert Unordered List":"إدراج قائمة غير مرتبة","Insert Ordered List":"إدراج قائمة مرتبة","Align Center":"محاذاة للوسط","Align Justify":"محاذاة مثبتة","Align Left":"محاذاة لليسار","Align Right":"محاذاة لليمين","Insert Horizontal Line":"إدراج خط أفقي","Insert Image":"إدراج صورة","Insert file":"ادخال الملف","Insert youtube/vimeo video":"إدراج فيديو يوتيوب/فيميو ","Insert link":"إدراج رابط","Font size":"حجم الخط","Font family":"نوع الخط","Insert format block":"إدراج كتلة تنسيق",Normal:"عادي","Heading 1":"عنوان 1","Heading 2":"عنوان 2","Heading 3":"عنوان 3","Heading 4":"عنوان 4",Quote:"إقتباس",Code:"كود",Insert:"إدراج","Insert table":"إدراج جدول","Decrease Indent":"تقليل المسافة البادئة","Increase Indent":"زيادة المسافة البادئة","Select Special Character":"تحديد أحرف خاصة","Insert Special Character":"إدراج حرف خاص","Paint format":"تنسيق الرسم","Change mode":"تغيير الوضع",Margins:"هوامش",top:"أعلى",right:"يمين",bottom:"أسفل",left:"يسار",Styles:"الأنماط",Classes:"الطبقات",Align:"محاذاة",Right:"اليمين",Center:"الوسط",Left:"اليسار","--Not Set--":"--غير مضبوط--",Src:"Src",Title:"العنوان",Alternative:"العنوان البديل",Link:"الرابط","Open link in new tab":"افتح الرابط في نافذة جديدة",Image:"الصورة",file:"ملف",Advanced:"متقدم","Image properties":"خصائص الصورة",Cancel:"إلغاء",Ok:"حسنا","File Browser":"متصفح الملفات","Error on load list":"حدث خطأ في تحميل القائمة ","Error on load folders":"حدث خطأ في تحميل المجلدات","Are you sure?":"هل أنت واثق؟","Enter Directory name":"أدخل اسم المجلد","Create directory":"إنشاء مجلد","type name":"أكتب إسم","Drop image":"إسقاط صورة","Drop file":"إسقاط الملف","or click":"أو أنقر","Alternative text":"النص البديل",Upload:"رفع",Browse:"تصفح",Background:"الخلفية",Text:"نص",Top:"أعلى",Middle:"الوسط",Bottom:"الأسفل","Insert column before":"إدراج عمود قبل","Insert column after":"إدراج عمود بعد","Insert row above":"إدراج صف أعلى","Insert row below":"إدراج صف أسفل","Delete table":"حذف الجدول","Delete row":"حذف الصف","Delete column":"حذف العمود","Empty cell":"خلية فارغة","Chars: %d":"%d حرف","Words: %d":"%d كلام","Strike through":"اضرب من خلال",Underline:"أكد",superscript:"حرف فوقي",subscript:"مخطوطة","Cut selection":"قطع الاختيار","Select all":"اختر الكل",Break:"استراحة","Search for":"البحث عن","Replace with":"استبدل ب",Replace:"محل",Paste:"معجون","Choose Content to Paste":"اختر محتوى للصق",source:"مصدر",bold:"بالخط العريض",italic:"مائل",brush:"شغل",link:"صلة",undo:"إلغاء",redo:"كرر",table:"طاولة",image:"صورة",eraser:"نظيف",paragraph:"فقرة",fontsize:"حجم الخط",video:"فيديو",font:"الخط",about:"حول المحرر",print:"طباعة",underline:"أكد",strikethrough:"شطب",indent:"المسافة البادئة",outdent:"نتوء",fullsize:"ملء الشاشة",shrink:"الحجم التقليدي",hr:"الخط",ul:"قائمة",ol:"قائمة مرقمة",cut:"قطع",selectall:"اختر الكل","Embed code":"قانون","Open link":"فتح الرابط","Edit link":"تعديل الرابط","No follow":"سمة Nofollow",Unlink:"إزالة الرابط",Update:"تحديث",pencil:"لتحرير",Eye:"مراجعة"," URL":"URL",Edit:"تحرير","Horizontal align":"محاذاة أفقية",Filter:"فلتر","Sort by changed":"عن طريق التغيير","Sort by name":"بالاسم","Sort by size":"حسب الحجم","Add folder":"إضافة مجلد",Reset:"إعادة",Save:"احتفظ","Save as ...":"حفظ باسم",Resize:"تغيير الحجم",Crop:"حجم القطع",Width:"عرض",Height:"ارتفاع","Keep Aspect Ratio":"حافظ على النسب",Yes:"أن",No:"لا",Remove:"حذف",Select:"تميز","Select %s":"تميز %s","Vertical align":"محاذاة عمودية",Split:"انشق، مزق",Merge:"اذهب","Add column":"أضف العمود","Add row":"اضف سطر","License: %s":"رخصة %s",Delete:"حذف","Split vertical":"انقسام عمودي","Split horizontal":"تقسيم أفقي",Border:"الحدود","Your code is similar to HTML. Keep as HTML?":"يشبه الكود الخاص بك HTML. تبقي كما HTML؟","Paste as HTML":"الصق ك HTML",Keep:"احتفظ","Insert as Text":"إدراج كنص","Insert only Text":"إدراج النص فقط","You can only edit your own images. Download this image on the host?":"يمكنك فقط تحرير صورك الخاصة. تحميل هذه الصورة على المضيف؟","The image has been successfully uploaded to the host!":"تم تحميل الصورة بنجاح على الخادم!",palette:"لوحة","There are no files":"لا توجد ملفات في هذا الدليل.",Rename:"إعادة تسمية","Enter new name":"أدخل اسم جديد",preview:"معاينة",download:"تحميل","Paste from clipboard":"لصق من الحافظة","Your browser doesn't support direct access to the clipboard.":"متصفحك لا يدعم إمكانية الوصول المباشر إلى الحافظة.","Copy selection":"نسخ التحديد",copy:"نسخ","Border radius":"دائرة نصف قطرها الحدود","Show all":"عرض كل",Apply:"تطبيق","Please fill out this field":"يرجى ملء هذا المجال","Please enter a web address":"يرجى إدخال عنوان ويب",Default:"الافتراضي",Circle:"دائرة",Dot:"نقطة",Quadrate:"المربعة",Find:"البحث","Find Previous":"تجد السابقة","Find Next":"تجد التالي","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"للصق المحتوى قادم من Microsoft Word/Excel الوثيقة. هل تريد أن تبقي شكل أو تنظيفه ؟ ","Word Paste Detected":"كلمة لصق الكشف عن",Clean:"نظيفة","Insert className":"أدخل اسم الفصل","Press Alt for custom resizing":"اضغط البديل لتغيير حجم مخصص","Line height":"ارتفاع الخط",spellcheck:"التدقيق الإملائي","Speech Recognize":"التعرف على الكلام",All:"تحديد الكل"},cs_cz:{"Type something":"Napiš něco","About Jodit":"O Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Verze pro nekomerční použití","Jodit User's Guide":"Jodit Uživatelská příručka","contains detailed help for using":"obsahuje detailní nápovědu","For information about the license, please go to our website:":"Pro informace o licenci, prosím, přejděte na naši stránku:","Buy full version":"Koupit plnou verzi","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Všechna práva vyhrazena.",Anchor:"Anchor","Open in new tab":"Otevřít v nové záložce","Open in fullsize":"Otevřít v celoobrazovkovém režimu","Clear Formatting":"Vyčistit formátování","Fill color or set the text color":"Barva výplně a písma",Redo:"Vpřed",Undo:"Zpět",Bold:"Tučné",Italic:"Kurzíva","Insert Unordered List":"Odrážky","Insert Ordered List":"Číslovaný seznam","Align Center":"Zarovnat na střed","Align Justify":"Zarovnat do bloku","Align Left":"Zarovnat vlevo","Align Right":"Zarovnat vpravo","Insert Horizontal Line":"Vložit horizontální linku","Insert Image":"Vložit obrázek","Insert file":"Vložit soubor","Insert youtube/vimeo video":"Vložit video (YT/Vimeo)","Insert link":"Vložit odkaz","Font size":"Velikost písma","Font family":"Typ písma","Insert format block":"Formátovat blok",Normal:"Normální text","Heading 1":"Nadpis 1","Heading 2":"Nadpis 2","Heading 3":"Nadpis 3","Heading 4":"Nadpis 4",Quote:"Citát",Code:"Kód",Insert:"Vložit","Insert table":"Vložit tabulku","Decrease Indent":"Zmenšit odsazení","Increase Indent":"Zvětšit odsazení","Select Special Character":"Vybrat speciální symbol","Insert Special Character":"Vložit speciální symbol","Paint format":"Použít formát","Change mode":"Změnit mód",Margins:"Okraje",top:"horní",right:"pravý",bottom:"spodní",left:"levý",Styles:"Styly",Classes:"Třídy",Align:"Zarovnání",Right:"Vpravo",Center:"Na střed",Left:"Vlevo","--Not Set--":"--nenastaveno--",Src:"src",Title:"Titulek",Alternative:"Alternativní text (alt)",Link:"Link","Open link in new tab":"Otevřít link v nové záložce",Image:"Obrázek",file:"soubor",Advanced:"Rozšířené","Image properties":"Vlastnosti obrázku",Cancel:"Zpět",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Váš text se podobá HTML. Vložit ho jako HTML?","Paste as HTML":"Vložit jako HTML",Keep:"Ponechat originál",Clean:"Vyčistit","Insert as Text":"Vložit jako TEXT","Insert only Text":"Vložit pouze TEXT","Word Paste Detected":"Detekován fragment z Wordu nebo Excelu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Obsah, který vkládáte, je pravděpodobně z Microsoft Word / Excel. Chcete ponechat formát nebo vložit pouze text?","File Browser":"Prohlížeč souborů","Error on load list":"Chyba při načítání seznamu souborů","Error on load folders":"Chyba při načítání složek","Are you sure?":"Jste si jistý(á)?","Enter Directory name":"Název složky","Create directory":"Vytvořit složku","type name":"název","Drop image":"Přetáhněte sem obrázek","Drop file":"Přetáhněte sem soubor","or click":"nebo klikněte","Alternative text":"Alternativní text",Browse:"Server",Upload:"Nahrát",Background:"Pozadí",Text:"Text",Top:"Nahoru",Middle:"Na střed",Bottom:"Dolu","Insert column before":"Vložit sloupec před","Insert column after":"Vložit sloupec za","Insert row above":"Vložit řádek nad","Insert row below":"Vložit řádek pod","Delete table":"Vymazat tabulku","Delete row":"Vymazat řádku","Delete column":"Vymazat sloupec","Empty cell":"Vyčistit buňku",source:"HTML",bold:"tučně",italic:"kurzíva",brush:"štětec",link:"odkaz",undo:"zpět",redo:"vpřed",table:"tabulka",image:"obrázek",eraser:"guma",paragraph:"odstavec",fontsize:"velikost písma",video:"video",font:"písmo",about:"о editoru",print:"tisk",underline:"podtrženo",strikethrough:"přeškrtnuto",indent:"zvětšit odsazení",outdent:"zmenšit odsazení",fullsize:"celoobrazovkový režim",shrink:"smrsknout",hr:"Linka",ul:"Odrážka",ol:"Číslovaný seznam",cut:"Vyjmout",selectall:"Označit vše","Embed code":"Kód","Open link":"Otevřít odkaz","Edit link":"Upravit odkaz","No follow":"Atribut no-follow",Unlink:"Odstranit odkaz",Eye:"Zobrazit",pencil:"Chcete-li upravit",Update:"Aktualizovat"," URL":"URL",Edit:"Editovat","Horizontal align":"Horizontální zarovnání",Filter:"Filtr","Sort by changed":"Dle poslední změny","Sort by name":"Dle názvu","Sort by size":"Dle velikosti","Add folder":"Přidat složku",Reset:"Reset",Save:"Uložit","Save as ...":"Uložit jako...",Resize:"Změnit rozměr",Crop:"Ořezat",Width:"Šířka",Height:"Výška","Keep Aspect Ratio":"Ponechat poměr",Yes:"Ano",No:"Ne",Remove:"Vyjmout",Select:"Označit","Chars: %d":"Znaky: %d","Words: %d":"Slova: %d",All:"Vše","Select %s":"Označit %s","Select all":"Označit vše","Vertical align":"Vertikální zarovnání",Split:"Rozdělit","Split vertical":"Rozdělit vertikálně","Split horizontal":"Rozdělit horizontálně",Merge:"Spojit","Add column":"Přidat sloupec","Add row":"Přidat řádek",Delete:"Vymazat",Border:"Okraj","License: %s":"Licence: %s","Strike through":"Přeškrtnuto",Underline:"Podtrženo",superscript:"Horní index",subscript:"Dolní index","Cut selection":"Vyjmout označené",Break:"Zalomení","Search for":"Najdi","Replace with":"Nahradit za",Replace:"Vyměňte",Paste:"Vložit","Choose Content to Paste":"Vyber obsah pro vložení","You can only edit your own images. Download this image on the host?":"Můžete upravovat pouze své obrázky. Načíst obrázek?","The image has been successfully uploaded to the host!":"Obrázek byl úspěšně nahrán!",palette:"paleta","There are no files":"V tomto adresáři nejsou žádné soubory.",Rename:"přejmenovat","Enter new name":"Zadejte nový název",preview:"náhled",download:"Stažení","Paste from clipboard":"Vložit ze schránky","Your browser doesn't support direct access to the clipboard.":"Váš prohlížeč nepodporuje přímý přístup do schránky.","Copy selection":"Kopírovat výběr",copy:"kopírování","Border radius":"Border radius","Show all":"Zobrazit všechny",Apply:"Platí","Please fill out this field":"Prosím, vyplňte toto pole","Please enter a web address":"Prosím, zadejte webovou adresu",Default:"Výchozí",Circle:"Kruh",Dot:"Dot",Quadrate:"Quadrate",Find:"Najít","Find Previous":"Najít Předchozí","Find Next":"Najít Další","Insert className":"Vložte název třídy","Press Alt for custom resizing":"Stiskněte Alt pro vlastní změnu velikosti"},de:{"Type something":"Bitte geben Sie einen Text ein",Advanced:"Fortgeschritten","About Jodit":"Über Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Das Jodit Benutzerhandbuch","contains detailed help for using":"beinhaltet ausführliche Informationen wie Sie den Editor verwenden können.","For information about the license, please go to our website:":"Für Informationen zur Lizenz, besuchen Sie bitte unsere Web-Präsenz:","Buy full version":"Vollversion kaufen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle Rechte vorbehalten.",Anchor:"Anker","Open in new tab":"In neuer Registerkarte öffnen","Open in fullsize":"Editor in voller Größe öffnen","Clear Formatting":"Formatierung löschen","Fill color or set the text color":"Füllfarbe oder Textfarbe ändern",Redo:"Wiederholen",Undo:"Rückgängig machen",Bold:"Fett",Italic:"Kursiv","Insert Unordered List":"Unsortierte Liste einfügen","Insert Ordered List":"Nummerierte Liste einfügen","Align Center":"Mittig ausrichten","Align Justify":"Blocksatz","Align Left":"Links ausrichten","Align Right":"Rechts ausrichten","Insert Horizontal Line":"Horizontale Linie einfügen","Insert Image":"Bild einfügen","Insert file":"Datei einfügen","Insert youtube/vimeo video":"Youtube/vimeo Video einfügen","Insert link":"Link einfügen","Font size":"Schriftgröße","Font family":"Schriftfamilie","Insert format block":"Formatblock einfügen",Normal:"Normal","Heading 1":"Überschrift 1","Heading 2":"Überschrift 2","Heading 3":"Überschrift 3","Heading 4":"Überschrift 4",Quote:"Zitat",Code:"Code",Insert:"Einfügen","Insert table":"Tabelle einfügen","Decrease Indent":"Einzug verkleinern","Increase Indent":"Einzug vergrößern","Select Special Character":"Sonderzeichen auswählen","Insert Special Character":"Sonderzeichen einfügen","Paint format":"Format kopieren","Change mode":"Änderungsmodus",Margins:"Ränder",top:"Oben",right:"Rechts",bottom:"Unten",left:"Links",Styles:"CSS Stil",Classes:"CSS Klassen",Align:"Ausrichtung",Right:"Rechts",Center:"Zentriert",Left:"Links","--Not Set--":"Keine",Src:"Pfad",Title:"Titel",Alternative:"Alternativer Text",Link:"Link","Open link in new tab":"Link in neuem Tab öffnen",Image:"Bild",file:"Datei","Image properties":"Bildeigenschaften",Cancel:"Abbrechen",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Ihr Text ähnelt HTML-Code. Als HTML beibehalten?","Paste as HTML":"Als HTML einfügen?",Keep:"Original speichern",Clean:"Säubern","Insert as Text":"Als Text einfügen","Word Paste Detected":"In Word formatierter Text erkannt","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder bereinigen?","Insert only Text":"Nur Text einfügen","File Browser":"Dateibrowser","Error on load list":"Fehler beim Laden der Liste","Error on load folders":"Fehler beim Laden der Ordner","Are you sure?":"Sind Sie sicher?","Enter Directory name":"Geben Sie den Verzeichnisnamen ein","Create directory":"Verzeichnis erstellen","type name":"Typname","Drop image":"Bild hier hinziehen","Drop file":"Datei löschen","or click":"oder hier klicken","Alternative text":"Alternativtext",Browse:"Auswählen",Upload:"Hochladen",Background:"Hintergrund",Text:"Text",Top:"Oben",Middle:"Mittig",Bottom:"Unten","Insert column before":"Spalte davor einfügen","Insert column after":"Spalte danach einfügen","Insert row above":"Zeile oberhalb einfügen","Insert row below":"Zeile unterhalb einfügen","Delete table":"Tabelle löschen","Delete row":"Zeile löschen","Delete column":"Spalte löschen","Empty cell":"Zelle leeren",Delete:"Löschen","Strike through":"Durchstreichen",Underline:"Unterstreichen",Break:"Pause","Search for":"Suche nach","Replace with":"Ersetzen durch",Replace:"Ersetzen",Edit:"Bearbeiten","Vertical align":"Vertikale Ausrichtung","Horizontal align":"Horizontale Ausrichtung",Filter:"Filter","Sort by changed":"Sortieren nach geändert","Sort by name":"Nach Name sortieren","Sort by size":"Nach Größe sortiert","Add folder":"Ordner hinzufügen","Split vertical":"Vertikal unterteilen","Split horizontal":"Horizontal unterteilen",Split:"Unterteilen",Merge:"Vereinen","Add column":"Spalte hinzufügen","Add row":"Zeile hinzufügen",Border:"Rand","Embed code":"Code einbetten",Update:"Aktualisieren",superscript:"Hochstellen",subscript:"Tiefstellen","Cut selection":"Auswahl ausschneiden",Paste:"Einfügen","Choose Content to Paste":"Wählen Sie den Inhalt zum Einfügen aus","Chars: %d":"Zeichen: %d","Words: %d":"Wörter: %d",All:"Alles markieren","Select %s":"Markieren: %s","Select all":"Alles markieren",source:"HTML",bold:"Fett gedruckt",italic:"Kursiv",brush:"Bürste",link:"Verknüpfung",undo:"Rückgängig machen",redo:"Wiederholen",table:"Tabelle",image:"Bild",eraser:"Radiergummi",paragraph:"Absatz",fontsize:"Schriftgröße",video:"Video",font:"Schriftart",about:"Über",print:"Drucken",underline:"Unterstreichen",strikethrough:"Durchstreichen",indent:"Einzug",outdent:"Herausstellen",fullsize:"Vollgröße",shrink:"Schrumpfen",hr:"die Linie",ul:"Liste von",ol:"Nummerierte Liste","Lower Alpha":"Standard, Alphabet (klein)","Upper Alpha":"Standard, Alphabet (gross)","Lower Roman":"Römisch (klein)","Upper Roman":"Römisch (gross)","Lower Greek":"Griechisch",cut:"Schneiden",selectall:"Wählen Sie Alle aus","Open link":"Link öffnen","Edit link":"Link bearbeiten","No follow":"Nofollow-Attribut",Unlink:"Link entfernen",Eye:"Ansehen",pencil:"Bearbeiten"," URL":"URL",Reset:"Wiederherstellen",Save:"Speichern","Save as ...":"Speichern als",Resize:"Größe ändern",Crop:"Größe anpassen",Width:"Breite",Height:"Höhe","Keep Aspect Ratio":"Seitenverhältnis beibehalten",Yes:"Ja",No:"Nein",Remove:"Entfernen",Select:"Markieren","You can only edit your own images. Download this image on the host?":"Sie können nur Ihre eigenen Bilder bearbeiten. Dieses Bild auf den Host herunterladen?","The image has been successfully uploaded to the host!":"Das Bild wurde erfolgreich auf den Server hochgeladen!",palette:"Palette","There are no files":"In diesem Verzeichnis befinden sich keine Dateien.",Rename:"Umbenennen","Enter new name":"Geben Sie einen neuen Namen ein",preview:"Vorschau",download:"Herunterladen","Paste from clipboard":"Aus Zwischenablage einfügen","Your browser doesn't support direct access to the clipboard.":"Ihr Browser unterstützt keinen direkten Zugriff auf die Zwischenablage.","Copy selection":"Auswahl kopieren",copy:"Kopieren","Border radius":"Radius für abgerundete Ecken","Show all":"Alle anzeigen",Apply:"Anwenden","Please fill out this field":"Bitte füllen Sie dieses Feld aus","Please enter a web address":"Bitte geben Sie eine Web-Adresse ein",Default:"Standard",Circle:"Kreis",Dot:"Punkte",Quadrate:"Quadrate",Find:"Suchen","Find Previous":"Suche vorherige","Find Next":"Weitersuchen","Insert className":"className (CSS) einfügen","Press Alt for custom resizing":"Drücken Sie Alt für benutzerdefinierte Größenanpassung","License: %s":"Lizenz: %s"},en:{"Type something":"Start writing...",pencil:"Edit",Quadrate:"Square"},es:{"Type something":"Escriba algo...",Advanced:"Avanzado","About Jodit":"Acerca de Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guía de usuario Jodit","contains detailed help for using":"contiene ayuda detallada para el uso.","For information about the license, please go to our website:":"Para información sobre la licencia, por favor visite nuestro sitio:","Buy full version":"Compre la versión completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos los derechos reservados.",Anchor:"Anclar","Open in new tab":"Abrir en nueva pestaña","Open in fullsize":"Abrir editor en pantalla completa","Clear Formatting":"Limpiar formato","Fill color or set the text color":"Color de relleno o de letra",Redo:"Rehacer",Undo:"Deshacer",Bold:"Negrita",Italic:"Cursiva","Insert Unordered List":"Insertar lista no ordenada","Insert Ordered List":"Insertar lista ordenada","Align Center":"Alinear Centrado","Align Justify":"Alinear Justificado","Align Left":"Alinear Izquierda","Align Right":"Alinear Derecha","Insert Horizontal Line":"Insertar línea horizontal","Insert Image":"Insertar imagen","Insert file":"Insertar archivo","Insert youtube/vimeo video":"Insertar video de Youtube/vimeo","Insert link":"Insertar vínculo","Font size":"Tamaño de letra","Font family":"Familia de letra","Insert format block":"Insertar bloque",Normal:"Normal","Heading 1":"Encabezado 1","Heading 2":"Encabezado 2","Heading 3":"Encabezado 3","Heading 4":"Encabezado 4",Quote:"Cita",Code:"Código",Insert:"Insertar","Insert table":"Insertar tabla","Decrease Indent":"Disminuir sangría","Increase Indent":"Aumentar sangría","Select Special Character":"Seleccionar caracter especial","Insert Special Character":"Insertar caracter especial","Paint format":"Copiar formato","Change mode":"Cambiar modo",Margins:"Márgenes",top:"arriba",right:"derecha",bottom:"abajo",left:"izquierda",Styles:"Estilos CSS",Classes:"Clases CSS",Align:"Alinear",Right:"Derecha",Center:"Centrado",Left:"Izquierda","--Not Set--":"--No Establecido--",Src:"Fuente",Title:"Título",Alternative:"Texto Alternativo",Filter:"Filtrar",Link:"Vínculo","Open link in new tab":"Abrir vínculo en nueva pestaña",Image:"Imagen",file:"Archivo","Image properties":"Propiedades de imagen",Cancel:"Cancelar",Ok:"Aceptar","Your code is similar to HTML. Keep as HTML?":"El código es similar a HTML. ¿Mantener como HTML?","Paste as HTML":"Pegar como HTML?",Keep:"Mantener",Clean:"Limpiar","Insert as Text":"Insertar como texto","Word Paste Detected":"Pegado desde Word detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"El contenido pegado proviene de un documento de Microsoft Word/Excel. ¿Desea mantener el formato o limpiarlo?","Insert only Text":"Insertar solo texto","File Browser":"Buscar archivo","Error on load list":"Error al cargar la lista","Error on load folders":"Error al cargar las carpetas","Are you sure?":"¿Está seguro?","Enter Directory name":"Entre nombre de carpeta","Create directory":"Crear carpeta","type name":"Entre el nombre","Drop image":"Soltar imagen","Drop file":"Soltar archivo","or click":"o click","Alternative text":"Texto alternativo",Browse:"Buscar",Upload:"Subir",Background:"Fondo",Text:"Texto",Top:"Arriba",Middle:"Centro",Bottom:"Abajo","Insert column before":"Insertar columna antes","Insert column after":"Interar columna después","Insert row above":"Insertar fila arriba","Insert row below":"Insertar fila debajo","Delete table":"Borrar tabla","Delete row":"Borrar fila","Delete column":"Borrar columna","Empty cell":"Vaciar celda",Delete:"Borrar","Strike through":"Tachado",Underline:"Subrayado",Break:"Pausa","Search for":"Buscar","Replace with":"Reemplazar con",Replace:"Reemplazar",Edit:"Editar","Vertical align":"Alineación vertical","Horizontal align":"Alineación horizontal","Sort by changed":"Ordenar por fecha modificación","Sort by name":"Ordenar por nombre","Sort by size":"Ordenar por tamaño","Add folder":"Agregar carpeta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mezclar","Add column":"Agregar columna","Add row":"Agregar fila",Border:"Borde","Embed code":"Incluir código",Update:"Actualizar",superscript:"superíndice",subscript:"subíndice","Cut selection":"Cortar selección",Paste:"Pegar","Choose Content to Paste":"Seleccionar contenido para pegar","Chars: %d":"Caracteres: %d","Words: %d":"Palabras: %d",All:"Todo","Select %s":"Seleccionar: %s","Select all":"Seleccionar todo",source:"HTML",bold:"negrita",italic:"cursiva",brush:"Brocha",link:"Vínculo",undo:"deshacer",redo:"rehacer",table:"Tabla",image:"Imagen",eraser:"Borrar",paragraph:"Párrafo",fontsize:"Tamaño de letra",video:"Video",font:"Letra",about:"Acerca de",print:"Imprimir",underline:"subrayar",strikethrough:"tachar",indent:"sangría",outdent:"quitar sangría",fullsize:"Tamaño completo",shrink:"encoger",hr:"línea horizontal",ul:"lista sin ordenar",ol:"lista ordenada",cut:"Cortar",selectall:"Seleccionar todo","Open link":"Abrir vínculo","Edit link":"Editar vínculo","No follow":"No seguir",Unlink:"Desvincular",Eye:"Ver",pencil:"Para editar"," URL":"URL",Reset:"Resetear",Save:"Guardar","Save as ...":"Guardar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Ancho",Height:"Alto","Keep Aspect Ratio":"Mantener relación de aspecto",Yes:"Si",No:"No",Remove:"Quitar",Select:"Seleccionar","You can only edit your own images. Download this image on the host?":"Solo puedes editar tus propias imágenes. ¿Descargar esta imagen en el servidor?","The image has been successfully uploaded to the host!":"¡La imagen se ha subido correctamente al servidor!",palette:"paleta","There are no files":"No hay archivos en este directorio.",Rename:"renombrar","Enter new name":"Ingresa un nuevo nombre",preview:"avance",download:"Descargar","Paste from clipboard":"Pegar desde el portapapeles","Your browser doesn't support direct access to the clipboard.":"Su navegador no soporta el acceso directo en el portapapeles.","Copy selection":"Selección de copia",copy:"copia","Border radius":"Radio frontera","Show all":"Mostrar todos los",Apply:"Aplicar","Please fill out this field":"Por favor, rellene este campo","Please enter a web address":"Por favor, introduzca una dirección web",Default:"Predeterminado",Circle:"Círculo",Dot:"Punto",Quadrate:"Cuadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Griego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Mayúscula","Upper Roman":"Romano Mayúscula",Find:"Encontrar","Find Previous":"Buscar Anterior","Find Next":"Buscar Siguiente","Insert className":"Insertar nombre de clase","Press Alt for custom resizing":"Presione Alt para cambiar el tamaño personalizado","License: %s":"Licencia: %s"},fi:{"Type something":"Kirjoita jotain...",Advanced:"Avanzado","About Jodit":"Tietoja Jodit:ista","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit käyttäjän ohje","contains detailed help for using":"sisältää tarkempaa tietoa käyttämiseen","For information about the license, please go to our website:":"Tietoa lisensoinnista, vieraile verkkosivuillamme:","Buy full version":"Osta täysi versio","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Kaikki oikeudet pidätetään.",Anchor:"Ankkuri","Open in new tab":"Avaa uudessa välilehdessä","Open in fullsize":"Avaa täysikokoisena","Clear Formatting":"Poista muotoilu","Fill color or set the text color":"Täytä värillä tai aseta tekstin väri",Redo:"Tee uudelleen",Undo:"Peruuta",Bold:"Lihavoitu",Italic:"Kursiivi","Insert Unordered List":"Lisää järjestämätön lista","Insert Ordered List":"Lisää järjestetty lista","Align Center":"Asemoi keskelle","Align Justify":"Asemoi tasavälein","Align Left":"Asemoi vasemmalle","Align Right":"Asemoi oikealle","Insert Horizontal Line":"Lisää vaakasuuntainen viiva","Insert Image":"Lisää kuva","Insert file":"Lisää tiedosto","Insert youtube/vimeo video":"Lisää Youtube-/vimeo- video","Insert link":"Lisää linkki","Font size":"Kirjasimen koko","Font family":"Kirjasimen nimi","Insert format block":"Lisää muotoilualue",Normal:"Normaali","Heading 1":"Otsikko 1","Heading 2":"Otsikko 2","Heading 3":"Otsikko 3","Heading 4":"Otsikko 4",Quote:"Lainaus",Code:"Koodi",Insert:"Lisää","Insert table":"Lisää taulukko","Decrease Indent":"Pienennä sisennystä","Increase Indent":"Lisää sisennystä","Select Special Character":"Valitse erikoismerkki","Insert Special Character":"Lisää erikoismerkki","Paint format":"Maalaa muotoilu","Change mode":"Vaihda tilaa",Margins:"Marginaalit",top:"ylös",right:"oikealle",bottom:"alas",left:"vasemmalle",Styles:"CSS-tyylit",Classes:"CSS-luokat",Align:"Asemointi",Right:"Oikea",Center:"Keskellä",Left:"Vasen","--Not Set--":"--Ei asetettu--",Src:"Fuente",Title:"Otsikko",Alternative:"Vaihtoehtoinen teksti",Filter:"Suodatin",Link:"Linkki","Open link in new tab":"Avaa uudessa välilehdessä",Image:"Kuva",file:"Tiedosto","Image properties":"Kuvan ominaisuudet",Cancel:"Peruuta",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Koodi on HTML:n tapaista. Säilytetäänkö HTML?","Paste as HTML":"Liitä HTML:nä?",Keep:"Säilytä",Clean:"Tyhjennä","Insert as Text":"Lisää tekstinä","Word Paste Detected":"Word liittäminen havaittu","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Liitetty sisältö tulee Microsoft Word-/Excel- tiedostosta. Haluatko säilyttää muotoilun vai poistaa sen?","Insert only Text":"Lisää vain teksti","File Browser":"Tiedostoselain","Error on load list":"Virhe listan latauksessa","Error on load folders":"Virhe kansioiden latauksessa","Are you sure?":"Oletko varma?","Enter Directory name":"Syötä hakemiston nimi","Create directory":"Luo hakemisto","type name":"Syötä nimi","Drop image":"Pudota kuva","Drop file":"Pudota tiedosto","or click":"tai klikkaa","Alternative text":"Vaihtoehtoinen teksti",Browse:"Selaa",Upload:"Lataa",Background:"Tausta",Text:"Teksti",Top:"Ylös",Middle:"Keskelle",Bottom:"Alas","Insert column before":"Lisää sarake ennen","Insert column after":"Lisää sarake jälkeen","Insert row above":"Lisää rivi ylös","Insert row below":"Lisää rivi alle","Delete table":"Poista taulukko","Delete row":"Poista rivi","Delete column":"Poista sarake","Empty cell":"Tyhjennä solu",Delete:"Poista","Strike through":"Yliviivaus",Underline:"Alleviivaus",Break:"Vaihto","Search for":"Etsi arvoa","Replace with":"Korvaa arvolla",Replace:"Korvaa",Edit:"Muokkaa","Vertical align":"Pystyasemointi","Horizontal align":"Vaaka-asemointi","Sort by changed":"Järjestä muuttuneilla","Sort by name":"Järjestä nimellä","Sort by size":"Järjestä koolla","Add folder":"Lisää kansio",Split:"Jaa","Split vertical":"Jaa pystysuuntaisesti","Split horizontal":"Jaa vaakasuuntaisesti",Merge:"Yhdistä","Add column":"Lisää sarake","Add row":"Lisää rivi",Border:"Reuna","Embed code":"Sisällytä koodi",Update:"Päivitä",superscript:"yläviite",subscript:"alaviite","Cut selection":"Leikkaa valinta",Paste:"Liitä","Choose Content to Paste":"Valitse liitettävä sisältö","Chars: %d":"Merkit: %d","Words: %d":"Sanat: %d",All:"Kaikki","Select %s":"Valitse: %s","Select all":"Valitse kaikki",source:"HTML",bold:"lihavoitu",italic:"kursiivi",brush:"sivellin",link:"linkki",undo:"peruuta",redo:"tee uudelleen",table:"taulukko",image:"kuva",eraser:"pyyhekumi",paragraph:"kappale",fontsize:"tekstin koko",video:"video",font:"kirjasin",about:"tietoja",print:"tulosta",underline:"alleviivaa",strikethrough:"yliviivaa",indent:"sisennä",outdent:"pienennä sisennystä",fullsize:"täysikokoinen",shrink:"pienennä",hr:"vaakaviiva",ul:"järjestetty lista",ol:"järjestämätön lista",cut:"leikkaa",selectall:"valitse kaikki","Open link":"Avaa linkki","Edit link":"Muokkaa linkkiä","No follow":"Älä seuraa",Unlink:"Pura linkki",Eye:"Ver",pencil:"Muokkaa"," URL":"URL",Reset:"Nollaa",Save:"Tallenna","Save as ...":"Tallenna nimellä ...",Resize:"Muuta kokoa",Crop:"Rajaa",Width:"Leveys",Height:"Korkeus","Keep Aspect Ratio":"Säilytä kuvasuhde",Yes:"Kyllä",No:"Ei",Remove:"Poista",Select:"Valitse","You can only edit your own images. Download this image on the host?":"Voit muokata vain omia kuvia. Lataa tämä kuva palvelimelle?","The image has been successfully uploaded to the host!":"Kuva on onnistuneesti ladattu palvelimelle!",palette:"paletti","There are no files":"Tiedostoja ei ole",Rename:"Nimeä uudelleen","Enter new name":"Syötä uusi nimi",preview:"esikatselu",download:"Lataa","Paste from clipboard":"Liitä leikepöydältä","Your browser doesn't support direct access to the clipboard.":"Selaimesi ei tue suoraa pääsyä leikepöydälle.","Copy selection":"Kopioi valinta",copy:"kopioi","Border radius":"Reunan pyöristys","Show all":"Näytä kaikki",Apply:"Käytä","Please fill out this field":"Täytä tämä kenttä","Please enter a web address":"Annan web-osoite",Default:"Oletus",Circle:"Ympyrä",Dot:"Piste",Quadrate:"Neliö","Lower Alpha":"Pieni aakkosellinen","Lower Greek":"Pieni kreikkalainen","Lower Roman":"Pieni roomalainen","Upper Alpha":"Suuri aakkosellinen","Upper Roman":"Suuri roomalainen",Find:"Hae","Find Previous":"Hae edellinen","Find Next":"Hae seuraava","Insert className":"Lisää luokkanimi","Press Alt for custom resizing":"Paina Alt muokattuun koon muuttamiseen","Class name":"Luokan nimi","License: %s":"Lisenssi: %s"},fr:{"Type something":"Ecrivez ici","About Jodit":"A propos de Jodit","Jodit Editor":"Editeur Jodit","Jodit User's Guide":"Guide de l'utilisateur","contains detailed help for using":"Aide détaillée à l'utilisation","For information about the license, please go to our website:":"Consulter la licence sur notre site web:","Buy full version":"Acheter la version complète","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tous droits réservés.",Anchor:"Ancre","Open in new tab":"Ouvrir dans un nouvel onglet","Open in fullsize":"Ouvrir l'éditeur en pleine page","Clear Formatting":"Supprimer le formattage","Fill color or set the text color":"Modifier la couleur du fond ou du texte",Redo:"Refaire",Undo:"Défaire",Bold:"Gras",Italic:"Italique","Insert Unordered List":"Liste non ordonnée","Insert Ordered List":"Liste ordonnée","Align Center":"Centrer","Align Justify":"Justifier","Align Left":"Aligner à gauche ","Align Right":"Aligner à droite","Insert Horizontal Line":"Insérer une ligne horizontale","Insert Image":"Insérer une image","Insert file":"Insérer un fichier","Insert youtube/vimeo video":"Insérer une vidéo","Insert link":"Insérer un lien","Font size":"Taille des caractères","Font family":"Famille des caractères","Insert format block":"Bloc formatté",Normal:"Normal","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4",Quote:"Citation",Code:"Code",Insert:"Insérer","Insert table":"Insérer un tableau","Decrease Indent":"Diminuer le retrait","Increase Indent":"Retrait plus","Select Special Character":"Sélectionnez un caractère spécial","Insert Special Character":"Insérer un caractère spécial","Paint format":"Cloner le format","Change mode":"Mode wysiwyg <-> code html",Margins:"Marges",top:"haut",right:"droite",bottom:"Bas",left:"gauche",Styles:"Styles",Classes:"Classes",Align:"Alignement",Right:"Droite",Center:"Centre",Left:"Gauche","--Not Set--":"--Non disponible--",Src:"Source",Title:"Titre",Alternative:"Alternative",Filter:"Filtre",Link:"Lien","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Image:"Image",file:"fichier",Advanced:"Avancé","Image properties":"Propriétés de l'image",Cancel:"Annuler",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Votre texte que vous essayez de coller est similaire au HTML. Collez-le en HTML?","Paste as HTML":"Coller en HTML?",Keep:"Sauvegarder l'original",Clean:"Nettoyer","Insert as Text":"Coller en tant que texte","Word Paste Detected":"C'est peut-être un fragment de Word ou Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Le contenu que vous insérez provient d'un document Microsoft Word / Excel. Voulez-vous enregistrer le format ou l'effacer?","Insert only Text":"Coller le texte seulement","File Browser":"Explorateur de fichiers","Error on load list":"Erreur de liste de chargement","Error on load folders":"Erreur de dossier de chargement","Are you sure?":"Etes-vous sûrs ?","Enter Directory name":"Entrer le nom de dossier","Create directory":"Créer un dossier","type name":"type de fichier","Drop image":"Coller une image","Drop file":"Déposer un fichier","or click":"ou cliquer","Alternative text":"Texte de remplacemement",Browse:"Chercher",Upload:"Charger",Background:"Arrière-plan",Border:"Bordure",Text:"Texte",Top:"Haut",Middle:"Milieu",Bottom:"Bas","Insert column before":"Insérer une colonne avant","Insert column after":"Insérer une colonne après","Insert row above":"Insérer une ligne au dessus","Insert row below":"Insérer une ligne en dessous","Delete table":"Supprimer le tableau","Delete row":"Supprimer la ligne","Delete column":"Supprimer la colonne","Empty cell":"Vider la cellule","Chars: %d":"Symboles: %d","Words: %d":"Mots: %d",Split:"Split","Split vertical":"Split vertical","Split horizontal":"Split horizontal","Strike through":"Barrer",Underline:"Souligner",superscript:"exposant",subscript:"indice","Cut selection":"Couper la sélection","Select all":"Tout sélectionner",Break:"Pause","Search for":"Rechercher","Replace with":"Remplacer par",Replace:"Remplacer",Paste:"Coller","Choose Content to Paste":"Choisissez le contenu à coller",source:"la source",bold:"gras",italic:"italique",brush:"pinceau",link:"lien",undo:"annuler",redo:"refaire",table:"tableau",image:"image",eraser:"gomme",paragraph:"clause",fontsize:"taille de police",video:"Video",font:"police",about:"à propos de l'éditeur",print:"impression",underline:"souligné",strikethrough:"barré",indent:"indentation",outdent:"retrait",fullsize:"taille réelle",shrink:"taille conventionnelle",hr:"la ligne",ul:"Liste",ol:"Liste numérotée",cut:"Couper",selectall:"Sélectionner tout","Open link":"Ouvrir le lien","Edit link":"Modifier le lien","No follow":"Attribut Nofollow",Unlink:"Supprimer le lien",Eye:"Voir",pencil:"Pour éditer"," URL":"URL",Reset:"Restaurer",Save:"Sauvegarder","Save as ...":"Enregistrer sous",Resize:"Changer la taille",Crop:"Taille de garniture",Width:"Largeur",Height:"Hauteur","Keep Aspect Ratio":"Garder les proportions",Yes:"Oui",No:"Non",Remove:"Supprimer",Select:"Mettre en évidence","Select %s":"Mettre en évidence: %s",Update:"Mettre à jour","Vertical align":"Alignement vertical",Merge:"aller","Add column":"Ajouter une colonne","Add row":"Ajouter une rangée",Delete:"Effacer","Horizontal align":"Alignement horizontal","Sort by changed":"Trier par modification","Sort by name":"Trier par nom","Sort by size":"Trier par taille","Add folder":"Créer le dossier","You can only edit your own images. Download this image on the host?":"Vous ne pouvez éditer que vos propres images. Téléchargez cette image sur l'hôte?","The image has been successfully uploaded to the host!":"L'image a été téléchargée avec succès sur le serveur!",palette:"Palette","There are no files":"Il n'y a aucun fichier dans ce répertoire.",Rename:"renommer","Enter new name":"Entrez un nouveau nom",preview:"Aperçu",download:"Télécharger","Paste from clipboard":"Coller à partir du presse-papiers","Your browser doesn't support direct access to the clipboard.":"Votre navigateur ne prend pas en charge l'accès direct au presse-papiers.","Copy selection":"Copier la sélection",copy:"copie","Border radius":"Rayon des bordures","Show all":"Afficher tous",Apply:"Appliquer","Please fill out this field":"Veuillez remplir ce champ","Please enter a web address":"Veuillez entrer une adresse web",Default:"Par défaut",Circle:"Cercle",Dot:"Point",Quadrate:"Quadratique",Find:"Trouver","Find Previous":"Précédent","Find Next":"Suivant","Insert className":"Insérer un nom de classe","Press Alt for custom resizing":"Appuyez sur Alt pour un redimensionnement personnalisé","Embed code":"Code d'intégration",Edit:"Modifier",All:"Tout sélectionner","License: %s":"Licence: %s"},he:{"Type something":"הקלד משהו...",Advanced:"מתקדם","About Jodit":"About Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit User's Guide","contains detailed help for using":"contains detailed help for using.","For information about the license, please go to our website:":"For information about the license, please go to our website:","Buy full version":"Buy full version","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"מקום עיגון","Open in new tab":"פתח בכרטיסיה חדשה","Open in fullsize":"פתח את העורך בחלון חדש","Clear Formatting":"נקה עיצוב","Fill color or set the text color":"שנה צבע טקסט או רקע",Redo:"בצע שוב",Undo:"בטל",Bold:"מודגש",Italic:"נטוי","Insert Unordered List":"הכנס רשימת תבליטים","Insert Ordered List":"הכנס רשימה ממוספרת","Align Center":"מרכז","Align Justify":"ישר ","Align Left":"ישר לשמאל","Align Right":"ישר לימין","Insert Horizontal Line":"הכנס קו אופקי","Insert Image":"הכנס תמונה","Insert file":"הכנס קובץ","Insert youtube/vimeo video":"הכנס סרטון וידאו מYouTube/Vimeo","Insert link":"הכנס קישור","Font size":"גודל גופן","Font family":"גופן","Insert format block":"מעוצב מראש",Normal:"רגיל","Heading 1":"כותרת 1","Heading 2":"כותרת 2","Heading 3":"כותרת 3","Heading 4":"כותרת 4",Quote:"ציטוט",Code:"קוד",Insert:"הכנס","Insert table":"הכנס טבלה","Decrease Indent":"הקטן כניסה","Increase Indent":"הגדל כניסה","Select Special Character":"בחר תו מיוחד","Insert Special Character":"הכנס תו מיוחד","Paint format":"העתק עיצוב","Change mode":"החלף מצב",Margins:"ריווח",top:"עליון",right:"ימין",bottom:"תחתון",left:"שמאל",Styles:"עיצוב CSS",Classes:"מחלקת CSS",Align:"יישור",Right:"ימין",Center:"מרכז",Left:"שמאל","--Not Set--":"--לא נקבע--",Src:"מקור",Title:"כותרת",Alternative:"כיתוב חלופי",Link:"קישור","Open link in new tab":"פתח בכרטיסיה חדשה",Image:"תמונה",file:"קובץ","Image properties":"מאפייני תמונה",Cancel:"ביטול",Ok:"אישור","Your code is similar to HTML. Keep as HTML?":"הקוד דומה לHTML, האם להשאיר כHTML","Paste as HTML":"הדבק כHTML",Keep:"השאר",Clean:"נקה","Insert as Text":"הכנס כטקסט","Word Paste Detected":'זוהתה הדבקה מ"וורד"',"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"התוכן המודבק מגיע ממסמך וורד/אקסל. האם ברצונך להשאיר את העיצוב או לנקותו","Insert only Text":"הכנס טקסט בלבד","File Browser":"סייר הקבצים","Error on load list":"שגיאה בזמן טעינת רשימה","Error on load folders":"שגיאה בזמן טעינת תקיות","Are you sure?":"האם אתה בטוח?","Enter Directory name":"הכנס שם תקיה","Create directory":"צור תקיה","type name":"סוג הקובץ","Drop image":"הסר תמונה","Drop file":"הסר קובץ","or click":"או לחץ","Alternative text":"כיתוב חלופי",Browse:"סייר",Upload:"העלה",Background:"רקע",Text:"טקסט",Top:"עליון",Middle:"מרכז",Bottom:"תחתון","Insert column before":"הכנס עמודה לפני","Insert column after":"הכנס עמודה אחרי","Insert row above":"הכנס שורה מעל","Insert row below":"הכנס שורה מתחת","Delete table":"מחק טבלה","Delete row":"מחק שורה","Delete column":"מחק עמודה","Empty cell":"רוקן תא",Delete:"מחק","Strike through":"קו חוצה",Underline:"קו תחתון",Break:"שבירת שורה","Search for":"חפש","Replace with":"החלף ב",Replace:"להחליף",Edit:"ערוך","Vertical align":"יישור אנכי","Horizontal align":"יישור אופקי",Filter:"סנן","Sort by changed":"מין לפי שינוי","Sort by name":"מיין לפי שם","Sort by size":"מיין לפי גודל","Add folder":"הוסף תקייה",Split:"פיצול","Split vertical":"פיצול אנכי","Split horizontal":"פיצול אופקי",Merge:"מזג","Add column":"הוסף עמודה","Add row":"הוסף שורה",Border:"מסגרת","Embed code":"הוסף קוד",Update:"עדכן",superscript:"superscript",subscript:"subscript","Cut selection":"גזור בחירה",Paste:"הדבק","Choose Content to Paste":"בחר תוכן להדבקה","Chars: %d":"תווים: %d","Words: %d":"מילים: %d",All:"הכל","Select %s":"נבחר: %s","Select all":"בחר הכל",source:"HTML",bold:"מודגש",italic:"נטוי",brush:"מברשת",link:"קישור",undo:"בטל",redo:"בצע שוב",table:"טבלה",image:"תמונה",eraser:"מחק",paragraph:"פסקה",fontsize:"גודל גופן",video:"וידאו",font:"גופן",about:"עלינו",print:"הדפס",underline:"קו תחתון",strikethrough:"קו חוצה",indent:"הגדל כניסה",outdent:"הקטן כניסה",fullsize:"גודל מלא",shrink:"כווץ",hr:"קו אופקי",ul:"רשימת תבליטים",ol:"רשימה ממוספרת",cut:"חתוך",selectall:"בחר הכל","Open link":"פתח קישור","Edit link":"ערוך קישור","No follow":"ללא מעקב",Unlink:"בטל קישור",Eye:"הצג",pencil:"כדי לערוך"," URL":"כתובת",Reset:"אפס",Save:"שמור","Save as ...":"שמור בשם...",Resize:"שנה גודל",Crop:"חתוך",Width:"רוחב",Height:"גובה","Keep Aspect Ratio":"שמור יחס",Yes:"כן",No:"לא",Remove:"הסר",Select:"בחר","You can only edit your own images. Download this image on the host?":"רק קבצים המשוייכים שלך ניתנים לעריכה. האם להוריד את הקובץ?","The image has been successfully uploaded to the host!":"התמונה עלתה בהצלחה!",palette:"לוח","There are no files":"אין קבצים בספריה זו.",Rename:"הונגרית","Enter new name":"הזן שם חדש",preview:"תצוגה מקדימה",download:"הורד","Paste from clipboard":"להדביק מהלוח","Your browser doesn't support direct access to the clipboard.":"הדפדפן שלך לא תומך גישה ישירה ללוח.","Copy selection":"העתק בחירה",copy:"העתק","Border radius":"רדיוס הגבול","Show all":"הצג את כל",Apply:"החל","Please fill out this field":"נא למלא שדה זה","Please enter a web address":"אנא הזן כתובת אינטרנט",Default:"ברירת המחדל",Circle:"מעגל",Dot:"נקודה",Quadrate:"הריבוע הזה",Find:"למצוא","Find Previous":"מצא את הקודם","Find Next":"חפש את הבא","Insert className":"הכנס את שם הכיתה","Press Alt for custom resizing":"לחץ על אלט לשינוי גודל מותאם אישית","License: %s":"רישיון: %s"},hu:{"Type something":"Írjon be valamit",Advanced:"Haladó","About Jodit":"Joditról","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Ingyenes változat","Jodit User's Guide":"Jodit útmutató","contains detailed help for using":"további segítséget tartalmaz","For information about the license, please go to our website:":"További licence információkért látogassa meg a weboldalunkat:","Buy full version":"Teljes verzió megvásárlása","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Minden jog fenntartva.",Anchor:"Horgony","Open in new tab":"Megnyitás új lapon","Open in fullsize":"Megnyitás teljes méretben","Clear Formatting":"Formázás törlése","Fill color or set the text color":"Háttér/szöveg szín",Redo:"Újra",Undo:"Visszavon",Bold:"Félkövér",Italic:"Dőlt","Insert Unordered List":"Pontozott lista","Insert Ordered List":"Számozott lista","Align Center":"Középre zárt","Align Justify":"Sorkizárt","Align Left":"Balra zárt","Align Right":"Jobbra zárt","Insert Horizontal Line":"Vízszintes vonal beszúrása","Insert Image":"Kép beszúrás","Insert file":"Fájl beszúrás","Insert youtube/vimeo video":"Youtube videó beszúrása","Insert link":"Link beszúrás","Font size":"Betűméret","Font family":"Betűtípus","Insert format block":"Formázott blokk beszúrása",Normal:"Normál","Heading 1":"Fejléc 1","Heading 2":"Fejléc 2","Heading 3":"Fejléc 3","Heading 4":"Fejléc 4",Quote:"Idézet",Code:"Kód",Insert:"Beszúr","Insert table":"Táblázat beszúrása","Decrease Indent":"Behúzás csökkentése","Increase Indent":"Behúzás növelése","Select Special Character":"Speciális karakter kiválasztása","Insert Special Character":"Speciális karakter beszúrása","Paint format":"Kép formázása","Change mode":"Nézet váltása",Print:"Nyomtatás",Margins:"Szegélyek",top:"felső",right:"jobb",bottom:"alsó",left:"bal",Styles:"CSS stílusok",Classes:"CSS osztályok",Align:"Igazítás",Right:"Jobbra",Center:"Középre",Left:"Balra","--Not Set--":"Nincs",Src:"Forrás",Title:"Cím",Alternative:"Helyettesítő szöveg",Link:"Link","Open link in new tab":"Link megnyitása új lapon",Image:"Kép",file:"Fájl","Image properties":"Kép tulajdonságai",Cancel:"Mégsem",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"A beillesztett szöveg HTML-nek tűnik. Megtartsuk HTML-ként?","Paste as HTML":"Beszúrás HTML-ként",Keep:"Megtartás",Clean:"Elvetés","Insert as Text":"Beszúrás szövegként","Word Paste Detected":"Word-ből másolt szöveg","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"A beillesztett tartalom Microsoft Word/Excel dokumentumból származik. Meg szeretné tartani a formátumát?","Insert only Text":"Csak szöveg beillesztése","File Browser":"Fájl tallózó","Error on load list":"Hiba a lista betöltése közben","Error on load folders":"Hiba a mappák betöltése közben","Are you sure?":"Biztosan ezt szeretné?","Enter Directory name":"Írjon be egy mappanevet","Create directory":"Mappa létrehozása","type name":"írjon be bevet","Drop image":"Húzza ide a képet","Drop file":"Húzza ide a fájlt","or click":"vagy kattintson","Alternative text":"Helyettesítő szöveg",Browse:"Tallóz",Upload:"Feltölt",Background:"Háttér",Text:"Szöveg",Top:"Fent",Middle:"Középen",Bottom:"Lent","Insert column before":"Oszlop beszúrás elé","Insert column after":"Oszlop beszúrás utána","Insert row above":"Sor beszúrás fölé","Insert row below":"Sor beszúrás alá","Delete table":"Táblázat törlése","Delete row":"Sor törlése","Delete column":"Oszlop törlése","Empty cell":"Cella tartalmának törlése",Delete:"Törlés","Strike through":"Áthúzott",Underline:"Aláhúzott",Break:"Szünet","Search for":"Keresés","Replace with":"Csere erre",Replace:"Cserélje ki",Edit:"Szerkeszt","Vertical align":"Függőleges igazítás","Horizontal align":"Vízszintes igazítás",Filter:"Szűrő","Sort by changed":"Rendezés módosítás szerint","Sort by name":"Rendezés név szerint","Sort by size":"Rendezés méret szerint","Add folder":"Mappa hozzáadás","Split vertical":"Függőleges felosztás","Split horizontal":"Vízszintes felosztás",Merge:"Összevonás","Add column":"Oszlop hozzáadás","Add row":"Sor hozzáadás",Border:"Szegély","Embed code":"Beágyazott kód",Update:"Frissít",superscript:"Felső index",subscript:"Alsó index","Cut selection":"Kivágás",Paste:"Beillesztés","Choose Content to Paste":"Válasszon tartalmat a beillesztéshez",Split:"Felosztás","Chars: %d":"Karakterek száma: %d","Words: %d":"Szavak száma: %d",All:"Összes","Select %s":"Kijelöl: %s","Select all":"Összes kijelölése",source:"HTML",bold:"Félkövér",italic:"Dőlt",brush:"Ecset",link:"Link",undo:"Visszavon",redo:"Újra",table:"Táblázat",image:"Kép",eraser:"Törlés",paragraph:"Paragráfus",fontsize:"Betűméret",video:"Videó",font:"Betű",about:"Rólunk",print:"Nyomtat",underline:"Aláhúzott",strikethrough:"Áthúzott",indent:"Behúzás",outdent:"Aussenseiter",fullsize:"Teljes méret",shrink:"Összenyom",hr:"Egyenes vonal",ul:"Lista",ol:"Számozott lista",cut:"Kivág",selectall:"Összes kijelölése","Open link":"Link megnyitása","Edit link":"Link szerkesztése","No follow":"Nincs követés",Unlink:"Link leválasztása",Eye:"felülvizsgálat",pencil:"Szerkesztés"," URL":"URL",Reset:"Visszaállít",Save:"Mentés","Save as ...":"Mentés másként...",Resize:"Átméretezés",Crop:"Kivág",Width:"Szélesség",Height:"Magasság","Keep Aspect Ratio":"Képarány megtartása",Yes:"Igen",No:"Nem",Remove:"Eltávolít",Select:"Kijelöl","You can only edit your own images. Download this image on the host?":"Csak a saját képeit tudja szerkeszteni. Letölti ezt a képet?","The image has been successfully uploaded to the host!":"Kép sikeresen feltöltve!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"átnevezés","Enter new name":"Adja meg az új nevet",preview:"előnézet",download:"Letöltés","Paste from clipboard":"Illessze be a vágólap","Your browser doesn't support direct access to the clipboard.":"A böngésző nem támogatja a közvetlen hozzáférést biztosít a vágólapra.","Copy selection":"Másolás kiválasztása",copy:"másolás","Border radius":"Határ sugár","Show all":"Összes",Apply:"Alkalmazni","Please fill out this field":"Kérjük, töltse ki ezt a mezőt,","Please enter a web address":"Kérjük, írja be a webcímet",Default:"Alapértelmezett",Circle:"Kör",Dot:"Pont",Quadrate:"Quadrate",Find:"Találni","Find Previous":"Megtalálja Előző","Find Next":"Következő Keresése","Insert className":"Helyezze be az osztály nevét","Press Alt for custom resizing":"Nyomja meg az Alt egyéni átméretezés","License: %s":"Licenc: %s"},id:{"Type something":"Ketik sesuatu","About Jodit":"Tentang Jodit","Jodit Editor":"Editor Jodit","Free Non-commercial Version":"Versi Bebas Non-komersil","Jodit User's Guide":"Panduan Pengguna Jodit","contains detailed help for using":"mencakup detail bantuan penggunaan","For information about the license, please go to our website:":"Untuk informasi tentang lisensi, silakan kunjungi website:","Buy full version":"Beli versi lengkap","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Hak Cipta © XDSoft.net - Chupurnov Valeriy. Hak cipta dilindungi undang-undang.",Anchor:"Tautan","Open in new tab":"Buka di tab baru","Open in fullsize":"Buka editor dalam ukuran penuh","Clear Formatting":"Hapus Pemformatan","Fill color or set the text color":"Isi warna atau atur warna teks",Redo:"Ulangi",Undo:"Batalkan",Bold:"Tebal",Italic:"Miring","Insert Unordered List":"Sisipkan Daftar Tidak Berurut","Insert Ordered List":"Sisipkan Daftar Berurut","Align Center":"Tengah","Align Justify":"Penuh","Align Left":"Kiri","Align Right":"Kanan","Insert Horizontal Line":"Sisipkan Garis Horizontal","Insert Image":"Sisipkan Gambar","Insert file":"Sisipkan Berkas","Insert youtube/vimeo video":"Sisipkan video youtube/vimeo","Insert link":"Sisipkan tautan","Font size":"Ukuran font","Font family":"Keluarga font","Insert format block":"Sisipkan blok format",Normal:"Normal","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4",Quote:"Kutip",Code:"Kode",Insert:"Sisipkan","Insert table":"Sisipkan tabel","Decrease Indent":"Kurangi Indentasi","Increase Indent":"Tambah Indentasi","Select Special Character":"Pilih Karakter Spesial","Insert Special Character":"Sisipkan Karakter Spesial","Paint format":"Formar warna","Change mode":"Ubah mode",Margins:"Batas",top:"atas",right:"kanan",bottom:"bawah",left:"kiri",Styles:"Gaya",Classes:"Class",Align:"Rata",Right:"Kanan",Center:"Tengah",Left:"Kiri","--Not Set--":"--Tidak diset--",Src:"Src",Title:"Judul",Alternative:"Teks alternatif",Link:"Tautan","Open link in new tab":"Buka tautan di tab baru",Image:"Gambar",file:"berkas",Advanced:"Lanjutan","Image properties":"Properti gambar",Cancel:"Batal",Ok:"Ya","Your code is similar to HTML. Keep as HTML?":"Kode Anda cenderung ke HTML. Biarkan sebagai HTML?","Paste as HTML":"Paste sebagai HTML",Keep:"Jaga",Clean:"Bersih","Insert as Text":"Sisipkan sebagai teks","Insert only Text":"Sisipkan hanya teks","Word Paste Detected":"Terdeteksi paste dari Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Konten dipaste dari dokumen Microsoft Word/Excel. Apakah Anda ingin tetap menjaga format atau membersihkannya?","File Browser":"Penjelajah Berkas","Error on load list":"Error ketika memuat list","Error on load folders":"Error ketika memuat folder","Are you sure?":"Apakah Anda yakin?","Enter Directory name":"Masukkan nama Direktori","Create directory":"Buat direktori","type name":"ketik nama","Drop image":"Letakkan gambar","Drop file":"Letakkan berkas","or click":"atau klik","Alternative text":"Teks alternatif",Browse:"Jelajahi",Upload:"Unggah",Background:"Latar Belakang",Text:"Teks",Top:"Atas",Middle:"Tengah",Bottom:"Bawah","Insert column before":"Sisipkan kolom sebelumnya","Insert column after":"Sisipkan kolom setelahnya","Insert row above":"Sisipkan baris di atasnya","Insert row below":"Sisipkan baris di bawahnya","Delete table":"Hapus tabel","Delete row":"Hapus baris","Delete column":"Hapus kolom","Empty cell":"Kosongkan cell",source:"sumber",bold:"tebal",italic:"miring",brush:"sikat",link:"tautan",undo:"batalkan",redo:"ulangi",table:"tabel",image:"gambar",eraser:"penghapus",paragraph:"paragraf",fontsize:"ukuran font",video:"video",font:"font",about:"tentang",print:"cetak",underline:"garis bawah",strikethrough:"coret",indent:"menjorok ke dalam",outdent:"menjorok ke luar",fullsize:"ukuran penuh",shrink:"menyusut",hr:"hr",ul:"ul",ol:"ol",cut:"potong",selectall:"Pilih semua","Embed code":"Kode embed","Open link":"Buka tautan","Edit link":"Edit tautan","No follow":"No follow",Unlink:"Hapus tautan",Eye:"Mata",pencil:"pensil",Update:"Perbarui"," URL":"URL",Edit:"Edit","Horizontal align":"Perataan horizontal",Filter:"Filter","Sort by changed":"Urutkan berdasarkan perubahan","Sort by name":"Urutkan berdasarkan nama","Sort by size":"Urutkan berdasarkan ukuran","Add folder":"Tambah folder",Reset:"Reset",Save:"Simpan","Save as ...":"Simpan sebagai...",Resize:"Ubah ukuran",Crop:"Crop",Width:"Lebar",Height:"Tinggi","Keep Aspect Ratio":"Jaga aspek rasio",Yes:"Ya",No:"Tidak",Remove:"Copot",Select:"Pilih","Chars: %d":"Karakter: %d","Words: %d":"Kata: %d",All:"Semua","Select %s":"Pilih %s","Select all":"Pilih semua","Vertical align":"Rata vertikal",Split:"Bagi","Split vertical":"Bagi secara vertikal","Split horizontal":"Bagi secara horizontal",Merge:"Gabungkan","Add column":"Tambah kolom","Add row":"tambah baris",Delete:"Hapus",Border:"Bingkai","License: %s":"Lisensi: %s","Strike through":"Coret",Underline:"Garis Bawah",superscript:"Superskrip",subscript:"Subskrip","Cut selection":"Potong pilihan",Break:"Berhenti","Search for":"Mencari","Replace with":"Ganti dengan",Replace:"Mengganti",Paste:"Paste","Choose Content to Paste":"Pilih konten untuk dipaste","You can only edit your own images. Download this image on the host?":"Anda hanya dapat mengedit gambar Anda sendiri. Unduh gambar ini di host?","The image has been successfully uploaded to the host!":"Gambar telah sukses diunggah ke host!",palette:"palet","There are no files":"Tidak ada berkas",Rename:"ganti nama","Enter new name":"Masukkan nama baru",preview:"pratinjau",download:"Unduh","Paste from clipboard":"Paste dari clipboard","Your browser doesn't support direct access to the clipboard.":"Browser anda tidak mendukung akses langsung ke clipboard.","Copy selection":"Copy seleksi",copy:"copy","Border radius":"Border radius","Show all":"Tampilkan semua",Apply:"Menerapkan","Please fill out this field":"Silahkan mengisi kolom ini","Please enter a web address":"Silahkan masukkan alamat web",Default:"Default",Circle:"Lingkaran",Dot:"Dot",Quadrate:"Kuadrat",Find:"Menemukan","Find Previous":"Menemukan Sebelumnya","Find Next":"Menemukan Berikutnya","Insert className":"Masukkan nama kelas","Press Alt for custom resizing":"Tekan Alt untuk mengubah ukuran kustom"},it:{"Type something":"Scrivi qualcosa...",Advanced:"Avanzato","About Jodit":"A proposito di Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Guida utente di Jodit","contains detailed help for using":"contiene una guida dettagliata per l'uso.","For information about the license, please go to our website:":"Per informazioni sulla licenza, si prega di visitare il nostro sito web:","Buy full version":"Acquista la versione completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tutti i diritti riservati.",Anchor:"Link","Open in new tab":"Apri in una nuova scheda","Open in fullsize":"Apri l'editor a schermo intero","Clear Formatting":"Pulisci Formattazione","Fill color or set the text color":"Colore di sfondo o del testo",Redo:"Ripristina",Undo:"Annulla",Bold:"Grassetto",Italic:"Corsivo","Insert Unordered List":"Inserisci lista non ordinata","Insert Ordered List":"Inserisci lista ordinata","Align Center":"Allinea al centro","Align Justify":"Allineamento Giustificato","Align Left":"Allinea a Sinistra","Align Right":"Allinea a Destra","Insert Horizontal Line":"Inserisci una linea orizzontale","Insert Image":"Inserisci immagine","Insert file":"Inserisci un file","Insert youtube/vimeo video":"Inserisci video Youtube/Vimeo","Insert link":"Inserisci link","Font size":"Dimensione carattere","Font family":"Tipo di font","Insert format block":"Inserisci blocco",Normal:"Normale","Heading 1":"Intestazione 1","Heading 2":"Intestazione 2","Heading 3":"Intestazione 3","Heading 4":"Intestazione 4",Quote:"Citazione",Code:"Codice",Insert:"Inserisci","Insert table":"Inserisci tabella","Decrease Indent":"Riduci il rientro","Increase Indent":"Aumenta il rientro","Select Special Character":"Seleziona un carattere speciale","Insert Special Character":"Inserisci un carattere speciale","Paint format":"Copia formato","Change mode":"Cambia modalita'",Margins:"Margini",top:"su",right:"destra",bottom:"giù",left:"sinistra",Styles:"Stili CSS",Classes:"Classi CSS",Align:"Allinea",Right:"Destra",Center:"Centro",Left:"Sinistra","--Not Set--":"--Non Impostato--",Src:"Fonte",Title:"Titolo",Alternative:"Testo Alternativo",Link:"Link","Open link in new tab":"Apri il link in una nuova scheda",Image:"Immagine",file:"Archivio","Image properties":"Proprietà dell'immagine",Cancel:"Annulla",Ok:"Accetta","Your code is similar to HTML. Keep as HTML?":"Il codice è simile all'HTML. Mantieni come HTML?","Paste as HTML":"Incolla come HTML",Keep:"Mantieni",Clean:"Pulisci","Insert as Text":"Inserisci come testo","Word Paste Detected":"Incolla testo da Word rilevato","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Il contenuto incollato proviene da un documento Microsoft Word / Excel. Vuoi mantenere il formato o pulirlo?","Insert only Text":"Inserisci solo il testo","File Browser":"Cerca file","Error on load list":"Errore durante il caricamento dell'elenco","Error on load folders":"Errore durante il caricamento delle cartelle","Are you sure?":"Sei sicuro?","Enter Directory name":"Inserisci il nome della cartella","Create directory":"Crea cartella","type name":"Digita il nome","Drop image":"Cancella immagine","Drop file":"Cancella file","or click":"o clicca","Alternative text":"Testo alternativo",Browse:"Sfoglia",Upload:"Carica",Background:"Sfondo",Text:"Testo",Top:"Su",Middle:"Centro",Bottom:"Sotto","Insert column before":"Inserisci la colonna prima","Insert column after":"Inserisci la colonna dopo","Insert row above":"Inserisci la riga sopra","Insert row below":"Inserisci la riga sotto","Delete table":"Elimina tabella","Delete row":"Elimina riga","Delete column":"Elimina colonna","Empty cell":"Cella vuota",Delete:"Cancella","Strike through":"Barrato",Underline:"Sottolineato",Break:"Pausa","Search for":"Cerca per","Replace with":"Sostituisci con",Replace:"Sostituisci",Edit:"Modifica","Vertical align":"Allineamento verticala","Horizontal align":"Allineamento orizzontale",Filter:"Filtro","Sort by changed":"Ordina per data di modifica","Sort by name":"Ordina per nome","Sort by size":"Ordina per dimensione","Add folder":"Aggiungi cartella",Split:"Dividi","Split vertical":"Dividi verticalmente","Split horizontal":"Dividi orizzontale",Merge:"Fondi","Add column":"Aggiungi colonna","Add row":"Aggiungi riga",Border:"Bordo","Embed code":"Includi codice",Update:"Aggiorna",superscript:"indice",subscript:"pedice","Cut selection":"Taglia selezione",Paste:"Incolla","Choose Content to Paste":"Seleziona il contenuto da incollare","Chars: %d":"Caratteri: %d","Words: %d":"Parole: %d",All:"Tutto","Select %s":"Seleziona: %s","Select all":"Seleziona tutto",source:"risorsa",bold:"Grassetto",italic:"Corsivo",brush:"Pennello",link:"Link",undo:"Annulla",redo:"Ripristina",table:"Tabella",image:"Immagine",eraser:"Gomma",paragraph:"Paragrafo",fontsize:"Dimensione del carattere",video:"Video",font:"Font",about:"Approposito di",print:"Stampa",underline:"Sottolineato",strikethrough:"Barrato",indent:"aumenta rientro",outdent:"riduci rientro",fullsize:"espandi",shrink:"comprimi",hr:"linea orizzontale",ul:"lista non ordinata",ol:"lista ordinata",cut:"Taglia",selectall:"Seleziona tutto","Open link":"Apri link","Edit link":"Modifica link","No follow":"Non seguire",Unlink:"Rimuovi link",Eye:"Recensione",pencil:"Per modificare"," URL":" URL",Reset:"Reset",Save:"Salva","Save as ...":"Salva con nome...",Resize:"Ridimensiona",Crop:"Ritaglia",Width:"Larghezza",Height:"Altezza","Keep Aspect Ratio":"Mantieni le proporzioni",Yes:"Si",No:"No",Remove:"Rimuovi",Select:"Seleziona","You can only edit your own images. Download this image on the host?":"Puoi modificare solo le tue immagini. Vuoi scaricare questa immagine dal server?","The image has been successfully uploaded to the host!":"L'immagine è stata caricata correttamente sul server!",palette:"tavolozza","There are no files":"Non ci sono file in questa directory.",Rename:"Rinomina","Enter new name":"Inserisci un nuovo nome",preview:"anteprima",download:"Scarica","Paste from clipboard":"Incolla dagli appunti","Your browser doesn't support direct access to the clipboard.":"Il tuo browser non supporta l'accesso diretto agli appunti.","Copy selection":"Copia selezione",copy:"copia","Border radius":"Border radius","Show all":"Mostra tutti",Apply:"Applica","Please fill out this field":"Si prega di compilare questo campo","Please enter a web address":"Si prega di inserire un indirizzo web",Default:"Default",Circle:"Cerchio",Dot:"Punto",Quadrate:"Quadrato","Lower Alpha":"Lettera Minuscola","Lower Greek":"Lettera Greca Minuscola","Lower Roman":"Numero Romano Minuscolo","Upper Alpha":"Lettera Maiuscola","Upper Roman":"Numero Romano Maiuscolo",Find:"Trova","Find Previous":"Trova Precedente","Find Next":"Trova Successivo","Insert className":"Inserisci il nome della classe","Press Alt for custom resizing":"Premere Alt per il ridimensionamento personalizzato","License: %s":"Licenza: %s"},ja:{"Type something":"なにかタイプしてください",Advanced:"高度な設定","About Jodit":"Joditについて","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit ユーザーズ・ガイド","contains detailed help for using":"詳しい使い方","For information about the license, please go to our website:":"ライセンス詳細についてはJodit Webサイトを確認ください:","Buy full version":"フルバージョンを購入","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"Anchor","Open in new tab":"新しいタブで開く","Open in fullsize":"エディターのサイズ(フル/ノーマル)","Clear Formatting":"書式をクリア","Fill color or set the text color":"テキストの色",Redo:"やり直し",Undo:"元に戻す",Bold:"太字",Italic:"斜体","Insert Unordered List":"箇条書き","Insert Ordered List":"番号付きリスト","Align Center":"中央揃え","Align Justify":"両端揃え","Align Left":"左揃え","Align Right":"右揃え","Insert Horizontal Line":"区切り線を挿入","Insert Image":"画像を挿入","Insert file":"ファイルを挿入","Insert youtube/vimeo video":"Youtube/Vimeo 動画","Insert link":"リンクを挿入","Font size":"フォントサイズ","Font family":"フォント","Insert format block":"テキストのスタイル",Normal:"指定なし","Heading 1":"タイトル1","Heading 2":"タイトル2","Heading 3":"タイトル3","Heading 4":"タイトル4",Quote:"引用",Code:"コード",Insert:"挿入","Insert table":"表を挿入","Decrease Indent":"インデント減","Increase Indent":"インデント増","Select Special Character":"特殊文字を選択","Insert Special Character":"特殊文字を挿入","Paint format":"書式を貼付け","Change mode":"編集モード切替え",Margins:"マージン",top:"上",right:"右",bottom:"下",left:"左",Styles:"スタイル",Classes:"クラス",Align:"配置",Right:"右寄せ",Center:"中央寄せ",Left:"左寄せ","--Not Set--":"指定なし",Src:"ソース",Title:"タイトル",Alternative:"代替テキスト",Link:"リンク","Open link in new tab":"新しいタブで開く",Image:"画像",file:"ファイル","Image properties":"画像のプロパティー",Cancel:"キャンセル",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"HTMLコードを保持しますか?","Paste as HTML":"HTMLで貼付け",Keep:"HTMLを保持",Clean:"Clean","Insert as Text":"HTMLをテキストにする","Word Paste Detected":"Word Paste Detected","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Insert only Text":"テキストだけ","File Browser":"File Browser","Error on load list":"Error on load list","Error on load folders":"Error on load folders","Are you sure?":"Are you sure?","Enter Directory name":"Enter Directory name","Create directory":"Create directory","type name":"type name","Drop image":"ここに画像をドロップ","Drop file":"ここにファイルをドロップ","or click":"or クリック","Alternative text":"代替テキスト",Browse:"ブラウズ",Upload:"アップロード",Background:"背景",Text:"文字",Top:"上",Middle:"中央",Bottom:"下","Insert column before":"左に列を挿入","Insert column after":"右に列を挿入","Insert row above":"上に行を挿入","Insert row below":"下に行を挿入","Delete table":"表を削除","Delete row":"行を削除","Delete column":"列を削除","Empty cell":"セルを空にする","Chars: %d":"文字数: %d","Words: %d":"単語数: %d","Strike through":"取り消し線",Underline:"下線",superscript:"上付き文字",subscript:"下付き文字","Cut selection":"切り取り","Select all":"すべて選択",Break:"Pause","Search for":"検索","Replace with":"置換",Replace:"交換",Paste:"貼付け","Choose Content to Paste":"選択した内容を貼付け",All:"全部",source:"source",bold:"bold",italic:"italic",brush:"brush",link:"link",undo:"undo",redo:"redo",table:"table",image:"image",eraser:"eraser",paragraph:"paragraph",fontsize:"fontsize",video:"video",font:"font",about:"about",print:"print",underline:"underline",strikethrough:"strikethrough",indent:"indent",outdent:"outdent",fullsize:"fullsize",shrink:"shrink",hr:"分割線",ul:"箇条書き",ol:"番号付きリスト",cut:"切り取り",selectall:"すべて選択","Open link":"リンクを開く","Edit link":"リンクを編集","No follow":"No follow",Unlink:"リンク解除",Eye:"サイトを確認"," URL":"URL",Reset:"リセット",Save:"保存","Save as ...":"Save as ...",Resize:"リサイズ",Crop:"Crop",Width:"幅",Height:"高さ","Keep Aspect Ratio":"縦横比を保持",Yes:"はい",No:"いいえ",Remove:"移除",Select:"選択","Select %s":"選択: %s",Update:"更新","Vertical align":"垂直方向の配置",Merge:"セルの結合","Add column":"列を追加","Add row":"行を追加",Border:"境界線","Embed code":"埋め込みコード",Delete:"削除",Edit:"編集","Horizontal align":"水平方向の配置",Filter:"Filter","Sort by changed":"Sort by changed","Sort by name":"Sort by name","Sort by size":"Sort by size","Add folder":"Add folder",Split:"分割","Split vertical":"セルの分割(垂直方向)","Split horizontal":"セルの分割(水平方向)","You can only edit your own images. Download this image on the host?":"You can only edit your own images. Download this image on the host?","The image has been successfully uploaded to the host!":"The image has been successfully uploaded to the host!",palette:"パレット",pencil:"鉛筆","There are no files":"There are no files",Rename:"Rename","Enter new name":"Enter new name",preview:"プレビュー",download:"ダウンロード","Paste from clipboard":"貼り付け","Your browser doesn't support direct access to the clipboard.":"お使いのブラウザはクリップボードを使用できません","Copy selection":"コピー",copy:"copy","Border radius":"角の丸み","Show all":"全て表示",Apply:"適用","Please fill out this field":"まだこの分野","Please enter a web address":"を入力してくださいウェブアドレス",Default:"デフォルト",Circle:"白丸",Dot:"黒丸",Quadrate:"四角",Find:"見","Find Previous":"探前","Find Next":"由来","Lower Alpha":"英小文字","Lower Greek":"ギリシャ文字","Lower Roman":"ローマ数字小文字","Upper Alpha":"英大文字","Upper Roman":"ローマ数字大文字","Insert className":"クラス名を挿入","Press Alt for custom resizing":"カスタムサイズ変更のためのAltキーを押します","License: %s":"ライセンス: %s"},ko:{"Type something":"무엇이든 입력하세요","About Jodit":"Jodit에 대하여","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit 사용자 안내서","contains detailed help for using":"자세한 도움말이 들어있어요","For information about the license, please go to our website:":"라이센스에 관해서는 Jodit 웹 사이트를 방문해주세요:","Buy full version":"풀 버전 구입하기","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"© XDSoft.net - Chupurnov Valeriy. 에게 저작권과 모든 권리가 있습니다.",Anchor:"Anchor","Open in new tab":"새 탭에서 열기","Open in fullsize":"전체 크기로 보기","Clear Formatting":"서식 지우기","Fill color or set the text color":"글씨 색상",Redo:"재실행",Undo:"실행 취소",Bold:"굵게",Italic:"기울임","Insert Unordered List":"글머리 목록","Insert Ordered List":"번호 목록","Align Center":"가운데 정렬","Align Justify":"양쪽 정렬","Align Left":"왼쪽 정렬","Align Right":"오른쪽 정렬","Insert Horizontal Line":"수평 구분선 넣기","Insert Image":"이미지 넣기","Insert file":"파일 넣기","Insert youtube/vimeo video":"Youtube/Vimeo 동영상","Insert link":"링크 넣기","Font size":"글꼴 크기","Font family":"글꼴","Insert format block":"블록 요소 넣기",Normal:"일반 텍스트","Heading 1":"제목 1","Heading 2":"제목 2","Heading 3":"제목 3","Heading 4":"제목 4",Quote:"인용",Code:"코드",Insert:"붙여 넣기","Insert table":"테이블","Decrease Indent":"들여쓰기 감소","Increase Indent":"들여쓰기 증가","Select Special Character":"특수문자 선택","Insert Special Character":"특수문자 입력","Paint format":"페인트 형식","Change mode":"편집모드 변경",Margins:"마진",top:"위",right:"오른쪽",bottom:"아래",left:"왼쪽",Styles:"스타일",Classes:"클래스",Align:"정렬",Right:"오른쪽으로",Center:"가운데로",Left:"왼쪽으로","--Not Set--":"--지정 안 함--",Src:"경로(src)",Title:"제목",Alternative:"대체 텍스트(alt)",Link:"링크","Open link in new tab":"새 탭에서 열기",file:"파일",Advanced:"고급","Image properties":"이미지 속성",Cancel:"취소",Ok:"확인","Your code is similar to HTML. Keep as HTML?":"HTML 코드로 감지했어요. 코드인채로 붙여넣을까요?","Paste as HTML":"HTML로 붙여넣기",Keep:"원본 유지",Clean:"지우기","Insert as Text":"텍스트로 넣기","Insert only Text":"텍스트만 넣기","Word Paste Detected":"Word 붙여넣기 감지","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Microsoft Word/Excel 문서로 감지했어요. 서식을 유지한채로 붙여넣을까요?","File Browser":"파일 탐색기","Error on load list":"목록 불러오기 에러","Error on load folders":"폴더 불러오기","Are you sure?":"정말 진행할까요?","Enter Directory name":"디렉토리 이름 입력","Create directory":"디렉토리 생성","type name":"이름 입력","Drop image":"이미지 드래그","Drop file":"파일 드래그","or click":"혹은 클릭","Alternative text":"대체 텍스트",Browse:"탐색",Upload:"업로드",Background:"배경",Text:"텍스트",Top:"위",Middle:"중앙",Bottom:"아래","Insert column before":"이전 열에 삽입","Insert column after":"다음 열에 삽입","Insert row above":"위 행에 삽입","Insert row below":"아래 행에 삽입","Delete table":"테이블 삭제","Delete row":"행 삭제","Delete column":"열 삭제","Empty cell":"빈 셀",source:"HTML 소스",bold:"볼드",italic:"이탤릭",brush:"브러시",link:"링크",undo:"실행 취소",redo:"재실행",table:"테이블",image:"이미지",eraser:"지우개",paragraph:"문단",fontsize:"글꼴 크기",video:"비디오",font:"글꼴",about:"편집기 정보",print:"프린트",underline:"밑줄",strikethrough:"취소선",indent:"들여쓰기",outdent:"내어쓰기",fullsize:"전체 화면",shrink:"일반 화면",hr:"구분선",ul:"글머리 목록",ol:"번호 목록",cut:"잘라내기",selectall:"모두 선택","Embed code":"Embed 코드","Open link":"링크 열기","Edit link":"링크 편집","No follow":"No follow",Unlink:"링크 제거",Eye:"사이트 확인",pencil:"연필",Update:"갱신"," URL":"URL",Edit:"편집","Horizontal align":"수평 정렬",Filter:"필터","Sort by changed":"변경일 정렬","Sort by name":"이름 정렬","Sort by size":"크기 정렬","Add folder":"새 폴더",Reset:"초기화",Save:"저장","Save as ...":"새로 저장하기 ...",Resize:"리사이즈",Crop:"크롭",Width:"가로 길이",Height:"세로 높이","Keep Aspect Ratio":"비율 유지하기",Yes:"네",No:"아니오",Remove:"제거",Select:"선택","Chars: %d":"문자수: %d","Words: %d":"단어수: %d",All:"모두","Select all":"모두 선택","Select %s":"선택: %s","Vertical align":"수직 정렬",Split:"분할","Split vertical":"세로 셀 분할","Split horizontal":"가로 셀 분할",Merge:"셀 병합","Add column":"열 추가","Add row":"행 추가",Delete:"삭제",Border:"외곽선","License: %s":"라이센스: %s","Strike through":"취소선",Underline:"밑줄",superscript:"윗첨자",subscript:"아래첨자","Cut selection":"선택 잘라내기",Break:"구분자","Search for":"검색","Replace with":"대체하기",Replace:"대체",Paste:"붙여넣기","Choose Content to Paste":"붙여넣을 내용 선택","You can only edit your own images. Download this image on the host?":"외부 이미지는 편집할 수 없어요. 외부 이미지를 다운로드 할까요?","The image has been successfully uploaded to the host!":"이미지를 무사히 업로드 했어요!",palette:"팔레트","There are no files":"파일이 없어요",Rename:"이름 변경","Enter new name":"새 이름 입력",preview:"미리보기",download:"다운로드","Paste from clipboard":"클립보드 붙여넣기","Your browser doesn't support direct access to the clipboard.":"사용중인 브라우저가 클립보드 접근을 지원하지 않아요.","Copy selection":"선택 복사",copy:"복사","Border radius":"둥근 테두리","Show all":"모두 보기",Apply:"적용","Please fill out this field":"이 항목을 입력해주세요!","Please enter a web address":"웹 URL을 입력해주세요.",Default:"기본",Circle:"원",Dot:"점",Quadrate:"정사각형",Find:"찾기","Find Previous":"이전 찾기","Find Next":"다음 찾기","Insert className":"className 입력","Press Alt for custom resizing":"사용자 지정 크기 조정에 대 한 고도 누르십시오"},mn:{"Type something":"Бичээд үзээрэй",Advanced:"Дэвшилтэт","About Jodit":"Jodit-ын талаар ","Jodit Editor":"Jodit програм","Jodit User's Guide":"Jodit гарын авлага","contains detailed help for using":"хэрэглээний талаар дэлгэрэнгүй мэдээллийг агуулна","For information about the license, please go to our website:":"Лицензийн мэдээллийг манай вэб хуудаснаас авна уу:","Buy full version":"Бүрэн хувилбар худалдан авах","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Зохиогчийн эрх хамгаалагдсан © XDSoft.net - Chupurnov Valeriy. Бүх эрхийг эзэмшинэ.",Anchor:"Холбоо барих","Open in new tab":"Шинэ табаар нээх","Open in fullsize":"Бүтэн дэлгэцээр нээх","Clear Formatting":"Форматыг арилгах","Fill color or set the text color":"Өнгөөр будах эсвэл текстийн өнгө сонгох",Redo:"Дахих",Undo:"Буцаах",Bold:"Тод",Italic:"Налуу","Insert Unordered List":"Тэмдэгт жагсаалт нэмэх","Insert Ordered List":"Дугаарт жагсаалт нэмэх","Align Center":"Голлож байрлуулах","Align Justify":"Тэгшитгэн байрлуулах","Align Left":"Зүүнд байрлуулах","Align Right":"Баруунд байрлуулах","Insert Horizontal Line":"Хэвтээ зураас нэмэх","Insert Image":"Зураг нэмэх","Insert file":"Файл нэмэх","Insert youtube/vimeo video":"Youtube/Vimeo видео нэмэх","Insert link":"Холбоос нэмэх","Font size":"Фонтын хэмжээ","Font family":"Фонтын бүл","Insert format block":"Блок нэмэх",Normal:"Хэвийн","Heading 1":"Гарчиг 1","Heading 2":"Гарчиг 2","Heading 3":"Гарчиг 3","Heading 4":"Гарчиг 4",Quote:"Ишлэл",Code:"Код",Insert:"Оруулах","Insert table":"Хүснэгт оруулах","Decrease Indent":"Доголын зай хасах","Increase Indent":"Доголын зай нэмэх","Select Special Character":"Тусгай тэмдэгт сонгох","Insert Special Character":"Тусгай тэмдэгт нэмэх","Paint format":"Зургийн формат","Change mode":"Горим өөрчлөх",Margins:"Цаасны зай",top:"Дээрээс",right:"Баруунаас",bottom:"Доороос",left:"Зүүнээс",Styles:"CSS стиль",Classes:"CSS анги",Align:"Байрлуулах",Right:"Баруун",Center:"Төв",Left:"Зүүн","--Not Set--":"--Тодорхойгүй--",Src:"Эх үүсвэр",Title:"Гарчиг",Alternative:"Алтернатив текст",Link:"Холбоос","Open link in new tab":"Холбоосыг шинэ хавтсанд нээх",Image:"Зураг",file:"Файл","Image properties":"Зургийн үзүүлэлт",Cancel:"Цуцлах",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Таны код HTML кодтой адил байна. HTML форматаар үргэлжлүүлэх үү?","Paste as HTML":"HTML байдлаар буулгах",Keep:"Хадгалах",Clean:"Цэвэрлэх","Insert as Text":"Текст байдлаар нэмэх","Word Paste Detected":"Word байдлаар буулгасан байна","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Буулгасан агуулга Microsoft Word/Excel форматтай байна. Энэ форматыг хэвээр хадгалах уу эсвэл арилгах уу?","Insert only Text":"Зөвхөн текст оруулах","File Browser":"Файлын цонх","Error on load list":"Жагсаалт татах үед алдаа гарлаа","Error on load folders":"Хавтас татах үед алдаа гарлаа","Are you sure?":"Итгэлтэй байна уу?","Enter Directory name":"Хавтсын нэр оруулах","Create directory":"Хавтас үүсгэх","type name":"Нэр бичих","Drop image":"Зураг буулгах","Drop file":"Файл буулгах","or click":"эсвэл товш","Alternative text":"Алтернатив текст",Browse:"Үзэх",Upload:"Байршуулах",Background:"Арын зураг",Text:"Текст",Top:"Дээр",Middle:"Дунд",Bottom:"Доор","Insert column before":"Урд нь багана нэмэх","Insert column after":"Ард нь багана нэмэх","Insert row above":"Дээр нь мөр нэмэх","Insert row below":"Доор нь мөр нэмэх","Delete table":"Хүснэгт устгах","Delete row":"Мөр устгах","Delete column":"Багана устгах","Empty cell":"Нүд цэвэрлэх",Delete:"Устгах","Strike through":"Дээгүүр зураас",Underline:"Доогуур зураас",Break:"Мөрийг таслах","Search for":"Хайх","Replace with":"Үүгээр солих",Replace:"Солих",Edit:"Засах","Vertical align":"Босоо эгнүүлэх","Horizontal align":"Хэвтээ эгнүүлэх",Filter:"Шүүх","Sort by changed":"Сүүлд өөрчлөгдсөнөөр жагсаах","Sort by name":"Нэрээр жагсаах","Sort by size":"Хэмжээгээр жагсаах","Add folder":"Хавтас нэмэх",Split:"Задлах","Split vertical":"Баганаар задлах","Split horizontal":"Мөрөөр задлах",Merge:"Нэгтгэх","Add column":"Багана нэмэх","Add row":"Мөр нэмэх",Border:"Хүрээ","Embed code":"Код оруулах",Update:"Шинэчлэх",superscript:"Дээд индекс",subscript:"Доод индекс","Cut selection":"Сонголтыг таслах",Paste:"Буулгах","Choose Content to Paste":"Буулгах агуулгаа сонгоно уу","Chars: %d":"Тэмдэгт: %d","Words: %d":"Үг: %d",All:"Бүгдийг","Select %s":"Сонго: %s","Select all":"Бүгдийг сонго",source:"Эх үүсвэр",bold:"Тод",italic:"Налуу",brush:"Будах",link:"Холбоос",undo:"Буцаах",redo:"Дахих",table:"Хүснэгт",image:"Зураг",eraser:"Баллуур",paragraph:"Параграф",fontsize:"Фонтын хэмжээ",video:"Видео",font:"Фонт",about:"Тухай",print:"Хэвлэх",underline:"Доогуур зураас",strikethrough:"Дээгүүр зураас",indent:"Догол нэмэх",outdent:"Догол багасгах",fullsize:"Бүтэн дэлгэц",shrink:"Багасга",hr:"Хаалт",ul:"Тэмдэгт жагсаалт",ol:"Дугаарласан жагсаалт",cut:"Таслах",selectall:"Бүгдийг сонго","Open link":"Холбоос нээх","Edit link":"Холбоос засах","No follow":"Nofollow özelliği",Unlink:"Холбоос салгах",Eye:"Нүд",pencil:"Засах"," URL":"URL",Reset:"Буцаах",Save:"Хадгалах","Save as ...":"Өөрөөр хадгалах",Resize:"Хэмжээг өөрчил",Crop:"Тайрах",Width:"Өргөн",Height:"Өндөр","Keep Aspect Ratio":"Харьцааг хадгал",Yes:"Тийм",No:"Үгүй",Remove:"Арилга",Select:"Сонго","You can only edit your own images. Download this image on the host?":"Та зөвхөн өөрийн зургуудаа янзлах боломжтой. Энэ зургийг өөр лүүгээ татмаар байна уу?","The image has been successfully uploaded to the host!":"Зургийг хост руу амжилттай хадгалсан",palette:"Палет","There are no files":"Энд ямар нэг файл алга",Rename:"Шинээр нэрлэх","Enter new name":"Шинэ нэр оруулна уу",preview:"Урьдчилан харах",download:"Татах","Paste from clipboard":"Самбараас хуулах ","Your browser doesn't support direct access to the clipboard.":"Энэ вэб хөтчөөс самбарт хандах эрх алга.","Copy selection":"Сонголтыг хуул",copy:"Хуулах","Border radius":"Хүрээний радиус","Show all":"Бүгдийг харуулах",Apply:"Хэрэгжүүл","Please fill out this field":"Энэ талбарыг бөглөнө үү","Please enter a web address":"Вэб хаягаа оруулна уу",Default:"Үндсэн",Circle:"Дугуй",Dot:"Цэг",Quadrate:"Дөрвөлжин",Find:"Хайх","Find Previous":"Өмнөхийг ол","Find Next":"Дараагийнхийг ол","Insert className":"Бүлгийн нэрээ оруулна уу","Press Alt for custom resizing":"Хэмжээсийг шинээр өөчрлөхийн тулд Alt товчин дээр дарна уу","License: %s":"Лиценз: %s"},nl:{"Type something":"Begin met typen..",Advanced:"Geavanceerd","About Jodit":"Over Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Gratis niet-commerciële versie","Jodit User's Guide":"Jodit gebruikershandleiding","contains detailed help for using":"bevat gedetailleerde informatie voor gebruik.","For information about the license, please go to our website:":"Voor informatie over de licentie, ga naar onze website:","Buy full version":"Volledige versie kopen","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Alle rechten voorbehouden.",Anchor:"Anker","Open in new tab":"Open in nieuwe tab","Open in fullsize":"Editor in volledig scherm openen","Clear Formatting":"Opmaak verwijderen","Fill color or set the text color":"Vulkleur of tekstkleur aanpassen",Redo:"Opnieuw",Undo:"Ongedaan maken",Bold:"Vet",Italic:"Cursief","Insert Unordered List":"Geordende list invoegen","Insert Ordered List":"Ongeordende lijst invoegen","Align Center":"Centreren","Align Justify":"Uitlijnen op volledige breedte","Align Left":"Links uitlijnen","Align Right":"Rechts uitlijnen","Insert Horizontal Line":"Horizontale lijn invoegen","Insert Image":"Afbeelding invoegen","Insert file":"Bestand invoegen","Insert youtube/vimeo video":"Youtube/Vimeo video invoegen","Insert link":"Link toevoegen","Font size":"Tekstgrootte","Font family":"Lettertype","Insert format block":"Format blok invoegen",Normal:"Normaal","Heading 1":"Koptekst 1","Heading 2":"Koptekst 2","Heading 3":"Koptekst 3","Heading 4":"Koptekst 4",Quote:"Citaat",Code:"Code",Insert:"Invoegen","Insert table":"Tabel invoegen","Decrease Indent":"Inspringing verkleinen","Increase Indent":"Inspringing vergroten","Select Special Character":"Symbool selecteren","Insert Special Character":"Symbool invoegen","Paint format":"Opmaak kopieren","Change mode":"Modus veranderen",Margins:"Marges",top:"Boven",right:"Rechts",bottom:"Onder",left:"Links",Styles:"CSS styles",Classes:"CSS classes",Align:"Uitlijning",Right:"Rechts",Center:"Gecentreerd",Left:"Links","--Not Set--":"--Leeg--",Src:"Src",Title:"Titel",Alternative:"Alternatieve tekst",Link:"Link","Open link in new tab":"Link in nieuwe tab openen",Image:"Afbeelding",file:"Bestand","Image properties":"Afbeeldingseigenschappen",Cancel:"Annuleren",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Deze code lijkt op HTML. Als HTML behouden?","Paste as HTML":"Invoegen als HTML",Keep:"Origineel behouden",Clean:"Opschonen","Insert as Text":"Als tekst invoegen","Word Paste Detected":"Word-tekst gedetecteerd","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"De geplakte tekst is afkomstig van een Microsoft Word/Excel document. Wil je de opmaak behouden of opschonen?","Insert only Text":"Als onopgemaakte tekst invoegen","File Browser":"Bestandsbrowser","Error on load list":"Fout bij het laden van de lijst","Error on load folders":"Fout bij het laden van de mappenlijst","Are you sure?":"Weet je het zeker?","Enter Directory name":"Geef de map een naam","Create directory":"Map aanmaken","type name":"Type naam","Drop image":"Sleep hier een afbeelding naartoe","Drop file":"Sleep hier een bestand naartoe","or click":"of klik","Alternative text":"Alternatieve tekst",Browse:"Bladeren",Upload:"Uploaden",Background:"Achtergrond",Text:"Tekst",Top:"Boven",Middle:"Midden",Bottom:"Onder","Insert column before":"Kolom invoegen (voor)","Insert column after":"Kolom invoegen (na)","Insert row above":"Rij invoegen (boven)","Insert row below":"Rij invoegen (onder)","Delete table":"Tabel verwijderen","Delete row":"Rij verwijderen","Delete column":"Kolom verwijderen","Empty cell":"Cel leegmaken",Delete:"Verwijderen","Strike through":"Doorstrepen",Underline:"Onderstrepen",Break:"Enter","Search for":"Zoek naar","Replace with":"Vervangen door",Replace:"Vervangen",Edit:"Bewerken","Vertical align":"Verticaal uitlijnen","Horizontal align":"Horizontaal uitlijnen",Filter:"Filteren","Sort by changed":"Sorteren op wijzigingsdatum","Sort by name":"Sorteren op naam","Sort by size":"Sorteren op grootte","Add folder":"Map toevoegen",Split:"Splitsen","Split vertical":"Verticaal splitsen","Split horizontal":"Horizontaal splitsen",Merge:"Samenvoegen","Add column":"Kolom toevoegen","Add row":"Rij toevoegen",Border:"Rand","Embed code":"Embed code",Update:"Updaten",superscript:"Superscript",subscript:"Subscript","Cut selection":"Selectie knippen",Paste:"Plakken","Choose Content to Paste":"Kies content om te plakken","Chars: %d":"Tekens: %d","Words: %d":"Woorden: %d",All:"Alles","Select %s":"Selecteer: %s","Select all":"Selecteer alles",source:"Broncode",bold:"vet",italic:"cursief",brush:"kwast",link:"link",undo:"ongedaan maken",redo:"opnieuw",table:"tabel",image:"afbeelding",eraser:"gum",paragraph:"paragraaf",fontsize:"lettergrootte",video:"video",font:"lettertype",about:"over",print:"afdrukken",underline:"onderstreept",strikethrough:"doorgestreept",indent:"inspringen",outdent:"minder inspringen",fullsize:"volledige grootte",shrink:"kleiner maken",hr:"horizontale lijn",ul:"lijst",ol:"genummerde lijst",cut:"knip",selectall:"alles selecteren","Open link":"Link openen","Edit link":"Link aanpassen","No follow":"Niet volgen",Unlink:"link verwijderen",Eye:"Recensie",pencil:"Om te bewerken"," URL":" URL",Reset:"Herstellen",Save:"Opslaan","Save as ...":"Opslaan als ...",Resize:"Grootte aanpassen",Crop:"Bijknippen",Width:"Breedte",Height:"Hoogte","Keep Aspect Ratio":"Verhouding behouden",Yes:"Ja",No:"Nee",Remove:"Verwijderen",Select:"Selecteren","You can only edit your own images. Download this image on the host?":"Je kunt alleen je eigen afbeeldingen aanpassen. Deze afbeelding downloaden?","The image has been successfully uploaded to the host!":"De afbeelding is succesvol geüploadet!",palette:"Palette","There are no files":"Er zijn geen bestanden in deze map.",Rename:"Hernoemen","Enter new name":"Voer een nieuwe naam in",preview:"Voorvertoning",download:"Download","Paste from clipboard":"Plakken van klembord","Your browser doesn't support direct access to the clipboard.":"Uw browser ondersteunt geen directe toegang tot het klembord.","Copy selection":"Selectie kopiëren",copy:"kopiëren","Border radius":"Border radius","Show all":"Toon alle",Apply:"Toepassen","Please fill out this field":"Vul dit veld in","Please enter a web address":"Voer een webadres in",Default:"Standaard",Circle:"Cirkel",Dot:"Punt",Quadrate:"Kwadraat",Find:"Zoeken","Find Previous":"Vorige Zoeken","Find Next":"Volgende Zoeken","Insert className":"Voeg de klassenaam in","Press Alt for custom resizing":"Druk op Alt voor aangepaste grootte","License: %s":"Licentie: %s"},no:{"Type something":"Skriv noe","About Jodit":"Om Jodit","Jodit Editor":"Jodit-redigerer","Jodit User's Guide":"Jodit brukerveiledning","contains detailed help for using":"Inneholder detaljert hjelp for bruk","For information about the license, please go to our website:":"For informasjon om lisensen, besøk vår nettside:","Buy full version":"Kjøp fullversjon","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Opphavsrett © XDSoft.net - Chupurnov Valeriy. Alle rettigheter forbeholdt.",Anchor:"Anker","Open in new tab":"Åpne i ny fane","Open in fullsize":"Åpne i fullskjerm","Clear Formatting":"Fjern formatering","Fill color or set the text color":"Endre bakgrunns- eller tekstfarge",Redo:"Gjør om",Undo:"Angre",Bold:"Fet",Italic:"Kursiv","Insert Unordered List":"Sett inn punktliste","Insert Ordered List":"Sett inn nummerert liste","Align Center":"Midtstill","Align Justify":"Juster","Align Left":"Venstrejuster","Align Right":"Høyrejuster","Insert Horizontal Line":"Sett inn horisontal linje","Insert Image":"Sett inn bilde","Insert file":"Sett inn fil","Insert youtube/vimeo video":"Sett inn YouTube/Vimeo-video","Insert link":"Sett inn lenke","Font size":"Skriftstørrelse","Font family":"Skriftfamilie","Insert format block":"Sett inn formateringsblokk",Normal:"Normal","Heading 1":"Overskrift 1","Heading 2":"Overskrift 2","Heading 3":"Overskrift 3","Heading 4":"Overskrift 4",Quote:"Sitat",Code:"Kode",Insert:"Sett inn","Insert table":"Sett inn tabell","Decrease Indent":"Reduser innrykk","Increase Indent":"Øk innrykk","Select Special Character":"Velg spesialtegn","Insert Special Character":"Sett inn spesialtegn","Paint format":"Kopier format","Change mode":"Bytt modus (WYSIWYG/HTML)",Margins:"Marger",top:"topp",right:"høyre",bottom:"bunn",left:"venstre",Styles:"Stiler",Classes:"Klasser",Align:"Justering",Right:"Høyre",Center:"Senter",Left:"Venstre","--Not Set--":"--Ikke satt--",Src:"Kilde",Title:"Tittel",Alternative:"Alternativ",Filter:"Filter",Link:"Lenke","Open link in new tab":"Åpne lenke i ny fane",Image:"Bilde",file:"fil",Advanced:"Avansert","Image properties":"Bildeegenskaper",Cancel:"Avbryt",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Koden din ligner HTML. Beholde som HTML?","Paste as HTML":"Lim inn som HTML",Keep:"Behold",Clean:"Rens","Insert as Text":"Lim inn som tekst","Word Paste Detected":"Word-innliming oppdaget","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Innholdet du limer inn kommer fra et Microsoft Word/Excel-dokument. Vil du beholde formatet eller rense det?","Insert only Text":"Lim inn kun tekst","File Browser":"Filutforsker","Error on load list":"Feil ved lasting av liste","Error on load folders":"Feil ved lasting av mapper","Are you sure?":"Er du sikker?","Enter Directory name":"Skriv inn mappenavn","Create directory":"Opprett mappe","type name":"skriv navn","Drop image":"Slipp bilde","Drop file":"Slipp fil","or click":"eller klikk","Alternative text":"Alternativ tekst",Browse:"Bla gjennom",Upload:"Last opp",Background:"Bakgrunn",Border:"Kantlinje",Text:"Tekst",Top:"Topp",Middle:"Midt",Bottom:"Bunn","Insert column before":"Sett inn kolonne før","Insert column after":"Sett inn kolonne etter","Insert row above":"Sett inn rad over","Insert row below":"Sett inn rad under","Delete table":"Slett tabell","Delete row":"Slett rad","Delete column":"Slett kolonne","Empty cell":"Tøm celle","Chars: %d":"Tegn: %d","Words: %d":"Ord: %d",Split:"Del","Split vertical":"Del vertikalt","Split horizontal":"Del horisontalt","Strike through":"Gjennomstreking",Underline:"Understreking",superscript:"hevet skrift",subscript:"senket skrift","Cut selection":"Klipp ut markering","Select all":"Velg alt",Break:"Pause","Search for":"Søk etter","Replace with":"Erstatt med",Replace:"Erstatt",Paste:"Lim inn","Choose Content to Paste":"Velg innhold å lime inn",source:"kilde",bold:"fet",italic:"kursiv",brush:"pensel",link:"lenke",undo:"angre",redo:"gjør om",table:"tabell",image:"bilde",eraser:"viskelær",paragraph:"avsnitt",fontsize:"skriftstørrelse",video:"video",font:"skrift",about:"om redigeringsverktøyet",print:"skriv ut",underline:"understreking",strikethrough:"gjennomstreking",indent:"innrykk",outdent:"reduser innrykk",fullsize:"full størrelse",shrink:"krympe",hr:"linje",ul:"punktliste",ol:"nummerert liste",cut:"klipp ut",selectall:"velg alt","Open link":"Åpne lenke","Edit link":"Rediger lenke","No follow":"Ingen oppfølging",Unlink:"Fjern lenke",Eye:"Forhåndsvisning",pencil:"Rediger"," URL":"URL",Reset:"Tilbakestill",Save:"Lagre","Save as ...":"Lagre som ...",Resize:"Endre størrelse",Crop:"Beskjær",Width:"Bredde",Height:"Høyde","Keep Aspect Ratio":"Behold proporsjoner",Yes:"Ja",No:"Nei",Remove:"Fjern",Select:"Velg","Select %s":"Velg: %s",Update:"Oppdater","Vertical align":"Vertikal justering",Merge:"Slå sammen","Add column":"Legg til kolonne","Add row":"Legg til rad",Delete:"Slett","Horizontal align":"Horisontal justering","Sort by changed":"Sorter etter endring","Sort by name":"Sorter etter navn","Sort by size":"Sorter etter størrelse","Add folder":"Legg til mappe",palette:"Palett",preview:"Forhåndsvisning","Line height":"Linjehøyde","Insert className":"Sett inn klassenavn",apply:"Bruk",edit:"Rediger","Show all":"Vis alle",sound:"Lyd","Interim Results":"Foreløpige resultater",default:"Standard",circle:"Sirkel",dot:"Punkt",square:"Firkant","Press Alt for custom resizing":"Trykk på Alt for å endre størrelse","Copy selection":"Kopier utvalg","Paste from clipboard":"Lim inn fra utklippstavlen",Find:"Finne","Embed code":"Bygge inn kode",Edit:"Rediger",All:"Velg alle","License: %s":"Lisens: %s","You can only edit your own images. Download this image on the host?":"Du kan bare redigere dine egne bilder. Last ned dette bildet på verten?","The image has been successfully uploaded to the host!":"Bildet har blitt lastet opp til verten!","There are no files":"Det er ingen filer i denne katalogen",Rename:"Gi nytt navn","Enter new name":"Skriv inn nytt navn",download:"Last ned","Your browser doesn't support direct access to the clipboard.":"Nettleseren din støtter ikke direkte tilgang til utklippstavlen.",copy:"kopi","Border radius":"Grenseradius",Apply:"Bruk","Please fill out this field":"Vennligst fyll ut dette feltet","Please enter a web address":"Vennligst skriv inn en webadresse",Default:"Standard",Circle:"Sirkel",Dot:"Prikk",Quadrate:"Firkant","Find Previous":"Finn forrige","Find Next":"Finn neste"},pl:{"Type something":"Napisz coś",Advanced:"Zaawansowane","About Jodit":"O Jodit","Jodit Editor":"Edytor Jodit","Jodit User's Guide":"Instrukcja Jodit","contains detailed help for using":"zawiera szczegółowe informacje dotyczące użytkowania.","For information about the license, please go to our website:":"Odwiedź naszą stronę, aby uzyskać więcej informacji na temat licencji:","Buy full version":"Zakup pełnej wersji","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Wszystkie prawa zastrzeżone.",Anchor:"Kotwica","Open in new tab":"Otwórz w nowej zakładce","Open in fullsize":"Otwórz edytor w pełnym rozmiarze","Clear Formatting":"Wyczyść formatowanie","Fill color or set the text color":"Kolor wypełnienia lub ustaw kolor tekstu",Redo:"Ponów",Undo:"Cofnij",Bold:"Pogrubienie",Italic:"Kursywa","Insert Unordered List":"Wstaw listę wypunktowaną","Insert Ordered List":"Wstaw listę numeryczną","Align Center":"Wyśrodkuj","Align Justify":"Wyjustuj","Align Left":"Wyrównaj do lewej","Align Right":"Wyrównaj do prawej","Insert Horizontal Line":"Wstaw linię poziomą","Insert Image":"Wstaw grafikę","Insert file":"Wstaw plik","Insert youtube/vimeo video":"Wstaw film Youtube/vimeo","Insert link":"Wstaw link","Font size":"Rozmiar tekstu","Font family":"Krój czcionki","Insert format block":"Wstaw formatowanie",Normal:"Normalne","Heading 1":"Nagłówek 1","Heading 2":"Nagłówek 2","Heading 3":"Nagłówek 3","Heading 4":"Nagłówek 4",Quote:"Cytat",Code:"Kod",Insert:"Wstaw","Insert table":"Wstaw tabelę","Decrease Indent":"Zmniejsz wcięcie","Increase Indent":"Zwiększ wcięcie","Select Special Character":"Wybierz znak specjalny","Insert Special Character":"Wstaw znak specjalny","Paint format":"Malarz formatów","Change mode":"Zmień tryb",Margins:"Marginesy",top:"Górny",right:"Prawy",bottom:"Dolny",left:"Levy",Styles:"Style CSS",Classes:"Klasy CSS",Align:"Wyrównanie",Right:"Prawa",Center:"środek",Left:"Lewa","--Not Set--":"brak",Src:"Źródło",Title:"Tytuł",Alternative:"Tekst alternatywny",Link:"Link","Open link in new tab":"Otwórz w nowej zakładce",Image:"Grafika",file:"Plik","Image properties":"Właściwości grafiki",Cancel:"Anuluj",Ok:"OK","Your code is similar to HTML. Keep as HTML?":"Twój kod wygląda jak HTML. Zachować HTML?","Paste as HTML":"Wkleić jako HTML?",Keep:"Oryginalny tekst",Clean:"Wyczyść","Insert as Text":"Wstaw jako tekst","Word Paste Detected":"Wykryto tekst w formacie Word","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Wklejany tekst pochodzi z dokumentu Microsoft Word/Excel. Chcesz zachować ten format czy wyczyścić go? ","Insert only Text":"Wstaw tylko treść","File Browser":"Przeglądarka plików","Error on load list":"Błąd ładowania listy plików","Error on load folders":"Błąd ładowania folderów","Are you sure?":"Czy jesteś pewien?","Enter Directory name":"Wprowadź nazwę folderu","Create directory":"Utwórz folder","type name":"wprowadź nazwę","Drop image":"Upuść plik graficzny","Drop file":"Upuść plik","or click":"lub kliknij tu","Alternative text":"Tekst alternatywny",Browse:"Przeglądaj",Upload:"Wczytaj",Background:"Tło",Text:"Treść",Top:"Góra",Middle:"Środek",Bottom:"Dół","Insert column before":"Wstaw kolumnę przed","Insert column after":"Wstaw kolumnę po","Insert row above":"Wstaw wiersz przed","Insert row below":"Wstaw wiersz po","Delete table":"Usuń tabelę","Delete row":"Usuń wiersz","Delete column":"Usuń kolumnę","Empty cell":"Wyczyść komórkę",Delete:"Usuń","Strike through":"Przekreślenie",Underline:"Podkreślenie",Break:"Przerwa","Search for":"Szukaj","Replace with":"Zamień na",Replace:"Wymienić",Edit:"Edytuj","Vertical align":"Wyrównywanie w pionie","Horizontal align":"Wyrównywanie w poziomie",Filter:"Filtruj","Sort by changed":"Sortuj wg zmiany","Sort by name":"Sortuj wg nazwy","Sort by size":"Sortuj wg rozmiaru","Add folder":"Dodaj folder","Split vertical":"Podziel w pionie","Split horizontal":"Podziel w poziomie",Split:"Podziel",Merge:"Scal","Add column":"Dodaj kolumnę","Add row":"Dodaj wiersz",Border:"Obramowanie","Embed code":"Wstaw kod",Update:"Aktualizuj",superscript:"indeks górny",subscript:"index dolny","Cut selection":"Wytnij zaznaczenie",Paste:"Wklej","Choose Content to Paste":"Wybierz zawartość do wklejenia","Chars: %d":"Znaki: %d","Words: %d":"Słowa: %d",All:"Wszystko","Select %s":"Wybierz: %s","Select all":"Wybierz wszystko",source:"HTML",bold:"pogrubienie",italic:"kursywa",brush:"pędzel",link:"link",undo:"cofnij",redo:"ponów",table:"tabela",image:"grafika",eraser:"wyczyść",paragraph:"akapit",fontsize:"rozmiar czcionki",video:"wideo",font:"czcionka",about:"O programie",print:"drukuj",underline:"podkreślenie",strikethrough:"przekreślenie",indent:"wcięcie",outdent:"wycięcie",fullsize:"pełen rozmiar",shrink:"przytnij",hr:"linia pozioma",ul:"lista",ol:"lista numerowana",cut:"wytnij",selectall:"zaznacz wszystko","Open link":"otwórz link","Edit link":"edytuj link","No follow":"Atrybut no-follow",Unlink:"Usuń link",Eye:"szukaj",pencil:"edytuj"," URL":"URL",Reset:"wyczyść",Save:"zapisz","Save as ...":"zapisz jako",Resize:"Zmień rozmiar",Crop:"Przytnij",Width:"Szerokość",Height:"Wysokość","Keep Aspect Ratio":"Zachowaj proporcje",Yes:"Tak",No:"Nie",Remove:"Usuń",Select:"Wybierz","You can only edit your own images. Download this image on the host?":"Możesz edytować tylko swoje grafiki. Czy chcesz pobrać tą grafikę?","The image has been successfully uploaded to the host!":"Grafika została pomyślnienie dodana na serwer",palette:"Paleta","There are no files":"Brak plików.",Rename:"zmień nazwę","Enter new name":"Wprowadź nową nazwę",preview:"podgląd",download:"pobierz","Paste from clipboard":"Wklej ze schowka","Your browser doesn't support direct access to the clipboard.":"Twoja przeglądarka nie obsługuje schowka","Copy selection":"Kopiuj zaznaczenie",copy:"kopiuj","Border radius":"Zaokrąglenie krawędzi","Show all":"Pokaż wszystkie",Apply:"Zastosuj","Please fill out this field":"Proszę wypełnić to pole","Please enter a web address":"Proszę, wpisz adres sieci web",Default:"Domyślnie",Circle:"Koło",Dot:"Punkt",Quadrate:"Kwadrat",Find:"Znaleźć","Find Previous":"Znaleźć Poprzednie","Find Next":"Znajdź Dalej","Insert className":"Wstaw nazwę zajęć","Press Alt for custom resizing":"Naciśnij Alt, aby zmienić rozmiar","License: %s":"Licencja: %s"},pt_br:{"Type something":"Escreva algo...",Advanced:"Avançado","About Jodit":"Sobre o Jodit","Jodit Editor":"Editor Jodit","Jodit User's Guide":"Guia de usuário Jodit","contains detailed help for using":"contém ajuda detalhada para o uso.","For information about the license, please go to our website:":"Para informação sobre a licença, por favor visite nosso site:","Buy full version":"Compre a versão completa","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Todos os direitos reservados.",Anchor:"Link","Open in new tab":"Abrir em nova aba","Open in fullsize":"Abrir editor em tela cheia","Clear Formatting":"Limpar formatação","Fill color or set the text color":"Cor de preenchimento ou cor do texto",Redo:"Refazer",Undo:"Desfazer",Bold:"Negrito",Italic:"Itálico","Insert Unordered List":"Inserir lista não ordenada","Insert Ordered List":"Inserir lista ordenada","Align Center":"Centralizar","Align Justify":"Justificar","Align Left":"Alinhar à Esquerda","Align Right":"Alinhar à Direita","Insert Horizontal Line":"Inserir linha horizontal","Insert Image":"Inserir imagem","Insert file":"Inserir arquivo","Insert youtube/vimeo video":"Inserir vídeo do Youtube/vimeo","Insert link":"Inserir link","Font size":"Tamanho da letra","Font family":"Fonte","Insert format block":"Inserir bloco",Normal:"Normal","Heading 1":"Cabeçalho 1","Heading 2":"Cabeçalho 2","Heading 3":"Cabeçalho 3","Heading 4":"Cabeçalho 4",Quote:"Citação",Code:"Código",Insert:"Inserir","Insert table":"Inserir tabela","Decrease Indent":"Diminuir recuo","Increase Indent":"Aumentar recuo","Select Special Character":"Selecionar caractere especial","Insert Special Character":"Inserir caractere especial","Paint format":"Copiar formato","Change mode":"Mudar modo",Margins:"Margens",top:"cima",right:"direta",bottom:"baixo",left:"esquerda",Styles:"Estilos CSS",Classes:"Classes CSS",Align:"Alinhamento",Right:"Direita",Center:"Centro",Left:"Esquerda","--Not Set--":"--Não Estabelecido--",Src:"Fonte",Title:"Título",Alternative:"Texto Alternativo",Link:"Link","Open link in new tab":"Abrir link em nova aba",Image:"Imagem",file:"Arquivo","Image properties":"Propriedades da imagem",Cancel:"Cancelar",Ok:"Ok","Your code is similar to HTML. Keep as HTML?":"Seu código é similar ao HTML. Manter como HTML?","Paste as HTML":"Colar como HTML?",Keep:"Manter",Clean:"Limpar","Insert as Text":"Inserir como Texto","Word Paste Detected":"Colado do Word Detectado","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"O conteúdo colado veio de um documento Microsoft Word/Excel. Você deseja manter o formato ou limpa-lo?","Insert only Text":"Inserir somente o Texto","File Browser":"Procurar arquivo","Error on load list":"Erro ao carregar a lista","Error on load folders":"Erro ao carregar as pastas","Are you sure?":"Você tem certeza?","Enter Directory name":"Escreva o nome da pasta","Create directory":"Criar pasta","type name":"Escreva seu nome","Drop image":"Soltar imagem","Drop file":"Soltar arquivo","or click":"ou clique","Alternative text":"Texto alternativo",Browse:"Explorar",Upload:"Upload",Background:"Fundo",Text:"Texto",Top:"Cima",Middle:"Meio",Bottom:"Baixo","Insert column before":"Inserir coluna antes","Insert column after":"Inserir coluna depois","Insert row above":"Inserir linha acima","Insert row below":"Inserir linha abaixo","Delete table":"Excluir tabela","Delete row":"Excluir linha","Delete column":"Excluir coluna","Empty cell":"Limpar célula",Delete:"Excluir","Strike through":"Tachado",Underline:"Sublinhar",Break:"Pausa","Search for":"Procurar por","Replace with":"Substituir com",Replace:"Substituir",Edit:"Editar","Vertical align":"Alinhamento vertical","Horizontal align":"Alinhamento horizontal",Filter:"filtrar","Sort by changed":"Ordenar por modificação","Sort by name":"Ordenar por nome","Sort by size":"Ordenar por tamanho","Add folder":"Adicionar pasta",Split:"Dividir","Split vertical":"Dividir vertical","Split horizontal":"Dividir horizontal",Merge:"Mesclar","Add column":"Adicionar coluna","Add row":"Adicionar linha",Border:"Borda","Embed code":"Incluir código",Update:"Atualizar",superscript:"sobrescrito",subscript:"subscrito","Cut selection":"Cortar seleção",Paste:"Colar","Choose Content to Paste":"Escolher conteúdo para colar","Chars: %d":"Caracteres: %d","Words: %d":"Palavras: %d",All:"Tudo","Select %s":"Selecionar: %s","Select all":"Selecionar tudo",source:"HTML",bold:"negrito",italic:"itálico",brush:"pincel",link:"link",undo:"desfazer",redo:"refazer",table:"tabela",image:"imagem",eraser:"apagar",paragraph:"parágrafo",fontsize:"tamanho da letra",video:"vídeo",font:"fonte",about:"Sobre de",print:"Imprimir",underline:"sublinhar",strikethrough:"tachado",indent:"recuar",outdent:"diminuir recuo",fullsize:"Tamanho completo",shrink:"diminuir",hr:"linha horizontal",ul:"lista não ordenada",ol:"lista ordenada",cut:"Cortar",selectall:"Selecionar tudo","Open link":"Abrir link","Edit link":"Editar link","No follow":"Não siga",Unlink:"Remover link",Eye:"Visualizar",pencil:"Editar"," URL":"URL",Reset:"Resetar",Save:"Salvar","Save as ...":"Salvar como...",Resize:"Redimensionar",Crop:"Recortar",Width:"Largura",Height:"Altura","Keep Aspect Ratio":"Manter a proporção",Yes:"Sim",No:"Não",Remove:"Remover",Select:"Selecionar","You can only edit your own images. Download this image on the host?":"Você só pode editar suas próprias imagens. Baixar essa imagem pro servidor?","The image has been successfully uploaded to the host!":"A imagem foi enviada com sucesso para o servidor!",palette:"Palette","There are no files":"Não há arquivos nesse diretório.",Rename:"Húngara","Enter new name":"Digite um novo nome",preview:"preview",download:"Baixar","Paste from clipboard":"Colar da área de transferência","Your browser doesn't support direct access to the clipboard.":"O seu navegador não oferece suporte a acesso direto para a área de transferência.","Copy selection":"Selecção de cópia",copy:"cópia","Border radius":"Border radius","Show all":"Mostrar todos os",Apply:"Aplicar","Please fill out this field":"Por favor, preencha este campo","Please enter a web address":"Por favor introduza um endereço web",Default:"Padrão",Circle:"Círculo",Dot:"Ponto",Quadrate:"Quadro","Lower Alpha":"Letra Minúscula","Lower Greek":"Grego Minúscula","Lower Roman":"Romano Minúscula","Upper Alpha":"Letra Maiúscula","Upper Roman":"Romano Maiúscula",Find:"Encontrar","Find Previous":"Encontrar Anteriores","Find Next":"Localizar Próxima","Insert className":"Insira o nome da classe","Press Alt for custom resizing":"Pressione Alt para redimensionamento personalizado","License: %s":"Licença: %s"},ru:{"Type something":"Напишите что-либо","About Jodit":"О Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit Руководство пользователя","contains detailed help for using":"содержит детальную информацию по использованию","For information about the license, please go to our website:":"Для получения сведений о лицензии , пожалуйста, перейдите на наш сайт:","Buy full version":"Купить полную версию","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторские права © XDSoft.net - Чупурнов Валерий. Все права защищены.",Anchor:"Анкор","Open in new tab":"Открывать ссылку в новой вкладке","Open in fullsize":"Открыть редактор в полном размере","Clear Formatting":"Очистить форматирование","Fill color or set the text color":"Цвет заливки или цвет текста",Redo:"Повтор",Undo:"Отмена",Bold:"Жирный",Italic:"Наклонный","Insert Unordered List":"Вставка маркированного списка","Insert Ordered List":"Вставить нумерованный список","Align Center":"Выровнять по центру","Align Justify":"Выровнять по ширине","Align Left":"Выровнять по левому краю","Align Right":"Выровнять по правому краю","Insert Horizontal Line":"Вставить горизонтальную линию","Insert Image":"Вставить изображение","Insert file":"Вставить файл","Insert youtube/vimeo video":"Вставьте видео","Insert link":"Вставить ссылку","Font size":"Размер шрифта","Font family":"Шрифт","Insert format block":"Вставить блочный элемент",Normal:"Нормальный текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставить","Insert table":"Вставить таблицу","Decrease Indent":"Уменьшить отступ","Increase Indent":"Увеличить отступ","Select Special Character":"Выберите специальный символ","Insert Special Character":"Вставить специальный символ","Paint format":"Формат краски","Change mode":"Источник",Margins:"Отступы",top:"сверху",right:"справа",bottom:"снизу",left:"слева",Styles:"Стили",Classes:"Классы",Align:"Выравнивание",Right:"По правому краю",Center:"По центру",Left:"По левому краю","--Not Set--":"--не устанавливать--",Src:"src",Title:"Заголовок",Alternative:"Альтернативный текст (alt)",Link:"Ссылка","Open link in new tab":"Открывать ссылку в новом окне",file:"Файл",Advanced:"Расширенные","Image properties":"Свойства изображения",Cancel:"Отмена",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Ваш текст, который вы пытаетесь вставить похож на HTML. Вставить его как HTML?","Paste as HTML":"Вставить как HTML?",Keep:"Сохранить оригинал",Clean:"Почистить","Insert as Text":"Вставить как текст","Insert only Text":"Вставить только текст","Word Paste Detected":"Возможно это фрагмент Word или Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Контент который вы вставляете поступает из документа Microsoft Word / Excel. Вы хотите сохранить формат или очистить его?","File Browser":"Браузер файлов","Error on load list":"Ошибка при загрузке списка изображений","Error on load folders":"Ошибка при загрузке списка директорий","Are you sure?":"Вы уверены?","Enter Directory name":"Введите название директории","Create directory":"Создать директорию","type name":"введите название","Drop image":"Перетащите сюда изображение","Drop file":"Перетащите сюда файл","or click":"или нажмите","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Загрузка",Background:"Фон",Text:"Текст",Top:" К верху",Middle:"По середине",Bottom:"К низу","Insert column before":"Вставить столбец до","Insert column after":"Вставить столбец после","Insert row above":"Вставить ряд выше","Insert row below":"Вставить ряд ниже","Delete table":"Удалить таблицу","Delete row":"Удалять ряд","Delete column":"Удалить столбец","Empty cell":"Очистить ячейку",source:"HTML",bold:"жирный",italic:"курсив",brush:"заливка",link:"ссылка",undo:"отменить",redo:"повторить",table:"таблица",image:"Изображение",eraser:"очистить",paragraph:"параграф",fontsize:"размер шрифта",video:"видео",font:"шрифт",about:"о редакторе",print:"печать",underline:"подчеркнутый",strikethrough:"перечеркнутый",indent:"отступ",outdent:"выступ",fullsize:"во весь экран",shrink:"обычный размер",hr:"линия",ul:"Список",ol:"Нумерованный список",cut:"Вырезать",selectall:"Выделить все","Embed code":"Код","Open link":"Открыть ссылку","Edit link":"Редактировать ссылку","No follow":"Атрибут nofollow",Unlink:"Убрать ссылку",Eye:"Просмотр",pencil:"Редактировать",Update:"Обновить"," URL":"URL",Edit:"Редактировать","Horizontal align":"Горизонтальное выравнивание",Filter:"Фильтр","Sort by changed":"По изменению","Sort by name":"По имени","Sort by size":"По размеру","Add folder":"Добавить папку",Reset:"Восстановить",Save:"Сохранить","Save as ...":"Сохранить как",Resize:"Изменить размер",Crop:"Обрезать размер",Width:"Ширина",Height:"Высота","Keep Aspect Ratio":"Сохранять пропорции",Yes:"Да",No:"Нет",Remove:"Удалить",Select:"Выделить","Chars: %d":"Символов: %d","Words: %d":"Слов: %d",All:"Выделить все","Select %s":"Выделить: %s","Select all":"Выделить все","Vertical align":"Вертикальное выравнивание",Split:"Разделить","Split vertical":"Разделить по вертикали","Split horizontal":"Разделить по горизонтали",Merge:"Объединить в одну","Add column":"Добавить столбец","Add row":"Добавить строку",Delete:"Удалить",Border:"Рамка","License: %s":"Лицензия: %s","Strike through":"Перечеркнуть",Underline:"Подчеркивание",superscript:"верхний индекс",subscript:"индекс","Cut selection":"Вырезать",Break:"Разделитель","Search for":"Найти","Replace with":"Заменить на",Replace:"Заменить",Paste:"Вставить","Choose Content to Paste":"Выбрать контент для вставки","You can only edit your own images. Download this image on the host?":"Вы можете редактировать только свои собственные изображения. Загрузить это изображение на ваш сервер?","The image has been successfully uploaded to the host!":"Изображение успешно загружено на сервер!",palette:"палитра","There are no files":"В данном каталоге нет файлов",Rename:"Переименовать","Enter new name":"Введите новое имя",preview:"Предпросмотр",download:"Скачать","Paste from clipboard":"Вставить из буфера обмена","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не поддерживает прямой доступ к буферу обмена.","Copy selection":"Скопировать выделенное",copy:"копия","Border radius":"Радиус границы","Show all":"Показать все",Apply:"Применить","Please fill out this field":"Пожалуйста, заполните это поле","Please enter a web address":"Пожалуйста, введите веб-адрес",Default:"По умолчанию",Circle:"Круг",Dot:"Точка",Quadrate:"Квадрат",Find:"Найти","Find Previous":"Найти Предыдущие","Find Next":"Найти Далее","Insert className":"Вставить название класса","Press Alt for custom resizing":"Нажмите Alt для изменения пользовательского размера"},tr:{"Type something":"Bir şeyler yaz",Advanced:"Gelişmiş","About Jodit":"Jodit Hakkında","Jodit Editor":"Jodit Editor","Jodit User's Guide":"Jodit Kullanım Kılavuzu","contains detailed help for using":"kullanım için detaylı bilgiler içerir","For information about the license, please go to our website:":"Lisans hakkında bilgi için lütfen web sitemize gidin:","Buy full version":"Tam versiyonunu satın al","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. Tüm hakları saklıdır.",Anchor:"Bağlantı","Open in new tab":"Yeni sekmede aç","Open in fullsize":"Editörü tam ekranda aç","Clear Formatting":"Stili temizle","Fill color or set the text color":"Renk doldur veya yazı rengi seç",Redo:"Yinele",Undo:"Geri Al",Bold:"Kalın",Italic:"İtalik","Insert Unordered List":"Sırasız Liste Ekle","Insert Ordered List":"Sıralı Liste Ekle","Align Center":"Ortala","Align Justify":"Kenarlara Yasla","Align Left":"Sola Yasla","Align Right":"Sağa Yasla","Insert Horizontal Line":"Yatay Çizgi Ekle","Insert Image":"Resim Ekle","Insert file":"Dosya Ekle","Insert youtube/vimeo video":"Youtube/Vimeo Videosu Ekle","Insert link":"Bağlantı Ekle","Font size":"Font Boyutu","Font family":"Font Ailesi","Insert format block":"Blok Ekle",Normal:"Normal","Heading 1":"Başlık 1","Heading 2":"Başlık 2","Heading 3":"Başlık 3","Heading 4":"Başlık 4",Quote:"Alıntı",Code:"Kod",Insert:"Ekle","Insert table":"Tablo Ekle","Decrease Indent":"Girintiyi Azalt","Increase Indent":"Girintiyi Arttır","Select Special Character":"Özel Karakter Seç","Insert Special Character":"Özel Karakter Ekle","Paint format":"Resim Biçimi","Change mode":"Mod Değiştir",Margins:"Boşluklar",top:"Üst",right:"Sağ",bottom:"Alt",left:"Sol",Styles:"CSS Stilleri",Classes:"CSS Sınıfları",Align:"Hizalama",Right:"Sağ",Center:"Ortalı",Left:"Sol","--Not Set--":"Belirsiz",Src:"Kaynak",Title:"Başlık",Alternative:"Alternatif Yazı",Link:"Link","Open link in new tab":"Bağlantıyı yeni sekmede aç",Image:"Resim",file:"Dosya","Image properties":"Resim özellikleri",Cancel:"İptal",Ok:"Tamam","Your code is similar to HTML. Keep as HTML?":"Kodunuz HTML koduna benziyor. HTML olarak devam etmek ister misiniz?","Paste as HTML":"HTML olarak yapıştır",Keep:"Sakla",Clean:"Temizle","Insert as Text":"Yazı olarak ekle","Word Paste Detected":"Word biçiminde yapıştırma algılandı","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Der Inhalt, den Sie einfügen, stammt aus einem Microsoft Word / Excel-Dokument. Möchten Sie das Format erhalten oder löschen?","Insert only Text":"Sadece yazıyı ekle","File Browser":"Dosya Listeleyici","Error on load list":"Liste yüklenirken hata oluştu","Error on load folders":"Klasörler yüklenirken hata oluştur","Are you sure?":"Emin misiniz?","Enter Directory name":"Dizin yolu giriniz","Create directory":"Dizin oluştur","type name":"İsim yaz","Drop image":"Resim bırak","Drop file":"Dosya bırak","or click":"veya tıkla","Alternative text":"Alternatif yazı",Browse:"Gözat",Upload:"Yükle",Background:"Arka plan",Text:"Yazı",Top:"Üst",Middle:"Orta",Bottom:"Aşağı","Insert column before":"Öncesine kolon ekle","Insert column after":"Sonrasına kolon ekle","Insert row above":"Üstüne satır ekle","Insert row below":"Altına satır ekle","Delete table":"Tabloyu sil","Delete row":"Satırı sil","Delete column":"Kolonu sil","Empty cell":"Hücreyi temizle",Delete:"Sil","Strike through":"Üstü çizili",Underline:"Alt çizgi",Break:"Satır sonu","Search for":"Ara","Replace with":"Şununla değiştir",Replace:"Değiştir",Edit:"Düzenle","Vertical align":"Dikey hizala","Horizontal align":"Yatay hizala",Filter:"Filtre","Sort by changed":"Değişime göre sırala","Sort by name":"İsme göre sırala","Sort by size":"Boyuta göre sırala","Add folder":"Klasör ekle",Split:"Ayır","Split vertical":"Dikey ayır","Split horizontal":"Yatay ayır",Merge:"Birleştir","Add column":"Kolon ekle","Add row":"Satır ekle",Border:"Kenarlık","Embed code":"Kod ekle",Update:"Güncelle",superscript:"Üst yazı",subscript:"Alt yazı","Cut selection":"Seçilimi kes",Paste:"Yapıştır","Choose Content to Paste":"Yapıştırılacak içerik seç","Chars: %d":"Harfler: %d","Words: %d":"Kelimeler: %d",All:"Tümü","Select %s":"Seç: %s","Select all":"Tümünü seç",source:"Kaynak",bold:"Kalın",italic:"italik",brush:"Fırça",link:"Bağlantı",undo:"Geri al",redo:"Yinele",table:"Tablo",image:"Resim",eraser:"Silgi",paragraph:"Paragraf",fontsize:"Font boyutu",video:"Video",font:"Font",about:"Hakkında",print:"Yazdır",underline:"Alt çizgi",strikethrough:"Üstü çizili",indent:"Girinti",outdent:"Çıkıntı",fullsize:"Tam ekran",shrink:"Küçült",hr:"Ayraç",ul:"Sırasız liste",ol:"Sıralı liste",cut:"Kes",selectall:"Tümünü seç","Open link":"Bağlantıyı aç","Edit link":"Bağlantıyı düzenle","No follow":"Nofollow özelliği",Unlink:"Bağlantıyı kaldır",Eye:"Yorumu",pencil:"Düzenlemek için"," URL":"URL",Reset:"Sıfırla",Save:"Kaydet","Save as ...":"Farklı kaydet",Resize:"Boyutlandır",Crop:"Kırp",Width:"Genişlik",Height:"Yükseklik","Keep Aspect Ratio":"En boy oranını koru",Yes:"Evet",No:"Hayır",Remove:"Sil",Select:"Seç","You can only edit your own images. Download this image on the host?":"Sadece kendi resimlerinizi düzenleyebilirsiniz. Bu görseli kendi hostunuza indirmek ister misiniz?","The image has been successfully uploaded to the host!":"Görsel başarıyla hostunuza yüklendi",palette:"Palet","There are no files":"Bu dizinde dosya yok",Rename:"Yeniden isimlendir","Enter new name":"Yeni isim girin",preview:"Ön izleme",download:"İndir","Paste from clipboard":"Panodan yapıştır ","Your browser doesn't support direct access to the clipboard.":"Tarayıcınız panoya doğrudan erişimi desteklemiyor.","Copy selection":"Seçimi kopyala",copy:"Kopyala","Border radius":"Sınır yarıçapı","Show all":"Tümünü Göster",Apply:"Uygula","Please fill out this field":"Lütfen bu alanı doldurun","Please enter a web address":"Lütfen bir web adresi girin",Default:"Varsayılan",Circle:"Daire",Dot:"Nokta",Quadrate:"Kare",Find:"Bul","Find Previous":"Öncekini Bul","Find Next":"Sonrakini Bul","Insert className":"Sınıf adı girin","Press Alt for custom resizing":"Özel yeniden boyutlandırma için Alt tuşuna basın","License: %s":"Lisans: %s"},ua:{"Type something":"Напишіть щось","About Jodit":"Про Jodit","Jodit Editor":"Редактор Jodit","Jodit User's Guide":"Jodit інструкція користувача","contains detailed help for using":"містить детальну інформацію щодо користування","For information about the license, please go to our website:":"Щоб дізнатись більше про ліцензію , будь ласка, перейдіть на наш сайт:","Buy full version":"Купити повну версію","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Авторські права © XDSoft.net - Чупурнов Валерій. Всі права захищені.",Anchor:"Анкор","Open in new tab":"Відкрити у новій вкладці","Open in fullsize":"Відкрити редактор в повному розмірі","Clear Formatting":"Очистити форматування","Fill color or set the text color":"Колір заливки або колір текста",Redo:"Повторити",Undo:"Відмінити",Bold:"Жирний",Italic:"Курсів","Insert Unordered List":"Вставити невпорядкований список","Insert Ordered List":"Вставити нумерованний список","Align Center":"Вирівняти по центру","Align Justify":"Вирівняти по ширині","Align Left":"Вирівняти по лівому краю","Align Right":"Вирівняти по правому краю","Insert Horizontal Line":"Вставити горизонтальну лінію","Insert Image":"Вставити зображення","Insert file":"Вставити файл","Insert youtube/vimeo video":"Вставити відео","Insert link":"Вставити посилання","Font size":"Розмір шрифту","Font family":"Шрифт","Insert format block":"Вставити блочний елемент",Normal:"Нормальний текст","Heading 1":"Заголовок 1","Heading 2":"Заголовок 2","Heading 3":"Заголовок 3","Heading 4":"Заголовок 4",Quote:"Цитата",Code:"Код",Insert:"Вставити","Insert table":"Вставити таблицю","Decrease Indent":"Збільшити відступ","Increase Indent":"Зменшити відступ","Select Special Character":"Оберіть спеціальный символ","Insert Special Character":"Вставити спеціальный символ","Paint format":"Формат краски","Change mode":"Джерело",Margins:"Відступи",top:"зверху",right:"справа",bottom:"знизу",left:"зліва",Styles:"Стилі",Classes:"Класи",Align:"Вирівнювання",Right:"По правому краю",Center:"По центру",Left:"По лівому краю","--Not Set--":"--не встановлено--",Src:"src",Title:"Заголовок",Alternative:"Альтернативний текст (alt)",Link:"Посилання","Open link in new tab":"Відкрити посилання в новій вкладці",file:"Файл",Advanced:"Розширені","Image properties":"Властивості зображення",Cancel:"Відміна",Ok:"Ок","Your code is similar to HTML. Keep as HTML?":"Текст, який Ви намагаєтесь вставити схожий на HTML. Вставити його як HTML?","Paste as HTML":"Вставити його як HTML",Keep:"Зберегти оригінал",Clean:"Почистити","Insert as Text":"Вставити як текст","Insert only Text":"Вставити тільки текст","Word Paste Detected":"Можливо це фрагмент Word або Excel","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"Ви вставляєте контент з документа Microsoft Word або Excel. Бажаєте зберегти форматування?","File Browser":"Браузер файлів","Error on load list":"Помилка при завантаженні списку зображень","Error on load folders":"Помилка при завантаженні списку папок","Are you sure?":"Ви впевнені?","Enter Directory name":"Введіть назву папки","Create directory":"Створити папку","type name":"введіть назву","Drop image":"Перетягніть зображення сюди","Drop file":"Перетягніть файл сюди","or click":"або клікніть","Alternative text":"Альтернативный текст",Browse:"Сервер",Upload:"Завантаження",Background:"Фон",Text:"Текст",Top:" Вгору",Middle:"По центру",Bottom:"Донизу","Insert column before":"Вставити стовпець до","Insert column after":"Вставити стовпець після","Insert row above":"Вставити рядок вище","Insert row below":"Вставити рядок нижче","Delete table":"Видалити таблицю","Delete row":"Видалити рядок","Delete column":"Видалити стовпчик","Empty cell":"Очистити кліинку",source:"HTML",bold:"жирний",italic:"курсів",brush:"заливка",link:"посилання",undo:"відмінити",redo:"повторити",table:"таблиця",image:"зображення",eraser:"видалення",paragraph:"параграф",fontsize:"розмір шрифту",video:"відео",font:"шрифт",about:"про редактор",print:"друк",underline:"підкреслений",strikethrough:"закреслений",indent:"відступ",outdent:"заступ",fullsize:"на весь екран",shrink:"звичайний розмір",hr:"лінія",ul:"Список",ol:"Нумерований список",cut:"Вирізати",selectall:"Виділити все","Embed code":"Код","Open link":"Відкрити посилання","Edit link":"Редагувати посилання","No follow":"Атрибут nofollow",Unlink:"Видалити посилання",Eye:"Перегляд",pencil:"Редагування",Update:"Оновити"," URL":"URL",Edit:"Редагувати","Horizontal align":"Горизонтальне вирівнювання",Filter:"Фільтр","Sort by changed":"Сортувати за зміною","Sort by name":"Сортувати за ім'ям","Sort by size":"Сортувати за розміром","Add folder":"Додати папку",Reset:"Відновити",Save:"Зберегти","Save as ...":"Зберегти як",Resize:"Змінити розмір",Crop:"Обрізати розмір",Width:"Ширина",Height:"Висота","Keep Aspect Ratio":"Зберегти пропорції",Yes:"Так",No:"Ні",Remove:"Видалити",Select:"Вибрати","Chars: %d":"Символів: %d","Words: %d":"Слів: %d",All:"Вибрати все","Select %s":"Вибрати: %s","Select all":"Вибрати все","Vertical align":"Вертикальне вирівнювання",Split:"Розділити","Split vertical":"Розділити по вертикалі","Split horizontal":"Розділити по горизонталі",Merge:"Об'єднати в одну","Add column":"Додати стовпчик","Add row":"Додати рядок",Delete:"Видалити",Border:"Рамка","License: %s":"Ліцензія: %s","Strike through":"Закреслений",Underline:"Підкреслений",superscript:"верхній індекс",subscript:"індекс","Cut selection":"Обрізати вибране",Break:"Межа","Search for":"Шукати","Replace with":"Замінити на",Replace:"Замінити",Paste:"Вставити","Choose Content to Paste":"Обрати контент для вставки","You can only edit your own images. Download this image on the host?":"Ви можете редагувати лише власні зображення. Завантажити зображення на ваш сервер?","The image has been successfully uploaded to the host!":"Зображення успішно завантажено на сервер!",palette:"палітра","There are no files":"Файли відсутні",Rename:"Змінити назву","Enter new name":"Введіть нове імя'",preview:"Попередній перегляд",download:"Завантажити","Paste from clipboard":"Вставити з буфера обміну","Your browser doesn't support direct access to the clipboard.":"Ваш браузер не підтримує доступ до буфера обміну.","Copy selection":"Копіювати виділене",copy:"копія","Border radius":"Радіус рамки","Show all":"Показати все",Apply:"Застосувати","Please fill out this field":"Будь ласка, заповніть це поле","Please enter a web address":"Будь ласка, введіть веб-адресу",Default:"За замовченням",Circle:"Коло",Dot:"Крапка",Quadrate:"Квадрат",Find:"Знайти","Find Previous":"Знайти попередні","Find Next":"Знайти наступні","Insert className":"Вставити клас","Press Alt for custom resizing":"Натисніть Alt для зміни розміру"},zh_cn:{"Type something":"输入一些内容",Advanced:"高级","About Jodit":"关于Jodit","Jodit Editor":"Jodit Editor","Free Non-commercial Version":"Free Non-commercial Version","Jodit User's Guide":"开发者指南","contains detailed help for using":"使用帮助","For information about the license, please go to our website:":"有关许可证的信息,请访问我们的网站:","Buy full version":"购买完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. 版权所有",Anchor:"Anchor","Open in new tab":"在新窗口打开","Open in fullsize":"全屏编辑","Clear Formatting":"清除样式","Fill color or set the text color":"颜色",Redo:"重做",Undo:"撤销",Bold:"粗体",Italic:"斜体","Insert Unordered List":"符号列表","Insert Ordered List":"编号","Align Center":"居中","Align Justify":"对齐文本","Align Left":"左对齐","Align Right":"右对齐","Insert Horizontal Line":"分割线","Insert Image":"图片","Insert file":"文件","Insert youtube/vimeo video":"视频","Insert link":"链接","Font size":"字号","Font family":"字体","Insert format block":"格式块",Normal:"默认","Heading 1":"标题1","Heading 2":"标题2","Heading 3":"标题3","Heading 4":"标题4",Quote:"引用",Code:"代码",Insert:"插入","Insert table":"表格","Decrease Indent":"减少缩进","Increase Indent":"增加缩进","Select Special Character":"选择特殊符号","Insert Special Character":"特殊符号","Paint format":"格式复制","Change mode":"改变模式",Margins:"外边距(Margins)",top:"top",right:"right",bottom:"bottom",left:"left",Styles:"样式",Classes:"Classes",Align:"对齐方式",Right:"居右",Center:"居中",Left:"居左","--Not Set--":"无",Src:"Src",Title:"Title",Alternative:"Alternative",Link:"Link","Open link in new tab":"在新窗口打开链接",Image:"图片",file:"file","Image properties":"图片属性",Cancel:"取消",Ok:"确定","Your code is similar to HTML. Keep as HTML?":"你粘贴的文本是一段html代码,是否保留源格式","Paste as HTML":"html粘贴",Keep:"保留源格式",Clean:"匹配目标格式","Insert as Text":"把html代码视为普通文本","Word Paste Detected":"文本粘贴","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在粘贴 Word/Excel 的文本,是否保留源格式?","Insert only Text":"只保留文本","File Browser":"文件管理","Error on load list":"加载list错误","Error on load folders":"加载folders错误","Are you sure?":"你确定吗?","Enter Directory name":"输入路径","Create directory":"创建路径","type name":"type name","Drop image":"拖动图片到此","Drop file":"拖动文件到此","or click":"或点击","Alternative text":"Alternative text",Browse:"浏览",Upload:"上传",Background:"背景色",Text:"文字",Top:"顶部",Middle:"中间",Bottom:"底部","Insert column before":"在之前插入列","Insert column after":"在之后插入列","Insert row above":"在之前插入行","Insert row below":"在之后插入行","Delete table":"删除表格","Delete row":"删除行","Delete column":"删除列","Empty cell":"清除内容","Chars: %d":"字符数: %d","Words: %d":"单词数: %d","Strike through":"删除线",Underline:"下划线",superscript:"上标",subscript:"下标","Cut selection":"剪切","Select all":"全选",Break:"Break","Search for":"查找","Replace with":"替换为",Replace:"替换",Edit:"编辑",Paste:"粘贴","Choose Content to Paste":"选择内容并粘贴",All:"全部",source:"源码",bold:"粗体",italic:"斜体",brush:"颜色",link:"链接",undo:"撤销",redo:"重做",table:"表格",image:"图片",eraser:"橡皮擦",paragraph:"段落",fontsize:"字号",video:"视频",font:"字体",about:"关于",print:"打印",underline:"下划线",strikethrough:"上出现",indent:"增加缩进",outdent:"减少缩进",fullsize:"全屏",shrink:"收缩",hr:"分割线",ul:"无序列表",ol:"顺序列表",cut:"剪切",selectall:"全选","Open link":"打开链接","Edit link":"编辑链接","No follow":"No follow",Unlink:"取消链接",Eye:"预览"," URL":"URL",Reset:"重置",Save:"保存","Save as ...":"保存为",Resize:"调整大小",Crop:"剪切",Width:"宽",Height:"高","Keep Aspect Ratio":"保持长宽比",Yes:"是",No:"不",Remove:"移除",Select:"选择","Select %s":"选择: %s",Update:"更新","Vertical align":"垂直对齐",Merge:"合并","Add column":"添加列","Add row":"添加行",Border:"边框","Embed code":"嵌入代码",Delete:"删除","Horizontal align":"水平对齐",Filter:"筛选","Sort by changed":"修改时间排序","Sort by name":"名称排序","Sort by size":"大小排序","Add folder":"新建文件夹",Split:"拆分","Split vertical":"垂直拆分","Split horizontal":"水平拆分","You can only edit your own images. Download this image on the host?":"你只能编辑你自己的图片。Download this image on the host?","The image has been successfully uploaded to the host!":"图片上传成功",palette:"调色板",pencil:"铅笔","There are no files":"此目录中沒有文件。",Rename:"重命名","Enter new name":"输入新名称",preview:"预览",download:"下载","Paste from clipboard":"粘贴从剪贴板","Your browser doesn't support direct access to the clipboard.":"你浏览器不支持直接访问的剪贴板。","Copy selection":"复制选中内容",copy:"复制","Border radius":"边界半径","Show all":"显示所有",Apply:"应用","Please fill out this field":"请填写这个字段","Please enter a web address":"请输入一个网址",Default:"默认",Circle:"圆圈",Dot:"点",Quadrate:"方形",Find:"搜索","Find Previous":"查找上一个","Find Next":"查找下一个","Insert className":"插入班级名称","Press Alt for custom resizing":"按Alt自定义调整大小","License: %s":"许可证: %s"},zh_tw:{"Type something":"輸入一些內容",Advanced:"進階","About Jodit":"關於Jodit","Jodit Editor":"Jodit Editor","Jodit User's Guide":"開發者指南","contains detailed help for using":"使用幫助","For information about the license, please go to our website:":"相關授權條款資訊,請造訪我們的網站:","Buy full version":"購買完整版本","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.",Anchor:"錨點","Open in new tab":"在新分頁開啟","Open in fullsize":"全螢幕編輯","Clear Formatting":"清除樣式","Fill color or set the text color":"顏色",Redo:"取消復原",Undo:"復原",Bold:"粗體",Italic:"斜體","Insert Unordered List":"項目符號清單","Insert Ordered List":"編號清單","Align Center":"置中","Align Justify":"文字對齊","Align Left":"靠左","Align Right":"靠右","Insert Horizontal Line":"分割線","Insert Image":"圖片","Insert file":"檔案","Insert youtube/vimeo video":"插入 youtube/vimeo 影片","Insert link":"插入連結","Font size":"文字大小","Font family":"字型","Insert format block":"格式化區塊",Normal:"內文","Heading 1":"標題1","Heading 2":"標題2","Heading 3":"標題3","Heading 4":"標題4",Quote:"引文",Code:"程式碼",Insert:"插入","Insert table":"表格","Decrease Indent":"減少縮排","Increase Indent":"增加縮排","Select Special Character":"選擇特殊符號","Insert Special Character":"特殊符號","Paint format":"格式複製","Change mode":"檢視原始碼",Margins:"邊距",top:"上",right:"右",bottom:"下",left:"左",Styles:"樣式",Classes:"Classes",Align:"對齊方式",Right:"靠右",Center:"置中",Left:"靠左","--Not Set--":"無",Src:"Src",Title:"Title",Alternative:"替代",Link:"Link","Open link in new tab":"在新分頁開啟連結",Image:"圖片",file:"檔案","Image properties":"圖片屬性",Cancel:"取消",Ok:"確定","Your code is similar to HTML. Keep as HTML?":"您的程式碼與 HTML 類似,是否貼上 HTML 格式?","Paste as HTML":"貼上 HTML",Keep:"保留原始格式",Clean:"清除格式","Insert as Text":"以純文字貼上","Word Paste Detected":"貼上 Word 格式","The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?":"正在貼上 Word/Excel 文件的內容,是否保留原始格式?","Insert only Text":"僅貼上內文","File Browser":"檔案瀏覽","Error on load list":"清單載入錯誤","Error on load folders":"資料夾載入錯誤","Are you sure?":"您確定嗎?","Enter Directory name":"輸入路徑","Create directory":"創建路徑","type name":"type name","Drop image":"拖曳圖片至此","Drop file":"拖曳檔案至此","or click":"或點擊","Alternative text":"替代文字",Browse:"瀏覽",Upload:"上傳",Background:"背景色",Text:"文字",Top:"頂部",Middle:"中間",Bottom:"底部","Insert column before":"插入左方欄","Insert column after":"插入右方欄","Insert row above":"插入上方列","Insert row below":"插入下方列","Delete table":"刪除表格","Delete row":"刪除整列","Delete column":"刪除整欄","Empty cell":"清除內容","Chars: %d":"字元數: %d","Words: %d":"單字數: %d","Strike through":"刪除線",Underline:"底線",superscript:"上標",subscript:"下標","Cut selection":"剪下","Select all":"全選",Break:"斷行","Search for":"尋找","Replace with":"取代為",Replace:"取代",Paste:"貼上","Choose Content to Paste":"選擇內容並貼上",All:"全部",source:"原始碼",bold:"粗體",italic:"斜體",brush:"顏色",link:"連結",undo:"復原",redo:"取消復原",table:"表格",image:"圖片",eraser:"橡皮擦",paragraph:"段落",fontsize:"文字大小",video:"影片",font:"字型",about:"關於",print:"列印",underline:"底線",strikethrough:"刪除線",indent:"增加縮排",outdent:"減少縮排",fullsize:"全螢幕",shrink:"縮減",hr:"分隔線",ul:"項目符號清單",ol:"編號清單",cut:"剪下",selectall:"全選","Open link":"打開連結","Edit link":"編輯連結","No follow":"No follow",Unlink:"取消連結",Eye:"查看"," URL":"URL",Reset:"重設",Save:"儲存","Save as ...":"另存為...",Resize:"調整大小",Crop:"裁切",Width:"寬",Height:"高","Keep Aspect Ratio":"維持長寬比",Yes:"是",No:"否",Remove:"移除",Select:"選擇","Select %s":"選擇: %s",Update:"更新","Vertical align":"垂直對齊",Merge:"合併","Add column":"新增欄","Add row":"新增列",Border:"邊框","Embed code":"嵌入程式碼",Delete:"刪除","Horizontal align":"水平對齊",Filter:"篩選","Sort by changed":"修改時間排序","Sort by name":"名稱排序","Sort by size":"大小排序","Add folder":"新增資料夾",Split:"分割","Split vertical":"垂直分割","Split horizontal":"水平分割","You can only edit your own images. Download this image on the host?":"您只能編輯您自己的圖片。是否下載此圖片?","The image has been successfully uploaded to the host!":"圖片上傳成功",palette:"調色盤",pencil:"鉛筆","There are no files":"沒有檔案",Rename:"重新命名","Enter new name":"輸入新名稱",preview:"預覽",download:"下載","Paste from clipboard":"從剪貼簿貼上","Your browser doesn't support direct access to the clipboard.":"瀏覽器無法存取剪貼簿。","Copy selection":"複製已選取項目",copy:"複製","Border radius":"邊框圓角","Show all":"顯示全部",Apply:"應用","Please fill out this field":"請輸入此欄位","Please enter a web address":"請輸入網址",Default:"預設",Circle:"圓圈",Dot:"點",Quadrate:"方形",Find:"尋找","Find Previous":"尋找上一個","Find Next":"尋找下一個","Insert className":"插入 class 名稱","Press Alt for custom resizing":"按住 Alt 以調整自訂大小",Edit:"編輯","License: %s":"許可證: %s"}};var wg=function(e){return e?e.default||e:{}},kg={};To(wg(_g))&&wg(_g).forEach((function(e,t){kg[t]=e})),Object.keys(jg).forEach((function(e){var t=wg(jg[e]);To(t)?(jg[e]={},t.forEach((function(t,o){jg[e][kg[o]]=t}))):jg[e]=t}));const Sg=jg;function xg(e){return function(t){return!0!==e.e.fire("backSpaceIsMovedIgnore",t)}}function Og(e,t,o,n){if(t&&ui.isElement(o)){ui.moveContent(t,o,!n,xg(e));for(var r=t;r&&r!==e.editor&&ui.isEmpty(r);){var i=r.parentElement;ui.safeRemove(r),r=i}return!0}return!1}function Cg(e,t,o){var n=ui.findSibling(t,o),r=ui.findSibling(t,!o);if(!ui.closest(t,ui.isElement,e.editor)&&ui.isList(n)&&ui.isList(r)&&ui.isTag(n.lastElementChild,"li")&&ui.isTag(r.firstElementChild,"li")){var i=e.s,a=i.setCursorBefore,l=i.setCursorAfter,s=n.lastElementChild,c=r.firstElementChild;return sr(o?ui.prepend:ui.append,c,t),ui.moveContent(r,n,!o,xg(e)),ui.safeRemove(r),sr(o?ui.append:ui.prepend,s,t),sr(o?a:l,t),!0}return!1}function zg(e,t,o,n){var r,i,a,l=o?-1:1,s=ui.sibling(t,!o),c=ui.sibling(t,o),u=null,d=!1;for(c||(c=Eg(t,o,e.editor));c&&(ui.isText(c)||ui.isInlineBlock(c));){for(;ui.isInlineBlock(c);)c=o?null==c?void 0:c.lastChild:null==c?void 0:c.firstChild;if(!c)break;if((null===(r=c.nodeValue)||void 0===r?void 0:r.length)&&(a=Tg(c,o,l,s),!c.nodeValue.length&&ui.isInlineBlock(c.parentNode)&&(c.nodeValue=bt)),(null===(i=c.nodeValue)||void 0===i?void 0:i.length)||(u=c),!Ro(a)&&a!==bt){Ig(o,c,t,n,a,e),d=!0;break}var f=Eg(c,o,e.editor);u&&(ui.safeRemove(u),u=null),c=f}return u&&(ui.safeRemove(u),u=null),d&&(function(e){for(var t=e.parentElement;t&&ui.isInlineBlock(t)&&ui.isTag(t,"a");){var o=t.parentElement;ui.isEmpty(t)&&(ui.after(t,e),ui.safeRemove(t)),t=o}}(t),function(e,t){t.parentElement!==e.editor&&ui.isBlock(t.parentElement)&&ui.each(t.parentElement,ui.isEmptyTextNode)&&ui.after(t,e.createInside.element("br"))}(e,t),e.s.setCursorBefore(t),ui.isTag(t.previousSibling,"br")&&!ui.findNotEmptySibling(t,!1)&&ui.after(t,e.createInside.element("br"))),d}function Eg(e,t,o){var n=ui.sibling(e,t);return!n&&e.parentNode&&e.parentNode!==o&&(n=function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=function(e){return t?e.firstChild:e.lastChild},i=ui.findNotEmptyNeighbor(e,!t,o);if(n&&ui.isElement(i)&&!ui.isInlineBlock(i))return null;if(i)do{if(!r(i))return i;i=r(i)}while(i);return null}(e,!t,o,!0)),n}function Tg(e,t,o,n){var r=Bo(e.nodeValue),i=r.length,a=t?i-1:0;if(r[a]===bt)for(;r[a]===bt;)a+=o;var l=r[a];if(r[a+o]===bt){for(a+=o;r[a]===bt;)a+=o;a+=t?1:-1}return function(e,t,o){var n;if(!e||!ui.isText(e)||(t?/^ /:/ $/).test(null!==(n=e.nodeValue)&&void 0!==n?n:"")||!pn(e.nodeValue||"").length)for(var r=t?o.length-1:0;(t?r>=0:r<o.length)&&" "===o[r];r+=t?-1:1)o[r]=yt}(n,t,r=t&&a<0?[]:r.slice(t?0:a+1,t?a:i)),e.nodeValue=r.join(""),l}function Ig(e,t,o,n,r,i){sr(e?ui.after:ui.before,t,o),("sentence"===n||"word"===n&&" "!==r&&r!==yt)&&zg(i,o,e,n)}function Pg(e,t,o){var n=!1,r=e.s,i=r.setCursorBefore,a=r.setCursorIn,l=ui.closest(t,ui.isElement,e.editor);if(!l||!ui.isEmpty(l))return!1;var s=ui.findNotEmptyNeighbor(t,o,e.editor);do{if(!l||!ui.isEmpty(l)||ui.isCell(l))break;ui.after(l,t);var c=ui.closest(l,(function(e){return ui.isElement(e)&&e!==l}),e.editor);ui.safeRemove(l),n=!0,l=c}while(l);return!(!n||!Cg(e,t,o))||(!s||ui.isText(s)||ui.isTag(s,Pt)?i(t):a(s,!o),n)}tr.prototype.controls.about={exec:function(e){var t=e.dlg({closeOnClickOverlay:!0}),o=e.i18n.bind(e);t.setMod("theme",e.o.theme).setHeader(o("About Jodit")).setContent('<div class="jodit-about">\n\t\t\t\t\t<div>'.concat(o("Jodit Editor")," v.").concat(e.getVersion(),"</div>\n\t\t\t\t\t<div>").concat(o("License: %s",en(e.o.license)?Vi(e.o.license):"MIT"),'</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="').concat(vt,'" target="_blank">').concat(vt,'</a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<a href="https://xdsoft.net/jodit/docs/" target="_blank">').concat(o("Jodit User's Guide"),"</a>\n\t\t\t\t\t\t").concat(o("contains detailed help for using"),"\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>").concat(o("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved."),"</div>\n\t\t\t\t</div>")),In(t.dialog,{minHeight:200,minWidth:420}),t.open(!0,!0)},tooltip:"About Jodit",mode:$t+Qt},Ra.add("about",(function(e){e.registerButton({name:"about",group:"info"})})),kl.set("about",'<svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"/> </svg> '),tr.prototype.delete={hotkeys:{delete:["delete","cmd+backspace"],deleteWord:["ctrl+delete","cmd+alt+backspace","ctrl+alt+backspace"],deleteSentence:["ctrl+shift+delete","cmd+shift+delete"],backspace:["backspace"],backspaceWord:["ctrl+backspace"],backspaceSentence:["ctrl+shift+backspace","cmd+shift+backspace"]}};var Rg=[function(e,t,o){var n=ui.findSibling(t,o);return!(!ui.isElement(n)||!ui.isTag(n,Pt)&&!ui.isEmpty(n)||(ui.safeRemove(n),ui.isTag(n,"br")&&!ui.findNotEmptySibling(t,!1)&&ui.after(t,e.createInside.element("br")),e.s.setCursorBefore(t),ui.isTag(n,"br")&&Pg(e,t,o),0))},function(e,t,o){var n=ui.findSibling(t,o);return!n&&t.parentElement&&t.parentElement!==e.editor&&(n=ui.findSibling(t.parentElement,o)),!(!ui.isElement(n)||ui.isContentEditable(n,e.editor)||(sr(o?ui.before:ui.after,n,t),ui.safeRemove(n),xv(e,t,o),sr(o?e.s.setCursorBefore:e.s.setCursorAfter,t),0))},zg,function(e,t){var o=t.parentElement;return!!ui.isCell(o)},Pg,function(e,t,o){var n=ui.closest(t,ui.isElement,e.editor);if(!n)return!1;var r=ui.findNotEmptySibling(n,o);return!(!r||!ui.isEmpty(r)||(ui.safeRemove(r),e.s.setCursorBefore(t),0))},Cg,function(e,t,o){for(var n=t,r=n;n&&!ui.findNotEmptySibling(n,o)&&n.parentElement!==e.editor;)r=n=n.parentElement;if(ui.isElement(r)&&ui.isContentEditable(r,e.editor)){var i=ui.findNotEmptySibling(r,o);if(i&&(function(e,t,o,n){var r=ui.isTag(o,Tt),i=ui.isTag(t,Tt),a=function(e,t){return t?e.firstElementChild:e.lastElementChild};return i?(o=e.createInside.element(e.o.enterBlock),ui.before(t,o),Og(e,a(t,n),o,n)):!(!o||!r||i)&&Og(e,t,a(o,!n),n)}(e,r,i,o)||Og(e,r,i,o)))return e.s.setCursorBefore(t),!0}return!1},function(e,t,o){var n,r=ui.closest(t,ui.isElement,e.editor),i=e.s;if(ui.isLeaf(r)&&(null===(n=null==r?void 0:r.parentElement)||void 0===n?void 0:n[o?"firstElementChild":"lastElementChild"])===r&&i.cursorInTheEdge(o,r)){var a=r.parentElement,l=e.createInside.element(e.o.enterBlock);return sr(o?ui.before:ui.after,a,l),ui.moveContent(r,l),ui.safeRemove(r),ui.isEmpty(a)&&ui.safeRemove(a),sr(o?i.setCursorBefore:i.setCursorAfter,t),!0}return!1}];function Ag(e,t,o){return Ag=Ng()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Bg(r,o.prototype),r},Ag.apply(null,arguments)}function Lg(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mg(e){return Mg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mg(e)}function Bg(e,t){return Bg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bg(e,t)}function Dg(e){var t="function"==typeof Map?new Map:void 0;return Dg=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Ag(e,arguments,Mg(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Bg(n,e)},Dg(e)}function Ng(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ng=function(){return!!e})()}var Hg=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=Mg(o=t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,Ng()?Reflect.construct(o,n||[],Mg(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bg(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){var t=this;e.registerCommand("deleteButton",{exec:function(){return t.onDelete(!1)},hotkeys:e.o.delete.hotkeys.delete},{stopPropagation:!1}).registerCommand("backspaceButton",{exec:function(){return t.onDelete(!0)},hotkeys:e.o.delete.hotkeys.backspace},{stopPropagation:!1}).registerCommand("deleteWordButton",{exec:function(){return t.onDelete(!1,"word")},hotkeys:e.o.delete.hotkeys.deleteWord}).registerCommand("backspaceWordButton",{exec:function(){return t.onDelete(!0,"word")},hotkeys:e.o.delete.hotkeys.backspaceWord}).registerCommand("deleteSentenceButton",{exec:function(){return t.onDelete(!1,"sentence")},hotkeys:e.o.delete.hotkeys.deleteSentence}).registerCommand("backspaceSentenceButton",{exec:function(){return t.onDelete(!0,"sentence")},hotkeys:e.o.delete.hotkeys.backspaceSentence})}},{key:"beforeDestruct",value:function(e){e.e.off("afterCommand.delete")}},{key:"onDelete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"char",o=this.j,n=o.selection;if(n.isFocused()||n.focus(),function(e){return!e.s.isCollapsed()&&(e.execCommand("Delete"),!0)}(o))return!1;var r=n.range,i=o.createInside.text(bt);try{if(ui.safeInsertNode(r,i),!ui.isOrContains(o.editor,i))return;if(o.e.fire("backSpaceBeforeCases",e,i))return!1;if(xv(o,i,e),Rg.some((function(n){if(Oo(n)&&n(o,i,e,t))return ft||console.info("Remove case:",n.name),!0})))return!1}catch(e){throw ft||console.error(e),e}finally{o.e.fire("backSpaceAfterDelete",e,i),this.safeRemoveEmptyNode(i)}return!1}},{key:"safeRemoveEmptyNode",value:function(e){var t,o,n=this.j.s.range;n.startContainer===e&&(e.previousSibling?ui.isText(e.previousSibling)?n.setStart(e.previousSibling,null!==(o=null===(t=e.previousSibling.nodeValue)||void 0===t?void 0:t.length)&&void 0!==o?o:0):n.setStartAfter(e.previousSibling):e.nextSibling&&(ui.isText(e.nextSibling)?n.setStart(e.nextSibling,0):n.setStartBefore(e.nextSibling)),n.collapse(!0),this.j.s.selectRange(n)),ui.safeRemove(e)}}],n&&Lg(o.prototype,n),t}(Dg(Hp));function Fg(e,t,o){return Fg=Yg()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Wg(r,o.prototype),r},Fg.apply(null,arguments)}function qg(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Vg(e){return Vg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vg(e)}function Wg(e,t){return Wg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wg(e,t)}function Ug(e){var t="function"==typeof Map?new Map:void 0;return Ug=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Fg(e,arguments,Vg(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Wg(n,e)},Ug(e)}function Yg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yg=function(){return!!e})()}Hg.requires=["hotkeys"],Ra.add("backspace",Hg);var Kg=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=Vg(o=t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,Yg()?Reflect.construct(o,n||[],Vg(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wg(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){var t=this;e.e.on("afterCommand.delete",(function(e){"delete"===e&&t.__afterDeleteCommand()})),e.registerCommand("delete",{exec:this.__onDeleteCommand.bind(this)},{stopPropagation:!1})}},{key:"beforeDestruct",value:function(e){e.e.off("afterCommand.delete")}},{key:"__afterDeleteCommand",value:function(){var e=this.j,t=e.s.current();if(t&&ui.isTag(t.firstChild,"br")&&e.s.removeNode(t.firstChild),!(dn(e.editor.textContent||"")||e.editor.querySelector("img,table,jodit,iframe,hr")||t&&ui.closest(t,"table",e.editor))){e.editor.innerHTML="";var o=e.s.setCursorIn(e.editor);e.s.removeNode(o)}}},{key:"__onDeleteCommand",value:function(){var e=this.jodit;if(!e.s.isCollapsed()){e.s.expandSelection();var t=e.s.range;t.deleteContents();var o=e.createInside.fake();t.insertNode(o);var n=ui.findSibling(o,!0),r=ui.findSibling(o,!1);return this.__moveContentInLeftSibling(o,n,r),t.setStartBefore(o),t.collapse(!0),this.__moveCursorInEditableSibling(e,n,o,t),this.__addBrInEmptyBlock(o,r,t),ui.safeRemove(o),e.s.selectRange(t),!1}}},{key:"__moveContentInLeftSibling",value:function(e,t,o){t=this.__defineRightLeftBox(t),!ui.isList(o)&&!ui.isTag(o,"table")&&ui.isBlock(o)&&ui.isBlock(t)&&(ui.append(t,e),ui.moveContent(o,t),ui.safeRemove(o)),ui.isList(o)&&ui.isLeaf(o.firstElementChild)&&ui.isEmpty(o.firstElementChild)&&ui.safeRemove(o.firstElementChild)}},{key:"__defineRightLeftBox",value:function(e){if(!ui.isList(e))return e;var t=e.lastElementChild;return ui.isLeaf(t)||(t=this.j.createInside.element("li"),ui.append(e,t)),t}},{key:"__addBrInEmptyBlock",value:function(e,t,o){var n=this.j;if(e.isConnected&&ui.isBlock(e.parentNode)&&!e.nextSibling&&!e.previousSibling){var r=n.createInside.element("br");ui.after(e,r),o.setStartBefore(r),o.collapse(!0)}if(ui.isTag(t,"table")){var i=Jr("td,th",t).shift();ui.isCell(i)&&ui.isEmpty(i)&&ui.append(i,n.createInside.element("br"))}}},{key:"__moveCursorInEditableSibling",value:function(e,t,o,n){var r;if(!t||!ui.isText(t)){var i=null!==(r=ui.closest(o,ui.isBlock,e.editor))&&void 0!==r?r:e.editor,a=ui.prev(o,ui.isText,i);a&&(n.setStartAfter(a),n.collapse(!0),ui.safeRemove(o))}}}])&&qg(o.prototype,n),t}(Ug(Hp));function Gg(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}Kg.requires=["backspace"],Ra.add("deleteCommand",Kg),tr.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},tr.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},tr.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},tr.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},tr.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration-line":"underline"},tooltip:"Underline"},tr.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration-line":"line-through"},tooltip:"Strike through"},Ra.add("bold",(function(e){var t=function(t){var o,n=tr.defaultOptions.controls[t],r=function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){Gg(e,t,o[t])}))}return e}({},n.css);return Object.keys(r).forEach((function(e){o||(o={}),o[e]=To(r[e])?r[e][0]:r[e]})),e.s.commitStyle({element:n.tags?n.tags[0]:void 0}),e.synchronizeValues(),!1};["bold","italic","underline","strikethrough"].forEach((function(t){e.registerButton({name:t,group:"font-style"})})),["superscript","subscript"].forEach((function(t){e.registerButton({name:t,group:"script"})})),e.registerCommand("bold",{exec:t,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:t,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:t,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:t}).registerCommand("subscript",{exec:t}).registerCommand("superscript",{exec:t})})),kl.set("bold",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M747 1521q74 32 140 32 376 0 376-335 0-114-41-180-27-44-61.5-74t-67.5-46.5-80.5-25-84-10.5-94.5-2q-73 0-101 10 0 53-.5 159t-.5 158q0 8-1 67.5t-.5 96.5 4.5 83.5 12 66.5zm-14-746q42 7 109 7 82 0 143-13t110-44.5 74.5-89.5 25.5-142q0-70-29-122.5t-79-82-108-43.5-124-14q-50 0-130 13 0 50 4 151t4 152q0 27-.5 80t-.5 79q0 46 1 69zm-541 889l2-94q15-4 85-16t106-27q7-12 12.5-27t8.5-33.5 5.5-32.5 3-37.5.5-34v-65.5q0-982-22-1025-4-8-22-14.5t-44.5-11-49.5-7-48.5-4.5-30.5-3l-4-83q98-2 340-11.5t373-9.5q23 0 68.5.5t67.5.5q70 0 136.5 13t128.5 42 108 71 74 104.5 28 137.5q0 52-16.5 95.5t-39 72-64.5 57.5-73 45-84 40q154 35 256.5 134t102.5 248q0 100-35 179.5t-93.5 130.5-138 85.5-163.5 48.5-176 14q-44 0-132-3t-132-3q-106 0-307 11t-231 12z"/> </svg> ').set("italic",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 1662l17-85q6-2 81.5-21.5t111.5-37.5q28-35 41-101 1-7 62-289t114-543.5 52-296.5v-25q-24-13-54.5-18.5t-69.5-8-58-5.5l19-103q33 2 120 6.5t149.5 7 120.5 2.5q48 0 98.5-2.5t121-7 98.5-6.5q-5 39-19 89-30 10-101.5 28.5t-108.5 33.5q-8 19-14 42.5t-9 40-7.5 45.5-6.5 42q-27 148-87.5 419.5t-77.5 355.5q-2 9-13 58t-20 90-16 83.5-6 57.5l1 18q17 4 185 31-3 44-16 99-11 0-32.5 1.5t-32.5 1.5q-29 0-87-10t-86-10q-138-2-206-2-51 0-143 9t-121 11z"/> </svg> ').set("strikethrough",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1760 896q14 0 23 9t9 23v64q0 14-9 23t-23 9h-1728q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h1728zm-1277-64q-28-35-51-80-48-97-48-188 0-181 134-309 133-127 393-127 50 0 167 19 66 12 177 48 10 38 21 118 14 123 14 183 0 18-5 45l-12 3-84-6-14-2q-50-149-103-205-88-91-210-91-114 0-182 59-67 58-67 146 0 73 66 140t279 129q69 20 173 66 58 28 95 52h-743zm507 256h411q7 39 7 92 0 111-41 212-23 55-71 104-37 35-109 81-80 48-153 66-80 21-203 21-114 0-195-23l-140-40q-57-16-72-28-8-8-8-22v-13q0-108-2-156-1-30 0-68l2-37v-44l102-2q15 34 30 71t22.5 56 12.5 27q35 57 80 94 43 36 105 57 59 22 132 22 64 0 139-27 77-26 122-86 47-61 47-129 0-84-81-157-34-29-137-71z"/> </svg> ').set("subscript",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm639 217v206h-514l-4-27q-3-45-3-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 80-65 188-65 110 0 178 59.5t68 158.5q0 66-34.5 118.5t-84 86-99.5 62.5-87 63-41 73h232v-80h126z"/> </svg> ').set("superscript",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1025 1369v167h-248l-159-252-24-42q-8-9-11-21h-3l-9 21q-10 20-25 44l-155 250h-258v-167h128l197-291-185-272h-137v-168h276l139 228q2 4 23 42 8 9 11 21h3q3-9 11-21l25-42 140-228h257v168h-125l-184 267 204 296h109zm637-679v206h-514l-3-27q-4-28-4-46 0-64 26-117t65-86.5 84-65 84-54.5 65-54 26-64q0-38-29.5-62.5t-70.5-24.5q-51 0-97 39-14 11-36 38l-105-92q26-37 63-66 83-65 188-65 110 0 178 59.5t68 158.5q0 56-24.5 103t-62 76.5-81.5 58.5-82 50.5-65.5 51.5-30.5 63h232v-80h126z"/> </svg> ').set("underline",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M176 223q-37-2-45-4l-3-88q13-1 40-1 60 0 112 4 132 7 166 7 86 0 168-3 116-4 146-5 56 0 86-2l-1 14 2 64v9q-60 9-124 9-60 0-79 25-13 14-13 132 0 13 .5 32.5t.5 25.5l1 229 14 280q6 124 51 202 35 59 96 92 88 47 177 47 104 0 191-28 56-18 99-51 48-36 65-64 36-56 53-114 21-73 21-229 0-79-3.5-128t-11-122.5-13.5-159.5l-4-59q-5-67-24-88-34-35-77-34l-100 2-14-3 2-86h84l205 10q76 3 196-10l18 2q6 38 6 51 0 7-4 31-45 12-84 13-73 11-79 17-15 15-15 41 0 7 1.5 27t1.5 31q8 19 22 396 6 195-15 304-15 76-41 122-38 65-112 123-75 57-182 89-109 33-255 33-167 0-284-46-119-47-179-122-61-76-83-195-16-80-16-237v-333q0-188-17-213-25-36-147-39zm1488 1409v-64q0-14-9-23t-23-9h-1472q-14 0-23 9t-9 23v64q0 14 9 23t23 9h1472q14 0 23-9t9-23z"/> </svg> '),kl.set("palette",'<svg xmlns=\'http://www.w3.org/2000/svg\' x="0px" y="0px" viewBox="0 0 459 459"> <g> <path d="M229.5,0C102,0,0,102,0,229.5S102,459,229.5,459c20.4,0,38.25-17.85,38.25-38.25c0-10.2-2.55-17.85-10.2-25.5 c-5.1-7.65-10.2-15.3-10.2-25.5c0-20.4,17.851-38.25,38.25-38.25h45.9c71.4,0,127.5-56.1,127.5-127.5C459,91.8,357,0,229.5,0z M89.25,229.5c-20.4,0-38.25-17.85-38.25-38.25S68.85,153,89.25,153s38.25,17.85,38.25,38.25S109.65,229.5,89.25,229.5z M165.75,127.5c-20.4,0-38.25-17.85-38.25-38.25S145.35,51,165.75,51S204,68.85,204,89.25S186.15,127.5,165.75,127.5z M293.25,127.5c-20.4,0-38.25-17.85-38.25-38.25S272.85,51,293.25,51s38.25,17.85,38.25,38.25S313.65,127.5,293.25,127.5z M369.75,229.5c-20.4,0-38.25-17.85-38.25-38.25S349.35,153,369.75,153S408,170.85,408,191.25S390.15,229.5,369.75,229.5z" /> </g> </svg> ');var Jg=function(e,t,o){var n="jodit-color-picker",r=Fi(o),i=e.c.div(n),a=e.o.textIcons?"<span>".concat(e.i18n("palette"),"</span>"):kl.get("palette"),l=function(e){var t=[];return rn(e)?Object.keys(e).forEach((function(o){t.push('<div class="'.concat(n,"__group ").concat(n,"__group-").concat(o,'">')),t.push(l(e[o])),t.push("</div>")})):To(e)&&e.forEach((function(e){t.push("<span class='".concat(n,"__color-item ").concat(r===e?n+"__color-item_active_true":"","' title=\"").concat(e,'" style="background-color:').concat(e,'" data-color="').concat(e,'"></span>'))})),t.join("")};i.appendChild(e.c.fromHTML('<div class="'.concat(n,'__groups">').concat(l(e.o.colors),"</div>"))),i.appendChild(e.c.fromHTML('<div data-ref="extra" class="'.concat(n,'__extra"></div>')));var s=Zr(i).extra;return e.o.showBrowserColorPicker&&Do()&&(s.appendChild(e.c.fromHTML('<div class="'.concat(n,'__native">').concat(a,'<input type="color" value="#ffffff"/></div>'))),e.e.on(i,"change",(function(e){e.stopPropagation();var o=e.target;if(o&&o.tagName&&ui.isTag(o,"input")){var n=o.value||"";Oo(t)&&t(n),e.preventDefault()}}))),e.e.on(i,"mousedown touchend",(function(o){o.stopPropagation(),o.preventDefault();var r=o.target;if(r&&r.tagName&&!ui.isTag(r,"svg")&&!ui.isTag(r,"path")||!r.parentNode||(r=ui.closest(r.parentNode,"span",e.editor)),ui.isTag(r,"span")&&r.classList.contains(n+"__color-item")){var i=Xn(r,"-color")||"";t&&Oo(t)&&t(i)}})),e.e.fire("afterGenerateColorPicker",i,s,t,r),i},Xg=function(e,t,o){var n=e.c.div("jodit-tabs"),r=e.c.div("jodit-tabs__wrapper"),i=e.c.div("jodit-tabs__buttons");Xn(i,{role:"tablist","aria-orientation":"horizontal"});var a={},l=[],s="";n.appendChild(i),n.appendChild(r);var c=function(e){a[e]&&(l.forEach((function(e){e.state.activated=!1})),Object.values(a).forEach((function(e){return e.tab.classList.remove("jodit-tab_active")})),a[e].button.state.activated=!0,a[e].tab.classList.add("jodit-tab_active"))};t.forEach((function(n){var u=n.icon,d=n.name,f=n.content,p=e.c.div("jodit-tab");Xn(p,{role:"tabpanel"});var h=Os(e,u||d,d);h.state.role="tab",e.e.on(h.container,"pointerdown",(function(e){return e.preventDefault()})),s||(s=d),i.appendChild(h.container),l.push(h),h.container.classList.add("jodit-tabs__button","jodit-tabs__button_columns_"+t.length),Oo(f)?p.appendChild(e.c.div("jodit-tab_empty")):p.appendChild(qa.isInstanceOf(f,Il)?f.container:f),r.appendChild(p),h.onAction((function(){return c(d),Oo(f)&&!ui.isElement(f)&&f.call(e),o&&(o.activeTab=d),!1})),a[d]={button:h,tab:p}})),Object.values(a).forEach((function(e){e.button.container.style.width=(100/t.length).toFixed(10)+"%"}));var u=o&&o.activeTab&&a[o.activeTab]?o.activeTab:s;if(c(u),o){var d=o.activeTab;Object.defineProperty(o,"activeTab",{configurable:!0,enumerable:!1,get:function(){return d},set:function(e){d=e,c(e)}})}return n},Zg=function(e,t,o,n){var r,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=[],l=e.o.uploader;if(t.upload&&(l.url||l.insertImageAsBase64URI||l.customUploadFunction)){var s=e.c.fromHTML('<div class="jodit-drag-and-drop__file-box">'+"<strong>".concat(e.i18n(i?"Drop image":"Drop file"),"</strong>")+"<span><br>".concat(e.i18n("or click"),"</span>")+'<input type="file" accept="'.concat(i?"image/*":"*",'" tabindex="-1" dir="auto" multiple=""/>')+"</div>");e.uploader.bind(s,(function(o){var n=Oo(t.upload)?t.upload:l.defaultHandlerSuccess;Oo(n)&&n.call(e,o),e.e.fire("closeAllPopups")}),(function(t){e.message.error(t.message),e.e.fire("closeAllPopups")})),a.push({icon:"upload",name:"Upload",content:s})}if(t.filebrowser&&(e.o.filebrowser.ajax.url||e.o.filebrowser.items.url)&&a.push({icon:"folder",name:"Browse",content:function(){n&&n(),t.filebrowser&&e.filebrowser.open(t.filebrowser,i)}}),t.url){var c=new xs(e,{type:"submit",variant:"primary",text:"Insert"}),u=new Oc(e,[new cc(e,{required:!0,label:"URL",name:"url",type:"text",placeholder:"https://"}),new cc(e,{name:"text",label:"Alternative text"}),new Xs(e,[c])]);r=null,!o||ui.isText(o)||ui.isComment(o)||!ui.isTag(o,"img")&&!Jr("img",o).length||(r="IMG"===o.tagName?o:Jr("img",o)[0],Qg(u.container,"input[name=url]",Xn(r,"src")),Qg(u.container,"input[name=text]",Xn(r,"alt")),c.state.text="Update"),o&&ui.isTag(o,"a")&&(Qg(u.container,"input[name=url]",Xn(o,"href")),Qg(u.container,"input[name=text]",Xn(o,"title")),c.state.text="Update"),u.onSubmit((function(o){Oo(t.url)&&t.url.call(e,o.url,o.text)})),a.push({icon:"link",name:"URL",content:u.container})}return Xg(e,a)};function Qg(e,t,o){var n=e.querySelector(t);return n?(o&&(n.value=o),n.value):""}function $g(e){if(!e)return!1;var t=ui.findSibling(e,!0);return!(!t||!ui.isTag(t,"br"))&&t}function em(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:zt,n=e,r=t.editor;do{if(!n||n===r)break;if(o.test(n.nodeName))return ui.isLeaf(n)?n:em(n.parentNode,t,/^li$/i)||n;n=n.parentNode}while(n&&n!==r);return null}function tm(e,t,o,n){var r="br"===o.toLowerCase(),i=t.createInside,a=i.element(o),l=i.element("br");return r||a.appendChild(l),n&&n.cssText&&a.setAttribute("style",n.cssText),ui.after(e,a),ui.before(r?a:l,e),oi(a,t.editor,t.ed),a}function om(e,t,o){return om=sm()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&im(r,o.prototype),r},om.apply(null,arguments)}function nm(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function rm(e){return rm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rm(e)}function im(e,t){return im=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},im(e,t)}function am(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function lm(e){var t="function"==typeof Map?new Map:void 0;return lm=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return om(e,arguments,rm(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),im(n,e)},lm(e)}function sm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(sm=function(){return!!e})()}kl.set("brush",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 1152q0-36-20-69-1-1-15.5-22.5t-25.5-38-25-44-21-50.5q-4-16-21-16t-21 16q-7 23-21 50.5t-25 44-25.5 38-15.5 22.5q-20 33-20 69 0 53 37.5 90.5t90.5 37.5 90.5-37.5 37.5-90.5zm512-128q0 212-150 362t-362 150-362-150-150-362q0-145 81-275 6-9 62.5-90.5t101-151 99.5-178 83-201.5q9-30 34-47t51-17 51.5 17 33.5 47q28 93 83 201.5t99.5 178 101 151 62.5 90.5q81 127 81 275z"/> </svg> '),tr.prototype.controls.brushCell={isVisible:function(e){return!e.o.disablePlugins.includes("color")},icon:"brush",popup:function(e,t,o){if($o(e)){var n=e.getInstance("Table",e.o).getAllSelectedCells();if(!n.length)return!1;var r=function(t){return Jg(e,(function(r){n.forEach((function(e){In(e,t,r)})),e.lock(),e.synchronizeValues(),o(),e.unlock()}),In(n[0],t))};return Xg(e,[{name:"Background",content:r("background-color")},{name:"Text",content:r("color")},{name:"Border",content:r("border-color")}])}},tooltip:"Background"},tr.prototype.controls.brush={isVisible:function(e){return!e.o.disablePlugins.includes("color")},update:function(e,t){var o=ar(t,"color"),n=function(o,n){n&&n!==In(e.editor,o).toString()&&(t.state.icon.fill=n)};if(o){var r=ar(t,"color");n("color"===r?r:"background-color",o)}else{var i=e.s.current();if(i&&!t.state.disabled){var a=ui.closest(i,ui.isElement,e.editor)||e.editor;n("color",In(a,"color").toString()),n("background-color",In(a,"background-color").toString())}t.state.icon.fill="",t.state.activated=!1}},popup:function(e,t,o,n){var r="",i="",a=[],l=null;return t&&t!==e.editor&&ui.isNode(t)&&(ui.isElement(t)&&e.s.isCollapsed()&&!ui.isTag(t,new Set(["br","hr"]))&&(l=t),ui.up(t,(function(e){if(ui.isHTMLElement(e)){var t=In(e,"color",!0),o=In(e,"background-color",!0);if(t)return r=t.toString(),!0;if(o)return i=o.toString(),!0}}),e.editor)),a=[{name:"Background",content:Jg(e,(function(t){l?l.style.backgroundColor=t:e.execCommand("background",!1,t),ar(n,"color",t),ar(n,"color-mode","background"),o()}),i)},{name:"Text",content:Jg(e,(function(t){l?l.style.color=t:e.execCommand("forecolor",!1,t),ar(n,"color",t),ar(n,"color-mode","color"),o()}),r)}],"background"!==e.o.colorPickerDefaultTab&&(a=a.reverse()),Xg(e,a,l)},exec:function(e,t,o){var n=o.button,r=ar(n,"color-mode"),i=ar(n,"color");if(!r)return!1;if(t&&t!==e.editor&&ui.isNode(t)&&ui.isElement(t))switch(r){case"color":t.style.color=i;break;case"background":t.style.backgroundColor=i}else e.execCommand("background"===r?r:"forecolor",!1,i)},tooltip:"Fill color or set the text color"},Ra.add("color",(function(e){e.registerButton({name:"brush",group:"color"});var t=function(t,o,n){var r=Fi(n);switch(t){case"background":e.s.commitStyle({attributes:{style:{backgroundColor:r||""}}});break;case"forecolor":e.s.commitStyle({attributes:{style:{color:r||""}}})}return e.synchronizeValues(),!1};e.registerCommand("forecolor",t).registerCommand("background",t)}));var cm=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=rm(o=t),function(e,t){return!t||"object"!==am(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,sm()?Reflect.construct(o,n||[],rm(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&im(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){var t=this,o=e.o.enter.toLowerCase(),n=o===Xt.toLowerCase();e.o.enterBlock||(e.o.enterBlock=n?Zt:o),e.registerCommand("enter",(function(e,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.onEnter(n)}))}},{key:"onEnterKeyDown",value:function(e){if(e.key===Bt){var t=this.j,o=t.e.fire("beforeEnter",e);return void 0!==o?o:(t.s.isCollapsed()||t.execCommand("Delete"),t.s.focus(),this.onEnter(e),t.e.fire("afterEnter",e),t.synchronizeValues(),!1)}}},{key:"onEnter",value:function(e){var t=this.jodit,o=t.createInside.fake();try{ui.safeInsertNode(t.s.range,o),function(e,t){var o=e.s,n=ui.closest(t,["a"],e.editor);n&&(o.cursorOnTheRight(n,t)?ui.after(n,t):o.cursorOnTheLeft(n,t)&&ui.before(n,t))}(t,o);var n=em(o,t),r=ui.isLeaf(n);if((!r||(null==e?void 0:e.shiftKey))&&function(e,t,o){var n=Boolean(ui.closest(e,["pre","blockquote"],t.editor)),r=!n&&ui.closest(e,["td","th"],t.editor);if(t.o.enter.toLowerCase()===Xt.toLowerCase()||r||o&&!n||!o&&n){if(n&&function(e){var t=$g($g(e));return!!t&&(ui.safeRemove($g(e)),ui.safeRemove(t),!0)}(e))return!1;var i=t.createInside.element("br");if(ui.before(e,i),!ui.findNotEmptySibling(i,!1)){var a=i.cloneNode();ui.after(i,a),ui.before(a,e)}return oi(i,t.editor,t.ed),!0}return!1}(o,t,null==e?void 0:e.shiftKey))return!1;if(n||function(e,t){return Boolean(ui.prev(e,(function(e){return ui.isBlock(e)||ui.isImage(e)}),t.editor))}(o,t)||(n=function(e,t){var o=e;ui.up(o,(function(e){e&&e.hasChildNodes()&&e!==t.editor&&(o=e)}),t.editor);var n=ui.wrapInline(o,t.o.enter,t);if(ui.isEmpty(n)){var r=t.createInside.element("br");n.appendChild(r),ui.before(r,e)}return n}(o,t)),!n)return tm(o,t,r?"li":t.o.enter),!1;if(!function(e,t,o){return!!ui.canSplitBlock(o)||(ui.before(e,t.createInside.element("br")),!1)}(o,t,n))return!1;if(r&&this.__isEmptyListLeaf(n))return function(e,t,o){var n=ui.closest(o,["ol","ul"],t.editor);if(n){var r=n.parentElement,i=ui.isLeaf(r),a=i?r:n,l=t.s.createRange();l.setStartAfter(o),l.setEndAfter(n);var s=l.extractContents();ui.after(a,e),ui.safeRemove(o),Jr("li",n).length||ui.safeRemove(n);var c=tm(e,t,i?"li":t.o.enter);s.querySelector("li")&&(i?c.appendChild(s):ui.after(c,s))}}(o,t,n),!1;!function(e,t,o){var n=t.s,r=t.o.enter.toLowerCase(),i=ui.isLeaf(o),a=o.tagName.toLowerCase()===r||i,l=n.cursorOnTheRight(o,e),s=n.cursorOnTheLeft(o,e);if(!a&&(l||s))return l?ui.after(o,e):ui.before(o,e),tm(e,t,r),void(s&&!l&&ui.prepend(o,e));oi(n.splitSelection(o,e),t.editor,t.ed)}(o,t,n)}finally{o.isConnected&&t.s.setCursorBefore(o),ui.safeRemove(o)}}},{key:"__isEmptyListLeaf",value:function(e){var t=this.j.e.fire("enterIsEmptyListLeaf",e);return Ho(t)?t:ui.isEmpty(e)}},{key:"beforeDestruct",value:function(e){e.e.off("keydown.enter")}}],n&&nm(o.prototype,n),t}(lm(Hp));function um(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function dm(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function fm(e,t,o){return fm=mm()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&vm(r,o.prototype),r},fm.apply(null,arguments)}function pm(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hm(e){return hm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hm(e)}function vm(e,t){return vm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vm(e,t)}function gm(e){var t="function"==typeof Map?new Map:void 0;return gm=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return fm(e,arguments,hm(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),vm(n,e)},gm(e)}function mm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mm=function(){return!!e})()}(function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":am(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)})([Sa(":keydown.enter")],cm.prototype,"onEnterKeyDown",null),Ra.add("enter",cm),tr.prototype.defaultFontSizePoints="px",kl.set("font",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M789 559l-170 450q33 0 136.5 2t160.5 2q19 0 57-2-87-253-184-452zm-725 1105l2-79q23-7 56-12.5t57-10.5 49.5-14.5 44.5-29 31-50.5l237-616 280-724h128q8 14 11 21l205 480q33 78 106 257.5t114 274.5q15 34 58 144.5t72 168.5q20 45 35 57 19 15 88 29.5t84 20.5q6 38 6 57 0 4-.5 13t-.5 13q-63 0-190-8t-191-8q-76 0-215 7t-178 8q0-43 4-78l131-28q1 0 12.5-2.5t15.5-3.5 14.5-4.5 15-6.5 11-8 9-11 2.5-14q0-16-31-96.5t-72-177.5-42-100l-450-2q-26 58-76.5 195.5t-50.5 162.5q0 22 14 37.5t43.5 24.5 48.5 13.5 57 8.5 41 4q1 19 1 58 0 9-2 27-58 0-174.5-10t-174.5-10q-8 0-26.5 4t-21.5 4q-80 14-188 14z"/> </svg> ').set("fontsize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1744 1408q33 0 42 18.5t-11 44.5l-126 162q-20 26-49 26t-49-26l-126-162q-20-26-11-44.5t42-18.5h80v-1024h-80q-33 0-42-18.5t11-44.5l126-162q20-26 49-26t49 26l126 162q20 26 11 44.5t-42 18.5h-80v1024h80zm-1663-1279l54 27q12 5 211 5 44 0 132-2t132-2q36 0 107.5.5t107.5.5h293q6 0 21 .5t20.5 0 16-3 17.5-9 15-17.5l42-1q4 0 14 .5t14 .5q2 112 2 336 0 80-5 109-39 14-68 18-25-44-54-128-3-9-11-48t-14.5-73.5-7.5-35.5q-6-8-12-12.5t-15.5-6-13-2.5-18-.5-16.5.5q-17 0-66.5-.5t-74.5-.5-64 2-71 6q-9 81-8 136 0 94 2 388t2 455q0 16-2.5 71.5t0 91.5 12.5 69q40 21 124 42.5t120 37.5q5 40 5 50 0 14-3 29l-34 1q-76 2-218-8t-207-10q-50 0-151 9t-152 9q-3-51-3-52v-9q17-27 61.5-43t98.5-29 78-27q19-42 19-383 0-101-3-303t-3-303v-117q0-2 .5-15.5t.5-25-1-25.5-3-24-5-14q-11-12-162-12-33 0-93 12t-80 26q-19 13-34 72.5t-31.5 111-42.5 53.5q-42-26-56-44v-383z"/> </svg> '),tr.prototype.controls.fontsize={command:"fontsize",data:{cssRule:"font-size",normalise:function(e,t){return/pt$/i.test(e)&&"pt"===t.o.defaultFontSizePoints?e.replace(/pt$/i,""):e}},list:[8,9,10,11,12,14,16,18,24,30,32,34,36,48,60,72,96],textTemplate:function(e,t){return t+e.o.defaultFontSizePoints},childTemplate:function(e,t,o){return"".concat(o).concat(e.o.defaultFontSizePoints)},tooltip:"Font size",value:function(e,t){var o,n=e.s.current();if(n){var r=ui.closest(n,ui.isElement,e.editor);if(r)return In(r,(null===(o=t.control.data)||void 0===o?void 0:o.cssRule)||"font-size").toString()}},isChildActive:function(e,t){var o,n,r=t.state.value,i=null!==(n=null===(o=t.control.data)||void 0===o?void 0:o.normalize)&&void 0!==n?n:function(e){return e};return Boolean(r&&t.control.args&&i(t.control.args[0].toString())===i(r.toString()))},isActive:function(e,t){var o,n,r=t.state.value;if(!r)return!1;var i=null!==(n=null===(o=t.control.data)||void 0===o?void 0:o.normalize)&&void 0!==n?n:function(e){return e},a=t.control.data.cacheListSet;if(!a){var l=Object.keys(t.control.list).map(i);a=new Set(l),t.control.data.cacheListSet=a}return a.has(i(r.toString()))}},tr.prototype.controls.font=function(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t.push.apply(t,o)}return t}(Object(t)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(t,o))})),e}(function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){dm(e,t,o[t])}))}return e}({},tr.prototype.controls.fontsize),{command:"fontname",textTemplate:function(e,t){return fn(function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return um(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?um(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.split(","),1)[0],"\"'")},list:{"":"Default","Arial, Helvetica, sans-serif":"Arial","'Courier New', Courier, monospace":"Courier New","Georgia, Palatino, serif":"Georgia","'Lucida Sans Unicode', 'Lucida Grande', sans-serif":"Lucida Sans Unicode","Tahoma, Geneva, sans-serif":"Tahoma","'Times New Roman', Times, serif":"Times New Roman","'Trebuchet MS', Helvetica, sans-serif":"Trebuchet MS","Helvetica, sans-serif":"Helvetica","Impact, Charcoal, sans-serif":"Impact","Verdana, Geneva, sans-serif":"Verdana"},childTemplate:function(e,t,o){var n=!1;try{n=-1===t.indexOf("dings")&&document.fonts.check("16px ".concat(t),o)}catch(e){}return'<span data-style="'.concat(t,'" style="').concat(n?"font-family: ".concat(t,"!important;"):"",'">').concat(o,"</span>")},data:{cssRule:"font-family",normalize:function(e){return e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9-]+/g,",")}},tooltip:"Font family"}),Ra.add("font",(function(e){e.registerButton({name:"font",group:"font"}).registerButton({name:"fontsize",group:"font"});var t=function(t,o,n){switch(t){case"fontsize":e.s.commitStyle({attributes:{style:{fontSize:Yi(n,e.o.defaultFontSizePoints)}}});break;case"fontname":e.s.commitStyle({attributes:{style:{fontFamily:n}}})}return e.synchronizeValues(),!1};e.registerCommand("fontsize",t).registerCommand("fontname",t)})),kl.set("paragraph",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"><path d="M1534 189v73q0 29-18.5 61t-42.5 32q-50 0-54 1-26 6-32 31-3 11-3 64v1152q0 25-18 43t-43 18h-108q-25 0-43-18t-18-43v-1218h-143v1218q0 25-17.5 43t-43.5 18h-108q-26 0-43.5-18t-17.5-43v-496q-147-12-245-59-126-58-192-179-64-117-64-259 0-166 88-286 88-118 209-159 111-37 417-37h479q25 0 43 18t18 43z"/></svg> '),tr.prototype.controls.paragraph={command:"formatBlock",value:function(e,t){var o,n,r=t.control,i=e.s.current(),a=ui.closest(i,ui.isBlock,e.editor);return null!==(o=null==a?void 0:a.nodeName.toLowerCase())&&void 0!==o?o:null===(n=r.data)||void 0===n?void 0:n.currentValue},update:function(e,t){var o=t.control;if(!e.s.current())return!1;var n=t.state.value,r=o.list;return rn(r)&&r[n.toString()]&&e.o.textIcons&&(t.state.text=r[n.toString()].toString()),!1},data:{currentValue:"p"},list:{p:"Paragraph",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote",pre:"Code"},isChildActive:function(e,t){var o,n;return Boolean(t.state.value===(null===(n=null===(o=t.control)||void 0===o?void 0:o.args)||void 0===n?void 0:n[0]))},isActive:function(e,t){return t.state.value!==e.o.enter&&rn(t.control.list)&&Boolean(t.control.list[t.state.value])},childTemplate:function(e,t,o){return"<".concat(t,' style="margin:0;padding:0"><span>').concat(e.i18n(o),"</span></").concat(t,">")},tooltip:"Insert format block"},Ra.add("formatBlock",(function(e){e.registerButton({name:"paragraph",group:"font"}),e.registerCommand("formatblock",(function(t,o,n){return e.s.commitStyle({element:n}),e.synchronizeValues(),!1}))})),tr.prototype.commandToHotkeys={removeFormat:["ctrl+shift+m","cmd+shift+m"],insertOrderedList:["ctrl+shift+7","cmd+shift+7"],insertUnorderedList:["ctrl+shift+8, cmd+shift+8"],selectall:["ctrl+a","cmd+a"]};var bm=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=hm(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,mm()?Reflect.construct(t,o||[],hm(e).constructor):t.apply(e,o))}(this,t,arguments)).onKeyPress=function(t){var o=e.specialKeys[t.which],n=(t.key||String.fromCharCode(t.which)).toLowerCase(),r=[o||n];return["alt","ctrl","shift","meta"].forEach((function(e){t[e+"Key"]&&o!==e&&r.push(e)})),qi(r.join("+"))},e.specialKeys={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vm(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){var t=this;fr(e.o.commandToHotkeys,!1).forEach((function(t){var o=e.o.commandToHotkeys[t];o&&(To(o)||Io(o))&&e.registerHotkeyToCommand(o,t)}));var o=!1;e.e.off(".hotkeys").on([e.ow,e.ew],"keydown.hotkeys",(function(e){if(e.key===Dt)return t.j.e.fire("escape",e)})).on("keydown.hotkeys",(function(n){var r=t.onKeyPress(n),i={shouldStop:!0};if(!1===t.j.e.fire(r+".hotkey",n.type,i)){if(i.shouldStop)return o=!0,e.e.stopPropagation("keydown"),!1;n.preventDefault()}}),{top:!0}).on("keyup.hotkeys",(function(){if(o)return o=!1,e.e.stopPropagation("keyup"),!1}),{top:!0})}},{key:"beforeDestruct",value:function(e){e.events&&e.e.off(".hotkeys")}}])&&pm(o.prototype,n),t}(gm(Hp));function ym(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}Ra.add("hotkeys",bm),tr.prototype.iframeBaseUrl="",tr.prototype.iframeTitle="Jodit Editor",tr.prototype.iframeDoctype="<!DOCTYPE html>",tr.prototype.iframeDefaultSrc="about:blank",tr.prototype.iframeStyle='html{margin:0;padding:0;min-height: 100%;}body{box-sizing:border-box;font-size:13px;line-height:1.6;padding:10px;margin:0;background:transparent;color:#000;position:relative;z-index:2;user-select:auto;margin:0px;overflow:auto;outline:none;}table{width:100%;border:none;border-collapse:collapse;empty-cells: show;max-width: 100%;}th,td{padding: 2px 5px;border:1px solid #ccc;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}p{margin-top:0;}.jodit_editor .jodit_iframe_wrapper{display: block;clear: both;user-select: none;position: relative;}.jodit_editor .jodit_iframe_wrapper:after {position:absolute;content:"";z-index:1;top:0;left:0;right: 0;bottom: 0;cursor: pointer;display: block;background: rgba(0, 0, 0, 0);} .jodit_disabled{user-select: none;-o-user-select: none;-moz-user-select: none;-khtml-user-select: none;-webkit-user-select: none;-ms-user-select: none}',tr.prototype.iframeCSSLinks=[],tr.prototype.iframeSandbox=null,Ra.add("iframe",(function(e){var t=e.options;e.e.on("afterSetMode",(function(){e.isEditorMode()&&e.s.focus()})).on("generateDocumentStructure.iframe",(function(e,o){var n=e||o.iframe.contentWindow.document;if(n.open(),n.write(t.iframeDoctype+'<html dir="'.concat(t.direction,'" class="jodit" lang="').concat(kr(t.language),'">')+"<head>"+"<title>".concat(t.iframeTitle,"</title>")+(t.iframeBaseUrl?'<base href="'.concat(t.iframeBaseUrl,'"/>'):"")+'</head><body class="jodit-wysiwyg"></body></html>'),n.close(),t.iframeCSSLinks&&t.iframeCSSLinks.forEach((function(e){var t=n.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),n.head&&n.head.appendChild(t)})),t.iframeStyle){var r=n.createElement("style");r.innerHTML=t.iframeStyle,n.head&&n.head.appendChild(r)}})).on("createEditor",(function(){if(t.iframe){var o=e.c.element("iframe");return o.style.display="block",o.src="about:blank",o.className="jodit-wysiwyg_iframe",o.setAttribute("allowtransparency","true"),o.setAttribute("tabindex",t.tabIndex.toString()),o.setAttribute("frameborder","0"),null!=t.iframeSandbox&&o.setAttribute("sandbox",t.iframeSandbox),e.workplace.appendChild(o),e.iframe=o,ur(e.e.fire("generateDocumentStructure.iframe",null,e),(function(){if(!e.iframe)return!1;var o=e.iframe.contentWindow.document;e.editorWindow=e.iframe.contentWindow;var n=t.editHTMLDocumentMode,r=function(){Xn(o.body,"contenteditable",e.getMode()!==$t&&!e.getReadOnly()||null)},i=function(e){var t=/<body.*<\/body>/im,o="{%%BODY%%}",n=t.exec(e);return n&&(e=e.replace(t,o).replace(/<span([^>]*?)>(.*?)<\/span>/gim,"").replace(/<span([^&]*?)>(.*?)<\/span>/gim,"").replace(o,n[0].replace(/(<body[^>]+?)min-height["'\s]*:[\s"']*[0-9]+(px|%)/im,"$1").replace(/(<body[^>]+?)([\s]*["'])?contenteditable["'\s]*=[\s"']*true["']?/im,"$1").replace(/<(style|script|span)[^>]+jodit[^>]+>.*?<\/\1>/g,"")).replace(/(class\s*=\s*)(['"])([^"']*)(jodit-wysiwyg|jodit)([^"']*\2)/g,"$1$2$3$5").replace(/(<[^<]+?)\sclass="[\s]*"/gim,"$1").replace(/(<[^<]+?)\sstyle="[\s;]*"/gim,"$1").replace(/(<[^<]+?)\sdir="[\s]*"/gim,"$1")),e};if(n){var a=e.element.tagName;if("TEXTAREA"!==a&&"INPUT"!==a)throw Dr("If enable `editHTMLDocumentMode` - source element should be INPUT or TEXTAREA");e.e.on("beforeGetNativeEditorValue",(function(){return i(e.o.iframeDoctype+o.documentElement.outerHTML)})).on("beforeSetNativeEditorValue",(function(t){var n=t.value;if(e.isLocked)return!1;if(/<(html|body)/i.test(n)){var a=o.documentElement.outerHTML;i(a)!==i(n)&&(o.open(),o.write(e.o.iframeDoctype+i(n)),o.close(),e.editor=o.body,e.e.fire("safeHTML",e.editor),r(),e.e.fire("prepareWYSIWYGEditor"),e.e.stopPropagation("beforeSetNativeEditorValue"))}else o.body.innerHTML=n;return!0}),{top:!0})}if(e.editor=o.body,e.e.on("afterSetMode afterInit afterAddPlace",r),"auto"===t.height){o.documentElement&&(o.documentElement.style.overflowY="hidden");var l=e.async.throttle((function(){for(var o=arguments.length,n=new Array(o),r=0;r<o;r++)n[r]=arguments[r];e.async.requestAnimationFrame((function(){if(e.editor&&e.iframe&&"auto"===t.height){var o=e.ew.getComputedStyle(e.editor),n=parseInt(o.marginTop||"0",10)+parseInt(o.marginBottom||"0",10);In(e.iframe,"height",e.editor.offsetHeight+n)}}))}),e.defaultTimeout/2);if(e.e.on("change afterInit afterSetMode resize",l).on([e.iframe,e.ew,o.documentElement],"load",l).on(o,"readystatechange DOMContentLoaded",l),"function"==typeof ResizeObserver){var s=new ResizeObserver(l);s.observe(o.body),e.e.on("beforeDestruct",(function(){s.disconnect()}))}}return o.documentElement&&e.e.on(o.documentElement,"mousedown touchend",(function(){e.s.isFocused()||(e.s.focus(),e.editor===o.body&&e.s.setCursorIn(o.body))})).on(e.ew,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",(function(t){var o;null===(o=e.events)||void 0===o||o.fire(e.ow,t)})),!1}))}}))})),kl.set("image",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 576q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1024 384v448h-1408v-192l320-320 160 160 512-512zm96-704h-1600q-13 0-22.5 9.5t-9.5 22.5v1216q0 13 9.5 22.5t22.5 9.5h1600q13 0 22.5-9.5t9.5-22.5v-1216q0-13-9.5-22.5t-22.5-9.5zm160 32v1216q0 66-47 113t-113 47h-1600q-66 0-113-47t-47-113v-1216q0-66 47-113t113-47h1600q66 0 113 47t47 113z"/> </svg> '),tr.prototype.controls.image={popup:function(e,t,o){var n=null;return t&&!ui.isText(t)&&ui.isHTMLElement(t)&&(ui.isTag(t,"img")||Jr("img",t).length)&&(n=ui.isTag(t,"img")?t:Jr("img",t)[0]),e.s.save(),Zg(e,{filebrowser:function(t){e.s.restore(),t.files&&t.files.forEach((function(o){return e.s.insertImage(t.baseurl+o,null,e.o.imageDefaultWidth)})),o()},upload:!0,url:function(){var t,r=(t=function(t,r){var i;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(a){switch(a.label){case 0:return e.s.restore(),/^[a-z\d_-]+(\.[a-z\d_-]+)+/i.test(t)&&(t="//"+t),(i=n||e.createInside.element("img")).setAttribute("src",t),i.setAttribute("alt",r),n?[3,2]:[4,e.s.insertImage(i,null,e.o.imageDefaultWidth)];case 1:a.sent(),a.label=2;case 2:return o(),[2]}}))},function(){var e=this,o=arguments;return new Promise((function(n,r){var i=t.apply(e,o);function a(e){ym(i,n,r,a,l,"next",e)}function l(e){ym(i,n,r,a,l,"throw",e)}a(void 0)}))});return function(e,t){return r.apply(this,arguments)}}()},n,o)},tags:["img"],tooltip:"Insert Image"},Ra.add("image",(function(e){e.registerButton({name:"image",group:"media"})}));const _m=[{name:"eye",tooltip:"Open link",exec:function(e,t){var o=Xn(t,"href");t&&o&&e.ow.open(o)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"];var jm=function(e){return e.args&&Io(e.args[0])?e.args[0].toLowerCase():""};const wm=["brushCell",{name:"valign",list:["Top","Middle","Bottom","Normal"],childTemplate:function(e,t,o){return o},exec:function(e,t,o){var n=o.control,r=jm(n);e.getInstance("Table",e.o).getAllSelectedCells().forEach((function(e){In(e,"vertical-align","normal"===r?"":r)}))},tooltip:"Vertical align"},{name:"splitv",list:{tablesplitv:"Split vertical",tablesplitg:"Split horizontal"},tooltip:"Split"},{name:"align",icon:"left"},"\n",{name:"merge",command:"tablemerge",tooltip:"Merge"},{name:"addcolumn",list:{tableaddcolumnbefore:"Insert column before",tableaddcolumnafter:"Insert column after"},exec:function(e,t,o){var n=o.control;if($o(e)){if(!n.args)return!1;var r=jm(n);e.execCommand(r,!1,t)}},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:function(e,t,o){var n=o.control;if($o(e)){if(!n.args)return!1;var r=jm(n);e.execCommand(r,!1,t)}},tooltip:"Add row"},{name:"delete",icon:"bin",list:{tablebin:"Delete table",tablebinrow:"Delete row",tablebincolumn:"Delete column",tableempty:"Empty cell"},exec:function(e,t,o){var n=o.control;if($o(e)){if(!n.args)return!1;var r=jm(n);e.execCommand(r,!1,t),e.e.fire("hidePopup")}},tooltip:"Delete"}];var km={name:"left",childTemplate:function(e,t,o){return o},list:["Left","Right","Center","Normal"],exec:function(e,t,o){var n=o.control;if(ui.isTag(t,new Set(["img","jodit","jodit-media"]))){var r=n.args&&Io(n.args[0])?n.args[0].toLowerCase():"";if(!r)return!1;Rn(t,r),ui.isTag(t,new Set(["jodit","jodit-media"]))&&t.firstElementChild&&Rn(t.firstElementChild,r),e.synchronizeValues(),e.e.fire("recalcPositionPopup")}},tooltip:"Horizontal align"};const Sm=[{name:"delete",icon:"bin",tooltip:"Delete",exec:function(e,t){t&&e.s.removeNode(t)}},{name:"pencil",exec:function(e,t){"img"===t.tagName.toLowerCase()&&e.e.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom","Normal"],tooltip:"Vertical align",exec:function(e,t,o){var n=o.control;if(ui.isTag(t,"img")){var r=n.args&&Io(n.args[0])?n.args[0].toLowerCase():"";if(!r)return!1;In(t,"vertical-align","normal"===r?"":r),e.e.fire("recalcPositionPopup")}}},km],xm=[{name:"bin",tooltip:"Delete",exec:function(e,t){t&&e.s.removeNode(t)}},km];function Om(e,t,o){return Om=Pm()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Em(r,o.prototype),r},Om.apply(null,arguments)}function Cm(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function zm(e){return zm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zm(e)}function Em(e,t){return Em=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Em(e,t)}function Tm(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Im(e){var t="function"==typeof Map?new Map:void 0;return Im=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Om(e,arguments,zm(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Em(n,e)},Im(e)}function Pm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Pm=function(){return!!e})()}tr.prototype.toolbarInline=!0,tr.prototype.toolbarInlineForSelection=!1,tr.prototype.toolbarInlineDisableFor=[],tr.prototype.toolbarInlineDisabledButtons=["source"],kl.set("addcolumn",'<svg viewBox="0 0 18.151 18.151" xmlns="http://www.w3.org/2000/svg"> <g> <path stroke-width="0" d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194 c0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/> <path stroke-width="0" d="M11.169,8.275c-2.723,0-4.938,2.215-4.938,4.938s2.215,4.938,4.938,4.938s4.938-2.215,4.938-4.938 S13.892,8.275,11.169,8.275z M11.169,16.81c-1.983,0-3.598-1.612-3.598-3.598c0-1.983,1.614-3.597,3.598-3.597 s3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/> <polygon stroke-width="0" points="11.792,11.073 10.502,11.073 10.502,12.578 9.03,12.578 9.03,13.868 10.502,13.868 10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 "/> </g> </svg> ').set("addrow",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 432 432"> <g> <polygon points="203.688,96 0,96 0,144 155.688,144 "/> <polygon points="155.719,288 0,288 0,336 203.719,336 "/> <path d="M97.844,230.125c-3.701-3.703-5.856-8.906-5.856-14.141s2.154-10.438,5.856-14.141l9.844-9.844H0v48h107.719 L97.844,230.125z"/> <polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176"/> </g> </svg> ').set("merge",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 312 312"> <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none"> <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32 -30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30 25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27 -503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960 11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40 -47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0 -775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80 -3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10 164 12 777 10 l773 -3 3 -454z"/> <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104 190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4 289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103 -97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35 -82 -78z"/> <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0 189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/> <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95 106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79 79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95 108 -6 10 -568 11 -577 1z"/> </g> </svg> ').set("th",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm-640-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm640 512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68z"/> </svg> ').set("splitg",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 42h4v-4h-4v4zm4-28h-4v4h4v-4zm-4 20h4v-4h-4v4zm8 8h4v-4h-4v4zm-4-36h-4v4h4v-4zm8 0h-4v4h4v-4zm16 0h-4v4h4v-4zm-8 8h-4v4h4v-4zm0-8h-4v4h4v-4zm12 28h4v-4h-4v4zm-16 8h4v-4h-4v4zm-16-16h36v-4h-36v4zm32-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-16 16h4v-4h-4v4zm8 8h4v-4h-4v4zm8 0h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> ').set("splitv",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 48 48"> <path d="M6 18h4v-4h-4v4zm0-8h4v-4h-4v4zm8 32h4v-4h-4v4zm0-16h4v-4h-4v4zm-8 0h4v-4h-4v4zm0 16h4v-4h-4v4zm0-8h4v-4h-4v4zm8-24h4v-4h-4v4zm24 24h4v-4h-4v4zm-16 8h4v-36h-4v36zm16 0h4v-4h-4v4zm0-16h4v-4h-4v4zm0-20v4h4v-4h-4zm0 12h4v-4h-4v4zm-8-8h4v-4h-4v4zm0 32h4v-4h-4v4zm0-16h4v-4h-4v4z"/> <path d="M0 0h48v48h-48z" fill="none"/> </svg> ').set("th-list",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M512 1248v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm-1280-1024v192q0 40-28 68t-68 28h-320q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h320q40 0 68 28t28 68zm1280 512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68zm0-512v192q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h960q40 0 68 28t28 68z"/> </svg> '),tr.prototype.popup={a:_m,img:Sm,cells:wm,toolbar:["bold","italic","|","ul","ol","eraser","|","fontsize","brush","paragraph","---","image","table","\n","link","|","align","|","undo","redo","|","copyformat","fullsize","---","dots"],jodit:xm,iframe:xm,"jodit-media":xm,selection:["bold","underline","italic","ul","ol","\n","outdent","indent","fontsize","brush","cut","\n","paragraph","link","align","dots"]};var Rm=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Tm(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Am=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=zm(t),function(e,t){return!t||"object"!==Tm(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Pm()?Reflect.construct(t,o||[],zm(e).constructor):t.apply(e,o))}(this,t,arguments)).type=null,e.snapRange=null,e.elmsList=fr(e.j.o.popup,!1).filter((function(t){return!e.isExcludedTarget(t)})),e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Em(e,t)}(t,e),o=t,n=[{key:"popup",get:function(){return new pu(this.jodit,!1)}},{key:"toolbar",get:function(){return Hd(this.jodit,this.popup)}},{key:"onClick",value:function(e){var t=this,o=this.elmsList,n=ui.isTag(e,"img")?e:ui.closest(e,o,this.j.editor);if(n&&this.canShowPopupForType(n.nodeName.toLowerCase()))return this.showPopup((function(){return $i(n,t.j)}),n.nodeName.toLowerCase(),n),!1}},{key:"showPopup",value:function(e,t,o){if(t=t.toLowerCase(),!this.canShowPopupForType(t))return!1;if(this.type!==t||o!==this.previousTarget){this.previousTarget=o;var n,r=this.j.o.popup[t];To(n=Oo(r)?r(this.j,o,this.popup.close):r)&&(this.toolbar.build(n,o),this.toolbar.buttonSize=this.j.o.toolbarButtonSize,n=this.toolbar.container),this.popup.setContent(n),this.type=t}return this.popup.open(e),!0}},{key:"hidePopup",value:function(e){!this.popup.isOpened||Io(e)&&e!==this.type||this.popup.close()}},{key:"onOutsideClick",value:function(){this.popup.close()}},{key:"canShowPopupForType",value:function(e){var t=this.j.o.popup[e.toLowerCase()];return!(this.j.o.readonly||!this.j.o.toolbarInline||!t||this.isExcludedTarget(e))}},{key:"isExcludedTarget",value:function(e){return Ei(this.j.o.toolbarInlineDisableFor).map((function(e){return e.toLowerCase()})).includes(e.toLowerCase())}},{key:"afterInit",value:function(e){var t=this;this.j.e.on("getDiffButtons.mobile",(function(o){if(t.toolbar===o){var n=t.toolbar.getButtonsNames();return Bo(e.registeredButtons).filter((function(e){return!t.j.o.toolbarInlineDisabledButtons.includes(e.name)})).filter((function(e){var t=Io(e)?e:e.name;return t&&"|"!==t&&"\n"!==t&&!n.includes(t)}))}})).on("hidePopup",this.hidePopup).on("showInlineToolbar",this.showInlineToolbar).on("showPopup",(function(e,o,n){t.showPopup(o,n||(Io(e)?e:e.nodeName),Io(e)?void 0:e)})).on("mousedown keydown",this.onSelectionStart).on("change",(function(){t.popup.isOpened&&t.previousTarget&&!t.previousTarget.parentNode&&(t.hidePopup(),t.previousTarget=void 0)})).on([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.addListenersForElements()}},{key:"onSelectionStart",value:function(){this.snapRange=this.j.s.range.cloneRange()}},{key:"onSelectionEnd",value:function(e){if(!(e&&e.target&&Il.closestElement(e.target,pu))){var t=this.snapRange,o=this.j.s.range;t&&!o.collapsed&&o.startContainer===t.startContainer&&o.startOffset===t.startOffset&&o.endContainer===t.endContainer&&o.endOffset===t.endOffset||this.onSelectionChange()}}},{key:"onSelectionChange",value:function(){if(this.j.o.toolbarInlineForSelection){var e="selection",t=this.j.s.sel,o=this.j.s.range;(null==t?void 0:t.isCollapsed)||this.isSelectedTarget(o)?this.type===e&&this.popup.isOpened&&this.hidePopup():this.j.s.current()&&this.showPopup((function(){return o.getBoundingClientRect()}),e)}}},{key:"isSelectedTarget",value:function(e){var t=e.startContainer;return ui.isElement(t)&&t===e.endContainer&&ui.isTag(t.childNodes[e.startOffset],new Set(fr(this.j.o.popup,!1)))&&e.startOffset===e.endOffset-1}},{key:"beforeDestruct",value:function(e){e.e.off("showPopup").off([this.j.ew,this.j.ow],"mouseup keyup",this.onSelectionEnd),this.removeListenersForElements()}},{key:"_eventsList",value:function(){var e=this.elmsList;return e.map((function(e){return Tn("click_".concat(e))})).concat(e.map((function(e){return Tn("touchstart_".concat(e))}))).join(" ")}},{key:"addListenersForElements",value:function(){this.j.e.on(this._eventsList(),this.onClick)}},{key:"removeListenersForElements",value:function(){this.j.e.off(this._eventsList(),this.onClick)}},{key:"showInlineToolbar",value:function(e){var t=this;this.showPopup((function(){return e||t.j.s.range.getBoundingClientRect()}),"toolbar")}}],n&&Cm(o.prototype,n),t}(Im(Hp));function Lm(e,t,o){return Lm=Fm()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Dm(r,o.prototype),r},Lm.apply(null,arguments)}function Mm(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Bm(e){return Bm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bm(e)}function Dm(e,t){return Dm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dm(e,t)}function Nm(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Hm(e){var t="function"==typeof Map?new Map:void 0;return Hm=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Lm(e,arguments,Bm(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Dm(n,e)},Hm(e)}function Fm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Fm=function(){return!!e})()}Am.requires=["select"],Rm([fi],Am.prototype,"popup",null),Rm([fi],Am.prototype,"toolbar",null),Rm([Co],Am.prototype,"onClick",null),Rm([ll((function(e){return!e.j.isLocked}))],Am.prototype,"showPopup",null),Rm([Sa([":clickEditor",":beforeCommandDelete",":backSpaceAfterDelete"]),Co],Am.prototype,"hidePopup",null),Rm([Sa(":outsideClick")],Am.prototype,"onOutsideClick",null),Rm([Co],Am.prototype,"onSelectionStart",null),Rm([Co],Am.prototype,"onSelectionEnd",null),Rm([Xa((function(e){return e.defaultTimeout}))],Am.prototype,"onSelectionChange",null),Rm([Co],Am.prototype,"showInlineToolbar",null),Ra.add("inlinePopup",Am),tr.prototype.link={formTemplate:function(e){var t=e.o.link,o=t.openInNewTabCheckbox,n=t.noFollowCheckbox,r=t.modeClassName,i=t.selectSizeClassName,a=t.selectMultipleClassName,l=t.selectOptionsClassName;return new Oc(e,[new Xs(e,[new cc(e,{name:"url",type:"text",ref:"url_input",label:"URL",placeholder:"http://",required:!0})]),new Xs(e,[new cc(e,{name:"content",ref:"content_input",label:"Text"})],{ref:"content_input_box"}),r?new Xs(e,["input"===r?new cc(e,{name:"className",ref:"className_input",label:"Class name"}):"select"===r?new yc(e,{name:"className",ref:"className_select",label:"Class name",size:i,multiple:a,options:l}):null]):null,o?new Kc(e,{name:"target",ref:"target_checkbox",label:"Open in new tab"}):null,n?new Kc(e,{name:"nofollow",ref:"nofollow_checkbox",label:"No follow"}):null,new Xs(e,[new xs(e,{name:"unlink",variant:"default",text:"Unlink"}),new xs(e,{name:"insert",type:"submit",variant:"primary",text:"Insert"})],{align:"full"})])},followOnDblClick:!1,processVideoLink:!0,processPastedLink:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0,modeClassName:"input",selectMultipleClassName:!0,preventReadOnlyNavigation:!0,selectSizeClassName:3,selectOptionsClassName:[],hotkeys:["ctrl+k","cmd+k"]},kl.set("link",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1520 1216q0-40-28-68l-208-208q-28-28-68-28-42 0-72 32 3 3 19 18.5t21.5 21.5 15 19 13 25.5 3.5 27.5q0 40-28 68t-68 28q-15 0-27.5-3.5t-25.5-13-19-15-21.5-21.5-18.5-19q-33 31-33 73 0 40 28 68l206 207q27 27 68 27 40 0 68-26l147-146q28-28 28-67zm-703-705q0-40-28-68l-206-207q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l208 208q27 27 68 27 42 0 72-31-3-3-19-18.5t-21.5-21.5-15-19-13-25.5-3.5-27.5q0-40 28-68t68-28q15 0 27.5 3.5t25.5 13 19 15 21.5 21.5 18.5 19q33-31 33-73zm895 705q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-206-207q-83-83-83-203 0-123 88-209l-88-88q-86 88-208 88-120 0-204-84l-208-208q-84-84-84-204t85-203l147-146q83-83 203-83 121 0 204 85l206 207q83 83 83 203 0 123-88 209l88 88q86-88 208-88 120 0 204 84l208 208q84 84 84 204z"/> </svg> ').set("unlink",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M503 1271l-256 256q-10 9-23 9-12 0-23-9-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23zm169 41v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm-224-224q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm1264 128q0 120-85 203l-147 146q-83 83-203 83-121 0-204-85l-334-335q-21-21-42-56l239-18 273 274q27 27 68 27.5t68-26.5l147-146q28-28 28-67 0-40-28-68l-274-275 18-239q35 21 56 42l336 336q84 86 84 204zm-617-724l-239 18-273-274q-28-28-68-28-39 0-68 27l-147 146q-28 28-28 67 0 40 28 68l274 274-18 240q-35-21-56-42l-336-336q-84-86-84-204 0-120 85-203l147-146q83-83 203-83 121 0 204 85l334 335q21 21 42 56zm633 84q0 14-9 23t-23 9h-320q-14 0-23-9t-9-23 9-23 23-9h320q14 0 23 9t9 23zm-544-544v320q0 14-9 23t-23 9-23-9-9-23v-320q0-14 9-23t23-9 23 9 9 23zm407 151l-256 256q-11 9-23 9t-23-9q-9-10-9-23t9-23l256-256q10-9 23-9t23 9q9 10 9 23t-9 23z"/> </svg> '),tr.prototype.controls.unlink={exec:function(e,t){var o=ui.closest(t,"a",e.editor);o&&ui.unwrap(o),e.synchronizeValues(),e.e.fire("hidePopup")},tooltip:"Unlink"},tr.prototype.controls.link={isActive:function(e){var t=e.s.current();return Boolean(t&&ui.closest(t,"a",e.editor))},popup:function(e,t,o){return e.e.fire("generateLinkForm.link",t,o)},tags:["a"],tooltip:"Insert link"};var qm=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Nm(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Vm=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=Bm(t),function(e,t){return!t||"object"!==Nm(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Fm()?Reflect.construct(t,o||[],Bm(e).constructor):t.apply(e,o))}(this,t,arguments)).buttons=[{name:"link",group:"insert"}],e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dm(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){var t=this;e.o.link.followOnDblClick&&e.e.on("dblclick.link",this.__onDblClickOnLink),e.e.on(e.editor,"click.link",this.__onClickReadOnlyLink),e.o.link.processPastedLink&&e.e.on("processPaste.link",this.onProcessPasteLink),e.e.on("generateLinkForm.link",this.__generateForm),e.registerCommand("openLinkDialog",{exec:function(){var o=e.dlg({resizable:!1}),n=t.__generateForm(e.s.current(),(function(){o.close()}));n.container.classList.add("jodit-dialog_alert"),o.setContent(n),o.open(),e.async.requestIdleCallback((function(){var e=Zr(n.container).url_input;null==e||e.focus()}))},hotkeys:e.o.link.hotkeys})}},{key:"__onDblClickOnLink",value:function(e){if(ui.isTag(e.target,"a")){var t=Xn(e.target,"href");t&&(location.href=t,e.preventDefault())}}},{key:"onProcessPasteLink",value:function(e,t){var o,n,r,i,a=this.jodit;if(sn(t)&&a.o.link.processPastedLink){if(a.e.stopPropagation("processPaste"),a.o.link.processVideoLink){var l=sr(null!==(n=null===(o=a.o.video)||void 0===o?void 0:o.parseUrlToVideoEmbed)&&void 0!==n?n:jr,t,{width:null===(r=a.o.video)||void 0===r?void 0:r.defaultWidth,height:null===(i=a.o.video)||void 0===i?void 0:i.defaultHeight});if(l!==t)return a.createInside.fromHTML(l)}if(a.s.isCollapsed()){var s=a.createInside.element("a");return s.setAttribute("href",t),s.textContent=t,a.e.fire("applyLink",a,s,null),s}return a.s.commitStyle({element:"a",attributes:{href:t}}),!0}}},{key:"__generateForm",value:function(e,t){var o,n=this.jodit,r=n.i18n.bind(n),i=n.o.link,a=i.openInNewTabCheckbox,l=i.noFollowCheckbox,s=i.formTemplate,c=i.formClassName,u=i.modeClassName,d=s(n),f=Io(d)?n.c.fromHTML(d,{target_checkbox_box:a,nofollow_checkbox_box:l}):d,p=ui.isElement(f)?f:f.container,h=Zr(p),v=h.insert,g=h.unlink,m=h.content_input_box,b=h.target_checkbox,y=h.nofollow_checkbox,_=h.url_input,j=e,w=ui.isImage(j),k=h.content_input,S=h.className_input,x=h.className_select;k||(k=n.c.element("input",{type:"hidden",ref:"content_input"})),c&&p.classList.add(c),w&&ui.hide(m);var O=function(){return o?o.innerText:Hi(n.s.range.cloneContents(),n.ed)};o=!(!e||!ui.closest(e,"a",n.editor))&&ui.closest(e,"a",n.editor),!w&&e&&(k.value=O()),o?(_.value=Xn(o,"href")||"",u&&function(e,t,o,n){switch(e){case"input":t&&(t.value=Xn(o,"class")||"");break;case"select":if(n){for(var r=0;r<n.selectedOptions.length;r++){var i=n.options.item(r);i&&(i.selected=!1)}(Xn(o,"class")||"").split(/\s+/).filter((function(e){return e.trim().length>0})).forEach((function(e){if(e)for(var t=0;t<n.options.length;t++){var o=n.options.item(t);(null==o?void 0:o.value)&&o.value.split(/\s+/).map((function(e){return e.trim()})).includes(e)&&(o.selected=!0)}}))}}}(u,S,o,x),a&&b&&(b.checked="_blank"===Xn(o,"target")),l&&y&&(y.checked="nofollow"===Xn(o,"rel")),v.textContent=r("Update")):ui.hide(g),n.editor.normalize();var C=n.history.snapshot.make();g&&n.e.on(g,"click",(function(e){n.s.restore(),n.history.snapshot.restore(C),o&&ui.unwrap(o),n.synchronizeValues(),t(),e.preventDefault()}));var z=function(){if(!_.value.trim().length)return _.focus(),_.classList.add("jodit_error"),!1;var e;n.s.restore(),n.s.removeMarkers(),n.editor.normalize(),n.history.snapshot.restore(C);var r=O()!==k.value.trim(),i=n.createInside;if(o&&ui.isOrContains(n.editor,o))e=[o];else{if(n.s.isCollapsed()){var s=i.element("a");n.s.insertNode(s,!1,!1),e=[s]}else{var c=n.s.current();e=ui.isTag(c,"img")?[ui.wrap(c,"a",i)]:n.s.wrapInTag("a")}e.forEach((function(e){return n.s.select(e)}))}return e.forEach((function(e){Xn(e,"href",_.value),function(e,t,o,n){var r;if(e&&(null!=t?t:o))if("input"===e)""===t.value&&n.hasAttribute("class")&&Xn(n,"class",null),""!==t.value&&Xn(n,"class",t.value);else if("select"===e){n.hasAttribute("class")&&Xn(n,"class",null);for(var i=0;i<o.selectedOptions.length;i++){var a=null===(r=o.selectedOptions.item(i))||void 0===r?void 0:r.value;a&&a.split(/\s+/).filter((function(e){return e.trim().length>0})).forEach((function(e){n.classList.add(e)}))}}}(u,S,x,e),w||function(e,t,o,n){var r=e.textContent;t.value.trim().length?o&&(r=t.value):r=n.value,r!==e.textContent&&(e.textContent=r)}(e,k,r,_),a&&b&&Xn(e,"target",b.checked?"_blank":null),l&&y&&Xn(e,"rel",y.checked?"nofollow":null),n.e.fire("applyLink",n,e,f)})),n.synchronizeValues(),t(),!1};return ui.isElement(f)?n.e.on(f,"submit",(function(e){return e.preventDefault(),e.stopImmediatePropagation(),z(),!1})):f.onSubmit(z),f}},{key:"beforeDestruct",value:function(e){e.e.off("generateLinkForm.link",this.__generateForm).off("dblclick.link",this.__onDblClickOnLink).off(e.editor,"click.link",this.__onClickReadOnlyLink).off("processPaste.link",this.onProcessPasteLink)}},{key:"__onClickReadOnlyLink",value:function(e){var t=this.jodit;t.o.readonly&&t.o.link.preventReadOnlyNavigation&&ui.isTag(e.target,"a")&&e.preventDefault()}}],n&&Mm(o.prototype,n),t}(Hm(Hp));qm([Co],Vm.prototype,"__onDblClickOnLink",null),qm([Co],Vm.prototype,"onProcessPasteLink",null),qm([Co],Vm.prototype,"__generateForm",null),qm([Co],Vm.prototype,"__onClickReadOnlyLink",null),Ra.add("link",Vm);var Wm=function(e,t,o){var n,r=o.control,i="button".concat(r.command),a=null!==(n=r.args&&r.args[0])&&void 0!==n?n:ar(e,i);ar(e,i,a),e.execCommand(r.command,!1,"default"===a?null:a)};function Um(e,t,o){return Um=Zm()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Gm(r,o.prototype),r},Um.apply(null,arguments)}function Ym(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Km(e){return Km=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Km(e)}function Gm(e,t){return Gm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Gm(e,t)}function Jm(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Xm(e){var t="function"==typeof Map?new Map:void 0;return Xm=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Um(e,arguments,Km(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Gm(n,e)},Xm(e)}function Zm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Zm=function(){return!!e})()}kl.set("ol",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M381 1620q0 80-54.5 126t-135.5 46q-106 0-172-66l57-88q49 45 106 45 29 0 50.5-14.5t21.5-42.5q0-64-105-56l-26-56q8-10 32.5-43.5t42.5-54 37-38.5v-1q-16 0-48.5 1t-48.5 1v53h-106v-152h333v88l-95 115q51 12 81 49t30 88zm2-627v159h-362q-6-36-6-54 0-51 23.5-93t56.5-68 66-47.5 56.5-43.5 23.5-45q0-25-14.5-38.5t-39.5-13.5q-46 0-81 58l-85-59q24-51 71.5-79.5t105.5-28.5q73 0 123 41.5t50 112.5q0 50-34 91.5t-75 64.5-75.5 50.5-35.5 52.5h127v-60h105zm1409 319v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm-1408-899v99h-335v-99h107q0-41 .5-122t.5-121v-12h-2q-8 17-50 54l-71-76 136-127h106v404h108zm1408 387v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-14 9-23t23-9h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> ').set("ul",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path stroke-width="0" d="M384 1408q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm0-512q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm-1408-928q0 80-56 136t-136 56-136-56-56-136 56-136 136-56 136 56 56 136zm1408 416v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5zm0-512v192q0 13-9.5 22.5t-22.5 9.5h-1216q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1216q13 0 22.5 9.5t9.5 22.5z"/> </svg> '),tr.prototype.controls.ul={command:"insertUnorderedList",tags:["ul"],tooltip:"Insert Unordered List",list:{default:"Default",circle:"Circle",disc:"Dot",square:"Quadrate"},exec:Wm},tr.prototype.controls.ol={command:"insertOrderedList",tags:["ol"],tooltip:"Insert Ordered List",list:{default:"Default","lower-alpha":"Lower Alpha","lower-greek":"Lower Greek","lower-roman":"Lower Roman","upper-alpha":"Upper Alpha","upper-roman":"Upper Roman"},exec:Wm};var Qm=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=Km(t),function(e,t){return!t||"object"!==Jm(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Zm()?Reflect.construct(t,o||[],Km(e).constructor):t.apply(e,o))}(this,t,arguments)).buttons=[{name:"ul",group:"list"},{name:"ol",group:"list"}],e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gm(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){e.registerCommand("insertUnorderedList",this.onCommand).registerCommand("insertOrderedList",this.onCommand)}},{key:"onCommand",value:function(e,t,o){return this.jodit.s.commitStyle({element:"insertunorderedlist"===e?"ul":"ol",attributes:{style:{listStyleType:null!=o?o:null}}}),this.jodit.synchronizeValues(),!1}},{key:"beforeDestruct",value:function(e){}}])&&Ym(o.prototype,n),t}(Xm(Hp));function $m(e,t,o){return $m=ib()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&ob(r,o.prototype),r},$m.apply(null,arguments)}function eb(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function tb(e){return tb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},tb(e)}function ob(e,t){return ob=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ob(e,t)}function nb(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function rb(e){var t="function"==typeof Map?new Map:void 0;return rb=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return $m(e,arguments,tb(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ob(n,e)},rb(e)}function ib(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ib=function(){return!!e})()}(function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Jm(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)})([Co],Qm.prototype,"onCommand",null),Ra.add("orderedList",Qm),tr.prototype.showPlaceholder=!0,tr.prototype.placeholder="Type something",tr.prototype.useInputsPlaceholder=!0;var ab=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=tb(t),function(e,t){return!t||"object"!==nb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ib()?Reflect.construct(t,o||[],tb(e).constructor):t.apply(e,o))}(this,t,arguments)).addNativeListeners=function(){e.j.e.off(e.j.editor,"input.placeholder keydown.placeholder").on(e.j.editor,"input.placeholder keydown.placeholder",e.toggle)},e.addEvents=function(){var t=e.j;t.o.useInputsPlaceholder&&t.element.hasAttribute("placeholder")&&(e.placeholderElm.innerHTML=Xn(t.element,"placeholder")||""),t.e.fire("placeholder",e.placeholderElm.innerHTML),t.e.off(".placeholder").on("changePlace.placeholder",e.addNativeListeners).on("change.placeholder focus.placeholder keyup.placeholder mouseup.placeholder keydown.placeholder mousedown.placeholder afterSetMode.placeholder changePlace.placeholder",e.toggle).on(window,"load",e.toggle),e.addNativeListeners(),e.toggle()},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ob(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){var t=this;e.o.showPlaceholder&&(this.placeholderElm=e.c.fromHTML('<span data-ref="placeholder" style="display: none;" class="jodit-placeholder">'.concat(e.i18n(e.o.placeholder),"</span>")),"rtl"===e.o.direction&&(this.placeholderElm.style.right="0px",this.placeholderElm.style.direction="rtl"),e.e.on("readonly",(function(e){e?t.hide():t.toggle()})).on("changePlace",this.addEvents),this.addEvents())}},{key:"show",value:function(){var e=this.j;if(!e.o.readonly){var t=0,o=0,n=e.s.current(),r=n&&ui.closest(n,ui.isBlock,e.editor)||e.editor,i=e.ew.getComputedStyle(r),a=e.ew.getComputedStyle(e.editor);e.workplace.appendChild(this.placeholderElm);var l=e.editor.firstChild;if(ui.isElement(l)&&!tn(l)){var s=e.ew.getComputedStyle(l);t=parseInt(s.getPropertyValue("margin-top"),10),o=parseInt(s.getPropertyValue("margin-left"),10),this.placeholderElm.style.fontSize=parseInt(s.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=s.getPropertyValue("line-height")}else this.placeholderElm.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",this.placeholderElm.style.lineHeight=i.getPropertyValue("line-height");In(this.placeholderElm,{display:"block",textAlign:i.getPropertyValue("text-align"),paddingTop:parseInt(a.paddingTop,10)+"px",paddingLeft:parseInt(a.paddingLeft,10)+"px",paddingRight:parseInt(a.paddingRight,10)+"px",marginTop:Math.max(parseInt(i.getPropertyValue("margin-top"),10),t),marginLeft:Math.max(parseInt(i.getPropertyValue("margin-left"),10),o)})}}},{key:"hide",value:function(){ui.safeRemove(this.placeholderElm)}},{key:"toggle",value:function(){var e=this.j;e.editor&&!e.isInDestruct&&(e.getRealMode()===Qt&&function(e){var t;if(!e.firstChild)return!0;var o=e.firstChild;if(Pt.has(null===(t=o.nodeName)||void 0===t?void 0:t.toLowerCase())||/^(TABLE)$/i.test(o.nodeName))return!1;var n=ui.next(o,(function(e){return e&&!ui.isEmptyTextNode(e)}),e);return ui.isText(o)&&!n?ui.isEmptyTextNode(o):!n&&ui.each(o,(function(e){return!(ui.isLeaf(e)||ui.isList(e))&&(ui.isEmpty(e)||ui.isTag(e,"br"))}))}(e.editor)?this.show():this.hide())}},{key:"beforeDestruct",value:function(e){this.hide(),e.e.off(".placeholder").off(window,"load",this.toggle)}}],n&&eb(o.prototype,n),t}(rb(Hp));function lb(e,t,o){return lb=fb()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&ub(r,o.prototype),r},lb.apply(null,arguments)}function sb(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function cb(e){return cb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},cb(e)}function ub(e,t){return ub=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ub(e,t)}function db(e){var t="function"==typeof Map?new Map:void 0;return db=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return lb(e,arguments,cb(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ub(n,e)},db(e)}function fb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fb=function(){return!!e})()}(function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":nb(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)})([Xa((function(e){return e.defaultTimeout/10}),!0)],ab.prototype,"toggle",null),Ra.add("placeholder",ab),Ra.add("poweredByJodit",(function(e){var t=e.o;t.hidePoweredByJodit||t.inline||!(t.showCharsCounter||t.showWordsCounter||t.showXPathInStatusbar)||e.hookStatus("ready",(function(){e.statusbar.append(e.create.fromHTML('<a\n\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\tstyle="text-transform: uppercase"\n\t\t\t\t\t\tclass="jodit-status-bar-link"\n\t\t\t\t\t\ttarget="_blank"\n\t\t\t\t\t\thref="https://xdsoft.net/jodit/">\n\t\t\t\t\t\t\tPowered by Jodit\n\t\t\t\t\t\t</a>'),!0)}))})),kl.set("redo",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 256v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l138-138q-148-137-349-137-104 0-198.5 40.5t-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5q119 0 225-52t179-147q7-10 23-12 14 0 25 9l137 138q9 8 9.5 20.5t-7.5 22.5q-109 132-264 204.5t-327 72.5q-156 0-298-61t-245-164-164-245-61-298 61-298 164-245 245-164 298-61q147 0 284.5 55.5t244.5 156.5l130-129q29-31 70-14 39 17 39 59z"/> </svg> ').set("undo",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1664 896q0 156-61 298t-164 245-245 164-298 61q-172 0-327-72.5t-264-204.5q-7-10-6.5-22.5t8.5-20.5l137-138q10-9 25-9 16 2 23 12 73 95 179 147t225 52q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5q-98 0-188 35.5t-160 101.5l137 138q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l130 129q107-101 244.5-156.5t284.5-55.5q156 0 298 61t245 164 164 245 61 298z"/> </svg> '),tr.prototype.controls.redo={mode:eo,isDisabled:function(e){return!e.history.canRedo()},tooltip:"Redo"},tr.prototype.controls.undo={mode:eo,isDisabled:function(e){return!e.history.canUndo()},tooltip:"Undo"};var pb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=cb(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,fb()?Reflect.construct(t,o||[],cb(e).constructor):t.apply(e,o))}(this,t,arguments)).buttons=[{name:"undo",group:"history"},{name:"redo",group:"history"}],e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ub(e,t)}(t,e),o=t,(n=[{key:"beforeDestruct",value:function(){}},{key:"afterInit",value:function(e){var t=function(t){return e.history[t](),!1};e.registerCommand("redo",{exec:t,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),e.registerCommand("undo",{exec:t,hotkeys:["ctrl+z","cmd+z"]})}}])&&sb(o.prototype,n),t}(db(Hp));function hb(e,t,o){return hb=_b()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&mb(r,o.prototype),r},hb.apply(null,arguments)}function vb(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function gb(e){return gb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gb(e)}function mb(e,t){return mb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},mb(e,t)}function bb(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function yb(e){var t="function"==typeof Map?new Map:void 0;return yb=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return hb(e,arguments,gb(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),mb(n,e)},yb(e)}function _b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_b=function(){return!!e})()}Ra.add("redoUndo",pb),tr.prototype.minWidth=200,tr.prototype.maxWidth="100%",tr.prototype.minHeight=200,tr.prototype.maxHeight="auto",tr.prototype.saveHeightInStorage=!1;var jb=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":bb(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},wb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=gb(t),function(e,t){return!t||"object"!==bb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,_b()?Reflect.construct(t,o||[],gb(e).constructor):t.apply(e,o))}(this,t,arguments)).__resizeWorkspaces=e.j.async.debounce(e.__resizeWorkspaceImd,e.j.defaultTimeout,!0),e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mb(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){e.e.on("setHeight.size",this.__setHeight).on("setWidth.size",this.__setWidth).on("afterInit.size changePlace.size",this.__initialize,{top:!0}).on(e.ow,"load.size",this.__resizeWorkspaces).on("afterInit.size resize.size afterUpdateToolbar.size scroll.size afterResize.size",this.__resizeWorkspaces).on("toggleFullSize.size toggleToolbar.size",this.__resizeWorkspaceImd),this.__initialize()}},{key:"__initialize",value:function(){var e=this.j;if(!e.o.inline){var t=e.o.height;if(e.o.saveHeightInStorage&&"auto"!==t){var o=e.storage.get("height");o&&(t=o)}In(e.editor,{minHeight:"100%"}),In(e.container,{minHeight:e.o.minHeight,maxHeight:e.o.maxHeight,minWidth:e.o.minWidth,maxWidth:e.o.maxWidth}),e.isFullSize||(this.__setHeight(t),this.__setWidth(e.o.width))}}},{key:"__setHeight",value:function(e){var t=this.j.container,o=t.clientHeight,n=t.clientWidth;if(on(e)){var r=this.j.o,i=r.minHeight,a=r.maxHeight;on(i)&&i>e&&(e=i),on(a)&&a<e&&(e=a)}In(this.j.container,"height",e),this.j.o.saveHeightInStorage&&this.j.storage.set("height",e),this.__resizeWorkspaceImd({clientHeight:o,clientWidth:n})}},{key:"__setWidth",value:function(e){var t=this.j.container,o=t.clientHeight,n=t.clientWidth;if(on(e)){var r=this.j.o,i=r.minWidth,a=r.maxWidth;on(i)&&i>e&&(e=i),on(a)&&a<e&&(e=a)}In(this.j.container,"width",e),this.__resizeWorkspaceImd({clientHeight:o,clientWidth:n})}},{key:"__getNotWorkHeight",value:function(){var e,t;return((null===(e=this.j.toolbarContainer)||void 0===e?void 0:e.offsetHeight)||0)+((null===(t=this.j.statusbar)||void 0===t?void 0:t.getHeight())||0)+2}},{key:"__resizeWorkspaceImd",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.j.container,t=e.clientHeight,o=e.clientWidth;if(this.j&&!this.j.isDestructed&&this.j.o&&!this.j.o.inline&&this.j.container&&this.j.container.parentNode){var n=(In(this.j.container,"minHeight")||0)-this.__getNotWorkHeight();if(on(n)&&n>0&&([this.j.workplace,this.j.iframe,this.j.editor].map((function(e){e&&In(e,"minHeight",n)})),this.j.e.fire("setMinHeight",n)),on(this.j.o.maxHeight)){var r=this.j.o.maxHeight-this.__getNotWorkHeight();[this.j.workplace,this.j.iframe,this.j.editor].map((function(e){e&&In(e,"maxHeight",r)})),this.j.e.fire("setMaxHeight",r)}this.j.container&&In(this.j.workplace,"height","auto"!==this.j.o.height||this.j.isFullSize?this.j.container.offsetHeight-this.__getNotWorkHeight():"auto");var i=this.j.container,a=i.clientHeight,l=i.clientWidth;t===a&&o===l||this.j.e.fire(this.j,"resize")}}},{key:"beforeDestruct",value:function(e){e.e.off(e.ow,"load.size",this.__resizeWorkspaces).off(".size")}}],n&&vb(o.prototype,n),t}(yb(Hp));function kb(e,t,o){return kb=zb()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Ob(r,o.prototype),r},kb.apply(null,arguments)}function Sb(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xb(e){return xb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xb(e)}function Ob(e,t){return Ob=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ob(e,t)}function Cb(e){var t="function"==typeof Map?new Map:void 0;return Cb=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return kb(e,arguments,xb(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ob(n,e)},Cb(e)}function zb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zb=function(){return!!e})()}jb([Za()],wb.prototype,"__initialize",null),jb([Co],wb.prototype,"__setHeight",null),jb([Co],wb.prototype,"__setWidth",null),jb([Co],wb.prototype,"__resizeWorkspaceImd",null),Ra.add("size",wb),tr.prototype.showCharsCounter=!0,tr.prototype.countHTMLChars=!1,tr.prototype.countTextSpaces=!1,tr.prototype.showWordsCounter=!0;var Eb=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=xb(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,zb()?Reflect.construct(t,o||[],xb(e).constructor):t.apply(e,o))}(this,t,arguments)).charCounter=null,e.wordCounter=null,e.reInit=function(){e.j.o.showCharsCounter&&e.charCounter&&e.j.statusbar.append(e.charCounter,!0),e.j.o.showWordsCounter&&e.wordCounter&&e.j.statusbar.append(e.wordCounter,!0),e.j.e.off("change keyup",e.calc).on("change keyup",e.calc),e.calc()},e.calc=e.j.async.throttle((function(){var t,o=e.j.text;e.j.o.showCharsCounter&&e.charCounter&&(t=e.j.o.countHTMLChars?e.j.value:e.j.o.countTextSpaces?o.replace(_t(),"").replace(/[\r\n]/g,""):o.replace(kt(),""),e.charCounter.textContent=e.j.i18n("Chars: %d",t.length)),e.j.o.showWordsCounter&&e.wordCounter&&(e.wordCounter.textContent=e.j.i18n("Words: %d",o.replace(_t(),"").split(kt()).filter((function(e){return e.length})).length))}),e.j.defaultTimeout),e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ob(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(){this.charCounter=this.j.c.span(),this.wordCounter=this.j.c.span(),this.j.e.on("afterInit changePlace afterAddPlace",this.reInit),this.reInit()}},{key:"beforeDestruct",value:function(){ui.safeRemove(this.charCounter),ui.safeRemove(this.wordCounter),this.j.e.off("afterInit changePlace afterAddPlace",this.reInit),this.charCounter=null,this.wordCounter=null}}])&&Sb(o.prototype,n),t}(Cb(Hp));function Tb(e,t,o){return Tb=Mb()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Rb(r,o.prototype),r},Tb.apply(null,arguments)}function Ib(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Pb(e){return Pb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pb(e)}function Rb(e,t){return Rb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Rb(e,t)}function Ab(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Lb(e){var t="function"==typeof Map?new Map:void 0;return Lb=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Tb(e,arguments,Pb(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Rb(n,e)},Lb(e)}function Mb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Mb=function(){return!!e})()}Ra.add("stat",Eb),tr.prototype.table={splitBlockOnInsertTable:!0,selectionCellStyle:"border: 1px double #1e88e5 !important;",useExtraClassesOptions:!1},kl.set("table",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M576 1376v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm-512-768v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm512 384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm0-384v-192q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v192q0 14 9 23t23 9h320q14 0 23-9t9-23zm128-320v1088q0 66-47 113t-113 47h-1344q-66 0-113-47t-47-113v-1088q0-66 47-113t113-47h1344q66 0 113 47t47 113z"/> </svg> '),tr.prototype.controls.table={data:{cols:10,rows:10,classList:{"table table-bordered":"Bootstrap Bordered","table table-striped":"Bootstrap Striped","table table-dark":"Bootstrap Dark"}},popup:function(e,t,o,n){e.editor.normalize();for(var r=e.history.snapshot.make(),i=n.control,a=i.data&&i.data.rows?i.data.rows:10,l=i.data&&i.data.cols?i.data.cols:10,s=e.c.fromHTML('<form class="jodit-form jodit-form__inserter"><div class="jodit-form__table-creator-box"><div class="jodit-form__container"></div><div class="jodit-form__options">'+function(){if(!e.o.table.useExtraClassesOptions)return"";var t=[];if(i.data){var o=i.data.classList;Object.keys(o).forEach((function(e){t.push('<label class="jodit_vertical_middle"><input class="jodit-checkbox" value="'.concat(e,'" type="checkbox"/>').concat(o[e],"</label>"))}))}return t.join("")}()+'</div></div><label class="jodit-form__center"><span>1</span> × <span>1</span></label></form>'),c=s.querySelectorAll("span")[0],u=s.querySelectorAll("span")[1],d=s.querySelector(".jodit-form__container"),f=s.querySelector(".jodit-form__options"),p=[],h=a*l,v=0;v<h;v+=1)p[v]||p.push(e.c.element("span",{dataIndex:v}));if(e.e.on(d,"mousemove",(function(e,t){var o=e.target;if(ui.isTag(o,"span")){for(var n=void 0===t||isNaN(t)?parseInt(Xn(o,"-index")||"0",10):t||0,r=Math.ceil((n+1)/l),i=n%l+1,a=0;a<p.length;a+=1)i>=a%l+1&&r>=Math.ceil((a+1)/l)?p[a].className="jodit_hovered":p[a].className="";u.textContent=i.toString(),c.textContent=r.toString()}})).on(d,"touchstart mousedown",(function(t){var n=t.target;if(t.preventDefault(),t.stopImmediatePropagation(),ui.isTag(n,"span")){var i=parseInt(Xn(n,"-index")||"0",10),a=Math.ceil((i+1)/l),s=i%l+1,c=e.createInside,u=c.element("tbody"),d=c.element("table");d.appendChild(u);for(var p,h,v=null,g=1;g<=a;g+=1){p=c.element("tr");for(var m=1;m<=s;m+=1)h=c.element("td"),v||(v=h),In(h,"width",(100/s).toFixed(4)+"%"),h.appendChild(c.element("br")),p.appendChild(c.text("\n")),p.appendChild(c.text("\t")),p.appendChild(h);u.appendChild(c.text("\n")),u.appendChild(p)}Jr("input[type=checkbox]:checked",f).forEach((function(e){e.value.split(/[\s]+/).forEach((function(e){d.classList.add(e)}))})),e.s.restore(),e.s.removeMarkers(),e.editor.normalize(),e.history.snapshot.restore(r);var b=ui.furthest(e.s.current(),ui.isBlock,e.editor);if(b&&ui.isEmpty(b))ui.replace(b,d,void 0,!1,!0);else if(b){var y=c.text("\n");if(e.o.table.splitBlockOnInsertTable){var _=e.s.range;_.collapse(!1),_.insertNode(y),_.collapse(!1),e.s.selectRange(_);var j=e.s.splitSelection(b,y);ui.after(j,d)}else ui.after(b,y),ui.after(y,d)}else e.s.insertNode(d,!1);v&&(e.s.setCursorIn(v),oi(v,e.editor,e.ed)),o()}})),n&&n.parentElement){for(var g=0;g<a;g+=1){for(var m=e.c.div(),b=0;b<l;b+=1)m.appendChild(p[g*l+b]);d.appendChild(m)}p[0]&&(p[0].className="hovered")}return s},tooltip:"Insert table"},Ra.add("table",(function(e){e.registerButton({name:"table",group:"insert"})})),tr.prototype.wrapNodes={exclude:new Set(["hr","style","br"]),emptyBlockAfterInit:!0};var Bb=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Ab(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Db=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=Pb(t),function(e,t){return!t||"object"!==Ab(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Mb()?Reflect.construct(t,o||[],Pb(e).constructor):t.apply(e,o))}(this,t,arguments)).isSuitableStart=function(t){var o;return ui.isText(t)&&Io(t.nodeValue)&&(/[^\s]/.test(t.nodeValue)||(null===(o=t.parentNode)||void 0===o?void 0:o.firstChild)===t&&e.isSuitable(t.nextSibling))||e.isNotWrapped(t)&&!ui.isTemporary(t)},e.isSuitable=function(t){return ui.isText(t)||e.isNotWrapped(t)},e.isNotWrapped=function(t){return ui.isElement(t)&&!(ui.isBlock(t)||ui.isTag(t,e.j.o.wrapNodes.exclude))},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rb(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){"br"!==e.o.enter.toLowerCase()&&e.e.on("drop.wtn focus.wtn keydown.wtn mousedown.wtn afterInit.wtn backSpaceAfterDelete.wtn",this.preprocessInput,{top:!0}).on("afterInit.wtn postProcessSetEditorValue.wtn afterCommitStyle.wtn backSpaceAfterDelete.wtn",this.postProcessSetEditorValue)}},{key:"beforeDestruct",value:function(e){e.e.off(".wtn")}},{key:"postProcessSetEditorValue",value:function(){var e=this.jodit;if(e.isEditorMode()){for(var t=e.editor.firstChild,o=!1;t;){if(t=Nb(t,e),this.isSuitableStart(t)){o||e.s.save(),o=!0;var n=e.createInside.element(e.o.enter);for(ui.before(t,n);t&&this.isSuitable(t);){var r=t.nextSibling;n.appendChild(t),t=r}n.normalize(),t=n}t=t&&t.nextSibling}o&&(e.s.restore(),"afterInit"===e.e.current&&e.e.fire("internalChange"))}}},{key:"preprocessInput",value:function(){var e=this.jodit,t="afterInit"===e.e.current;if(e.isEditorMode()&&!e.editor.firstChild&&(e.o.wrapNodes.emptyBlockAfterInit||!t)){var o=e.createInside.element(e.o.enter),n=e.createInside.element("br");ui.append(o,n),ui.append(e.editor,o),e.s.isFocused()&&e.s.setCursorBefore(n),e.e.fire("internalChange")}}}])&&Ib(o.prototype,n),t}(Lb(Hp));function Nb(e,t){var o=e,n=e;do{if(!ui.isElement(n)||!ui.isLeaf(n)||ui.isList(n.parentElement))break;var r=ui.findNotEmptySibling(n,!1);ui.isTag(o,"ul")?o.appendChild(n):o=ui.wrap(n,"ul",t.createInside),n=r}while(n);return o}Bb([Co],Db.prototype,"postProcessSetEditorValue",null),Bb([Co],Db.prototype,"preprocessInput",null),Ra.add("wrapNodes",Db),tr.prototype.dtd={removeExtraBr:!0,checkBlockNesting:!0,blockLimits:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,main:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1}};var Hb=new Set(["table","pre","blockquote","code"]);function Fb(e,t){if(e.o.dtd.removeExtraBr&&!ui.isTag(t,"br")){var o=ui.furthest(t,ui.isBlock,e.editor);if(o&&!ui.isTag(o,Hb)){var n=ui.isTag(t,"br")?t:ui.findNotEmptySibling(t,!1);if(!ui.isTag(n,"br"))return;e.s.setCursorBefore(n),ui.safeRemove(n)}}}function qb(e,t){if(ui.isFragment(t)&&(t=t.firstChild),e.o.dtd.checkBlockNesting&&ui.isBlock(t)){var o=ui.furthest(e.s.current(),ui.isBlock,e.editor);o&&!e.o.dtd.blockLimits[o.tagName.toLowerCase()]&&(e.s.setCursorAfter(o),ui.isEmpty(o)&&ui.safeRemove(o))}}function Vb(e,t,o){return Vb=Jb()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Yb(r,o.prototype),r},Vb.apply(null,arguments)}function Wb(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ub(e){return Ub=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ub(e)}function Yb(e,t){return Yb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yb(e,t)}function Kb(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Gb(e){var t="function"==typeof Map?new Map:void 0;return Gb=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Vb(e,arguments,Ub(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Yb(n,e)},Gb(e)}function Jb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jb=function(){return!!e})()}var Xb=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Kb(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Zb=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=Ub(o=t),function(e,t){return!t||"object"!==Kb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Jb()?Reflect.construct(o,n||[],Ub(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yb(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}},{key:"__onBeforeInsertNode",value:function(e){var t=this;Object.keys(f).forEach((function(o){f[o](t.j,e)}))}},{key:"__onAfterInsertNode",value:function(e){var t=this;Object.keys(d).forEach((function(o){d[o](t.j,e)}))}}],n&&Wb(o.prototype,n),t}(Gb(Hp));Xb([Sa(":beforeInsertNode")],Zb.prototype,"__onBeforeInsertNode",null),Xb([Sa(":afterInsertNode")],Zb.prototype,"__onAfterInsertNode",null),Ra.add("dtd",Zb),Object.keys(i).forEach((function(e){Uv[e]=i[e]}));var Qb=function(e){return"__esModule"!==e};Object.keys(u).filter(Qb).forEach((function(e){kl.set(e.replace("_","-"),u[e])})),Object.keys(c).filter(Qb).forEach((function(e){var t,o=c[e],n=Oo(null===(t=o.prototype)||void 0===t?void 0:t.className)?o.prototype.className():e;Io(n)?Uv.modules[n]=o:console.warn("Module name must be a string",e)})),Object.keys(l).filter(Qb).forEach((function(e){Uv.decorators[e]=l[e]})),["Confirm","Alert","Prompt"].forEach((function(e){Uv[e]=c[e]})),Object.keys(Sg).filter(Qb).forEach((function(e){Uv.lang[e]=Sg[e]}));var $b=n(72),ey=n.n($b),ty=n(825),oy=n.n(ty),ny=n(659),ry=n.n(ny),iy=n(56),ay=n.n(iy),ly=n(540),sy=n.n(ly),cy=n(113),uy=n.n(cy),dy=n(616),fy={};function py(e,t,o){return py=yy()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&gy(r,o.prototype),r},py.apply(null,arguments)}function hy(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vy(e)}function gy(e,t){return gy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gy(e,t)}function my(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function by(e){var t="function"==typeof Map?new Map:void 0;return by=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return py(e,arguments,vy(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gy(n,e)},by(e)}function yy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yy=function(){return!!e})()}fy.styleTagTransform=uy(),fy.setAttributes=ay(),fy.insert=ry().bind(null,"head"),fy.domAPI=oy(),fy.insertStyleElement=sy(),ey()(dy.A,fy),dy.A&&dy.A.locals&&dy.A.locals,tr.prototype.addNewLine=!0,tr.prototype.addNewLineOnDBLClick=!0,tr.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","pre","jodit"],tr.prototype.addNewLineDeltaShow=20,kl.set("enter",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 128 128" xml:space="preserve"> <polygon points="112.4560547,23.3203125 112.4560547,75.8154297 31.4853516,75.8154297 31.4853516,61.953125 16.0131836,72.6357422 0.5410156,83.3164063 16.0131836,93.9990234 31.4853516,104.6796875 31.4853516,90.8183594 112.4560547,90.8183594 112.4560547,90.8339844 127.4589844,90.8339844 127.4589844,23.3203125"/> </svg> ');var _y=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":my(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},jy="addnewline",wy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=vy(t),function(e,t){return!t||"object"!==my(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,yy()?Reflect.construct(t,o||[],vy(e).constructor):t.apply(e,o))}(this,t,arguments)).__line=e.j.c.fromHTML('<div role="button" tabindex="-1" title="'.concat(e.j.i18n("Break"),'" class="jodit-add-new-line"><span>').concat(kl.get("enter"),"</span></div>")),e.__isMatchedTag=function(t){return Boolean(t&&e.j.o.addNewLineTagsTriggers.includes(t.nodeName.toLowerCase()))},e.__isBeforeContent=!1,e.__lineInFocus=!1,e.__isShown=!1,e.__hideForce=function(){e.__isShown&&(e.__isShown=!1,e.j.async.clearTimeout(e.__timeout),e.__lineInFocus=!1,ui.safeRemove(e.__line),e.__line.style.setProperty("--jd-anl-handle-offset","0"))},e.__canGetFocus=function(e){return null!=e&&ui.isBlock(e)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName)},e.__onClickLine=function(t){var o=e.j,n=o.createInside.element(o.o.enter);e.__isBeforeContent&&e.__current&&e.__current.parentNode?e.__current===o.editor?ui.prepend(o.editor,n):e.__current.parentNode.insertBefore(n,e.__current):o.editor.appendChild(n),o.s.setCursorIn(n),oi(n,o.editor,o.ed),o.synchronizeValues(),e.__hideForce(),t.preventDefault()},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gy(e,t)}(t,e),o=t,(n=[{key:"__show",value:function(){this.j.o.readonly||this.j.isLocked||(this.j.async.clearTimeout(this.__timeout),this.__isShown||(this.__isShown=!0,this.j.container.appendChild(this.__line),this.__line.style.width=this.j.container.clientWidth+"px"))}},{key:"onLock",value:function(e){e&&this.__isShown&&this.__hideForce()}},{key:"__hide",value:function(){this.__isShown&&!this.__lineInFocus&&(this.__timeout=this.j.async.setTimeout(this.__hideForce,{timeout:500,label:"add-new-line-hide"}))}},{key:"afterInit",value:function(e){var t=this;e.o.addNewLine&&(e.e.on(this.__line,"mousemove",(function(e){e.stopPropagation()})).on(this.__line,"mousedown touchstart",this.__onClickLine).on("change",this.__hideForce).on(this.__line,"mouseenter",(function(){t.j.async.clearTimeout(t.__timeout),t.__lineInFocus=!0})).on(this.__line,"mouseleave",(function(){t.__lineInFocus=!1})).on("changePlace",this.__addEventListeners.bind(this)),this.__addEventListeners())}},{key:"__addEventListeners",value:function(){var e=this.j;e.e.off(e.editor,"."+jy).off(e.container,"."+jy).off("."+jy).on([e.ow,e.ew,e.editor],"scroll."+jy,this.__hideForce).on("finishedCleanHTMLWorker."+jy,this.__hideForce).on(e.editor,"click."+jy,this.__hide).on(e.container,"mouseleave."+jy,this.__hide).on(e.editor,"mousemove."+jy,this.__onMouseMove)}},{key:"onDblClickEditor",value:function(e){var t=this.j;if(!t.o.readonly&&t.o.addNewLineOnDBLClick&&e.target===t.editor&&t.s.isCollapsed()){var o=Qi(t.editor,t,t.ed),n=e.pageY-t.ew.scrollX,r=t.createInside.element(t.o.enter);Math.abs(n-o.top)<Math.abs(n-(o.height+o.top))&&t.editor.firstChild?t.editor.insertBefore(r,t.editor.firstChild):t.editor.appendChild(r),t.s.setCursorIn(r),t.synchronizeValues(),this.__hideForce(),e.preventDefault()}}},{key:"__onMouseMove",value:function(e){var t=this.j,o=t.ed.elementFromPoint(e.clientX,e.clientY);if(ui.isHTMLElement(o)&&ui.isOrContains(t.editor,o))if(t.editor===o||this.__isMatchedTag(o)||(o=ui.closest(o,this.__isMatchedTag,t.editor)),o){if(this.__isMatchedTag(o)){var n=ui.up(o,ui.isBlock,t.editor);n&&n!==t.editor&&(o=n)}var r=$i(o,this.j),i=!1,a=e.clientY,l=e.clientX;if(this.j.iframe){var s=$i(this.j.iframe,this.j,!0);a+=s.top,l+=s.left}var c=this.j.o.addNewLineDeltaShow;Math.abs(a-r.top)<=c?(i=r.top,this.__isBeforeContent=!0):Math.abs(a-(r.top+r.height))<=c&&(i=r.top+r.height,this.__isBeforeContent=!1);var u=t.editor===o;!1!==i&&(u&&!this.__isBeforeContent||!u&&!sr(this.__isBeforeContent?ui.prev:ui.next,o,this.__canGetFocus,t.editor))?(this.__line.style.top=i+"px",this.__current=o,this.__show(),this.__line.style.setProperty("--jd-anl-handle-offset",l-r.left-10+"px")):(this.__current=!1,this.__hide())}else this.__hide()}},{key:"beforeDestruct",value:function(){this.j.async.clearTimeout(this.__timeout),this.j.e.off(this.__line).off("changePlace",this.__addEventListeners),ui.safeRemove(this.__line),this.j.e.off([this.j.ow,this.j.ew,this.j.editor],"."+jy).off(this.j.container,"."+jy).off("."+jy)}}])&&hy(o.prototype,n),t}(by(Hp));function ky(e,t,o){return ky=Ey()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Cy(r,o.prototype),r},ky.apply(null,arguments)}function Sy(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xy(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Oy(e){return Oy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Oy(e)}function Cy(e,t){return Cy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Cy(e,t)}function zy(e){var t="function"==typeof Map?new Map:void 0;return zy=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ky(e,arguments,Oy(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Cy(n,e)},zy(e)}function Ey(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ey=function(){return!!e})()}_y([Sa(":lock")],wy.prototype,"onLock",null),_y([Co],wy.prototype,"__hide",null),_y([Sa(":dblclick")],wy.prototype,"onDblClickEditor",null),_y([Za((function(e){return e.defaultTimeout}))],wy.prototype,"__onMouseMove",null),Ra.add("addNewLine",wy),tr.prototype.controls.classSpan={command:"applyClassName",exec:pr,list:["enabled","disabled","activated","text-left","text-center","text-right","warning","error"],isChildActive:function(e,t){var o=e.s.current();if(o){var n=ui.closest(o,ui.isElement,e.editor)||e.editor;return Boolean(t.control.args&&n.classList.contains(t.control.args[0].toString()))}return!1},isActive:function(e,t){var o=e.s.current();if(o){var n=ui.closest(o,ui.isElement,e.editor)||e.editor,r=!1;return t.control.list&&Object.keys(t.control.list).forEach((function(e){n.classList.contains(e)&&(r=!0)})),Boolean(n&&n!==e.editor&&void 0!==t.control.list&&r)}return!1},childTemplate:function(e,t,o){return'<span class="'.concat(t,'">').concat(e.i18n(o),"</span>")},tooltip:"Insert className"};var Ty=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=Oy(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,Ey()?Reflect.construct(t,o||[],Oy(e).constructor):t.apply(e,o))}(this,t,arguments)).buttons=[{name:"classSpan",group:"script"}],e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Cy(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){e.registerCommand("applyClassName",(function(t,o,n){return e.s.commitStyle({attributes:xy({},"class",n)}),!1}))}},{key:"beforeDestruct",value:function(){}}])&&Sy(o.prototype,n),t}(zy(Hp));function Iy(e){var t=/([^[]*)\[([^\]]+)]/,o=/[\s]*,[\s]*/,n=/^(.*)[\s]*=[\s]*(.*)$/,r={};return Io(e)?(e.split(o).map((function(e){e=dn(e);var i=t.exec(e),a={};if(i){var l=i[2].split(o);i[1]&&(l.forEach((function(e){e=dn(e);var t=n.exec(e);t?a[t[1]]=t[2]:a[e]=!0})),r[i[1].toUpperCase()]=a)}else r[e.toUpperCase()]=!0})),r):!!e&&(Object.keys(e).forEach((function(t){r[t.toUpperCase()]=e[t]})),r)}function Py(e,t){var o=e.s,n=t;if(!n){n=e.createInside.fake();var r=o.range;ui.safeInsertNode(r,n),r.collapse()}var i=ui.furthest(n,Ry,e.editor);if(i)if(o.cursorOnTheLeft(i))ui.before(i,n);else if(o.cursorOnTheRight(i))ui.after(i,n);else{var a=o.splitSelection(i);a&&ui.after(a,n)}t||(o.setCursorBefore(n),ui.safeRemove(n))}function Ry(e){return ui.isInlineBlock(e)&&!ui.isTag(e,Pt)}function Ay(e,t,o,n){if(n&&ui.isElement(t)&&!0!==n[t.nodeName]){var r=t.attributes;if(r&&r.length){for(var i=[],a=0;a<r.length;a+=1){var l=n[t.nodeName][r[a].name];(!l||!0!==l&&l!==r[a].value)&&i.push(r[a].name)}i.length&&(o=!0),i.forEach((function(e){t.removeAttribute(e)}))}}return o}Ra.add("classSpan",Ty),kl.set("class-span",'<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M36 4h-24c-2.21 0-4 1.79-4 4v32c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4v-32c0-2.21-1.79-4-4-4zm-24 4h10v16l-5-3-5 3v-16z"/> </svg> '),tr.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:"script",useIframeSandbox:!1,removeOnError:!0,safeJavaScriptLink:!0,disableCleanFilter:null},tr.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},kl.set("eraser",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M832 1408l336-384h-768l-336 384h768zm1013-1077q15 34 9.5 71.5t-30.5 65.5l-896 1024q-38 44-96 44h-768q-38 0-69.5-20.5t-47.5-54.5q-15-34-9.5-71.5t30.5-65.5l896-1024q38-44 96-44h768q38 0 69.5 20.5t47.5 54.5z"/> </svg> ');var Ly=new Set(["table","tbody","thead","tfoot","tr"]);function My(e,t,o){if(e.o.cleanHTML.fillEmptyParagraph&&ui.isBlock(t)&&ui.isEmpty(t,Pt)&&!ui.isTag(t,Ly)){var n=e.createInside.element("br");return t.appendChild(n),!0}return o}function By(e,t,o,n,r,i){return ui.isText(t)&&!t.nodeValue?(t===i&&e.s.isCollapsed()&&e.s.setCursorAfter(t),ui.safeRemove(t),!0):o}function Dy(e,t,o,n,r,i){if(i===t||!ui.isText(t)||null==t.nodeValue)return o;if(!_t().test(t.nodeValue))return o;var a=ui.furthest(i,ui.isBlock,e.editor);return!a||ui.isOrContains(a,t)?o:(t.nodeValue=t.nodeValue.replace(_t(),""),t===i&&e.s.isCollapsed()&&e.s.setCursorAfter(t),t.nodeValue||ui.safeRemove(t),!0)}function Ny(e,t,o){var n=function(e,t,o){if(!o||!ui.isHTMLElement(t))return t;var n=o[t.nodeName.toLowerCase()]||o[t.nodeName];return n?ui.replace(t,n,e.createInside,!0,!1):t}(e,t,e.o.cleanHTML.replaceOldTags);return t!==n?(t=n,!0):o}function Hy(e,t,o){return!(!ui.isElement(t)||!Mi(t,{safeJavaScriptLink:e.options.cleanHTML.safeJavaScriptLink,removeOnError:e.options.cleanHTML.removeOnError}))||o}function Fy(e,t,o,n,r,i){return function(e,t,o,n,r){if(!ui.isText(t)){if(n&&!n[t.nodeName])return!0;if(!n&&r&&r[t.nodeName])return!0}return!!e.o.cleanHTML.removeEmptyElements&&(ui.isElement(t)&&null!=t.nodeName.match(Et)&&!ui.isTemporary(t)&&0===pn(t.innerHTML).length&&(null==o||!ui.isOrContains(t,o)))}(e,t,i,n,r)?(ui.safeRemove(t),!0):o}var qy=Object.keys(p);function Vy(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Wy(e,t,o){return Wy=Xy()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Ky(r,o.prototype),r},Wy.apply(null,arguments)}function Uy(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Yy(e){return Yy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Yy(e)}function Ky(e,t){return Ky=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ky(e,t)}function Gy(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Jy(e){var t="function"==typeof Map?new Map:void 0;return Jy=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Wy(e,arguments,Yy(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ky(n,e)},Jy(e)}function Xy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Xy=function(){return!!e})()}var Zy=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Gy(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Qy=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=Yy(t),function(e,t){return!t||"object"!==Gy(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Xy()?Reflect.construct(t,o||[],Yy(e).constructor):t.apply(e,o))}(this,t,arguments)).buttons=[{name:"eraser",group:"font-style"}],e.currentSelectionNode=null,e.walker=new kn(e.j.async,{timeout:e.j.o.cleanHTML.timeout}),e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ky(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){}},{key:"isEditMode",get:function(){return!(this.j.isInDestruct||!this.j.isEditorMode()||this.j.getReadOnly())}},{key:"onChangeCleanHTML",value:function(){if(this.isEditMode){var e=this.j;this.walker.setWork(e.editor),this.currentSelectionNode=e.s.current()}}},{key:"startWalker",value:function(){var e=this,t=this.jodit,o=Iy(this.j.o.cleanHTML.allowTags),n=Iy(this.j.o.cleanHTML.denyTags);this.walker.on("visit",(function(r){return function(e,t,o,n,r){var i=!1,a=e.o.cleanHTML.disableCleanFilter,l=!0,s=!1,c=void 0;try{for(var u,d=qy[Symbol.iterator]();!(l=(u=d.next()).done);l=!0){var f=u.value;if(!a||!a.has(f)){var h=i;if(i=(0,p[f])(e,t,i,o,n,r),ft||h||!i||console.warn('CleanHTML: Effect "'.concat(f,'"')),!t.isConnected)return!0}}}catch(e){s=!0,c=e}finally{try{l||null==d.return||d.return()}finally{if(s)throw c}}return i}(t,r,o,n,e.currentSelectionNode)})).on("end",(function(t){e.j.e.fire(t?"internalChange finishedCleanHTMLWorker":"finishedCleanHTMLWorker")}))}},{key:"beforeCommand",value:function(e){if("removeformat"===e.toLowerCase())return this.j.s.isCollapsed()?Py(this.j):function(e){var t=e.s,o=e.editor,n=e.createInside,r=t.range,i=r.cloneRange(),a=r.cloneRange(),l=n.fake(),s=n.fake();i.collapse(!0),a.collapse(!1),ui.safeInsertNode(i,l),ui.safeInsertNode(a,s),r.setStartBefore(l),r.collapse(!0),t.selectRange(r),Py(e,l),r.setEndAfter(s),r.collapse(!1),t.selectRange(r),Py(e,s);var c=[];ui.between(l,s,(function(e){Ry(e)&&!ui.isTag(e,"a")&&c.push(e),ui.isElement(e)&&Xn(e,"style")&&Xn(e,"style",null)})),c.forEach((function(e){return ui.unwrap(e)}));var u=function(e,t){if(!ui.findNotEmptySibling(e,t)){var n=e.parentNode;if(n&&n!==o&&Xn(n,"style"))return Xn(n,"style",null),u(n,t),!0}};u(l,!0)&&u(s,!1),r.setStartAfter(l),r.setEndBefore(s),t.selectRange(r),ui.safeRemove(l),ui.safeRemove(s)}(this.j),!1}},{key:"onBeforeSetNativeEditorValue",value:function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vy(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Vy(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.j.o.cleanHTML.useIframeSandbox?this.j.createInside.sandbox():[this.j.createInside.div()],2),o=t[0],n=t[1];return o.innerHTML=e.value,this.onSafeHTML(o),e.value=o.innerHTML,Li(o,{safeJavaScriptLink:!0,removeOnError:!0}),ui.safeRemove(n),!1}},{key:"onSafeHTML",value:function(e){Li(e,this.j.o.cleanHTML)}},{key:"beforeDestruct",value:function(){this.walker.destruct()}}],n&&Uy(o.prototype,n),t}(Jy(Hp));function $y(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Zy([Sa([":change",":afterSetMode",":afterInit",":mousedown",":keydown"])],Qy.prototype,"onChangeCleanHTML",null),Zy([tl("ready")],Qy.prototype,"startWalker",null),Zy([Sa(":beforeCommand")],Qy.prototype,"beforeCommand",null),Zy([Sa(":beforeSetNativeEditorValue")],Qy.prototype,"onBeforeSetNativeEditorValue",null),Zy([Sa(":safeHTML")],Qy.prototype,"onSafeHTML",null),Ra.add("cleanHtml",Qy),tr.prototype.controls.cut={command:"cut",isDisabled:function(e){return e.s.isCollapsed()},tooltip:"Cut selection"},tr.prototype.controls.copy={command:"copy",isDisabled:function(e){return e.s.isCollapsed()},tooltip:"Copy selection"},tr.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},kl.set("copy",'<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89,6.61H22.31V4.47A2.47,2.47,0,0,0,19.84,2H6.78A2.47,2.47,0,0,0,4.31,4.47V22.92a2.47,2.47,0,0,0,2.47,2.47H9.69V27.2a2.8,2.8,0,0,0,2.8,2.8h12.4a2.8,2.8,0,0,0,2.8-2.8V9.41A2.8,2.8,0,0,0,24.89,6.61ZM6.78,23.52a.61.61,0,0,1-.61-.6V4.47a.61.61,0,0,1,.61-.6H19.84a.61.61,0,0,1,.61.6V6.61h-8a2.8,2.8,0,0,0-2.8,2.8V23.52Zm19,3.68a.94.94,0,0,1-.94.93H12.49a.94.94,0,0,1-.94-.93V9.41a.94.94,0,0,1,.94-.93h12.4a.94.94,0,0,1,.94.93Z"/> <path d="M23.49,13.53h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,17.37h-9.6a.94.94,0,1,0,0,1.87h9.6a.94.94,0,1,0,0-1.87Z"/> <path d="M23.49,21.22h-9.6a.93.93,0,1,0,0,1.86h9.6a.93.93,0,1,0,0-1.86Z"/> </svg> ').set("cut",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M960 896q26 0 45 19t19 45-19 45-45 19-45-19-19-45 19-45 45-19zm300 64l507 398q28 20 25 56-5 35-35 51l-128 64q-13 7-29 7-17 0-31-8l-690-387-110 66q-8 4-12 5 14 49 10 97-7 77-56 147.5t-132 123.5q-132 84-277 84-136 0-222-78-90-84-79-207 7-76 56-147t131-124q132-84 278-84 83 0 151 31 9-13 22-22l122-73-122-73q-13-9-22-22-68 31-151 31-146 0-278-84-82-53-131-124t-56-147q-5-59 15.5-113t63.5-93q85-79 222-79 145 0 277 84 83 52 132 123t56 148q4 48-10 97 4 1 12 5l110 66 690-387q14-8 31-8 16 0 29 7l128 64q30 16 35 51 3 36-25 56zm-681-260q46-42 21-108t-106-117q-92-59-192-59-74 0-113 36-46 42-21 108t106 117q92 59 192 59 74 0 113-36zm-85 745q81-51 106-117t-21-108q-39-36-113-36-100 0-192 59-81 51-106 117t21 108q39 36 113 36 100 0 192-59zm178-613l96 58v-11q0-36 33-56l14-8-79-47-26 26q-3 3-10 11t-12 12q-2 2-4 3.5t-3 2.5zm224 224l96 32 736-576-128-64-768 431v113l-160 96 9 8q2 2 7 6 4 4 11 12t11 12l26 26zm704 416l128-64-520-408-177 138q-2 3-13 7z"/> </svg> ').set("paste",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> <path stroke-width="0" d="M10.5 20H2a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h1V3l2.03-.4a3 3 0 0 1 5.94 0L13 3v1h1a2 2 0 0 1 2 2v1h-2V6h-1v1H3V6H2v12h5v2h3.5zM8 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm2 4h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2zm0 2v8h8v-8h-8z"/> </svg> ').set("select-all",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 18 18"> <g fill-rule="evenodd" stroke="none" stroke-width="1"> <g transform="translate(-381.000000, -381.000000)"> <g transform="translate(381.000000, 381.000000)"> <path d="M0,2 L2,2 L2,0 C0.9,0 0,0.9 0,2 L0,2 Z M0,10 L2,10 L2,8 L0,8 L0,10 L0,10 Z M4,18 L6,18 L6,16 L4,16 L4,18 L4,18 Z M0,6 L2,6 L2,4 L0,4 L0,6 L0,6 Z M10,0 L8,0 L8,2 L10,2 L10,0 L10,0 Z M16,0 L16,2 L18,2 C18,0.9 17.1,0 16,0 L16,0 Z M2,18 L2,16 L0,16 C0,17.1 0.9,18 2,18 L2,18 Z M0,14 L2,14 L2,12 L0,12 L0,14 L0,14 Z M6,0 L4,0 L4,2 L6,2 L6,0 L6,0 Z M8,18 L10,18 L10,16 L8,16 L8,18 L8,18 Z M16,10 L18,10 L18,8 L16,8 L16,10 L16,10 Z M16,18 C17.1,18 18,17.1 18,16 L16,16 L16,18 L16,18 Z M16,6 L18,6 L18,4 L16,4 L16,6 L16,6 Z M16,14 L18,14 L18,12 L16,12 L16,14 L16,14 Z M12,18 L14,18 L14,16 L12,16 L12,18 L12,18 Z M12,2 L14,2 L14,0 L12,0 L12,2 L12,2 Z M4,14 L14,14 L14,4 L4,4 L4,14 L4,14 Z M6,6 L12,6 L12,12 L6,12 L6,6 L6,6 Z"/> </g> </g> </g> </svg> ');var e_=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.buttons=[{name:"cut",group:"clipboard"},{name:"copy",group:"clipboard"},{name:"paste",group:"clipboard"},{name:"selectall",group:"clipboard"}]}var t,o;return t=e,(o=[{key:"init",value:function(e){var t;null===(t=this.buttons)||void 0===t||t.forEach((function(t){return e.registerButton(t)})),e.e.off("copy.".concat(ko," cut.").concat(ko)).on("copy.".concat(ko," cut.").concat(ko),(function(t){var o,n=e.s.html,r=hr(t)||hr(e.ew)||hr(t.originalEvent);r&&(r.setData(oo,Hi(n)),r.setData(no,n)),e.buffer.set(ko,n),e.e.fire("pasteStack",{html:n,action:e.o.defaultActionOnPaste||lo}),"cut"===t.type&&(e.s.remove(),e.s.focus()),t.preventDefault(),null===(o=null==e?void 0:e.events)||void 0===o||o.fire("afterCopy",n)}))}},{key:"destruct",value:function(e){var t,o;null===(t=di(e,"buffer"))||void 0===t||t.set(ko,""),null===(o=null==e?void 0:e.events)||void 0===o||o.off("."+ko)}}])&&$y(t.prototype,o),e}();Ra.add("clipboard",e_);const t_={"copy-format":"نسخ التنسيق"},o_={"copy-format":"Kopírovat formát"},n_={"copy-format":"Format kopierenт"},r_={"copy-format":"Copiar formato"},i_={"copy-format":"کپی کردن قالب"},a_={"copy-format":"Kopioi muotoilu"},l_={"copy-format":"Format de copie"},s_={"copy-format":"העתק עיצוב"},c_={"copy-format":"Formátum másolás"},u_={"copy-format":"salin format"},d_={"copy-format":"Copia il formato"},f_={"copy-format":"copyformat"},p_={"copy-format":"복사 형식"},h_={"copy-format":"Формат хуулах"},v_={"copy-format":"opmaak kopiëren"},g_={"copy-format":"format kopii"},m_={"copy-format":"Copiar formato"},b_={"copy-format":"Копировать формат"},y_={"copy-format":"Kopyalama Biçimi"},__={"copy-format":"复制格式"},j_={"copy-format":"複製格式"};var w_="copy-format",k_=["lineHeight","fontWeight","fontStyle","fontSize","fontFamily","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine"],S_=function(e,t,o,n){var r=In(o,t);return r===n[t]&&(r=o.parentNode&&o!==e.editor&&o.parentNode!==e.editor?S_(e,t,o.parentNode,n):void 0),r};function x_(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function O_(e,t,o){return O_=P_()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&E_(r,o.prototype),r},O_.apply(null,arguments)}function C_(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function z_(e){return z_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},z_(e)}function E_(e,t){return E_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},E_(e,t)}function T_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function I_(e){var t="function"==typeof Map?new Map:void 0;return I_=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return O_(e,arguments,z_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),E_(n,e)},I_(e)}function P_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(P_=function(){return!!e})()}tr.prototype.controls.copyformat={exec:function(e,t,o){var n=o.button;if(t){if(e.buffer.exists(w_))e.buffer.delete(w_),e.e.off(e.editor,"mouseup."+w_);else{var r={},i=ui.up(t,(function(e){return e&&!ui.isText(e)}),e.editor)||e.editor,a=e.createInside.span();e.editor.appendChild(a),k_.forEach((function(e){r[e]=In(a,e)})),a!==e.editor&&ui.safeRemove(a);var l=function(e,t,o){var n={};return t&&k_.forEach((function(r){n[r]=S_(e,r,t,o),r.match(/border(Style|Color)/)&&!n.borderWidth&&(n[r]=void 0)})),n}(e,i,r);e.e.on(e.editor,"mouseup."+w_,(function(){e.buffer.delete(w_);var t=e.s.current();t&&(ui.isTag(t,"img")?In(t,l):e.s.commitStyle({attributes:{style:l}})),e.e.off(e.editor,"mouseup."+w_)})),e.buffer.set(w_,!0)}n.update()}},isActive:function(e){return e.buffer.exists(w_)},tooltip:"Paint format"},Ra.add("copyformat",(function(e){e.registerButton({name:"copyformat",group:"clipboard"}),La(h)})),kl.set("copyformat",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 16 16"> <path stroke-width="0" d="M16 9v-6h-3v-1c0-0.55-0.45-1-1-1h-11c-0.55 0-1 0.45-1 1v3c0 0.55 0.45 1 1 1h11c0.55 0 1-0.45 1-1v-1h2v4h-9v2h-0.5c-0.276 0-0.5 0.224-0.5 0.5v5c0 0.276 0.224 0.5 0.5 0.5h2c0.276 0 0.5-0.224 0.5-0.5v-5c0-0.276-0.224-0.5-0.5-0.5h-0.5v-1h9zM12 3h-11v-1h11v1z"/> </svg> ');var R_=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":T_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},A_=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=z_(t),function(e,t){return!t||"object"!==T_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,P_()?Reflect.construct(t,o||[],z_(e).constructor):t.apply(e,o))}(this,t,arguments)).isFragmentFromEditor=!1,e.isCopyMode=!1,e.startDragPoint={x:0,y:0},e.draggable=null,e.bufferRange=null,e.getText=function(e){var t=hr(e);return t?t.getData(no)||t.getData(oo):null},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E_(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(){this.j.e.on([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}},{key:"onDragStart",value:function(e){var t=e.target;if(this.onDragEnd(),this.isFragmentFromEditor=ui.isOrContains(this.j.editor,t,!0),this.isCopyMode=!this.isFragmentFromEditor||wr(e),this.isFragmentFromEditor){var o=this.j.s.sel,n=o&&o.rangeCount?o.getRangeAt(0):null;n&&(this.bufferRange=n.cloneRange())}else this.bufferRange=null;this.startDragPoint.x=e.clientX,this.startDragPoint.y=e.clientY,function(e){return ui.isElement(e)&&e.classList.contains(yp.prototype.getFullElName("item"))}(t)&&(t=t.querySelector("img")),ui.isTag(t,"img")&&(this.draggable=t.cloneNode(!0),ar(this.draggable,"target",t)),this.addDragListeners()}},{key:"addDragListeners",value:function(){this.j.e.on("dragover",this.onDrag).on("drop.DragAndDrop",this.onDrop).on(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}},{key:"removeDragListeners",value:function(){this.j.e.off("dragover",this.onDrag).off("drop.DragAndDrop",this.onDrop).off(window,"dragend.DragAndDrop drop.DragAndDrop mouseup.DragAndDrop",this.onDragEnd)}},{key:"onDrag",value:function(e){this.draggable&&(this.j.e.fire("hidePopup"),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())}},{key:"onDragEnd",value:function(){this.draggable&&(ui.safeRemove(this.draggable),this.draggable=null),this.isCopyMode=!1,this.removeDragListeners()}},{key:"onDrop",value:function(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!this.isFragmentFromEditor&&!this.draggable)return this.j.e.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;var t=this.j.s.sel,o=this.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),n=this.__getWorkFragment(o,e);t&&t.removeAllRanges(),this.j.s.insertCursorAtPoint(e.clientX,e.clientY),n&&this.__insertFragment.call(this,n,o),e.preventDefault(),e.stopPropagation()}this.isFragmentFromEditor=!1,this.removeDragListeners()}},{key:"__getWorkFragment",value:function(e,t){var o=null;if(!this.draggable&&e)o=this.isCopyMode?e.cloneContents():e.extractContents();else if(this.draggable)if(this.isCopyMode){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x_(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?x_(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}("1"===Xn(this.draggable,"-is-file")?["a","href"]:["img","src"],2),r=n[0],i=n[1];(o=this.j.createInside.element(r)).setAttribute(i,Xn(this.draggable,"data-src")||Xn(this.draggable,"src")||""),"a"===r&&(o.textContent=Xn(o,i)||"")}else o=ar(this.draggable,"target");else this.getText(t)&&(o=this.j.createInside.fromHTML(this.getText(t)));return o}},{key:"__insertFragment",value:function(e,t){this.j.s.insertNode(e,!1,!1),t&&e.firstChild&&e.lastChild&&(t.setStartBefore(e.firstChild),t.setEndAfter(e.lastChild),this.j.s.selectRange(t),this.j.e.fire("synchro")),ui.isTag(e,"img")&&this.j.events&&this.j.e.fire("afterInsertImage",e)}},{key:"beforeDestruct",value:function(){this.onDragEnd(),this.j.e.off(window,".DragAndDrop").off(".DragAndDrop").off([window,this.j.ed,this.j.editor],"dragstart.DragAndDrop",this.onDragStart)}}],n&&C_(o.prototype,n),t}(I_(Hp));function L_(e,t,o){return L_=F_()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&D_(r,o.prototype),r},L_.apply(null,arguments)}function M_(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function B_(e){return B_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},B_(e)}function D_(e,t){return D_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D_(e,t)}function N_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function H_(e){var t="function"==typeof Map?new Map:void 0;return H_=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return L_(e,arguments,B_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),D_(n,e)},H_(e)}function F_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(F_=function(){return!!e})()}R_([Co],A_.prototype,"onDragStart",null),R_([Za((function(e){return e.defaultTimeout/10}))],A_.prototype,"onDrag",null),R_([Co],A_.prototype,"onDragEnd",null),R_([Co],A_.prototype,"onDrop",null),Ra.add("dragAndDrop",A_),tr.prototype.draggableTags=["img","jodit-media","jodit"];var q_,V_=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":N_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};!function(e){e[e.IDLE=0]="IDLE",e[e.WAIT_DRAGGING=1]="WAIT_DRAGGING",e[e.DRAGGING=2]="DRAGGING"}(q_||(q_={}));var W_=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=B_(t),function(e,t){return!t||"object"!==N_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,F_()?Reflect.construct(t,o||[],B_(e).constructor):t.apply(e,o))}(this,t,arguments)).dragList=[],e.draggable=null,e.isCopyMode=!1,e.diffStep=10,e.startX=0,e.startY=0,e.state=q_.IDLE,e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D_(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(){this.dragList=this.j.o.draggableTags?Ei(this.j.o.draggableTags).filter(Boolean).map((function(e){return e.toLowerCase()})):[],this.dragList.length&&this.j.e.on("mousedown dragstart",this.onDragStart)}},{key:"onDragStart",value:function(e){var t=this;if("dragstart"===e.type&&this.draggable)return!1;if(!(this.state>q_.IDLE)){var o=e.target;if(this.dragList.length&&o){var n=function(e){return Boolean(e&&t.dragList.includes(e.nodeName.toLowerCase()))},r=ui.furthest(o,n,this.j.editor)||(n(o)?o:null);r&&(ui.isTag(r.parentElement,"a")&&r.parentElement.firstChild===r&&r.parentElement.lastChild===r&&(r=r.parentElement),this.startX=e.clientX,this.startY=e.clientY,this.isCopyMode=wr(e),this.draggable=r.cloneNode(!0),ar(this.draggable,"target",r),this.state=q_.WAIT_DRAGGING,this.addDragListeners())}}}},{key:"onDrag",value:function(e){var o,n;if(this.draggable&&this.state!==q_.IDLE){var r=e.clientX,i=e.clientY;if(!(this.state===q_.WAIT_DRAGGING&&Math.sqrt(Math.pow(r-this.startX,2)+Math.pow(i-this.startY,2))<this.diffStep)){if(this.state===q_.WAIT_DRAGGING&&(this.j.lock("drag-and-drop-element"),this.state=q_.DRAGGING),this.j.e.fire("hidePopup hideResizer"),!this.draggable.parentNode){var a=ar(this.draggable,"target");In(this.draggable,{zIndex:1e13,pointerEvents:"none",pointer:"drag",position:"fixed",opacity:.7,display:"inline-block",left:e.clientX,top:e.clientY,width:null!==(o=null==a?void 0:a.offsetWidth)&&void 0!==o?o:100,height:null!==(n=null==a?void 0:a.offsetHeight)&&void 0!==n?n:100}),Ba(this.j,t).appendChild(this.draggable)}In(this.draggable,{left:e.clientX,top:e.clientY}),this.j.s.insertCursorAtPoint(e.clientX,e.clientY)}}}},{key:"onDragEnd",value:function(){this.isInDestruct||(this.removeDragListeners(),this.j.unlock(),this.state=q_.IDLE,this.draggable&&(ui.safeRemove(this.draggable),this.draggable=null))}},{key:"onDrop",value:function(){if(!this.draggable||this.state<q_.DRAGGING)this.onDragEnd();else{var e=ar(this.draggable,"target");this.onDragEnd(),this.isCopyMode&&(e=e.cloneNode(!0));var t=e.parentElement;this.j.s.insertNode(e,!0,!1),t&&ui.isEmpty(t)&&!ui.isCell(t)&&ui.safeRemove(t),ui.isTag(e,"img")&&this.j.e&&this.j.e.fire("afterInsertImage",e),this.j.e.fire("synchro")}}},{key:"addDragListeners",value:function(){this.j.e.on(this.j.editor,"mousemove",this.onDrag).on("mouseup",this.onDrop).on([this.j.ew,this.ow],"mouseup",this.onDragEnd)}},{key:"removeDragListeners",value:function(){this.j.e.off(this.j.editor,"mousemove",this.onDrag).off("mouseup",this.onDrop).off([this.j.ew,this.ow],"mouseup",this.onDragEnd)}},{key:"beforeDestruct",value:function(){this.onDragEnd(),this.j.e.off("mousedown dragstart",this.onDragStart),this.removeDragListeners()}}])&&M_(o.prototype,n),t}(H_(Hp));V_([Co],W_.prototype,"onDragStart",null),V_([Za((function(e){return e.defaultTimeout/10}))],W_.prototype,"onDrag",null),V_([Co],W_.prototype,"onDragEnd",null),V_([Co],W_.prototype,"onDrop",null),Ra.add("dragAndDropElement",W_),tr.prototype.controls.file={popup:function(e,t,o){var n=function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e.s.insertNode(e.createInside.fromHTML('<a href="'.concat(t,'" title="').concat(o,'">').concat(o||t,"</a>")))},r=null;return t&&(ui.isTag(t,"a")||ui.closest(t,"a",e.editor))&&(r=ui.isTag(t,"a")?t:ui.closest(t,"a",e.editor)),Zg(e,{filebrowser:function(e){e.files&&e.files.forEach((function(t){return n(e.baseurl+t)})),o()},upload:!0,url:function(e,t){r?(r.setAttribute("href",e),r.setAttribute("title",t)):n(e,t),o()}},r,o,!1)},tags:["a"],tooltip:"Insert file"},Ra.add("file",(function(e){e.registerButton({name:"file",group:"media"})})),tr.prototype.autofocus=!1,tr.prototype.cursorAfterAutofocus="end",tr.prototype.saveSelectionOnBlur=!0,Ra.add("focus",(function(e){e.o.saveSelectionOnBlur&&e.e.on("blur",(function(){e.isEditorMode()&&e.s.save(!0)})).on("focus",(function(){e.s.restore()}));var t=function(){if(e.s.focus(),"end"===e.o.cursorAfterAutofocus){var t=ui.last(e.editor,(function(e){return ui.isText(e)}));t&&e.s.setCursorIn(t,!1)}};e.e.on("afterInit",(function(){e.o.autofocus&&(e.defaultTimeout?e.async.setTimeout(t,300):t())})),e.e.on("afterInit afterAddPlace",(function(){e.e.off(e.editor,"mousedown.autofocus").on(e.editor,"mousedown.autofocus",(function(t){e.isEditorMode()&&t.target&&ui.isBlock(t.target)&&!t.target.childNodes.length&&(e.editor===t.target?e.s.focus():e.s.setCursorIn(t.target))}))}))})),tr.prototype.fullsize=!1,tr.prototype.globalFullSize=!0,kl.set("fullsize",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <path stroke-width="0" d="M22,20.6L3.4,2H8V0H0v8h2V3.4L20.6,22H16v2h8v-8h-2V20.6z M16,0v2h4.7l-6.3,6.3l1.4,1.4L22,3.5V8h2V0H16z M8.3,14.3L2,20.6V16H0v8h8v-2H3.5l6.3-6.3L8.3,14.3z"/> </svg> ').set("shrink",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M896 960v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45zm755-672q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23z"/> </svg> '),tr.prototype.controls.fullsize={exec:function(e){e.toggleFullSize()},update:function(e,t){var o=e.isFullSize?"shrink":"fullsize";t.state.activated=e.isFullSize,e.o.textIcons?t.state.text=o:t.state.icon.name=o},tooltip:"Open in fullsize",mode:$t+Qt};var U_=new Set;function Y_(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function K_(e,t,o){return K_=$_()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&X_(r,o.prototype),r},K_.apply(null,arguments)}function G_(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function J_(e){return J_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},J_(e)}function X_(e,t){return X_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},X_(e,t)}function Z_(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Q_(e){var t="function"==typeof Map?new Map:void 0;return Q_=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return K_(e,arguments,J_(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),X_(n,e)},Q_(e)}function $_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($_=function(){return!!e})()}Ra.add("fullsize",(function(e){e.registerButton({name:"fullsize"});var t=!1,o=0,n=0,r=!1,i=function(){var i=e.container;e.events&&(t?(o=In(i,"height",!0),n=In(i,"width",!0),In(i,{height:e.ow.innerHeight,width:e.ow.innerWidth}),r=!0):r&&In(i,{height:o||"auto",width:n||"auto"}))},a=function(o){var n,r=e.container,a=e.events;if(r){if(void 0===o&&(o=!r.classList.contains("jodit_fullsize")),e.setMod("fullsize",o),e.o.fullsize=o,t=o,r.classList.toggle("jodit_fullsize",o),e.toolbar&&($o(e)&&(null===(n=e.toolbarContainer)||void 0===n||n.appendChild(e.toolbar.container)),In(e.toolbar.container,"width","auto")),o?U_.add(r):U_.delete(r),e.o.globalFullSize&&(1===U_.size&&o||0===U_.size&&!o)){for(var l=r.parentNode;l&&l.nodeType!==Node.DOCUMENT_NODE&&l.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;)l.classList.toggle("jodit_fullsize-box_true",o),l=l.parentNode;i()}a.fire("afterResize")}};e.o.globalFullSize&&e.e.on(e.ow,"resize",i),e.e.on("afterInit afterOpen",(function(){var t;e.toggleFullSize(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.fullsize)})).on("toggleFullSize",a).on("beforeDestruct",(function(){t&&a(!1)})).on("beforeDestruct",(function(){e.events&&e.e.off(e.ow,"resize",i)}))})),kl.set("hr",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1600 736v192q0 40-28 68t-68 28h-1216q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h1216q40 0 68 28t28 68z"/> </svg> '),tr.prototype.controls.hr={command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},Ra.add("hr",(function(e){e.registerButton({name:"hr",group:"insert"}),e.registerCommand("insertHorizontalRule",(function(){var t=e.createInside.element("hr");e.s.insertNode(t,!1,!1);var o=ui.closest(t.parentElement,ui.isBlock,e.editor);o&&ui.isEmpty(o)&&o!==e.editor&&(ui.after(o,t),ui.safeRemove(o));var n=ui.next(t,ui.isBlock,e.editor,!1);return n||(n=e.createInside.element(e.o.enter),ui.after(t,n)),e.s.setCursorIn(n),!1}))})),tr.prototype.imageProcessor={replaceDataURIToBlobIdInView:!0};var ej=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Z_(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},tj="__jodit_imageprocessor_binded",oj=tj+"blob-id",nj=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=J_(o=t),function(e,t){return!t||"object"!==Z_(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,$_()?Reflect.construct(o,n||[],J_(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X_(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){var t=di(e,"buffer"),o=null==t?void 0:t.get(oj);if(t&&o){var n=Object.keys(o),r=!0,i=!1,a=void 0;try{for(var l,s=n[Symbol.iterator]();!(r=(l=s.next()).done);r=!0){var c=l.value;URL.revokeObjectURL(c)}}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}t.delete(oj)}}},{key:"onAfterGetValueFromEditor",value:function(e,t){if(t!==So)return this.onBeforeSetElementValue(e)}},{key:"onBeforeSetElementValue",value:function(e){var t=this.jodit;if(t.o.imageProcessor.replaceDataURIToBlobIdInView){var o=t.buffer.get(oj);if(o){var n=Object.keys(o),r=!0,i=!1,a=void 0;try{for(var l,s=n[Symbol.iterator]();!(r=(l=s.next()).done);r=!0)for(var c=l.value;e.value.includes(c);)e.value=e.value.replace(c,o[c])}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}}}}},{key:"afterChange",value:function(e){var t,o=this;return(t=function(){var e;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(t){return(e=o.jodit).editor?(Jr("img",e.editor).forEach((function(t){ar(t,tj)||(ar(t,tj,!0),t.complete||e.e.on(t,"load",(function o(){var n;!e.isInDestruct&&(null===(n=e.e)||void 0===n||n.fire("resize")),e.e.off(t,"load",o)})),t.src&&/^data:/.test(t.src)&&function(e,t){if(e.o.imageProcessor.replaceDataURIToBlobIdInView&&"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof URL){var o=t.src,n=function(e){for(var t=atob(e.split(",")[1]),o=e.split(",")[0].split(":")[1].split(";")[0],n=new ArrayBuffer(t.length),r=new Uint8Array(n),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return new Blob([n],{type:o})}(o);t.src=URL.createObjectURL(n),e.e.fire("internalUpdate");var r=e.buffer.get(oj)||{};r[t.src]=o,e.buffer.set(oj,r)}}(e,t),e.e.on(t,"mousedown touchstart",(function(){e.s.select(t)})))})),[2]):[2]}))},function(){var e=this,o=arguments;return new Promise((function(n,r){var i=t.apply(e,o);function a(e){Y_(i,n,r,a,l,"next",e)}function l(e){Y_(i,n,r,a,l,"throw",e)}a(void 0)}))})()}}],n&&G_(o.prototype,n),t}(Q_(Hp));function rj(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function ij(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function aj(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lj(e){return lj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lj(e)}function sj(e,t){return sj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sj(e,t)}function cj(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function uj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uj=function(){return!!e})()}ej([Sa(":afterGetValueFromEditor")],nj.prototype,"onAfterGetValueFromEditor",null),ej([Sa(":beforeSetElementValue")],nj.prototype,"onBeforeSetElementValue",null),ej([Sa([":change",":afterInit",":changePlace"]),Xa()],nj.prototype,"afterChange",null),Ra.add("imageProcessor",nj),tr.prototype.image={dialogWidth:600,openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,availableClasses:[],editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0};var dj=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":cj(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},fj=function(e){function t(e,o,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,o){return t=lj(t),function(e,t){return!t||"object"!==cj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,uj()?Reflect.construct(t,o||[],lj(e).constructor):t.apply(e,o))}(this,t,[e])).state=o,r.handlers=n,r}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sj(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UIImageMainTab"}},{key:"appendChildToContainer",value:function(){}},{key:"render",value:function(){return'<div class="jodit-form__group &__editSrc">\n\t\t\t<label>~Src~</label>\n\t\t\t<div class="jodit-input_group">\n\t\t\t\t<input class="jodit-input &__imageSrc" type="text"/>\n\t\t\t\t<div class="jodit-input_group-buttons &__fixImage">\n\t\t\t\t\t\t<a class="jodit-button &__changeImage">*image*</a>\n\t\t\t\t\t\t<a class="jodit-button &__editImage">*crop*</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editTitle">\n\t\t\t<label>~Title~</label>\n\t\t\t<input type="text" class="jodit-input &__imageTitle"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editAlt">\n\t\t\t<label>~Alternative~</label>\n\t\t\t<input type="text" class="jodit-input &__imageAlt"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editLink">\n\t\t\t<label>~Link~</label>\n\t\t\t<input type="text" class="jodit-input &__imageLink"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editLinkTarget">\n\t\t\t<label class="jodit_vertical_middle">\n\t\t\t\t<input type="checkbox" class="jodit-checkbox &__imageLinkOpenInNewTab"/>\n\t\t\t\t<span>~Open link in new tab~</span>\n\t\t\t</label>\n\t\t</div>'}},{key:"onStateImageSrcChange",value:function(){var e,t=this;return(e=function(){return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(e){return t.getElm("imageSrc").value=t.state.values.imageSrc,[2]}))},function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){ij(i,n,r,a,l,"next",e)}function l(e){ij(i,n,r,a,l,"throw",e)}a(void 0)}))})()}},{key:"onImageSrcChange",value:function(){this.state.values.imageSrc=this.getElm("imageSrc").value}},{key:"onEditImageClick",value:function(e){this.handlers.openImageEditor(),e.stopPropagation()}},{key:"onChangeImageClick",value:function(e){this.handlers.openImagePopup(this.getElm("changeImage")),e.stopPropagation()}},{key:"onStateTitleChange",value:function(){this.getElm("imageTitle").value=this.state.values.imageTitle}},{key:"onTitleChange",value:function(){this.state.values.imageTitle=this.getElm("imageTitle").value}},{key:"onStateAltChange",value:function(){this.getElm("imageAlt").value=this.state.values.imageAlt}},{key:"onAltChange",value:function(){this.state.values.imageAlt=this.getElm("imageAlt").value}},{key:"onStateImageLinkChange",value:function(){this.getElm("imageLink").value=this.state.values.imageLink}},{key:"onImageLinkChange",value:function(){this.state.values.imageLink=this.getElm("imageLink").value}},{key:"onStateImageLinkOpenInNewTabChange",value:function(){this.getElm("imageLinkOpenInNewTab").checked=this.state.values.imageLinkOpenInNewTab}},{key:"onImageLinkOpenInNewTabChange",value:function(){this.state.values.imageLinkOpenInNewTab=this.getElm("imageLinkOpenInNewTab").checked}},{key:"hideFieldByOptions",value:function(){var e=this,t=this.j.o,o=t.image;[["editSrc","editSrc"],["editTitle","editTitle"],["editAlt","editAlt"],["editLink","editLink"],["editLink","editLinkTarget"],["useImageEditor","editImage"]].forEach((function(t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return rj(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?rj(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t,2),r=n[0],i=n[1];In(e.getElm(i),"display",o[r]?null:"none")}));var n=this.getElm("changeImage"),r=Boolean(t.filebrowser.ajax.url||t.uploader.url);In(n,"display",r?null:"none");var i=this.getElm("editImage"),a=Boolean(t.filebrowser.ajax.url)&&o.useImageEditor;In(i,"display",a?null:"none"),In(this.getElm("fixImage"),"display",r||a?null:"none")}}],n&&aj(o.prototype,n),t}(ql);dj([Sa("state.values.imageSrc")],fj.prototype,"onStateImageSrcChange",null),dj([Sa("imageSrc:change")],fj.prototype,"onImageSrcChange",null),dj([Sa("editImage:click")],fj.prototype,"onEditImageClick",null),dj([Sa("changeImage:click")],fj.prototype,"onChangeImageClick",null),dj([Sa("state.values.imageTitle")],fj.prototype,"onStateTitleChange",null),dj([Sa("imageTitle:change")],fj.prototype,"onTitleChange",null),dj([Sa("state.values.imageAlt")],fj.prototype,"onStateAltChange",null),dj([Sa("imageAlt:change")],fj.prototype,"onAltChange",null),dj([Sa("state.values.imageLink")],fj.prototype,"onStateImageLinkChange",null),dj([Sa("imageLink:change")],fj.prototype,"onImageLinkChange",null),dj([Sa("state.values.imageLinkOpenInNewTab")],fj.prototype,"onStateImageLinkOpenInNewTabChange",null),dj([Sa("imageLinkOpenInNewTab:change")],fj.prototype,"onImageLinkOpenInNewTabChange",null),dj([tl("ready")],fj.prototype,"hideFieldByOptions",null),fj=dj([bi],fj);var pj=function(e){return/^[-+]?[0-9.]+(px)?$/.test(e.toString())?parseFloat(e.toString()):e},hj=function(e){return on(e)?e?e+"px":e.toString():(e=dn(e),/^[0-9]+$/.test(e)?e+"px":e)};function vj(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function gj(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function mj(e){return mj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},mj(e)}function bj(e,t){return bj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},bj(e,t)}function yj(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function _j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_j=function(){return!!e})()}var jj=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":yj(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},wj=function(e){function t(e,o,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,o){return t=mj(t),function(e,t){return!t||"object"!==yj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,_j()?Reflect.construct(t,o||[],mj(e).constructor):t.apply(e,o))}(this,t,[e,{availableClasses:e.o.image.availableClasses}])).state=o,r.handlers=n,r}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bj(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UIImagePositionTab"}},{key:"render",value:function(e){var t,o=e.availableClasses;return'<div class="jodit-form__group &__editMargins">\n\t\t\t<label>~Margins~</label>\n\t\t\t<div class="jodit-grid jodit_vertical_middle">\n\t\t\t\t<input class="jodit_col-lg-1-5 jodit-input &__marginTop" type="text" placeholder="~top~"/>\n\t\t\t\t<a style="text-align: center;" class="jodit-properties__lock jodit_col-lg-1-5 &__lockMargin">*lock*</a>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginRight" type="text" placeholder="~right~"/>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginBottom" type="text" placeholder="~bottom~"/>\n\t\t\t\t<input disabled="disabled" class="jodit_col-lg-1-5 jodit-input &__marginLeft" type="text" placeholder="~left~"/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editAlign">\n\t\t\t<label>~Align~</label>\n\t\t\t<select class="jodit-select &__align">\n\t\t\t\t<option value="">~--Not Set--~</option>\n\t\t\t\t<option value="left">~Left~</option>\n\t\t\t\t<option value="center">~Center~</option>\n\t\t\t\t<option value="right">~Right~</option>\n\t\t\t</select>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editStyle">\n\t\t\t<label>~Styles~</label>\n\t\t\t<input type="text" class="jodit-input &__style"/>\n\t\t</div>\n\t\t<div class="jodit-form__group &__editClass">\n\t\t\t<label>~Classes~</label>\n\t\t\t'.concat((t=[],o&&o.length>0?(t.push('<select class="jodit-input jodit-select &__classes">'),o.forEach((function(e){Io(e)?t.push('<option value="'.concat(e,'">').concat(e,"</option>")):t.push('<option value="'.concat(e[0],'">').concat(e[1],"</option>"))})),t.push("</select>")):t.push('<input type="text" class="jodit-input &__classes"/>'),t.join("")),'\n\t\t</div>\n\t\t<div class="jodit-form__group &__editId">\n\t\t\t<label>Id</label>\n\t\t\t<input type="text" class="jodit-input &__id"/>\n\t\t</div>\n\t\t<div\n\t\t\tclass="jodit-form__group &__editBorderRadius"\n\t\t>\n\t\t\t<label>~Border radius~</label>\n\t\t\t<input type="number" class="jodit-input &__borderRadius"/>\n\t\t</div>')}},{key:"onStateAlignChange",value:function(){this.getElm("align").value=this.state.values.align}},{key:"onChangeAlign",value:function(){var e=this.getElm("align");this.state.values.align=e.value}},{key:"onStateValuesBorderRadiusChange",value:function(){this.getElm("borderRadius").value=this.state.values.borderRadius.toString()}},{key:"onChangeBorderRadius",value:function(){var e=this.getElm("borderRadius");this.state.values.borderRadius=parseFloat(e.value)}},{key:"onStateValuesIdChange",value:function(){this.getElm("id").value=this.state.values.id}},{key:"onChangeId",value:function(){var e=this.getElm("id");this.state.values.id=e.value}},{key:"onStateValuesStyleChange",value:function(){this.getElm("style").value=this.state.values.style}},{key:"onChangeStyle",value:function(){var e=this.getElm("style");this.state.values.style=e.value}},{key:"onStateValuesClassesChange",value:function(){this.getElm("classes").value=this.state.values.classes}},{key:"onChangClasses",value:function(){var e=this.getElm("classes");this.state.values.classes=e.value}},{key:"onLockMarginClick",value:function(e){this.state.marginIsLocked=!this.state.marginIsLocked,e.preventDefault()}},{key:"onChangeMarginIsLocked",value:function(){var e=this,t=this.getElm("marginBottom"),o=this.getElm("marginRight"),n=this.getElm("marginLeft"),r=this.getElm("lockMargin");if([o,t,n].forEach((function(t){Xn(t,"disabled",e.state.marginIsLocked||null)})),r.innerHTML=kl.get(this.state.marginIsLocked?"lock":"unlock"),this.state.marginIsLocked){var i=this.state.values.marginTop;this.state.values.marginRight=i,this.state.values.marginBottom=i,this.state.values.marginLeft=i}}},{key:"onStateValuesMarginChange",value:function(){var e=this.getElm("marginTop"),t=this.getElm("marginRight"),o=this.getElm("marginBottom"),n=this.getElm("marginLeft");e.value=this.state.values.marginTop.toString(),t.value=this.state.values.marginRight.toString(),o.value=this.state.values.marginBottom.toString(),n.value=this.state.values.marginLeft.toString()}},{key:"onChangeMargin",value:function(){var e=this.getElm("marginTop"),t=this.getElm("marginRight"),o=this.getElm("marginBottom"),n=this.getElm("marginLeft");this.state.values.marginTop=pj(e.value),this.state.marginIsLocked?(this.state.values.marginRight=this.state.values.marginTop,this.state.values.marginBottom=this.state.values.marginTop,this.state.values.marginLeft=this.state.values.marginTop):(this.state.values.marginRight=pj(t.value),this.state.values.marginBottom=pj(o.value),this.state.values.marginLeft=pj(n.value))}},{key:"hideFieldByOptions",value:function(){var e=this,t=this.j.o.image;[["editMargins","editMargins"],["editAlign","editAlign"],["editStyle","editStyle"],["editClass","editClass"],["editId","editId"],["editBorderRadius","editBorderRadius"]].forEach((function(o){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return vj(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?vj(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o,2),r=n[0],i=n[1];In(e.getElm(i),"display",t[r]?null:"none")}))}}],n&&gj(o.prototype,n),t}(Il);function kj(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Sj(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xj(e,t,o){return xj="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Oj(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},xj(e,t,o||e)}function Oj(e){return Oj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Oj(e)}function Cj(e,t){return Cj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Cj(e,t)}function zj(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ej(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ej=function(){return!!e})()}jj([tl("ready"),Sa("state.values.align")],wj.prototype,"onStateAlignChange",null),jj([Sa("align:change")],wj.prototype,"onChangeAlign",null),jj([tl("ready"),Sa("state.values.borderRadius")],wj.prototype,"onStateValuesBorderRadiusChange",null),jj([Sa("borderRadius:change")],wj.prototype,"onChangeBorderRadius",null),jj([tl("ready"),Sa("state.values.id")],wj.prototype,"onStateValuesIdChange",null),jj([Sa("id:change")],wj.prototype,"onChangeId",null),jj([tl("ready"),Sa("state.values.style")],wj.prototype,"onStateValuesStyleChange",null),jj([Sa("style:change")],wj.prototype,"onChangeStyle",null),jj([tl("ready"),Sa("state.values.classes")],wj.prototype,"onStateValuesClassesChange",null),jj([Sa("classes:change")],wj.prototype,"onChangClasses",null),jj([Sa("lockMargin:click")],wj.prototype,"onLockMarginClick",null),jj([tl("ready"),Sa("state.marginIsLocked")],wj.prototype,"onChangeMarginIsLocked",null),jj([tl("ready"),Sa(["state.values.marginTop","state.values.marginRight","state.values.marginBottom","state.values.marginLeft"])],wj.prototype,"onStateValuesMarginChange",null),jj([Sa(["marginTop:change","marginRight:change","marginBottom:change","marginLeft:change"])],wj.prototype,"onChangeMargin",null),jj([tl("ready")],wj.prototype,"hideFieldByOptions",null),wj=jj([bi],wj);var Tj=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":zj(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Ij=function(e){function t(e,o,n,r){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=function(e,t,o){return t=Oj(t),function(e,t){return!t||"object"!==zj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Ej()?Reflect.construct(t,o||[],Oj(e).constructor):t.apply(e,o))}(this,t,[e])).state=o,i.handlers=r,i.__mainTab=new fj(i.jodit,i.state,i.handlers),i.__positionTab=new wj(i.jodit,i.state,i.handlers),i.getElm("tabsBox").appendChild(Xg(e,[{name:"Image",content:i.__mainTab},{name:"Advanced",content:i.__positionTab}],n)),i.setMod("lock-size",i.state.sizeIsLocked),i.append(i.__mainTab).append(i.__positionTab),i}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Cj(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UIImagePropertiesForm"}},{key:"appendChildToContainer",value:function(){}},{key:"getElm",value:function(e){var o=xj(Oj(t.prototype),"getElm",this).call(this,e);if(o)return o;var n=!0,r=!1,i=void 0;try{for(var a,l=this.elements[Symbol.iterator]();!(n=(a=l.next()).done);n=!0){var s=a.value.getElm(e);if(s)return s}}catch(e){r=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw i}}return null}},{key:"render",value:function(){return'<form>\n\t\t<div class="jodit-grid jodit-grid_xs-column">\n\t\t\t<div class="jodit_col-lg-2-5 jodit_col-xs-5-5">\n\t\t\t\t<div class="&__view-box">\n\t\t\t\t\t<div class="&__imageView">\n\t\t\t\t\t\t<img class="&__imageViewSrc" src="" alt=""/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="jodit-form__group &__imageSizes">\n\t\t\t\t\t\t<input type="text" class="jodit-input &__imageWidth"/>\n\t\t\t\t\t\t<a class="&__lockSize">'.concat(kl.get("lock"),'</a>\n\t\t\t\t\t\t<input type="text" class="&__imageHeight jodit-input"/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="jodit_col-lg-3-5 jodit_col-xs-5-5 &__tabsBox"></div>\n\t\t</div>\n\t</form>')}},{key:"onChangeSizeIsLocked",value:function(){var e=this.getElm("lockSize"),t=this.getElm("imageWidth");e.innerHTML=kl.get(this.state.sizeIsLocked?"lock":"unlock"),this.setMod("lock-size",this.state.sizeIsLocked),this.j.e.fire(t,"change")}},{key:"onLockSizeClick",value:function(){this.state.sizeIsLocked=!this.state.sizeIsLocked}},{key:"onStateValuesSizeChange",value:function(){var e=this.getElm("imageWidth"),t=this.getElm("imageHeight");e!==this.j.od.activeElement&&(e.value=this.state.values.imageWidth.toString()),t!==this.j.od.activeElement&&(t.value=this.state.values.imageHeight.toString())}},{key:"onImageWidthChange",value:function(e){var t=this.getElm("imageWidth"),o=this.getElm("imageHeight");if(!this.state.sizeIsLocked||!Xo(t.value)||!Xo(o.value))return this.state.values.imageWidth=t.value,void(this.state.values.imageHeight=o.value);var n=parseFloat(t.value),r=parseFloat(o.value);e.target===t?(this.state.values.imageWidth=n,this.state.values.imageHeight=Math.round(n/this.state.ratio)):(this.state.values.imageWidth=Math.round(r*this.state.ratio),this.state.values.imageHeight=r)}},{key:"onStateValuesImageSrcChange",value:function(){var e=this.state.values.imageSrc;if(e){Xn(this.getElm("imageViewSrc"),"src",e);var t=new Image;t.src=e,this.state.image=t}}},{key:"hideFieldByOptions",value:function(){var e=this,t=this.j.o.image;[["editSize","imageSizes"],["showPreview","imageView"]].forEach((function(o){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kj(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?kj(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o,2),r=n[0],i=n[1];In(e.getElm(i),"display",t[r]?null:"none")}))}}],n&&Sj(o.prototype,n),t}(ql);function Pj(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function Rj(e,t,o,n){var r=new pu(t),i=function(){r.close(),r.destruct()};r.setContent(Zg(e,{upload:function(e){e.files&&e.files.length&&(o.values.imageSrc=e.baseurl+e.files[0]),i()},filebrowser:function(){var e,t=(e=function(e){return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(t){return e&&To(e.files)&&e.files.length&&(o.values.imageSrc=e.files[0],i()),[2]}))},function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){Pj(i,n,r,a,l,"next",e)}function l(e){Pj(i,n,r,a,l,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()},o.image,i)).open((function(){return $i(n)}))}function Aj(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function Lj(e,t,o){return Mj.apply(this,arguments)}function Mj(){var e;return e=function(e,t,o){var n,r,i,a,l,s;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(c){switch(c.label){case 0:return[4,e.decode()];case 1:return c.sent(),n=In(e,"width",!0)||Xn(e,"width")||!1,r=In(e,"height",!0)||Xn(e,"height")||!1,t.imageWidth=!1!==n?pj(n):e.offsetWidth||e.naturalWidth,Xo(t.imageWidth)?t.imageHeight=!1!==r?pj(r):e.offsetHeight||e.naturalHeight:t.imageHeight=r||"",i=t.imageWidth,a=t.imageHeight,l=parseFloat(i.toString()),Xo(i)&&Xo(a)?!1===r?(t.imageHeight=Math.round(l/o.ratio),o.sizeIsLocked=!0,[2]):(s=parseFloat(a.toString()),o.sizeIsLocked=Math.abs(l-s*o.ratio)<1,[2]):(o.sizeIsLocked=!1,[2])}}))},Mj=function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){Aj(i,n,r,a,l,"next",e)}function l(e){Aj(i,n,r,a,l,"throw",e)}a(void 0)}))},Mj.apply(this,arguments)}function Bj(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function Dj(){var e;return e=function(e,t){var o,n;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(r){return o=t.sourceImage,n=t.values,function(e,t){e.style.cssFloat&&-1!==["left","right"].indexOf(e.style.cssFloat.toLowerCase())?t.align=In(e,"float"):"block"===In(e,"display")&&"auto"===e.style.marginLeft&&"auto"===e.style.marginRight?t.align="center":t.align=""}(o,n),n.borderRadius=parseInt(o.style.borderRadius||"0",10)||0,n.id=Xn(o,"id")||"",n.imageTitle=Xn(o,"title")||"",n.imageAlt=Xn(o,"alt")||"",n.style=Xn(o,"style")||"",n.classes=(Xn(o,"class")||"").replace(/jodit_focused_image[\s]*/,""),function(e,t,o){var n=!0,r=!1;["marginTop","marginRight","marginBottom","marginLeft"].forEach((function(o){var i=e.style.getPropertyValue(xn(o));if(!i)return r=!0,void(t[o]=0);/^[0-9]+(px)?$/.test(i)&&(i=parseInt(i,10)),t[o]=i,(r&&t[o]||n&&"marginTop"!==o&&t[o]!==t.marginTop)&&(n=!1)})),o.marginIsLocked=n}(o,n,t),function(e,t,o){var n=ui.closest(e.sourceImage,"a",t.editor);n?(o.imageLink=Xn(n,"href")||"",o.imageLinkOpenInNewTab="_blank"===Xn(n,"target")):(o.imageLink="",o.imageLinkOpenInNewTab=!1)}(t,e,n),n.imageSrc=Xn(o,"src")||"",[2,Lj(o,n,t)]}))},Dj=function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){Bj(i,n,r,a,l,"next",e)}function l(e){Bj(i,n,r,a,l,"throw",e)}a(void 0)}))},Dj.apply(this,arguments)}function Nj(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function Hj(e,t,o){return Hj=Yj()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Vj(r,o.prototype),r},Hj.apply(null,arguments)}function Fj(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qj(e){return qj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qj(e)}function Vj(e,t){return Vj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Vj(e,t)}function Wj(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Uj(e){var t="function"==typeof Map?new Map:void 0;return Uj=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Hj(e,arguments,qj(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Vj(n,e)},Uj(e)}function Yj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yj=function(){return!!e})()}Tj([tl("ready"),Sa("state.sizeIsLocked")],Ij.prototype,"onChangeSizeIsLocked",null),Tj([Sa("lockSize:click")],Ij.prototype,"onLockSizeClick",null),Tj([tl("ready"),Sa(["state.values.imageWidth","state.values.imageHeight"])],Ij.prototype,"onStateValuesSizeChange",null),Tj([Sa(["imageWidth:change","imageHeight:change","imageWidth:keydown","imageHeight:keydown","imageWidth:mousedown","imageHeight:mousedown","imageWidth:paste","imageHeight:paste"]),Xa()],Ij.prototype,"onImageWidthChange",null),Tj([tl("ready"),Sa("state.values.imageSrc")],Ij.prototype,"onStateValuesImageSrcChange",null),Tj([tl("ready")],Ij.prototype,"hideFieldByOptions",null),Ij=Tj([bi],Ij);var Kj=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Wj(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Gj=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=qj(t),function(e,t){return!t||"object"!==Wj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Yj()?Reflect.construct(t,o||[],qj(e).constructor):t.apply(e,o))}(this,t,arguments)).state={image:new Image,sourceImage:new Image,get ratio(){var e=this.image;return e.naturalWidth/e.naturalHeight||1},sizeIsLocked:!0,marginIsLocked:!0,values:{style:"",imageSrc:"",borderRadius:0,imageTitle:"",imageAlt:"",imageLink:"",imageLinkOpenInNewTab:!1,imageWidth:0,imageHeight:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,classes:"",id:"",align:""}},e.activeTabState={activeTab:"Image"},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vj(e,t)}(t,e),o=t,n=[{key:"form",get:function(){var e=this;return new Ij(this.j,this.state,this.activeTabState,{openImageEditor:function(){return function(e,t){var o=Xn(t.image,"src")||"",n=e.c.element("a"),r=function(){n.host===location.host||e.confirm("You can only edit your own images. Download this image on the host?",(function(o){o&&e.uploader&&e.uploader.uploadRemoteImage(n.href.toString(),(function(o){e.alert("The image has been successfully uploaded to the host!",(function(){Io(o.newfilename)&&(t.values.imageSrc=o.baseurl+o.newfilename)}))}),(function(t){e.alert("There was an error loading %s",t.message)}))}))};n.href=o,e.filebrowser.dataProvider.getPathByUrl(n.href.toString()).then((function(r){op.call(e.filebrowser,n.href,r.name,r.path,r.source,(function(){var e=(new Date).getTime();t.values.imageSrc=o+(-1!==o.indexOf("?")?"":"?")+"&_tmp="+e.toString()}),(function(t){e.alert(t.message)}))})).catch((function(t){e.alert(t.message,r)}))}(e.j,e.state)},openImagePopup:function(t){return Rj(e.j,e.dialog,e.state,t)}})}},{key:"dialog",get:function(){var e=this,t=this.j,o=t.dlg({minWidth:Math.min(400,screen.width),minHeight:590,buttons:["fullsize","dialog.close"]}),n=this.__buttons;return n.check.onAction((function(){(function(e,t,o){var n=t.values,r=n.style,i=n.imageSrc,a=n.borderRadius,l=n.imageTitle,s=n.imageAlt,c=n.imageLink,u=n.imageWidth,d=n.imageHeight,f=n.marginTop,p=n.marginRight,h=n.marginBottom,v=n.marginLeft,g=n.imageLinkOpenInNewTab,m=n.align,b=n.classes,y=n.id,_=e.o;_.image.editStyle&&Xn(o,"style",r||null),i?(Xn(o,"src",i),o.style.borderRadius=a?a+"px":"",Xn(o,"title",l||null),Xn(o,"alt",s||null),function(e,t,o,n){var r=ui.closest(t,"a",e.editor);o?(r||(r=ui.wrap(t,"a",e.createInside)),Xn(r,"href",o),Xn(r,"target",n?"_blank":null)):r&&r.parentNode&&r.parentNode.replaceChild(t,r)}(e,o,c,g),function(e,t,o,n){if(t!==e.offsetWidth||o!==e.offsetHeight){var r=t?hj(t):null,i=o?hj(o):null;In(e,{width:r,height:r&&n?null:i}),Xn(e,"width",r&&Xo(t)&&Xn(e,"width")?r:null),Xn(e,"width")&&!n||(i=null),Xn(e,"height",i)}}(o,u,d,t.sizeIsLocked),e.o.image.editMargins&&function(e,t,o,n,r,i,a){var l=[t,o,n,r],s=function(e,t){var o=In(i,e),n=hj(t);o.toString()!==n.toString()&&In(i,e,n)};if(a)s("margin",t);else{var c=["margin-top","margin-right","margin-bottom","margin-left"];l.forEach((function(e,t){s(c[t],e)}))}}(0,f,p,h,v,o,t.marginIsLocked),_.image.editClass&&Xn(o,"class",b||null),_.image.editId&&Xn(o,"id",y||null),_.image.editAlign&&Rn(o,m)):ui.safeRemove(o)})(t,e.state,e.state.sourceImage),t.synchronizeValues(),o.close()})),n.remove.onAction((function(){t.s.removeNode(e.state.sourceImage),o.close()})),n.cancel.onAction((function(){o.close()})),o.setHeader(t.i18n("Image properties")),o.setContent(this.form),o.setFooter([[n.cancel,n.remove],n.check]),t.e.on(o,"afterClose",(function(){e.state.image.parentNode&&t.o.image.selectImageAfterClose&&t.s.select(e.state.sourceImage)})),o.setSize(t.o.image.dialogWidth),cr(t,o.container),o}},{key:"__buttons",get:function(){var e=this.j;return{check:Os(e,"ok","Apply","primary"),remove:Os(e,"bin","Delete"),cancel:Os(e,"cancel","Cancel")}}},{key:"open",value:function(){var e=this;return this.activeTabState.activeTab="Image",this.__lock(),this.dialog.open().setModal(!0).setPosition(),this.async.promise((function(t,o){return function(e,t){return Dj.apply(this,arguments)}(e.j,e.state).then(t,o)})).catch((function(t){No(t)||e.dialog.message.error(t.message)})).finally((function(){return e.__unlock()})),!1}},{key:"__lock",value:function(){this.dialog.lock(),this.form.setMod("lock",!0),Object.values(this.__buttons).forEach((function(e){return e.state.disabled=!0}))}},{key:"__unlock",value:function(){this.dialog.unlock(),this.form.setMod("lock",!1),Object.values(this.__buttons).forEach((function(e){return e.state.disabled=!1}))}},{key:"afterInit",value:function(e){var t=this,o=this;e.e.on("afterConstructor changePlace",(function(){e.e.off(e.editor,".imageproperties").on(e.editor,"dblclick.imageproperties",(function(n){var r=n.target;if(ui.isTag(r,"img"))if(e.o.image.openOnDblClick){if(!1===t.j.e.fire("openOnDblClick",r))return;o.state.sourceImage=r,o.state.image=r.cloneNode(!0),e.o.readonly||(n.stopImmediatePropagation(),n.preventDefault(),o.open())}else n.stopImmediatePropagation(),e.s.select(r)}))})).on("openImageProperties.imageproperties",(function(e){o.state.sourceImage=e,t.state.image=e.cloneNode(!0),t.open()}))}},{key:"onStateValuesImageSrcChange",value:function(){var e,t=this;return(e=function(){var e,o,n,r,i;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(a){switch(a.label){case 0:if(e=t.state,o=e.image,n=e.values,!o.src)return[2];a.label=1;case 1:return a.trys.push([1,3,4,5]),t.__lock(),[4,o.decode()];case 2:return a.sent(),t.state.sizeIsLocked&&Xo(n.imageWidth)&&(r=parseFloat(n.imageWidth.toString()),n.imageHeight=Math.round(r/t.state.ratio)),t.j.e.fire("updateImageProperties.imageproperties",o),[3,5];case 3:return i=a.sent(),t.j.alert(i.message),[3,5];case 4:return t.__unlock(),[7];case 5:return[2]}}))},function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){Nj(i,n,r,a,l,"next",e)}function l(e){Nj(i,n,r,a,l,"throw",e)}a(void 0)}))})()}},{key:"beforeDestruct",value:function(e){var t,o,n;Object.values(null!==(t=di(this,"__buttons"))&&void 0!==t?t:{}).forEach((function(e){return e.destruct()})),null===(o=di(this,"dialog"))||void 0===o||o.destruct(),null===(n=di(this,"form"))||void 0===n||n.destruct(),e.e.off(e.editor,".imageproperties").off(".imageproperties")}}],n&&Fj(o.prototype,n),t}(Uj(Hp));Kj([fi],Gj.prototype,"form",null),Kj([fi],Gj.prototype,"dialog",null),Kj([fi],Gj.prototype,"__buttons",null),Kj([Sa("state.image")],Gj.prototype,"onStateValuesImageSrcChange",null),Ra.add("imageProperties",Gj);var Jj=function(e,t){return"".concat(ui.isCell(t)?"padding":"margin").concat("rtl"===e?"Right":"Left")};kl.set("indent",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M352 832q0 14-9 23l-288 288q-9 9-23 9-13 0-22.5-9.5t-9.5-22.5v-576q0-13 9.5-22.5t22.5-9.5q14 0 23 9l288 288q9 9 9 23zm1440 480v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> ').set("outdent",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M384 544v576q0 13-9.5 22.5t-22.5 9.5q-14 0-23-9l-288-288q-9-9-9-23t9-23l288-288q9-9 23-9 13 0 22.5 9.5t9.5 22.5zm1408 768v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1088q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1088q13 0 22.5 9.5t9.5 22.5zm0-384v192q0 13-9.5 22.5t-22.5 9.5h-1728q-13 0-22.5-9.5t-9.5-22.5v-192q0-13 9.5-22.5t22.5-9.5h1728q13 0 22.5 9.5t9.5 22.5z"/> </svg> '),tr.prototype.controls.indent={tooltip:"Increase Indent"},tr.prototype.controls.outdent={isDisabled:function(e){var t=e.s.current();if(t){var o=ui.closest(t,ui.isBlock,e.editor);if(o){var n=Jj(e.o.direction,o);return!o.style[n]||parseInt(o.style[n],10)<=0}}return!0},tooltip:"Decrease Indent"},tr.prototype.indentMargin=10;var Xj=function(e,t,o,n){if(t&&!e.has(t)){var r=Jj(o.o.direction,t);e.add(t);var i=t.style[r]?parseInt(t.style[r],10):0;i+=o.o.indentMargin*("outdent"===n?-1:1),t.style[r]=i>0?i+"px":"",Xn(t,"style")||Xn(t,"style",null)}};function Zj(e,t,o){return Zj=nw()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&ew(r,o.prototype),r},Zj.apply(null,arguments)}function Qj(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $j(e){return $j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$j(e)}function ew(e,t){return ew=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ew(e,t)}function tw(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function ow(e){var t="function"==typeof Map?new Map:void 0;return ow=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Zj(e,arguments,$j(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ew(n,e)},ow(e)}function nw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nw=function(){return!!e})()}Ra.add("indent",(function(e){e.registerButton({name:"indent",group:"indent"}).registerButton({name:"outdent",group:"indent"});var t=function(t){var o=new Set,n=e.o,r=n.enter,i=n.enterBlock,a=r.toLowerCase()===Xt,l=e.s.current();if(a&&e.s.isCollapsed()&&l){var s=ui.wrapNextInline(l,i,e);return Xj(o,s,e,t),!1}return e.s.eachSelection((function(n){e.s.save();var l=!!n&&ui.up(n,ui.isBlock,e.editor);if(!l&&n&&(l=sr(a?ui.wrapNextInline:ui.wrapInline,n,a?i:r.toLowerCase(),e)),!l)return e.s.restore(),!1;Xj(o,l,e,t),e.s.restore()})),e.synchronizeValues(),!1};e.registerCommand("indent",{exec:t,hotkeys:["ctrl+]","cmd+]"]}),e.registerCommand("outdent",{exec:t,hotkeys:["ctrl+[","cmd+["]})})),kl.set("justify",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 1344v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45zm0-384v128q0 26-19 45t-45 19h-1664q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1664q26 0 45 19t19 45z"/> </svg> '),tr.prototype.controls.align={name:"left",tooltip:"Align",update:function(e,t){var o=t.control,n=e.s.current();if(n){var r=In(ui.closest(n,ui.isBlock,e.editor)||e.editor,"text-align").toString();o.defaultValue&&-1!==o.defaultValue.indexOf(r)&&(r="left");var i=o.list,a=o.data;a&&a.currentValue!==r&&i&&(rn(i)?i[r]:i.includes(r))&&(e.o.textIcons||"select"===o.component?t.state.text=r:t.state.icon.name=r,a.currentValue=r)}},isActive:function(e,t){var o=e.s.current();if(!o||!t.control.defaultValue)return!1;var n=ui.closest(o,ui.isBlock,e.editor)||e.editor;return-1===t.control.defaultValue.indexOf(In(n,"text-align").toString())},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},tr.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},tr.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},tr.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},tr.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},Ra.add("justify",(function(e){e.registerButton({name:"align",group:"indent"});var t=function(t){return e.s.focus(),e.s.eachSelection((function(o){if(o){var n=ui.up(o,ui.isBlock,e.editor);n||(n=ui.wrapInline(o,e.o.enterBlock,e)),Ln(t,n)}})),!1};e.registerCommand("justifyfull",t),e.registerCommand("justifyright",t),e.registerCommand("justifyleft",t),e.registerCommand("justifycenter",t)}));var rw=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=$j(o=t),function(e,t){return!t||"object"!==tw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,nw()?Reflect.construct(o,n||[],$j(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ew(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}},{key:"onKeyDownArrow",value:function(e){var t;if(e.key===qt&&this.j.selection.isCollapsed()){var o=this.j.selection.range,n=o.endContainer,r=o.endOffset;if(ui.isText(n)&&(null===(t=n.nodeValue)||void 0===t?void 0:t.length)===r){var i=n.parentNode;ui.isInlineBlock(i)&&!ui.findNotEmptyNeighbor(i,!1,this.j.editor)&&ui.after(i,this.j.createInside.text(yt))}}}}])&&Qj(o.prototype,n),t}(ow(Hp));function iw(e,t,o){return iw=dw()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&sw(r,o.prototype),r},iw.apply(null,arguments)}function aw(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lw(e){return lw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lw(e)}function sw(e,t){return sw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sw(e,t)}function cw(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function uw(e){var t="function"==typeof Map?new Map:void 0;return uw=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return iw(e,arguments,lw(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),sw(n,e)},uw(e)}function dw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dw=function(){return!!e})()}(function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":tw(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)})([Sa(":keydown")],rw.prototype,"onKeyDownArrow",null),Ra.add("keyArrowOutside",rw),tr.prototype.limitWords=!1,tr.prototype.limitChars=!1,tr.prototype.limitHTML=!1;var fw=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":cw(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},pw=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=lw(o=t),function(e,t){return!t||"object"!==cw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,dw()?Reflect.construct(o,n||[],lw(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sw(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){var t=this,o=e.o,n=o.limitWords,r=o.limitChars;if(e&&(n||r)){var i=null;e.e.off(".limit").on("beforePaste.limit",(function(){i=e.history.snapshot.make()})).on("keydown.limit keyup.limit beforeEnter.limit",this.checkPreventKeyPressOrPaste).on("change.limit",this.checkPreventChanging).on("afterPaste.limit",(function(){if(t.__shouldDenyInput(!0)&&i)return e.history.snapshot.restore(i),e.e.fire("denyPaste.limit"),!1}))}}},{key:"shouldPreventInsertHTML",value:function(e){return(!e||!(Jt.includes(e.key)||e.ctrlKey||e.metaKey))&&this.__shouldDenyInput(!1)}},{key:"__shouldDenyInput",value:function(e){var t=this.jodit,o=t.o,n=o.limitWords,r=o.limitChars,i=t.o.limitHTML?t.value:t.text,a=this.__splitWords(i);if(n&&hw(a.length,n,e))return t.e.fire("denyWords.limit limit.limit"),!0;var l=Boolean(r&&hw(a.join("").length,r,e));return l&&t.e.fire("denyChars.limit limit.limit"),l}},{key:"checkPreventKeyPressOrPaste",value:function(e){if(this.shouldPreventInsertHTML(e))return!1}},{key:"checkPreventChanging",value:function(e,t){var o=this.jodit;this.__shouldDenyInput(!0)&&(o.value=t)}},{key:"__splitWords",value:function(e){return e.replace(_t(),"").split(kt()).filter((function(e){return e.length}))}},{key:"beforeDestruct",value:function(e){e.e.off(".limit")}}])&&aw(o.prototype,n),t}(uw(Hp));function hw(e,t,o){return o?e>t:e>=t}fw([Co],pw.prototype,"checkPreventKeyPressOrPaste",null),fw([Co],pw.prototype,"checkPreventChanging",null),Ra.add("limit",pw),tr.prototype.defaultLineHeight=null,kl.set("line-height",'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M5.09668 6.99707H7.17358L4.17358 3.99707L1.17358 6.99707H3.09668V17.0031H1.15881L4.15881 20.0031L7.15881 17.0031H5.09668V6.99707Z"/> <path d="M22.8412 7H8.84119V5H22.8412V7Z"/> <path d="M22.8412 11H8.84119V9H22.8412V11Z"/> <path d="M8.84119 15H22.8412V13H8.84119V15Z"/> <path d="M22.8412 19H8.84119V17H22.8412V19Z"/> </svg> '),tr.prototype.controls.lineHeight={command:"applyLineHeight",tags:["ol"],tooltip:"Line height",list:[1,1.1,1.2,1.3,1.4,1.5,2],exec:function(e,t,o){var n=o.control;return pr(e,t,{control:n},(function(e){return e}))}};const vw={"Line height":"ارتفاع الخط"},gw={"Line height":"Výška čáry"},mw={"Line height":"Zeilenhöhe"},bw={"Line height":"Altura de la línea"},yw={"Line height":"ارتفاع خط"},_w={"Line height":"Rivin korkeus"},jw={"Line height":"Hauteur de ligne"},ww={"Line height":"גובה שורה"},kw={"Line height":"Vonal magassága"},Sw={"Line height":"Tinggi baris"},xw={"Line height":"Altezza linea"},Ow={"Line height":"ラインの高さ"},Cw={"Line height":"선 높이"},zw={"Line height":"Зураасны өндөр"},Ew={"Line height":"Lijnhoogte"},Tw={"Line height":"Wysokość linii"},Iw={"Line height":"Altura da linha"},Pw={"Line height":"Высота линии"},Rw={"Line height":"Çizgi yüksekliği"},Aw={"Line height":"Висота лінії"},Lw={"Line height":"线高"},Mw={"Line height":"行高"};function Bw(e,t,o){return Bw=Vw()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Hw(r,o.prototype),r},Bw.apply(null,arguments)}function Dw(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Nw(e){return Nw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nw(e)}function Hw(e,t){return Hw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hw(e,t)}function Fw(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function qw(e){var t="function"==typeof Map?new Map:void 0;return qw=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Bw(e,arguments,Nw(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Hw(n,e)},qw(e)}function Vw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vw=function(){return!!e})()}var Ww=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Nw(t),function(e,t){return!t||"object"!==Fw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Vw()?Reflect.construct(t,o||[],Nw(e).constructor):t.apply(e,o))}(this,t,[e])).buttons=[{name:"lineHeight",group:"font"}],La(B),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hw(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){In(e.editor,{lineHeight:e.o.defaultLineHeight}),e.registerCommand("applyLineHeight",this.applyLineHeight)}},{key:"applyLineHeight",value:function(e,t,o){var n,r=this.j,i=r.s,a=r.createInside,l=r.editor,s=r.o;i.isFocused()||i.focus(),i.save();var c=function(e){var t=ui.closest(e,ui.isBlock,l);t||(t=ui.wrap(e,s.enter,a));var r=In(t,"lineHeight");void 0===n&&(n=r.toString()!==o.toString()),In(t,"lineHeight",n?o:null)};try{if(i.isCollapsed()){var u=a.fake();i.insertNode(u,!1,!1),c(u),ui.safeRemove(u)}else i.eachSelection(c)}finally{i.restore()}}},{key:"beforeDestruct",value:function(e){In(e.editor,{lineHeight:null})}}])&&Dw(o.prototype,n),t}(qw(Hp));function Uw(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function Yw(e,t,o){if(!t.isInDestruct){(function(e){return Boolean(e&&"drop"===e.type)})(e)&&t.s.insertCursorAtPoint(e.clientX,e.clientY);var n=t.e.fire("beforePasteInsert",o);!Ro(n)&&(Io(n)||on(n)||ui.isNode(n))&&(o=n),Io(o)&&(o=function(e){var t=(e=e.replace(/<meta[^>]+?>/g,"")).search(/<!--StartFragment-->/i);-1!==t&&(e=e.substring(t+20));var o=e.search(/<!--EndFragment-->/i);return-1!==o&&(e=e.substring(0,o)),e}(o)),t.s.insertHTML(o)}}function Kw(e,t,o,n,r){if(!1!==e.e.fire("beforeOpenPasteDialog",t,o,n,r)){var i=e.confirm('<div style="word-break: normal; white-space: normal">'.concat(e.i18n(t),"</div>"),e.i18n(o)),a=r.map((function(t){var o=t.text,r=t.value;return Os(e,{text:o,name:o.toLowerCase(),tabIndex:0}).onAction((function(){i.close(),n(r)}))}));i.e.one(i,"afterClose",(function(){e.s.isFocused()||e.s.focus()}));var l=Os(e,{text:"Cancel",tabIndex:0}).onAction((function(){i.close()}));return i.setFooter(function(e){return function(e){if(Array.isArray(e))return Uw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Uw(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Uw(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a).concat([l])),a[0].focus(),a[0].state.variant="primary",e.e.fire("afterOpenPasteDialog",i,t,o,n,r),i}}function Gw(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}(function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Fw(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)})([Co],Ww.prototype,"applyLineHeight",null),Ra.add("lineHeight",Ww),tr.prototype.mediaFakeTag="jodit-media",tr.prototype.mediaInFakeBlock=!0,tr.prototype.mediaBlocks=["video","audio"],Ra.add("media",(function(e){var t="jodit_fake_wrapper",o=e.options,n=o.mediaFakeTag,r=o.mediaBlocks,i=o.mediaInFakeBlock;i&&e.e.on("afterGetValueFromEditor",(function(e){var o=new RegExp("<".concat(n,"[^>]+data-").concat(t,"[^>]+>([^]+?)</").concat(n,">"),"ig");o.test(e.value)&&(e.value=e.value.replace(o,"$1"))})).on("change afterInit afterSetMode changePlace",e.async.debounce((function(){e.isDestructed||e.getMode()===$t||Jr(r.join(","),e.editor).forEach((function(o){ar(o,t)||(ar(o,t,!0),function(o){if(o.parentNode&&Xn(o.parentNode,"data-jodit_iframe_wrapper"))o=o.parentNode;else{var r=e.createInside.element(n,function(e,t){return t in e?Object.defineProperty(e,t,{value:1,enumerable:!0,configurable:!0,writable:!0}):e[t]=1,e}({"data-jodit-temp":1,contenteditable:!1,draggable:!0},"data-".concat(t)));Xn(r,"style",Xn(o,"style")),r.style.display="inline-block"===o.style.display?"inline-block":"block",r.style.width=o.offsetWidth+"px",r.style.height=o.offsetHeight+"px",o.parentNode&&o.parentNode.insertBefore(r,o),r.appendChild(o),o=r}e.e.off(o,"mousedown.select touchstart.select").on(o,"mousedown.select touchstart.select",(function(){e.s.setCursorAfter(o)}))}(o))}))}),e.defaultTimeout))})),tr.prototype.mobileTapTimeout=300,tr.prototype.toolbarAdaptive=!0,tr.prototype.buttonsMD=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},{group:"font",buttons:[]},"---",{group:"media",buttons:[]},"\n",{group:"state",buttons:[]},{group:"insert",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},{group:"other",buttons:[]},"|","dots"],tr.prototype.buttonsSM=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},"\n",{group:"state",buttons:[]},{group:"indent",buttons:[]},{group:"color",buttons:[]},"---",{group:"history",buttons:[]},"|","dots"],tr.prototype.buttonsXS=[{group:"font-style",buttons:[]},{group:"list",buttons:[]},"---",{group:"font",buttons:[]},{group:"color",buttons:[]},"---","dots"],tr.prototype.controls.dots={mode:$t+Qt,popup:function(e,t,o,n){var r=n.control.data;return void 0===r&&(r={toolbar:Hd(e),rebuild:function(){var t,o;if(n){var i=e.e.fire("getDiffButtons.mobile",n.closest(id));if(i&&r){r.toolbar.build(Ei(i));var a=(null===(o=null===(t=e.toolbar)||void 0===t?void 0:t.firstButton)||void 0===o?void 0:o.container.offsetWidth)||36;r.toolbar.container.style.width=3*(a+4)+"px"}}}},n.control.data=r),r.rebuild(),r.toolbar},tooltip:"Show all"},Ra.add("mobile",(function(e){var t=0,o=Ei(e.o.buttons);e.o.mobileTapTimeout&&e.e.on("touchend",(function(o){if(o.changedTouches&&o.changedTouches.length){var n=(new Date).getTime(),r=n-t;r>e.o.mobileTapTimeout&&(t=n,r<1.5*e.o.mobileTapTimeout&&e.s.insertCursorAtPoint(o.clientX,o.clientY))}})),e.e.on("getDiffButtons.mobile",(function(t){if(t===e.toolbar){var n=rs(Ei(e.o.buttons),e),r=rs(o,e);return Bo(n).reduce((function(e,t){return r.has(t)||e.push(t),e}),[])}})),e.o.toolbarAdaptive&&e.e.on("resize afterInit recalcAdaptive changePlace afterAddPlace",(function(){var t,n;if(e.o.toolbar){var r=(null!==(t=e.container.parentElement)&&void 0!==t?t:e.container).offsetWidth,i=e.isFullSize||r>=e.o.sizeLG?Ei(e.o.buttons):r>=e.o.sizeMD?Ei(e.o.buttonsMD):r>=e.o.sizeSM?Ei(e.o.buttonsSM):Ei(e.o.buttonsXS);i.toString()!==o.toString()&&(o=i,e.e.fire("closeAllPopups"),null===(n=e.toolbar)||void 0===n||n.setRemoveButtons(e.o.removeButtons).build(o.concat(e.o.extraButtons)))}})).on(e.ow,"load resize",(function(){return e.e.fire("recalcAdaptive")}))})),tr.prototype.askBeforePasteHTML=!0,tr.prototype.processPasteHTML=!0,tr.prototype.scrollToPastedContent=!0,tr.prototype.pasteExcludeStripTags=["br","hr"],tr.prototype.pasteHTMLActionList=[{value:lo,text:"Keep"},{value:co,text:"Insert as Text"},{value:uo,text:"Insert only Text"}],tr.prototype.memorizeChoiceWhenPasteFragment=!1,tr.prototype.nl2brInPlainText=!0;var Jw="pasteStorage";function Xw(e,t,o){return Xw=ok()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&$w(r,o.prototype),r},Xw.apply(null,arguments)}function Zw(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qw(e){return Qw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qw(e)}function $w(e,t){return $w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$w(e,t)}function ek(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function tk(e){var t="function"==typeof Map?new Map:void 0;return tk=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Xw(e,arguments,Qw(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),$w(n,e)},tk(e)}function ok(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ok=function(){return!!e})()}tr.prototype.controls.paste={tooltip:"Paste from clipboard",exec:function(e,t,o){var n,r=o.control;return(n=function(){var t,o,n,i,a,l,s;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(c){switch(c.label){case 0:if(r.name===Jw)return e.execCommand("showPasteStorage"),[2];if(e.s.focus(),t="",o=!0,!navigator.clipboard)return[3,11];c.label=1;case 1:return c.trys.push([1,6,,7]),[4,navigator.clipboard.read()];case 2:return(n=c.sent())&&n.length?[4,n[0].getType(oo)]:[3,5];case 3:return i=c.sent(),[4,new Response(i).text()];case 4:t=c.sent(),c.label=5;case 5:return o=!1,[3,7];case 6:return a=c.sent(),ft||console.log(a),[3,7];case 7:if(!o)return[3,11];c.label=8;case 8:return c.trys.push([8,10,,11]),[4,navigator.clipboard.readText()];case 9:return t=c.sent(),o=!1,[3,11];case 10:return l=c.sent(),ft||console.log(l),[3,11];case 11:return o&&(t=e.buffer.get(ko)||"",o=0===t.length),s=e.value,o?(e.ed.execCommand("paste"),!(o=s===e.value)&&e.e.fire("afterPaste")):t.length?(Yw(null,e,t),e.e.fire("afterPaste")):o&&e.alert("Your browser doesn't support direct access to the clipboard.",(function(){e.s.focus()})),[2]}}))},function(){var e=this,t=arguments;return new Promise((function(o,r){var i=n.apply(e,t);function a(e){Gw(i,o,r,a,l,"next",e)}function l(e){Gw(i,o,r,a,l,"throw",e)}a(void 0)}))})()},list:function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}({},Jw,"Paste Storage"),isChildDisabled:function(e){return e.e.fire("pasteStorageList")<2}};var nk=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":ek(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},rk=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=Qw(t),function(e,t){return!t||"object"!==ek(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ok()?Reflect.construct(t,o||[],Qw(e).constructor):t.apply(e,o))}(this,t,arguments)).pasteStack=new ii(20),e._isDialogOpened=!1,e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$w(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){var t=this;e.e.on("paste.paste",this.onPaste).on("pasteStack.paste",(function(e){return t.pasteStack.push(e)})),e.o.nl2brInPlainText&&this.j.e.on("processPaste.paste",this.onProcessPasteReplaceNl2Br)}},{key:"beforeDestruct",value:function(e){e.e.off("paste.paste",this.onPaste).off("processPaste.paste",this.onProcessPasteReplaceNl2Br).off(".paste")}},{key:"onPaste",value:function(e){try{if(!1===this.customPasteProcess(e)||!1===this.j.e.fire("beforePaste",e))return e.preventDefault(),!1;this.defaultPasteProcess(e)}finally{this.j.e.fire("afterPaste",e)}}},{key:"customPasteProcess",value:function(e){if(this.j.o.processPasteHTML){var t=hr(e),o=[null==t?void 0:t.getData(oo),null==t?void 0:t.getData(no),null==t?void 0:t.getData(ro)],n=!0,r=!1,i=void 0;try{for(var a,l=o[Symbol.iterator]();!(n=(a=l.next()).done);n=!0){var s=a.value;if(Uo(s)&&(this.j.e.fire("processHTML",e,s,{plain:o[0],html:o[1],rtf:o[2]})||this.processHTML(e,s)))return!1}}catch(e){r=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw i}}}}},{key:"defaultPasteProcess",value:function(e){var t=hr(e),o=(null==t?void 0:t.getData(no))||(null==t?void 0:t.getData(oo));if(t&&o&&""!==dn(o)){var n=this.j.e.fire("processPaste",e,o,function(e){var t=e.types,o="";if(To(t)||"[object DOMStringList]"==={}.toString.call(t))for(var n=0;n<t.length;n+=1)o+=t[n]+";";else o=(t||oo).toString()+";";return o}(t));void 0!==n&&(o=n),(Io(o)||ui.isNode(o))&&this.__insertByType(e,o,this.j.o.defaultActionOnPaste),e.preventDefault(),e.stopPropagation()}}},{key:"processHTML",value:function(e,t){var o=this;if(!this.j.o.askBeforePasteHTML)return!1;if(this.j.o.memorizeChoiceWhenPasteFragment){var n=this.pasteStack.find((function(e){return e.html===t}));if(n)return this.__insertByType(e,t,n.action||this.j.o.defaultActionOnPaste),!0}if(this._isDialogOpened)return!0;var r=Kw(this.j,"Your code is similar to HTML. Keep as HTML?","Paste as HTML",(function(n){o._isDialogOpened=!1,o.__insertByType(e,t,n)}),this.j.o.pasteHTMLActionList);return r&&(this._isDialogOpened=!0,r.e.on("beforeClose",(function(){o._isDialogOpened=!1}))),!0}},{key:"__insertByType",value:function(e,t,o){if(this.pasteStack.push({html:t,action:o}),Io(t))switch(this.j.buffer.set(ko,t),o){case so:t=Pi(t);break;case uo:t=Hi(t,this.j.ed,new Set(this.j.o.pasteExcludeStripTags));break;case co:t=Ri(t);break;default:var n=this.j.e.fire("onCustomPasteHTMLOption",o,t,e);"string"==typeof n&&(t=n)}Yw(e,this.j,t)}},{key:"onProcessPasteReplaceNl2Br",value:function(e,t,o){if(o===oo+";"&&!Uo(t))return Ai(t)}}],n&&Zw(o.prototype,n),t}(tk(Hp));function ik(e,t,o){return ik=dk()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&sk(r,o.prototype),r},ik.apply(null,arguments)}function ak(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lk(e){return lk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lk(e)}function sk(e,t){return sk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sk(e,t)}function ck(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function uk(e){var t="function"==typeof Map?new Map:void 0;return uk=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return ik(e,arguments,lk(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),sk(n,e)},uk(e)}function dk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dk=function(){return!!e})()}nk([Co],rk.prototype,"onPaste",null),nk([Co],rk.prototype,"onProcessPasteReplaceNl2Br",null),Ra.add("paste",rk),tr.prototype.askBeforePasteFromWord=!0,tr.prototype.processPasteFromWord=!0,tr.prototype.defaultActionOnPasteFromWord=null,tr.prototype.pasteFromWordActionList=[{value:lo,text:"Keep"},{value:co,text:"Clean"},{value:uo,text:"Insert only Text"}];var fk=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=lk(o=t),function(e,t){return!t||"object"!==ck(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,dk()?Reflect.construct(o,n||[],lk(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sk(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){}},{key:"beforeDestruct",value:function(e){}},{key:"processWordHTML",value:function(e,t,o){var n=this,r=this.j,i=r.o,a=i.processPasteFromWord,l=i.askBeforePasteFromWord,s=i.defaultActionOnPasteFromWord,c=i.defaultActionOnPaste,u=i.pasteFromWordActionList;return!(!a||!Yo(t)||(l?Kw(r,"The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?","Word Paste Detected",(function(r){n.insertFromWordByType(e,t,r,o)}),u):this.insertFromWordByType(e,t,s||c,o),0))}},{key:"insertFromWordByType",value:function(e,t,o,n){var r;switch(o){case lo:t=Ii(t);var i=null===(r=this.j.events)||void 0===r?void 0:r.fire("beautifyHTML",t);Io(i)&&(t=i);break;case co:t=Pi(t);break;case uo:t=Hi(Pi(t))}Yw(e,this.j,t)}}])&&ak(o.prototype,n),t}(uk(Hp));function pk(e,t,o){return pk=bk()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&gk(r,o.prototype),r},pk.apply(null,arguments)}function hk(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vk(e){return vk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vk(e)}function gk(e,t){return gk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gk(e,t)}function mk(e){var t="function"==typeof Map?new Map:void 0;return mk=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return pk(e,arguments,vk(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gk(n,e)},mk(e)}function bk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bk=function(){return!!e})()}fk.requires=["paste"],function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":ck(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)}([Sa(":processHTML")],fk.prototype,"processWordHTML",null),Ra.add("pasteFromWord",fk);var yk=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=vk(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,bk()?Reflect.construct(t,o||[],vk(e).constructor):t.apply(e,o))}(this,t,arguments)).currentIndex=0,e.list=[],e.container=null,e.listBox=null,e.previewBox=null,e.dialog=null,e.paste=function(){if(e.j.s.focus(),e.j.s.insertHTML(e.list[e.currentIndex]),0!==e.currentIndex){var t=e.list[0];e.list[0]=e.list[e.currentIndex],e.list[e.currentIndex]=t}e.dialog&&e.dialog.close(),e.j.synchronizeValues(),e.j.e.fire("afterPaste")},e.onKeyDown=function(t){var o=e.currentIndex;-1!==[Ft,Vt,Bt].indexOf(t.key)&&(t.key===Ft&&(0===o?o=e.list.length-1:o-=1),t.key===Vt&&(o===e.list.length-1?o=0:o+=1),t.key!==Bt?(o!==e.currentIndex&&e.selectIndex(o),t.stopImmediatePropagation(),t.preventDefault()):e.paste())},e.selectIndex=function(t){e.listBox&&Bo(e.listBox.childNodes).forEach((function(o,n){o.classList.remove("jodit_active"),t===n&&e.previewBox&&(o.classList.add("jodit_active"),e.previewBox.innerHTML=e.list[t],o.focus())})),e.currentIndex=t},e.showDialog=function(){e.list.length<2||(e.dialog||e.createDialog(),e.listBox&&(e.listBox.innerHTML=""),e.previewBox&&(e.previewBox.innerHTML=""),e.list.forEach((function(t,o){var n=e.j.c.element("a");n.textContent=o+1+". "+t.replace(kt(),""),e.j.e.on(n,"keydown",e.onKeyDown),Xn(n,"href","#"),Xn(n,"data-index",o.toString()),Xn(n,"tab-index","-1"),e.listBox&&e.listBox.appendChild(n)})),e.dialog&&e.dialog.open(),e.j.async.setTimeout((function(){e.selectIndex(0)}),100))},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gk(e,t)}(t,e),o=t,n=[{key:"createDialog",value:function(){var e=this;this.dialog=this.j.dlg();var t=Os(this.j,"paste","Paste","primary");t.onAction(this.paste);var o=Os(this.j,"","Cancel");o.onAction(this.dialog.close),this.container=this.j.c.div(),this.container.classList.add("jodit-paste-storage"),this.listBox=this.j.c.div(),this.previewBox=this.j.c.div(),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setHeader(this.j.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([t,o]),this.j.e.on(this.listBox,"click dblclick",(function(t){var o=t.target;return ui.isTag(o,"a")&&o.hasAttribute("data-index")&&e.selectIndex(parseInt(Xn(o,"-index")||"0",10)),"dblclick"===t.type&&e.paste(),!1}))}},{key:"afterInit",value:function(){var e=this;this.j.e.off("afterCopy.paste-storage").on("pasteStorageList.paste-storage",(function(){return e.list.length})).on("afterCopy.paste-storage",(function(t){-1!==e.list.indexOf(t)&&e.list.splice(e.list.indexOf(t),1),e.list.unshift(t),e.list.length>5&&(e.list.length=5)})),this.j.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})}},{key:"beforeDestruct",value:function(){this.dialog&&this.dialog.destruct(),this.j.e.off(".paste-storage"),ui.safeRemove(this.previewBox),ui.safeRemove(this.listBox),ui.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]}}],n&&hk(o.prototype,n),t}(mk(Hp));function _k(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function jk(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function wk(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function kk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return jk(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?jk(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sk(e,t,o){return Sk=Tk()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Ck(r,o.prototype),r},Sk.apply(null,arguments)}function xk(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ok(e){return Ok=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ok(e)}function Ck(e,t){return Ck=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ck(e,t)}function zk(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Ek(e){var t="function"==typeof Map?new Map:void 0;return Ek=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Sk(e,arguments,Ok(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Ck(n,e)},Ek(e)}function Tk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tk=function(){return!!e})()}Ra.add("pasteStorage",yk),tr.prototype.controls.preview={icon:"eye",command:"preview",mode:$t+Qt,tooltip:"Preview"},Ra.add("preview",(function(e){e.registerButton({name:"preview"}),e.registerCommand("preview",(function(t,o,n){var r=e.dlg();r.setSize(1024,600).open("",e.i18n("Preview")).setModal(!0);var i=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _k(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_k(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(ei(e,n,"px",r.getElm("content")),2)[1];r.e.on(r,"afterClose",i)}))})),kl.set("print",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M448 1536h896v-256h-896v256zm0-640h896v-384h-160q-40 0-68-28t-28-68v-160h-640v640zm1152 64q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128 0v416q0 13-9.5 22.5t-22.5 9.5h-224v160q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-160h-224q-13 0-22.5-9.5t-9.5-22.5v-416q0-79 56.5-135.5t135.5-56.5h64v-544q0-40 28-68t68-28h672q40 0 88 20t76 48l152 152q28 28 48 76t20 88v256h64q79 0 135.5 56.5t56.5 135.5z"/> </svg> '),tr.prototype.controls.print={exec:function(e){var t=e.create.element("iframe");Object.assign(t.style,{position:"fixed",right:0,bottom:0,width:0,height:0,border:0}),Ba(e,tr).appendChild(t);var o=function(){e.e.off(e.ow,"mousemove",o),ui.safeRemove(t)},n=t.contentWindow;if(n){e.e.on(n,"onbeforeunload onafterprint",o).on(e.ow,"mousemove",o),e.o.iframe?(e.e.fire("generateDocumentStructure.iframe",n.document,e),n.document.body.innerHTML=e.value):(n.document.write('<!doctype html><html lang="'+kr(e.o.language)+'"><head><title></title></head><style>'+function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.ownerDocument.styleSheets;return Bo(t).map((function(e){try{return Bo(e.cssRules)}catch(e){}return[]})).flat().filter((function(t){try{return Boolean(t&&e.matches(t.selectorText))}catch(e){}return!1}))},o=function(){function o(n,r,i){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.css={};var l=i||{},s=function(t){var o=t.selectorText.split(",").map((function(e){return e.trim()})).sort().join(",");!1===Boolean(a.css[o])&&(a.css[o]={});for(var n=t.style.cssText.split(/;(?![A-Za-z0-9])/),r=0;r<n.length;r++)if(n[r]){var i=n[r].split(":");i[0]=i[0].trim(),i[1]=i[1].trim(),a.css[o][i[0]]=i[1].replace(/var\(([^)]+)\)/g,(function(t,o){var n=kk(o.split(","),2),r=n[0],i=n[1];return(e.ew.getComputedStyle(e.editor).getPropertyValue(r.trim())||i||t).trim()}))}};!function(){for(var o=n.innerHeight,i=r.createTreeWalker(e.editor,NodeFilter.SHOW_ELEMENT,(function(){return NodeFilter.FILTER_ACCEPT}));i.nextNode();){var a=i.currentNode;if(a.getBoundingClientRect().top<o||l.scanFullPage){var c=t(a);if(c)for(var u=0;u<c.length;u++)s(c[u])}}}()}var n;return(n=[{key:"generateCSS",value:function(){var e="";for(var t in this.css)if(!/:not\(/.test(t)){for(var o in e+=t+" { ",this.css[t])e+=o+": "+this.css[t][o]+"; ";e+="}\n"}return e}}])&&wk(o.prototype,n),o}();try{return new o(e.ew,e.ed,{scanFullPage:!0}).generateCSS()}catch(e){}return""}(e)+"</style><body></body></html>"),n.document.close(),ei(e,void 0,"px",n.document.body));var r=n.document.createElement("style");r.innerHTML="@media print {\n\t\t\t\t\tbody {\n\t\t\t\t\t\t\t-webkit-print-color-adjust: exact;\n\t\t\t\t\t}\n\t\t\t}",n.document.head.appendChild(r),n.focus(),n.print()}},mode:$t+Qt,tooltip:"Print"},Ra.add("print",(function(e){e.registerButton({name:"print"})})),tr.prototype.tableAllowCellResize=!0;var Ik=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":zk(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Pk="table_processor_observer-resize",Rk=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=Ok(t),function(e,t){return!t||"object"!==zk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Tk()?Reflect.construct(t,o||[],Ok(e).constructor):t.apply(e,o))}(this,t,arguments)).selectMode=!1,e.resizeDelta=0,e.createResizeHandle=function(){e.resizeHandler||(e.resizeHandler=e.j.c.div("jodit-table-resizer"),e.j.e.on(e.resizeHandler,"mousedown.table touchstart.table",e.onHandleMouseDown).on(e.resizeHandler,"mouseenter.table",(function(){e.j.async.clearTimeout(e.hideTimeout)})))},e.hideTimeout=0,e.drag=!1,e.minX=0,e.maxX=0,e.startX=0,e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ck(e,t)}(t,e),o=t,n=[{key:"module",get:function(){return this.j.getInstance("Table",this.j.o)}},{key:"isRTL",get:function(){return"rtl"===this.j.o.direction}},{key:"showResizeHandle",value:function(){this.j.async.clearTimeout(this.hideTimeout),this.j.workplace.appendChild(this.resizeHandler)}},{key:"hideResizeHandle",value:function(){var e=this;this.hideTimeout=this.j.async.setTimeout((function(){ui.safeRemove(e.resizeHandler)}),{timeout:this.j.defaultTimeout,label:"hideResizer"})}},{key:"onHandleMouseDown",value:function(e){var t=this;if(!this.j.isLocked){this.drag=!0,this.j.e.on(this.j.ow,"mouseup.resize-cells touchend.resize-cells",this.onMouseUp).on(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.startX=e.clientX,this.j.lock(Pk),this.resizeHandler.classList.add("jodit-table-resizer_moved");var o,n=this.workTable.getBoundingClientRect();if(this.minX=0,this.maxX=1e6,null!=this.wholeTable)n=this.workTable.parentNode.getBoundingClientRect(),this.minX=n.left,this.maxX=this.minX+n.width;else{var r=this.module.formalCoordinate(this.workTable,this.workCell,!0);this.module.formalMatrix(this.workTable,(function(e,n,i){r[1]===i&&(o=e.getBoundingClientRect(),t.minX=Math.max(o.left+Kt/2,t.minX)),r[1]+(t.isRTL?-1:1)===i&&(o=e.getBoundingClientRect(),t.maxX=Math.min(o.left+o.width-Kt/2,t.maxX))}))}return!1}}},{key:"onMouseMove",value:function(e){if(this.drag){this.j.e.fire("closeAllPopups");var t=e.clientX,o=Qi(this.resizeHandler.parentNode||this.j.od.documentElement,this.j,this.j.od,!0);t<this.minX&&(t=this.minX),t>this.maxX&&(t=this.maxX),this.resizeDelta=t-this.startX+(this.j.o.iframe?o.left:0),this.resizeHandler.style.left=t-(this.j.o.iframe?0:o.left)+"px";var n=this.j.s.sel;n&&n.removeAllRanges()}}},{key:"onMouseUp",value:function(e){(this.selectMode||this.drag)&&(this.selectMode=!1,this.j.unlock()),this.resizeHandler&&this.drag&&(this.drag=!1,this.j.e.off(this.j.ew,"mousemove.table touchmove.table",this.onMouseMove),this.resizeHandler.classList.remove("jodit-table-resizer_moved"),this.startX!==e.clientX&&(null==this.wholeTable?this.resizeColumns():this.resizeTable()),this.j.synchronizeValues(),this.j.s.focus())}},{key:"resizeColumns",value:function(){var e=this.resizeDelta,t=[],o=this.module;o.setColumnWidthByDelta(this.workTable,o.formalCoordinate(this.workTable,this.workCell,!0)[1],e,!0,t);var n=sr(this.isRTL?ui.prev:ui.next,this.workCell,ui.isCell,this.workCell.parentNode);o.setColumnWidthByDelta(this.workTable,o.formalCoordinate(this.workTable,n)[1],-e,!1,t)}},{key:"resizeTable",value:function(){var e=this.resizeDelta*(this.isRTL?-1:1),t=this.workTable.offsetWidth,o=Gi(this.workTable.parentNode,this.j.ew),n=!this.wholeTable;if(this.isRTL?!n:n)this.workTable.style.width=(t+e)/o*100+"%";else{var r=this.isRTL?"marginRight":"marginLeft",i=parseInt(this.j.ew.getComputedStyle(this.workTable)[r]||"0",10);this.workTable.style.width=(t-e)/o*100+"%",this.workTable.style[r]=(i+e)/o*100+"%"}}},{key:"setWorkCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.wholeTable=t,this.workCell=e,this.workTable=ui.up(e,(function(e){return ui.isTag(e,"table")}),this.j.editor)}},{key:"calcHandlePosition",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=Qi(t,this.j,this.j.ed);if(o>Kt&&o<r.width-Kt)this.hideResizeHandle();else{var i=Qi(this.j.workplace,this.j,this.j.od,!0),a=Qi(e,this.j,this.j.ed);if(this.resizeHandler.style.left=(o<=Kt?r.left:r.left+r.width)-i.left+n+"px",Object.assign(this.resizeHandler.style,{height:a.height+"px",top:a.top-i.top+"px"}),this.showResizeHandle(),o<=Kt){var l=sr(this.isRTL?ui.next:ui.prev,t,ui.isCell,t.parentNode);this.setWorkCell(l||t,!l||null)}else{var s=sr(this.isRTL?ui.prev:ui.next,t,ui.isCell,t.parentNode);this.setWorkCell(t,!!s&&null)}}}},{key:"afterInit",value:function(e){var t=this;e.o.tableAllowCellResize&&e.e.off(this.j.ow,".resize-cells").off(".resize-cells").on("change.resize-cells afterCommand.resize-cells afterSetMode.resize-cells",(function(){Jr("table",e.editor).forEach(t.observe)})).on(this.j.ow,"scroll.resize-cells",(function(){if(t.drag){var o=ui.up(t.workCell,(function(e){return ui.isTag(e,"table")}),e.editor);if(o){var n=o.getBoundingClientRect();t.resizeHandler.style.top=n.top+"px"}}})).on("beforeSetMode.resize-cells",(function(){var o=t.module;o.getAllSelectedCells().forEach((function(t){o.removeSelection(t),o.normalizeTable(ui.closest(t,"table",e.editor))}))}))}},{key:"observe",value:function(e){var t=this;ar(e,Pk)||(ar(e,Pk,!0),this.j.e.on(e,"mouseleave.resize-cells",(function(e){t.resizeHandler&&t.resizeHandler!==e.relatedTarget&&t.hideResizeHandle()})).on(e,"mousemove.resize-cells touchmove.resize-cells",this.j.async.throttle((function(o){if(!t.j.isLocked){var n=ui.up(o.target,ui.isCell,e);n&&t.calcHandlePosition(e,n,o.offsetX)}}),{timeout:this.j.defaultTimeout})),this.createResizeHandle())}},{key:"beforeDestruct",value:function(e){e.events&&(e.e.off(this.j.ow,".resize-cells"),e.e.off(".resize-cells"))}}],n&&xk(o.prototype,n),t}(Ek(Hp));function Ak(e,t,o){return Ak=Hk()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Bk(r,o.prototype),r},Ak.apply(null,arguments)}function Lk(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Mk(e){return Mk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mk(e)}function Bk(e,t){return Bk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Bk(e,t)}function Dk(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Nk(e){var t="function"==typeof Map?new Map:void 0;return Nk=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Ak(e,arguments,Mk(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Bk(n,e)},Nk(e)}function Hk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Hk=function(){return!!e})()}Ik([Co],Rk.prototype,"onHandleMouseDown",null),Ik([Co],Rk.prototype,"onMouseMove",null),Ik([Co],Rk.prototype,"onMouseUp",null),Ik([Co],Rk.prototype,"observe",null),Ra.add("resizeCells",Rk),tr.prototype.allowResizeX=!1,tr.prototype.allowResizeY=!0;var Fk=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Dk(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},qk=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=Mk(t),function(e,t){return!t||"object"!==Dk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Hk()?Reflect.construct(t,o||[],Mk(e).constructor):t.apply(e,o))}(this,t,arguments)).isResized=!1,e.start={x:0,y:0,w:0,h:0},e.handle=e.j.c.div("jodit-editor__resize",kl.get("resize_handler")),e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bk(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){var t=this,o=e.o,n=o.height,r=o.width,i=o.allowResizeX,a=e.o.allowResizeY;"auto"===n&&"auto"!==r&&(a=!1),"auto"===n&&"auto"===r||!i&&!a||(e.statusbar.setMod("resize-handle",!0),e.e.on("toggleFullSize.resizeHandler",(function(){t.handle.style.display=e.isFullSize?"none":"block"})).on(this.handle,"mousedown touchstart",this.onHandleResizeStart).on(e.ow,"mouseup touchend",this.onHandleResizeEnd),e.container.appendChild(this.handle))}},{key:"onHandleResizeStart",value:function(e){this.isResized=!0,this.start.x=e.clientX,this.start.y=e.clientY,this.start.w=this.j.container.offsetWidth,this.start.h=this.j.container.offsetHeight,this.j.lock(),this.j.e.on(this.j.ow,"mousemove touchmove",this.onHandleResize),e.preventDefault()}},{key:"onHandleResize",value:function(e){this.isResized&&(this.j.o.allowResizeY&&this.j.e.fire("setHeight",this.start.h+e.clientY-this.start.y),this.j.o.allowResizeX&&this.j.e.fire("setWidth",this.start.w+e.clientX-this.start.x),this.j.e.fire("resize"))}},{key:"onHandleResizeEnd",value:function(){this.isResized&&(this.isResized=!1,this.j.e.off(this.j.ow,"mousemove touchmove",this.onHandleResize),this.j.unlock())}},{key:"beforeDestruct",value:function(){ui.safeRemove(this.handle),this.j.e.off(this.j.ow,"mouseup touchsend",this.onHandleResizeEnd)}}])&&Lk(o.prototype,n),t}(Nk(Hp));function Vk(e,t,o){return Vk=Jk()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Yk(r,o.prototype),r},Vk.apply(null,arguments)}function Wk(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Uk(e){return Uk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Uk(e)}function Yk(e,t){return Yk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yk(e,t)}function Kk(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Gk(e){var t="function"==typeof Map?new Map:void 0;return Gk=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Vk(e,arguments,Uk(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Yk(n,e)},Gk(e)}function Jk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Jk=function(){return!!e})()}qk.requires=["size"],Fk([Co],qk.prototype,"onHandleResizeStart",null),Fk([Co],qk.prototype,"onHandleResize",null),Fk([Co],qk.prototype,"onHandleResizeEnd",null),Ra.add("resizeHandler",qk),tr.prototype.allowResizeTags=new Set(["img","iframe","table","jodit"]),tr.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,forImageChangeAttributes:!0,min_width:10,min_height:10,useAspectRatio:new Set(["img"])};var Xk=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Kk(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},Zk="__jodit-resizer_binded",Qk=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=Uk(t),function(e,t){return!t||"object"!==Kk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Jk()?Reflect.construct(t,o||[],Uk(e).constructor):t.apply(e,o))}(this,t,arguments)).LOCK_KEY="resizer",e.element=null,e.isResizeMode=!1,e.isShown=!1,e.startX=0,e.startY=0,e.width=0,e.height=0,e.ratio=0,e.rect=e.j.c.fromHTML('<div title="'.concat(e.j.i18n("Press Alt for custom resizing"),'" class="jodit-resizer">\n\t\t\t\t<div class="jodit-resizer__top-left"></div>\n\t\t\t\t<div class="jodit-resizer__top-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-right"></div>\n\t\t\t\t<div class="jodit-resizer__bottom-left"></div>\n\t\t\t\t<span>100x100</span>\n\t\t\t</div>')),e.sizeViewer=e.rect.getElementsByTagName("span")[0],e.pointerX=0,e.pointerY=0,e.isAltMode=!1,e.onClickElement=function(t){e.isResizeMode||e.element===t&&e.isShown||(e.element=t,e.show(),ui.isTag(e.element,"img")&&!e.element.complete&&e.j.e.one(e.element,"load",e.updateSize))},e.updateSize=function(){if(!e.isInDestruct&&e.isShown&&e.element&&e.rect){var t=e.getWorkplacePosition(),o=Qi(e.element,e.j,e.j.ed),n=parseInt(e.rect.style.left||"0",10),r=parseInt(e.rect.style.top||"0",10),i=e.rect.offsetWidth,a=e.rect.offsetHeight,l=o.top-t.top,s=o.left-t.left;r===l&&n===s&&i===e.element.offsetWidth&&a===e.element.offsetHeight||(In(e.rect,{top:l,left:s,width:e.element.offsetWidth,height:e.element.offsetHeight}),e.j.events&&(e.j.e.fire(e.element,"changesize"),isNaN(n)||e.j.e.fire("resize")))}},e.hideSizeViewer=function(){e.sizeViewer.style.opacity="0"},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yk(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){var t=this;Jr("div",this.rect).forEach((function(o){e.e.on(o,"mousedown.resizer touchstart.resizer",t.onStartResizing.bind(t,o))})),Na.on("hideHelpers",this.hide),e.e.on("readonly",(function(e){e&&t.hide()})).on("afterInit changePlace",this.addEventListeners.bind(this)).on("afterGetValueFromEditor.resizer",(function(e){var t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]*>.*?<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))})),this.addEventListeners(),this.__onChangeEditor()}},{key:"onEditorClick",value:function(e){for(var t=e.target,o=this.j,n=o.editor,r=o.options.allowResizeTags;t&&t!==n;){if(ui.isTag(t,r))return this.__bind(t),void this.onClickElement(t);t=t.parentNode}}},{key:"__afterInsertImage",value:function(e){if(!this.j.o.resizer.forImageChangeAttributes){var t=Xn(e,"width");t&&!In(e,"width",!0)&&(In(e,"width",t),Xn(e,"width",null))}}},{key:"addEventListeners",value:function(){var e=this,t=this.j;t.e.off(t.editor,".resizer").off(t.ow,".resizer").on(t.editor,"keydown.resizer",(function(t){e.isShown&&t.key===Ut&&e.element&&!ui.isTag(e.element,"table")&&e.onDelete(t)})).on(t.ow,"resize.resizer",this.updateSize).on("resize.resizer",this.updateSize).on([t.ow,t.editor],"scroll.resizer",(function(){e.isShown&&!e.isResizeMode&&e.hide()})).on(t.ow,"keydown.resizer",this.onKeyDown).on(t.ow,"keyup.resizer",this.onKeyUp).on(t.ow,"mouseup.resizer touchend.resizer",this.onClickOutside)}},{key:"onStartResizing",value:function(e,t){if(!this.element||!this.element.parentNode)return this.hide(),!1;this.handle=e,t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.isResizeMode=!0,this.startX=t.clientX,this.startY=t.clientY,this.pointerX=t.clientX,this.pointerY=t.clientY;var o=this.j;o.e.fire("hidePopup"),o.lock(this.LOCK_KEY),o.e.on(o.ow,"mousemove.resizer touchmove.resizer",this.onResize)}},{key:"onEndResizing",value:function(){var e=this.j;e.unlock(),this.isResizeMode=!1,this.isAltMode=!1,e.synchronizeValues(),e.e.off(e.ow,"mousemove.resizer touchmove.resizer",this.onResize)}},{key:"onResize",value:function(e){if(this.isResizeMode){if(!this.element)return;var t,o;if(this.pointerX=e.clientX,this.pointerY=e.clientY,this.j.options.iframe){var n=this.getWorkplacePosition();t=e.clientX+n.left-this.startX,o=e.clientY+n.top-this.startY}else t=this.pointerX-this.startX,o=this.pointerY-this.startY;var r=this.handle.className,i=0,a=0,l=this.j.o.resizer.useAspectRatio;!this.isAltMode&&(!0===l||l&&ui.isTag(this.element,l))?(t?(i=this.width+(r.match(/left/)?-1:1)*t,a=Math.round(i/this.ratio)):(a=this.height+(r.match(/top/)?-1:1)*o,i=Math.round(a*this.ratio)),i>Xi(this.j.editor,this.j.ow)&&(i=Xi(this.j.editor,this.j.ow),a=Math.round(i/this.ratio))):(i=this.width+(r.match(/left/)?-1:1)*t,a=this.height+(r.match(/top/)?-1:1)*o),i>this.j.o.resizer.min_width&&(i<this.rect.parentNode.offsetWidth?this.applySize(this.element,"width",i):this.applySize(this.element,"width","100%")),a>this.j.o.resizer.min_height&&this.applySize(this.element,"height",a),this.updateSize(),this.showSizeViewer(this.element.offsetWidth,this.element.offsetHeight),e.stopImmediatePropagation()}}},{key:"onKeyDown",value:function(e){this.isAltMode=e.key===Nt,!this.isAltMode&&this.isResizeMode&&this.onEndResizing()}},{key:"onKeyUp",value:function(){this.isAltMode&&this.isResizeMode&&this.element&&(this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this.ratio=this.width/this.height,this.startX=this.pointerX,this.startY=this.pointerY),this.isAltMode=!1}},{key:"onClickOutside",value:function(e){if(this.isShown){if(!this.isResizeMode)return this.hide();e.stopImmediatePropagation(),this.onEndResizing()}}},{key:"getWorkplacePosition",value:function(){return Qi(this.rect.parentNode||this.j.od.documentElement,this.j,this.j.od,!0)}},{key:"applySize",value:function(e,t,o){var n=ui.isImage(e)&&this.j.o.resizer.forImageChangeAttributes;n&&Xn(e,t,o),n&&!e.style[t]||In(e,t,o)}},{key:"onDelete",value:function(e){this.element&&("JODIT"!==this.element.tagName?this.j.s.select(this.element):(ui.safeRemove(this.element),this.hide(),e.preventDefault()))}},{key:"__onChangeEditor",value:function(){this.isShown&&(this.element&&this.element.parentNode?this.updateSize():this.hide()),Jr("iframe",this.j.editor).forEach(this.__bind)}},{key:"__bind",value:function(e){var t=this;if(ui.isHTMLElement(e)&&this.j.o.allowResizeTags.has(e.tagName.toLowerCase())&&!ar(e,Zk)){var o;if(ar(e,Zk,!0),ui.isTag(e,"iframe")){var n=e;ui.isHTMLElement(e.parentNode)&&Xn(e.parentNode,"-jodit_iframe_wrapper")?e=e.parentNode:(Xn(o=this.j.createInside.element("jodit",{"data-jodit-temp":1,contenteditable:!1,draggable:!0,"data-jodit_iframe_wrapper":1}),"style",Xn(e,"style")),In(o,{display:"inline-block"===e.style.display?"inline-block":"block",width:e.offsetWidth,height:e.offsetHeight}),e.parentNode&&e.parentNode.insertBefore(o,e),o.appendChild(e),this.j.e.on(o,"click",(function(){Xn(o,"data-jodit-wrapper_active",!0)})),e=o),this.j.e.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",(function(){t.j.s.select(e)})).off(e,"changesize").on(e,"changesize",(function(){n.setAttribute("width",e.offsetWidth+"px"),n.setAttribute("height",e.offsetHeight+"px")}))}this.j.e.on(e,"dragstart",this.hide),!dt&&to&&this.j.e.on(e,"mousedown",(function(t){ui.isTag(e,"img")&&t.preventDefault()}))}}},{key:"showSizeViewer",value:function(e,t){this.j.o.resizer.showSize&&(e<this.sizeViewer.offsetWidth||t<this.sizeViewer.offsetHeight?this.hideSizeViewer():(this.sizeViewer.style.opacity="1",this.sizeViewer.textContent="".concat(e," x ").concat(t),this.j.async.setTimeout(this.hideSizeViewer,{timeout:this.j.o.resizer.hideSizeTimeout,label:"hideSizeViewer"})))}},{key:"show",value:function(){this.j.o.readonly||this.isShown||(this.isShown=!0,this.rect.parentNode||(cr(this.j,this.rect),this.j.workplace.appendChild(this.rect)),this.j.isFullSize&&(this.rect.style.zIndex=In(this.j.container,"zIndex").toString()),this.updateSize())}},{key:"hide",value:function(){this.isResizeMode||(this.isResizeMode=!1,this.isShown=!1,this.element=null,ui.safeRemove(this.rect),Jr("[data-jodit-wrapper_active='true']",this.j.editor).forEach((function(e){return Xn(e,"data-jodit-wrapper_active",!1)})))}},{key:"beforeDestruct",value:function(e){this.hide(),Na.off("hideHelpers",this.hide),e.e.off(this.j.ow,".resizer").off(".resizer")}}],n&&Wk(o.prototype,n),t}(Gk(Hp));function $k(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function eS(e,t,o){return eS=nS()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&tS(r,o.prototype),r},eS.apply(null,arguments)}function tS(e,t){return tS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tS(e,t)}function oS(e){return function(e){if(Array.isArray(e))return $k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $k(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?$k(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nS=function(){return!!e})()}Xk([Sa(":click")],Qk.prototype,"onEditorClick",null),Xk([Sa(":afterInsertImage")],Qk.prototype,"__afterInsertImage",null),Xk([Co],Qk.prototype,"onStartResizing",null),Xk([Co],Qk.prototype,"onEndResizing",null),Xk([Co],Qk.prototype,"onResize",null),Xk([Co],Qk.prototype,"onKeyDown",null),Xk([Co],Qk.prototype,"onKeyUp",null),Xk([Co],Qk.prototype,"onClickOutside",null),Xk([Sa(":change")],Qk.prototype,"__onChangeEditor",null),Xk([Co],Qk.prototype,"__bind",null),Xk([Co,Sa(":hideResizer")],Qk.prototype,"hide",null),Ra.add("resizer",Qk),tr.prototype.useSearch=!0,tr.prototype.search={lazyIdleTimeout:0,useCustomHighlightAPI:Ot&&void 0!==Ot.Highlight},kl.set("search",'<svg viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg"> <path clip-rule="evenodd" d="M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z" fill-rule="evenodd"/> </svg> '),tr.prototype.controls.find={tooltip:"Find",icon:"search",exec:function(e,t,o){var n=o.control;switch(n.args&&n.args[0]){case"findPrevious":e.e.fire("searchPrevious");break;case"findNext":e.e.fire("searchNext");break;case"replace":e.execCommand("openReplaceDialog");break;default:e.execCommand("openSearchDialog")}},list:{search:"Find",findNext:"Find Next",findPrevious:"Find Previous",replace:"Replace"},childTemplate:function(e,t,o){return o}};var rS="jd-tmp-selection";function iS(e,t,o,n,r){if(null!=t.startContainer.nodeValue&&null!=t.endContainer.nodeValue&&!function(e,t,o){if(e.o.search.useCustomHighlightAPI&&Ot&&void 0!==Ot.Highlight){var n=[t].concat(oS(o)).map((function(t){var o=e.selection.createRange();return o.setStart(t.startContainer,t.startOffset),o.setEnd(t.endContainer,t.endOffset),o})),r=eS(Highlight,oS(n));return CSS.highlights.clear(),CSS.highlights.set("jodit-search-result",r),o.length=0,!0}return!1}(e,t,o)){var i=n.element("span",function(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}({},rS,!0));ui.markTemporary(i),function(e,t,o){var n=e.startContainer.nodeValue,r=0;if(0!==e.startOffset){var i=o.text(n.substring(0,e.startOffset));e.startContainer.nodeValue=n.substring(e.startOffset),ui.before(e.startContainer,i),e.startContainer===e.endContainer&&(r=e.startOffset,e.endOffset-=r),e.startOffset=0}var a=e.endContainer.nodeValue;if(e.endOffset!==a.length){var l=o.text(a.substring(e.endOffset));e.endContainer.nodeValue=a.substring(0,e.endOffset),ui.after(e.endContainer,l);var s=!0,c=!1,u=void 0;try{for(var d,f=t[Symbol.iterator]();!(s=(d=f.next()).done);s=!0){var p=d.value;if(p.startContainer!==e.endContainer)break;p.startContainer=l,p.startOffset=p.startOffset-e.endOffset-r,p.endContainer===e.endContainer&&(p.endContainer=l,p.endOffset=p.endOffset-e.endOffset-r)}}catch(e){c=!0,u=e}finally{try{s||null==f.return||f.return()}finally{if(c)throw u}}e.endOffset=e.endContainer.nodeValue.length}}(t,o,n);var a,l=t.startContainer;do{if(!l)break;if(!ui.isText(l)||(a=l.parentNode,ui.isElement(a)&&a.hasAttribute(rS))||ui.wrap(l,i.cloneNode(),n),l===t.endContainer)break;var s=l.firstChild||l.nextSibling;if(!s){for(;l&&!l.nextSibling&&l!==r;)l=l.parentNode;s=null==l?void 0:l.nextSibling}l=s}while(l&&l!==r)}}function aS(e){return Jr("[".concat(rS,"]"),e)}function lS(e){aS(e.editor).forEach((function(e){return ui.unwrap(e)})),function(e){e.o.search.useCustomHighlightAPI&&Ot&&void 0!==Ot.Highlight&&CSS.highlights.clear()}(e)}function sS(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function cS(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function uS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return sS(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?sS(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var dS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ea;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.searchIndex=t,this.queue=[],this.value=""}var t,o;return t=e,o=[{key:"add",value:function(e){var t,o=(null!==(t=e.nodeValue)&&void 0!==t?t:"").toLowerCase();if(o.length){var n=this.value.length;this.queue.push({startIndex:n,endIndex:n+o.length,node:e}),this.value+=o}}},{key:"ranges",value:function(e){var t=[],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0,r=0;do{var i;if(o=(i=uS(this.searchIndex(e,this.value,o),2))[0],n=i[1],-1!==o){for(var a=void 0,l=0,s=void 0,c=0,u=r;u<this.queue.length;u+=1)if(!a&&this.queue[u].endIndex>o&&(a=this.queue[u].node,l=o-this.queue[u].startIndex),a&&this.queue[u].endIndex>=o+n){s=this.queue[u].node,c=o+n-this.queue[u].startIndex,r=u;break}a&&s&&t.push({startContainer:a,startOffset:l,endContainer:s,endOffset:c}),o+=n}}while(-1!==o);return 0===t.length?null:t}}],o&&cS(t.prototype,o),e}();function fS(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function pS(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function hS(e){return hS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hS(e)}function vS(e,t){return vS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},vS(e,t)}function gS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function mS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mS=function(){return!!e})()}var bS=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":gS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},yS=function(e){function t(e){var o,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t,o){return t=hS(t),function(e,t){return!t||"object"!==gS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,mS()?Reflect.construct(t,o||[],hS(e).constructor):t.apply(e,o))}(this,t,[e]),n=o,o.selInfo=null,o._currentIndex=0,o.isOpened=!1;var r=Zr(o.container),i=r.query,a=r.replace,l=r.cancel,s=r.next,c=r.prev,u=r.replaceBtn,d=r.current,f=r.count;return o.queryInput=i,o.replaceInput=a,o.closeButton=l,o.replaceButton=u,o.currentBox=d,o.countBox=f,e.e.on(o.closeButton,"pointerdown",(function(){return o.close(),!1})).on(o.queryInput,"input",(function(){o.currentIndex=0})).on(o.queryInput,"pointerdown",(function(){e.s.isFocused()&&(e.s.removeMarkers(),o.selInfo=e.s.save())})).on(o.replaceButton,"pointerdown",(function(){return e.e.fire(o,"pressReplaceButton"),!1})).on(s,"pointerdown",(function(){return e.e.fire("searchNext"),!1})).on(c,"pointerdown",(function(){return e.e.fire("searchPrevious"),!1})).on(o.queryInput,"input",(function(){o.setMod("empty-query",!dn(o.queryInput.value).length)})).on(o.queryInput,"keydown",o.j.async.debounce(function(){var t,o=(t=function(t){return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(o){switch(o.label){case 0:return t.key===Bt?[3,1]:[3,3];case 1:return t.preventDefault(),t.stopImmediatePropagation(),[4,e.e.fire("searchNext")];case 2:return o.sent()&&n.close(),[3,4];case 3:return e.e.fire(n,"needUpdateCounters"),[3,4];case 4:return[2]}}))},function(){var e=this,o=arguments;return new Promise((function(n,r){var i=t.apply(e,o);function a(e){fS(i,n,r,a,l,"next",e)}function l(e){fS(i,n,r,a,l,"throw",e)}a(void 0)}))});return function(e){return o.apply(this,arguments)}}(),o.j.defaultTimeout)),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vS(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UISearch"}},{key:"render",value:function(){return'<div>\n\t\t\t<div class="&__box">\n\t\t\t\t<div class="&__inputs">\n\t\t\t\t\t<input data-ref="query" tabindex="0" placeholder="~Search for~" type="text"/>\n\t\t\t\t\t<input data-ref="replace" tabindex="0" placeholder="~Replace with~" type="text"/>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__counts">\n\t\t\t\t\t<span data-ref="counter-box">\n\t\t\t\t\t\t<span data-ref="current">0</span><span>/</span><span data-ref="count">0</span>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t\t<div class="&__buttons">\n\t\t\t\t\t<button data-ref="next" tabindex="0" type="button">'.concat(kl.get("angle-down"),'</button>\n\t\t\t\t\t<button data-ref="prev" tabindex="0" type="button">').concat(kl.get("angle-up"),'</button>\n\t\t\t\t\t<button data-ref="cancel" tabindex="0" type="button">').concat(kl.get("cancel"),'</button>\n\t\t\t\t\t<button data-ref="replace-btn" tabindex="0" type="button" class="jodit-ui-button">~Replace~</button>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>')}},{key:"currentIndex",get:function(){return this._currentIndex},set:function(e){this._currentIndex=e,this.currentBox.innerText=e.toString()}},{key:"count",set:function(e){this.countBox.innerText=e.toString()}},{key:"query",get:function(){return this.queryInput.value}},{key:"replace",get:function(){return this.replaceInput.value}},{key:"onEditorKeyDown",value:function(e){if(this.isOpened){var t=this.j;if(t.getRealMode()===Qt)switch(e.key){case Dt:this.close();break;case Yt:this.queryInput.value&&(t.e.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}}},{key:"open",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.isOpened||(this.j.workplace.appendChild(this.container),this.isOpened=!0),this.calcSticky(this.j.e.fire("getStickyState.sticky")||!1),this.j.e.fire("hidePopup"),this.setMod("replace",o);var n=null!=e?e:(this.j.s.sel||"").toString();n&&(this.queryInput.value=n),t&&(this.replaceInput.value=t),this.setMod("empty-query",!n.length),this.j.e.fire(this,"needUpdateCounters"),n?this.queryInput.select():this.queryInput.focus()}},{key:"close",value:function(){this.isOpened&&(this.j.s.restore(),ui.safeRemove(this.container),this.isOpened=!1,this.j.e.fire(this,"afterClose"))}},{key:"calcSticky",value:function(e){if(this.isOpened)if(this.setMod("sticky",e),e){var t=$i(this.j.toolbarContainer);In(this.container,{top:t.top+t.height,left:t.left+t.width})}else In(this.container,{top:null,left:null})}}],n&&pS(o.prototype,n),t}(Il);function _S(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function jS(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function wS(e){return function(){var t=this,o=arguments;return new Promise((function(n,r){var i=e.apply(t,o);function a(e){jS(i,n,r,a,l,"next",e)}function l(e){jS(i,n,r,a,l,"throw",e)}a(void 0)}))}}function kS(e,t,o){return kS=ES()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&OS(r,o.prototype),r},kS.apply(null,arguments)}function SS(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xS(e){return xS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xS(e)}function OS(e,t){return OS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},OS(e,t)}function CS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function zS(e){var t="function"==typeof Map?new Map:void 0;return zS=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return kS(e,arguments,xS(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),OS(n,e)},zS(e)}function ES(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ES=function(){return!!e})()}function TS(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}bS([Sa([":keydown","queryInput:keydown"])],yS.prototype,"onEditorKeyDown",null),bS([Co],yS.prototype,"open",null),bS([Co],yS.prototype,"close",null),bS([Sa(":toggleSticky")],yS.prototype,"calcSticky",null),yS=bS([bi],yS);var IS=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":CS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},PS=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=xS(t),function(e,t){return!t||"object"!==CS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,ES()?Reflect.construct(t,o||[],xS(e).constructor):t.apply(e,o))}(this,t,arguments)).buttons=[{name:"find",group:"search"}],e.previousQuery="",e.drawPromise=null,e.walker=null,e.walkerCount=null,e.cache={},e.wrapFrameRequest=0,e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&OS(e,t)}(t,e),o=t,n=[{key:"ui",get:function(){return new yS(this.j)}},{key:"updateCounters",value:function(){var e=this;return wS((function(){var t;return TS(this,(function(o){switch(o.label){case 0:return e.ui.isOpened?(t=e.ui,[4,e.calcCounts(e.ui.query)]):[2];case 1:return t.count=o.sent(),[2]}}))}))()}},{key:"onPressReplaceButton",value:function(){this.findAndReplace(this.ui.query),this.updateCounters()}},{key:"tryScrollToElement",value:function(e){var t=ui.closest(e,ui.isElement,this.j.editor);t||(t=ui.prev(e,ui.isElement,this.j.editor)),t&&t!==this.j.editor&&oi(t,this.j.editor,this.j.ed)}},{key:"calcCounts",value:function(e){var t=this;return wS((function(){return TS(this,(function(o){switch(o.label){case 0:return[4,t.findQueryBounds(e,"walkerCount")];case 1:return[2,o.sent().length]}}))}))()}},{key:"findQueryBounds",value:function(e,t){var o=this;return wS((function(){var n;return TS(this,(function(r){return(n=o[t])&&n.break(),n=new kn(o.j.async,{timeout:o.j.o.search.lazyIdleTimeout}),o[t]=n,[2,o.find(n,e).catch((function(e){return!ft&&console.error(e),[]}))]}))}))()}},{key:"findAndReplace",value:function(e){var t=this;return wS((function(){var o,n,r,i,a;return TS(this,(function(l){switch(l.label){case 0:return[4,t.findQueryBounds(e,"walker")];case 1:if(!(o=l.sent()).length)return[2,!1];if(-1===(n=t.findCurrentIndexInRanges(o,t.j.s.range))&&(n=0),!(r=o[n]))return[3,6];l.label=2;case 2:return l.trys.push([2,,4,5]),(i=t.j.ed.createRange()).setStart(r.startContainer,r.startOffset),i.setEnd(r.endContainer,r.endOffset),i.deleteContents(),a=t.j.createInside.text(t.ui.replace),ui.safeInsertNode(i,a),lS(t.j),t.j.s.setCursorAfter(a),t.tryScrollToElement(a),t.cache={},t.ui.currentIndex=n,[4,t.findAndSelect(e,!0).catch((function(e){return!ft&&console.error(e),null}))];case 3:return l.sent(),[3,5];case 4:return t.j.synchronizeValues(),[7];case 5:return t.j.e.fire("afterFindAndReplace"),[2,!0];case 6:return[2,!1]}}))}))()}},{key:"findAndSelect",value:function(e,t){var o=this;return wS((function(){var n,r,i,a,l;return TS(this,(function(s){switch(s.label){case 0:return[4,o.findQueryBounds(e,"walker")];case 1:if(!(r=s.sent()).length)return[2,!1];if(o.previousQuery===e&&aS(o.j.editor).length||(null===(n=o.drawPromise)||void 0===n||n.rejectCallback(),o.j.async.cancelAnimationFrame(o.wrapFrameRequest),lS(o.j),o.drawPromise=o.__drawSelectionRanges(r)),o.previousQuery=e,i=-1==(i=o.ui.currentIndex-1)?0:t?i===r.length-1?0:i+1:0===i?r.length-1:i-1,o.ui.currentIndex=i+1,!(a=r[i]))return[3,4];l=o.j.ed.createRange();try{l.setStart(a.startContainer,a.startOffset),l.setEnd(a.endContainer,a.endOffset),o.j.s.selectRange(l)}catch(e){!ft&&console.error(e)}return o.tryScrollToElement(a.startContainer),[4,o.updateCounters()];case 2:return s.sent(),[4,o.drawPromise];case 3:return s.sent(),o.j.e.fire("afterFindAndSelect"),[2,!0];case 4:return[2,!1]}}))}))()}},{key:"findCurrentIndexInRanges",value:function(e,t){return e.findIndex((function(e){return e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.startContainer&&e.endOffset===t.endOffset}))}},{key:"isValidCache",value:function(e){return wS((function(){return TS(this,(function(t){switch(t.label){case 0:return[4,e];case 1:return[2,t.sent().every((function(e){var t,o,n,r;return e.startContainer.isConnected&&e.startOffset<=(null!==(o=null===(t=e.startContainer.nodeValue)||void 0===t?void 0:t.length)&&void 0!==o?o:0)&&e.endContainer.isConnected&&e.endOffset<=(null!==(r=null===(n=e.endContainer.nodeValue)||void 0===n?void 0:n.length)&&void 0!==r?r:0)}))]}}))}))()}},{key:"find",value:function(e,t){var o=this;return wS((function(){var n,r;return TS(this,(function(i){switch(i.label){case 0:return t.length?(n=o.cache[t],(r=n)?[4,o.isValidCache(n)]:[3,2]):[2,[]];case 1:r=i.sent(),i.label=2;case 2:return r?[2,n]:(o.cache[t]=o.j.async.promise((function(n){var r=new dS(o.j.o.search.fuzzySearch);e.on("break",(function(){n([])})).on("visit",(function(e){return ui.isText(e)&&r.add(e),!1})).on("end",(function(){var e;n(null!==(e=r.ranges(t))&&void 0!==e?e:[])})).setWork(o.j.editor)})),[2,o.cache[t]])}}))}))()}},{key:"__drawSelectionRanges",value:function(e){var t=this,o=this.j,n=o.async,r=o.createInside,i=o.editor;n.cancelAnimationFrame(this.wrapFrameRequest);var a,l=function(e){return function(e){if(Array.isArray(e))return _S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _S(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_S(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),s=0;return n.promise((function(e){var o=function(){do{(a=l.shift())&&iS(t.j,a,l,r,i),s+=1}while(a&&s<=5);l.length?t.wrapFrameRequest=n.requestAnimationFrame(o):e()};o()}))}},{key:"onAfterGetValueFromEditor",value:function(e){e.value=e.value.replace(RegExp("<span[^>]+".concat(rS,"[^>]+>(.*?)</span>"),"g"),"$1")}},{key:"afterInit",value:function(e){var t=this;if(e.o.useSearch){var o=this,n=this;e.e.on("beforeSetMode.search",(function(){t.ui.close()})).on(this.ui,"afterClose",(function(){lS(e),t.ui.currentIndex=0,t.ui.count=0,t.cache={},e.focus()})).on("click",(function(){t.ui.currentIndex=0,lS(e)})).on("change.search",(function(){t.cache={}})).on("keydown.search mousedown.search",e.async.debounce((function(){t.ui.selInfo&&(e.s.removeMarkers(),t.ui.selInfo=null),t.ui.isOpened&&t.updateCounters()}),e.defaultTimeout)).on("searchNext.search searchPrevious.search",(function(){return t.ui.isOpened||t.ui.open(),n.findAndSelect(n.ui.query,"searchNext"===e.e.current).catch((function(e){!ft&&console.error("Search error",e)}))})).on("search.search",(function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return o.ui.currentIndex=0,n.findAndSelect(e||"",t).catch((function(e){!ft&&console.error("Search error",e)}))})),e.registerCommand("search",{exec:function(e,t){var o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t&&n.findAndSelect(t,o).catch((function(e){!ft&&console.error("Search error",e)})),!1}}).registerCommand("openSearchDialog",{exec:function(e,t){return n.ui.open(t),!1},hotkeys:["ctrl+f","cmd+f"]}).registerCommand("openReplaceDialog",{exec:function(t,o,r){return e.o.readonly||n.ui.open(o,r,!0),!1},hotkeys:["ctrl+h","cmd+h"]})}}},{key:"beforeDestruct",value:function(e){var t;null===(t=di(this,"ui"))||void 0===t||t.destruct(),e.e.off(".search")}}],n&&SS(o.prototype,n),t}(zS(Hp));function RS(e,t,o){return RS=NS()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&MS(r,o.prototype),r},RS.apply(null,arguments)}function AS(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function LS(e){return LS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},LS(e)}function MS(e,t){return MS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},MS(e,t)}function BS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function DS(e){var t="function"==typeof Map?new Map:void 0;return DS=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return RS(e,arguments,LS(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),MS(n,e)},DS(e)}function NS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(NS=function(){return!!e})()}IS([fi],PS.prototype,"ui",null),IS([Sa("ui:needUpdateCounters")],PS.prototype,"updateCounters",null),IS([Sa("ui:pressReplaceButton")],PS.prototype,"onPressReplaceButton",null),IS([Co],PS.prototype,"findQueryBounds",null),IS([Co],PS.prototype,"findAndReplace",null),IS([Co],PS.prototype,"findAndSelect",null),IS([Co],PS.prototype,"find",null),IS([Sa(":afterGetValueFromEditor")],PS.prototype,"onAfterGetValueFromEditor",null),Ra.add("search",PS),tr.prototype.select={normalizeSelectionBeforeCutAndCopy:!1,normalizeTripleClick:!0};var HS=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":BS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},FS=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=LS(t),function(e,t){return!t||"object"!==BS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,NS()?Reflect.construct(t,o||[],LS(e).constructor):t.apply(e,o))}(this,t,arguments)).proxyEventsList=["click","mousedown","touchstart","mouseup","touchend"],e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&MS(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){var t=this;this.proxyEventsList.forEach((function(o){e.e.on(o+".select",t.onStartSelection)}))}},{key:"beforeDestruct",value:function(e){var t=this;this.proxyEventsList.forEach((function(o){e.e.on(o+".select",t.onStartSelection)}))}},{key:"onStartSelection",value:function(e){for(var t,o=this.j,n=e.target;void 0===t&&n&&n!==o.editor;)t=o.e.fire(Tn(e.type+"_"+n.nodeName.toLowerCase()),n,e),n=n.parentElement;"click"===e.type&&void 0===t&&n===o.editor&&o.e.fire(e.type+"Editor",n,e)}},{key:"onOutsideClick",value:function(e){var t=this,o=e.target;ui.up(o,(function(e){return e===t.j.editor}))||Il.closestElement(o,pu)||this.j.e.fire("outsideClick",e)}},{key:"beforeCommandCut",value:function(){var e=this.j.s;if(!e.isCollapsed()){var t=e.current();t&&ui.isOrContains(this.j.editor,t)&&this.onCopyNormalizeSelectionBound()}}},{key:"beforeCommandSelectAll",value:function(){var e=this.j.s;return e.focus(),e.select(this.j.editor,!0),e.expandSelection(),!1}},{key:"onTripleClickNormalizeSelection",value:function(e){if(3===e.detail&&this.j.o.select.normalizeTripleClick){var t=this.j.s,o=t.range,n=o.startContainer;0===o.startOffset&&ui.isText(n)&&t.select(ui.closest(n,ui.isBlock,this.j.editor)||n,!0)}}},{key:"onCopyNormalizeSelectionBound",value:function(e){var t=this.j,o=t.s,n=t.editor;t.o.select.normalizeSelectionBeforeCutAndCopy&&!o.isCollapsed()&&(!e||e.isTrusted&&ui.isNode(e.target)&&ui.isOrContains(n,e.target))&&this.jodit.s.expandSelection()}}],n&&AS(o.prototype,n),t}(DS(Hp));function qS(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function VS(e,t,o){return VS=JS()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&YS(r,o.prototype),r},VS.apply(null,arguments)}function WS(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function US(e){return US=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},US(e)}function YS(e,t){return YS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},YS(e,t)}function KS(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function GS(e){var t="function"==typeof Map?new Map:void 0;return GS=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return VS(e,arguments,US(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),YS(n,e)},GS(e)}function JS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(JS=function(){return!!e})()}HS([Co],FS.prototype,"onStartSelection",null),HS([Sa("ow:click")],FS.prototype,"onOutsideClick",null),HS([Sa([":beforeCommandCut"])],FS.prototype,"beforeCommandCut",null),HS([Sa([":beforeCommandSelectall"])],FS.prototype,"beforeCommandSelectAll",null),HS([Sa([":click"])],FS.prototype,"onTripleClickNormalizeSelection",null),HS([Sa([":copy",":cut"])],FS.prototype,"onCopyNormalizeSelectionBound",null),Ra.add("select",FS),tr.prototype.tableAllowCellSelection=!0;var XS=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":KS(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},ZS="table_processor_observer",QS="onMoveTableSelectCell",$S=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=US(t),function(e,t){return!t||"object"!==KS(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,JS()?Reflect.construct(t,o||[],US(e).constructor):t.apply(e,o))}(this,t,arguments)).__selectedCell=null,e.__isSelectionMode=!1,e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&YS(e,t)}(t,e),o=t,n=[{key:"__tableModule",get:function(){return this.j.getInstance(bh,this.j.o)}},{key:"afterInit",value:function(e){var t=this;e.o.tableAllowCellSelection&&e.e.on("keydown.select-cells",(function(e){e.key===Mt&&t.unselectCells()})).on("beforeCommand.select-cells",this.onExecCommand).on("afterCommand.select-cells",this.onAfterCommand).on(["clickEditor","mousedownTd","mousedownTh","touchstartTd","touchstartTh"].map((function(e){return e+".select-cells"})).join(" "),this.onStartSelection).on("clickTr clickTbody",(function(){var e,o=t.__tableModule.getAllSelectedCells().length;if(o)return o>1&&(null===(e=t.j.s.sel)||void 0===e||e.removeAllRanges()),!1}))}},{key:"onStartSelection",value:function(e){if(!this.j.o.readonly&&(this.unselectCells(),e!==this.j.editor)){var t=ui.closest(e,"table",this.j.editor);if(e&&t)return e.firstChild||e.appendChild(this.j.createInside.element("br")),this.__isSelectionMode=!0,this.__selectedCell=e,this.__tableModule.addSelection(e),this.j.e.on(t,"mousemove.select-cells touchmove.select-cells",this.j.async.throttle(this.__onMove.bind(this,t),{label:QS,timeout:this.j.defaultTimeout/2})).on(t,"mouseup.select-cells touchend.select-cells",this.__onStopSelection.bind(this,t)),!1}}},{key:"onOutsideClick",value:function(){this.__selectedCell=null,this.__onRemoveSelection()}},{key:"onChange",value:function(){this.j.isLocked||this.__isSelectionMode||this.__onRemoveSelection()}},{key:"__onMove",value:function(e,t){var o,n=this;if((!this.j.o.readonly||this.j.isLocked)&&!this.j.isLockedNotBy(ZS)){var r=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(r){var i=ui.closest(r,["td","th"],e);if(i&&this.__selectedCell){i!==this.__selectedCell&&this.j.lock(ZS),this.unselectCells();for(var a=this.__tableModule.getSelectedBound(e,[i,this.__selectedCell]),l=this.__tableModule.formalMatrix(e),s=a[0][0];s<=a[1][0];s+=1)for(var c=a[0][1];c<=a[1][1];c+=1)this.__tableModule.addSelection(l[s][c]);var u;this.__tableModule.getAllSelectedCells().length>1&&(null===(o=this.j.s.sel)||void 0===o||o.removeAllRanges()),this.j.e.fire("hidePopup"),t.stopPropagation(),u=n.j.createInside.fromHTML('<div style="color:rgba(0,0,0,0.01);width:0;height:0"> </div>'),i.appendChild(u),n.j.async.setTimeout((function(){var e;null===(e=u.parentNode)||void 0===e||e.removeChild(u)}),n.j.defaultTimeout/5)}}}}},{key:"__onRemoveSelection",value:function(e){var t;if(!(null===(t=null==e?void 0:e.buffer)||void 0===t?void 0:t.actionTrigger)&&!this.__selectedCell&&this.__tableModule.getAllSelectedCells().length)return this.j.unlock(),this.unselectCells(),void this.j.e.fire("hidePopup","cells");this.__isSelectionMode=!1,this.__selectedCell=null}},{key:"__onStopSelection",value:function(e,t){var o=this;if(this.__selectedCell){this.__isSelectionMode=!1,this.j.unlock();var n=this.j.ed.elementFromPoint(t.clientX,t.clientY);if(n){var r=ui.closest(n,["td","th"],e);if(r){var i=ui.closest(r,"table",e);if(!i||i===e){var a=this.__tableModule.getSelectedBound(e,[r,this.__selectedCell]),l=this.__tableModule.formalMatrix(e),s=l[a[1][0]][a[1][1]],c=l[a[0][0]][a[0][1]];this.j.e.fire("showPopup",e,(function(){var e=$i(c,o.j),t=$i(s,o.j);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}}),"cells"),Jr("table",this.j.editor).forEach((function(e){o.j.e.off(e,"mousemove.select-cells touchmove.select-cells mouseup.select-cells touchend.select-cells")})),this.j.async.clearTimeout(QS)}}}}}},{key:"unselectCells",value:function(e){var t=this.__tableModule,o=t.getAllSelectedCells();o.length&&o.forEach((function(o){e&&e===o||t.removeSelection(o)}))}},{key:"onExecCommand",value:function(e){var t=this;if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");var o=this.__tableModule.getAllSelectedCells();if(o.length){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qS(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?qS(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o,1)[0];if(!n)return;var r=ui.closest(n,"table",this.j.editor);if(!r)return;switch(e){case"splitv":this.__tableModule.splitVertical(r);break;case"splitg":this.__tableModule.splitHorizontal(r);break;case"merge":this.__tableModule.mergeSelected(r);break;case"empty":o.forEach((function(e){return ui.detach(e)}));break;case"bin":ui.safeRemove(r);break;case"binrow":new Set(o.map((function(e){return e.parentNode}))).forEach((function(e){t.__tableModule.removeRow(r,e.rowIndex)}));break;case"bincolumn":var i=new Set;o.reduce((function(e,t){return i.has(t.cellIndex)||(e.push(t),i.add(t.cellIndex)),e}),[]).forEach((function(e){t.__tableModule.removeColumn(r,e.cellIndex)}));break;case"addcolumnafter":case"addcolumnbefore":this.__tableModule.appendColumn(r,n,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":this.__tableModule.appendRow(r,n.parentNode,"addrowafter"===e)}}return!1}}},{key:"onAfterCommand",value:function(e){/^justify/.test(e)&&this.__tableModule.getAllSelectedCells().forEach((function(t){return Ln(e,t)}))}},{key:"beforeDestruct",value:function(e){this.__onRemoveSelection(),e.e.off(".select-cells")}}],n&&WS(o.prototype,n),t}(GS(Hp));function ex(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}$S.requires=["select"],XS([Co],$S.prototype,"onStartSelection",null),XS([Sa(":outsideClick")],$S.prototype,"onOutsideClick",null),XS([Sa(":change")],$S.prototype,"onChange",null),XS([Co],$S.prototype,"__onRemoveSelection",null),XS([Co],$S.prototype,"__onStopSelection",null),XS([Co],$S.prototype,"onExecCommand",null),XS([Co],$S.prototype,"onAfterCommand",null),Ra.add("selectCells",$S),tr.prototype.beautifyHTML=!to,tr.prototype.sourceEditor="ace",tr.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},tr.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.2/ace.js"],tr.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.4/beautify-html.min.js"],kl.set("source",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M553 1399l-50 50q-10 10-23 10t-23-10l-466-466q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23l-393 393 393 393q10 10 10 23t-10 23zm591-1067l-373 1291q-4 13-15.5 19.5t-23.5 2.5l-62-17q-13-4-19.5-15.5t-2.5-24.5l373-1291q4-13 15.5-19.5t23.5-2.5l62 17q13 4 19.5 15.5t2.5 24.5zm657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23z"/> </svg> '),tr.prototype.controls.source={mode:eo,exec:function(e){e.toggleMode()},isActive:function(e){return e.getRealMode()===$t},tooltip:"Change mode"};var tx=function(){function e(t,o,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.jodit=t,this.container=o,this.toWYSIWYG=n,this.fromWYSIWYG=r,this.className="",this.isReady=!1}var t,o;return t=e,(o=[{key:"j",get:function(){return this.jodit}},{key:"onReady",value:function(){this.replaceUndoManager(),this.isReady=!0,this.j.e.fire(this,"ready")}},{key:"onReadyAlways",value:function(e){var t;this.isReady?e():null===(t=this.j.events)||void 0===t||t.on(this,"ready",e)}}])&&ex(t.prototype,o),e}();function ox(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nx(e){return nx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nx(e)}function rx(e,t){return rx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rx(e,t)}function ix(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ix=function(){return!!e})()}var ax=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=nx(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,ix()?Reflect.construct(t,o||[],nx(e).constructor):t.apply(e,o))}(this,t,arguments)).className="jodit_ace_editor",e.proxyOnBlur=function(t){e.j.e.fire("blur",t)},e.proxyOnFocus=function(t){e.j.e.fire("focus",t)},e.proxyOnMouseDown=function(t){e.j.e.fire("mousedown",t)},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rx(e,t)}(t,e),o=t,(n=[{key:"aceExists",value:function(){return void 0!==this.j.ow.ace}},{key:"getLastColumnIndex",value:function(e){return this.instance.session.getLine(e).length}},{key:"getLastColumnIndices",value:function(){for(var e=this.instance.session.getLength(),t=[],o=0,n=0;n<e;n++)o+=this.getLastColumnIndex(n),n>0&&(o+=1),t[n]=o;return t}},{key:"getRowColumnIndices",value:function(e){var t=this.getLastColumnIndices();if(e<=t[0])return{row:0,column:e};for(var o=1,n=1;n<t.length;n++)e>t[n]&&(o=n+1);return{row:o,column:e-t[o-1]-1}}},{key:"setSelectionRangeIndices",value:function(e,t){var o=this.getRowColumnIndices(e),n=this.getRowColumnIndices(t);this.instance.getSelection().setSelectionRange({start:o,end:n})}},{key:"getIndexByRowColumn",value:function(e,t){return this.getLastColumnIndices()[e]-this.getLastColumnIndex(e)+t}},{key:"init",value:function(e){var t=this,o=function(){if(void 0===t.instance&&t.aceExists()){var o=t.j.c.div("jodit-source__mirror-fake");t.container.appendChild(o);var n=e.ow.ace;t.instance=n.edit(o),"rtl"===e.o.direction&&(t.instance.setOption("rtlText",!0),t.instance.setOption("rtl",!0)),t.instance.setTheme(e.o.sourceEditorNativeOptions.theme),t.instance.renderer.setShowGutter(e.o.sourceEditorNativeOptions.showGutter),t.instance.getSession().setMode(e.o.sourceEditorNativeOptions.mode),t.instance.setHighlightActiveLine(e.o.sourceEditorNativeOptions.highlightActiveLine),t.instance.getSession().setUseWrapMode(!0),t.instance.setOption("indentedSoftWrap",!1),t.instance.setOption("wrap",e.o.sourceEditorNativeOptions.wrap),t.instance.getSession().setUseWorker(!1),t.instance.$blockScrolling=1/0,t.instance.on("change",t.toWYSIWYG),t.instance.on("focus",t.proxyOnFocus),t.instance.on("mousedown",t.proxyOnMouseDown),t.instance.on("blur",t.proxyOnBlur),e.getRealMode()!==Qt&&t.setValue(t.getValue());var r=t.j.async.throttle((function(){if(!e.isInDestruct&&e.getMode()!==Qt){var o=t.instance.isFocused();"auto"!==e.o.height?t.instance.setOption("maxLines",e.workplace.offsetHeight/t.instance.renderer.lineHeight):t.instance.setOption("maxLines",1/0),t.instance.resize(),o&&t.focus()}}),2*t.j.defaultTimeout);e.e.on(e,"resize",r).on("afterResize afterSetMode",r),r(),t.onReady()}};e.e.on("afterSetMode",(function(){e.getRealMode()!==$t&&e.getMode()!==eo||(t.fromWYSIWYG(),o())})),o(),this.aceExists()||Fn(e,e.o.sourceEditorCDNUrlsJS).then((function(){e.isInDestruct||o()})).catch((function(){return null}))}},{key:"destruct",value:function(){var e,t;this.instance.off("change",this.toWYSIWYG),this.instance.off("focus",this.proxyOnFocus),this.instance.off("mousedown",this.proxyOnMouseDown),this.instance.destroy(),null===(t=null===(e=this.j)||void 0===e?void 0:e.events)||void 0===t||t.off("aceInited.source")}},{key:"setValue",value:function(e){if(!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){var t=this.j.e.fire("beautifyHTML",e);Io(t)&&(e=t)}this.instance.setValue(e),this.instance.clearSelection()}},{key:"getValue",value:function(){return this.instance.getValue()}},{key:"setReadOnly",value:function(e){this.instance.setReadOnly(e)}},{key:"isFocused",get:function(){return this.instance.isFocused()}},{key:"focus",value:function(){this.instance.container.focus(),this.instance.focus()}},{key:"blur",value:function(){this.instance.blur()}},{key:"getSelectionStart",value:function(){var e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.start.row,e.start.column)}},{key:"getSelectionEnd",value:function(){var e=this.instance.selection.getRange();return this.getIndexByRowColumn(e.end.row,e.end.column)}},{key:"selectAll",value:function(){this.instance.selection.selectAll()}},{key:"insertRaw",value:function(e){var t=this.instance.selection.getCursor(),o=this.instance.session.insert(t,e);this.instance.selection.setRange({start:t,end:o},!1)}},{key:"setSelectionRange",value:function(e,t){this.setSelectionRangeIndices(e,t)}},{key:"setPlaceHolder",value:function(e){}},{key:"replaceUndoManager",value:function(){var e=this.jodit.history;this.instance.commands.addCommand({name:"Undo",bindKey:{win:"Ctrl-Z",mac:"Command-Z"},exec:function(){e.undo()}}),this.instance.commands.addCommand({name:"Redo",bindKey:{win:"Ctrl-Shift-Z",mac:"Command-Shift-Z"},exec:function(){e.redo()}})}}])&&ox(o.prototype,n),t}(tx);function lx(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sx(e){return sx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sx(e)}function cx(e,t){return cx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},cx(e,t)}function ux(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ux=function(){return!!e})()}var dx=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=sx(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,ux()?Reflect.construct(t,o||[],sx(e).constructor):t.apply(e,o))}(this,t,arguments)).autosize=e.j.async.debounce((function(){e.instance.style.height="auto",e.instance.style.height=e.instance.scrollHeight+"px"}),e.j.defaultTimeout),e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cx(e,t)}(t,e),o=t,n=[{key:"init",value:function(e){var t=this;this.instance=e.c.element("textarea",{class:"jodit-source__mirror",dir:"rtl"===e.o.direction?"rtl":void 0}),this.container.appendChild(this.instance),e.e.on(this.instance,"mousedown keydown touchstart input",e.async.debounce(this.toWYSIWYG,e.defaultTimeout)).on("setMinHeight.source",(function(e){In(t.instance,"minHeight",e)})).on(this.instance,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.instance,"mousedown focus",(function(t){e.e.fire(t.type,t)})),this.autosize(),this.onReady()}},{key:"destruct",value:function(){ui.safeRemove(this.instance)}},{key:"getValue",value:function(){return this.instance.value}},{key:"setValue",value:function(e){this.instance.value=e}},{key:"insertRaw",value:function(e){var t=this.getValue();if(this.getSelectionStart()>=0){var o=this.getSelectionStart(),n=this.getSelectionEnd();this.setValue(t.substring(0,o)+e+t.substring(n,t.length))}else this.setValue(t+e)}},{key:"getSelectionStart",value:function(){return this.instance.selectionStart}},{key:"getSelectionEnd",value:function(){return this.instance.selectionEnd}},{key:"setSelectionRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;this.instance.setSelectionRange(e,t)}},{key:"isFocused",get:function(){return this.instance===this.j.od.activeElement}},{key:"focus",value:function(){this.instance.focus()}},{key:"blur",value:function(){this.instance.blur()}},{key:"setPlaceHolder",value:function(e){this.instance.setAttribute("placeholder",e)}},{key:"setReadOnly",value:function(e){e?this.instance.setAttribute("readonly","true"):this.instance.removeAttribute("readonly")}},{key:"selectAll",value:function(){this.instance.select()}},{key:"replaceUndoManager",value:function(){var e=this,t=this.jodit.history;this.j.e.on(this.instance,"keydown",(function(o){if((o.ctrlKey||o.metaKey)&&"z"===o.key)return o.shiftKey?t.redo():t.undo(),e.setSelectionRange(e.getValue().length),!1}))}}],n&&lx(o.prototype,n),t}(tx);function fx(e,t,o,n,r){var i;if(Oo(e))i=e(t);else switch(e){case"ace":if(!t.o.shadowRoot){i=new ax(t,o,n,r);break}default:i=new dx(t,o,n,r)}return i.init(t),i.onReadyAlways((function(){i.setReadOnly(t.o.readonly)})),i}function px(e,t,o){return px=yx()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&gx(r,o.prototype),r},px.apply(null,arguments)}function hx(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function vx(e){return vx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vx(e)}function gx(e,t){return gx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gx(e,t)}function mx(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function bx(e){var t="function"==typeof Map?new Map:void 0;return bx=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return px(e,arguments,vx(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),gx(n,e)},bx(e)}function yx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(yx=function(){return!!e})()}var _x=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":mx(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},jx=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=vx(t),function(e,t){return!t||"object"!==mx(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,yx()?Reflect.construct(t,o||[],vx(e).constructor):t.apply(e,o))}(this,t,arguments)).buttons=[{name:"source",group:"source"}],e.__lock=!1,e.__oldMirrorValue="",e.tempMarkerStart="{start-jodit-selection}",e.tempMarkerStartReg=/{start-jodit-selection}/g,e.tempMarkerEnd="{end-jodit-selection}",e.tempMarkerEndReg=/{end-jodit-selection}/g,e.getSelectionStart=function(){var t,o;return null!==(o=null===(t=e.sourceEditor)||void 0===t?void 0:t.getSelectionStart())&&void 0!==o?o:0},e.getSelectionEnd=function(){var t,o;return null!==(o=null===(t=e.sourceEditor)||void 0===t?void 0:t.getSelectionEnd())&&void 0!==o?o:0},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gx(e,t)}(t,e),o=t,n=[{key:"onInsertHTML",value:function(e){var t;if(!this.j.o.readonly&&!this.j.isEditorMode())return null===(t=this.sourceEditor)||void 0===t||t.insertRaw(e),this.toWYSIWYG(),!1}},{key:"fromWYSIWYG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.__lock||!0===e){this.__lock=!0;var t=this.j.getEditorValue(!1,So);t!==this.getMirrorValue()&&this.setMirrorValue(t),this.__lock=!1}}},{key:"toWYSIWYG",value:function(){if(!this.__lock){var e=this.getMirrorValue();e!==this.__oldMirrorValue&&(this.__lock=!0,this.j.value=e,this.__lock=!1,this.__oldMirrorValue=e)}}},{key:"getNormalPosition",value:function(e,t){for(t=t.replace(/<(script|style|iframe)[^>]*>[^]*?<\/\1>/im,(function(e){for(var t="",o=0;o<e.length;o+=1)t+=bt;return t}));e>0&&t[e]===bt;)e--;for(var o=e;o>0;){if("<"===t[--o]&&void 0!==t[o+1]&&t[o+1].match(/[\w/]+/i))return o;if(">"===t[o])return e}return e}},{key:"clnInv",value:function(e){return e.replace(_t(),"")}},{key:"onSelectAll",value:function(e){var t;if("selectall"===e.toLowerCase()&&this.j.getRealMode()===$t)return null===(t=this.sourceEditor)||void 0===t||t.selectAll(),!1}},{key:"getMirrorValue",value:function(){var e;return(null===(e=this.sourceEditor)||void 0===e?void 0:e.getValue())||""}},{key:"setMirrorValue",value:function(e){var t;null===(t=this.sourceEditor)||void 0===t||t.setValue(e)}},{key:"setFocusToMirror",value:function(){var e;null===(e=this.sourceEditor)||void 0===e||e.focus()}},{key:"saveSelection",value:function(){if(this.j.getRealMode()===Qt)this.j.s.save(),this.j.synchronizeValues(),this.fromWYSIWYG(!0);else{if(this.j.o.editHTMLDocumentMode)return;var e=this.getMirrorValue();if(this.getSelectionStart()===this.getSelectionEnd()){var t=this.j.s.marker(!0),o=this.getNormalPosition(this.getSelectionStart(),this.getMirrorValue());this.setMirrorValue(e.substring(0,o)+this.clnInv(t.outerHTML)+e.substring(o))}else{var n=this.j.s.marker(!0),r=this.j.s.marker(!1),i=this.getNormalPosition(this.getSelectionStart(),e),a=this.getNormalPosition(this.getSelectionEnd(),e);this.setMirrorValue(e.slice(0,i)+this.clnInv(n.outerHTML)+e.slice(i,a)+this.clnInv(r.outerHTML)+e.slice(a))}this.toWYSIWYG()}}},{key:"removeSelection",value:function(){if(this.j.getRealMode()===Qt)return this.__lock=!0,this.j.s.restore(),void(this.__lock=!1);var e=this.getMirrorValue(),t=0,o=0;try{if(e=e.replace(/<span[^>]+data-jodit-selection_marker=(["'])start\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerStart).replace(/<span[^>]+data-jodit-selection_marker=(["'])end\1[^>]*>[<>]*?<\/span>/gim,this.tempMarkerEnd),!this.j.o.editHTMLDocumentMode&&this.j.o.beautifyHTML){var n=this.j.e.fire("beautifyHTML",e);Io(n)&&(e=n)}if(o=t=e.indexOf(this.tempMarkerStart),e=e.replace(this.tempMarkerStartReg,""),-1!==t){var r=e.indexOf(this.tempMarkerEnd);-1!==r&&(o=r)}e=e.replace(this.tempMarkerEndReg,"")}finally{e=e.replace(this.tempMarkerEndReg,"").replace(this.tempMarkerStartReg,"")}this.setMirrorValue(e),this.setMirrorSelectionRange(t,o),this.toWYSIWYG(),this.setFocusToMirror()}},{key:"setMirrorSelectionRange",value:function(e,t){var o;null===(o=this.sourceEditor)||void 0===o||o.setSelectionRange(e,t)}},{key:"onReadonlyReact",value:function(){var e;null===(e=this.sourceEditor)||void 0===e||e.setReadOnly(this.j.o.readonly)}},{key:"afterInit",value:function(e){var t=this;if(this.mirrorContainer=e.c.div("jodit-source"),e.workplace.appendChild(this.mirrorContainer),e.e.on("afterAddPlace changePlace afterInit",(function(){e.workplace.appendChild(t.mirrorContainer)})),this.sourceEditor=fx("area",e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG),e.e.on(e.ow,"keydown",(function(e){var o;e.key===Dt&&(null===(o=t.sourceEditor)||void 0===o?void 0:o.isFocused)&&t.sourceEditor.blur()})),this.onReadonlyReact(),e.e.on("placeholder.source",(function(e){var o;null===(o=t.sourceEditor)||void 0===o||o.setPlaceHolder(e)})).on("change.source",this.syncValueFromWYSIWYG).on("beautifyHTML",(function(e){return e})),e.o.beautifyHTML){var o=function(){var t;if(e.isInDestruct)return!1;var o=e.ow.html_beautify;return!(!o||e.isInDestruct||(null===(t=e.events)||void 0===t||t.off("beautifyHTML").on("beautifyHTML",(function(e){return o(e)})),0))};o()||Fn(e,e.o.beautifyHTMLCDNUrlsJS).then(o,(function(){return null}))}this.syncValueFromWYSIWYG(!0),this.initSourceEditor(e)}},{key:"syncValueFromWYSIWYG",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.j;t.getMode()!==eo&&t.getMode()!==$t||this.fromWYSIWYG(e)}},{key:"initSourceEditor",value:function(e){var t,o=this;if("area"!==e.o.sourceEditor){var n=fx(e.o.sourceEditor,e,this.mirrorContainer,this.toWYSIWYG,this.fromWYSIWYG);n.onReadyAlways((function(){var t,r;null===(t=o.sourceEditor)||void 0===t||t.destruct(),o.sourceEditor=n,o.syncValueFromWYSIWYG(!0),null===(r=e.events)||void 0===r||r.fire("sourceEditorReady",e)}))}else null===(t=this.sourceEditor)||void 0===t||t.onReadyAlways((function(){var t;o.syncValueFromWYSIWYG(!0),null===(t=e.events)||void 0===t||t.fire("sourceEditorReady",e)}))}},{key:"beforeDestruct",value:function(){this.sourceEditor&&(this.sourceEditor.destruct(),delete this.sourceEditor),ui.safeRemove(this.mirrorContainer)}}],n&&hx(o.prototype,n),t}(bx(Hp));_x([Sa(":insertHTML.source")],jx.prototype,"onInsertHTML",null),_x([Co],jx.prototype,"fromWYSIWYG",null),_x([Co],jx.prototype,"toWYSIWYG",null),_x([Co],jx.prototype,"getNormalPosition",null),_x([Sa(":beforeCommand.source")],jx.prototype,"onSelectAll",null),_x([Sa(":beforeSetMode.source")],jx.prototype,"saveSelection",null),_x([Sa(":afterSetMode.source")],jx.prototype,"removeSelection",null),_x([Co],jx.prototype,"setMirrorSelectionRange",null),_x([Sa(":readonly.source")],jx.prototype,"onReadonlyReact",null),_x([Co],jx.prototype,"syncValueFromWYSIWYG",null),Ra.add("source",jx);const wx='<svg viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"> <path d="M24.89 32h4.18L18.86 6h-3.71L4.93 32h4.18l2.25-6h11.29l2.24 6zM12.86 22L17 10.95 21.14 22h-8.28zm30.31 1.17L27 39.34 19.66 32l-2.83 2.83L27 45l19-19-2.83-2.83z"/> </svg> ';tr.prototype.spellcheck=!1,kl.set("spellcheck",wx),tr.prototype.controls.spellcheck={isActive:function(e){return e.o.spellcheck},icon:wx,name:"spellcheck",command:"toggleSpellcheck",tooltip:"Spellcheck"};const kx={Spellcheck:"التدقيق الإملائي"},Sx={Spellcheck:"Kontrola pravopisu"},xx={Spellcheck:"Rechtschreibprüfung"},Ox={Spellcheck:"Corrección ortográfica"},Cx={Spellcheck:"غلطیابی املایی"},zx={Spellcheck:"Oikeinkirjoituksen tarkistus"},Ex={Spellcheck:"Vérification Orthographique"},Tx={Spellcheck:"בדיקת איות"},Ix={Spellcheck:"Helyesírás-ellenőrzés"},Px={Spellcheck:"Spellchecking"},Rx={Spellcheck:"Controllo ortografico"},Ax={Spellcheck:"スペルチェック"},Lx={Spellcheck:"맞춤법 검사"},Mx={Spellcheck:"Дүрмийн алдаа шалгах"},Bx={Spellcheck:"Spellingcontrole"},Dx={Spellcheck:"Stavekontroll"},Nx={Spellcheck:"Sprawdzanie pisowni"},Hx={Spellcheck:"Verificação ortográfica"},Fx={Spellcheck:"Проверка орфографии"},qx={Spellcheck:"Yazım denetimi"},Vx={Spellcheck:"Перевірка орфографії"},Wx={Spellcheck:"拼写检查"},Ux={Spellcheck:"拼字檢查"};function Yx(e,t,o){return Yx=Qx()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&Jx(r,o.prototype),r},Yx.apply(null,arguments)}function Kx(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Gx(e){return Gx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gx(e)}function Jx(e,t){return Jx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jx(e,t)}function Xx(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function Zx(e){var t="function"==typeof Map?new Map:void 0;return Zx=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return Yx(e,arguments,Gx(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Jx(n,e)},Zx(e)}function Qx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qx=function(){return!!e})()}var $x=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=Gx(t),function(e,t){return!t||"object"!==Xx(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,Qx()?Reflect.construct(t,o||[],Gx(e).constructor):t.apply(e,o))}(this,t,[e])).buttons=[{group:"state",name:"spellcheck"}],La(le),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jx(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){var t=this;e.e.on("afterInit afterAddPlace prepareWYSIWYGEditor",this.toggleSpellcheck),this.toggleSpellcheck(),e.registerCommand("toggleSpellcheck",(function(){t.jodit.o.spellcheck=!t.jodit.o.spellcheck,t.toggleSpellcheck(),t.j.e.fire("updateToolbar")}))}},{key:"toggleSpellcheck",value:function(){Xn(this.jodit.editor,"spellcheck",this.jodit.o.spellcheck)}},{key:"beforeDestruct",value:function(e){}}])&&Kx(o.prototype,n),t}(Zx(Hp));function eO(e,t,o){return eO=aO()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&nO(r,o.prototype),r},eO.apply(null,arguments)}function tO(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function oO(e){return oO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oO(e)}function nO(e,t){return nO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nO(e,t)}function rO(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function iO(e){var t="function"==typeof Map?new Map:void 0;return iO=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return eO(e,arguments,oO(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),nO(n,e)},iO(e)}function aO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(aO=function(){return!!e})()}(function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":Xx(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)})([Co],$x.prototype,"toggleSpellcheck",null),Ra.add("spellcheck",$x),tr.prototype.toolbarSticky=!0,tr.prototype.toolbarDisableStickyForMobile=!0,tr.prototype.toolbarStickyOffset=0;var lO=!dt&&to,sO=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=oO(t),function(e,t){return!t||"object"!==rO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,aO()?Reflect.construct(t,o||[],oO(e).constructor):t.apply(e,o))}(this,t,arguments)).__isToolbarStuck=!1,e.__createDummy=function(t){e.__dummyBox=e.j.c.div(),e.__dummyBox.classList.add("jodit_sticky-dummy_toolbar"),e.j.container.insertBefore(e.__dummyBox,t)},e.addSticky=function(t){e.__isToolbarStuck||(lO&&!e.__dummyBox&&e.__createDummy(t),e.j.container.classList.add("jodit_sticky"),e.__isToolbarStuck=!0),In(t,{top:e.j.o.toolbarStickyOffset||null,width:e.j.container.offsetWidth-2}),e.__dummyBox&&In(e.__dummyBox,{height:t.offsetHeight})},e.removeSticky=function(t){e.__isToolbarStuck&&(In(t,{width:"",top:""}),e.j.container.classList.remove("jodit_sticky"),e.__isToolbarStuck=!1)},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nO(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){var t=this;e.e.on(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).on("getStickyState.sticky",(function(){return t.__isToolbarStuck}))}},{key:"__onScroll",value:function(){var e=this.jodit;if(e.o.toolbarSticky&&e.o.toolbar){var t=e.ow.pageYOffset||e.od.documentElement&&e.od.documentElement.scrollTop||0,o=Qi(e.container,e,e.od,!0),n=e.getMode()===Qt&&t+e.o.toolbarStickyOffset>o.top&&t+e.o.toolbarStickyOffset<o.top+o.height&&!(e.o.toolbarDisableStickyForMobile&&this.__isMobile());if(this.__isToolbarStuck!==n){var r=e.toolbarContainer;r&&(n?this.addSticky(r):this.removeSticky(r)),e.e.fire("toggleSticky",n)}}}},{key:"__isMobile",value:function(){var e=this.j;return e&&e.options&&e.container&&e.options.sizeSM>=e.container.offsetWidth}},{key:"beforeDestruct",value:function(e){ui.safeRemove(this.__dummyBox),e.e.off(e.ow,"scroll.sticky wheel.sticky mousewheel.sticky resize.sticky",this.__onScroll).off(".sticky")}}])&&tO(o.prototype,n),t}(iO(Hp));(function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":rO(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);i>3&&a&&Object.defineProperty(t,o,a)})([Za()],sO.prototype,"__onScroll",null),Ra.add("sticky",sO),tr.prototype.usePopupForSpecialCharacters=!1,tr.prototype.specialCharacters=["!",""","#","$","%","&","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","€","‘","’","“","”","–","—","¡","¢","£","¤","¥","¦","§","¨","©","ª","«","»","¬","®","¯","°","²","³","´","µ","¶","·","¸","¹","º","¼","½","¾","¿","À","Á","Â","Ã","Ä","Å","Æ","Ç","È","É","Ê","Ë","Ì","Í","Î","Ï","Ð","Ñ","Ò","Ó","Ô","Õ","Ö","×","Ø","Ù","Ú","Û","Ü","Ý","Þ","ß","à","á","â","ã","ä","å","æ","ç","è","é","ê","ë","ì","í","î","ï","ð","ñ","ò","ó","ô","õ","ö","÷","ø","ù","ú","û","ü","ý","þ","ÿ","Œ","œ","Ŵ","Ŷ","ŵ","ŷ","‚","‛","„","…","™","►","•","→","⇒","⇔","♦","≈"],kl.set("symbols",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="m240.443652,220.45085l-47.410809,0l0,-10.342138c13.89973,-8.43655 25.752896,-19.844464 34.686646,-33.469923c11.445525,-17.455846 17.496072,-37.709239 17.496072,-58.570077c0,-59.589197 -49.208516,-108.068714 -109.693558,-108.068714s-109.69263,48.479517 -109.69263,108.069628c0,20.860839 6.050547,41.113316 17.497001,58.570077c8.93375,13.625459 20.787845,25.032458 34.686646,33.469008l0,10.342138l-47.412666,0c-10.256959,0 -18.571354,8.191376 -18.571354,18.296574c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.98402,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574l0,-39.496814c0,-7.073455 -4.137698,-13.51202 -10.626529,-16.537358c-25.24497,-11.772016 -41.557118,-37.145704 -41.557118,-64.643625c0,-39.411735 32.545369,-71.476481 72.549922,-71.476481c40.004553,0 72.550851,32.064746 72.550851,71.476481c0,27.497006 -16.312149,52.87161 -41.557118,64.643625c-6.487902,3.026253 -10.6256,9.464818 -10.6256,16.537358l0,39.496814c0,10.105198 8.314395,18.296574 18.571354,18.296574l65.982163,0c10.256959,0 18.571354,-8.191376 18.571354,-18.296574c0,-10.105198 -8.314395,-18.296574 -18.571354,-18.296574z"/> </svg> '),tr.prototype.controls.symbols={hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:function(e,t,o){var n=e.e.fire("generateSpecialCharactersTable.symbols");if(n){if(e.o.usePopupForSpecialCharacters){var r=e.c.div();return r.classList.add("jodit-symbols"),r.appendChild(n),e.e.on(n,"close_dialog",o),r}e.alert(n,"Select Special Character",void 0,"jodit-symbols").bindDestruct(e);var i=n.querySelector("a");i&&i.focus()}}};const cO={symbols:"رمز"},uO={symbols:"symbol"},dO={symbols:"Symbol"},fO={symbols:"Símbolo"},pO={symbols:"سمبل"},hO={symbols:"Symbolit"},vO={symbols:"caractère"},gO={symbols:"תו מיוחד"},mO={symbols:"Szimbólum"},bO={symbols:"simbol"},yO={symbols:"Simbolo"},_O={symbols:"symbol"},jO={symbols:"기호"},wO={symbols:"тэмдэгт"},kO={symbols:"symbool"},SO={symbols:"symbol"},xO={symbols:"Símbolo"},OO={symbols:"символ"},CO={symbols:"Sembol"},zO={symbols:"символ"},EO={symbols:"符号"},TO={symbols:"符號"};function IO(e,t,o){return IO=MO()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&AO(r,o.prototype),r},IO.apply(null,arguments)}function PO(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function RO(e){return RO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},RO(e)}function AO(e,t){return AO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},AO(e,t)}function LO(e){var t="function"==typeof Map?new Map:void 0;return LO=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return IO(e,arguments,RO(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),AO(n,e)},LO(e)}function MO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(MO=function(){return!!e})()}var BO=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=RO(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,MO()?Reflect.construct(t,o||[],RO(e).constructor):t.apply(e,o))}(this,t,[e])).buttons=[{name:"symbols",group:"insert"}],o.__countInRow=17,La(Te),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&AO(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){var t=this;e.e.on("generateSpecialCharactersTable.symbols",(function(){for(var o=e.c.fromHTML('<div class="jodit-symbols__container">\n\t\t\t\t\t\t<div class="jodit-symbols__container_table">\n\t\t\t\t\t\t\t<table class="jodit-symbols__table"><tbody></tbody></table>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="jodit-symbols__container_preview">\n\t\t\t\t\t\t\t<div class="jodit-symbols__preview"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>'),n=o.querySelector(".jodit-symbols__preview"),r=o.querySelector("table").tBodies[0],i=[],a=0;a<e.o.specialCharacters.length;){for(var l=e.c.element("tr"),s=0;s<t.__countInRow&&a<e.o.specialCharacters.length;s+=1,a+=1){var c=e.c.element("td"),u=e.c.fromHTML('<a\n\t\t\t\t\t\t\t\t\tdata-index="'.concat(a,'"\n\t\t\t\t\t\t\t\t\tdata-index-j="').concat(s,'"\n\t\t\t\t\t\t\t\t\trole="option"\n\t\t\t\t\t\t\t\t\ttabindex="-1"\n\t\t\t\t\t\t\t>').concat(e.o.specialCharacters[a],"</a>"));i.push(u),c.appendChild(u),l.appendChild(c)}r.appendChild(l)}var d=t;return e.e.on(i,"focus",(function(){n.innerHTML=this.innerHTML})).on(i,"mousedown",(function(t){ui.isTag(this,"a")&&(e.s.focus(),e.s.insertHTML(this.innerHTML),(null==t?void 0:t.shiftKey)||e.e.fire(this,"close_dialog"),t&&t.preventDefault(),t&&t.stopImmediatePropagation())})).on(i,"mouseenter",(function(){ui.isTag(this,"a")&&this.focus()})).on(i,"keydown",(function(t){var o=t.target;if(ui.isTag(o,"a")){var n,r=parseInt(Xn(o,"-index")||"0",10),a=parseInt(Xn(o,"data-index-j")||"0",10);switch(t.key){case Ft:case Vt:n=t.key===Ft?r-d.__countInRow:r+d.__countInRow,void 0===i[n]&&(n=t.key===Ft?Math.floor(i.length/d.__countInRow)*d.__countInRow+a:a)>i.length-1&&(n-=d.__countInRow),i[n]&&i[n].focus();break;case qt:case Ht:n=t.key===Ht?r-1:r+1,void 0===i[n]&&(n=t.key===Ht?i.length-1:0),i[n]&&i[n].focus();break;case Bt:e.e.fire(o,"mousedown"),t.stopImmediatePropagation(),t.preventDefault()}}})),o}))}},{key:"beforeDestruct",value:function(e){e.e.off("generateSpecialCharactersTable.symbols")}}],n&&PO(o.prototype,n),t}(LO(Hp));function DO(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function NO(e){return NO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},NO(e)}function HO(e,t){return HO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},HO(e,t)}function FO(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function qO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(qO=function(){return!!e})()}Ra.add("symbols",BO),tr.prototype.aiAssistant={aiCommonPrefixPrompt:"",aiCommonSuffixPrompt:"",aiImproveWritingPrompt:"It needs to be refined for better clarity, coherence, and overall quality. Please enhance the writing style while keeping the original meaning and language intact.",aiMakeShorterPrompt:"Please condense this content to make it more concise, while preserving the key messages, language and information.",aiMakeLongerPrompt:"Expand on this content to provide more detail, depth, and richness, without diverging from the original message and language.",aiSimplifyLanguagePrompt:"The language used here needs to be simplified for easier understanding, without altering the core information and the original language.",aiSummarizePrompt:"Provide a brief summary of this content, capturing the essential points in a concise manner. Preserve the original language and meaning.",aiContinuePrompt:"Continue the narrative or discussion from this content seamlessly, maintaining the same language, tone and style.",aiChangeToneProfessionalPrompt:"Adjust the tone to be professional, suitable for a formal business or academic setting, while retaining the original message and language.",aiChangeToneFriendlyPrompt:"It needs to be rewritten in a friendly tone while maintaining the original message and language. Please modify this content to be warm, approachable, and engaging.",aiChangeToneFormalPrompt:"Transform this content to have a formal tone, appropriate for official or serious contexts, without changing the main points and language.",aiChangeToneCasualPrompt:"Revise this content to have a casual, relaxed tone, making it feel more personal and less formal, without changing the original meaning and language.",aiChangeToneDirectPrompt:"Make the tone more direct, with straightforward language and a clear, assertive approach, without changing the original meaning and language.",aiChangeToneConfidentPrompt:"Infuse this content with a confident tone, showcasing assurance and decisiveness, without changing the original meaning and language.",aiChangeStyleBusinessPrompt:"Rewrite this content with a business-oriented style, focusing on clarity, efficiency, and professionalism, without changing the original meaning and language.",aiChangeStyleLegalPrompt:"Adapt this content to a legal style, incorporating appropriate terminology and formality typical of legal documents, without changing the original meaning and language.",aiChangeStyleJournalismPrompt:"Convert this content into a journalistic style, emphasizing factual accuracy, objectivity, and informative reporting, without changing the original meaning and language.",aiChangeStylePoeticPrompt:"Recreate this content with a poetic style, using expressive language, rhythm, and imagery to convey the message, without changing the original meaning and language.",aiTranslateToSpanishPrompt:"Translate this content into Spanish, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToFrenchPrompt:"Translate this content into French, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToGermanPrompt:"Translate this content into German, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToItalianPrompt:"Translate this content into Italian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToPortuguesePrompt:"Translate this content into Portuguese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToEnglishPrompt:"Translate this content into English, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToChinesePrompt:"Translate this content into Chinese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToJapanesePrompt:"Translate this content into Japanese, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToKoreanPrompt:"Translate this content into Korean, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToRussianPrompt:"Translate this content into Russian, ensuring the translation is accurate and maintains the original meaning.",aiTranslateToArabicPrompt:"Translate this content into Arabic, ensuring the translation is accurate and maintains the original meaning."},kl.set("ai-assistant",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 24 24"> <g transform="scale(1.2 1.2) translate(-2 -0.5)"> <path d="M 22,12.5 A 1.49995,1.49995 0 0 0 20.50006,11 H 20 V 10 A 3,3 0 0 0 17,7 H 13 V 5.7226 a 2,2 0 1 0 -2,0 V 7 H 7 a 3,3 0 0 0 -3,3 v 1 H 3.49994 a 1.5,1.5 0 0 0 0,3 H 4 v 1 A 3.00128,3.00128 0 0 0 6.20251,17.89282 1.03113,1.03113 0 0 1 7,18.86975 v 0.716 a 0.99928,0.99928 0 0 0 1.00726,1.002 0.9792,0.9792 0 0 0 0.69983,-0.29486 l 2,-2 A 1,1 0 0 1 11.41425,18 H 17 a 3,3 0 0 0 3,-3 v -1 h 0.50006 A 1.49995,1.49995 0 0 0 22,12.5 Z M 19,15 a 2.00226,2.00226 0 0 1 -2,2 H 11.41425 A 1.987,1.987 0 0 0 10,17.58575 l -2,2 v -0.716 A 2.02082,2.02082 0 0 0 6.46771,16.92865 2.00439,2.00439 0 0 1 5,15 V 10 A 2.00226,2.00226 0 0 1 7,8 h 10 a 2.00222,2.00222 0 0 1 2,2 z M 10,12.5 A 1.5,1.5 0 1 1 8.5,11 1.5,1.5 0 0 1 10,12.5 Z m 7,0 A 1.5,1.5 0 1 1 15.5,11 1.5,1.5 0 0 1 17,12.5 Z"/> </g> </svg> '),kl.set("ai-commands",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 270 270"> <path d="M 255.9537,58.150081 237.69527,40.997278 c -1.49414,-1.375593 -3.43653,-2.077427 -5.37891,-2.077427 -1.94239,0 -3.88478,0.701834 -5.37892,2.077427 L 29.919751,226.1128 c -2.988286,2.77926 -2.988286,7.32714 0,10.13447 L 48.148295,253.372 c 1.46426,1.37559 3.406646,2.1055 5.378915,2.1055 1.972268,0 3.884771,-0.72991 5.378914,-2.1055 L 221.34935,100.73732 255.9537,68.284552 c 2.9584,-2.807333 2.9584,-7.355212 0,-10.134471 z M 251.17244,63.79282 221.34935,91.781927 201.89561,73.506191 231.68882,45.48901 c 0.20918,-0.140367 0.38847,-0.224587 0.62754,-0.224587 0.23906,0 0.44824,0.08422 0.59765,0.224587 l 18.25843,17.152803 c 0,0 0.23906,0.33688 0.23906,0.561467 0,0.224586 -0.0896,0.4211 -0.23906,0.58954 z" style="stroke-width:2.8964;stroke-opacity:1" /> <path d="m 48.626421,116.87948 10.578532,23.10435 c 0.83672,1.82477 3.615826,1.85284 4.452546,0 l 10.937126,-23.52545 c 2.629692,-5.69888 7.470715,-10.24676 13.536935,-12.71722 l 25.07172,-10.274833 c 1.94239,-0.786053 1.94239,-3.396873 0,-4.182926 L 88.13156,79.008563 C 82.06534,76.53811 77.224317,71.990231 74.594625,66.291346 L 63.657499,42.737824 c -0.83672,-1.824766 -3.615826,-1.824766 -4.452546,0 L 48.267826,66.291346 C 45.638135,71.990231 40.797112,76.53811 34.730891,79.008563 L 9.6292894,89.311474 c -1.9423859,0.786054 -1.9423859,3.3688 0,4.182926 l 25.5498446,10.61172 c 6.036338,2.49852 10.847478,7.07448 13.477169,12.77336 z" style="stroke-width:2.8964;fill-opacity:1;stroke-opacity:1" /> <path d="m 111.79878,33.136746 13.56682,5.642739 c 3.19747,1.319446 5.76739,3.761826 7.14201,6.793745 l 5.61797,12.268044 c 0.44825,0.982567 1.91251,0.982567 2.36075,0 l 5.79727,-12.492631 c 1.4045,-3.031919 3.97442,-5.446225 7.20177,-6.765672 l 13.29788,-5.446225 c 1.0459,-0.4211 1.0459,-1.796693 0,-2.217793 l -13.29788,-5.446225 c -3.22735,-1.319447 -5.79727,-3.733753 -7.20177,-6.765672 L 140.48633,6.2144248 c -0.44824,-0.9825664 -1.9125,-0.9825664 -2.36075,0 l -5.79727,12.4926312 c -1.4045,3.031919 -3.97442,5.446225 -7.20177,6.765672 l -13.32776,5.474298 c -1.01601,0.4211 -1.0459,1.796693 0,2.217793 z" style="stroke-width:2.8964;fill-opacity:1" /> <path d="m 233.09331,192.98627 -14.13459,-5.7831 c -3.40665,-1.40367 -6.12599,-3.95834 -7.62013,-7.1587 l -6.15587,-13.27868 c -0.47813,-1.03872 -2.03203,-1.03872 -2.51016,0 l -6.15587,13.27868 c -1.49414,3.20036 -4.21348,5.75503 -7.62013,7.1587 l -14.13459,5.81118 c -1.10567,0.44917 -1.10567,1.90898 0,2.35816 l 14.40354,5.97961 c 3.40664,1.40367 6.12598,3.98642 7.59024,7.21485 l 5.97658,13.02602 c 0.47812,1.03872 2.03203,1.03872 2.51016,0 l 6.15586,-13.25061 c 1.49415,-3.20036 4.21349,-5.75503 7.62013,-7.1587 l 14.1346,-5.7831 c 1.10566,-0.44917 1.10566,-1.90899 0,-2.35816 z" style="stroke-width:2.8964;stroke-opacity:1" /> </svg> '),tr.prototype.controls["ai-commands"]={isDisabled:function(e){return!e.o.aiAssistant.aiAssistantCallback},tooltip:"AI Commands",list:{aiImproveWritingPrompt:"Improve writing",aiMakeShorterPrompt:"Make shorter",aiMakeLongerPrompt:"Make longer",aiSimplifyLanguagePrompt:"Simplify language",aiSummarizePrompt:"Summarize",aiContinuePrompt:"Continue",aiChangeToneProfessionalPrompt:"Change tone to professional",aiChangeToneFriendlyPrompt:"Change tone to friendly",aiChangeToneFormalPrompt:"Change tone to formal",aiChangeToneCasualPrompt:"Change tone to casual",aiChangeToneDirectPrompt:"Change tone to direct",aiChangeToneConfidentPrompt:"Change tone to confident",aiChangeStyleBusinessPrompt:"Change style to business",aiChangeStyleLegalPrompt:"Change style to legal",aiChangeStyleJournalismPrompt:"Change style of journalism",aiChangeStylePoeticPrompt:"Change style to poetic",aiTranslateToSpanishPrompt:"Translate to Spanish",aiTranslateToFrenchPrompt:"Translate to French",aiTranslateToGermanPrompt:"Translate to German",aiTranslateToItalianPrompt:"Translate to Italian",aiTranslateToPortuguesePrompt:"Translate to Portuguese",aiTranslateToEnglishPrompt:"Translate to English",aiTranslateToChinesePrompt:"Translate to Chinese",aiTranslateToJapanesePrompt:"Translate to Japanese",aiTranslateToKoreanPrompt:"Translate to Korean",aiTranslateToRussianPrompt:"Translate to Russian",aiTranslateToArabicPrompt:"Translate to Arabic"},exec:function(e,t,o){var n=o.control;e.e.fire("generateAiAssistantForm.ai-assistant",n.name)}},tr.prototype.controls["ai-assistant"]={isDisabled:function(e){return!e.o.aiAssistant.aiAssistantCallback},hotkeys:["ctrl+a+i","cmd+a+i"],tooltip:"AI Assistant",exec:function(e,t,o){e.e.fire("generateAiAssistantForm.ai-assistant")}};var VO=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":FO(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},WO=function(e){function t(e,o){var n,r=o.onInsert,i=o.onInsertAfter;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=NO(t),function(e,t){return!t||"object"!==FO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,qO()?Reflect.construct(t,o||[],NO(e).constructor):t.apply(e,o))}(this,t,[e])).__aiResult="",n.__error=n.getElm("error"),n.__body=n.getElm("body"),n.__buttons=n.getElm("buttons"),n.__results=n.getElm("results"),n.__spinner=n.getElm("spinner"),n.__insertButton=Os(e,"","Insert","primary").onAction((function(){return r(n.__aiResult)})),n.__insertAfterButton=Os(e,"","Insert After","initial").onAction((function(){return i(n.__aiResult)}));var a=function(){n.__formAiAssistant.validate()&&(n.__formAiAssistant.submit(),n.__toggleInsertButton(!0),n.__toggleSubmitButton(!0))};n.__submitButton=Os(e,"ai-assistant","").onAction(a),n.__tryAgainButton=Os(e,"update","","initial").onAction(a),n.promptInput=new Mc(e,{name:"prompt",required:!0,label:"Prompt",placeholder:"Ask AI to improve generated text",className:n.getFullElName("prompt-row-input")});var l=new Xs(e,[n.__insertButton,n.__insertAfterButton,n.__tryAgainButton],{className:n.getFullElName("prompt-row")});return n.__formAiAssistant=new Oc(e,[new Xs(e,[n.promptInput,n.__submitButton],{className:n.getFullElName("prompt-row")})]).onSubmit((function(t){n.__error.textContent="",n.setMod("loading",!0),e.e.fire("invokeAiAssistant",t.prompt);var o=n.getFullElName("","hide","true");n.__results.classList.remove(o),n.__buttons.classList.remove(o),ui.detach(n.__results),n.__results.appendChild(n.__spinner),n.__insertButton.focus()})),n.__buttons.appendChild(l.container),n.__body.appendChild(n.__formAiAssistant.container),n.onChangePromptValue(),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&HO(e,t)}(t,e),o=t,n=[{key:"className",value:function(){return"UIAiAssistant"}},{key:"render",value:function(){return'<div>\n\t\t\t\t<div class="&__container">\n\t\t\t\t\t\t<div class="&__error"></div>\n\t\t\t\t\t\t<div class="&__body"></div>\n\t\t\t\t\t\t<div class="&__buttons &_hide_true"></div>\n\t\t\t\t\t\t<div class="&__results &_hide_true">\n\t\t\t\t\t\t\t\t<div class="&__spinner"></div>\n\t\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t</div>'}},{key:"setPrompt",value:function(e){if(e){var t=this.jodit,o=t.o.aiAssistant[e],n=t.o.aiAssistant,r=n.aiCommonPrefixPrompt,i=n.aiCommonSuffixPrompt;this.promptInput.value=[r,Io(o)?o:"",i].filter(Boolean).join(" "),this.__toggleInsertButton(!0),this.promptInput.value&&(this.__formAiAssistant.submit(),this.__toggleSubmitButton(!0))}this.promptInput.focus()}},{key:"onAiAssistentResponse",value:function(e){this.setMod("loading",!1),ui.detach(this.__results),this.__aiResult=e,this.__results.appendChild(this.jodit.c.fromHTML(e)),this.__toggleSubmitButton(!1),this.__toggleInsertButton(!1)}},{key:"onAiAssistentError",value:function(e){this.__aiResult="",this.setMod("loading",!1),this.__error.textContent=e,ui.detach(this.__results),this.__toggleSubmitButton(!1);var t=this.getFullElName("","hide","true");this.__results.classList.add(t),this.__toggleInsertButton(!0)}},{key:"onChangePromptValue",value:function(){this.__toggleSubmitButton(!this.promptInput.value)}},{key:"__toggleSubmitButton",value:function(e){this.__submitButton.state.disabled=e,this.__tryAgainButton.state.disabled=e}},{key:"__toggleInsertButton",value:function(e){this.__insertButton.state.disabled=e,this.__insertAfterButton.state.disabled=e}}],n&&DO(o.prototype,n),t}(Il);VO([Sa(":ai-assistant-response")],WO.prototype,"onAiAssistentResponse",null),VO([Sa(":ai-assistant-error")],WO.prototype,"onAiAssistentError",null),VO([Sa("promptInput:change")],WO.prototype,"onChangePromptValue",null),WO=VO([bi],WO);const UO={aiAssistant:"AI Assistant",aiCommands:"AI Commands","AI Assistant":"AI Assistant",Prompt:"Prompt","Ask AI to improve generated text":"Ask AI to improve generated text",Submit:"Submit"},YO={aiAssistant:"Asistente de IA",aiCommands:"Comandos de IA","AI Assistant":"Asistente de IA","AI Commands":"Comandos de IA","Improve writing":"Mejorar escritura","Make shorter":"Hacer más corto","Make longer":"Hacer más largo","Simplify language":"Simplificar lenguaje",Summarize:"Resumir",Continue:"Continuar",Prompt:"Solicitud",Insert:"Insertar","Insert After":"Insertar después","Try Again":"Intentar de nuevo","Ask AI to improve generated text":"Pida a la IA que mejore el texto generado","Change tone to professional":"Cambiar tono a profesional","Change tone to friendly":"Cambiar tono a amigable","Change tone to formal":"Cambiar tono a formal","Change tone to casual":"Cambiar tono a casual","Change tone to direct":"Cambiar tono a directo","Change tone to confident":"Cambiar tono a confiado","Change tone to business":"Cambiar tono a empresarial","Change style to legal":"Cambiar estilo a legal","Change style to journalism":"Cambiar estilo a periodístico","Change style to poetic":"Cambiar estilo a poético","Translate to Spanish":"Traducir al español","Translate to French":"Traducir al francés","Translate to German":"Traducir al alemán","Translate to Italian":"Traducir al italiano","Translate to Portuguese":"Traducir al portugués","Translate to English":"Traducir al inglés","Translate to Chinese":"Traducir al chino","Translate to Japanese":"Traducid al japonés","Translate to Korean":"Traducir al coreano","Translate to Russian":"Traducir al ruso","Translate to Arabic":"Traducir al árabe",Submit:"Enviar"};function KO(e,t,o,n,r,i,a){try{var l=e[i](a),s=l.value}catch(e){return void o(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function GO(e,t,o){return GO=eC()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&ZO(r,o.prototype),r},GO.apply(null,arguments)}function JO(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function XO(e){return XO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},XO(e)}function ZO(e,t){return ZO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ZO(e,t)}function QO(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function $O(e){var t="function"==typeof Map?new Map:void 0;return $O=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return GO(e,arguments,XO(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ZO(n,e)},$O(e)}function eC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(eC=function(){return!!e})()}var tC=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":QO(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},oC=function(e){function t(e){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=function(e,t,o){return t=XO(t),function(e,t){return!t||"object"!==QO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,eC()?Reflect.construct(t,o||[],XO(e).constructor):t.apply(e,o))}(this,t,[e])).buttons=[{name:"ai-commands",group:"insert"},{name:"ai-assistant",group:"insert"}],La(Re),o}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ZO(e,t)}(t,e),o=t,n=[{key:"__dialog",get:function(){return this.jodit.dlg({buttons:["fullsize","dialog.close"],closeOnClickOverlay:!0,closeOnEsc:!0,resizable:!1,draggable:!0,minHeight:160})}},{key:"__container",get:function(){var e=this.jodit,t=this.__dialog;return new WO(e,{onInsertAfter:function(o){e.s.focus(),e.s.setCursorAfter(e.s.current()),e.s.insertHTML(o),t.close()},onInsert:function(o){e.s.focus(),e.s.insertHTML(o),t.close()}})}},{key:"afterInit",value:function(){}},{key:"onGenerateAiAssistantForm",value:function(e){this.__dialog.open(this.__container,"AI Assistant"),this.__container.setPrompt(e)}},{key:"onInvokeAiAssistant",value:function(e){var t=this.jodit;t.s.focus();var o=t.s.html;t.async.promise(function(){var n,r=(n=function(n,r){var i,a;return function(e,t){var o,n,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,n&&(r=2&i[0]?n.return:i[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,i[1])).done)return r;switch(n=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{o=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,t.o.aiAssistant.aiAssistantCallback(e,o)];case 1:return i=l.sent(),n(i),[3,3];case 2:return a=l.sent(),r(a),[3,3];case 3:return[2]}}))},function(){var e=this,t=arguments;return new Promise((function(o,r){var i=n.apply(e,t);function a(e){KO(i,o,r,a,l,"next",e)}function l(e){KO(i,o,r,a,l,"throw",e)}a(void 0)}))});return function(e,t){return r.apply(this,arguments)}}()).then((function(e){t.e.fire("ai-assistant-response",e)})).catch((function(e){No(e)||(t.message.error(e.message),t.e.fire("ai-assistant-error",e.message))}))}},{key:"beforeDestruct",value:function(e){var t,o;null===(t=di(this,"__container"))||void 0===t||t.destruct(),null===(o=di(this,"__dialog"))||void 0===o||o.destruct()}}],n&&JO(o.prototype,n),t}($O(Hp));function nC(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function rC(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.o.tab.tabInsideLiInsertNewList)return!1;var o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nC(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?nC(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(function(e){var t=e.createInside.fake(),o=e.createInside.fake(),n=e.s.range.cloneRange();n.collapse(!0),n.insertNode(t);var r=e.s.range.cloneRange();return r.collapse(!1),r.insertNode(o),[t,o]}(e),2),n=o[0],r=o[1];try{var i=function(e,t,o){var n=ui.closest(t,"li",e.editor);return!!n&&(!(!o&&!ui.isLeaf(n.previousElementSibling))&&(!(o&&!ui.closest(n,"li",e.editor))&&n))}(e,n,t);if(!i)return!1;if(!function(e,t,o){var n=ui.closest(o,"li",t.editor);return!(!n||n!==e&&!e.contains(n))}(i,e,n))return!1;var a=ui.closest(i,["ol","ul"],e.editor);return!(!a||t&&!ui.closest(a,"li",e.editor)||(t?function(e,t,o){var n=ui.closest(t,"li",e.editor);Jn(n,"tab parent li is null");var r=Array.from(t.children).filter((function(e){return ui.isLeaf(e)}));ui.after(n,o);var i=r.indexOf(o);if(0!==i&&1!==r.length||ui.safeRemove(t),i!==r.length-1){var a=t.cloneNode();ui.append(o,a);for(var l=i+1;l<r.length;l+=1)ui.append(a,r[l])}}(e,a,i):function(e,t,o){var n=o.previousElementSibling;Jn(n,"tab previousElementSibling is null");var r=n.lastElementChild,i=ui.isTag(r,t.tagName)?r:e.createInside.element(t.tagName,Array.from(t.attributes).reduce((function(e,t){return e[t.name]=t.value,e}),{}));i.appendChild(o),r!==i&&n.appendChild(i)}(e,a,i),0))}finally{var l=e.s.createRange();l.setStartAfter(n),l.setEndBefore(r),e.s.selectRange(l),ui.safeRemove(n),ui.safeRemove(r)}return!1}function iC(e,t,o){return iC=dC()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&sC(r,o.prototype),r},iC.apply(null,arguments)}function aC(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function lC(e){return lC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lC(e)}function sC(e,t){return sC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sC(e,t)}function cC(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function uC(e){var t="function"==typeof Map?new Map:void 0;return uC=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return iC(e,arguments,lC(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),sC(n,e)},uC(e)}function dC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dC=function(){return!!e})()}tC([fi],oC.prototype,"__dialog",null),tC([fi],oC.prototype,"__container",null),tC([Sa(":generateAiAssistantForm.ai-assistant")],oC.prototype,"onGenerateAiAssistantForm",null),tC([Sa(":invokeAiAssistant")],oC.prototype,"onInvokeAiAssistant",null),Ra.add("ai-assistant",oC),tr.prototype.tab={tabInsideLiInsertNewList:!0};var fC=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":cC(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},pC=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=arguments,o=lC(o=t),function(e,t){return!t||"object"!==cC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,dC()?Reflect.construct(o,n||[],lC(e).constructor):o.apply(e,n));var e,o,n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sC(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(e){}},{key:"__onTab",value:function(e){if(e.key===Mt&&this.__onShift(e.shiftKey))return!1}},{key:"__onCommand",value:function(e){if(("indent"===e||"outdent"===e)&&this.__onShift("outdent"===e))return!1}},{key:"__onShift",value:function(e){var t=rC(this.j,e);return t&&this.j.e.fire("afterTab",e),t}},{key:"beforeDestruct",value:function(e){}}])&&aC(o.prototype,n),t}(uC(Hp));function hC(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}fC([Sa(":keydown.tab")],pC.prototype,"__onTab",null),fC([Sa(":beforeCommand.tab")],pC.prototype,"__onCommand",null),Ra.add("tab",pC);var vC=new Set([Mt,Ht,qt,Ft,Vt]);function gC(e,t,o){return gC=wC()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&_C(r,o.prototype),r},gC.apply(null,arguments)}function mC(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function bC(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function yC(e){return yC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yC(e)}function _C(e,t){return _C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_C(e,t)}function jC(e){var t="function"==typeof Map?new Map:void 0;return jC=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return gC(e,arguments,yC(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_C(n,e)},jC(e)}function wC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wC=function(){return!!e})()}Ra.add("tableKeyboardNavigation",(function(e){e.e.off(".tableKeyboardNavigation").on("keydown.tableKeyboardNavigation",(function(t){var o=t.key,n=function(e,t){if(vC.has(t)){var o=e.s.current();if(o){var n=ui.up(o,ui.isCell,e.editor);if(n){var r=e.s.range;if(t!==Mt&&o!==n){var i=t===qt||t===Vt,a=sr(i?ui.next:ui.prev,o,(function(e){return t===Ft||t===Vt?ui.isTag(e,"br"):Boolean(e)}),n);if(!i&&(a||t!==Ft&&ui.isText(o)&&0!==r.startOffset)||i&&(a||t!==Vt&&ui.isText(o)&&o.nodeValue&&r.startOffset!==o.nodeValue.length))return}return n}}}}(e,o);if(n){var r=e.getInstance(bh,e.o),i=ui.closest(n,"table",e.editor),a=null,l=o===Ht||t.shiftKey,s=function(){return sr(l?ui.prev:ui.next,n,ui.isCell,i)};switch(o){case Mt:case Ht:(a=s())||(r.appendRow(i,!!l&&i.querySelector("tr"),!l),a=s());break;case Ft:case Vt:var c=r.formalMatrix(i),u=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return hC(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?hC(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(r.formalCoordinate(i,n),2),d=u[0],f=u[1];o===Ft?void 0!==c[d-1]&&(a=c[d-1][f]):void 0!==c[d+1]&&(a=c[d+1][f])}if(a){if(e.e.fire("hidePopup hideResizer"),a.firstChild)o===Mt?e.s.select(a,!0):e.s.setCursorIn(a,o===qt||o===Vt);else{var p=e.createInside.element("br");a.appendChild(p),e.s.setCursorBefore(p)}return e.synchronizeValues(),!1}}}))})),tr.prototype.video={parseUrlToVideoEmbed:jr,defaultWidth:400,defaultHeight:345},kl.set("video",'<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox="0 0 1792 1792"> <path d="M1792 352v1088q0 42-39 59-13 5-25 5-27 0-45-19l-403-403v166q0 119-84.5 203.5t-203.5 84.5h-704q-119 0-203.5-84.5t-84.5-203.5v-704q0-119 84.5-203.5t203.5-84.5h704q119 0 203.5 84.5t84.5 203.5v165l403-402q18-19 45-19 12 0 25 5 39 17 39 59z"/> </svg> '),tr.prototype.controls.video={popup:function(e,t,o){var n=new Oc(e,[new Xs(e,[new cc(e,{name:"url",required:!0,label:"URL",placeholder:"https://",validators:["url"]})]),new Xs(e,[Os(e,"","Insert","primary").onAction((function(){return n.submit()}))])]),r=new Oc(e,[new Xs(e,[new Mc(e,{name:"code",required:!0,label:"Embed code"})]),new Xs(e,[Os(e,"","Insert","primary").onAction((function(){return r.submit()}))])]),i=[],a=function(t){e.s.restore(),e.s.insertHTML(t),o()};return e.s.save(),i.push({icon:"link",name:"Link",content:n.container},{icon:"source",name:"Code",content:r.container}),n.onSubmit((function(t){var o,n,r,i;a(sr(null!==(n=null===(o=e.o.video)||void 0===o?void 0:o.parseUrlToVideoEmbed)&&void 0!==n?n:jr,t.url,{width:null===(r=e.o.video)||void 0===r?void 0:r.defaultWidth,height:null===(i=e.o.video)||void 0===i?void 0:i.defaultHeight}))})),r.onSubmit((function(e){a(e.code)})),Xg(e,i)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"},Ra.add("video",(function(e){e.registerButton({name:"video",group:"media"})})),tr.prototype.showXPathInStatusbar=!0;var kC=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=yC(t),function(e,t){return!t||"object"!=((o=t)&&"undefined"!=typeof Symbol&&o.constructor===Symbol?"symbol":typeof o)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t;var o}(e,wC()?Reflect.construct(t,o||[],yC(e).constructor):t.apply(e,o))}(this,t,arguments)).onContext=function(t,o){return e.menu||(e.menu=new jf(e.j)),e.menu.show(o.clientX,o.clientY,[{icon:"bin",title:t===e.j.editor?"Clear":"Remove",exec:function(){t!==e.j.editor?ui.safeRemove(t):e.j.value="",e.j.synchronizeValues()}},{icon:"select-all",title:"Select",exec:function(){e.j.s.select(t)}}]),!1},e.onSelectPath=function(t,o){e.j.s.focus();var n=Xn(o.target,"-path")||"/";if("/"===n)return e.j.execCommand("selectall"),!1;try{var r=e.j.ed.evaluate(n,e.j.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(r)return e.j.s.select(r),!1}catch(e){}return e.j.s.select(t),!1},e.tpl=function(t,o,n,r){var i=e.j.c.fromHTML('<span class="jodit-xpath__item"><a role="button" data-path="'.concat(o,'" title="').concat(r,'" tabindex="-1"\'>').concat(dn(n),"</a></span>")),a=i.firstChild;return e.j.e.on(a,"click",e.onSelectPath.bind(e,t)).on(a,"contextmenu",e.onContext.bind(e,t)),i},e.removeSelectAll=function(){e.selectAllButton&&(e.selectAllButton.destruct(),delete e.selectAllButton)},e.appendSelectAll=function(){e.removeSelectAll(),e.selectAllButton=Fd(e.j,function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},n=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(o).filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})))),n.forEach((function(t){bC(e,t,o[t])}))}return e}({name:"selectall"},e.j.o.controls.selectall)),e.selectAllButton.state.size="tiny",e.container&&e.container.insertBefore(e.selectAllButton.container,e.container.firstChild)},e.calcPathImd=function(){if(!e.isDestructed){var t,o,n,r=e.j.s.current();e.container&&(e.container.innerHTML=bt),r&&ui.up(r,(function(r){!r||e.j.editor===r||ui.isText(r)||ui.isComment(r)||(t=r.nodeName.toLowerCase(),o=Xr(r,e.j.editor).replace(/^\//,""),n=e.tpl(r,o,t,e.j.i18n("Select %s",t)),e.container&&e.container.insertBefore(n,e.container.firstChild))}),e.j.editor),e.appendSelectAll()}},e.calcPath=e.j.async.debounce(e.calcPathImd,2*e.j.defaultTimeout),e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_C(e,t)}(t,e),o=t,(n=[{key:"afterInit",value:function(){var e=this;this.j.o.showXPathInStatusbar&&(this.container=this.j.c.div("jodit-xpath"),this.j.e.off(".xpath").on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath changePlace.xpath",(function(){e.j.o.showXPathInStatusbar&&e.container&&(e.j.statusbar.append(e.container),e.j.getRealMode()===Qt?e.calcPath():(e.container&&(e.container.innerHTML=bt),e.appendSelectAll()))})),this.calcPath())}},{key:"beforeDestruct",value:function(){this.j&&this.j.events&&this.j.e.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),ui.safeRemove(this.container),delete this.menu,delete this.container}}])&&mC(o.prototype,n),t}(jC(Hp));Ra.add("xpath",kC);var SC=Ot?Ot.SpeechRecognition||Ot.webkitSpeechRecognition:void 0;function xC(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function OC(e,t,o){return OC="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,o){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=CC(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(o||e):r.value}},OC(e,t,o||e)}function CC(e){return CC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},CC(e)}function zC(e,t){return zC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zC(e,t)}function EC(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function TC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(TC=function(){return!!e})()}var IC=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":EC(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},PC=function(e){function t(e,o){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,o){return t=CC(t),function(e,t){return!t||"object"!==EC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,TC()?Reflect.construct(t,o||[],CC(e).constructor):t.apply(e,o))}(this,t)).async=e,n._continuous=!1,n._interimResults=!1,n.sound=!0,n._isEnabled=!1,n._restartTimeout=0,n._onSpeechStart=function(e){n._isEnabled&&(n.async.clearTimeout(n._restartTimeout),n._restartTimeout=n.async.setTimeout((function(){n.restart(),n.emit("pulse",!1),n._makeSound(940)}),5e3),n.emit("pulse",!0))},n.__interimResults="",n._api=o,t._instances.add(n),n}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zC(e,t)}(t,e),o=t,n=[{key:"lang",get:function(){return this._lang},set:function(e){this._lang=e,this._api.lang=e}},{key:"continuous",get:function(){return this._continuous},set:function(e){this._continuous=e,this._api.continuous=e}},{key:"interimResults",get:function(){return this._interimResults},set:function(e){this._interimResults=e,this._api.interimResults=e}},{key:"destruct",value:function(){this.stop(),t._instances.delete(this),OC(CC(t.prototype),"destruct",this).call(this)}},{key:"isEnabled",get:function(){return this._isEnabled}},{key:"start",value:function(){var e=this;if(!this._isEnabled){this._isEnabled=!0,t._instances.forEach((function(t){t!==e&&t.stop()}));try{this._api.start()}catch(e){return this._onError(e),void this.stop()}this.__on("speechstart",this._onSpeechStart).__on("error",this._onError).__on("result",this._onProgress).__on("end",this._onResults)}}},{key:"stop",value:function(){this._isEnabled&&(this._api.abort(),this._api.stop(),this.__off("speechstart",this._onSpeechStart).__off("error",this._onError).__off("result",this._onProgress).__off("end",this._onResults),this.async.clearTimeout(this._restartTimeout),this._isEnabled=!1,this.emit("pulse",!1))}},{key:"toggle",value:function(){this._isEnabled?this.stop():this.start()}},{key:"restart",value:function(){this.stop(),this.start()}},{key:"__on",value:function(e,t){return this._api.addEventListener(e,t),this}},{key:"__off",value:function(e,t){return this._api.removeEventListener(e,t),this}},{key:"_onResults",value:function(e){this.emit("pulse",!1),this.emit("result",this.__interimResults),this.__interimResults="",this._makeSound(440),this.restart()}},{key:"_onProgress",value:function(e){if(this._isEnabled&&(this.__interimResults="",e.results)){for(var t=0;t<e.results.length;t++){var o=e.results.item(t);if(o.length){var n=o.item(0).transcript;this.__interimResults+=n}}this.__interimResults&&this.emit("progress",this.__interimResults)}}},{key:"_onError",value:function(e){"voice-unavailable"===e.error&&this.emit("error","Voice unavailable"),"not-allowed"===e.error&&this.emit("error","Not allowed"),"language-unavailable"!==e.error&&"language-not-supported"!==e.error||this.emit("error","Language unavailable"),this._makeSound(940),this.emit("pulse",!1),this.stop()}},{key:"_makeSound",value:function(e){this.sound&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.sec,o=void 0===t?.1:t,n=e.frequency,r=void 0===n?440:n,i=e.gain,a=void 0===i?.1:i,l=e.type,s=void 0===l?"sine":l;if(Ot&&(void 0!==Ot.AudioContext||void 0!==Ot.webkitAudioContext)){var c=new(Ot.AudioContext||Ot.webkitAudioContext),u=c.createGain(),d=c.createOscillator();d.type=s,d.frequency.value=r,d.connect(u),u.connect(c.destination),d.start(),d.stop(c.currentTime+o),u.gain.value=a}}({frequency:e})}}],n&&xC(o.prototype,n),t}(gn);function RC(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}PC._instances=new Set,IC([Co],PC.prototype,"_onResults",null),IC([Co],PC.prototype,"_onProgress",null),IC([Co],PC.prototype,"_onError",null),tr.prototype.speechRecognize={api:void 0!==SC?SC:null,sound:!0,continuous:!1,interimResults:!0,commands:{"newline|enter":"enter","delete|remove word|delete word":"backspaceWordButton",comma:"inserthtml::,",underline:"inserthtml::_",hyphen:"inserthtml::-",space:"inserthtml:: ",question:"inserthtml::?",dot:"inserthtml::.","quote|quotes|open quote":"inserthtml::'","header|header h1":"formatblock::h1","select all":"selectall"}},kl.set("speech-recognize",'<svg viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z"/> <path d="M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z"/> </svg> '),tr.prototype.controls.speechRecognize={isVisible:function(e){return Boolean(e.o.speechRecognize.api)},isActive:function(e,t){var o=ar(e,"speech");return Boolean(null==o?void 0:o.isEnabled)},isDisabled:function(e){return!e.o.speechRecognize.api},exec:function(e,t,o){var n,r=o.button,i=o.control,a=e.o.speechRecognize,l=a.api,s=a.lang,c=a.continuous,u=a.interimResults,d=a.sound;if(l){var f=ar(e,"speech");if(!f){var p=new l;(f=new PC(e.async,p)).lang=Io(s)?s:null!==(n=Xn(e.od.documentElement,"lang"))&&void 0!==n?n:void 0,f.continuous=c,f.interimResults=u,f.sound=d,ar(e,"speech",f),f.on("pulse",(function(e){r.setMod("pulse",e)})),f.on("result",(function(t){return e.e.fire("speechRecognizeResult",t)})),f.on("progress",(function(t){return e.e.fire("speechRecognizeProgressResult",t)})),f.on("error",(function(t){return e.message.error(t)})),r.hookStatus("beforeDestruct",(function(){ar(e,"speech",null),f.destruct()}))}if(i.args){var h=i.args[0];if(Ho(f[h]))return f[h]=!f[h],void(f.isEnabled&&f.restart())}f.toggle(),f.isEnabled&&r.setMod("pulse",!0),r.state.activated=f.isEnabled}else e.alert("Speech recognize API unsupported in your browser")},name:"speechRecognize",command:"toggleSpeechRecognize",tooltip:"Speech Recognize",list:{sound:"Sound",interimResults:"Interim Results"},childTemplate:function(e,t,o){var n,r=ar(e,"speech"),i=null!==(n=null==r?void 0:r[t])&&void 0!==n?n:e.o.speechRecognize[t];return"<span class='jodit-speech-recognize__list-item'><input ".concat(i?"checked":""," class='jodit-checkbox' type='checkbox'> ").concat(o,"</span>")},mods:{stroke:!1}};const AC={newline:"الخط الجديد",delete:"حذف",space:"الفضاء","Speech Recognize":"التعرف على الكلام",Sound:"الصوت","Interim Results":"النتائج المؤقتة"},LC={newline:"řádek",delete:"odstranit",space:"prostora","Speech Recognize":"Rozpoznání Řeči",Sound:"Zvuk","Interim Results":"Průběžné Výsledky"},MC={newline:"Zeilenumbruch",delete:"löschen",space:"Raum","Speech Recognize":"Sprache Erkennen",Sound:"Sound","Interim Results":"Zwischenergebnis"},BC={newline:"nueva línea",delete:"eliminar",space:"espacio","Speech Recognize":"Reconocimiento de Voz",Sound:"Sonido","Interim Results":"Resultados Provisionales"},DC={newline:"خط جدید",delete:"حذف",space:"فضا","Speech Recognize":"گفتار را تشخیص دهید",Sound:"صدا","Interim Results":"نتایج موقت"},NC={"Speech Recognize":"Puheentunnistus",newline:"uusi rivi",delete:"poistaa",space:"tilaa",Sound:"Ääni","Interim Results":"Välitulokset"},HC={newline:"nouvelle ligne",delete:"supprimer",space:"espace","Speech Recognize":"Reconnaissance Vocale",Sound:"Son","Interim Results":"Résultats Intermédiaires"},FC={newline:"חדשות",delete:"מחק",space:"שטח","Speech Recognize":"דיבור מזהה",Sound:"קול","Interim Results":"תוצאות ביניים"},qC={newline:"újsor",delete:"törlés",space:"tér","Speech Recognize":"A Beszéd Felismeri",Sound:"Hang","Interim Results":"Időközi Eredmények"},VC={newline:"newline",delete:"Hapus",space:"ruang","Speech Recognize":"Pidato Mengenali",Sound:"Suara","Interim Results":"Hasil Sementara"},WC={newline:"nuova riga",delete:"eliminare",space:"spazio","Speech Recognize":"Discorso Riconoscere",Sound:"Suono","Interim Results":"Risultati intermedi"},UC={newline:"改行",delete:"削除",space:"スペース","Speech Recognize":"音声認識",Sound:"音","Interim Results":"中間結果"},YC={newline:"줄 바꿈",delete:"삭제",space:"공간","Speech Recognize":"음성 인식",Sound:"소리","Interim Results":"중간 결과"},KC={newline:"Шинэ мөр",delete:"Устгах",space:"Зай","Speech Recognize":"Дуу хоолой таних",Sound:"Дуу","Interim Results":"Түр зуурын үр дүн"},GC={newline:"regel",delete:"verwijderen",space:"ruimte","Speech Recognize":"Spraak Herkennen",Sound:"Geluid","Interim Results":"Tussentijdse Resultaten"},JC={newline:"nylinje",delete:"slette",space:"rom","Speech Recognize":"Talegjenkjenning",Sound:"Lyd","Interim Results":"Midlertidige resultater"},XC={newline:"newline",delete:"usunąć",space:"przestrzeń","Speech Recognize":"Rozpoznawanie Mowy",Sound:"Dźwięk","Interim Results":"Wyniki Okresowe"},ZC={newline:"linha",delete:"excluir",space:"espaco","Speech Recognize":"Discurso Reconhecer",Sound:"Som","Interim Results":"Resultados Provisórios"},QC={newline:"новая строка|перенос|энтер",delete:"удалить",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Промежуточные результаты"},$C={newline:"yeni satır",delete:"silmek",space:"uzay","Speech Recognize":"Konuşma Tanıma",Sound:"Ses","Interim Results":"Ara Sonuçlar"},ez={newline:"новая строка|перенос|ентер",delete:"видалити",space:"пробел","Speech Recognize":"Распознавание речи",Sound:"Звук","Interim Results":"Проміжні результати"},tz={newline:"新行",delete:"删除",space:"空间","Speech Recognize":"言语识别",Sound:"声音","Interim Results":"中期业绩"},oz={newline:"換行",delete:"刪除",space:"空白","Speech Recognize":"語音辨識",Sound:"聲音","Interim Results":"階段性辨識結果"};function nz(e,t,o){return nz=cz()?Reflect.construct:function(e,t,o){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return o&&az(r,o.prototype),r},nz.apply(null,arguments)}function rz(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function iz(e){return iz=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},iz(e)}function az(e,t){return az=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},az(e,t)}function lz(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function sz(e){var t="function"==typeof Map?new Map:void 0;return sz=function(e){if(null===e||(o=e,-1===Function.toString.call(o).indexOf("[native code]")))return e;var o;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return nz(e,arguments,iz(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),az(n,e)},sz(e)}function cz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cz=function(){return!!e})()}var uz=function(e,t,o,n){var r,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"===("undefined"==typeof Reflect?"undefined":lz(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,n);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(i<3?r(a):i>3?r(t,o,a):r(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a},dz=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=function(e,t,o){return t=iz(t),function(e,t){return!t||"object"!==lz(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(e,cz()?Reflect.construct(t,o||[],iz(e).constructor):t.apply(e,o))}(this,t,arguments)).buttons=[{group:"state",name:"speechRecognize"}],e._commandToWord={},e}var o,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&az(e,t)}(t,e),o=t,n=[{key:"afterInit",value:function(e){var t=this,o=e.o.speechRecognize.commands;o&&(La(nt),fr(o,!1).forEach((function(n){n.split("|").forEach((function(r){r=r.trim().toLowerCase(),t._commandToWord[r]=o[n];var i=e.i18n(r);i!==r&&i.split("|").forEach((function(e){t._commandToWord[e.trim().toLowerCase()]=o[n].trim()}))}))})))}},{key:"beforeDestruct",value:function(e){ui.safeRemove(this.messagePopup)}},{key:"onSpeechRecognizeProgressResult",value:function(e){var t=this;this.messagePopup||(this.messagePopup=this.j.create.div("jodit-speech-recognize__popup")),this.j.workplace.appendChild(this.messagePopup),this.j.async.clearTimeout(this.__hidePopupTimeout),this.__hidePopupTimeout=this.j.async.setTimeout((function(){ui.safeRemove(t.messagePopup)}),1e3),this.messagePopup.innerText=e+"|"}},{key:"onSpeechRecognizeResult",value:function(e){this.j.async.clearTimeout(this.__hidePopupTimeout),ui.safeRemove(this.messagePopup);var t=this.j,o=t.s;if(!this._checkCommand(e)){var n=o.range,r=o.current();if(o.isCollapsed()&&ui.isText(r)&&ui.isOrContains(t.editor,r)&&r.nodeValue){var i=r.nodeValue;r.nodeValue=i+(/[\u00A0 ]\uFEFF*$/.test(i)?"":" ")+e,n.setStartAfter(r),o.selectRange(n),t.synchronizeValues()}else o.insertHTML(e)}}},{key:"_checkCommand",value:function(e){return e=e.toLowerCase().replace(/\./g,""),!!this._commandToWord[e]&&(function(e,t){var o=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return RC(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(o):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?RC(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.split("::"),2),n=o[0],r=o[1];e.execCommand(n,null,r)}(this.j,this._commandToWord[e]),!0)}}],n&&rz(o.prototype,n),t}(sz(Hp));uz([Sa(":speechRecognizeProgressResult")],dz.prototype,"onSpeechRecognizeProgressResult",null),uz([Sa(":speechRecognizeResult")],dz.prototype,"onSpeechRecognizeResult",null),Uv.plugins.add("speech-recognize",dz);var fz=Uv,pz=(0,rt.forwardRef)((function(e,t){var o=e.JoditConstructor,n=void 0===o?fz:o,r=e.className,i=e.config,a=e.id,l=e.name,s=e.onBlur,c=e.onChange,u=e.tabIndex,d=e.value,f=e.editorRef,p=(0,rt.useRef)(null),h=(0,rt.useRef)(null);(0,rt.useEffect)((function(){var e=p.current,t=n.make(e,i);return h.current=t,"function"==typeof f&&f(t),function(){t.isReady?t.destruct():t.waitForReady().then((function(e){return e.destruct()}))}}),[n,i,f]),(0,rt.useEffect)((function(){t&&("function"==typeof t?t(h.current):t.current=h.current)}),[p,t,h]);var v=function(e){var t=(0,rt.useRef)("");return(0,rt.useEffect)((function(){t.current=e}),[e]),t.current}(null!=r?r:"");return(0,rt.useEffect)((function(){var e,t,o=null===(t=h.current)||void 0===t||null===(e=t.container)||void 0===e?void 0:e.classList;v!==r&&"string"==typeof v&&v.split(/\s+/).filter(Boolean).forEach((function(e){return null==o?void 0:o.remove(e)})),r&&"string"==typeof r&&r.split(/\s+/).filter(Boolean).forEach((function(e){return null==o?void 0:o.add(e)}))}),[r,v]),(0,rt.useEffect)((function(){var e;(null===(e=h.current)||void 0===e?void 0:e.workplace)&&(h.current.workplace.tabIndex=u||-1)}),[u]),(0,rt.useEffect)((function(){var e=h.current;if((null==e?void 0:e.events)&&(s||c)){var t=function(e){var t,o;return s&&s(null!==(o=null==h||null===(t=h.current)||void 0===t?void 0:t.value)&&void 0!==o?o:"",e)},o=function(e){return c&&c(e)};return e.events.on("blur",t).on("change",o),function(){var n;null===(n=e.events)||void 0===n||n.off("blur",t).off("change",o)}}}),[s,c]),(0,rt.useEffect)((function(){var e=h.current,t=function(){e&&void 0!==d&&e.value!==d&&(e.value=d)};e&&(e.isReady?t():e.waitForReady().then(t))}),[d]),it().createElement("div",{className:"jodit-react-container"},it().createElement("textarea",{defaultValue:d,name:l,id:a,ref:p}))}));pz.displayName="JoditEditor";const hz=pz;return r})())); |