window.kentico = window.kentico || {};
window.kentico._forms = window.kentico._forms || {};
window.kentico._forms.formFileUploaderComponent = (function (document) {

    function disableElements(form) {
        form.fileUploaderDisabledElements = [];
        var elements = form.elements;
        for (var i = 0; i < elements.length; i++) {
            var element = elements[i];
            if (!element.disabled) {
                form.fileUploaderDisabledElements.push(i);
                element.disabled = true;
            }
        }
    }

    function enableElements(form) {
        form.fileUploaderDisabledElements.forEach(function (disabledElement) {
            form.elements[disabledElement].disabled = false;
        });
    }

    function clearTempFile(fileInput, inputReplacementFilename, inputPlaceholder, tempFileIdentifierInput, inputTextButton, inputIconButton) {
        fileInput.value = null;
        fileInput.removeAttribute("hidden");
        inputReplacementFilename.setAttribute("hidden", "hidden");

        inputPlaceholder.innerText = inputPlaceholder.originalText;
        tempFileIdentifierInput.value = "";

        inputTextButton.setAttribute("hidden", "hidden");
        inputIconButton.setAttribute("data-icon", "select");
        inputIconButton.removeAttribute("title");
    }

    function attachScript(config) {
        var fileInput = document.getElementById(config.fileInputId);
        var inputPlaceholder = document.getElementById(config.fileInputId + "-placeholder");
        var inputReplacementFilename = document.getElementById(config.fileInputId + "-replacement");
        var inputTextButton = document.getElementById(config.fileInputId + "-button");
        var inputIconButton = document.getElementById(config.fileInputId + "-icon");

        var tempFileIdentifierInput = document.getElementById(config.tempFileIdentifierInputId);
        var systemFileNameInput = document.getElementById(config.systemFileNameInputId);
        var originalFileNameInput = document.getElementById(config.originalFileNameInputId);
        var deletePersistentFileInput = document.getElementById(config.deletePersistentFileInputId);
        var tempFileOriginalName = config.tempFileOriginalName;

        var deleteFileIconButtonTitle = config.deleteFileIconButtonTitle;

        inputPlaceholder.originalText = inputPlaceholder.innerText;
        inputTextButton.originalText = inputTextButton.innerText;

        // If a file is selected, set text of the label and file input replacement to its filename.
        if ((originalFileNameInput.value || tempFileOriginalName)
            && deletePersistentFileInput.value.toUpperCase() === "FALSE") {
            inputPlaceholder.innerText = config.originalFileNamePlain || tempFileOriginalName;

            inputTextButton.removeAttribute("hidden");
            inputIconButton.setAttribute("data-icon", "remove");
            inputIconButton.setAttribute("title", deleteFileIconButtonTitle);

            inputReplacementFilename.removeAttribute("hidden");
            fileInput.setAttribute("hidden", "hidden");
        }

        // If file has not yet been persisted, send a request to delete it.
        var deleteTempFile = function () {
            if (tempFileIdentifierInput.value) {
                var deleteRequest = new XMLHttpRequest();

                deleteRequest.open("POST", config.deleteEndpoint + "&tempFileIdentifier=" + tempFileIdentifierInput.value);
                deleteRequest.send();
            }
        };
        // Deletes both permanent and temp files.
        var deleteFile = function () {
            if (systemFileNameInput.value) {
                deletePersistentFileInput.value = true;
            }

            deleteTempFile();

            clearTempFile(fileInput, inputReplacementFilename, inputPlaceholder, tempFileIdentifierInput, inputTextButton, inputIconButton);
        };
        // Wrapper for the deleteFile function used when the icon button is clicked.
        var deleteFileIcon = function (event) {
            if (inputIconButton.getAttribute("data-icon") === "remove") {
                event.preventDefault();
                deleteFile();
            }
        };

        inputTextButton.addEventListener("click", deleteFile);
        inputIconButton.addEventListener("click", deleteFileIcon);

        fileInput.addEventListener("change", function () {
            // In IE11 change fires also when setting fileInput value to null.
            if (!fileInput.value) {
                return;
            }

            inputTextButton.removeAttribute("hidden");
            inputIconButton.setAttribute("data-icon", "loading");
            disableElements(fileInput.form);

            // Validate file size.
            var file = fileInput.files[0];
            if (file !== undefined) {
                if (file.size > config.maxFileSize * 1024) {

                    fileInput.value = null;
                    tempFileIdentifierInput.value = "";
                    originalFileNameInput = "";

                    window.alert(config.maxFileSizeExceededErrorMessage);
                    enableElements(fileInput.form);
                    inputIconButton.setAttribute("data-icon", "select");

                    return;
                }
            }

            var data = new FormData();
            var submitRequest = new XMLHttpRequest();
            submitRequest.contentType = "multipart/form-data";

            data.append("file", file);

            submitRequest.addEventListener("load", function (e) {
                if (submitRequest.readyState === 4) {
                    if (submitRequest.status === 200) {
                        var result = submitRequest.response;
                        // IE11 and Edge do not support response type 'json'
                        if (typeof result === "string") {
                            result = JSON.parse(result);
                        }

                        if (result.errorMessage) {
                            fileInput.value = null;
                            alert(result.errorMessage);

                            inputIconButton.setAttribute("data-icon", "select");
                            inputTextButton.setAttribute("hidden", "hidden");
                        } else {
                            if (systemFileNameInput.value) {
                                deletePersistentFileInput.value = true;
                            }
                            deleteTempFile();

                            var filename = fileInput.files[0].name;

                            tempFileIdentifierInput.value = result.fileIdentifier;

                            inputPlaceholder.innerText = filename;
                            inputTextButton.removeAttribute("hidden");
                            inputIconButton.setAttribute("data-icon", "remove");
                            inputIconButton.setAttribute("title", deleteFileIconButtonTitle);

                            inputReplacementFilename.innerText = filename;
                            inputReplacementFilename.removeAttribute("hidden");
                            fileInput.setAttribute("hidden", "hidden");
                        }
                    } else {
                        alert("Error sending file: " + submitRequest.statusText);

                        inputIconButton.setAttribute("data-icon", "select");
                        inputTextButton.setAttribute("hidden", "hidden");
                    }

                    inputTextButton.innerHTML = inputTextButton.originalText;
                    enableElements(fileInput.form);
                }
            });

            submitRequest.upload.addEventListener("progress", function (event) {
                inputTextButton.innerText = parseInt(event.loaded / event.total * 100) + "%";
            });

            submitRequest.open("POST", config.submitEndpoint);
            submitRequest.responseType = "json";
            submitRequest.send(data);
        });
    }

    return {
        attachScript: attachScript
    };
}(document));

/*!
 * dist/inputmask.min
 * https://github.com/RobinHerbots/Inputmask
 * Copyright (c) 2010 - 2023 Robin Herbots
 * Licensed under the MIT license
 * Version: 5.0.8
 */
!function (e, t) { if ("object" == typeof exports && "object" == typeof module) module.exports = t(); else if ("function" == typeof define && define.amd) define([], t); else { var i = t(); for (var n in i) ("object" == typeof exports ? exports : e)[n] = i[n] } }("undefined" != typeof self ? self : this, (function () { return function () { "use strict"; var e = { 8741: function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }), t.default = void 0; var i = !("undefined" == typeof window || !window.document || !window.document.createElement); t.default = i }, 3976: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.default = void 0; var n = i(2839), a = { _maxTestPos: 500, placeholder: "_", optionalmarker: ["[", "]"], quantifiermarker: ["{", "}"], groupmarker: ["(", ")"], alternatormarker: "|", escapeChar: "\\", mask: null, regex: null, oncomplete: function () { }, onincomplete: function () { }, oncleared: function () { }, repeat: 0, greedy: !1, autoUnmask: !1, removeMaskOnSubmit: !1, clearMaskOnLostFocus: !0, insertMode: !0, insertModeVisual: !0, clearIncomplete: !1, alias: null, onKeyDown: function () { }, onBeforeMask: null, onBeforePaste: function (e, t) { return "function" == typeof t.onBeforeMask ? t.onBeforeMask.call(this, e, t) : e }, onBeforeWrite: null, onUnMask: null, showMaskOnFocus: !0, showMaskOnHover: !0, onKeyValidation: function () { }, skipOptionalPartCharacter: " ", numericInput: !1, rightAlign: !1, undoOnEscape: !0, radixPoint: "", _radixDance: !1, groupSeparator: "", keepStatic: null, positionCaretOnTab: !0, tabThrough: !1, supportsInputType: ["text", "tel", "url", "password", "search"], ignorables: [n.keys.Backspace, n.keys.Tab, n.keys.Pause, n.keys.Escape, n.keys.PageUp, n.keys.PageDown, n.keys.End, n.keys.Home, n.keys.ArrowLeft, n.keys.ArrowUp, n.keys.ArrowRight, n.keys.ArrowDown, n.keys.Insert, n.keys.Delete, n.keys.ContextMenu, n.keys.F1, n.keys.F2, n.keys.F3, n.keys.F4, n.keys.F5, n.keys.F6, n.keys.F7, n.keys.F8, n.keys.F9, n.keys.F10, n.keys.F11, n.keys.F12, n.keys.Process, n.keys.Unidentified, n.keys.Shift, n.keys.Control, n.keys.Alt, n.keys.Tab, n.keys.AltGraph, n.keys.CapsLock], isComplete: null, preValidation: null, postValidation: null, staticDefinitionSymbol: void 0, jitMasking: !1, nullable: !0, inputEventOnly: !1, noValuePatching: !1, positionCaretOnClick: "lvp", casing: null, inputmode: "text", importDataAttributes: !0, shiftPositions: !0, usePrototypeDefinitions: !0, validationEventTimeOut: 3e3, substitutes: {} }; t.default = a }, 7392: function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }), t.default = void 0; t.default = { 9: { validator: "[0-9\uff10-\uff19]", definitionSymbol: "*" }, a: { validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]", definitionSymbol: "*" }, "*": { validator: "[0-9\uff10-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]" } } }, 253: function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }), t.default = function (e, t, i) { if (void 0 === i) return e.__data ? e.__data[t] : null; e.__data = e.__data || {}, e.__data[t] = i } }, 3776: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.Event = void 0, t.off = function (e, t) { var i, n; f(this[0]) && e && (i = this[0].eventRegistry, n = this[0], e.split(" ").forEach((function (e) { var a = l(e.split("."), 2); (function (e, n) { var a, r, o = []; if (e.length > 0) if (void 0 === t) for (a = 0, r = i[e][n].length; a < r; a++)o.push({ ev: e, namespace: n && n.length > 0 ? n : "global", handler: i[e][n][a] }); else o.push({ ev: e, namespace: n && n.length > 0 ? n : "global", handler: t }); else if (n.length > 0) for (var s in i) for (var l in i[s]) if (l === n) if (void 0 === t) for (a = 0, r = i[s][l].length; a < r; a++)o.push({ ev: s, namespace: l, handler: i[s][l][a] }); else o.push({ ev: s, namespace: l, handler: t }); return o })(a[0], a[1]).forEach((function (e) { var t = e.ev, a = e.handler; !function (e, t, a) { if (e in i == 1) if (n.removeEventListener ? n.removeEventListener(e, a, !1) : n.detachEvent && n.detachEvent("on".concat(e), a), "global" === t) for (var r in i[e]) i[e][r].splice(i[e][r].indexOf(a), 1); else i[e][t].splice(i[e][t].indexOf(a), 1) }(t, e.namespace, a) })) }))); return this }, t.on = function (e, t) { if (f(this[0])) { var i = this[0].eventRegistry, n = this[0]; e.split(" ").forEach((function (e) { var a = l(e.split("."), 2), r = a[0], o = a[1]; !function (e, a) { n.addEventListener ? n.addEventListener(e, t, !1) : n.attachEvent && n.attachEvent("on".concat(e), t), i[e] = i[e] || {}, i[e][a] = i[e][a] || [], i[e][a].push(t) }(r, void 0 === o ? "global" : o) })) } return this }, t.trigger = function (e) { var t = arguments; if (f(this[0])) for (var i = this[0].eventRegistry, n = this[0], r = "string" == typeof e ? e.split(" ") : [e.type], s = 0; s < r.length; s++) { var l = r[s].split("."), c = l[0], u = l[1] || "global"; if (void 0 !== document && "global" === u) { var d, p = { bubbles: !0, cancelable: !0, composed: !0, detail: arguments[1] }; if (document.createEvent) { try { if ("input" === c) p.inputType = "insertText", d = new InputEvent(c, p); else d = new CustomEvent(c, p) } catch (e) { (d = document.createEvent("CustomEvent")).initCustomEvent(c, p.bubbles, p.cancelable, p.detail) } e.type && (0, a.default)(d, e), n.dispatchEvent(d) } else (d = document.createEventObject()).eventType = c, d.detail = arguments[1], e.type && (0, a.default)(d, e), n.fireEvent("on" + d.eventType, d) } else if (void 0 !== i[c]) { arguments[0] = arguments[0].type ? arguments[0] : o.default.Event(arguments[0]), arguments[0].detail = arguments.slice(1); var h = i[c]; ("global" === u ? Object.values(h).flat() : h[u]).forEach((function (e) { return e.apply(n, t) })) } } return this }; var n, a = u(i(600)), r = u(i(9380)), o = u(i(4963)), s = u(i(8741)); function l(e, t) { return function (e) { if (Array.isArray(e)) return e }(e) || function (e, t) { var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; if (null != i) { var n, a, r, o, s = [], l = !0, c = !1; try { if (r = (i = i.call(e)).next, 0 === t) { if (Object(i) !== i) return; l = !1 } else for (; !(l = (n = r.call(i)).done) && (s.push(n.value), s.length !== t); l = !0); } catch (e) { c = !0, a = e } finally { try { if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return } finally { if (c) throw a } } return s } }(e, t) || function (e, t) { if (!e) return; if ("string" == typeof e) return c(e, t); var i = Object.prototype.toString.call(e).slice(8, -1); "Object" === i && e.constructor && (i = e.constructor.name); if ("Map" === i || "Set" === i) return Array.from(e); if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return c(e, t) }(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 c(e, t) { (null == t || t > e.length) && (t = e.length); for (var i = 0, n = new Array(t); i < t; i++)n[i] = e[i]; return n } function u(e) { return e && e.__esModule ? e : { default: e } } function f(e) { return e instanceof Element } t.Event = n, "function" == typeof r.default.CustomEvent ? t.Event = n = r.default.CustomEvent : s.default && (t.Event = n = function (e, t) { t = t || { bubbles: !1, cancelable: !1, composed: !0, detail: void 0 }; var i = document.createEvent("CustomEvent"); return i.initCustomEvent(e, t.bubbles, t.cancelable, t.detail), i }, n.prototype = r.default.Event.prototype) }, 600: function (e, t) { function i(e) { return i = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, i(e) } Object.defineProperty(t, "__esModule", { value: !0 }), t.default = function e() { var t, n, a, r, o, s, l = arguments[0] || {}, c = 1, u = arguments.length, f = !1; "boolean" == typeof l && (f = l, l = arguments[c] || {}, c++); "object" !== i(l) && "function" != typeof l && (l = {}); for (; c < u; c++)if (null != (t = arguments[c])) for (n in t) a = l[n], l !== (r = t[n]) && (f && r && ("[object Object]" === Object.prototype.toString.call(r) || (o = Array.isArray(r))) ? (o ? (o = !1, s = a && Array.isArray(a) ? a : []) : s = a && "[object Object]" === Object.prototype.toString.call(a) ? a : {}, l[n] = e(f, s, r)) : void 0 !== r && (l[n] = r)); return l } }, 4963: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.default = void 0; var n = s(i(600)), a = s(i(9380)), r = s(i(253)), o = i(3776); function s(e) { return e && e.__esModule ? e : { default: e } } var l = a.default.document; function c(e) { return e instanceof c ? e : this instanceof c ? void (null != e && e !== a.default && (this[0] = e.nodeName ? e : void 0 !== e[0] && e[0].nodeName ? e[0] : l.querySelector(e), void 0 !== this[0] && null !== this[0] && (this[0].eventRegistry = this[0].eventRegistry || {}))) : new c(e) } c.prototype = { on: o.on, off: o.off, trigger: o.trigger }, c.extend = n.default, c.data = r.default, c.Event = o.Event; var u = c; t.default = u }, 9845: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.mobile = t.iphone = t.ie = void 0; var n, a = (n = i(9380)) && n.__esModule ? n : { default: n }; var r = a.default.navigator && a.default.navigator.userAgent || "", o = r.indexOf("MSIE ") > 0 || r.indexOf("Trident/") > 0, s = navigator.userAgentData && navigator.userAgentData.mobile || a.default.navigator && a.default.navigator.maxTouchPoints || "ontouchstart" in a.default, l = /iphone/i.test(r); t.iphone = l, t.mobile = s, t.ie = o }, 7184: function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }), t.default = function (e) { return e.replace(i, "\\$1") }; var i = new RegExp("(\\" + ["/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^"].join("|\\") + ")", "gim") }, 6030: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.EventHandlers = void 0; var n = i(8711), a = i(2839), r = i(9845), o = i(7215), s = i(7760), l = i(4713); function c(e, t) { var i = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; if (!i) { if (Array.isArray(e) || (i = function (e, t) { if (!e) return; if ("string" == typeof e) return u(e, t); var i = Object.prototype.toString.call(e).slice(8, -1); "Object" === i && e.constructor && (i = e.constructor.name); if ("Map" === i || "Set" === i) return Array.from(e); if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return u(e, t) }(e)) || t && e && "number" == typeof e.length) { i && (e = i); var n = 0, a = function () { }; return { s: a, n: function () { return n >= e.length ? { done: !0 } : { done: !1, value: e[n++] } }, e: function (e) { throw e }, f: a } } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") } var r, o = !0, s = !1; return { s: function () { i = i.call(e) }, n: function () { var e = i.next(); return o = e.done, e }, e: function (e) { s = !0, r = e }, f: function () { try { o || null == i.return || i.return() } finally { if (s) throw r } } } } function u(e, t) { (null == t || t > e.length) && (t = e.length); for (var i = 0, n = new Array(t); i < t; i++)n[i] = e[i]; return n } var f = { keyEvent: function (e, t, i, c, u) { var d = this.inputmask, p = d.opts, h = d.dependencyLib, v = d.maskset, m = this, g = h(m), y = e.key, k = n.caret.call(d, m), b = p.onKeyDown.call(this, e, n.getBuffer.call(d), k, p); if (void 0 !== b) return b; if (y === a.keys.Backspace || y === a.keys.Delete || r.iphone && y === a.keys.BACKSPACE_SAFARI || e.ctrlKey && y === a.keys.x && !("oncut" in m)) e.preventDefault(), o.handleRemove.call(d, m, y, k), (0, s.writeBuffer)(m, n.getBuffer.call(d, !0), v.p, e, m.inputmask._valueGet() !== n.getBuffer.call(d).join("")); else if (y === a.keys.End || y === a.keys.PageDown) { e.preventDefault(); var x = n.seekNext.call(d, n.getLastValidPosition.call(d)); n.caret.call(d, m, e.shiftKey ? k.begin : x, x, !0) } else y === a.keys.Home && !e.shiftKey || y === a.keys.PageUp ? (e.preventDefault(), n.caret.call(d, m, 0, e.shiftKey ? k.begin : 0, !0)) : p.undoOnEscape && y === a.keys.Escape && !0 !== e.altKey ? ((0, s.checkVal)(m, !0, !1, d.undoValue.split("")), g.trigger("click")) : y !== a.keys.Insert || e.shiftKey || e.ctrlKey || void 0 !== d.userOptions.insertMode ? !0 === p.tabThrough && y === a.keys.Tab ? !0 === e.shiftKey ? (k.end = n.seekPrevious.call(d, k.end, !0), !0 === l.getTest.call(d, k.end - 1).match.static && k.end--, k.begin = n.seekPrevious.call(d, k.end, !0), k.begin >= 0 && k.end > 0 && (e.preventDefault(), n.caret.call(d, m, k.begin, k.end))) : (k.begin = n.seekNext.call(d, k.begin, !0), k.end = n.seekNext.call(d, k.begin, !0), k.end < v.maskLength && k.end--, k.begin <= v.maskLength && (e.preventDefault(), n.caret.call(d, m, k.begin, k.end))) : e.shiftKey || p.insertModeVisual && !1 === p.insertMode && (y === a.keys.ArrowRight ? setTimeout((function () { var e = n.caret.call(d, m); n.caret.call(d, m, e.begin) }), 0) : y === a.keys.ArrowLeft && setTimeout((function () { var e = n.translatePosition.call(d, m.inputmask.caretPos.begin); n.translatePosition.call(d, m.inputmask.caretPos.end); d.isRTL ? n.caret.call(d, m, e + (e === v.maskLength ? 0 : 1)) : n.caret.call(d, m, e - (0 === e ? 0 : 1)) }), 0)) : o.isSelection.call(d, k) ? p.insertMode = !p.insertMode : (p.insertMode = !p.insertMode, n.caret.call(d, m, k.begin, k.begin)); return d.isComposing = y == a.keys.Process || y == a.keys.Unidentified, d.ignorable = p.ignorables.includes(y), f.keypressEvent.call(this, e, t, i, c, u) }, keypressEvent: function (e, t, i, r, l) { var c = this.inputmask || this, u = c.opts, f = c.dependencyLib, d = c.maskset, p = c.el, h = f(p), v = e.key; if (!0 === t || e.ctrlKey && e.altKey || !(e.ctrlKey || e.metaKey || c.ignorable)) { if (v) { var m, g = t ? { begin: l, end: l } : n.caret.call(c, p); v = u.substitutes[v] || v, d.writeOutBuffer = !0; var y = o.isValid.call(c, g, v, r, void 0, void 0, void 0, t); if (!1 !== y && (n.resetMaskSet.call(c, !0), m = void 0 !== y.caret ? y.caret : n.seekNext.call(c, y.pos.begin ? y.pos.begin : y.pos), d.p = m), m = u.numericInput && void 0 === y.caret ? n.seekPrevious.call(c, m) : m, !1 !== i && (setTimeout((function () { u.onKeyValidation.call(p, v, y) }), 0), d.writeOutBuffer && !1 !== y)) { var k = n.getBuffer.call(c); (0, s.writeBuffer)(p, k, m, e, !0 !== t) } if (e.preventDefault(), t) return !1 !== y && (y.forwardPosition = m), y } } else v === a.keys.Enter && c.undoValue !== c._valueGet(!0) && (c.undoValue = c._valueGet(!0), setTimeout((function () { h.trigger("change") }), 0)) }, pasteEvent: function (e) { var t, i = this.inputmask, a = i.opts, r = i._valueGet(!0), o = n.caret.call(i, this); i.isRTL && (t = o.end, o.end = n.translatePosition.call(i, o.begin), o.begin = n.translatePosition.call(i, t)); var l = r.substr(0, o.begin), u = r.substr(o.end, r.length); if (l == (i.isRTL ? n.getBufferTemplate.call(i).slice().reverse() : n.getBufferTemplate.call(i)).slice(0, o.begin).join("") && (l = ""), u == (i.isRTL ? n.getBufferTemplate.call(i).slice().reverse() : n.getBufferTemplate.call(i)).slice(o.end).join("") && (u = ""), window.clipboardData && window.clipboardData.getData) r = l + window.clipboardData.getData("Text") + u; else { if (!e.clipboardData || !e.clipboardData.getData) return !0; r = l + e.clipboardData.getData("text/plain") + u } var f = r; if (i.isRTL) { f = f.split(""); var d, p = c(n.getBufferTemplate.call(i)); try { for (p.s(); !(d = p.n()).done;) { var h = d.value; f[0] === h && f.shift() } } catch (e) { p.e(e) } finally { p.f() } f = f.join("") } if ("function" == typeof a.onBeforePaste) { if (!1 === (f = a.onBeforePaste.call(i, f, a))) return !1; f || (f = r) } (0, s.checkVal)(this, !0, !1, f.toString().split(""), e), e.preventDefault() }, inputFallBackEvent: function (e) { var t = this.inputmask, i = t.opts, o = t.dependencyLib; var c, u = this, d = u.inputmask._valueGet(!0), p = (t.isRTL ? n.getBuffer.call(t).slice().reverse() : n.getBuffer.call(t)).join(""), h = n.caret.call(t, u, void 0, void 0, !0); if (p !== d) { if (c = function (e, a, r) { for (var o, s, c, u = e.substr(0, r.begin).split(""), f = e.substr(r.begin).split(""), d = a.substr(0, r.begin).split(""), p = a.substr(r.begin).split(""), h = u.length >= d.length ? u.length : d.length, v = f.length >= p.length ? f.length : p.length, m = "", g = [], y = "~"; u.length < h;)u.push(y); for (; d.length < h;)d.push(y); for (; f.length < v;)f.unshift(y); for (; p.length < v;)p.unshift(y); var k = u.concat(f), b = d.concat(p); for (s = 0, o = k.length; s < o; s++)switch (c = l.getPlaceholder.call(t, n.translatePosition.call(t, s)), m) { case "insertText": b[s - 1] === k[s] && r.begin == k.length - 1 && g.push(k[s]), s = o; break; case "insertReplacementText": case "deleteContentBackward": k[s] === y ? r.end++ : s = o; break; default: k[s] !== b[s] && (k[s + 1] !== y && k[s + 1] !== c && void 0 !== k[s + 1] || (b[s] !== c || b[s + 1] !== y) && b[s] !== y ? b[s + 1] === y && b[s] === k[s + 1] ? (m = "insertText", g.push(k[s]), r.begin--, r.end--) : k[s] !== c && k[s] !== y && (k[s + 1] === y || b[s] !== k[s] && b[s + 1] === k[s + 1]) ? (m = "insertReplacementText", g.push(k[s]), r.begin--) : k[s] === y ? (m = "deleteContentBackward", (n.isMask.call(t, n.translatePosition.call(t, s), !0) || b[s] === i.radixPoint) && r.end++) : s = o : (m = "insertText", g.push(k[s]), r.begin--, r.end--)) }return { action: m, data: g, caret: r } }(d, p, h), (u.inputmask.shadowRoot || u.ownerDocument).activeElement !== u && u.focus(), (0, s.writeBuffer)(u, n.getBuffer.call(t)), n.caret.call(t, u, h.begin, h.end, !0), !r.mobile && t.skipNextInsert && "insertText" === e.inputType && "insertText" === c.action && t.isComposing) return !1; switch ("insertCompositionText" === e.inputType && "insertText" === c.action && t.isComposing ? t.skipNextInsert = !0 : t.skipNextInsert = !1, c.action) { case "insertText": case "insertReplacementText": c.data.forEach((function (e, i) { var n = new o.Event("keypress"); n.key = e, t.ignorable = !1, f.keypressEvent.call(u, n) })), setTimeout((function () { t.$el.trigger("keyup") }), 0); break; case "deleteContentBackward": var v = new o.Event("keydown"); v.key = a.keys.Backspace, f.keyEvent.call(u, v); break; default: (0, s.applyInputValue)(u, d), n.caret.call(t, u, h.begin, h.end, !0) }e.preventDefault() } }, setValueEvent: function (e) { var t = this.inputmask, i = this, a = e && e.detail ? e.detail[0] : arguments[1]; void 0 === a && (a = i.inputmask._valueGet(!0)), (0, s.applyInputValue)(i, a), (e.detail && void 0 !== e.detail[1] || void 0 !== arguments[2]) && n.caret.call(t, i, e.detail ? e.detail[1] : arguments[2]) }, focusEvent: function (e) { var t = this.inputmask, i = t.opts, a = null == t ? void 0 : t._valueGet(); i.showMaskOnFocus && a !== n.getBuffer.call(t).join("") && (0, s.writeBuffer)(this, n.getBuffer.call(t), n.seekNext.call(t, n.getLastValidPosition.call(t))), !0 !== i.positionCaretOnTab || !1 !== t.mouseEnter || o.isComplete.call(t, n.getBuffer.call(t)) && -1 !== n.getLastValidPosition.call(t) || f.clickEvent.apply(this, [e, !0]), t.undoValue = null == t ? void 0 : t._valueGet(!0) }, invalidEvent: function (e) { this.inputmask.validationEvent = !0 }, mouseleaveEvent: function () { var e = this.inputmask, t = e.opts, i = this; e.mouseEnter = !1, t.clearMaskOnLostFocus && (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i && (0, s.HandleNativePlaceholder)(i, e.originalPlaceholder) }, clickEvent: function (e, t) { var i = this.inputmask; i.clicked++; var a = this; if ((a.inputmask.shadowRoot || a.ownerDocument).activeElement === a) { var r = n.determineNewCaretPosition.call(i, n.caret.call(i, a), t); void 0 !== r && n.caret.call(i, a, r) } }, cutEvent: function (e) { var t = this.inputmask, i = t.maskset, r = this, l = n.caret.call(t, r), c = t.isRTL ? n.getBuffer.call(t).slice(l.end, l.begin) : n.getBuffer.call(t).slice(l.begin, l.end), u = t.isRTL ? c.reverse().join("") : c.join(""); window.navigator.clipboard ? window.navigator.clipboard.writeText(u) : window.clipboardData && window.clipboardData.getData && window.clipboardData.setData("Text", u), o.handleRemove.call(t, r, a.keys.Delete, l), (0, s.writeBuffer)(r, n.getBuffer.call(t), i.p, e, t.undoValue !== t._valueGet(!0)) }, blurEvent: function (e) { var t = this.inputmask, i = t.opts, a = t.dependencyLib; t.clicked = 0; var r = a(this), l = this; if (l.inputmask) { (0, s.HandleNativePlaceholder)(l, t.originalPlaceholder); var c = l.inputmask._valueGet(), u = n.getBuffer.call(t).slice(); "" !== c && (i.clearMaskOnLostFocus && (-1 === n.getLastValidPosition.call(t) && c === n.getBufferTemplate.call(t).join("") ? u = [] : s.clearOptionalTail.call(t, u)), !1 === o.isComplete.call(t, u) && (setTimeout((function () { r.trigger("incomplete") }), 0), i.clearIncomplete && (n.resetMaskSet.call(t), u = i.clearMaskOnLostFocus ? [] : n.getBufferTemplate.call(t).slice())), (0, s.writeBuffer)(l, u, void 0, e)), t.undoValue !== t._valueGet(!0) && (t.undoValue = t._valueGet(!0), r.trigger("change")) } }, mouseenterEvent: function () { var e = this.inputmask, t = e.opts.showMaskOnHover, i = this; if (e.mouseEnter = !0, (i.inputmask.shadowRoot || i.ownerDocument).activeElement !== i) { var a = (e.isRTL ? n.getBufferTemplate.call(e).slice().reverse() : n.getBufferTemplate.call(e)).join(""); t && (0, s.HandleNativePlaceholder)(i, a) } }, submitEvent: function () { var e = this.inputmask, t = e.opts; e.undoValue !== e._valueGet(!0) && e.$el.trigger("change"), -1 === n.getLastValidPosition.call(e) && e._valueGet && e._valueGet() === n.getBufferTemplate.call(e).join("") && e._valueSet(""), t.clearIncomplete && !1 === o.isComplete.call(e, n.getBuffer.call(e)) && e._valueSet(""), t.removeMaskOnSubmit && (e._valueSet(e.unmaskedvalue(), !0), setTimeout((function () { (0, s.writeBuffer)(e.el, n.getBuffer.call(e)) }), 0)) }, resetEvent: function () { var e = this.inputmask; e.refreshValue = !0, setTimeout((function () { (0, s.applyInputValue)(e.el, e._valueGet(!0)) }), 0) } }; t.EventHandlers = f }, 9716: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.EventRuler = void 0; var n, a = (n = i(2394)) && n.__esModule ? n : { default: n }, r = i(2839), o = i(8711), s = i(7760); var l = { on: function (e, t, i) { var n = e.inputmask.dependencyLib, l = function (t) { t.originalEvent && (t = t.originalEvent || t, arguments[0] = t); var l, c = this, u = c.inputmask, f = u ? u.opts : void 0; if (void 0 === u && "FORM" !== this.nodeName) { var d = n.data(c, "_inputmask_opts"); n(c).off(), d && new a.default(d).mask(c) } else { if (["submit", "reset", "setvalue"].includes(t.type) || "FORM" === this.nodeName || !(c.disabled || c.readOnly && !("keydown" === t.type && t.ctrlKey && t.key === r.keys.c || !1 === f.tabThrough && t.key === r.keys.Tab))) { switch (t.type) { case "input": if (!0 === u.skipInputEvent) return u.skipInputEvent = !1, t.preventDefault(); break; case "click": case "focus": return u.validationEvent ? (u.validationEvent = !1, e.blur(), (0, s.HandleNativePlaceholder)(e, (u.isRTL ? o.getBufferTemplate.call(u).slice().reverse() : o.getBufferTemplate.call(u)).join("")), setTimeout((function () { e.focus() }), f.validationEventTimeOut), !1) : (l = arguments, void setTimeout((function () { e.inputmask && i.apply(c, l) }), 0)) }var p = i.apply(c, arguments); return !1 === p && (t.preventDefault(), t.stopPropagation()), p } t.preventDefault() } };["submit", "reset"].includes(t) ? (l = l.bind(e), null !== e.form && n(e.form).on(t, l)) : n(e).on(t, l), e.inputmask.events[t] = e.inputmask.events[t] || [], e.inputmask.events[t].push(l) }, off: function (e, t) { if (e.inputmask && e.inputmask.events) { var i = e.inputmask.dependencyLib, n = e.inputmask.events; for (var a in t && ((n = [])[t] = e.inputmask.events[t]), n) { for (var r = n[a]; r.length > 0;) { var o = r.pop();["submit", "reset"].includes(a) ? null !== e.form && i(e.form).off(a, o) : i(e).off(a, o) } delete e.inputmask.events[a] } } } }; t.EventRuler = l }, 219: function (e, t, i) { var n = d(i(2394)), a = i(2839), r = d(i(7184)), o = i(8711), s = i(4713); function l(e, t) { return function (e) { if (Array.isArray(e)) return e }(e) || function (e, t) { var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; if (null != i) { var n, a, r, o, s = [], l = !0, c = !1; try { if (r = (i = i.call(e)).next, 0 === t) { if (Object(i) !== i) return; l = !1 } else for (; !(l = (n = r.call(i)).done) && (s.push(n.value), s.length !== t); l = !0); } catch (e) { c = !0, a = e } finally { try { if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return } finally { if (c) throw a } } return s } }(e, t) || function (e, t) { if (!e) return; if ("string" == typeof e) return c(e, t); var i = Object.prototype.toString.call(e).slice(8, -1); "Object" === i && e.constructor && (i = e.constructor.name); if ("Map" === i || "Set" === i) return Array.from(e); if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return c(e, t) }(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 c(e, t) { (null == t || t > e.length) && (t = e.length); for (var i = 0, n = new Array(t); i < t; i++)n[i] = e[i]; return n } function u(e) { return u = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, u(e) } function f(e, t) { for (var i = 0; i < t.length; i++) { var n = t[i]; n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, (a = n.key, r = void 0, r = function (e, t) { if ("object" !== u(e) || null === e) return e; var i = e[Symbol.toPrimitive]; if (void 0 !== i) { var n = i.call(e, t || "default"); if ("object" !== u(n)) return n; throw new TypeError("@@toPrimitive must return a primitive value.") } return ("string" === t ? String : Number)(e) }(a, "string"), "symbol" === u(r) ? r : String(r)), n) } var a, r } function d(e) { return e && e.__esModule ? e : { default: e } } var p = n.default.dependencyLib, h = function () { function e(t, i, n) { !function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") }(this, e), this.mask = t, this.format = i, this.opts = n, this._date = new Date(1, 0, 1), this.initDateObject(t, this.opts) } var t, i, n; return t = e, (i = [{ key: "date", get: function () { return void 0 === this._date && (this._date = new Date(1, 0, 1), this.initDateObject(void 0, this.opts)), this._date } }, { key: "initDateObject", value: function (e, t) { var i; for (P(t).lastIndex = 0; i = P(t).exec(this.format);) { var n = new RegExp("\\d+$").exec(i[0]), a = n ? i[0][0] + "x" : i[0], r = void 0; if (void 0 !== e) { if (n) { var o = P(t).lastIndex, s = E(i.index, t); P(t).lastIndex = o, r = e.slice(0, e.indexOf(s.nextMatch[0])) } else r = e.slice(0, g[a] && g[a][4] || a.length); e = e.slice(r.length) } Object.prototype.hasOwnProperty.call(g, a) && this.setValue(this, r, a, g[a][2], g[a][1]) } } }, { key: "setValue", value: function (e, t, i, n, a) { if (void 0 !== t && (e[n] = "ampm" === n ? t : t.replace(/[^0-9]/g, "0"), e["raw" + n] = t.replace(/\s/g, "_")), void 0 !== a) { var r = e[n]; ("day" === n && 29 === parseInt(r) || "month" === n && 2 === parseInt(r)) && (29 !== parseInt(e.day) || 2 !== parseInt(e.month) || "" !== e.year && void 0 !== e.year || e._date.setFullYear(2012, 1, 29)), "day" === n && (m = !0, 0 === parseInt(r) && (r = 1)), "month" === n && (m = !0), "year" === n && (m = !0, r.length < 4 && (r = M(r, 4, !0))), "" === r || isNaN(r) || a.call(e._date, r), "ampm" === n && a.call(e._date, r) } } }, { key: "reset", value: function () { this._date = new Date(1, 0, 1) } }, { key: "reInit", value: function () { this._date = void 0, this.date } }]) && f(t.prototype, i), n && f(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), e }(), v = (new Date).getFullYear(), m = !1, g = { d: ["[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", Date.prototype.getDate], dd: ["0[1-9]|[12][0-9]|3[01]", Date.prototype.setDate, "day", function () { return M(Date.prototype.getDate.call(this), 2) }], ddd: [""], dddd: [""], m: ["[1-9]|1[012]", function (e) { var t = e ? parseInt(e) : 0; return t > 0 && t--, Date.prototype.setMonth.call(this, t) }, "month", function () { return Date.prototype.getMonth.call(this) + 1 }], mm: ["0[1-9]|1[012]", function (e) { var t = e ? parseInt(e) : 0; return t > 0 && t--, Date.prototype.setMonth.call(this, t) }, "month", function () { return M(Date.prototype.getMonth.call(this) + 1, 2) }], mmm: [""], mmmm: [""], yy: ["[0-9]{2}", Date.prototype.setFullYear, "year", function () { return M(Date.prototype.getFullYear.call(this), 2) }], yyyy: ["[0-9]{4}", Date.prototype.setFullYear, "year", function () { return M(Date.prototype.getFullYear.call(this), 4) }], h: ["[1-9]|1[0-2]", Date.prototype.setHours, "hours", Date.prototype.getHours], hh: ["0[1-9]|1[0-2]", Date.prototype.setHours, "hours", function () { return M(Date.prototype.getHours.call(this), 2) }], hx: [function (e) { return "[0-9]{".concat(e, "}") }, Date.prototype.setHours, "hours", function (e) { return Date.prototype.getHours }], H: ["1?[0-9]|2[0-3]", Date.prototype.setHours, "hours", Date.prototype.getHours], HH: ["0[0-9]|1[0-9]|2[0-3]", Date.prototype.setHours, "hours", function () { return M(Date.prototype.getHours.call(this), 2) }], Hx: [function (e) { return "[0-9]{".concat(e, "}") }, Date.prototype.setHours, "hours", function (e) { return function () { return M(Date.prototype.getHours.call(this), e) } }], M: ["[1-5]?[0-9]", Date.prototype.setMinutes, "minutes", Date.prototype.getMinutes], MM: ["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setMinutes, "minutes", function () { return M(Date.prototype.getMinutes.call(this), 2) }], s: ["[1-5]?[0-9]", Date.prototype.setSeconds, "seconds", Date.prototype.getSeconds], ss: ["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]", Date.prototype.setSeconds, "seconds", function () { return M(Date.prototype.getSeconds.call(this), 2) }], l: ["[0-9]{3}", Date.prototype.setMilliseconds, "milliseconds", function () { return M(Date.prototype.getMilliseconds.call(this), 3) }, 3], L: ["[0-9]{2}", Date.prototype.setMilliseconds, "milliseconds", function () { return M(Date.prototype.getMilliseconds.call(this), 2) }, 2], t: ["[ap]", k, "ampm", b, 1], tt: ["[ap]m", k, "ampm", b, 2], T: ["[AP]", k, "ampm", b, 1], TT: ["[AP]M", k, "ampm", b, 2], Z: [".*", void 0, "Z", function () { var e = this.toString().match(/\((.+)\)/)[1]; e.includes(" ") && (e = (e = e.replace("-", " ").toUpperCase()).split(" ").map((function (e) { return l(e, 1)[0] })).join("")); return e }], o: [""], S: [""] }, y = { isoDate: "yyyy-mm-dd", isoTime: "HH:MM:ss", isoDateTime: "yyyy-mm-dd'T'HH:MM:ss", isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'" }; function k(e) { var t = this.getHours(); e.toLowerCase().includes("p") ? this.setHours(t + 12) : e.toLowerCase().includes("a") && t >= 12 && this.setHours(t - 12) } function b() { var e = this.getHours(); return (e = e || 12) >= 12 ? "PM" : "AM" } function x(e) { var t = new RegExp("\\d+$").exec(e[0]); if (t && void 0 !== t[0]) { var i = g[e[0][0] + "x"].slice(""); return i[0] = i[0](t[0]), i[3] = i[3](t[0]), i } if (g[e[0]]) return g[e[0]] } function P(e) { if (!e.tokenizer) { var t = [], i = []; for (var n in g) if (/\.*x$/.test(n)) { var a = n[0] + "\\d+"; -1 === i.indexOf(a) && i.push(a) } else -1 === t.indexOf(n[0]) && t.push(n[0]); e.tokenizer = "(" + (i.length > 0 ? i.join("|") + "|" : "") + t.join("+|") + ")+?|.", e.tokenizer = new RegExp(e.tokenizer, "g") } return e.tokenizer } function w(e, t, i) { if (!m) return !0; if (void 0 === e.rawday || !isFinite(e.rawday) && new Date(e.date.getFullYear(), isFinite(e.rawmonth) ? e.month : e.date.getMonth() + 1, 0).getDate() >= e.day || "29" == e.day && (!isFinite(e.rawyear) || void 0 === e.rawyear || "" === e.rawyear) || new Date(e.date.getFullYear(), isFinite(e.rawmonth) ? e.month : e.date.getMonth() + 1, 0).getDate() >= e.day) return t; if ("29" == e.day) { var n = E(t.pos, i); if ("yyyy" === n.targetMatch[0] && t.pos - n.targetMatchIndex == 2) return t.remove = t.pos + 1, t } else if ("02" == e.month && "30" == e.day && void 0 !== t.c) return e.day = "03", e.date.setDate(3), e.date.setMonth(1), t.insert = [{ pos: t.pos, c: "0" }, { pos: t.pos + 1, c: t.c }], t.caret = o.seekNext.call(this, t.pos + 1), t; return !1 } function S(e, t, i, n) { var a, o, s = ""; for (P(i).lastIndex = 0; a = P(i).exec(e);) { if (void 0 === t) if (o = x(a)) s += "(" + o[0] + ")"; else switch (a[0]) { case "[": s += "("; break; case "]": s += ")?"; break; default: s += (0, r.default)(a[0]) } else if (o = x(a)) if (!0 !== n && o[3]) s += o[3].call(t.date); else o[2] ? s += t["raw" + o[2]] : s += a[0]; else s += a[0] } return s } function M(e, t, i) { for (e = String(e), t = t || 2; e.length < t;)e = i ? e + "0" : "0" + e; return e } function _(e, t, i) { return "string" == typeof e ? new h(e, t, i) : e && "object" === u(e) && Object.prototype.hasOwnProperty.call(e, "date") ? e : void 0 } function O(e, t) { return S(t.inputFormat, { date: e }, t) } function E(e, t) { var i, n, a = 0, r = 0; for (P(t).lastIndex = 0; n = P(t).exec(t.inputFormat);) { var o = new RegExp("\\d+$").exec(n[0]); if ((a += r = o ? parseInt(o[0]) : n[0].length) >= e + 1) { i = n, n = P(t).exec(t.inputFormat); break } } return { targetMatchIndex: a - r, nextMatch: n, targetMatch: i } } n.default.extendAliases({ datetime: { mask: function (e) { return e.numericInput = !1, g.S = e.i18n.ordinalSuffix.join("|"), e.inputFormat = y[e.inputFormat] || e.inputFormat, e.displayFormat = y[e.displayFormat] || e.displayFormat || e.inputFormat, e.outputFormat = y[e.outputFormat] || e.outputFormat || e.inputFormat, e.placeholder = "" !== e.placeholder ? e.placeholder : e.inputFormat.replace(/[[\]]/, ""), e.regex = S(e.inputFormat, void 0, e), e.min = _(e.min, e.inputFormat, e), e.max = _(e.max, e.inputFormat, e), null }, placeholder: "", inputFormat: "isoDateTime", displayFormat: null, outputFormat: null, min: null, max: null, skipOptionalPartCharacter: "", i18n: { dayNames: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], ordinalSuffix: ["st", "nd", "rd", "th"] }, preValidation: function (e, t, i, n, a, r, o, s) { if (s) return !0; if (isNaN(i) && e[t] !== i) { var l = E(t, a); if (l.nextMatch && l.nextMatch[0] === i && l.targetMatch[0].length > 1) { var c = g[l.targetMatch[0]][0]; if (new RegExp(c).test("0" + e[t - 1])) return e[t] = e[t - 1], e[t - 1] = "0", { fuzzy: !0, buffer: e, refreshFromBuffer: { start: t - 1, end: t + 1 }, pos: t + 1 } } } return !0 }, postValidation: function (e, t, i, n, a, r, o, l) { var c, u; if (o) return !0; if (!1 === n && (((c = E(t + 1, a)).targetMatch && c.targetMatchIndex === t && c.targetMatch[0].length > 1 && void 0 !== g[c.targetMatch[0]] || (c = E(t + 2, a)).targetMatch && c.targetMatchIndex === t + 1 && c.targetMatch[0].length > 1 && void 0 !== g[c.targetMatch[0]]) && (u = g[c.targetMatch[0]][0]), void 0 !== u && (void 0 !== r.validPositions[t + 1] && new RegExp(u).test(i + "0") ? (e[t] = i, e[t + 1] = "0", n = { pos: t + 2, caret: t }) : new RegExp(u).test("0" + i) && (e[t] = "0", e[t + 1] = i, n = { pos: t + 2 })), !1 === n)) return n; if (n.fuzzy && (e = n.buffer, t = n.pos), (c = E(t, a)).targetMatch && c.targetMatch[0] && void 0 !== g[c.targetMatch[0]]) { var f = g[c.targetMatch[0]]; u = f[0]; var d = e.slice(c.targetMatchIndex, c.targetMatchIndex + c.targetMatch[0].length); if (!1 === new RegExp(u).test(d.join("")) && 2 === c.targetMatch[0].length && r.validPositions[c.targetMatchIndex] && r.validPositions[c.targetMatchIndex + 1] && (r.validPositions[c.targetMatchIndex + 1].input = "0"), "year" == f[2]) for (var p = s.getMaskTemplate.call(this, !1, 1, void 0, !0), h = t + 1; h < e.length; h++)e[h] = p[h], delete r.validPositions[h] } var m = n, y = _(e.join(""), a.inputFormat, a); return m && !isNaN(y.date.getTime()) && (a.prefillYear && (m = function (e, t, i) { if (e.year !== e.rawyear) { var n = v.toString(), a = e.rawyear.replace(/[^0-9]/g, ""), r = n.slice(0, a.length), o = n.slice(a.length); if (2 === a.length && a === r) { var s = new Date(v, e.month - 1, e.day); e.day == s.getDate() && (!i.max || i.max.date.getTime() >= s.getTime()) && (e.date.setFullYear(v), e.year = n, t.insert = [{ pos: t.pos + 1, c: o[0] }, { pos: t.pos + 2, c: o[1] }]) } } return t }(y, m, a)), m = function (e, t, i, n, a) { if (!t) return t; if (t && i.min && !isNaN(i.min.date.getTime())) { var r; for (e.reset(), P(i).lastIndex = 0; r = P(i).exec(i.inputFormat);) { var o; if ((o = x(r)) && o[3]) { for (var s = o[1], l = e[o[2]], c = i.min[o[2]], u = i.max ? i.max[o[2]] : c, f = [], d = !1, p = 0; p < c.length; p++)void 0 !== n.validPositions[p + r.index] || d ? (f[p] = l[p], d = d || l[p] > c[p]) : (f[p] = c[p], "year" === o[2] && l.length - 1 == p && c != u && (f = (parseInt(f.join("")) + 1).toString().split("")), "ampm" === o[2] && c != u && i.min.date.getTime() > e.date.getTime() && (f[p] = u[p])); s.call(e._date, f.join("")) } } t = i.min.date.getTime() <= e.date.getTime(), e.reInit() } return t && i.max && (isNaN(i.max.date.getTime()) || (t = i.max.date.getTime() >= e.date.getTime())), t }(y, m = w.call(this, y, m, a), a, r)), void 0 !== t && m && n.pos !== t ? { buffer: S(a.inputFormat, y, a).split(""), refreshFromBuffer: { start: t, end: n.pos }, pos: n.caret || n.pos } : m }, onKeyDown: function (e, t, i, n) { e.ctrlKey && e.key === a.keys.ArrowRight && (this.inputmask._valueSet(O(new Date, n)), p(this).trigger("setvalue")) }, onUnMask: function (e, t, i) { return t ? S(i.outputFormat, _(e, i.inputFormat, i), i, !0) : t }, casing: function (e, t, i, n) { return 0 == t.nativeDef.indexOf("[ap]") ? e.toLowerCase() : 0 == t.nativeDef.indexOf("[AP]") ? e.toUpperCase() : e }, onBeforeMask: function (e, t) { return "[object Date]" === Object.prototype.toString.call(e) && (e = O(e, t)), e }, insertMode: !1, insertModeVisual: !1, shiftPositions: !1, keepStatic: !1, inputmode: "numeric", prefillYear: !0 } }) }, 3851: function (e, t, i) { var n, a = (n = i(2394)) && n.__esModule ? n : { default: n }, r = i(8711), o = i(4713); a.default.extendDefinitions({ A: { validator: "[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]", casing: "upper" }, "&": { validator: "[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]", casing: "upper" }, "#": { validator: "[0-9A-Fa-f]", casing: "upper" } }); var s = new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]"); function l(e, t, i, n, a) { return i - 1 > -1 && "." !== t.buffer[i - 1] ? (e = t.buffer[i - 1] + e, e = i - 2 > -1 && "." !== t.buffer[i - 2] ? t.buffer[i - 2] + e : "0" + e) : e = "00" + e, s.test(e) } a.default.extendAliases({ cssunit: { regex: "[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)" }, url: { regex: "(https?|ftp)://.*", autoUnmask: !1, keepStatic: !1, tabThrough: !0 }, ip: { mask: "i{1,3}.j{1,3}.k{1,3}.l{1,3}", definitions: { i: { validator: l }, j: { validator: l }, k: { validator: l }, l: { validator: l } }, onUnMask: function (e, t, i) { return e }, inputmode: "decimal", substitutes: { ",": "." } }, email: { mask: function (e) { var t = e.separator, i = e.quantifier, n = "*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]", a = n; if (t) for (var r = 0; r < i; r++)a += "[".concat(t).concat(n, "]"); return a }, greedy: !1, casing: "lower", separator: null, quantifier: 5, skipOptionalPartCharacter: "", onBeforePaste: function (e, t) { return (e = e.toLowerCase()).replace("mailto:", "") }, definitions: { "*": { validator: "[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5!#$%&'*+/=?^_`{|}~-]" }, "-": { validator: "[0-9A-Za-z-]" } }, onUnMask: function (e, t, i) { return e }, inputmode: "email" }, mac: { mask: "##:##:##:##:##:##" }, vin: { mask: "V{13}9{4}", definitions: { V: { validator: "[A-HJ-NPR-Za-hj-npr-z\\d]", casing: "upper" } }, clearIncomplete: !0, autoUnmask: !0 }, ssn: { mask: "999-99-9999", postValidation: function (e, t, i, n, a, s, l) { var c = o.getMaskTemplate.call(this, !0, r.getLastValidPosition.call(this), !0, !0); return /^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(c.join("")) } } }) }, 207: function (e, t, i) { var n = s(i(2394)), a = s(i(7184)), r = i(8711), o = i(2839); function s(e) { return e && e.__esModule ? e : { default: e } } var l = n.default.dependencyLib; function c(e, t) { for (var i = "", a = 0; a < e.length; a++)n.default.prototype.definitions[e.charAt(a)] || t.definitions[e.charAt(a)] || t.optionalmarker[0] === e.charAt(a) || t.optionalmarker[1] === e.charAt(a) || t.quantifiermarker[0] === e.charAt(a) || t.quantifiermarker[1] === e.charAt(a) || t.groupmarker[0] === e.charAt(a) || t.groupmarker[1] === e.charAt(a) || t.alternatormarker === e.charAt(a) ? i += "\\" + e.charAt(a) : i += e.charAt(a); return i } function u(e, t, i, n) { if (e.length > 0 && t > 0 && (!i.digitsOptional || n)) { var a = e.indexOf(i.radixPoint), r = !1; i.negationSymbol.back === e[e.length - 1] && (r = !0, e.length--), -1 === a && (e.push(i.radixPoint), a = e.length - 1); for (var o = 1; o <= t; o++)isFinite(e[a + o]) || (e[a + o] = "0") } return r && e.push(i.negationSymbol.back), e } function f(e, t) { var i = 0; for (var n in "+" === e && (i = r.seekNext.call(this, t.validPositions.length - 1)), t.tests) if ((n = parseInt(n)) >= i) for (var a = 0, o = t.tests[n].length; a < o; a++)if ((void 0 === t.validPositions[n] || "-" === e) && t.tests[n][a].match.def === e) return n + (void 0 !== t.validPositions[n] && "-" !== e ? 1 : 0); return i } function d(e, t) { for (var i = -1, n = 0, a = t.validPositions.length; n < a; n++) { var r = t.validPositions[n]; if (r && r.match.def === e) { i = n; break } } return i } function p(e, t, i, n, a) { var r = t.buffer ? t.buffer.indexOf(a.radixPoint) : -1, o = (-1 !== r || n && a.jitMasking) && new RegExp(a.definitions[9].validator).test(e); return a._radixDance && -1 !== r && o && null == t.validPositions[r] ? { insert: { pos: r === i ? r + 1 : r, c: a.radixPoint }, pos: i } : o } n.default.extendAliases({ numeric: { mask: function (e) { e.repeat = 0, e.groupSeparator === e.radixPoint && e.digits && "0" !== e.digits && ("." === e.radixPoint ? e.groupSeparator = "," : "," === e.radixPoint ? e.groupSeparator = "." : e.groupSeparator = ""), " " === e.groupSeparator && (e.skipOptionalPartCharacter = void 0), e.placeholder.length > 1 && (e.placeholder = e.placeholder.charAt(0)), "radixFocus" === e.positionCaretOnClick && "" === e.placeholder && (e.positionCaretOnClick = "lvp"); var t = "0", i = e.radixPoint; !0 === e.numericInput && void 0 === e.__financeInput ? (t = "1", e.positionCaretOnClick = "radixFocus" === e.positionCaretOnClick ? "lvp" : e.positionCaretOnClick, e.digitsOptional = !1, isNaN(e.digits) && (e.digits = 2), e._radixDance = !1, i = "," === e.radixPoint ? "?" : "!", "" !== e.radixPoint && void 0 === e.definitions[i] && (e.definitions[i] = {}, e.definitions[i].validator = "[" + e.radixPoint + "]", e.definitions[i].placeholder = e.radixPoint, e.definitions[i].static = !0, e.definitions[i].generated = !0)) : (e.__financeInput = !1, e.numericInput = !0); var n, r = "[+]"; if (r += c(e.prefix, e), "" !== e.groupSeparator ? (void 0 === e.definitions[e.groupSeparator] && (e.definitions[e.groupSeparator] = {}, e.definitions[e.groupSeparator].validator = "[" + e.groupSeparator + "]", e.definitions[e.groupSeparator].placeholder = e.groupSeparator, e.definitions[e.groupSeparator].static = !0, e.definitions[e.groupSeparator].generated = !0), r += e._mask(e)) : r += "9{+}", void 0 !== e.digits && 0 !== e.digits) { var o = e.digits.toString().split(","); isFinite(o[0]) && o[1] && isFinite(o[1]) ? r += i + t + "{" + e.digits + "}" : (isNaN(e.digits) || parseInt(e.digits) > 0) && (e.digitsOptional || e.jitMasking ? (n = r + i + t + "{0," + e.digits + "}", e.keepStatic = !0) : r += i + t + "{" + e.digits + "}") } else e.inputmode = "numeric"; return r += c(e.suffix, e), r += "[-]", n && (r = [n + c(e.suffix, e) + "[-]", r]), e.greedy = !1, function (e) { void 0 === e.parseMinMaxOptions && (null !== e.min && (e.min = e.min.toString().replace(new RegExp((0, a.default)(e.groupSeparator), "g"), ""), "," === e.radixPoint && (e.min = e.min.replace(e.radixPoint, ".")), e.min = isFinite(e.min) ? parseFloat(e.min) : NaN, isNaN(e.min) && (e.min = Number.MIN_VALUE)), null !== e.max && (e.max = e.max.toString().replace(new RegExp((0, a.default)(e.groupSeparator), "g"), ""), "," === e.radixPoint && (e.max = e.max.replace(e.radixPoint, ".")), e.max = isFinite(e.max) ? parseFloat(e.max) : NaN, isNaN(e.max) && (e.max = Number.MAX_VALUE)), e.parseMinMaxOptions = "done") }(e), "" !== e.radixPoint && e.substituteRadixPoint && (e.substitutes["." == e.radixPoint ? "," : "."] = e.radixPoint), r }, _mask: function (e) { return "(" + e.groupSeparator + "999){+|1}" }, digits: "*", digitsOptional: !0, enforceDigitsOnBlur: !1, radixPoint: ".", positionCaretOnClick: "radixFocus", _radixDance: !0, groupSeparator: "", allowMinus: !0, negationSymbol: { front: "-", back: "" }, prefix: "", suffix: "", min: null, max: null, SetMaxOnOverflow: !1, step: 1, inputType: "text", unmaskAsNumber: !1, roundingFN: Math.round, inputmode: "decimal", shortcuts: { k: "1000", m: "1000000" }, placeholder: "0", greedy: !1, rightAlign: !0, insertMode: !0, autoUnmask: !1, skipOptionalPartCharacter: "", usePrototypeDefinitions: !1, stripLeadingZeroes: !0, substituteRadixPoint: !0, definitions: { 0: { validator: p }, 1: { validator: p, definitionSymbol: "9" }, 9: { validator: "[0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]", definitionSymbol: "*" }, "+": { validator: function (e, t, i, n, a) { return a.allowMinus && ("-" === e || e === a.negationSymbol.front) } }, "-": { validator: function (e, t, i, n, a) { return a.allowMinus && e === a.negationSymbol.back } } }, preValidation: function (e, t, i, n, a, r, o, s) { if (!1 !== a.__financeInput && i === a.radixPoint) return !1; var l = e.indexOf(a.radixPoint), c = t; if (t = function (e, t, i, n, a) { return a._radixDance && a.numericInput && t !== a.negationSymbol.back && e <= i && (i > 0 || t == a.radixPoint) && (void 0 === n.validPositions[e - 1] || n.validPositions[e - 1].input !== a.negationSymbol.back) && (e -= 1), e }(t, i, l, r, a), "-" === i || i === a.negationSymbol.front) { if (!0 !== a.allowMinus) return !1; var u = !1, p = d("+", r), h = d("-", r); return -1 !== p && (u = [p, h]), !1 !== u ? { remove: u, caret: c - a.negationSymbol.back.length } : { insert: [{ pos: f.call(this, "+", r), c: a.negationSymbol.front, fromIsValid: !0 }, { pos: f.call(this, "-", r), c: a.negationSymbol.back, fromIsValid: void 0 }], caret: c + a.negationSymbol.back.length } } if (i === a.groupSeparator) return { caret: c }; if (s) return !0; if (-1 !== l && !0 === a._radixDance && !1 === n && i === a.radixPoint && void 0 !== a.digits && (isNaN(a.digits) || parseInt(a.digits) > 0) && l !== t) return { caret: a._radixDance && t === l - 1 ? l + 1 : l }; if (!1 === a.__financeInput) if (n) { if (a.digitsOptional) return { rewritePosition: o.end }; if (!a.digitsOptional) { if (o.begin > l && o.end <= l) return i === a.radixPoint ? { insert: { pos: l + 1, c: "0", fromIsValid: !0 }, rewritePosition: l } : { rewritePosition: l + 1 }; if (o.begin < l) return { rewritePosition: o.begin - 1 } } } else if (!a.showMaskOnHover && !a.showMaskOnFocus && !a.digitsOptional && a.digits > 0 && "" === this.__valueGet.call(this.el)) return { rewritePosition: l }; return { rewritePosition: t } }, postValidation: function (e, t, i, n, a, r, o) { if (!1 === n) return n; if (o) return !0; if (null !== a.min || null !== a.max) { var s = a.onUnMask(e.slice().reverse().join(""), void 0, l.extend({}, a, { unmaskAsNumber: !0 })); if (null !== a.min && s < a.min && (s.toString().length > a.min.toString().length || s < 0)) return !1; if (null !== a.max && s > a.max) return !!a.SetMaxOnOverflow && { refreshFromBuffer: !0, buffer: u(a.max.toString().replace(".", a.radixPoint).split(""), a.digits, a).reverse() } } return n }, onUnMask: function (e, t, i) { if ("" === t && !0 === i.nullable) return t; var n = e.replace(i.prefix, ""); return n = (n = n.replace(i.suffix, "")).replace(new RegExp((0, a.default)(i.groupSeparator), "g"), ""), "" !== i.placeholder.charAt(0) && (n = n.replace(new RegExp(i.placeholder.charAt(0), "g"), "0")), i.unmaskAsNumber ? ("" !== i.radixPoint && -1 !== n.indexOf(i.radixPoint) && (n = n.replace(a.default.call(this, i.radixPoint), ".")), n = (n = n.replace(new RegExp("^" + (0, a.default)(i.negationSymbol.front)), "-")).replace(new RegExp((0, a.default)(i.negationSymbol.back) + "$"), ""), Number(n)) : n }, isComplete: function (e, t) { var i = (t.numericInput ? e.slice().reverse() : e).join(""); return i = (i = (i = (i = (i = i.replace(new RegExp("^" + (0, a.default)(t.negationSymbol.front)), "-")).replace(new RegExp((0, a.default)(t.negationSymbol.back) + "$"), "")).replace(t.prefix, "")).replace(t.suffix, "")).replace(new RegExp((0, a.default)(t.groupSeparator) + "([0-9]{3})", "g"), "$1"), "," === t.radixPoint && (i = i.replace((0, a.default)(t.radixPoint), ".")), isFinite(i) }, onBeforeMask: function (e, t) { var i = t.radixPoint || ","; isFinite(t.digits) && (t.digits = parseInt(t.digits)), "number" != typeof e && "number" !== t.inputType || "" === i || (e = e.toString().replace(".", i)); var n = "-" === e.charAt(0) || e.charAt(0) === t.negationSymbol.front, r = e.split(i), o = r[0].replace(/[^\-0-9]/g, ""), s = r.length > 1 ? r[1].replace(/[^0-9]/g, "") : "", l = r.length > 1; e = o + ("" !== s ? i + s : s); var c = 0; if ("" !== i && (c = t.digitsOptional ? t.digits < s.length ? t.digits : s.length : t.digits, "" !== s || !t.digitsOptional)) { var f = Math.pow(10, c || 1); e = e.replace((0, a.default)(i), "."), isNaN(parseFloat(e)) || (e = (t.roundingFN(parseFloat(e) * f) / f).toFixed(c)), e = e.toString().replace(".", i) } if (0 === t.digits && -1 !== e.indexOf(i) && (e = e.substring(0, e.indexOf(i))), null !== t.min || null !== t.max) { var d = e.toString().replace(i, "."); null !== t.min && d < t.min ? e = t.min.toString().replace(".", i) : null !== t.max && d > t.max && (e = t.max.toString().replace(".", i)) } return n && "-" !== e.charAt(0) && (e = "-" + e), u(e.toString().split(""), c, t, l).join("") }, onBeforeWrite: function (e, t, i, n) { function r(e, t) { if (!1 !== n.__financeInput || t) { var i = e.indexOf(n.radixPoint); -1 !== i && e.splice(i, 1) } if ("" !== n.groupSeparator) for (; -1 !== (i = e.indexOf(n.groupSeparator));)e.splice(i, 1); return e } var o, s; if (n.stripLeadingZeroes && (s = function (e, t) { var i = new RegExp("(^" + ("" !== t.negationSymbol.front ? (0, a.default)(t.negationSymbol.front) + "?" : "") + (0, a.default)(t.prefix) + ")(.*)(" + (0, a.default)(t.suffix) + ("" != t.negationSymbol.back ? (0, a.default)(t.negationSymbol.back) + "?" : "") + "$)").exec(e.slice().reverse().join("")), n = i ? i[2] : "", r = !1; return n && (n = n.split(t.radixPoint.charAt(0))[0], r = new RegExp("^[0" + t.groupSeparator + "]*").exec(n)), !(!r || !(r[0].length > 1 || r[0].length > 0 && r[0].length < n.length)) && r }(t, n))) for (var c = t.join("").lastIndexOf(s[0].split("").reverse().join("")) - (s[0] == s.input ? 0 : 1), f = s[0] == s.input ? 1 : 0, d = s[0].length - f; d > 0; d--)delete this.maskset.validPositions[c + d], delete t[c + d]; if (e) switch (e.type) { case "blur": case "checkval": if (null !== n.min) { var p = n.onUnMask(t.slice().reverse().join(""), void 0, l.extend({}, n, { unmaskAsNumber: !0 })); if (null !== n.min && p < n.min) return { refreshFromBuffer: !0, buffer: u(n.min.toString().replace(".", n.radixPoint).split(""), n.digits, n).reverse() } } if (t[t.length - 1] === n.negationSymbol.front) { var h = new RegExp("(^" + ("" != n.negationSymbol.front ? (0, a.default)(n.negationSymbol.front) + "?" : "") + (0, a.default)(n.prefix) + ")(.*)(" + (0, a.default)(n.suffix) + ("" != n.negationSymbol.back ? (0, a.default)(n.negationSymbol.back) + "?" : "") + "$)").exec(r(t.slice(), !0).reverse().join("")); 0 == (h ? h[2] : "") && (o = { refreshFromBuffer: !0, buffer: [0] }) } else if ("" !== n.radixPoint) { t.indexOf(n.radixPoint) === n.suffix.length && (o && o.buffer ? o.buffer.splice(0, 1 + n.suffix.length) : (t.splice(0, 1 + n.suffix.length), o = { refreshFromBuffer: !0, buffer: r(t) })) } if (n.enforceDigitsOnBlur) { var v = (o = o || {}) && o.buffer || t.slice().reverse(); o.refreshFromBuffer = !0, o.buffer = u(v, n.digits, n, !0).reverse() } }return o }, onKeyDown: function (e, t, i, n) { var a, r = l(this); if (3 != e.location) { var s, c = e.key; if ((s = n.shortcuts && n.shortcuts[c]) && s.length > 1) return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) * parseInt(s)), r.trigger("setvalue"), !1 } if (e.ctrlKey) switch (e.key) { case o.keys.ArrowUp: return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) + parseInt(n.step)), r.trigger("setvalue"), !1; case o.keys.ArrowDown: return this.inputmask.__valueSet.call(this, parseFloat(this.inputmask.unmaskedvalue()) - parseInt(n.step)), r.trigger("setvalue"), !1 }if (!e.shiftKey && (e.key === o.keys.Delete || e.key === o.keys.Backspace || e.key === o.keys.BACKSPACE_SAFARI) && i.begin !== t.length) { if (t[e.key === o.keys.Delete ? i.begin - 1 : i.end] === n.negationSymbol.front) return a = t.slice().reverse(), "" !== n.negationSymbol.front && a.shift(), "" !== n.negationSymbol.back && a.pop(), r.trigger("setvalue", [a.join(""), i.begin]), !1; if (!0 === n._radixDance) { var f = t.indexOf(n.radixPoint); if (n.digitsOptional) { if (0 === f) return (a = t.slice().reverse()).pop(), r.trigger("setvalue", [a.join(""), i.begin >= a.length ? a.length : i.begin]), !1 } else if (-1 !== f && (i.begin < f || i.end < f || e.key === o.keys.Delete && (i.begin === f || i.begin - 1 === f))) { var d = void 0; return i.begin === i.end && (e.key === o.keys.Backspace || e.key === o.keys.BACKSPACE_SAFARI ? i.begin++ : e.key === o.keys.Delete && i.begin - 1 === f && (d = l.extend({}, i), i.begin--, i.end--)), (a = t.slice().reverse()).splice(a.length - i.begin, i.begin - i.end + 1), a = u(a, n.digits, n).join(""), d && (i = d), r.trigger("setvalue", [a, i.begin >= a.length ? f + 1 : i.begin]), !1 } } } } }, currency: { prefix: "", groupSeparator: ",", alias: "numeric", digits: 2, digitsOptional: !1 }, decimal: { alias: "numeric" }, integer: { alias: "numeric", inputmode: "numeric", digits: 0 }, percentage: { alias: "numeric", min: 0, max: 100, suffix: " %", digits: 0, allowMinus: !1 }, indianns: { alias: "numeric", _mask: function (e) { return "(" + e.groupSeparator + "99){*|1}(" + e.groupSeparator + "999){1|1}" }, groupSeparator: ",", radixPoint: ".", placeholder: "0", digits: 2, digitsOptional: !1 } }) }, 9380: function (e, t, i) { var n; Object.defineProperty(t, "__esModule", { value: !0 }), t.default = void 0; var a = ((n = i(8741)) && n.__esModule ? n : { default: n }).default ? window : {}; t.default = a }, 7760: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.HandleNativePlaceholder = function (e, t) { var i = e ? e.inputmask : this; if (s.ie) { if (e.inputmask._valueGet() !== t && (e.placeholder !== t || "" === e.placeholder)) { var n = r.getBuffer.call(i).slice(), a = e.inputmask._valueGet(); if (a !== t) { var o = r.getLastValidPosition.call(i); -1 === o && a === r.getBufferTemplate.call(i).join("") ? n = [] : -1 !== o && u.call(i, n), d(e, n) } } } else e.placeholder !== t && (e.placeholder = t, "" === e.placeholder && e.removeAttribute("placeholder")) }, t.applyInputValue = c, t.checkVal = f, t.clearOptionalTail = u, t.unmaskedvalue = function (e) { var t = e ? e.inputmask : this, i = t.opts, n = t.maskset; if (e) { if (void 0 === e.inputmask) return e.value; e.inputmask && e.inputmask.refreshValue && c(e, e.inputmask._valueGet(!0)) } for (var a = [], o = n.validPositions, s = 0, l = o.length; s < l; s++)o[s] && o[s].match && (1 != o[s].match.static || Array.isArray(n.metadata) && !0 !== o[s].generatedInput) && a.push(o[s].input); var u = 0 === a.length ? "" : (t.isRTL ? a.reverse() : a).join(""); if ("function" == typeof i.onUnMask) { var f = (t.isRTL ? r.getBuffer.call(t).slice().reverse() : r.getBuffer.call(t)).join(""); u = i.onUnMask.call(t, f, u, i) } return u }, t.writeBuffer = d; var n = i(2839), a = i(4713), r = i(8711), o = i(7215), s = i(9845), l = i(6030); function c(e, t) { var i = e ? e.inputmask : this, n = i.opts; e.inputmask.refreshValue = !1, "function" == typeof n.onBeforeMask && (t = n.onBeforeMask.call(i, t, n) || t), f(e, !0, !1, t = (t || "").toString().split("")), i.undoValue = i._valueGet(!0), (n.clearMaskOnLostFocus || n.clearIncomplete) && e.inputmask._valueGet() === r.getBufferTemplate.call(i).join("") && -1 === r.getLastValidPosition.call(i) && e.inputmask._valueSet("") } function u(e) { e.length = 0; for (var t, i = a.getMaskTemplate.call(this, !0, 0, !0, void 0, !0); void 0 !== (t = i.shift());)e.push(t); return e } function f(e, t, i, n, s) { var c = e ? e.inputmask : this, u = c.maskset, f = c.opts, p = c.dependencyLib, h = n.slice(), v = "", m = -1, g = void 0, y = f.skipOptionalPartCharacter; f.skipOptionalPartCharacter = "", r.resetMaskSet.call(c), u.tests = {}, m = f.radixPoint ? r.determineNewCaretPosition.call(c, { begin: 0, end: 0 }, !1, !1 === f.__financeInput ? "radixFocus" : void 0).begin : 0, u.p = m, c.caretPos = { begin: m }; var k = [], b = c.caretPos; if (h.forEach((function (e, t) { if (void 0 !== e) { var n = new p.Event("_checkval"); n.key = e, v += e; var o = r.getLastValidPosition.call(c, void 0, !0); !function (e, t) { for (var i = a.getMaskTemplate.call(c, !0, 0).slice(e, r.seekNext.call(c, e, !1, !1)).join("").replace(/'/g, ""), n = i.indexOf(t); n > 0 && " " === i[n - 1];)n--; var o = 0 === n && !r.isMask.call(c, e) && (a.getTest.call(c, e).match.nativeDef === t.charAt(0) || !0 === a.getTest.call(c, e).match.static && a.getTest.call(c, e).match.nativeDef === "'" + t.charAt(0) || " " === a.getTest.call(c, e).match.nativeDef && (a.getTest.call(c, e + 1).match.nativeDef === t.charAt(0) || !0 === a.getTest.call(c, e + 1).match.static && a.getTest.call(c, e + 1).match.nativeDef === "'" + t.charAt(0))); if (!o && n > 0 && !r.isMask.call(c, e, !1, !0)) { var s = r.seekNext.call(c, e); c.caretPos.begin < s && (c.caretPos = { begin: s }) } return o }(m, v) ? (g = l.EventHandlers.keypressEvent.call(c, n, !0, !1, i, c.caretPos.begin)) && (m = c.caretPos.begin + 1, v = "") : g = l.EventHandlers.keypressEvent.call(c, n, !0, !1, i, o + 1), g ? (void 0 !== g.pos && u.validPositions[g.pos] && !0 === u.validPositions[g.pos].match.static && void 0 === u.validPositions[g.pos].alternation && (k.push(g.pos), c.isRTL || (g.forwardPosition = g.pos + 1)), d.call(c, void 0, r.getBuffer.call(c), g.forwardPosition, n, !1), c.caretPos = { begin: g.forwardPosition, end: g.forwardPosition }, b = c.caretPos) : void 0 === u.validPositions[t] && h[t] === a.getPlaceholder.call(c, t) && r.isMask.call(c, t, !0) ? c.caretPos.begin++ : c.caretPos = b } })), k.length > 0) { var x, P, w = r.seekNext.call(c, -1, void 0, !1); if (!o.isComplete.call(c, r.getBuffer.call(c)) && k.length <= w || o.isComplete.call(c, r.getBuffer.call(c)) && k.length > 0 && k.length !== w && 0 === k[0]) for (var S = w; void 0 !== (x = k.shift());) { var M = new p.Event("_checkval"); if ((P = u.validPositions[x]).generatedInput = !0, M.key = P.input, (g = l.EventHandlers.keypressEvent.call(c, M, !0, !1, i, S)) && void 0 !== g.pos && g.pos !== x && u.validPositions[g.pos] && !0 === u.validPositions[g.pos].match.static) k.push(g.pos); else if (!g) break; S++ } } t && d.call(c, e, r.getBuffer.call(c), g ? g.forwardPosition : c.caretPos.begin, s || new p.Event("checkval"), s && ("input" === s.type && c.undoValue !== r.getBuffer.call(c).join("") || "paste" === s.type)), f.skipOptionalPartCharacter = y } function d(e, t, i, a, s) { var l = e ? e.inputmask : this, c = l.opts, u = l.dependencyLib; if (a && "function" == typeof c.onBeforeWrite) { var f = c.onBeforeWrite.call(l, a, t, i, c); if (f) { if (f.refreshFromBuffer) { var d = f.refreshFromBuffer; o.refreshFromBuffer.call(l, !0 === d ? d : d.start, d.end, f.buffer || t), t = r.getBuffer.call(l, !0) } void 0 !== i && (i = void 0 !== f.caret ? f.caret : i) } } if (void 0 !== e && (e.inputmask._valueSet(t.join("")), void 0 === i || void 0 !== a && "blur" === a.type || r.caret.call(l, e, i, void 0, void 0, void 0 !== a && "keydown" === a.type && (a.key === n.keys.Delete || a.key === n.keys.Backspace)), !0 === s)) { var p = u(e), h = e.inputmask._valueGet(); e.inputmask.skipInputEvent = !0, p.trigger("input"), setTimeout((function () { h === r.getBufferTemplate.call(l).join("") ? p.trigger("cleared") : !0 === o.isComplete.call(l, t) && p.trigger("complete") }), 0) } } }, 2394: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.default = void 0; var n = i(157), a = m(i(4963)), r = m(i(9380)), o = i(2391), s = i(4713), l = i(8711), c = i(7215), u = i(7760), f = i(9716), d = m(i(7392)), p = m(i(3976)), h = m(i(8741)); function v(e) { return v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, v(e) } function m(e) { return e && e.__esModule ? e : { default: e } } var g = r.default.document, y = "_inputmask_opts"; function k(e, t, i) { if (h.default) { if (!(this instanceof k)) return new k(e, t, i); this.dependencyLib = a.default, this.el = void 0, this.events = {}, this.maskset = void 0, !0 !== i && ("[object Object]" === Object.prototype.toString.call(e) ? t = e : (t = t || {}, e && (t.alias = e)), this.opts = a.default.extend(!0, {}, this.defaults, t), this.noMasksCache = t && void 0 !== t.definitions, this.userOptions = t || {}, b(this.opts.alias, t, this.opts)), this.refreshValue = !1, this.undoValue = void 0, this.$el = void 0, this.skipInputEvent = !1, this.validationEvent = !1, this.ignorable = !1, this.maxLength, this.mouseEnter = !1, this.clicked = 0, this.originalPlaceholder = void 0, this.isComposing = !1, this.hasAlternator = !1 } } function b(e, t, i) { var n = k.prototype.aliases[e]; return n ? (n.alias && b(n.alias, void 0, i), a.default.extend(!0, i, n), a.default.extend(!0, i, t), !0) : (null === i.mask && (i.mask = e), !1) } k.prototype = { dataAttribute: "data-inputmask", defaults: p.default, definitions: d.default, aliases: {}, masksCache: {}, get isRTL() { return this.opts.isRTL || this.opts.numericInput }, mask: function (e) { var t = this; return "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [e] : Array.isArray(e) ? e : [].slice.call(e)).forEach((function (e, i) { var s = a.default.extend(!0, {}, t.opts); if (function (e, t, i, n) { function o(t, a) { var o = "" === n ? t : n + "-" + t; null !== (a = void 0 !== a ? a : e.getAttribute(o)) && ("string" == typeof a && (0 === t.indexOf("on") ? a = r.default[a] : "false" === a ? a = !1 : "true" === a && (a = !0)), i[t] = a) } if (!0 === t.importDataAttributes) { var s, l, c, u, f = e.getAttribute(n); if (f && "" !== f && (f = f.replace(/'/g, '"'), l = JSON.parse("{" + f + "}")), l) for (u in c = void 0, l) if ("alias" === u.toLowerCase()) { c = l[u]; break } for (s in o("alias", c), i.alias && b(i.alias, i, t), t) { if (l) for (u in c = void 0, l) if (u.toLowerCase() === s.toLowerCase()) { c = l[u]; break } o(s, c) } } a.default.extend(!0, t, i), ("rtl" === e.dir || t.rightAlign) && (e.style.textAlign = "right"); ("rtl" === e.dir || t.numericInput) && (e.dir = "ltr", e.removeAttribute("dir"), t.isRTL = !0); return Object.keys(i).length }(e, s, a.default.extend(!0, {}, t.userOptions), t.dataAttribute)) { var l = (0, o.generateMaskSet)(s, t.noMasksCache); void 0 !== l && (void 0 !== e.inputmask && (e.inputmask.opts.autoUnmask = !0, e.inputmask.remove()), e.inputmask = new k(void 0, void 0, !0), e.inputmask.opts = s, e.inputmask.noMasksCache = t.noMasksCache, e.inputmask.userOptions = a.default.extend(!0, {}, t.userOptions), e.inputmask.el = e, e.inputmask.$el = (0, a.default)(e), e.inputmask.maskset = l, a.default.data(e, y, t.userOptions), n.mask.call(e.inputmask)) } })), e && e[0] && e[0].inputmask || this }, option: function (e, t) { return "string" == typeof e ? this.opts[e] : "object" === v(e) ? (a.default.extend(this.userOptions, e), this.el && !0 !== t && this.mask(this.el), this) : void 0 }, unmaskedvalue: function (e) { if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache), void 0 === this.el || void 0 !== e) { var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split(""); u.checkVal.call(this, void 0, !1, !1, t), "function" == typeof this.opts.onBeforeWrite && this.opts.onBeforeWrite.call(this, void 0, l.getBuffer.call(this), 0, this.opts) } return u.unmaskedvalue.call(this, this.el) }, remove: function () { if (this.el) { a.default.data(this.el, y, null); var e = this.opts.autoUnmask ? (0, u.unmaskedvalue)(this.el) : this._valueGet(this.opts.autoUnmask); e !== l.getBufferTemplate.call(this).join("") ? this._valueSet(e, this.opts.autoUnmask) : this._valueSet(""), f.EventRuler.off(this.el), Object.getOwnPropertyDescriptor && Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el), "value") && this.__valueGet && Object.defineProperty(this.el, "value", { get: this.__valueGet, set: this.__valueSet, configurable: !0 }) : g.__lookupGetter__ && this.el.__lookupGetter__("value") && this.__valueGet && (this.el.__defineGetter__("value", this.__valueGet), this.el.__defineSetter__("value", this.__valueSet)), this.el.inputmask = void 0 } return this.el }, getemptymask: function () { return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache), (this.isRTL ? l.getBufferTemplate.call(this).reverse() : l.getBufferTemplate.call(this)).join("") }, hasMaskedValue: function () { return !this.opts.autoUnmask }, isComplete: function () { return this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache), c.isComplete.call(this, l.getBuffer.call(this)) }, getmetadata: function () { if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache), Array.isArray(this.maskset.metadata)) { var e = s.getMaskTemplate.call(this, !0, 0, !1).join(""); return this.maskset.metadata.forEach((function (t) { return t.mask !== e || (e = t, !1) })), e } return this.maskset.metadata }, isValid: function (e) { if (this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache), e) { var t = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split(""); u.checkVal.call(this, void 0, !0, !1, t) } else e = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join(""); for (var i = l.getBuffer.call(this), n = l.determineLastRequiredPosition.call(this), a = i.length - 1; a > n && !l.isMask.call(this, a); a--); return i.splice(n, a + 1 - n), c.isComplete.call(this, i) && e === (this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join("")) }, format: function (e, t) { this.maskset = this.maskset || (0, o.generateMaskSet)(this.opts, this.noMasksCache); var i = ("function" == typeof this.opts.onBeforeMask && this.opts.onBeforeMask.call(this, e, this.opts) || e).split(""); u.checkVal.call(this, void 0, !0, !1, i); var n = this.isRTL ? l.getBuffer.call(this).slice().reverse().join("") : l.getBuffer.call(this).join(""); return t ? { value: n, metadata: this.getmetadata() } : n }, setValue: function (e) { this.el && (0, a.default)(this.el).trigger("setvalue", [e]) }, analyseMask: o.analyseMask }, k.extendDefaults = function (e) { a.default.extend(!0, k.prototype.defaults, e) }, k.extendDefinitions = function (e) { a.default.extend(!0, k.prototype.definitions, e) }, k.extendAliases = function (e) { a.default.extend(!0, k.prototype.aliases, e) }, k.format = function (e, t, i) { return k(t).format(e, i) }, k.unmask = function (e, t) { return k(t).unmaskedvalue(e) }, k.isValid = function (e, t) { return k(t).isValid(e) }, k.remove = function (e) { "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [e] : e).forEach((function (e) { e.inputmask && e.inputmask.remove() })) }, k.setValue = function (e, t) { "string" == typeof e && (e = g.getElementById(e) || g.querySelectorAll(e)), (e = e.nodeName ? [e] : e).forEach((function (e) { e.inputmask ? e.inputmask.setValue(t) : (0, a.default)(e).trigger("setvalue", [t]) })) }, k.dependencyLib = a.default, r.default.Inputmask = k; var x = k; t.default = x }, 5296: function (e, t, i) { function n(e) { return n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, n(e) } var a = h(i(9380)), r = h(i(2394)), o = h(i(8741)); function s(e, t) { for (var i = 0; i < t.length; i++) { var a = t[i]; a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, (r = a.key, o = void 0, o = function (e, t) { if ("object" !== n(e) || null === e) return e; var i = e[Symbol.toPrimitive]; if (void 0 !== i) { var a = i.call(e, t || "default"); if ("object" !== n(a)) return a; throw new TypeError("@@toPrimitive must return a primitive value.") } return ("string" === t ? String : Number)(e) }(r, "string"), "symbol" === n(o) ? o : String(o)), a) } var r, o } function l(e) { var t = f(); return function () { var i, a = p(e); if (t) { var r = p(this).constructor; i = Reflect.construct(a, arguments, r) } else i = a.apply(this, arguments); return function (e, t) { if (t && ("object" === n(t) || "function" == typeof t)) return t; if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined"); return function (e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e }(e) }(this, i) } } function c(e) { var t = "function" == typeof Map ? new Map : void 0; return c = function (e) { if (null === e || (i = e, -1 === Function.toString.call(i).indexOf("[native code]"))) return e; var i; 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 u(e, arguments, p(this).constructor) } return n.prototype = Object.create(e.prototype, { constructor: { value: n, enumerable: !1, writable: !0, configurable: !0 } }), d(n, e) }, c(e) } function u(e, t, i) { return u = f() ? Reflect.construct.bind() : function (e, t, i) { var n = [null]; n.push.apply(n, t); var a = new (Function.bind.apply(e, n)); return i && d(a, i.prototype), a }, u.apply(null, arguments) } function f() { if ("undefined" == typeof Reflect || !Reflect.construct) return !1; if (Reflect.construct.sham) return !1; if ("function" == typeof Proxy) return !0; try { return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function () { }))), !0 } catch (e) { return !1 } } function d(e, t) { return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) { return e.__proto__ = t, e }, d(e, t) } function p(e) { return p = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (e) { return e.__proto__ || Object.getPrototypeOf(e) }, p(e) } function h(e) { return e && e.__esModule ? e : { default: e } } var v = a.default.document; if (o.default && v && v.head && v.head.attachShadow && a.default.customElements && void 0 === a.default.customElements.get("input-mask")) { var m = function (e) { !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 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && d(e, t) }(o, e); var t, i, n, a = l(o); function o() { var e; !function (e, t) { if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function") }(this, o); var t = (e = a.call(this)).getAttributeNames(), i = e.attachShadow({ mode: "closed" }), n = v.createElement("input"); for (var s in n.type = "text", i.appendChild(n), t) Object.prototype.hasOwnProperty.call(t, s) && n.setAttribute(t[s], e.getAttribute(t[s])); var l = new r.default; return l.dataAttribute = "", l.mask(n), n.inputmask.shadowRoot = i, e } return t = o, i && s(t.prototype, i), n && s(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t }(c(HTMLElement)); a.default.customElements.define("input-mask", m) } }, 2839: function (e, t) { function i(e, t) { return function (e) { if (Array.isArray(e)) return e }(e) || function (e, t) { var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; if (null != i) { var n, a, r, o, s = [], l = !0, c = !1; try { if (r = (i = i.call(e)).next, 0 === t) { if (Object(i) !== i) return; l = !1 } else for (; !(l = (n = r.call(i)).done) && (s.push(n.value), s.length !== t); l = !0); } catch (e) { c = !0, a = e } finally { try { if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return } finally { if (c) throw a } } return s } }(e, t) || function (e, t) { if (!e) return; if ("string" == typeof e) return n(e, t); var i = Object.prototype.toString.call(e).slice(8, -1); "Object" === i && e.constructor && (i = e.constructor.name); if ("Map" === i || "Set" === i) return Array.from(e); if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return n(e, t) }(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 n(e, t) { (null == t || t > e.length) && (t = e.length); for (var i = 0, n = new Array(t); i < t; i++)n[i] = e[i]; return n } Object.defineProperty(t, "__esModule", { value: !0 }), t.keys = t.keyCode = void 0, t.toKey = function (e, t) { return r[e] || (t ? String.fromCharCode(e) : String.fromCharCode(e).toLowerCase()) }, t.toKeyCode = function (e) { return a[e] }; var a = { AltGraph: 18, ArrowDown: 40, ArrowLeft: 37, ArrowRight: 39, ArrowUp: 38, Backspace: 8, BACKSPACE_SAFARI: 127, CapsLock: 20, Delete: 46, End: 35, Enter: 13, Escape: 27, Home: 36, Insert: 45, PageDown: 34, PageUp: 33, Space: 32, Tab: 9, c: 67, x: 88, z: 90, Shift: 16, Control: 17, Alt: 18, Pause: 19, Meta_LEFT: 91, Meta_RIGHT: 92, ContextMenu: 93, Process: 229, Unidentified: 229, F1: 112, F2: 113, F3: 114, F4: 115, F5: 116, F6: 117, F7: 118, F8: 119, F9: 120, F10: 121, F11: 122, F12: 123 }; t.keyCode = a; var r = Object.entries(a).reduce((function (e, t) { var n = i(t, 2), a = n[0], r = n[1]; return e[r] = void 0 === e[r] ? a : e[r], e }), {}), o = Object.entries(a).reduce((function (e, t) { var n = i(t, 2), a = n[0]; n[1]; return e[a] = "Space" === a ? " " : a, e }), {}); t.keys = o }, 2391: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.analyseMask = function (e, t, i) { var n, o, s, l, c, u, f = /(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g, d = /\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g, p = !1, h = new a.default, v = [], m = [], g = !1; function y(e, n, a) { a = void 0 !== a ? a : e.matches.length; var o = e.matches[a - 1]; if (t) { if (0 === n.indexOf("[") || p && /\\d|\\s|\\w|\\p/i.test(n) || "." === n) { var s = i.casing ? "i" : ""; /^\\p\{.*}$/i.test(n) && (s += "u"), e.matches.splice(a++, 0, { fn: new RegExp(n, s), static: !1, optionality: !1, newBlockMarker: void 0 === o ? "master" : o.def !== n, casing: null, def: n, placeholder: void 0, nativeDef: n }) } else p && (n = n[n.length - 1]), n.split("").forEach((function (t, n) { o = e.matches[a - 1], e.matches.splice(a++, 0, { fn: /[a-z]/i.test(i.staticDefinitionSymbol || t) ? new RegExp("[" + (i.staticDefinitionSymbol || t) + "]", i.casing ? "i" : "") : null, static: !0, optionality: !1, newBlockMarker: void 0 === o ? "master" : o.def !== t && !0 !== o.static, casing: null, def: i.staticDefinitionSymbol || t, placeholder: void 0 !== i.staticDefinitionSymbol ? t : void 0, nativeDef: (p ? "'" : "") + t }) })); p = !1 } else { var l = i.definitions && i.definitions[n] || i.usePrototypeDefinitions && r.default.prototype.definitions[n]; l && !p ? e.matches.splice(a++, 0, { fn: l.validator ? "string" == typeof l.validator ? new RegExp(l.validator, i.casing ? "i" : "") : new function () { this.test = l.validator } : new RegExp("."), static: l.static || !1, optionality: l.optional || !1, defOptionality: l.optional || !1, newBlockMarker: void 0 === o || l.optional ? "master" : o.def !== (l.definitionSymbol || n), casing: l.casing, def: l.definitionSymbol || n, placeholder: l.placeholder, nativeDef: n, generated: l.generated }) : (e.matches.splice(a++, 0, { fn: /[a-z]/i.test(i.staticDefinitionSymbol || n) ? new RegExp("[" + (i.staticDefinitionSymbol || n) + "]", i.casing ? "i" : "") : null, static: !0, optionality: !1, newBlockMarker: void 0 === o ? "master" : o.def !== n && !0 !== o.static, casing: null, def: i.staticDefinitionSymbol || n, placeholder: void 0 !== i.staticDefinitionSymbol ? n : void 0, nativeDef: (p ? "'" : "") + n }), p = !1) } } function k() { if (v.length > 0) { if (y(l = v[v.length - 1], o), l.isAlternator) { c = v.pop(); for (var e = 0; e < c.matches.length; e++)c.matches[e].isGroup && (c.matches[e].isGroup = !1); v.length > 0 ? (l = v[v.length - 1]).matches.push(c) : h.matches.push(c) } } else y(h, o) } function b(e) { var t = new a.default(!0); return t.openGroup = !1, t.matches = e, t } function x() { if ((s = v.pop()).openGroup = !1, void 0 !== s) if (v.length > 0) { if ((l = v[v.length - 1]).matches.push(s), l.isAlternator) { for (var e = (c = v.pop()).matches[0].matches ? c.matches[0].matches.length : 1, t = 0; t < c.matches.length; t++)c.matches[t].isGroup = !1, c.matches[t].alternatorGroup = !1, null === i.keepStatic && e < (c.matches[t].matches ? c.matches[t].matches.length : 1) && (i.keepStatic = !0), e = c.matches[t].matches ? c.matches[t].matches.length : 1; v.length > 0 ? (l = v[v.length - 1]).matches.push(c) : h.matches.push(c) } } else h.matches.push(s); else k() } function P(e) { var t = e.pop(); return t.isQuantifier && (t = b([e.pop(), t])), t } t && (i.optionalmarker[0] = void 0, i.optionalmarker[1] = void 0); for (; n = t ? d.exec(e) : f.exec(e);) { if (o = n[0], t) { switch (o.charAt(0)) { case "?": o = "{0,1}"; break; case "+": case "*": o = "{" + o + "}"; break; case "|": if (0 === v.length) { var w = b(h.matches); w.openGroup = !0, v.push(w), h.matches = [], g = !0 } }switch (o) { case "\\d": o = "[0-9]"; break; case "\\p": o += d.exec(e)[0], o += d.exec(e)[0] } } if (p) k(); else switch (o.charAt(0)) { case "$": case "^": t || k(); break; case i.escapeChar: p = !0, t && k(); break; case i.optionalmarker[1]: case i.groupmarker[1]: x(); break; case i.optionalmarker[0]: v.push(new a.default(!1, !0)); break; case i.groupmarker[0]: v.push(new a.default(!0)); break; case i.quantifiermarker[0]: var S = new a.default(!1, !1, !0), M = (o = o.replace(/[{}?]/g, "")).split("|"), _ = M[0].split(","), O = isNaN(_[0]) ? _[0] : parseInt(_[0]), E = 1 === _.length ? O : isNaN(_[1]) ? _[1] : parseInt(_[1]), T = isNaN(M[1]) ? M[1] : parseInt(M[1]); "*" !== O && "+" !== O || (O = "*" === E ? 0 : 1), S.quantifier = { min: O, max: E, jit: T }; var j = v.length > 0 ? v[v.length - 1].matches : h.matches; (n = j.pop()).isGroup || (n = b([n])), j.push(n), j.push(S); break; case i.alternatormarker: if (v.length > 0) { var A = (l = v[v.length - 1]).matches[l.matches.length - 1]; u = l.openGroup && (void 0 === A.matches || !1 === A.isGroup && !1 === A.isAlternator) ? v.pop() : P(l.matches) } else u = P(h.matches); if (u.isAlternator) v.push(u); else if (u.alternatorGroup ? (c = v.pop(), u.alternatorGroup = !1) : c = new a.default(!1, !1, !1, !0), c.matches.push(u), v.push(c), u.openGroup) { u.openGroup = !1; var D = new a.default(!0); D.alternatorGroup = !0, v.push(D) } break; default: k() } } g && x(); for (; v.length > 0;)s = v.pop(), h.matches.push(s); h.matches.length > 0 && (!function e(n) { n && n.matches && n.matches.forEach((function (a, r) { var o = n.matches[r + 1]; (void 0 === o || void 0 === o.matches || !1 === o.isQuantifier) && a && a.isGroup && (a.isGroup = !1, t || (y(a, i.groupmarker[0], 0), !0 !== a.openGroup && y(a, i.groupmarker[1]))), e(a) })) }(h), m.push(h)); (i.numericInput || i.isRTL) && function e(t) { for (var n in t.matches = t.matches.reverse(), t.matches) if (Object.prototype.hasOwnProperty.call(t.matches, n)) { var a = parseInt(n); if (t.matches[n].isQuantifier && t.matches[a + 1] && t.matches[a + 1].isGroup) { var r = t.matches[n]; t.matches.splice(n, 1), t.matches.splice(a + 1, 0, r) } void 0 !== t.matches[n].matches ? t.matches[n] = e(t.matches[n]) : t.matches[n] = ((o = t.matches[n]) === i.optionalmarker[0] ? o = i.optionalmarker[1] : o === i.optionalmarker[1] ? o = i.optionalmarker[0] : o === i.groupmarker[0] ? o = i.groupmarker[1] : o === i.groupmarker[1] && (o = i.groupmarker[0]), o) } var o; return t }(m[0]); return m }, t.generateMaskSet = function (e, t) { var i; function a(e, t) { var i = t.repeat, n = t.groupmarker, a = t.quantifiermarker, r = t.keepStatic; if (i > 0 || "*" === i || "+" === i) { var l = "*" === i ? 0 : "+" === i ? 1 : i; e = n[0] + e + n[1] + a[0] + l + "," + i + a[1] } if (!0 === r) { var c = e.match(new RegExp("(.)\\[([^\\]]*)\\]", "g")); c && c.forEach((function (t, i) { var n = function (e, t) { return function (e) { if (Array.isArray(e)) return e }(e) || function (e, t) { var i = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"]; if (null != i) { var n, a, r, o, s = [], l = !0, c = !1; try { if (r = (i = i.call(e)).next, 0 === t) { if (Object(i) !== i) return; l = !1 } else for (; !(l = (n = r.call(i)).done) && (s.push(n.value), s.length !== t); l = !0); } catch (e) { c = !0, a = e } finally { try { if (!l && null != i.return && (o = i.return(), Object(o) !== o)) return } finally { if (c) throw a } } return s } }(e, t) || function (e, t) { if (!e) return; if ("string" == typeof e) return s(e, t); var i = Object.prototype.toString.call(e).slice(8, -1); "Object" === i && e.constructor && (i = e.constructor.name); if ("Map" === i || "Set" === i) return Array.from(e); if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return s(e, t) }(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), a = n[0], r = n[1]; r = r.replace("]", ""), e = e.replace(new RegExp("".concat((0, o.default)(a), "\\[").concat((0, o.default)(r), "\\]")), a.charAt(0) === r.charAt(0) ? "(".concat(a, "|").concat(a).concat(r, ")") : "".concat(a, "[").concat(r, "]")) })) } return e } function l(e, i, o) { var s, l, c = !1; return null !== e && "" !== e || ((c = null !== o.regex) ? e = (e = o.regex).replace(/^(\^)(.*)(\$)$/, "$2") : (c = !0, e = ".*")), 1 === e.length && !1 === o.greedy && 0 !== o.repeat && (o.placeholder = ""), e = a(e, o), l = c ? "regex_" + o.regex : o.numericInput ? e.split("").reverse().join("") : e, null !== o.keepStatic && (l = "ks_" + o.keepStatic + l), void 0 === r.default.prototype.masksCache[l] || !0 === t ? (s = { mask: e, maskToken: r.default.prototype.analyseMask(e, c, o), validPositions: [], _buffer: void 0, buffer: void 0, tests: {}, excludes: {}, metadata: i, maskLength: void 0, jitOffset: {} }, !0 !== t && (r.default.prototype.masksCache[l] = s, s = n.default.extend(!0, {}, r.default.prototype.masksCache[l]))) : s = n.default.extend(!0, {}, r.default.prototype.masksCache[l]), s } "function" == typeof e.mask && (e.mask = e.mask(e)); if (Array.isArray(e.mask)) { if (e.mask.length > 1) { null === e.keepStatic && (e.keepStatic = !0); var c = e.groupmarker[0]; return (e.isRTL ? e.mask.reverse() : e.mask).forEach((function (t) { c.length > 1 && (c += e.alternatormarker), void 0 !== t.mask && "function" != typeof t.mask ? c += t.mask : c += t })), l(c += e.groupmarker[1], e.mask, e) } e.mask = e.mask.pop() } i = e.mask && void 0 !== e.mask.mask && "function" != typeof e.mask.mask ? l(e.mask.mask, e.mask, e) : l(e.mask, e.mask, e); null === e.keepStatic && (e.keepStatic = !1); return i }; var n = l(i(4963)), a = l(i(9695)), r = l(i(2394)), o = l(i(7184)); function s(e, t) { (null == t || t > e.length) && (t = e.length); for (var i = 0, n = new Array(t); i < t; i++)n[i] = e[i]; return n } function l(e) { return e && e.__esModule ? e : { default: e } } }, 157: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.mask = function () { var e = this, t = this.opts, i = this.el, u = this.dependencyLib; o.EventRuler.off(i); var f = function (t, i) { "textarea" !== t.tagName.toLowerCase() && i.ignorables.push(n.keys.Enter); var s = t.getAttribute("type"), l = "input" === t.tagName.toLowerCase() && i.supportsInputType.includes(s) || t.isContentEditable || "textarea" === t.tagName.toLowerCase(); if (!l) if ("input" === t.tagName.toLowerCase()) { var c = document.createElement("input"); c.setAttribute("type", s), l = "text" === c.type, c = null } else l = "partial"; return !1 !== l ? function (t) { var n, s; function l() { return this.inputmask ? this.inputmask.opts.autoUnmask ? this.inputmask.unmaskedvalue() : -1 !== a.getLastValidPosition.call(e) || !0 !== i.nullable ? (this.inputmask.shadowRoot || this.ownerDocument).activeElement === this && i.clearMaskOnLostFocus ? (e.isRTL ? r.clearOptionalTail.call(e, a.getBuffer.call(e).slice()).reverse() : r.clearOptionalTail.call(e, a.getBuffer.call(e).slice())).join("") : n.call(this) : "" : n.call(this) } function c(e) { s.call(this, e), this.inputmask && (0, r.applyInputValue)(this, e) } if (!t.inputmask.__valueGet) { if (!0 !== i.noValuePatching) { if (Object.getOwnPropertyDescriptor) { var f = Object.getPrototypeOf ? Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t), "value") : void 0; f && f.get && f.set ? (n = f.get, s = f.set, Object.defineProperty(t, "value", { get: l, set: c, configurable: !0 })) : "input" !== t.tagName.toLowerCase() && (n = function () { return this.textContent }, s = function (e) { this.textContent = e }, Object.defineProperty(t, "value", { get: l, set: c, configurable: !0 })) } else document.__lookupGetter__ && t.__lookupGetter__("value") && (n = t.__lookupGetter__("value"), s = t.__lookupSetter__("value"), t.__defineGetter__("value", l), t.__defineSetter__("value", c)); t.inputmask.__valueGet = n, t.inputmask.__valueSet = s } t.inputmask._valueGet = function (t) { return e.isRTL && !0 !== t ? n.call(this.el).split("").reverse().join("") : n.call(this.el) }, t.inputmask._valueSet = function (t, i) { s.call(this.el, null == t ? "" : !0 !== i && e.isRTL ? t.split("").reverse().join("") : t) }, void 0 === n && (n = function () { return this.value }, s = function (e) { this.value = e }, function (t) { if (u.valHooks && (void 0 === u.valHooks[t] || !0 !== u.valHooks[t].inputmaskpatch)) { var n = u.valHooks[t] && u.valHooks[t].get ? u.valHooks[t].get : function (e) { return e.value }, o = u.valHooks[t] && u.valHooks[t].set ? u.valHooks[t].set : function (e, t) { return e.value = t, e }; u.valHooks[t] = { get: function (t) { if (t.inputmask) { if (t.inputmask.opts.autoUnmask) return t.inputmask.unmaskedvalue(); var r = n(t); return -1 !== a.getLastValidPosition.call(e, void 0, void 0, t.inputmask.maskset.validPositions) || !0 !== i.nullable ? r : "" } return n(t) }, set: function (e, t) { var i = o(e, t); return e.inputmask && (0, r.applyInputValue)(e, t), i }, inputmaskpatch: !0 } } }(t.type), function (e) { o.EventRuler.on(e, "mouseenter", (function () { var e = this, t = e.inputmask._valueGet(!0); t != (e.inputmask.isRTL ? a.getBuffer.call(e.inputmask).slice().reverse() : a.getBuffer.call(e.inputmask)).join("") && (0, r.applyInputValue)(e, t) })) }(t)) } }(t) : t.inputmask = void 0, l }(i, t); if (!1 !== f) { e.originalPlaceholder = i.placeholder, e.maxLength = void 0 !== i ? i.maxLength : void 0, -1 === e.maxLength && (e.maxLength = void 0), "inputMode" in i && null === i.getAttribute("inputmode") && (i.inputMode = t.inputmode, i.setAttribute("inputmode", t.inputmode)), !0 === f && (t.showMaskOnFocus = t.showMaskOnFocus && -1 === ["cc-number", "cc-exp"].indexOf(i.autocomplete), s.iphone && (t.insertModeVisual = !1, i.setAttribute("autocorrect", "off")), o.EventRuler.on(i, "submit", c.EventHandlers.submitEvent), o.EventRuler.on(i, "reset", c.EventHandlers.resetEvent), o.EventRuler.on(i, "blur", c.EventHandlers.blurEvent), o.EventRuler.on(i, "focus", c.EventHandlers.focusEvent), o.EventRuler.on(i, "invalid", c.EventHandlers.invalidEvent), o.EventRuler.on(i, "click", c.EventHandlers.clickEvent), o.EventRuler.on(i, "mouseleave", c.EventHandlers.mouseleaveEvent), o.EventRuler.on(i, "mouseenter", c.EventHandlers.mouseenterEvent), o.EventRuler.on(i, "paste", c.EventHandlers.pasteEvent), o.EventRuler.on(i, "cut", c.EventHandlers.cutEvent), o.EventRuler.on(i, "complete", t.oncomplete), o.EventRuler.on(i, "incomplete", t.onincomplete), o.EventRuler.on(i, "cleared", t.oncleared), !0 !== t.inputEventOnly && o.EventRuler.on(i, "keydown", c.EventHandlers.keyEvent), (s.mobile || t.inputEventOnly) && i.removeAttribute("maxLength"), o.EventRuler.on(i, "input", c.EventHandlers.inputFallBackEvent)), o.EventRuler.on(i, "setvalue", c.EventHandlers.setValueEvent), a.getBufferTemplate.call(e).join(""), e.undoValue = e._valueGet(!0); var d = (i.inputmask.shadowRoot || i.ownerDocument).activeElement; if ("" !== i.inputmask._valueGet(!0) || !1 === t.clearMaskOnLostFocus || d === i) { (0, r.applyInputValue)(i, i.inputmask._valueGet(!0), t); var p = a.getBuffer.call(e).slice(); !1 === l.isComplete.call(e, p) && t.clearIncomplete && a.resetMaskSet.call(e), t.clearMaskOnLostFocus && d !== i && (-1 === a.getLastValidPosition.call(e) ? p = [] : r.clearOptionalTail.call(e, p)), (!1 === t.clearMaskOnLostFocus || t.showMaskOnFocus && d === i || "" !== i.inputmask._valueGet(!0)) && (0, r.writeBuffer)(i, p), d === i && a.caret.call(e, i, a.seekNext.call(e, a.getLastValidPosition.call(e))) } } }; var n = i(2839), a = i(8711), r = i(7760), o = i(9716), s = i(9845), l = i(7215), c = i(6030) }, 9695: function (e, t) { Object.defineProperty(t, "__esModule", { value: !0 }), t.default = function (e, t, i, n) { this.matches = [], this.openGroup = e || !1, this.alternatorGroup = !1, this.isGroup = e || !1, this.isOptional = t || !1, this.isQuantifier = i || !1, this.isAlternator = n || !1, this.quantifier = { min: 1, max: 1 } } }, 3194: function () { Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", { value: function (e, t) { if (null == this) throw new TypeError('"this" is null or not defined'); var i = Object(this), n = i.length >>> 0; if (0 === n) return !1; for (var a = 0 | t, r = Math.max(a >= 0 ? a : n - Math.abs(a), 0); r < n;) { if (i[r] === e) return !0; r++ } return !1 } }) }, 9302: function () { var e = Function.bind.call(Function.call, Array.prototype.reduce), t = Function.bind.call(Function.call, Object.prototype.propertyIsEnumerable), i = Function.bind.call(Function.call, Array.prototype.concat), n = Object.keys; Object.entries || (Object.entries = function (a) { return e(n(a), (function (e, n) { return i(e, "string" == typeof n && t(a, n) ? [[n, a[n]]] : []) }), []) }) }, 7149: function () { function e(t) { return e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { return typeof e } : function (e) { return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e }, e(t) } "function" != typeof Object.getPrototypeOf && (Object.getPrototypeOf = "object" === e("test".__proto__) ? function (e) { return e.__proto__ } : function (e) { return e.constructor.prototype }) }, 4013: function () { String.prototype.includes || (String.prototype.includes = function (e, t) { return "number" != typeof t && (t = 0), !(t + e.length > this.length) && -1 !== this.indexOf(e, t) }) }, 8711: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.caret = function (e, t, i, n, a) { var r, o = this, s = this.opts; if (void 0 === t) return "selectionStart" in e && "selectionEnd" in e ? (t = e.selectionStart, i = e.selectionEnd) : window.getSelection ? (r = window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode !== e && r.commonAncestorContainer !== e || (t = r.startOffset, i = r.endOffset) : document.selection && document.selection.createRange && (i = (t = 0 - (r = document.selection.createRange()).duplicate().moveStart("character", -e.inputmask._valueGet().length)) + r.text.length), { begin: n ? t : c.call(o, t), end: n ? i : c.call(o, i) }; if (Array.isArray(t) && (i = o.isRTL ? t[0] : t[1], t = o.isRTL ? t[1] : t[0]), void 0 !== t.begin && (i = o.isRTL ? t.begin : t.end, t = o.isRTL ? t.end : t.begin), "number" == typeof t) { t = n ? t : c.call(o, t), i = "number" == typeof (i = n ? i : c.call(o, i)) ? i : t; var l = parseInt(((e.ownerDocument.defaultView || window).getComputedStyle ? (e.ownerDocument.defaultView || window).getComputedStyle(e, null) : e.currentStyle).fontSize) * i; if (e.scrollLeft = l > e.scrollWidth ? l : 0, e.inputmask.caretPos = { begin: t, end: i }, s.insertModeVisual && !1 === s.insertMode && t === i && (a || i++), e === (e.inputmask.shadowRoot || e.ownerDocument).activeElement) if ("setSelectionRange" in e) e.setSelectionRange(t, i); else if (window.getSelection) { if (r = document.createRange(), void 0 === e.firstChild || null === e.firstChild) { var u = document.createTextNode(""); e.appendChild(u) } r.setStart(e.firstChild, t < e.inputmask._valueGet().length ? t : e.inputmask._valueGet().length), r.setEnd(e.firstChild, i < e.inputmask._valueGet().length ? i : e.inputmask._valueGet().length), r.collapse(!0); var f = window.getSelection(); f.removeAllRanges(), f.addRange(r) } else e.createTextRange && ((r = e.createTextRange()).collapse(!0), r.moveEnd("character", i), r.moveStart("character", t), r.select()) } }, t.determineLastRequiredPosition = function (e) { var t, i, r = this, s = r.maskset, l = r.dependencyLib, c = n.getMaskTemplate.call(r, !0, o.call(r), !0, !0), u = c.length, f = o.call(r), d = {}, p = s.validPositions[f], h = void 0 !== p ? p.locator.slice() : void 0; for (t = f + 1; t < c.length; t++)h = (i = n.getTestTemplate.call(r, t, h, t - 1)).locator.slice(), d[t] = l.extend(!0, {}, i); var v = p && void 0 !== p.alternation ? p.locator[p.alternation] : void 0; for (t = u - 1; t > f && (((i = d[t]).match.optionality || i.match.optionalQuantifier && i.match.newBlockMarker || v && (v !== d[t].locator[p.alternation] && 1 != i.match.static || !0 === i.match.static && i.locator[p.alternation] && a.checkAlternationMatch.call(r, i.locator[p.alternation].toString().split(","), v.toString().split(",")) && "" !== n.getTests.call(r, t)[0].def)) && c[t] === n.getPlaceholder.call(r, t, i.match)); t--)u--; return e ? { l: u, def: d[u] ? d[u].match : void 0 } : u }, t.determineNewCaretPosition = function (e, t, i) { var a = this, c = a.maskset, u = a.opts; t && (a.isRTL ? e.end = e.begin : e.begin = e.end); if (e.begin === e.end) { switch (i = i || u.positionCaretOnClick) { case "none": break; case "select": e = { begin: 0, end: r.call(a).length }; break; case "ignore": e.end = e.begin = l.call(a, o.call(a)); break; case "radixFocus": if (a.clicked > 1 && 0 == c.validPositions.length) break; if (function (e) { if ("" !== u.radixPoint && 0 !== u.digits) { var t = c.validPositions; if (void 0 === t[e] || t[e].input === n.getPlaceholder.call(a, e)) { if (e < l.call(a, -1)) return !0; var i = r.call(a).indexOf(u.radixPoint); if (-1 !== i) { for (var o = 0, s = t.length; o < s; o++)if (t[o] && i < o && t[o].input !== n.getPlaceholder.call(a, o)) return !1; return !0 } } } return !1 }(e.begin)) { var f = r.call(a).join("").indexOf(u.radixPoint); e.end = e.begin = u.numericInput ? l.call(a, f) : f; break } default: var d = e.begin, p = o.call(a, d, !0), h = l.call(a, -1 !== p || s.call(a, 0) ? p : -1); if (d <= h) e.end = e.begin = s.call(a, d, !1, !0) ? d : l.call(a, d); else { var v = c.validPositions[p], m = n.getTestTemplate.call(a, h, v ? v.match.locator : void 0, v), g = n.getPlaceholder.call(a, h, m.match); if ("" !== g && r.call(a)[h] !== g && !0 !== m.match.optionalQuantifier && !0 !== m.match.newBlockMarker || !s.call(a, h, u.keepStatic, !0) && m.match.def === g) { var y = l.call(a, h); (d >= y || d === h) && (h = y) } e.end = e.begin = h } }return e } }, t.getBuffer = r, t.getBufferTemplate = function () { var e = this.maskset; void 0 === e._buffer && (e._buffer = n.getMaskTemplate.call(this, !1, 1), void 0 === e.buffer && (e.buffer = e._buffer.slice())); return e._buffer }, t.getLastValidPosition = o, t.isMask = s, t.resetMaskSet = function (e) { var t = this.maskset; t.buffer = void 0, !0 !== e && (t.validPositions = [], t.p = 0) }, t.seekNext = l, t.seekPrevious = function (e, t) { var i = this, a = e - 1; if (e <= 0) return 0; for (; a > 0 && (!0 === t && (!0 !== n.getTest.call(i, a).match.newBlockMarker || !s.call(i, a, void 0, !0)) || !0 !== t && !s.call(i, a, void 0, !0));)a--; return a }, t.translatePosition = c; var n = i(4713), a = i(7215); function r(e) { var t = this, i = t.maskset; return void 0 !== i.buffer && !0 !== e || (i.buffer = n.getMaskTemplate.call(t, !0, o.call(t), !0), void 0 === i._buffer && (i._buffer = i.buffer.slice())), i.buffer } function o(e, t, i) { var n = this.maskset, a = -1, r = -1, o = i || n.validPositions; void 0 === e && (e = -1); for (var s = 0, l = o.length; s < l; s++)o[s] && (t || !0 !== o[s].generatedInput) && (s <= e && (a = s), s >= e && (r = s)); return -1 === a || a == e ? r : -1 == r || e - a < r - e ? a : r } function s(e, t, i) { var a = this, r = this.maskset, o = n.getTestTemplate.call(a, e).match; if ("" === o.def && (o = n.getTest.call(a, e).match), !0 !== o.static) return o.fn; if (!0 === i && void 0 !== r.validPositions[e] && !0 !== r.validPositions[e].generatedInput) return !0; if (!0 !== t && e > -1) { if (i) { var s = n.getTests.call(a, e); return s.length > 1 + ("" === s[s.length - 1].match.def ? 1 : 0) } var l = n.determineTestTemplate.call(a, e, n.getTests.call(a, e)), c = n.getPlaceholder.call(a, e, l.match); return l.match.def !== c } return !1 } function l(e, t, i) { var a = this; void 0 === i && (i = !0); for (var r = e + 1; "" !== n.getTest.call(a, r).match.def && (!0 === t && (!0 !== n.getTest.call(a, r).match.newBlockMarker || !s.call(a, r, void 0, !0)) || !0 !== t && !s.call(a, r, void 0, i));)r++; return r } function c(e) { var t = this.opts, i = this.el; return !this.isRTL || "number" != typeof e || t.greedy && "" === t.placeholder || !i || (e = this._valueGet().length - e) < 0 && (e = 0), e } }, 4713: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.determineTestTemplate = c, t.getDecisionTaker = o, t.getMaskTemplate = function (e, t, i, n, a) { var r = this, o = this.opts, u = this.maskset, f = o.greedy; a && o.greedy && (o.greedy = !1, r.maskset.tests = {}); t = t || 0; var p, h, v, m, g = [], y = 0; do { if (!0 === e && u.validPositions[y]) h = (v = a && u.validPositions[y].match.optionality && void 0 === u.validPositions[y + 1] && (!0 === u.validPositions[y].generatedInput || u.validPositions[y].input == o.skipOptionalPartCharacter && y > 0) ? c.call(r, y, d.call(r, y, p, y - 1)) : u.validPositions[y]).match, p = v.locator.slice(), g.push(!0 === i ? v.input : !1 === i ? h.nativeDef : s.call(r, y, h)); else { h = (v = l.call(r, y, p, y - 1)).match, p = v.locator.slice(); var k = !0 !== n && (!1 !== o.jitMasking ? o.jitMasking : h.jit); (m = (m && h.static && h.def !== o.groupSeparator && null === h.fn || u.validPositions[y - 1] && h.static && h.def !== o.groupSeparator && null === h.fn) && u.tests[y]) || !1 === k || void 0 === k || "number" == typeof k && isFinite(k) && k > y ? g.push(!1 === i ? h.nativeDef : s.call(r, g.length, h)) : m = !1 } y++ } while (!0 !== h.static || "" !== h.def || t > y); "" === g[g.length - 1] && g.pop(); !1 === i && void 0 !== u.maskLength || (u.maskLength = y - 1); return o.greedy = f, g }, t.getPlaceholder = s, t.getTest = u, t.getTestTemplate = l, t.getTests = d, t.isSubsetOf = f; var n, a = (n = i(2394)) && n.__esModule ? n : { default: n }; function r(e, t) { var i = (null != e.alternation ? e.mloc[o(e)] : e.locator).join(""); if ("" !== i) for (; i.length < t;)i += "0"; return i } function o(e) { var t = e.locator[e.alternation]; return "string" == typeof t && t.length > 0 && (t = t.split(",")[0]), void 0 !== t ? t.toString() : "" } function s(e, t, i) { var n = this.opts, a = this.maskset; if (void 0 !== (t = t || u.call(this, e).match).placeholder || !0 === i) return "function" == typeof t.placeholder ? t.placeholder(n) : t.placeholder; if (!0 === t.static) { if (e > -1 && void 0 === a.validPositions[e]) { var r, o = d.call(this, e), s = []; if (o.length > 1 + ("" === o[o.length - 1].match.def ? 1 : 0)) for (var l = 0; l < o.length; l++)if ("" !== o[l].match.def && !0 !== o[l].match.optionality && !0 !== o[l].match.optionalQuantifier && (!0 === o[l].match.static || void 0 === r || !1 !== o[l].match.fn.test(r.match.def, a, e, !0, n)) && (s.push(o[l]), !0 === o[l].match.static && (r = o[l]), s.length > 1 && /[0-9a-bA-Z]/.test(s[0].match.def))) return n.placeholder.charAt(e % n.placeholder.length) } return t.def } return n.placeholder.charAt(e % n.placeholder.length) } function l(e, t, i) { return this.maskset.validPositions[e] || c.call(this, e, d.call(this, e, t ? t.slice() : t, i)) } function c(e, t) { var i = this.opts, n = 0, a = function (e, t) { var i = 0, n = !1; t.forEach((function (e) { e.match.optionality && (0 !== i && i !== e.match.optionality && (n = !0), (0 === i || i > e.match.optionality) && (i = e.match.optionality)) })), i && (0 == e || 1 == t.length ? i = 0 : n || (i = 0)); return i }(e, t); e = e > 0 ? e - 1 : 0; var o, s, l, c = r(u.call(this, e)); i.greedy && t.length > 1 && "" === t[t.length - 1].match.def && (n = 1); for (var f = 0; f < t.length - n; f++) { var d = t[f]; o = r(d, c.length); var p = Math.abs(o - c); (void 0 === s || "" !== o && p < s || l && !i.greedy && l.match.optionality && l.match.optionality - a > 0 && "master" === l.match.newBlockMarker && (!d.match.optionality || d.match.optionality - a < 1 || !d.match.newBlockMarker) || l && !i.greedy && l.match.optionalQuantifier && !d.match.optionalQuantifier) && (s = p, l = d) } return l } function u(e, t) { var i = this.maskset; return i.validPositions[e] ? i.validPositions[e] : (t || d.call(this, e))[0] } function f(e, t, i) { function n(e) { for (var t, i = [], n = -1, a = 0, r = e.length; a < r; a++)if ("-" === e.charAt(a)) for (t = e.charCodeAt(a + 1); ++n < t;)i.push(String.fromCharCode(n)); else n = e.charCodeAt(a), i.push(e.charAt(a)); return i.join("") } return e.match.def === t.match.nativeDef || !(!(i.regex || e.match.fn instanceof RegExp && t.match.fn instanceof RegExp) || !0 === e.match.static || !0 === t.match.static) && -1 !== n(t.match.fn.toString().replace(/[[\]/]/g, "")).indexOf(n(e.match.fn.toString().replace(/[[\]/]/g, ""))) } function d(e, t, i) { var n, r, o = this, s = this.dependencyLib, l = this.maskset, u = this.opts, d = this.el, p = l.maskToken, h = t ? i : 0, v = t ? t.slice() : [0], m = [], g = !1, y = t ? t.join("") : ""; function k(t, i, r, s) { function c(r, s, p) { function v(e, t) { var i = 0 === t.matches.indexOf(e); return i || t.matches.every((function (n, a) { return !0 === n.isQuantifier ? i = v(e, t.matches[a - 1]) : Object.prototype.hasOwnProperty.call(n, "matches") && (i = v(e, n)), !i })), i } function x(e, t, i) { var n, a; if ((l.tests[e] || l.validPositions[e]) && (l.tests[e] || [l.validPositions[e]]).every((function (e, r) { if (e.mloc[t]) return n = e, !1; var o = void 0 !== i ? i : e.alternation, s = void 0 !== e.locator[o] ? e.locator[o].toString().indexOf(t) : -1; return (void 0 === a || s < a) && -1 !== s && (n = e, a = s), !0 })), n) { var r = n.locator[n.alternation]; return (n.mloc[t] || n.mloc[r] || n.locator).slice((void 0 !== i ? i : n.alternation) + 1) } return void 0 !== i ? x(e, t) : void 0 } function P(e, t) { var i = e.alternation, n = void 0 === t || i === t.alternation && -1 === e.locator[i].toString().indexOf(t.locator[i]); if (!n && i > t.alternation) for (var a = t.alternation; a < i; a++)if (e.locator[a] !== t.locator[a]) { i = a, n = !0; break } if (n) { e.mloc = e.mloc || {}; var r = e.locator[i]; if (void 0 !== r) { if ("string" == typeof r && (r = r.split(",")[0]), void 0 === e.mloc[r] && (e.mloc[r] = e.locator.slice()), void 0 !== t) { for (var o in t.mloc) "string" == typeof o && (o = o.split(",")[0]), void 0 === e.mloc[o] && (e.mloc[o] = t.mloc[o]); e.locator[i] = Object.keys(e.mloc).join(",") } return !0 } e.alternation = void 0 } return !1 } function w(e, t) { if (e.locator.length !== t.locator.length) return !1; for (var i = e.alternation + 1; i < e.locator.length; i++)if (e.locator[i] !== t.locator[i]) return !1; return !0 } if (h > e + u._maxTestPos) throw "Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. " + l.mask; if (h === e && void 0 === r.matches) { if (m.push({ match: r, locator: s.reverse(), cd: y, mloc: {} }), !r.optionality || void 0 !== p || !(u.definitions && u.definitions[r.nativeDef] && u.definitions[r.nativeDef].optional || a.default.prototype.definitions[r.nativeDef] && a.default.prototype.definitions[r.nativeDef].optional)) return !0; g = !0, h = e } else if (void 0 !== r.matches) { if (r.isGroup && p !== r) return function () { if (r = c(t.matches[t.matches.indexOf(r) + 1], s, p)) return !0 }(); if (r.isOptional) return function () { var t = r, a = m.length; if (r = k(r, i, s, p), m.length > 0) { if (m.forEach((function (e, t) { t >= a && (e.match.optionality = e.match.optionality ? e.match.optionality + 1 : 1) })), n = m[m.length - 1].match, void 0 !== p || !v(n, t)) return r; g = !0, h = e } }(); if (r.isAlternator) return function () { o.hasAlternator = !0; var n, a, v, y = r, k = [], b = m.slice(), S = s.length, M = !1, _ = i.length > 0 ? i.shift() : -1; if (-1 === _ || "string" == typeof _) { var O, E = h, T = i.slice(), j = []; if ("string" == typeof _) j = _.split(","); else for (O = 0; O < y.matches.length; O++)j.push(O.toString()); if (void 0 !== l.excludes[e]) { for (var A = j.slice(), D = 0, B = l.excludes[e].length; D < B; D++) { var C = l.excludes[e][D].toString().split(":"); s.length == C[1] && j.splice(j.indexOf(C[0]), 1) } 0 === j.length && (delete l.excludes[e], j = A) } (!0 === u.keepStatic || isFinite(parseInt(u.keepStatic)) && E >= u.keepStatic) && (j = j.slice(0, 1)); for (var R = 0; R < j.length; R++) { O = parseInt(j[R]), m = [], i = "string" == typeof _ && x(h, O, S) || T.slice(); var L = y.matches[O]; if (L && c(L, [O].concat(s), p)) r = !0; else if (0 === R && (M = !0), L && L.matches && L.matches.length > y.matches[0].matches.length) break; n = m.slice(), h = E, m = []; for (var F = 0; F < n.length; F++) { var I = n[F], N = !1; I.match.jit = I.match.jit || M, I.alternation = I.alternation || S, P(I); for (var V = 0; V < k.length; V++) { var G = k[V]; if ("string" != typeof _ || void 0 !== I.alternation && j.includes(I.locator[I.alternation].toString())) { if (I.match.nativeDef === G.match.nativeDef) { N = !0, P(G, I); break } if (f(I, G, u)) { P(I, G) && (N = !0, k.splice(k.indexOf(G), 0, I)); break } if (f(G, I, u)) { P(G, I); break } if (v = G, !0 === (a = I).match.static && !0 !== v.match.static && v.match.fn.test(a.match.def, l, e, !1, u, !1)) { w(I, G) || void 0 !== d.inputmask.userOptions.keepStatic ? P(I, G) && (N = !0, k.splice(k.indexOf(G), 0, I)) : u.keepStatic = !0; break } } } N || k.push(I) } } m = b.concat(k), h = e, g = m.length > 0, r = k.length > 0, i = T.slice() } else r = c(y.matches[_] || t.matches[_], [_].concat(s), p); if (r) return !0 }(); if (r.isQuantifier && p !== t.matches[t.matches.indexOf(r) - 1]) return function () { for (var a = r, o = !1, f = i.length > 0 ? i.shift() : 0; f < (isNaN(a.quantifier.max) ? f + 1 : a.quantifier.max) && h <= e; f++) { var d = t.matches[t.matches.indexOf(a) - 1]; if (r = c(d, [f].concat(s), d)) { if (m.forEach((function (t, i) { (n = b(d, t.match) ? t.match : m[m.length - 1].match).optionalQuantifier = f >= a.quantifier.min, n.jit = (f + 1) * (d.matches.indexOf(n) + 1) > a.quantifier.jit, n.optionalQuantifier && v(n, d) && (g = !0, h = e, u.greedy && null == l.validPositions[e - 1] && f > a.quantifier.min && -1 != ["*", "+"].indexOf(a.quantifier.max) && (m.pop(), y = void 0), o = !0, r = !1), !o && n.jit && (l.jitOffset[e] = d.matches.length - d.matches.indexOf(n)) })), o) break; return !0 } } }(); if (r = k(r, i, s, p)) return !0 } else h++ } for (var p = i.length > 0 ? i.shift() : 0; p < t.matches.length; p++)if (!0 !== t.matches[p].isQuantifier) { var v = c(t.matches[p], [p].concat(r), s); if (v && h === e) return v; if (h > e) break } } function b(e, t) { var i = -1 != e.matches.indexOf(t); return i || e.matches.forEach((function (e, n) { void 0 === e.matches || i || (i = b(e, t)) })), i } if (e > -1) { if (void 0 === t) { for (var x, P = e - 1; void 0 === (x = l.validPositions[P] || l.tests[P]) && P > -1;)P--; void 0 !== x && P > -1 && (v = function (e, t) { var i, n = []; return Array.isArray(t) || (t = [t]), t.length > 0 && (void 0 === t[0].alternation || !0 === u.keepStatic ? 0 === (n = c.call(o, e, t.slice()).locator.slice()).length && (n = t[0].locator.slice()) : t.forEach((function (e) { "" !== e.def && (0 === n.length ? (i = e.alternation, n = e.locator.slice()) : e.locator[i] && -1 === n[i].toString().indexOf(e.locator[i]) && (n[i] += "," + e.locator[i])) }))), n }(P, x), y = v.join(""), h = P) } if (l.tests[e] && l.tests[e][0].cd === y) return l.tests[e]; for (var w = v.shift(); w < p.length; w++) { if (k(p[w], v, [w]) && h === e || h > e) break } } return (0 === m.length || g) && m.push({ match: { fn: null, static: !0, optionality: !1, casing: null, def: "", placeholder: "" }, locator: [], mloc: {}, cd: y }), void 0 !== t && l.tests[e] ? r = s.extend(!0, [], m) : (l.tests[e] = s.extend(!0, [], m), r = l.tests[e]), m.forEach((function (e) { e.match.optionality = e.match.defOptionality || !1 })), r } }, 7215: function (e, t, i) { Object.defineProperty(t, "__esModule", { value: !0 }), t.alternate = s, t.checkAlternationMatch = function (e, t, i) { for (var n, a = this.opts.greedy ? t : t.slice(0, 1), r = !1, o = void 0 !== i ? i.split(",") : [], s = 0; s < o.length; s++)-1 !== (n = e.indexOf(o[s])) && e.splice(n, 1); for (var l = 0; l < e.length; l++)if (a.includes(e[l])) { r = !0; break } return r }, t.handleRemove = function (e, t, i, o, l) { var c = this, u = this.maskset, f = this.opts; if ((f.numericInput || c.isRTL) && (t === a.keys.Backspace ? t = a.keys.Delete : t === a.keys.Delete && (t = a.keys.Backspace), c.isRTL)) { var d = i.end; i.end = i.begin, i.begin = d } var p, h = r.getLastValidPosition.call(c, void 0, !0); i.end >= r.getBuffer.call(c).length && h >= i.end && (i.end = h + 1); t === a.keys.Backspace ? i.end - i.begin < 1 && (i.begin = r.seekPrevious.call(c, i.begin)) : t === a.keys.Delete && i.begin === i.end && (i.end = r.isMask.call(c, i.end, !0, !0) ? i.end + 1 : r.seekNext.call(c, i.end) + 1); if (!1 !== (p = v.call(c, i))) { if (!0 !== o && !1 !== f.keepStatic || null !== f.regex && -1 !== n.getTest.call(c, i.begin).match.def.indexOf("|")) { var m = s.call(c, !0); if (m) { var g = void 0 !== m.caret ? m.caret : m.pos ? r.seekNext.call(c, m.pos.begin ? m.pos.begin : m.pos) : r.getLastValidPosition.call(c, -1, !0); (t !== a.keys.Delete || i.begin > g) && i.begin } } !0 !== o && (u.p = t === a.keys.Delete ? i.begin + p : i.begin, u.p = r.determineNewCaretPosition.call(c, { begin: u.p, end: u.p }, !1, !1 === f.insertMode && t === a.keys.Backspace ? "none" : void 0).begin) } }, t.isComplete = c, t.isSelection = u, t.isValid = f, t.refreshFromBuffer = p, t.revalidateMask = v; var n = i(4713), a = i(2839), r = i(8711), o = i(6030); function s(e, t, i, a, o, l) { var c, u, d, p, h, v, m, g, y, k, b, x = this, P = this.dependencyLib, w = this.opts, S = x.maskset, M = P.extend(!0, [], S.validPositions), _ = P.extend(!0, {}, S.tests), O = !1, E = !1, T = void 0 !== o ? o : r.getLastValidPosition.call(x); if (l && (k = l.begin, b = l.end, l.begin > l.end && (k = l.end, b = l.begin)), -1 === T && void 0 === o) c = 0, u = (p = n.getTest.call(x, c)).alternation; else for (; T >= 0; T--)if ((d = S.validPositions[T]) && void 0 !== d.alternation) { if (T <= (e || 0) && p && p.locator[d.alternation] !== d.locator[d.alternation]) break; c = T, u = S.validPositions[c].alternation, p = d } if (void 0 !== u) { m = parseInt(c), S.excludes[m] = S.excludes[m] || [], !0 !== e && S.excludes[m].push((0, n.getDecisionTaker)(p) + ":" + p.alternation); var j = [], A = -1; for (h = m; h < r.getLastValidPosition.call(x, void 0, !0) + 1; h++)-1 === A && e <= h && void 0 !== t && (j.push(t), A = j.length - 1), (v = S.validPositions[h]) && !0 !== v.generatedInput && (void 0 === l || h < k || h >= b) && j.push(v.input), delete S.validPositions[h]; for (-1 === A && void 0 !== t && (j.push(t), A = j.length - 1); void 0 !== S.excludes[m] && S.excludes[m].length < 10;) { for (S.tests = {}, r.resetMaskSet.call(x, !0), O = !0, h = 0; h < j.length && (g = O.caret || r.getLastValidPosition.call(x, void 0, !0) + 1, y = j[h], O = f.call(x, g, y, !1, a, !0)); h++)h === A && (E = O), 1 == e && O && (E = { caretPos: h }); if (O) break; if (r.resetMaskSet.call(x), p = n.getTest.call(x, m), S.validPositions = P.extend(!0, [], M), S.tests = P.extend(!0, {}, _), !S.excludes[m]) { E = s.call(x, e, t, i, a, m - 1, l); break } var D = (0, n.getDecisionTaker)(p); if (-1 !== S.excludes[m].indexOf(D + ":" + p.alternation)) { E = s.call(x, e, t, i, a, m - 1, l); break } for (S.excludes[m].push(D + ":" + p.alternation), h = m; h < r.getLastValidPosition.call(x, void 0, !0) + 1; h++)delete S.validPositions[h] } } return E && !1 === w.keepStatic || delete S.excludes[m], E } function l(e, t, i) { var n = this.opts, r = this.maskset; switch (n.casing || t.casing) { case "upper": e = e.toUpperCase(); break; case "lower": e = e.toLowerCase(); break; case "title": var o = r.validPositions[i - 1]; e = 0 === i || o && o.input === String.fromCharCode(a.keyCode.Space) ? e.toUpperCase() : e.toLowerCase(); break; default: if ("function" == typeof n.casing) { var s = Array.prototype.slice.call(arguments); s.push(r.validPositions), e = n.casing.apply(this, s) } }return e } function c(e) { var t = this, i = this.opts, a = this.maskset; if ("function" == typeof i.isComplete) return i.isComplete(e, i); if ("*" !== i.repeat) { var o = !1, s = r.determineLastRequiredPosition.call(t, !0), l = r.seekPrevious.call(t, s.l); if (void 0 === s.def || s.def.newBlockMarker || s.def.optionality || s.def.optionalQuantifier) { o = !0; for (var c = 0; c <= l; c++) { var u = n.getTestTemplate.call(t, c).match; if (!0 !== u.static && void 0 === a.validPositions[c] && !0 !== u.optionality && !0 !== u.optionalQuantifier || !0 === u.static && e[c] !== n.getPlaceholder.call(t, c, u)) { o = !1; break } } } return o } } function u(e) { var t = this.opts.insertMode ? 0 : 1; return this.isRTL ? e.begin - e.end > t : e.end - e.begin > t } function f(e, t, i, a, o, d, m) { var g = this, y = this.dependencyLib, k = this.opts, b = g.maskset; i = !0 === i; var x = e; function P(e) { if (void 0 !== e) { if (void 0 !== e.remove && (Array.isArray(e.remove) || (e.remove = [e.remove]), e.remove.sort((function (e, t) { return g.isRTL ? e.pos - t.pos : t.pos - e.pos })).forEach((function (e) { v.call(g, { begin: e, end: e + 1 }) })), e.remove = void 0), void 0 !== e.insert && (Array.isArray(e.insert) || (e.insert = [e.insert]), e.insert.sort((function (e, t) { return g.isRTL ? t.pos - e.pos : e.pos - t.pos })).forEach((function (e) { "" !== e.c && f.call(g, e.pos, e.c, void 0 === e.strict || e.strict, void 0 !== e.fromIsValid ? e.fromIsValid : a) })), e.insert = void 0), e.refreshFromBuffer && e.buffer) { var t = e.refreshFromBuffer; p.call(g, !0 === t ? t : t.start, t.end, e.buffer), e.refreshFromBuffer = void 0 } void 0 !== e.rewritePosition && (x = e.rewritePosition, e = !0) } return e } function w(t, i, o) { var s = !1; return n.getTests.call(g, t).every((function (c, f) { var d = c.match; if (r.getBuffer.call(g, !0), !1 !== (s = (!d.jit || void 0 !== b.validPositions[r.seekPrevious.call(g, t)]) && (null != d.fn ? d.fn.test(i, b, t, o, k, u.call(g, e)) : (i === d.def || i === k.skipOptionalPartCharacter) && "" !== d.def && { c: n.getPlaceholder.call(g, t, d, !0) || d.def, pos: t }))) { var p = void 0 !== s.c ? s.c : i, h = t; return p = p === k.skipOptionalPartCharacter && !0 === d.static ? n.getPlaceholder.call(g, t, d, !0) || d.def : p, !0 !== (s = P(s)) && void 0 !== s.pos && s.pos !== t && (h = s.pos), !0 !== s && void 0 === s.pos && void 0 === s.c ? !1 : (!1 === v.call(g, e, y.extend({}, c, { input: l.call(g, p, d, h) }), a, h) && (s = !1), !1) } return !0 })), s } void 0 !== e.begin && (x = g.isRTL ? e.end : e.begin); var S = !0, M = y.extend(!0, {}, b.validPositions); if (!1 === k.keepStatic && void 0 !== b.excludes[x] && !0 !== o && !0 !== a) for (var _ = x; _ < (g.isRTL ? e.begin : e.end); _++)void 0 !== b.excludes[_] && (b.excludes[_] = void 0, delete b.tests[_]); if ("function" == typeof k.preValidation && !0 !== a && !0 !== d && (S = P(S = k.preValidation.call(g, r.getBuffer.call(g), x, t, u.call(g, e), k, b, e, i || o))), !0 === S) { if (S = w(x, t, i), (!i || !0 === a) && !1 === S && !0 !== d) { var O = b.validPositions[x]; if (!O || !0 !== O.match.static || O.match.def !== t && t !== k.skipOptionalPartCharacter) { if (k.insertMode || void 0 === b.validPositions[r.seekNext.call(g, x)] || e.end > x) { var E = !1; if (b.jitOffset[x] && void 0 === b.validPositions[r.seekNext.call(g, x)] && !1 !== (S = f.call(g, x + b.jitOffset[x], t, !0, !0)) && (!0 !== o && (S.caret = x), E = !0), e.end > x && (b.validPositions[x] = void 0), !E && !r.isMask.call(g, x, k.keepStatic && 0 === x)) for (var T = x + 1, j = r.seekNext.call(g, x, !1, 0 !== x); T <= j; T++)if (!1 !== (S = w(T, t, i))) { S = h.call(g, x, void 0 !== S.pos ? S.pos : T) || S, x = T; break } } } else S = { caret: r.seekNext.call(g, x) } } g.hasAlternator && !0 !== o && !i && (!1 === S && k.keepStatic && (c.call(g, r.getBuffer.call(g)) || 0 === x) ? S = s.call(g, x, t, i, a, void 0, e) : (u.call(g, e) && b.tests[x] && b.tests[x].length > 1 && k.keepStatic || 1 == S && !0 !== k.numericInput && b.tests[x] && b.tests[x].length > 1 && r.getLastValidPosition.call(g, void 0, !0) > x) && (S = s.call(g, !0))), !0 === S && (S = { pos: x }) } if ("function" == typeof k.postValidation && !0 !== a && !0 !== d) { var A = k.postValidation.call(g, r.getBuffer.call(g, !0), void 0 !== e.begin ? g.isRTL ? e.end : e.begin : e, t, S, k, b, i, m); void 0 !== A && (S = !0 === A ? S : A) } S && void 0 === S.pos && (S.pos = x), !1 === S || !0 === d ? (r.resetMaskSet.call(g, !0), b.validPositions = y.extend(!0, [], M)) : h.call(g, void 0, x, !0); var D = P(S); void 0 !== g.maxLength && (r.getBuffer.call(g).length > g.maxLength && !a && (r.resetMaskSet.call(g, !0), b.validPositions = y.extend(!0, [], M), D = !1)); return D } function d(e, t, i) { for (var a = this.maskset, r = !1, o = n.getTests.call(this, e), s = 0; s < o.length; s++) { if (o[s].match && (o[s].match.nativeDef === t.match[i.shiftPositions ? "def" : "nativeDef"] && (!i.shiftPositions || !t.match.static) || o[s].match.nativeDef === t.match.nativeDef || i.regex && !o[s].match.static && o[s].match.fn.test(t.input, a, e, !1, i))) { r = !0; break } if (o[s].match && o[s].match.def === t.match.nativeDef) { r = void 0; break } } return !1 === r && void 0 !== a.jitOffset[e] && (r = d.call(this, e + a.jitOffset[e], t, i)), r } function p(e, t, i) { var n, a, s = this, l = this.maskset, c = this.opts, u = this.dependencyLib, f = c.skipOptionalPartCharacter, d = s.isRTL ? i.slice().reverse() : i; if (c.skipOptionalPartCharacter = "", !0 === e) r.resetMaskSet.call(s), l.tests = {}, e = 0, t = i.length, a = r.determineNewCaretPosition.call(s, { begin: 0, end: 0 }, !1).begin; else { for (n = e; n < t; n++)delete l.validPositions[n]; a = e } var p = new u.Event("keypress"); for (n = e; n < t; n++) { p.key = d[n].toString(), s.ignorable = !1; var h = o.EventHandlers.keypressEvent.call(s, p, !0, !1, !1, a); !1 !== h && void 0 !== h && (a = h.forwardPosition) } c.skipOptionalPartCharacter = f } function h(e, t, i) { var a = this, o = this.maskset, s = this.dependencyLib; if (void 0 === e) for (e = t - 1; e > 0 && !o.validPositions[e]; e--); for (var l = e; l < t; l++) { if (void 0 === o.validPositions[l] && !r.isMask.call(a, l, !1)) if (0 == l ? n.getTest.call(a, l) : o.validPositions[l - 1]) { var c = n.getTests.call(a, l).slice(); "" === c[c.length - 1].match.def && c.pop(); var u, d = n.determineTestTemplate.call(a, l, c); if (d && (!0 !== d.match.jit || "master" === d.match.newBlockMarker && (u = o.validPositions[l + 1]) && !0 === u.match.optionalQuantifier) && ((d = s.extend({}, d, { input: n.getPlaceholder.call(a, l, d.match, !0) || d.match.def })).generatedInput = !0, v.call(a, l, d, !0), !0 !== i)) { var p = o.validPositions[t].input; return o.validPositions[t] = void 0, f.call(a, t, p, !0, !0) } } } } function v(e, t, i, a) { var o = this, s = this.maskset, l = this.opts, c = this.dependencyLib; function u(e, t, i) { var n = t[e]; if (void 0 !== n && !0 === n.match.static && !0 !== n.match.optionality && (void 0 === t[0] || void 0 === t[0].alternation)) { var a = i.begin <= e - 1 ? t[e - 1] && !0 === t[e - 1].match.static && t[e - 1] : t[e - 1], r = i.end > e + 1 ? t[e + 1] && !0 === t[e + 1].match.static && t[e + 1] : t[e + 1]; return a && r } return !1 } var p = 0, h = void 0 !== e.begin ? e.begin : e, v = void 0 !== e.end ? e.end : e, m = !0; if (e.begin > e.end && (h = e.end, v = e.begin), a = void 0 !== a ? a : h, void 0 === i && (h !== v || l.insertMode && void 0 !== s.validPositions[a] || void 0 === t || t.match.optionalQuantifier || t.match.optionality)) { var g, y = c.extend(!0, {}, s.validPositions), k = r.getLastValidPosition.call(o, void 0, !0); for (s.p = h, g = k; g >= h; g--)delete s.validPositions[g], void 0 === t && delete s.tests[g + 1]; var b, x, P = a, w = P; for (t && (s.validPositions[a] = c.extend(!0, {}, t), w++, P++), g = t ? v : v - 1; g <= k; g++) { if (void 0 !== (b = y[g]) && !0 !== b.generatedInput && (g >= v || g >= h && u(g, y, { begin: h, end: v }))) { for (; "" !== n.getTest.call(o, w).match.def;) { if (!1 !== (x = d.call(o, w, b, l)) || "+" === b.match.def) { "+" === b.match.def && r.getBuffer.call(o, !0); var S = f.call(o, w, b.input, "+" !== b.match.def, !0); if (m = !1 !== S, P = (S.pos || w) + 1, !m && x) break } else m = !1; if (m) { void 0 === t && b.match.static && g === e.begin && p++; break } if (!m && r.getBuffer.call(o), w > s.maskLength) break; w++ } "" == n.getTest.call(o, w).match.def && (m = !1), w = P } if (!m) break } if (!m) return s.validPositions = c.extend(!0, [], y), r.resetMaskSet.call(o, !0), !1 } else t && n.getTest.call(o, a).match.cd === t.match.cd && (s.validPositions[a] = c.extend(!0, {}, t)); return r.resetMaskSet.call(o, !0), p } } }, t = {}; function i(n) { var a = t[n]; if (void 0 !== a) return a.exports; var r = t[n] = { exports: {} }; return e[n](r, r.exports, i), r.exports } var n = {}; return function () { var e, t = n; Object.defineProperty(t, "__esModule", { value: !0 }), t.default = void 0, i(7149), i(3194), i(9302), i(4013), i(3851), i(219), i(207), i(5296); var a = ((e = i(2394)) && e.__esModule ? e : { default: e }).default; t.default = a }(), n }() }));

/*!
 jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
 Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
 Version: v3.2.60
 Url: https://xdsoft.net/jodit/
 License(s): GPL-2.0-or-later OR MIT OR Commercial
*/

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var o=t();for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(window,function(){return i={},n.m=o=[function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(2),i=o(4),r=o(9),s=(d.detach=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},d.unwrap=function(e){var t=e.parentNode,o=e;if(t){for(;o.firstChild;)t.insertBefore(o.firstChild,o);d.safeRemove(o)}},d.each=function(e,t){var o=e.firstChild;if(o)for(;o;){if(!1===t.call(o,o)||!d.each(o,t))return!1;o=d.next(o,function(e){return!!e},e)}return!0},d.replace=function(e,t,o,i,n){void 0===o&&(o=!1),void 0===i&&(i=!1);var r="string"==typeof t?n.createElement(t):t;if(!i)for(;e.firstChild;)r.appendChild(e.firstChild);return o&&Array.from(e.attributes).forEach(function(e){r.setAttribute(e.name,e.value)}),e.parentNode&&e.parentNode.replaceChild(r,e),r},d.isEmptyTextNode=function(e){return e&&e.nodeType===Node.TEXT_NODE&&(!e.nodeValue||0===e.nodeValue.replace(n.INVISIBLE_SPACE_REG_EXP,"").length)},d.isEmpty=function(e,t){return void 0===t&&(t=/^(img|svg|canvas|input|textarea|form)$/),!e||(e.nodeType===Node.TEXT_NODE?null===e.nodeValue||0===r.trim(e.nodeValue).length:!e.nodeName.toLowerCase().match(t)&&d.each(e,function(e){if(e&&e.nodeType===Node.TEXT_NODE&&null!==e.nodeValue&&0!==r.trim(e.nodeValue).length||e&&e.nodeType===Node.ELEMENT_NODE&&t.test(e.nodeName.toLowerCase()))return!1}))},d.isNode=function(e,t){return!("object"!=typeof t||!t||"function"!=typeof t.Node&&"object"!=typeof t.Node)&&e instanceof t.Node},d.isCell=function(e,t){return d.isNode(e,t)&&/^(td|th)$/i.test(e.nodeName)},d.isImage=function(e,t){return d.isNode(e,t)&&/^(img|svg|picture|canvas)$/i.test(e.nodeName)},d.isBlock=function(e,t){return e&&"object"==typeof e&&d.isNode(e,t)&&n.IS_BLOCK.test(e.nodeName)},d.isInlineBlock=function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE&&!!~["inline","inline-block"].indexOf(""+i.css(e,"display"))},d.canSplitBlock=function(e,t){return e&&e instanceof t.HTMLElement&&this.isBlock(e,t)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&void 0!==e.style&&!/^(fixed|absolute)/i.test(e.style.position)},d.prev=function(e,t,o,i){return void 0===i&&(i=!0),d.find(e,t,o,!1,"previousSibling",!!i&&"lastChild")},d.next=function(e,t,o,i){return void 0===i&&(i=!0),d.find(e,t,o,void 0,void 0,i?"firstChild":"")},d.prevWithClass=function(e,t){return this.prev(e,function(e){return e&&e.nodeType===Node.ELEMENT_NODE&&e.classList.contains(t)},e.parentNode)},d.nextWithClass=function(e,t){return this.next(e,function(e){return e&&e.nodeType===Node.ELEMENT_NODE&&e.classList.contains(t)},e.parentNode)},d.find=function(e,t,o,i,n,r){if(void 0===i&&(i=!1),void 0===n&&(n="nextSibling"),void 0===r&&(r="firstChild"),i&&t(e))return e;var s,a=e;do{if(t(s=a[n]))return s||!1;if(r&&s&&s[r]){var l=d.find(s[r],t,s,!0,n,r);if(l)return l}a=s=s||a.parentNode}while(a&&a!==o);return!1},d.findWithCurrent=function(e,t,o,i,n){void 0===i&&(i="nextSibling"),void 0===n&&(n="firstChild");var r=e;do{if(t(r))return r||!1;if(n&&r&&r[n]){var s=d.findWithCurrent(r[n],t,r,i,n);if(s)return s}for(;r&&!r[i]&&r!==o;)r=r.parentNode;r&&r[i]&&r!==o&&(r=r[i])}while(r&&r!==o);return!1},d.up=function(e,t,o){var i=e;if(!e)return!1;do{if(t(i))return i;if(i===o||!i.parentNode)break;i=i.parentNode}while(i&&i!==o);return!1},d.closest=function(e,t,o){return d.up(e,"function"==typeof t?t:t instanceof RegExp?function(e){return e&&t.test(e.nodeName)}:function(e){return e&&RegExp("^("+t+")$","i").test(e.nodeName)},o)},d.after=function(e,t){var o=e.parentNode;o&&(o.lastChild===e?o.appendChild(t):o.insertBefore(t,e.nextSibling))},d.moveContent=function(e,t,o){void 0===o&&(o=!1);var i=(e.ownerDocument||document).createDocumentFragment();[].slice.call(e.childNodes).forEach(function(e){e.nodeType===Node.TEXT_NODE&&e.nodeValue===n.INVISIBLE_SPACE||i.appendChild(e)}),o&&t.firstChild?t.insertBefore(i,t.firstChild):t.appendChild(i)},d.all=function(e,t,o){void 0===o&&(o=!1);var i=e.childNodes?Array.prototype.slice.call(e.childNodes):[];if(t(e))return e;o&&(i=i.reverse()),i.forEach(function(e){d.all(e,t,o)})},d.safeRemove=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},d.wrapInline=function(e,t,o){for(var i,n=e,r=e,s=o.selection.save(),a=!1;a=!1,(i=n.previousSibling)&&!d.isBlock(i,o.editorWindow)&&(a=!0,n=i),a;);for(;a=!1,(i=r.nextSibling)&&!d.isBlock(i,o.editorWindow)&&(a=!0,r=i),a;);var l="string"==typeof t?o.create.inside.element(t):t;n.parentNode&&n.parentNode.insertBefore(l,n);for(var c=n;c&&(c=n.nextSibling,l.appendChild(n),n!==r&&c);)n=c;return o.selection.restore(s),l},d.wrap=function(e,t,o){var i=o.selection.save(),n="string"==typeof t?o.editorDocument.createElement(t):t;return e.parentNode?(e.parentNode.insertBefore(n,e),n.appendChild(e),o.selection.restore(i),n):null},d.findInline=function(e,t,o){var i=e,n=null;do{if(!i)break;if((n=t?i.previousSibling:i.nextSibling)||!i.parentNode||i.parentNode===o||!d.isInlineBlock(i.parentNode))break;i=i.parentNode}while(!n);for(;n&&d.isInlineBlock(n)&&(t?n.lastChild:n.firstChild);)n=t?n.lastChild:n.firstChild;return n},d.contains=function(e,t){for(;t.parentNode;){if(t.parentNode===e)return!0;t=t.parentNode}return!1},d.isOrContains=function(e,t,o){return void 0===o&&(o=!1),t&&e&&(e===t&&!o||d.contains(e,t))},d);function d(){}t.Dom=s},function(e,t,o){"use strict";o.r(t),o.d(t,"__extends",function(){return n}),o.d(t,"__assign",function(){return r}),o.d(t,"__rest",function(){return s}),o.d(t,"__decorate",function(){return a}),o.d(t,"__param",function(){return l}),o.d(t,"__metadata",function(){return c}),o.d(t,"__awaiter",function(){return d}),o.d(t,"__generator",function(){return u}),o.d(t,"__exportStar",function(){return f}),o.d(t,"__values",function(){return p}),o.d(t,"__read",function(){return h}),o.d(t,"__spread",function(){return v}),o.d(t,"__spreadArrays",function(){return m}),o.d(t,"__await",function(){return g}),o.d(t,"__asyncGenerator",function(){return _}),o.d(t,"__asyncDelegator",function(){return b}),o.d(t,"__asyncValues",function(){return y}),o.d(t,"__makeTemplateObject",function(){return w}),o.d(t,"__importStar",function(){return E}),o.d(t,"__importDefault",function(){return C});var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)};function n(e,t){function o(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var r=function(){return(r=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function s(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&!~t.indexOf(i)&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)!~t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(o[i[n]]=e[i[n]])}return o}function a(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;0<=a;a--)(n=e[a])&&(s=(r<3?n(s):3<r?n(t,o,s):n(t,o))||s);return 3<r&&s&&Object.defineProperty(t,o,s),s}function l(o,i){return function(e,t){i(e,t,o)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(r,s,a,l){return new(a=a||Promise)(function(e,t){function o(e){try{n(l.next(e))}catch(e){t(e)}}function i(e){try{n(l.throw(e))}catch(e){t(e)}}function n(t){t.done?e(t.value):new a(function(e){e(t.value)}).then(o,i)}n((l=l.apply(r,s||[])).next())})}function u(o,i){var n,r,s,e,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function(t){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(s=2&t[0]?r.return:t[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,t[1])).done)return s;switch(r=0,s&&(t=[2&t[0],s.value]),t[0]){case 0:case 1:s=t;break;case 4:return a.label++,{value:t[1],done:!1};case 5:a.label++,r=t[1],t=[0];continue;case 7:t=a.ops.pop(),a.trys.pop();continue;default:if(!(s=0<(s=a.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){a=0;continue}if(3===t[0]&&(!s||s[0]<t[1]&&t[1]<s[3])){a.label=t[1];break}if(6===t[0]&&a.label<s[1]){a.label=s[1],s=t;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(t);break}s[2]&&a.ops.pop(),a.trys.pop();continue}t=i.call(o,a)}catch(e){t=[6,e],r=0}finally{n=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,e])}}}function f(e,t){for(var o in e)t.hasOwnProperty(o)||(t[o]=e[o])}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],o=0;return t?t.call(e):{next:function(){return e&&e.length<=o&&(e=void 0),{value:e&&e[o++],done:!e}}}}function h(e,t){var o="function"==typeof Symbol&&e[Symbol.iterator];if(!o)return e;var i,n,r=o.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)s.push(i.value)}catch(e){n={error:e}}finally{try{i&&!i.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function m(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;var i=Array(e),n=0;for(t=0;t<o;t++)for(var r=arguments[t],s=0,a=r.length;s<a;s++,n++)i[n]=r[s];return i}function g(e){return this instanceof g?(this.v=e,this):new g(e)}function _(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,r=o.apply(e,t||[]),s=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(i){r[i]&&(n[i]=function(o){return new Promise(function(e,t){1<s.push([i,o,e,t])||a(i,o)})})}function a(e,t){try{(o=r[e](t)).value instanceof g?Promise.resolve(o.value.v).then(l,c):d(s[0][2],o)}catch(e){d(s[0][3],e)}var o}function l(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function b(i){var e,n;return e={},t("next"),t("throw",function(e){throw e}),t("return"),e[Symbol.iterator]=function(){return this},e;function t(t,o){e[t]=i[t]?function(e){return(n=!n)?{value:g(i[t](e)),done:"return"===t}:o?o(e):e}:o}}function y(a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=a[Symbol.asyncIterator];return t?t.call(a):(a=p(a),e={},o("next"),o("throw"),o("return"),e[Symbol.asyncIterator]=function(){return this},e);function o(s){e[s]=a[s]&&function(r){return new Promise(function(e,t){var o,i,n;o=e,i=t,n=(r=a[s](r)).done,Promise.resolve(r.value).then(function(e){o({value:e,done:n})},i)})}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}function C(e){return e&&e.__esModule?e:{default:e}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INVISIBLE_SPACE="\ufeff",t.INVISIBLE_SPACE_REG_EXP=/[\uFEFF]/g,t.INVISIBLE_SPACE_REG_EXP_END=/[\uFEFF]+$/g,t.INVISIBLE_SPACE_REG_EXP_START=/^[\uFEFF]+/g,t.SPACE_REG_EXP=/[\s\n\t\r\uFEFF\u200b]+/g,t.SPACE_REG_EXP_START=/^[\s\n\t\r\uFEFF\u200b]+/g,t.SPACE_REG_EXP_END=/[\s\n\t\r\uFEFF\u200b]+$/g,t.IS_BLOCK=/^(PRE|DIV|P|LI|H[1-6]|BLOCKQUOTE|TD|TH|TABLE|BODY|HTML|FIGCAPTION|FIGURE|DT|DD)$/i,t.IS_INLINE=/^(STRONG|SPAN|I|EM|B|SUP|SUB)$/,t.MAY_BE_REMOVED_WITH_KEY=/^(IMG|BR|IFRAME|SCRIPT|INPUT|TEXTAREA|HR|JODIT|JODIT-MEDIA)$/,t.KEY_BACKSPACE=8,t.KEY_TAB=9,t.KEY_ENTER=13,t.KEY_ESC=27,t.KEY_LEFT=37,t.KEY_UP=38,t.KEY_RIGHT=39,t.KEY_DOWN=40,t.KEY_DELETE=46,t.KEY_F=70,t.KEY_R=82,t.KEY_H=72,t.KEY_Y=89,t.KEY_V=86,t.KEY_Z=90,t.KEY_F3=114,t.NEARBY=5,t.ACCURACY=10,t.COMMAND_KEYS=[t.KEY_BACKSPACE,t.KEY_DELETE,t.KEY_UP,t.KEY_DOWN,t.KEY_RIGHT,t.KEY_LEFT,t.KEY_ENTER,t.KEY_ESC,t.KEY_F3,t.KEY_TAB],t.BR="br",t.PARAGRAPH="p",t.MODE_WYSIWYG=1,t.MODE_SOURCE=2,t.MODE_SPLIT=3,t.IS_IE="undefined"!=typeof navigator&&(!!~navigator.userAgent.indexOf("MSIE")||/rv:11.0/i.test(navigator.userAgent)),t.URL_LIST=t.IS_IE?"url":"text/uri-list",t.TEXT_PLAIN=t.IS_IE?"text":"text/plain",t.TEXT_HTML=t.IS_IE?"text":"text/html",t.MARKER_CLASS="jodit_selection_marker",t.EMULATE_DBLCLICK_TIMEOUT=300,t.JODIT_SELECTED_CELL_MARKER="data-jodit-selected-cell",t.INSERT_AS_HTML="insert_as_html",t.INSERT_CLEAR_HTML="insert_clear_html",t.INSERT_AS_TEXT="insert_as_text",t.INSERT_ONLY_TEXT="insert_only_text",t.IS_MAC="undefined"!=typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),t.KEY_ALIASES={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:t.IS_MAC?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),i=o(2),n=o(17),c=n.Widget.TabsWidget,l=n.Widget.FileSelectorWidget,s=o(0),d=o(4),u=o(6),f=o(14),p=(Object.defineProperty(r,"defaultOptions",{get:function(){return r.__defaultOptions||(r.__defaultOptions=new r),r.__defaultOptions},enumerable:!0,configurable:!0}),r);function r(){this.iframe=!1,this.license="",this.preset="custom",this.presets={inline:{inline:!0,toolbar:!1,toolbarInline:!0,popup:{selection:["bold","underline","italic","ul","ol","outdent","indent","\n","fontsize","brush","paragraph","link","align","cut","dots"]},showXPathInStatusbar:!1,showCharsCounter:!1,showWordsCounter:!1,showPlaceholder:!1}},this.ownerDocument="undefined"!=typeof document?document:null,this.ownerWindow="undefined"!=typeof window?window:null,this.zIndex=0,this.readonly=!1,this.disabled=!1,this.activeButtonsInReadOnly=["source","fullsize","print","about","dots","selectall"],this.toolbarButtonSize="middle",this.allowTabNavigation=!1,this.inline=!1,this.theme="default",this.saveModeInStorage=!1,this.saveHeightInStorage=!1,this.spellcheck=!0,this.editorCssClass=!1,this.style=!1,this.triggerChangeEvent=!0,this.width="auto",this.minWidth="200px",this.maxWidth="100%",this.height="auto",this.minHeight=200,this.direction="",this.language="auto",this.debugLanguage=!1,this.i18n="en",this.tabIndex=-1,this.toolbar=!0,this.showTooltip=!0,this.showTooltipDelay=500,this.useNativeTooltip=!1,this.enter=i.PARAGRAPH,this.enterBlock=i.PARAGRAPH,this.defaultMode=i.MODE_WYSIWYG,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.extraButtons=[],this.sizeLG=900,this.sizeMD=700,this.sizeSM=400,this.buttons=["source","|","bold","strikethrough","underline","italic","|","superscript","subscript","|","ul","ol","|","outdent","indent","|","font","fontsize","brush","paragraph","|","image","file","video","table","link","|","align","undo","redo","\n","cut","hr","eraser","copyformat","|","symbol","fullsize","selectall","print","about"],this.buttonsMD=["source","|","bold","italic","|","ul","ol","|","font","fontsize","brush","paragraph","|","image","table","link","|","align","|","undo","redo","|","hr","eraser","copyformat","fullsize","dots"],this.buttonsSM=["source","|","bold","italic","|","ul","ol","|","fontsize","brush","paragraph","|","image","table","link","|","align","|","undo","redo","|","eraser","copyformat","fullsize","dots"],this.buttonsXS=["bold","image","|","brush","paragraph","|","align","|","undo","redo","|","eraser","dots"],this.events={},this.textIcons=!1,this.showBrowserColorPicker=!1}t.Config=p,t.OptionsDefault=function(e){var n=this,r=p.defaultOptions,s=this;if(void 0!==(s.plainOptions=e)&&"object"==typeof e){var a=function(e,t){if("preset"===t&&void 0!==r.presets[e.preset]){var o=r.presets[e.preset];Object.keys(o).forEach(a.bind(n,o))}var i=r[t];s[t]="object"!=typeof i||null===i||["ownerWindow","ownerDocument"].includes(t)||Array.isArray(i)?e[t]:f.extend(!0,{},i,e[t])};Object.keys(e).forEach(a.bind(this,e))}},p.prototype.controls={print:{exec:function(e){var t=window.open("","PRINT");t&&(e.options.iframe?(e.events.fire("generateDocumentStructure.iframe",t.document,e),t.document.body.innerHTML=e.value):(t.document.write('<!doctype html><html lang="'+d.defaultLanguage(e.options.language)+'"><head><title></title></head><body>'+e.value+"</body></html>"),t.document.close()),t.focus(),t.print(),t.close())},mode:i.MODE_SOURCE+i.MODE_WYSIWYG},about:{exec:function(e){var t=e.getInstance("Dialog");t.setTitle(e.i18n("About Jodit")),t.setContent('<div class="jodit_about">\t\t\t\t\t\t\t\t\t\t<div>'+e.i18n("Jodit Editor")+" v."+e.getVersion()+" </div><div>"+e.i18n("License: %s",d.isLicense(e.options.license)?d.normalizeLicense(e.options.license):e.i18n("GNU General Public License, version 2 or later"))+'</div><div><a href="https://xdsoft.net/jodit/" target="_blank">http://xdsoft.net/jodit/</a></div><div><a href="https://xdsoft.net/jodit/doc/" target="_blank">'+e.i18n("Jodit User's Guide")+"</a> "+e.i18n("contains detailed help for using")+"</div><div>"+e.i18n("Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.")+"</div></div>"),t.open()},tooltip:"About Jodit",mode:i.MODE_SOURCE+i.MODE_WYSIWYG},hr:{command:"insertHorizontalRule",tags:["hr"],tooltip:"Insert Horizontal Line"},image:{popup:function(n,e,t,r){var s=null;return e&&e.nodeType!==Node.TEXT_NODE&&("IMG"===e.tagName||d.$$("img",e).length)&&(s="IMG"===e.tagName?e:d.$$("img",e)[0]),l(n,{filebrowser:function(o){return a.__awaiter(void 0,void 0,void 0,function(){var t;return a.__generator(this,function(e){switch(e.label){case 0:if(!o.files||!o.files.length)return[3,4];t=0,e.label=1;case 1:return t<o.files.length?[4,n.selection.insertImage(o.baseurl+o.files[t],null,n.options.imageDefaultWidth)]:[3,4];case 2:e.sent(),e.label=3;case 3:return t+=1,[3,1];case 4:return r(),[2]}})})},upload:function(o){return a.__awaiter(void 0,void 0,void 0,function(){var t;return a.__generator(this,function(e){switch(e.label){case 0:if(!o.files||!o.files.length)return[3,4];t=0,e.label=1;case 1:return t<o.files.length?[4,n.selection.insertImage(o.baseurl+o.files[t],null,n.options.imageDefaultWidth)]:[3,4];case 2:e.sent(),e.label=3;case 3:return t+=1,[3,1];case 4:return r(),[2]}})})},url:function(o,i){return a.__awaiter(void 0,void 0,void 0,function(){var t;return a.__generator(this,function(e){switch(e.label){case 0:return(t=s||n.create.inside.element("img")).setAttribute("src",o),t.setAttribute("alt",i),s?[3,2]:[4,n.selection.insertImage(t,null,n.options.imageDefaultWidth)];case 1:e.sent(),e.label=2;case 2:return r(),[2]}})})}},s,r)},tags:["img"],tooltip:"Insert Image"},file:{popup:function(o,e,t,i){function n(e,t){void 0===t&&(t=""),o.selection.insertNode(o.create.inside.fromHTML('<a href="'+e+'" title="'+t+'">'+(t||e)+"</a>"))}var r=null;return e&&("A"===e.nodeName||s.Dom.closest(e,"A",o.editor))&&(r="A"===e.nodeName?e:s.Dom.closest(e,"A",o.editor)),l(o,{filebrowser:function(e){if(e.files&&e.files.length){var t=void 0;for(t=0;t<e.files.length;t+=1)n(e.baseurl+e.files[t])}i()},upload:function(e){var t;if(e.files&&e.files.length)for(t=0;t<e.files.length;t+=1)n(e.baseurl+e.files[t]);i()},url:function(e,t){r?(r.setAttribute("href",e),r.setAttribute("title",t)):n(e,t),i()}},r,i,!1)},tags:["a"],tooltip:"Insert file"},video:{popup:function(t,e,o,i){function n(e){t.selection.restore(l),t.selection.insertHTML(e),i()}var r=t.create.fromHTML('<form class="jodit_form">\n\t\t\t\t\t\t\t\t\t\t\t\t<input required name="code" placeholder="http://" type="url"/>\n\t\t\t\t\t\t\t\t\t\t\t\t<button type="submit">'+t.i18n("Insert")+"</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</form>"),s=t.create.fromHTML('<form class="jodit_form">\n\t\t\t\t\t\t\t\t\t\t\t\t<textarea required name="code" placeholder="'+t.i18n("Embed code")+'"></textarea>\n\t\t\t\t\t\t\t\t\t\t\t\t<button type="submit">'+t.i18n("Insert")+"</button>\n\t\t\t\t\t\t\t\t\t\t\t\t</form>"),a={},l=t.selection.save();return t.options.textIcons?(a[t.i18n("Link")]=r,a[t.i18n("Code")]=s):(a[u.ToolbarIcon.getIcon("link")+"&nbsp;"+t.i18n("Link")]=r,a[u.ToolbarIcon.getIcon("source")+"&nbsp;"+t.i18n("Code")]=s),s.addEventListener("submit",function(e){return e.preventDefault(),d.trim(d.val(s,"textarea[name=code]"))?n(d.val(s,"textarea[name=code]")):(s.querySelector("textarea[name=code]").focus(),s.querySelector("textarea[name=code]").classList.add("jodit_error")),!1}),r.addEventListener("submit",function(e){return e.preventDefault(),d.isURL(d.val(r,"input[name=code]"))?n(d.convertMediaURLToVideoEmbed(d.val(r,"input[name=code]"))):(r.querySelector("input[name=code]").focus(),r.querySelector("input[name=code]").classList.add("jodit_error")),!1}),c(t,a)},tags:["iframe"],tooltip:"Insert youtube/vimeo video"}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1);i.__exportStar(o(29),t),i.__exportStar(o(5),t),i.__exportStar(o(14),t),i.__exportStar(o(33),t),i.__exportStar(o(83),t),i.__exportStar(o(46),t),i.__exportStar(o(19),t),i.__exportStar(o(23),t),i.__exportStar(o(9),t),i.__exportStar(o(50),t),i.__exportStar(o(102),t),i.__exportStar(o(103),t),i.__exportStar(o(10),t),i.__exportStar(o(53),t),i.__exportStar(o(104),t),i.__exportStar(o(54),t),i.__exportStar(o(24),t),i.__exportStar(o(51),t),i.__exportStar(o(105),t),i.__exportStar(o(31),t),i.__exportStar(o(30),t),i.__exportStar(o(52),t),i.__exportStar(o(55),t),i.__exportStar(o(106),t),i.__exportStar(o(11),t),i.__exportStar(o(32),t),i.__exportStar(o(107),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1);i.__exportStar(o(42),t),i.__exportStar(o(18),t),i.__exportStar(o(77),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(n.exists=function(e){return void 0!==n.icons[e]},n.getIcon=function(e,t){return void 0===t&&(t="<span></span>"),n.icons[e]||n.icons[e.replace(/-/g,"_")]||n.icons[e.toLowerCase()]||t},n.icons={},n);function n(){}t.ToolbarIcon=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(1),r=o(8),s=(n.__extends(a,i=r.Component),a);function a(e){var t=i.call(this,e)||this;return t.destruct=function(){t.isDestructed||(t.jodit.events&&t.jodit.events.off("beforeDestruct",t.destruct),t.beforeDestruct(t.jodit),i.prototype.destruct.call(t))},e.events.on("afterInit",t.afterInit.bind(t,e)).on("beforeDestruct",t.destruct),t}t.Plugin=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(15),n=(Object.defineProperty(r.prototype,"isDestructed",{get:function(){return this.__isDestructed},enumerable:!0,configurable:!0}),r.prototype.destruct=function(){this.jodit&&(this.jodit=void 0),this.__isDestructed=!0},r);function r(e){this.__isDestructed=!1,e&&e instanceof r&&i.isJoditObject(this.jodit=e)&&e.components.push(this)}t.Component=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1);i.__exportStar(o(47),t),i.__exportStar(o(48),t),i.__exportStar(o(87),t),i.__exportStar(o(34),t)},function(e,p,t){"use strict";Object.defineProperty(p,"__esModule",{value:!0});var h=t(21),v=t(22),m=t(49),g=t(47),_=t(48);p.css=function(e,t,o,i){void 0===i&&(i=!1);var n=/^left|top|bottom|right|width|min|max|height|margin|padding|font-size/i;if(h.isPlainObject(t)||void 0!==o){var r=function(e,t,o){null!=o&&n.test(t)&&v.isNumeric(""+o)&&(o=parseInt(""+o,10)+"px"),void 0!==o&&p.css(e,t,void 0,!0)!==m.normilizeCSSValue(t,o)&&(e.style[t]=o)};if(h.isPlainObject(t))for(var s=Object.keys(t),a=0;a<s.length;a+=1)r(e,g.camelCase(s[a]),t[s[a]]);else r(e,g.camelCase(t),o);return""}var l=_.fromCamelCase(t),c=e.ownerDocument||document,d=!!c&&(c.defaultView||c.parentWindow),u=e.style[t],f=void 0!==u&&""!==u?u:d&&!i?d.getComputedStyle(e).getPropertyValue(l):"";return n.test(t)&&/^[\-+]?[0-9.]+px$/.test(""+f)&&(f=parseInt(""+f,10)),m.normilizeCSSValue(t,f)}},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r=t(2),s=1;i.$$=function(e,t){var o;if(!/:scope/.test(e)||!r.IS_IE||t&&t.nodeType===Node.DOCUMENT_NODE)o=t.querySelectorAll(e);else{var i=t.id,n=i||"_selector_id_"+(""+Math.random()).slice(2)+s++;e=e.replace(/:scope/g,"#"+n),i||t.setAttribute("id",n),o=t.parentNode.querySelectorAll(e),i||t.removeAttribute("id")}return[].slice.call(o)},i.getXPathByElement=function(t,e){if(!t||1!==t.nodeType)return"";if(!t.parentNode||e===t)return"";if(t.id)return"//*[@id='"+t.id+"']";var o=[].filter.call(t.parentNode.childNodes,function(e){return e.nodeName===t.nodeName});return i.getXPathByElement(t.parentNode,e)+"/"+t.nodeName.toLowerCase()+(1<o.length?"["+(1+Array.from(o).indexOf(t))+"]":"")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o(1),u=o(3),a=o(2),l=o(0),f=o(4),i=o(31),n=o(30),c=o(56),d=o(59),p=o(109),h=o(60),v=o(35),r=o(61),m=o(116),Jodit=function(r){function Jodit(t,i){var n=r.call(this)||this;if(n.__defaultStyleDisplayKey="data-jodit-default-style-display",n.__defaultClassesKey="data-jodit-default-classes",n.commands={},n.__selectionLocked=null,n.__wasReadOnly=!1,n.storage=new v.Storage(new h.LocalStorageProvider),n.iframe=null,n.__plugins={},n.mode=a.MODE_WYSIWYG,n.__callChangeCount=0,n.isInited=!1,n.options=new u.OptionsDefault(i),n.editorDocument=n.options.ownerDocument,n.editorWindow=n.options.ownerWindow,n.ownerDocument=n.options.ownerDocument,n.ownerWindow=n.options.ownerWindow,"string"==typeof t)try{n.element=n.ownerDocument.querySelector(t)}catch(e){throw Error('String "'+t+'" should be valid HTML selector')}else n.element=t;if(!n.element||"object"!=typeof n.element||n.element.nodeType!==Node.ELEMENT_NODE||!n.element.cloneNode)throw Error('Element "'+t+'" should be string or HTMLElement instance');n.element.attributes&&Array.from(n.element.attributes).forEach(function(e){var t=e.name,o=e.value;void 0===Jodit.defaultOptions[t]||i&&void 0!==i[t]||(~["readonly","disabled"].indexOf(t)&&(o=""===o||"true"===o),/^[0-9]+(\.)?([0-9]+)?$/.test(""+o)&&(o=+o),n.options[t]=o)}),n.options.events&&Object.keys(n.options.events).forEach(function(e){n.events.on(e,n.options.events[e])}),n.container.classList.add("jodit_container"),n.container.setAttribute("contenteditable","false"),n.selection=new d.Select(n),n.events.on("removeMarkers",function(){n.selection&&n.selection.removeMarkers()}),n.observer=new c.Observer(n);var o=null;n.options.inline&&(~["TEXTAREA","INPUT"].indexOf(n.element.nodeName)||(n.container=n.element,n.element.setAttribute(n.__defaultClassesKey,""+n.element.className),o=n.container.innerHTML,n.container.innerHTML=""),n.container.classList.add("jodit_inline"),n.container.classList.add("jodit_container")),n.element!==n.container&&(n.element.style.display&&n.element.setAttribute(n.__defaultStyleDisplayKey,n.element.style.display),n.element.style.display="none"),n.container.classList.add("jodit_"+(n.options.theme||"default")+"_theme"),n.options.zIndex&&(n.container.style.zIndex=""+parseInt(""+n.options.zIndex,10)),n.workplace=n.create.div("jodit_workplace",{contenteditable:!1}),n.options.toolbar&&n.toolbar.build(f.splitArray(n.options.buttons).concat(n.options.extraButtons),n.container);var e=n.options.toolbarButtonSize.toLowerCase();return n.container.classList.add("jodit_toolbar_size-"+(~["middle","large","small"].indexOf(e)?e:"middle")),n.options.textIcons&&n.container.classList.add("jodit_text_icons"),n.events.on(n.ownerWindow,"resize",function(){n.events&&n.events.fire("resize")}),n.container.appendChild(n.workplace),n.statusbar=new p.StatusBar(n,n.container),n.workplace.appendChild(n.progress_bar),n.element.parentNode&&n.element!==n.container&&n.element.parentNode.insertBefore(n.container,n.element),n.id=n.element.getAttribute("id")||""+(new Date).getTime(),n.editor=n.create.div("jodit_wysiwyg",{contenteditable:!0,"aria-disabled":!1,tabindex:n.options.tabIndex}),n.workplace.appendChild(n.editor),n.setNativeEditorValue(n.getElementValue()),s.__awaiter(n,void 0,void 0,function(){var t;return s.__generator(this,function(e){switch(e.label){case 0:return[4,this.beforeInitHook()];case 1:return e.sent(),[4,this.events.fire("beforeInit",this)];case 2:e.sent();try{this.__initPlugines()}catch(e){}return[4,this.__initEditor(o)];case 3:return e.sent(),this.isDestructed?[2]:((t=this.options).enableDragAndDropFileToEditor&&t.uploader&&(t.uploader.url||t.uploader.insertImageAsBase64URI)&&this.uploader.bind(this.editor),this.isInited=!0,this.events?[4,this.events.fire("afterInit",this)]:[3,5]);case 4:e.sent(),this.events.fire("afterConstructor",this),e.label=5;case 5:return[4,this.afterInitHook()];case 6:return e.sent(),[2]}})}),n}return s.__extends(Jodit,r),Object.defineProperty(Jodit.prototype,"value",{get:function(){return this.getEditorValue()},set:function(e){this.setEditorValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"defaultTimeout",{get:function(){return this.options&&this.options.observer?this.options.observer.timeout:Jodit.defaultOptions.observer.timeout},enumerable:!0,configurable:!0}),Jodit.Array=function(e){return new i.JoditArray(e)},Jodit.Object=function(e){return new n.JoditObject(e)},Jodit.fireEach=function(i){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];Object.keys(Jodit.instances).forEach(function(e){var t,o=Jodit.instances[e];!o.isDestructed&&o.events&&(t=o.events).fire.apply(t,s.__spreadArrays([i],n))})},Object.defineProperty(Jodit.prototype,"uploader",{get:function(){return this.getInstance("Uploader")},enumerable:!0,configurable:!0}),Object.defineProperty(Jodit.prototype,"filebrowser",{get:function(){return this.getInstance("FileBrowser")},enumerable:!0,configurable:!0}),Jodit.prototype.getElementValue=function(){return void 0!==this.element.value?this.element.value:this.element.innerHTML},Jodit.prototype.getNativeEditorValue=function(){return this.editor?this.editor.innerHTML:this.getElementValue()},Jodit.prototype.setNativeEditorValue=function(e){this.editor&&(this.editor.innerHTML=e)},Jodit.prototype.getEditorValue=function(e){var t;if(void 0===e&&(e=!0),void 0!==(t=this.events.fire("beforeGetValueFromEditor")))return t;t=this.getNativeEditorValue().replace(a.INVISIBLE_SPACE_REG_EXP,""),e&&(t=t.replace(/<span[^>]+id="jodit_selection_marker_[^>]+><\/span>/g,"")),"<br>"===t&&(t="");var o={value:t};return this.events.fire("afterGetValueFromEditor",o),o.value},Jodit.prototype.getEditorText=function(){if(this.editor)return this.editor.textContent||"";var e=this.create.inside.div();return e.innerHTML=this.getElementValue(),e.textContent||""},Jodit.prototype.setElementValue=function(e){if("string"!=typeof e&&void 0!==e)throw Error("value must be string");void 0!==e?this.element!==this.container&&(void 0!==this.element.value?this.element.value=e:this.element.innerHTML=e):e=this.getElementValue(),e!==this.getEditorValue()&&this.setEditorValue(e)},Jodit.prototype.setEditorValue=function(e){var t=this.events.fire("beforeSetValueToEditor",e);if(!1!==t)if("string"==typeof t&&(e=t),this.editor){if("string"!=typeof e&&void 0!==e)throw Error("value must be string");void 0!==e&&this.editor.innerHTML!==e&&this.setNativeEditorValue(e);var o=this.getElementValue(),i=this.getEditorValue();if(o!==i&&this.__callChangeCount<10){this.setElementValue(i),this.__callChangeCount+=1;try{this.events.fire("change",i,o)}finally{this.__callChangeCount=0}}}else void 0!==e&&this.setElementValue(e)},Jodit.prototype.registerCommand=function(e,t){var o=e.toLowerCase();if(void 0===this.commands[o]&&(this.commands[o]=[]),this.commands[o].push(t),"function"!=typeof t){var i=this.options.commandToHotkeys[o]||this.options.commandToHotkeys[e]||t.hotkeys;i&&this.registerHotkeyToCommand(i,o)}return this},Jodit.prototype.registerHotkeyToCommand=function(e,t){var o=this,i=f.asArray(e).map(f.normalizeKeyAliases).map(function(e){return e+".hotkey"}).join(" ");this.events.off(i).on(i,function(){return o.execCommand(t)})},Jodit.prototype.execCommand=function(e,t,o){if(void 0===t&&(t=!1),void 0===o&&(o=null),!this.options.readonly||"selectall"===e){var i;if(e=e.toLowerCase(),!1!==(i=this.events.fire("beforeCommand",e,t,o))&&(i=this.execCustomCommands(e,t,o)),!1!==i)if(this.selection.focus(),"selectall"===e)this.selection.select(this.editor,!0);else try{i=this.editorDocument.execCommand(e,t,o)}catch(e){}return this.events.fire("afterCommand",e,t,o),this.setEditorValue(),i}},Jodit.prototype.execCustomCommands=function(e,t,o){var i,n;if(void 0===t&&(t=!1),void 0===o&&(o=null),e=e.toLowerCase(),void 0!==this.commands[e]){for(var r,s=0;s<this.commands[e].length;s+=1)void 0!==(n=("function"==typeof(i=this.commands[e][s])?i:i.exec).call(this,e,t,o))&&(r=n);return r}},Jodit.prototype.lock=function(e){return void 0===e&&(e="any"),!!r.prototype.lock.call(this,e)&&(this.__selectionLocked=this.selection.save(),this.editor.classList.add("jodit_disabled"),!0)},Jodit.prototype.unlock=function(){return!!r.prototype.unlock.call(this)&&(this.editor.classList.remove("jodit_disabled"),this.__selectionLocked&&this.selection.restore(this.__selectionLocked),!0)},Jodit.prototype.getMode=function(){return this.mode},Jodit.prototype.isEditorMode=function(){return this.getRealMode()===a.MODE_WYSIWYG},Jodit.prototype.getRealMode=function(){if(this.getMode()!==a.MODE_SPLIT)return this.getMode();var e=this.ownerDocument.activeElement;return e&&(l.Dom.isOrContains(this.editor,e)||l.Dom.isOrContains(this.toolbar.container,e))?a.MODE_WYSIWYG:a.MODE_SOURCE},Jodit.prototype.setMode=function(e){var t=this,o=this.getMode(),i={mode:parseInt(""+e,10)},n=["jodit_wysiwyg_mode","jodit_source_mode","jodit_split_mode"];!1!==this.events.fire("beforeSetMode",i)&&(this.mode=f.inArray(i.mode,[a.MODE_SOURCE,a.MODE_WYSIWYG,a.MODE_SPLIT])?i.mode:a.MODE_WYSIWYG,this.options.saveModeInStorage&&this.storage.set("jodit_default_mode",this.mode),n.forEach(function(e){t.container.classList.remove(e)}),this.container.classList.add(n[this.mode-1]),o!==this.getMode()&&this.events.fire("afterSetMode"))},Jodit.prototype.toggleMode=function(){var e=this.getMode();f.inArray(e+1,[a.MODE_SOURCE,a.MODE_WYSIWYG,this.options.useSplitMode?a.MODE_SPLIT:9])?e+=1:e=a.MODE_WYSIWYG,this.setMode(e)},Jodit.prototype.i18n=function(e){for(var t=this,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];function n(e){return o.length?f.sprintf.apply(t,[e].concat(o)):e}var r,s=void 0!==this.options&&this.options.debugLanguage,a="auto"===u.Config.defaultOptions.language?f.defaultLanguage(u.Config.defaultOptions.language):u.Config.defaultOptions.language,l=f.defaultLanguage(this.options?this.options.language:a);if(r=void 0!==this.options&&void 0!==Jodit.lang[l]?Jodit.lang[l]:void 0!==Jodit.lang[a]?Jodit.lang[a]:Jodit.lang.en,void 0!==this.options&&void 0!==this.options.i18n[l]&&this.options.i18n[l][e])return n(this.options.i18n[l][e]);if("string"==typeof r[e]&&r[e])return n(r[e]);var c=e.toLowerCase();if("string"==typeof r[c]&&r[c])return n(r[c]);var d=m.ucfirst(e);return"string"==typeof r[d]&&r[d]?n(r[d]):s?"{"+e+"}":n("string"==typeof Jodit.lang.en[e]&&Jodit.lang.en[e]?Jodit.lang.en[e]:e)},Jodit.prototype.setDisabled=function(e){this.options.disabled=e;var t=this.__wasReadOnly;this.setReadOnly(e||t),this.__wasReadOnly=t,this.editor&&(this.editor.setAttribute("aria-disabled",""+e),this.container.classList.toggle("jodit_disabled",e),this.events.fire("disabled",e))},Jodit.prototype.getDisabled=function(){return this.options.disabled},Jodit.prototype.setReadOnly=function(e){this.__wasReadOnly!==e&&(this.__wasReadOnly=e,(this.options.readonly=e)?this.editor&&this.editor.removeAttribute("contenteditable"):this.editor&&this.editor.setAttribute("contenteditable","true"),this.events&&this.events.fire("readonly",e))},Jodit.prototype.getReadOnly=function(){return this.options.readonly},Jodit.prototype.beforeInitHook=function(){},Jodit.prototype.afterInitHook=function(){},Jodit.prototype.__initPlugines=function(){var t=this,e=this.options.disablePlugins,o=Array.isArray(e)?e.map(function(e){return e.toLowerCase()}):e.toLowerCase().split(/[\s,]+/);Object.keys(Jodit.plugins).forEach(function(e){~o.indexOf(e.toLowerCase())||(t.__plugins[e]=new Jodit.plugins[e](t))})},Jodit.prototype.__initEditor=function(i){return s.__awaiter(this,void 0,void 0,function(){var t,o;return s.__generator(this,function(e){switch(e.label){case 0:return[4,this.__createEditor()];case 1:if(e.sent(),this.isDestructed)return[2];this.element!==this.container?this.setElementValue():null!==i&&this.setEditorValue(i),t=(Jodit.instances[this.id]=this).options.defaultMode,this.options.saveModeInStorage&&null!==(o=this.storage.get("jodit_default_mode"))&&(t=parseInt(o,10)),this.setMode(t),this.options.readonly&&this.setReadOnly(!0),this.options.disabled&&this.setDisabled(!0);try{this.editorDocument.execCommand("defaultParagraphSeparator",!1,this.options.enter.toLowerCase())}catch(e){}try{this.editorDocument.execCommand("enableObjectResizing",!1,"false")}catch(e){}try{this.editorDocument.execCommand("enableInlineTableEditing",!1,"false")}catch(e){}return[2]}})})},Jodit.prototype.__createEditor=function(){return s.__awaiter(this,void 0,void 0,function(){var t,o,i,n=this;return s.__generator(this,function(e){switch(e.label){case 0:return t=this.editor,[4,this.events.fire("createEditor",this)];case 1:return o=e.sent(),this.isDestructed||(!1===o&&l.Dom.safeRemove(t),this.options.editorCssClass&&this.editor.classList.add(this.options.editorCssClass),this.options.style&&f.css(this.editor,this.options.style),this.events.on("synchro",function(){n.setEditorValue()}).on(this.editor,"selectionchange selectionstart keydown keyup keypress mousedown mouseup mousepress click copy cut dragstart drop dragover paste resize touchstart touchend focus blur",function(e){if(!n.options.readonly&&n.events&&n.events.fire){if(!1===n.events.fire(e.type,e))return!1;n.setEditorValue()}}),this.options.spellcheck&&this.editor.setAttribute("spellcheck","true"),this.options.direction&&(i="rtl"==this.options.direction.toLowerCase()?"rtl":"ltr",this.editor.style.direction=i,this.container.style.direction=i,this.editor.setAttribute("dir",i),this.container.setAttribute("dir",i),this.toolbar.setDirection(i)),this.options.triggerChangeEvent&&this.events.on("change",f.debounce(function(){n.events&&n.events.fire(n.element,"change")},this.defaultTimeout))),[2]}})})},Jodit.prototype.destruct=function(){var o=this;if(!this.isDestructed&&!1!==this.events.fire("beforeDestruct")&&this.editor){var e=this.getEditorValue();if(this.element!==this.container)if(this.element.hasAttribute(this.__defaultStyleDisplayKey)){var t=this.element.getAttribute(this.__defaultStyleDisplayKey);t&&(this.element.style.display=t,this.element.removeAttribute(this.__defaultStyleDisplayKey))}else this.element.style.display="";else this.element.hasAttribute(this.__defaultClassesKey)&&(this.element.className=this.element.getAttribute(this.__defaultClassesKey)||"",this.element.removeAttribute(this.__defaultClassesKey));this.element.hasAttribute("style")&&!this.element.getAttribute("style")&&this.element.removeAttribute("style"),Object.keys(this.__plugins).forEach(function(e){var t=o.__plugins[e];void 0!==t&&void 0!==t.destruct&&"function"==typeof t.destruct&&t.destruct(),delete o.__plugins[e]}),this.observer.destruct(),this.statusbar.destruct(),delete this.observer,delete this.statusbar,delete this.storage,this.components.forEach(function(e){void 0===e.destruct||"function"!=typeof e.destruct||e.isDestructed||e.destruct()}),this.components.length=0,this.commands={},delete this.selection,this.__selectionLocked=null,this.events.off(this.ownerWindow),this.events.off(this.ownerDocument),this.events.off(this.ownerDocument.body),this.events.off(this.element),this.events.off(this.editor),l.Dom.safeRemove(this.workplace),l.Dom.safeRemove(this.editor),l.Dom.safeRemove(this.progress_bar),l.Dom.safeRemove(this.iframe),this.container!==this.element&&l.Dom.safeRemove(this.container),delete this.workplace,delete this.editor,delete this.progress_bar,delete this.iframe,this.container===this.element&&(this.element.innerHTML=e),delete Jodit.instances[this.id],r.prototype.destruct.call(this),delete this.container}},Jodit.plugins={},Jodit.modules={},Jodit.instances={},Jodit.lang={},Jodit}(r.ViewWithToolbar);t.Jodit=Jodit},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(16);t.Dialog=i.Dialog;var n=o(136);t.Alert=n.Alert;var r=o(65);t.Promt=r.Promt;var s=o(66);t.Confirm=s.Confirm},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=o(30),v=o(31),m=o(32),g=o(21);t.extend=function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i,n,r,s,a,l,c,d=t.length,u=t[0]||{},f=1,p=!1;for("boolean"==typeof u&&(p=u,u=t[f]||{},f+=1),"object"!=typeof u&&"function"===m.type(u)&&(u={}),f===d&&(u=this,f+=1);f<d;f+=1)if(null!=(i=t[f]))for(c=Object.keys(i),l=0;l<c.length;l+=1)r=u[n=c[l]],u!==(s=i[n])&&(p&&s&&(g.isPlainObject(s)&&!(s instanceof h.JoditObject)||Array.isArray(s)&&!(s instanceof v.JoditArray))?(a=Array.isArray(s)?r&&Array.isArray(r)?r:[]:r&&g.isPlainObject(r)?r:{},u[n]=e(p,a,s)):void 0!==s&&(u[n]=s));return u}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isJoditObject=function(e){return!!(e&&e instanceof Object&&"function"==typeof e.constructor&&"Jodit"===e.constructor.name)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(3),a=o(2),l=o(4),i=o(62),n=o(0),c=o(15);s.Config.prototype.dialog={resizable:!0,draggable:!0,buttons:["dialog.close"],removeButtons:[]},s.Config.prototype.controls.dialog={close:{icon:"cancel",exec:function(e){e.close()}},fullsize:{icon:"fullsize",getLabel:function(e,t,o){if(s.Config.prototype.controls.fullsize&&s.Config.prototype.controls.fullsize.getLabel&&"function"==typeof s.Config.prototype.controls.fullsize.getLabel)return s.Config.prototype.controls.fullsize.getLabel(e,t,o)},exec:function(e){e.toggleFullSize()}}};var d,u=(r.__extends(f,d=i.View),f.prototype.setElements=function(o,e){var i=this,n=[];l.asArray(e).forEach(function(e){var t="string"==typeof e?i.create.fromHTML(e):e;n.push(t),t.parentNode!==o&&o.appendChild(t)}),Array.from(o.childNodes).forEach(function(e){~n.indexOf(e)||o.removeChild(e)})},f.prototype.onResizerMouseDown=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.jodit.events&&this.jodit.events.fire(this,"startResize")},f.prototype.setSize=function(e,t){e&&l.css(this.dialog,"width",e),t&&l.css(this.dialog,"height",t)},f.prototype.setPosition=function(e,t){var o=this.window.innerWidth/2-this.dialog.offsetWidth/2,i=this.window.innerHeight/2-this.dialog.offsetHeight/2;o<0&&(o=0),i<0&&(i=0),void 0!==e&&void 0!==t&&(this.offsetX=e,this.offsetY=t,this.moved=100<Math.abs(e-o)||100<Math.abs(t-i)),this.dialog.style.left=(e||o)+"px",this.dialog.style.top=(t||i)+"px"},f.prototype.setTitle=function(e){this.setElements(this.dialogbox_header,e)},f.prototype.setContent=function(e){this.setElements(this.dialogbox_content,e)},f.prototype.setFooter=function(e){this.setElements(this.dialogbox_footer,e),this.dialog.classList.toggle("with_footer",!!e)},f.prototype.getZIndex=function(){return parseInt(this.container.style.zIndex||"0",10)},f.prototype.getMaxZIndexDialog=function(){var t,o,i=0,n=this;return l.$$(".jodit_dialog_box",this.destination).forEach(function(e){t=e.__jodit_dialog,o=parseInt(l.css(e,"zIndex"),10),t.isOpened()&&!isNaN(o)&&i<o&&(n=t,i=o)}),n},f.prototype.setMaxZIndex=function(){var t=0,o=0;l.$$(".jodit_dialog_box",this.destination).forEach(function(e){o=parseInt(l.css(e,"zIndex"),10),t=Math.max(isNaN(o)?0:o,t)}),this.container.style.zIndex=""+(t+1)},f.prototype.maximization=function(t){return"boolean"!=typeof t&&(t=!this.container.classList.contains("jodit_dialog_box-fullsize")),this.container.classList.toggle("jodit_dialog_box-fullsize",t),[this.destination,this.destination.parentNode].forEach(function(e){e&&e.classList&&e.classList.toggle("jodit_fullsize_box",t)}),this.iSetMaximization=t},f.prototype.open=function(e,t,o,i){this.jodit&&this.jodit.events&&!1===this.jodit.events.fire(this,"beforeOpen")||(this.destroyAfterClose=!0===o,void 0!==t&&this.setTitle(t),e&&this.setContent(e),this.container.classList.add("active"),i&&this.container.classList.add("jodit_modal"),this.setPosition(this.offsetX,this.offsetY),this.setMaxZIndex(),this.options.fullsize&&this.maximization(!0),this.jodit&&this.jodit.events&&this.jodit.events.fire("afterOpen",this))},f.prototype.isOpened=function(){return!this.isDestructed&&this.container&&this.container.classList.contains("active")},f.prototype.destruct=function(){this.isDestructed||(this.toolbar&&(this.toolbar.destruct(),delete this.toolbar),this.events&&this.events.off(this.window,"mousemove",this.onMouseMove).off(this.window,"mouseup",this.onMouseUp).off(this.window,"keydown",this.onKeyDown).off(this.window,"resize",this.onResize),!this.jodit&&this.events&&(this.events.destruct(),delete this.events),this.container&&(n.Dom.safeRemove(this.container),delete this.container),d.prototype.destruct.call(this))},f);function f(e,t){void 0===t&&(t=s.Config.prototype.dialog);var o=d.call(this,e,t)||this;o.destination=document.body,o.destroyAfterClose=!1,o.moved=!1,o.iSetMaximization=!1,o.resizable=!1,o.draggable=!1,o.startX=0,o.startY=0,o.startPoint={x:0,y:0,w:0,h:0},o.lockSelect=function(){o.container.classList.add("jodit_dialog_box-moved")},o.unlockSelect=function(){o.container.classList.remove("jodit_dialog_box-moved")},o.onMouseUp=function(){(o.draggable||o.resizable)&&(o.draggable=!1,o.resizable=!1,o.unlockSelect(),o.jodit&&o.jodit.events&&o.jodit.events.fire(o,"endResize endMove"))},o.onHeaderMouseDown=function(e){var t=e.target;!o.options.draggable||t&&t.nodeName.match(/^(INPUT|SELECT)$/)||(o.draggable=!0,o.startX=e.clientX,o.startY=e.clientY,o.startPoint.x=l.css(o.dialog,"left"),o.startPoint.y=l.css(o.dialog,"top"),o.setMaxZIndex(),e.preventDefault(),o.lockSelect(),o.jodit&&o.jodit.events&&o.jodit.events.fire(o,"startMove"))},o.onMouseMove=function(e){o.draggable&&o.options.draggable&&(o.setPosition(o.startPoint.x+e.clientX-o.startX,o.startPoint.y+e.clientY-o.startY),o.jodit&&o.jodit.events&&o.jodit.events.fire(o,"move",e.clientX-o.startX,e.clientY-o.startY),e.stopImmediatePropagation(),e.preventDefault()),o.resizable&&o.options.resizable&&(o.setSize(o.startPoint.w+e.clientX-o.startX,o.startPoint.h+e.clientY-o.startY),o.jodit&&o.jodit.events&&o.jodit.events.fire(o,"resizeDialog",e.clientX-o.startX,e.clientY-o.startY),e.stopImmediatePropagation(),e.preventDefault())},o.onKeyDown=function(e){if(o.isOpened()&&e.which===a.KEY_ESC){var t=o.getMaxZIndexDialog();t?t.close():o.close(),e.stopImmediatePropagation()}},o.onResize=function(){o.options&&o.options.resizable&&!o.moved&&o.isOpened()&&!o.offsetX&&!o.offsetY&&o.setPosition()},o.document=document,o.window=window,o.close=function(e){o.isDestructed||(e&&(e.stopImmediatePropagation(),e.preventDefault()),o.jodit&&o.jodit.events&&o.jodit.events.fire("beforeClose",o),o.container&&o.container.classList&&o.container.classList.remove("active"),o.iSetMaximization&&o.maximization(!1),o.destroyAfterClose&&o.destruct(),o.jodit&&o.jodit.events&&(o.jodit.events.fire(o,"afterClose"),o.jodit.events.fire(o.ownerWindow,"jodit_close_dialog")))},c.isJoditObject(e)&&(o.window=e.ownerWindow,o.document=e.ownerDocument,e.events.on("beforeDestruct",function(){o.destruct()}));var i=o;i.options=r.__assign(r.__assign({},e&&e.options?e.options.dialog:s.Config.prototype.dialog),i.options),i.container=o.create.fromHTML('<div style="z-index:'+i.options.zIndex+'" class="jodit jodit_dialog_box"><div class="jodit_dialog_overlay"></div><div class="jodit_dialog"><div class="jodit_dialog_header non-selected"><div class="jodit_dialog_header-title"></div><div class="jodit_dialog_header-toolbar"></div></div><div class="jodit_dialog_content"></div><div class="jodit_dialog_footer"></div>'+(i.options.resizable?'<div class="jodit_dialog_resizer"></div>':"")+"</div></div>"),e&&e.id&&i.container.setAttribute("data-editor_id",e.id),Object.defineProperty(i.container,"__jodit_dialog",{value:i}),i.dialog=i.container.querySelector(".jodit_dialog"),i.resizer=i.container.querySelector(".jodit_dialog_resizer"),i.jodit&&i.jodit.options&&i.jodit.options.textIcons&&i.container.classList.add("jodit_text_icons"),i.dialogbox_header=i.container.querySelector(".jodit_dialog_header>.jodit_dialog_header-title"),i.dialogbox_content=i.container.querySelector(".jodit_dialog_content"),i.dialogbox_footer=i.container.querySelector(".jodit_dialog_footer"),i.dialogbox_toolbar=i.container.querySelector(".jodit_dialog_header>.jodit_dialog_header-toolbar"),i.destination.appendChild(i.container),i.container.addEventListener("close_dialog",i.close),i.toolbar=h.JoditToolbarCollection.makeCollection(i),i.toolbar.build(i.options.buttons,i.dialogbox_toolbar),i.events.on(o.window,"mousemove",i.onMouseMove).on(o.window,"mouseup",i.onMouseUp).on(o.window,"keydown",i.onKeyDown).on(o.window,"resize",i.onResize);var n=i.container.querySelector(".jodit_dialog_header");return n&&n.addEventListener("mousedown",i.onHeaderMouseDown.bind(i)),i.options.resizable&&i.resizer.addEventListener("mousedown",i.onResizerMouseDown.bind(i)),p.Jodit.plugins.fullsize(i),o}t.Dialog=u;var p=o(12),h=o(37)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u,d=o(0),f=o(4),p=o(6);(u=t.Widget||(t.Widget={})).ColorPickerWidget=function(n,r,e){function s(e,t){e.innerHTML=p.ToolbarIcon.getIcon("eye"),e.classList.add("active");var o=f.hexToRgb(t);o&&(e.firstChild.style.fill="rgb("+(255-o.r)+","+(255-o.g)+","+(255-o.b)+")")}var i=f.normalizeColor(e),a=n.create.div("jodit_colorpicker"),l=n.options.textIcons?"":p.ToolbarIcon.getIcon("eye"),t=n.options.textIcons?"<span>"+n.i18n("eraser")+"</span>":p.ToolbarIcon.getIcon("eraser"),o=n.options.textIcons?"<span>"+n.i18n("palette")+"</span>":p.ToolbarIcon.getIcon("palette"),c=function(t){var o=[];return f.isPlainObject(t)?Object.keys(t).forEach(function(e){o.push('<div class="jodit_colorpicker_group jodit_colorpicker_group-'+e+'">'),o.push(c(t[e])),o.push("</div>")}):Array.isArray(t)&&t.forEach(function(e){o.push("<a "+(i===e?' class="active" ':"")+' title="'+e+'" style="background-color:'+e+'" data-color="'+e+'" href="javascript:void(0)">'+(i===e?l:"")+"</a>")}),o.join("")};return a.appendChild(n.create.fromHTML("<div>"+c(n.options.colors)+"</div>")),a.appendChild(n.create.fromHTML("<a "+(n.options.textIcons?'class="jodit_text_icon"':"")+' data-color="" href="javascript:void(0)">'+t+"</a>")),n.options.showBrowserColorPicker&&f.hasBrowserColorPicker()&&(a.appendChild(n.create.fromHTML("<span><em "+(n.options.textIcons?'class="jodit_text_icon"':"")+">"+o+'</em><input type="color" value=""/></span>')),n.events.on(a,"change",function(e){e.stopPropagation();var t=e.target;if(t&&t.tagName&&"INPUT"==t.tagName.toUpperCase()){var o=t.value||"";o&&s(t,o),r&&"function"==typeof r&&r(o),e.preventDefault()}})),n.events.on(a,"mousedown touchend",function(e){e.stopPropagation();var t=e.target;if(t&&t.tagName&&"SVG"!=t.tagName.toUpperCase()&&"PATH"!=t.tagName.toUpperCase()||!t.parentNode||(t=d.Dom.closest(t.parentNode,"A",n.editor)),"A"==t.tagName.toUpperCase()){var o=a.querySelector("a.active");o&&(o.classList.remove("active"),o.innerHTML="");var i=t.getAttribute("data-color")||"";i&&s(t,i),r&&"function"==typeof r&&r(i),e.preventDefault()}}),a},u.TabsWidget=function(r,e,s){var t=r.create.div("jodit_tabs"),a=r.create.div("jodit_tabs_wrapper"),l=r.create.div("jodit_tabs_buttons"),c={},d="",u=0;return t.appendChild(l),t.appendChild(a),f.each(e,function(t,o){var i=r.create.div("jodit_tab"),n=r.create.element("a",{href:"javascript:void(0);"});d=d||""+t,n.innerHTML=/<svg/.test(""+t)?t:r.i18n(""+t),l.appendChild(n),i.appendChild("function"!=typeof o?o:r.create.div("jodit_tab_empty")),a.appendChild(i),r.events.on(n,"mousedown touchend",function(e){return f.$$("a",l).forEach(function(e){e.classList.remove("active")}),f.$$(".jodit_tab",a).forEach(function(e){e.classList.remove("active")}),n.classList.add("active"),i.classList.add("active"),"function"==typeof o&&o.call(r),e.stopPropagation(),s&&(s.__activeTab=""+t),!1}),c[t]={button:n,tab:i},u+=1}),u&&(f.$$("a",l).forEach(function(e){e.style.width=(100/u).toFixed(10)+"%"}),s&&s.__activeTab&&c[s.__activeTab]?(c[s.__activeTab].button.classList.add("active"),c[s.__activeTab].tab.classList.add("active")):(c[d].button.classList.add("active"),c[d].tab.classList.add("active"))),t},u.FileSelectorWidget=function(t,o,e,i,n){var r;void 0===n&&(n=!0);var s={};if(o.upload&&t.options.uploader&&(t.options.uploader.url||t.options.uploader.insertImageAsBase64URI)){var a=t.create.fromHTML('<div class="jodit_draganddrop_file_box"><strong>'+t.i18n(n?"Drop image":"Drop file")+"</strong><span><br>"+t.i18n("or click")+'</span><input type="file" accept="'+(n?"image/*":"*")+'" tabindex="-1" dir="auto" multiple=""/></div>');t.getInstance("Uploader").bind(a,function(e){"function"==typeof o.upload&&o.upload.call(t,{baseurl:e.baseurl,files:e.files})},function(e){t.events.fire("errorMessage",e.message)}),s[(t.options.textIcons?"":p.ToolbarIcon.getIcon("upload"))+t.i18n("Upload")]=a}if(o.filebrowser&&(t.options.filebrowser.ajax.url||t.options.filebrowser.items.url)&&(s[(t.options.textIcons?"":p.ToolbarIcon.getIcon("folder"))+t.i18n("Browse")]=function(){i&&i(),o.filebrowser&&t.getInstance("FileBrowser").open(o.filebrowser,n)}),o.url){var l=t.create.fromHTML('<form onsubmit="return false;" class="jodit_form"><input type="text" required name="url" placeholder="http://"/><input type="text" name="text" placeholder="'+t.i18n("Alternative text")+'"/><div style="text-align: right"><button>'+t.i18n("Insert")+"</button></div></form>"),c=l.querySelector("button"),d=l.querySelector("input[name=url]");r=null,e&&e.nodeType!==Node.TEXT_NODE&&("IMG"===e.tagName||f.$$("img",e).length)&&(r="IMG"===e.tagName?e:f.$$("img",e)[0],f.val(l,"input[name=url]",r.getAttribute("src")),f.val(l,"input[name=text]",r.getAttribute("alt")),c.textContent=t.i18n("Update")),e&&e.nodeType!==Node.TEXT_NODE&&"A"===e.nodeName&&(f.val(l,"input[name=url]",e.getAttribute("href")||""),f.val(l,"input[name=text]",e.getAttribute("title")||""),c.textContent=t.i18n("Update")),l.addEventListener("submit",function(e){return e.preventDefault(),e.stopPropagation(),f.val(l,"input[name=url]")?"function"==typeof o.url&&o.url.call(t,f.val(l,"input[name=url]"),f.val(l,"input[name=text]")):(d.focus(),d.classList.add("jodit_error")),!1},!1),s[(t.options.textIcons?"":p.ToolbarIcon.getIcon("link"))+" URL"]=l}return u.TabsWidget(t,s)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setTimeout=function(e,t,o,i,n){return t?window.setTimeout.call(window,e,t,o,i,n):(e.call(null,o,i,n),0)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1);i.__exportStar(o(91),t),i.__exportStar(o(92),t),i.__exportStar(o(93),t),i.__exportStar(o(94),t),i.__exportStar(o(95),t),i.__exportStar(o(96),t),i.__exportStar(o(97),t),i.__exportStar(o(49),t),i.__exportStar(o(98),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a,i=o(1),n=o(36),s=o(0),l=o(10),r=o(2),c=o(15),d=(i.__extends(u,a=n.ToolbarCollection),u.prototype.buttonIsActive=function(e){var t=this,o=a.prototype.buttonIsActive.call(this,e);if(void 0!==o)return o;var i,n,r=!!this.jodit.selection&&this.jodit.selection.current();return!(!r||!((e.control.tags||e.control.options&&e.control.options.tags)&&(i=e.control.tags||e.control.options&&e.control.options.tags,s.Dom.up(r,function(e){if(e&&~i.indexOf(e.nodeName.toLowerCase()))return!0},this.jodit.editor))||(e.control.css||e.control.options&&e.control.options.css)&&(n=e.control.css||e.control.options&&e.control.options.css,s.Dom.up(r,function(e){if(e&&e.nodeType!==Node.TEXT_NODE)return t.checkActiveStatus(n,e)},this.jodit.editor))))},u.prototype.buttonIsDisabled=function(e){var t=a.prototype.buttonIsDisabled.call(this,e);if(void 0!==t)return t;var o=void 0===e.control||void 0===e.control.mode?r.MODE_WYSIWYG:e.control.mode;return!(o===r.MODE_SPLIT||o===this.jodit.getRealMode())},u.prototype.getTarget=function(e){return e.target||this.jodit.selection.current()||void 0},u.makeCollection=function(e){var t=c.isJoditObject(e)?new u(e):new n.ToolbarCollection(e);return e.options.textIcons&&t.container.classList.add("jodit_text_icons"),t},u);function u(){var s=null!==a&&a.apply(this,arguments)||this;return s.checkActiveStatus=function(o,i){var n=0,r=0;return Object.keys(o).forEach(function(e){var t=o[e];"function"==typeof t?t(s.jodit,""+l.css(i,e))&&(n+=1):~t.indexOf(""+l.css(i,e))&&(n+=1),r+=1}),r===n},s}t.JoditToolbarCollection=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(43),n=o(32);t.isPlainObject=function(e){return!("object"!=typeof e||e.nodeType||i.isWindow(e)||e.constructor&&!n.hasOwn.call(e.constructor.prototype,"isPrototypeOf"))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumeric=function(e){if("string"==typeof e){if(!e.match(/^([+\-])?[0-9]+(\.?)([0-9]+)?(e[0-9]+)?$/))return!1;e=parseFloat(e)}return!isNaN(e)&&isFinite(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1);i.__exportStar(o(99),t),i.__exportStar(o(100),t),i.__exportStar(o(101),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.each=function(e,t){var o,i,n;if(Array.isArray(e)){for(o=e.length,n=0;n<o;n+=1)if(!1===t.call(e[n],n,e[n]))return!1}else for(i=Object.keys(e),n=0;n<i.length;n+=1)if(!1===t.call(e[i[n]],i[n],e[i[n]]))return!1;return!0}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(1),r=o(8),s=o(36),a=o(6),l=o(0),c=o(9),d=(i.__extends(u,n=r.Component),u.prototype.focus=function(){this.container.focus()},u.prototype.destruct=function(){this.isDestructed||(l.Dom.safeRemove(this.container),this.parentToolbar=void 0,n.prototype.destruct.call(this))},u.prototype.createIcon=function(e,t){var o=t?t.icon||t.name:e;if(this.jodit.options.textIcons)return this.jodit.create.fromHTML('<span class="jodit_icon">'+this.jodit.i18n(t?t.name:e)+"</span>");var i=this.jodit.events.fire("getIcon",o,t,e),n=void 0;return t&&t.iconURL&&void 0===i?(n=this.jodit.create.element("i")).style.backgroundImage="url("+t.iconURL+")":(void 0===i&&(i=a.ToolbarIcon.exists(o)?a.ToolbarIcon.getIcon(o):a.ToolbarIcon.getIcon("empty")),n="string"==typeof i?this.jodit.create.fromHTML(c.trim(i)):i),n.classList.add("jodit_icon","jodit_icon_"+e),n},u);function u(e,t,o){void 0===t&&(t="li"),void 0===o&&(o="jodit_toolbar_btn");var i=this;return e instanceof s.ToolbarCollection?(i=n.call(this,e.jodit)||this).parentToolbar=e:i=n.call(this,e)||this,i.container=i.jodit.create.element(t),i.container.classList.add(o),i}t.ToolbarElement=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c,i=o(1),d=o(0),u=o(4),n=o(25),f=o(113),p=o(27),h=o(114),v=o(15),m=o(2),g=o(6),r=(i.__extends(s,c=n.ToolbarElement),Object.defineProperty(s.prototype,"disable",{get:function(){return this.__disabled},set:function(e){this.__disabled=e,this.container.classList.toggle("jodit_disabled",e),e?this.container.hasAttribute("disabled")||this.container.setAttribute("disabled","disabled"):this.container.hasAttribute("disabled")&&this.container.removeAttribute("disabled")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"active",{get:function(){return this.__actived},set:function(e){this.__actived=e,this.container.classList.toggle("jodit_active",e)},enumerable:!0,configurable:!0}),s.prototype.isDisable=function(){return!(!this.parentToolbar||!this.parentToolbar.buttonIsDisabled(this))},s.prototype.isActive=function(){return!(!this.parentToolbar||!this.parentToolbar.buttonIsActive(this))},Object.defineProperty(s.prototype,"tooltipText",{get:function(){return this.control.tooltip?this.jodit.i18n(this.control.tooltip)+(this.control.hotkeys?"<br>"+u.asArray(this.control.hotkeys).join(" "):""):""},enumerable:!0,configurable:!0}),s.prototype.focus=function(){this.anchor.focus()},s.prototype.destruct=function(){this.isDestructed||(this.jodit&&this.jodit.events&&this.jodit.events.off(this.container),c.prototype.destruct.call(this),this.tooltip&&(this.tooltip.destruct(),delete this.tooltip))},s);function s(e,t,o){var s=c.call(this,e)||this;s.__disabled=!1,s.__actived=!1,s.onMouseDown=function(e){if("keydown"!==e.type||e.which===m.KEY_ENTER){if(e.stopImmediatePropagation(),e.preventDefault(),s.disable)return!1;var t=s.control,o=function(){return s.parentToolbar&&s.parentToolbar.getTarget(s)||s.target||!1};if(t.list){var i=new f.PopupList(s.jodit,s.container,s.target);i.open(t),s.jodit.events.fire("closeAllPopups",i.container),s.anchor.setAttribute("aria-expanded","true"),s.jodit.events.on(i,"afterClose",function(){s.anchor.setAttribute("aria-expanded","false")})}else if(void 0!==t.exec&&"function"==typeof t.exec)t.exec(s.jodit,o(),t,e,s.container),s.jodit.events.fire("synchro"),s.parentToolbar&&s.parentToolbar.immedateCheckActiveButtons(),s.jodit.events.fire("closeAllPopups afterExec");else if(void 0!==t.popup&&"function"==typeof t.popup){var n=new p.Popup(s.jodit,s.container,s.target);if(!1!==s.jodit.events.fire(u.camelCase("before-"+t.name+"-OpenPopup"),o(),t,n)){var r=t.popup(s.jodit,o(),t,n.close,s);r&&n.open(r)}s.jodit.events.fire(u.camelCase("after-"+t.name+"-OpenPopup")+" closeAllPopups",n.container)}else(t.command||t.name)&&(v.isJoditObject(s.jodit)?s.jodit.execCommand(t.command||t.name,t.args&&t.args[0]||!1,t.args&&t.args[1]||null):s.jodit.ownerDocument.execCommand(t.command||t.name,t.args&&t.args[0]||!1,t.args&&t.args[1]||null),s.jodit.events.fire("closeAllPopups"))}},s.control=t,s.target=o,s.anchor=s.jodit.create.element("a",{role:"button",href:"javascript:void(0)"});var i="-1";s.jodit.options.allowTabNavigation&&(i="0"),s.anchor.setAttribute("tabindex",i),s.container.appendChild(s.anchor),s.jodit.options.showTooltip&&t.tooltip&&(s.jodit.options.useNativeTooltip?s.anchor.setAttribute("title",s.tooltipText):s.tooltip=new h.ToolbarTooltip(s),s.anchor.setAttribute("aria-label",s.tooltipText)),s.textBox=s.jodit.create.span(),s.anchor.appendChild(s.textBox);var n=t.name.replace(/[^a-zA-Z0-9]/g,"_");if(t.getContent&&"function"==typeof t.getContent){d.Dom.detach(s.container);var r=t.getContent(s.jodit,t,s);s.container.appendChild("string"==typeof r?s.jodit.create.fromHTML(r):r)}else{if(t.list&&s.anchor){var a=s.jodit.create.fromHTML(g.ToolbarIcon.getIcon("dropdown-arrow"));a.classList.add("jodit_with_dropdownlist-trigger"),s.container.classList.add("jodit_with_dropdownlist"),s.anchor.appendChild(a)}s.textBox.appendChild(s.createIcon(n,t))}if(s.container.classList.add("jodit_toolbar_btn-"+n),s.jodit.options.direction){var l=s.jodit.options.direction.toLowerCase();s.container.style.direction="rtl"==l?"rtl":"ltr"}return t.isInput?s.container.classList.add("jodit_toolbar-input"):s.jodit.events.on(s.container,"mousedown touchend keydown",s.onMouseDown).on("click-"+n+"-btn",s.onMouseDown),s}t.ToolbarButton=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=o(1),s=o(0),a=o(4),n=o(8),l=(i.__extends(c,r=n.Component),c.prototype.calcPosition=function(){if(this.isOpened&&!this.isDestructed){var t=this.container,e=a.offset(this.jodit.container,this.jodit,this.jodit.ownerDocument,!0),o=a.offset(t,this.jodit,this.jodit.ownerDocument,!0),i=a.css(t,"marginLeft")||0;o.left-=i;var n=i,r="auto";if(n=o.left<e.left?e.left-o.left:o.left+o.width<e.left+e.width?0:-(o.left+o.width-(e.left+e.width)),o.width<e.width||(n=e.left-o.left,r=e.width),n!==i)try{t.style.setProperty("margin-left",n+"px","important")}catch(e){t.style.marginLeft=n+"px"}var s=t.querySelector(".jodit_popup_triangle");s&&(s.style.marginLeft=-n+"px"),a.css(t,"width",r)}},c.prototype.doOpen=function(e){e&&(s.Dom.detach(this.container),this.container.innerHTML='<span class="jodit_popup_triangle"></span>',this.container.appendChild(s.Dom.isNode(e,this.jodit.ownerWindow)?e:this.jodit.create.fromHTML(""+e)),this.container.style.display="block",this.container.style.removeProperty("marginLeft"))},c.prototype.doClose=function(){},c.prototype.open=function(e,t,o){void 0===o&&(o=!1),d.Jodit.fireEach("beforeOpenPopup closeAllPopups",this,e),o||this.jodit.events.on("closeAllPopups",this.close),this.container.classList.add(this.className+"-open"),this.doOpen(e),this.target.appendChild(this.container),this.jodit.options.textIcons&&this.firstInFocus(),void 0!==t&&this.container.classList.toggle("jodit_right",t),!o&&this.container.parentNode&&this.jodit.events.fire(this.container.parentNode,"afterOpenPopup",this.container),this.isOpened=!0,o||this.calcPosition()},c.prototype.firstInFocus=function(){},c.prototype.destruct=function(){this.isDestructed||(this.jodit.events.off([this.jodit.ownerWindow,this.jodit.events],"resize",this.throttleCalcPosition),s.Dom.safeRemove(this.container),delete this.container,r.prototype.destruct.call(this))},c);function c(e,t,o,i){void 0===i&&(i="jodit_toolbar_popup");var n=r.call(this,e)||this;return n.target=t,n.current=o,n.className=i,n.throttleCalcPosition=a.throttle(n.calcPosition,n.jodit.defaultTimeout),n.isOpened=!1,n.close=function(e){(n.isOpened||n.isDestructed)&&(e&&s.Dom.isOrContains(n.container,e instanceof c?e.target:e)||(n.isOpened=!1,n.jodit.events.off("closeAllPopups",n.close),n.doClose(),s.Dom.safeRemove(n.container),n.jodit.events.fire("removeMarkers"),n.jodit.events.fire(n,"afterClose")))},n.container=n.jodit.create.div(i,{"data-editor_id":e.id}),n.jodit.events.on(n.container,"mousedown touchstart touchend",function(e){e.stopPropagation()}).on([n.jodit.ownerWindow,n.jodit.events],"resize",n.throttleCalcPosition),n}t.Popup=l;var d=o(12)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=o(2),v=o(0),m=o(4),i=(g.addSelected=function(e){e.setAttribute(h.JODIT_SELECTED_CELL_MARKER,"1")},g.restoreSelection=function(e){e.removeAttribute(h.JODIT_SELECTED_CELL_MARKER)},g.getAllSelectedCells=function(e){return e?m.$$("td["+h.JODIT_SELECTED_CELL_MARKER+"],th["+h.JODIT_SELECTED_CELL_MARKER+"]",e):[]},g.getRowsCount=function(e){return e.rows.length},g.getColumnsCount=function(e){return g.formalMatrix(e).reduce(function(e,t){return Math.max(e,t.length)},0)},g.formalMatrix=function(e,a){for(var l=[[]],t=Array.prototype.slice.call(e.rows),o=function(e,t){void 0===l[t]&&(l[t]=[]);for(var o,i,n=e.colSpan,r=e.rowSpan,s=0;l[t][s];)s+=1;for(i=0;i<r;i+=1)for(o=0;o<n;o+=1){if(void 0===l[t+i]&&(l[t+i]=[]),a&&!1===a(e,t+i,s+o,n,r))return!1;l[t+i][s+o]=e}},i=0,n=void 0;i<t.length;i+=1){var r=Array.prototype.slice.call(t[i].cells);for(n=0;n<r.length;n+=1)if(!1===o(r[n],i))return l}return l},g.formalCoordinate=function(e,r,s){void 0===s&&(s=!1);var a=0,l=0,c=1,d=1;return g.formalMatrix(e,function(e,t,o,i,n){if(r===e)return a=t,l=o,c=i||1,d=n||1,s&&(l+=(i||1)-1,a+=(n||1)-1),!1}),[a,l,c,d]},g.appendRow=function(e,t,o){void 0===t&&(t=!1),void 0===o&&(o=!0);for(var i=e.ownerDocument||document,n=g.getColumnsCount(e),r=i.createElement("tr"),s=0;s<n;s+=1)r.appendChild(i.createElement("td"));o&&t&&t.nextSibling?t.parentNode&&t.parentNode.insertBefore(r,t.nextSibling):!o&&t?t.parentNode&&t.parentNode.insertBefore(r,t):(m.$$(":scope>tbody",e)[0]||e).appendChild(r)},g.removeRow=function(r,s){var a,l=g.formalMatrix(r),c=r.rows[s];m.each(l[s],function(e,t){if(a=!1,s-1<0||l[s-1][e]!==t)if(l[s+1]&&l[s+1][e]===t){if(t.parentNode===c&&t.parentNode.nextSibling){a=!0;for(var o=e+1;l[s+1][o]===t;)o+=1;var i=v.Dom.next(t.parentNode,function(e){return e&&e.nodeType===Node.ELEMENT_NODE&&"TR"===e.nodeName},r);l[s+1][o]?i.insertBefore(t,l[s+1][o]):i.appendChild(t)}}else v.Dom.safeRemove(t);else a=!0;if(a&&(t.parentNode===c||t!==l[s][e-1])){var n=t.rowSpan;1<n-1?t.setAttribute("rowspan",""+(n-1)):t.removeAttribute("rowspan")}}),v.Dom.safeRemove(c)},g.appendColumn=function(e,t,o){void 0===o&&(o=!0);var i,n=g.formalMatrix(e);for(void 0===t&&(t=g.getColumnsCount(e)-1),i=0;i<n.length;i+=1){var r=(e.ownerDocument||document).createElement("td"),s=n[i][t],a=!1;o?(n[i]&&s&&n[i].length<=t+1||s!==n[i][t+1])&&(s.nextSibling?s.parentNode&&s.parentNode.insertBefore(r,s.nextSibling):s.parentNode&&s.parentNode.appendChild(r),a=!0):(t-1<0||n[i][t]!==n[i][t-1]&&n[i][t].parentNode)&&(s.parentNode&&s.parentNode.insertBefore(r,n[i][t]),a=!0),a||n[i][t].setAttribute("colspan",""+(parseInt(n[i][t].getAttribute("colspan")||"1",10)+1))}},g.removeColumn=function(e,n){var r,s=g.formalMatrix(e);m.each(s,function(e,t){var o=t[n];if(r=!1,n-1<0||s[e][n-1]!==o?n+1<t.length&&s[e][n+1]===o?r=!0:v.Dom.safeRemove(o):r=!0,r&&(e-1<0||o!==s[e-1][n])){var i=o.colSpan;1<i-1?o.setAttribute("colspan",""+(i-1)):o.removeAttribute("colspan")}})},g.getSelectedBound=function(e,t){var o,i,n,r=[[1/0,1/0],[0,0]],s=g.formalMatrix(e);for(o=0;o<s.length;o+=1)for(i=0;i<s[o].length;i+=1)~t.indexOf(s[o][i])&&(r[0][0]=Math.min(o,r[0][0]),r[0][1]=Math.min(i,r[0][1]),r[1][0]=Math.max(o,r[1][0]),r[1][1]=Math.max(i,r[1][1]));for(o=r[0][0];o<=r[1][0];o+=1)for(i=r[0][n=1];i<=r[1][1];i+=1){for(;s[o][i-n]&&s[o][i]===s[o][i-n];)r[0][1]=Math.min(i-n,r[0][1]),r[1][1]=Math.max(i-n,r[1][1]),n+=1;for(n=1;s[o][i+n]&&s[o][i]===s[o][i+n];)r[0][1]=Math.min(i+n,r[0][1]),r[1][1]=Math.max(i+n,r[1][1]),n+=1;for(n=1;s[o-n]&&s[o][i]===s[o-n][i];)r[0][0]=Math.min(o-n,r[0][0]),r[1][0]=Math.max(o-n,r[1][0]),n+=1;for(n=1;s[o+n]&&s[o][i]===s[o+n][i];)r[0][0]=Math.min(o+n,r[0][0]),r[1][0]=Math.max(o+n,r[1][0]),n+=1}return r},g.normalizeTable=function(e){var t,o,i,n,r=[],s=g.formalMatrix(e);for(o=0;o<s[0].length;o+=1){for(n=!(i=1e6),t=0;t<s.length;t+=1)if(void 0!==s[t][o]){if(s[t][o].colSpan<2){n=!0;break}i=Math.min(i,s[t][o].colSpan)}if(!n)for(t=0;t<s.length;t+=1)void 0!==s[t][o]&&g.__mark(s[t][o],"colspan",s[t][o].colSpan-i+1,r)}for(t=0;t<s.length;t+=1){for(n=!(i=1e6),o=0;o<s[t].length;o+=1)if(void 0!==s[t][o]){if(s[t][o].rowSpan<2){n=!0;break}i=Math.min(i,s[t][o].rowSpan)}if(!n)for(o=0;o<s[t].length;o+=1)void 0!==s[t][o]&&g.__mark(s[t][o],"rowspan",s[t][o].rowSpan-i+1,r)}for(t=0;t<s.length;t+=1)for(o=0;o<s[t].length;o+=1)void 0!==s[t][o]&&(s[t][o].hasAttribute("rowspan")&&1===s[t][o].rowSpan&&s[t][o].removeAttribute("rowspan"),s[t][o].hasAttribute("colspan")&&1===s[t][o].colSpan&&s[t][o].removeAttribute("colspan"),s[t][o].hasAttribute("class")&&!s[t][o].getAttribute("class")&&s[t][o].removeAttribute("class"));g.__unmark(r)},g.mergeSelected=function(e){var r,s=[],a=g.getSelectedBound(e,g.getAllSelectedCells(e)),l=0,c=null,d=0,u=0,f=0,p=[];a&&(a[0][0]-a[1][0]||a[0][1]-a[1][1])&&(g.formalMatrix(e,function(e,t,o,i,n){if(!(t<a[0][0]||a[1][0]<t||o<a[0][1]||a[1][1]<o)){if((r=e).__i_am_already_was)return;r.__i_am_already_was=!0,t===a[0][0]&&r.style.width&&(l+=r.offsetWidth),m.trim(e.innerHTML.replace(/<br(\/)?>/g,""))&&s.push(e.innerHTML),1<i&&(u+=i-1),1<n&&(f+=n-1),c?g.__mark(r,"remove",1,p):(c=e,d=o)}}),u=a[1][1]-a[0][1]+1,f=a[1][0]-a[0][0]+1,c&&(1<u&&g.__mark(c,"colspan",u,p),1<f&&g.__mark(c,"rowspan",f,p),l&&(g.__mark(c,"width",(l/e.offsetWidth*100).toFixed(h.ACCURACY)+"%",p),d&&g.setColumnWidthByDelta(e,d,0,!0,p)),c.innerHTML=s.join("<br/>"),delete c.__i_am_already_was,g.__unmark(p),g.normalizeTable(e),m.each(Array.from(e.rows),function(e,t){t.cells.length||v.Dom.safeRemove(t)})))},g.splitHorizontal=function(n){var r,e,t,s,a,l=[],o=n.ownerDocument||document;g.getAllSelectedCells(n).forEach(function(i){(e=o.createElement("td")).appendChild(o.createElement("br")),t=o.createElement("tr"),r=g.formalCoordinate(n,i),i.rowSpan<2?(g.formalMatrix(n,function(e,t,o){r[0]===t&&r[1]!==o&&e!==i&&g.__mark(e,"rowspan",e.rowSpan+1,l)}),v.Dom.after(v.Dom.closest(i,"tr",n),t),t.appendChild(e)):(g.__mark(i,"rowspan",i.rowSpan-1,l),g.formalMatrix(n,function(e,t,o){r[0]<t&&t<r[0]+i.rowSpan&&o<r[1]&&e.parentNode.rowIndex===t&&(a=e),r[0]<t&&e===i&&(s=n.rows[t])}),a?v.Dom.after(a,e):s.insertBefore(e,s.firstChild)),1<i.colSpan&&g.__mark(e,"colspan",i.colSpan,l),g.__unmark(l),g.restoreSelection(i)}),this.normalizeTable(n)},g.splitVertical=function(t){var n,o,r,s=[],a=t.ownerDocument||document;g.getAllSelectedCells(t).forEach(function(i){n=g.formalCoordinate(t,i),i.colSpan<2?g.formalMatrix(t,function(e,t,o){n[1]===o&&n[0]!==t&&e!==i&&g.__mark(e,"colspan",e.colSpan+1,s)}):g.__mark(i,"colspan",i.colSpan-1,s),(o=a.createElement("td")).appendChild(a.createElement("br")),1<i.rowSpan&&g.__mark(o,"rowspan",i.rowSpan,s);var e=i.offsetWidth;v.Dom.after(i,o),g.__mark(i,"width",(100*(r=e/t.offsetWidth/2)).toFixed(h.ACCURACY)+"%",s),g.__mark(o,"width",(100*r).toFixed(h.ACCURACY)+"%",s),g.__unmark(s),g.restoreSelection(i)}),g.normalizeTable(t)},g.setColumnWidthByDelta=function(e,t,o,i,n){var r,s=g.formalMatrix(e);for(r=0;r<s.length;r+=1)g.__mark(s[r][t],"width",((s[r][t].offsetWidth+o)/e.offsetWidth*100).toFixed(h.ACCURACY)+"%",n);i||g.__unmark(n)},g.__mark=function(e,t,o,i){i.push(e),e.__marked_value||(e.__marked_value={}),e.__marked_value[t]=void 0===o?1:o},g.__unmark=function(e){e.forEach(function(o){o.__marked_value&&(m.each(o.__marked_value,function(e,t){switch(e){case"remove":v.Dom.safeRemove(o);break;case"rowspan":1<t?o.setAttribute("rowspan",""+t):o.removeAttribute("rowspan");break;case"colspan":1<t?o.setAttribute("colspan",""+t):o.removeAttribute("colspan");break;case"width":o.style.width=""+t}delete o.__marked_value[e]}),delete o.__marked_value)})},g);function g(){}t.Table=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(41);t.asArray=i.asArray;var n=o(75);t.inArray=n.inArray;var r=o(76);t.splitArray=r.splitArray},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(14);t.JoditObject=function(e){i.extend(!0,this,e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(14),n=(r.prototype.toString=function(){for(var e=[],t=0;t<this.length;t+=1)e[t]=this[t];return""+e},r);function r(e){var t=this;i.extend(!(this.length=0),this,e),this.length=e.length;var o=Array.prototype;["map","forEach","reduce","push","pop","shift","unshift","slice","splice"].forEach(function(e){t[e]=o[e]})}t.JoditArray=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={},n=i.toString;t.hasOwn=i.hasOwnProperty,["Boolean","Number","String","Function","Array","Date","RegExp","Object","Error","Symbol","HTMLDocument","Window","HTMLElement","HTMLBodyElement","Text","DocumentFragment","DOMStringList","HTMLCollection"].forEach(function(e){i["[object "+e+"]"]=e.toLowerCase()}),t.type=function(e){return null===e?"null":"object"==typeof e||"function"==typeof e?i[n.call(e)]||"object":typeof e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1);i.__exportStar(o(78),t),i.__exportStar(o(79),t),i.__exportStar(o(80),t),i.__exportStar(o(81),t),i.__exportStar(o(22),t),i.__exportStar(o(21),t),i.__exportStar(o(44),t),i.__exportStar(o(43),t),i.__exportStar(o(82),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(2);t.trim=function(e){return e.replace(i.SPACE_REG_EXP_START,"").replace(i.SPACE_REG_EXP_END,"")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(9),n=(r.prototype.set=function(e,t){this.provider.set(i.camelCase(this.prefix+e),t)},r.prototype.get=function(e){return this.provider.get(i.camelCase(this.prefix+e))},r);function r(e){this.provider=e,this.prefix="Jodit_"}t.Storage=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,s=o(1),n=o(5),r=o(112),a=o(26),l=o(115),c=o(0),d=o(8),u=o(3),f=(s.__extends(p,i=d.Component),p.prototype.getButtonsList=function(){return this.__buttons.map(function(e){return e instanceof a.ToolbarButton?e.control.name:""}).filter(function(e){return""!==e})},p.prototype.appendChild=function(e){this.__buttons.push(e),this.container.appendChild(e.container)},Object.defineProperty(p.prototype,"firstButton",{get:function(){return this.__buttons[0]},enumerable:!0,configurable:!0}),p.prototype.removeChild=function(e){var t=this.__buttons.indexOf(e);-1!=t&&(this.__buttons.splice(t,1),e.container.parentNode===this.container&&c.Dom.safeRemove(e.container))},p.prototype.build=function(e,t,o){var i=this,n=!1;this.clear(),("string"==typeof e?e.split(/[,\s]+/):e).map(this.__getControlType).forEach(function(e){var t=null;if(!~i.jodit.options.removeButtons.indexOf(e.name)){switch(e.name){case"\n":t=new r.ToolbarBreak(i);break;case"|":n||(n=!0,t=new l.ToolbarSeparator(i));break;default:n=!1,t=new a.ToolbarButton(i,e,o)}t&&i.appendChild(t)}}),this.container.parentNode!==t&&t.appendChild(this.container),this.immedateCheckActiveButtons()},p.prototype.clear=function(){var t=this;s.__spreadArrays(this.__buttons).forEach(function(e){t.removeChild(e),e.destruct()}),this.__buttons.length=0},p.prototype.buttonIsActive=function(e){if("function"==typeof e.control.isActive)return e.control.isActive(this.jodit,e.control,e)},p.prototype.buttonIsDisabled=function(e){return!!this.jodit.options.disabled||!(!this.jodit.options.readonly||this.jodit.options.activeButtonsInReadOnly&&~this.jodit.options.activeButtonsInReadOnly.indexOf(e.control.name))||("function"==typeof e.control.isDisable&&(t=e.control.isDisable(this.jodit,e.control,e)),t);var t},p.prototype.getTarget=function(e){return e.target},p.prototype.setDirection=function(e){this.container.style.direction=e,this.container.setAttribute("dir",e)},p.prototype.destruct=function(){this.isDestructed||(this.jodit.events.off(this.jodit.ownerWindow,"mousedown touchstart",this.closeAll).off(this.listenEvents,this.checkActiveButtons).off("afterSetMode focus",this.immedateCheckActiveButtons),this.clear(),c.Dom.safeRemove(this.container),delete this.container,i.prototype.destruct.call(this))},p);function p(e){var r=i.call(this,e)||this;return r.__buttons=[],r.__getControlType=function(e){var t,o=r.jodit.options.controls||u.Config.defaultOptions.controls;if("string"!=typeof e)void 0!==o[(t=s.__assign({name:"empty"},e)).name]&&(t=s.__assign(s.__assign({},o[t.name]),t));else{var i=e.split(/\./),n=o;1<i.length&&void 0!==o[i[0]]&&(n=o[i[0]],e=i[1]),t=void 0!==n[e]?s.__assign({name:e},n[e]):{name:e,command:e,tooltip:e}}return t},r.closeAll=function(){r.jodit&&r.jodit.events&&r.jodit.events.fire("closeAllPopups")},r.initEvents=function(){r.jodit.events.on(r.jodit.ownerWindow,"mousedown touchend",r.closeAll).on(r.listenEvents,r.checkActiveButtons).on("afterSetMode focus",r.immedateCheckActiveButtons)},r.listenEvents="changeStack mousedown mouseup keydown change afterInit readonly afterResize selectionchange changeSelection focus afterSetMode touchstart",r.immedateCheckActiveButtons=function(){r.isDestructed||r.jodit.isLocked()||(r.__buttons.filter(function(e){return e instanceof a.ToolbarButton}).forEach(function(e){e.disable=e.isDisable(),e.disable||(e.active=e.isActive()),"function"==typeof e.control.getLabel&&e.control.getLabel(r.jodit,e.control,e)}),r.jodit.events&&r.jodit.events.fire("updateToolbar"))},r.checkActiveButtons=n.debounce(r.immedateCheckActiveButtons,r.jodit.defaultTimeout),r.container=r.jodit.create.element("ul"),r.container.classList.add("jodit_toolbar"),r.initEvents(),r}t.ToolbarCollection=f},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(38);t.Ajax=i.Ajax;var n=o(63);t.EventsNative=n.EventsNative;var r=o(8);t.Component=r.Component;var s=o(39);t.ContextMenu=s.ContextMenu;var a=o(135);t.Cookie=a.Cookie;var l=o(13);t.Alert=l.Alert,t.Confirm=l.Confirm,t.Promt=l.Promt,t.Dialog=l.Dialog;var c=o(0);t.Dom=c.Dom;var d=o(7);t.Plugin=d.Plugin;var u=o(64);t.Create=u.Create;var f=o(137);t.FileBrowser=f.FileBrowser;var p=o(4);t.Helpers=p;var h=o(145);t.ImageEditor=h.ImageEditor;var v=o(56);t.Observer=v.Observer;var m=o(59);t.Select=m.Select;var g=o(35);t.Storage=g.Storage;var _=o(57);t.Snapshot=_.Snapshot;var b=o(28);t.Table=b.Table;var y=o(6);t.ToolbarIcon=y.ToolbarIcon;var w=o(20);t.JoditToolbarCollection=w.JoditToolbarCollection;var E=o(36);t.ToolbarCollection=E.ToolbarCollection;var C=o(26);t.ToolbarButton=C.ToolbarButton;var j=o(58);t.Stack=j.Stack;var x=o(17);t.Widget=x.Widget;var T=o(146);t.Uploader=T.Uploader},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o(1),i=o(3),a=o(4),n=o(134),l=o(55);i.Config.prototype.defaultAjaxOptions={dataType:"json",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(void 0===n.XDomainRequest?XMLHttpRequest:n.XDomainRequest)}};var r=(c.prototype.__buildParams=function(e,t){return this.options.queryBuild&&"function"==typeof this.options.queryBuild?this.options.queryBuild.call(this,e,t):"string"==typeof e||this.jodit.ownerWindow.FormData&&e instanceof this.jodit.ownerWindow.FormData?e:l.buildQuery(e)},c.prototype.abort=function(){try{this.xhr.abort()}catch(e){}return this},c.prototype.send=function(){var r=this;return new Promise(function(t,o){function i(e){var t=null;if("json"===r.options.dataType&&(t=JSON.parse(e)),!t)throw Error("No JSON format");return t}r.xhr.onabort=function(){o(Error(r.xhr.statusText))},r.xhr.onerror=function(){o(Error(r.xhr.statusText))},r.xhr.ontimeout=function(){o(Error(r.xhr.statusText))},r.xhr.onload=function(){r.response=r.xhr.responseText,r.status=r.xhr.status,t.call(r.xhr,i(r.response)||{})},r.xhr.onreadystatechange=function(){if(r.xhr.readyState===XMLHttpRequest.DONE){var e=r.xhr.responseText;r.response=e,r.status=r.xhr.status,~r.success_response_codes.indexOf(r.xhr.status)?t.call(r.xhr,i(e)):o.call(r.xhr,Error(r.xhr.statusText||r.jodit.i18n("Connection error!")))}},r.xhr.withCredentials=r.options.withCredentials||!1;var e=r.prepareRequest(),n=e.data;r.xhr.open(e.method,e.url,!0),r.options.contentType&&r.xhr.setRequestHeader&&r.xhr.setRequestHeader("Content-type",r.options.contentType),r.options.headers&&r.xhr.setRequestHeader&&a.each(r.options.headers,function(e,t){r.xhr.setRequestHeader(e,t)}),setTimeout(function(){r.xhr.send(n?r.__buildParams(n):void 0)},0)})},c.prototype.prepareRequest=function(){if(!this.options.url)throw Error("Need URL for AJAX request");var e=this.options.url,t=this.options.data,o=(this.options.method||"get").toLowerCase();if("get"==o&&t&&a.isPlainObject(t)){var i=e.indexOf("?");if(-1!=i){var n=a.parseQuery(e);e=e.substr(0,i)+"?"+l.buildQuery(s.__assign(s.__assign({},n),t))}else e+="?"+l.buildQuery(this.options.data)}var r={url:e,method:o,data:t};return c.log.splice(100),c.log.push(r),r},c.log=[],c);function c(e,t){var o=this;this.success_response_codes=[200,201,202],this.jodit=e,this.options=a.extend(!0,{},i.Config.prototype.defaultAjaxOptions,t),this.options.xhr&&(this.xhr=this.options.xhr()),e&&e.events&&e.events.on("beforeDestruct",function(){o.abort()})}t.Ajax=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(1),r=o(8),s=o(10),a=o(6),l=o(0),c=(n.__extends(d,i=r.Component),d.prototype.show=function(e,t,o,i){var n=this,r=this;Array.isArray(o)&&(i&&(this.context.style.zIndex=""+i),this.context.innerHTML="",o.forEach(function(t){if(t){var e=r.jodit.i18n(t.title||""),o=n.jodit.create.fromHTML('<a title="'+e+'" data-icon="'+t.icon+'"  href="javascript:void(0)">'+(t.icon?a.ToolbarIcon.getIcon(t.icon):"")+"<span></span></a>"),i=o.querySelector("span");o.addEventListener("click",function(e){return t.exec&&t.exec.call(r,e),r.hide(),!1}),i.textContent=e,r.context.appendChild(o)}}),s.css(r.context,{left:e,top:t}),this.jodit.events.on(this.jodit.ownerWindow,"mouseup jodit_close_dialog",r.hide),this.context.classList.add("jodit_context_menu-show"))},d.prototype.destruct=function(){l.Dom.safeRemove(this.context),delete this.context,this.jodit.events.off(this.jodit.ownerWindow,"mouseup",this.hide),i.prototype.destruct.call(this)},d);function d(e){var t=i.call(this,e)||this;return t.hide=function(){t.context.classList.remove("jodit_context_menu-show"),t.jodit.ownerWindow.removeEventListener("mouseup",t.hide)},t.context=e.create.div("jodit_context_menu",{"data-editor_id":t.jodit.id}),e.ownerDocument.body.appendChild(t.context),t}t.ContextMenu=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.F_CLASS="jodit_filebrowser",t.ITEM_CLASS=t.F_CLASS+"_files_item",t.ICON_LOADER='<i class="jodit_icon-loader"></i>'},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asArray=function(e){return Array.isArray(e)?e:[e]}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(18);t.debounce=function(o,i,n,r){3===arguments.length&&"boolean"!=typeof n&&(r=n,n=!1);var s=0;return function(){var e=arguments,t=r||this;(!n||s)&&i||o.apply(t,e),i&&(clearTimeout(s),s=a.setTimeout(function(){n||o.apply(t,e),s=0},i))}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWindow=function(e){return null!==e&&e===e.window}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isURL=function(e){return/^(https?:\/\/)((([a-z\d]([a-z\d-]*[a-z\d])*)\.?)+[a-z]{2,}|((\d{1,3}\.){3}\d{1,3}))(\:\d+)?(\/[-a-z\d%_.~+]*)*(\?[;&a-z\d%_.~+=-]*)?(\#[-a-z\d_]*)?$/i.test(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colorToHex=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,o,i,n=/([\s\n\t\r]*?)rgb\((\d+), (\d+), (\d+)\)/.exec(e)||/([\s\n\t\r]*?)rgba\((\d+), (\d+), (\d+), ([\d.]+)\)/.exec(e);if(!n)return"#000000";for(o=parseInt(n[2],10),i=parseInt(n[3],10),t=(parseInt(n[4],10)|i<<8|o<<16).toString(16).toUpperCase();t.length<6;)t="0"+t;return n[1]+"#"+t}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1);i.__exportStar(o(85),t),i.__exportStar(o(86),t),i.__exportStar(o(88),t),i.__exportStar(o(89),t),i.__exportStar(o(90),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=function(e){return e.replace(/([-_])(.)/g,function(e,t,o){return o.toUpperCase()})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCamelCase=function(e){return e.replace(/([A-Z]+)/g,function(e,t){return"-"+t.toLowerCase()})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(22);t.normilizeCSSValue=function(e,t){switch(e.toLowerCase()){case"font-weight":switch((""+t).toLowerCase()){case"bold":return 700;case"normal":return 400;case"heavy":return 900}return i.isNumeric(t)?+t:t}return t}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(51);t.appendScript=function(e,t,o,i){void 0===o&&(o="");var n=i.createElement("script");return n.className=o,n.type="text/javascript",void 0!==t&&n.addEventListener("load",t),n.src=r.completeUrl(e),i.body.appendChild(n),{callback:t,element:n}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.completeUrl=function(e){return"file:"===window.location.protocol&&/^\/\//.test(e)&&(e="https:"+e),e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseQuery=function(e){for(var t={},o=e.substr(1).split("&"),i=0;i<o.length;i+=1){var n=o[i].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return t}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ctrlKey=function(e){if("undefined"!=typeof navigator&&~navigator.userAgent.indexOf("Mac OS X")){if(e.metaKey&&!e.altKey)return!0}else if(e.ctrlKey&&!e.altKey)return!0;return!1}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLanguage=function(e){return"auto"===e||void 0===e?document.documentElement&&document.documentElement.lang||navigator.language&&navigator.language.substr(0,2)||!!navigator.browserLanguage&&navigator.browserLanguage.substr(0,2)||"en":e}},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var l=t(33);a.buildQuery=function(e,t){var o=[],i=encodeURIComponent;for(var n in e)if(e.hasOwnProperty(n)){var r=t?t+"["+n+"]":n,s=e[n];o.push(l.isPlainObject(s)?a.buildQuery(s,r):i(r)+"="+i(s))}return o.join("&")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),r=o(8),s=o(5),a=o(57),l=o(58),c=o(108);n.Config.prototype.observer={timeout:100};var d,u=(i.__extends(f,d=r.Component),f.prototype.redo=function(){this.stack.redo()&&(this.__startValue=this.snapshot.make(),this.changeStack())},f.prototype.undo=function(){this.stack.undo()&&(this.__startValue=this.snapshot.make(),this.changeStack())},f.prototype.clear=function(){this.__startValue=this.snapshot.make(),this.stack.clear(),this.changeStack()},f.prototype.changeStack=function(){this.jodit&&!this.jodit.isDestructed&&this.jodit.events&&this.jodit.events.fire("changeStack")},f.prototype.destruct=function(){this.jodit.events&&this.jodit.events.off(".observer"),this.snapshot.destruct(),delete this.snapshot,delete this.stack,d.prototype.destruct.call(this)},f);function f(e){var t=d.call(this,e)||this;t.onChangeStack=function(){t.__newValue=t.snapshot.make(),a.Snapshot.equal(t.__newValue,t.__startValue)||(t.stack.push(new c.Command(t.__startValue,t.__newValue,t)),t.__startValue=t.__newValue,t.changeStack())},t.stack=new l.Stack,t.snapshot=new a.Snapshot(e);var o=s.debounce(t.onChangeStack,e.defaultTimeout);return e.events.on("afterInit.observer",function(){t.isDestructed||(t.__startValue=t.snapshot.make(),e.events.on("changeSelection.observer selectionstart.observer selectionchange.observer mousedown.observer mouseup.observer keydown.observer keyup.observer",function(){t.__startValue.html===t.jodit.getNativeEditorValue()&&(t.__startValue=t.snapshot.make())}).on("change.observer",function(){t.snapshot.isBlocked||o()}))}),t}t.Observer=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(1),r=o(8),s=o(0),a=(n.__extends(l,i=r.Component),l.equal=function(e,t){return e.html===t.html&&JSON.stringify(e.range)===JSON.stringify(t.range)},l.countNodesBeforeInParent=function(e){if(!e.parentNode)return 0;var t,o=e.parentNode.childNodes,i=0,n=null;for(t=0;t<o.length;t+=1){if(!n||o[t].nodeType===Node.TEXT_NODE&&""===o[t].textContent||n.nodeType===Node.TEXT_NODE&&o[t].nodeType===Node.TEXT_NODE||(i+=1),o[t]===e)return i;n=o[t]}return 0},l.strokeOffset=function(e,t){for(;e&&e.nodeType===Node.TEXT_NODE;)(e=e.previousSibling)&&e.nodeType===Node.TEXT_NODE&&null!==e.textContent&&(t+=e.textContent.length);return t},l.prototype.calcHierarchyLadder=function(e){var t=[];if(!e||!e.parentNode||!s.Dom.isOrContains(this.jodit.editor,e))return[];for(;e&&e!==this.jodit.editor;)e&&t.push(l.countNodesBeforeInParent(e)),e=e.parentNode;return t.reverse()},l.prototype.getElementByLadder=function(e){var t,o=this.jodit.editor;for(t=0;o&&t<e.length;t+=1)o=o.childNodes[e[t]];return o},l.prototype.make=function(){var e={html:"",range:{startContainer:[],startOffset:0,endContainer:[],endOffset:0}};e.html=this.jodit.getNativeEditorValue();var t=this.jodit.selection.sel;if(t&&t.rangeCount){var o=t.getRangeAt(0),i=this.calcHierarchyLadder(o.startContainer),n=this.calcHierarchyLadder(o.endContainer),r=l.strokeOffset(o.startContainer,o.startOffset),s=l.strokeOffset(o.endContainer,o.endOffset);i.length||o.startContainer===this.jodit.editor||(r=0),n.length||o.endContainer===this.jodit.editor||(s=0),e.range={startContainer:i,startOffset:r,endContainer:n,endOffset:s}}return e},l.prototype.restore=function(e){this.isBlocked=!0,this.jodit.setEditorValue(e.html);try{if(e.range){var t=this.jodit.editorDocument.createRange();t.setStart(this.getElementByLadder(e.range.startContainer),e.range.startOffset),t.setEnd(this.getElementByLadder(e.range.endContainer),e.range.endOffset),this.jodit.selection.selectRange(t)}}catch(e){}this.isBlocked=!1},l.prototype.destruct=function(){this.isBlocked=!1,i.prototype.destruct.call(this)},l);function l(){var e=null!==i&&i.apply(this,arguments)||this;return e.isBlocked=!1,e}t.Snapshot=a},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(n.prototype.clearRedo=function(){this.commands.length=this.stackPosition+1},n.prototype.clear=function(){this.commands.length=0,this.stackPosition=-1},n.prototype.push=function(e){this.clearRedo(),this.commands.push(e),this.stackPosition+=1},n.prototype.undo=function(){return!!this.canUndo()&&(this.commands[this.stackPosition]&&this.commands[this.stackPosition].undo(),this.stackPosition-=1,!0)},n.prototype.redo=function(){return!!this.canRedo()&&(this.stackPosition+=1,this.commands[this.stackPosition]&&this.commands[this.stackPosition].redo(),!0)},n.prototype.canUndo=function(){return 0<=this.stackPosition},n.prototype.canRedo=function(){return this.stackPosition<this.commands.length-1},n);function n(){this.commands=[],this.stackPosition=-1}t.Stack=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=o(2),d=o(2),m=o(0),g=o(10),r=o(19),s=o(11),_=o(33),b=o(24),y=o(9),i=(n.prototype.errorNode=function(e){if(!m.Dom.isNode(e,this.win))throw Error("Parameter node must be instance of Node")},Object.defineProperty(n.prototype,"area",{get:function(){return this.jodit.editor},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"win",{get:function(){return this.jodit.editorWindow},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"doc",{get:function(){return this.jodit.editorDocument},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"sel",{get:function(){return this.win.getSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"range",{get:function(){var e=this.sel;return e&&e.rangeCount?e.getRangeAt(0):this.createRange()},enumerable:!0,configurable:!0}),n.prototype.createRange=function(){return this.doc.createRange()},n.prototype.remove=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)},n.prototype.insertCursorAtPoint=function(e,t){this.removeMarkers();try{var o=this.createRange();if(this.doc.caretPositionFromPoint){var i=this.doc.caretPositionFromPoint(e,t);o.setStart(i.offsetNode,i.offset)}else this.doc.caretRangeFromPoint&&(i=this.doc.caretRangeFromPoint(e,t),o.setStart(i.startContainer,i.startOffset));if(o){o.collapse(!0);var n=this.sel;n&&(n.removeAllRanges(),n.addRange(o))}else if(void 0!==this.doc.body.createTextRange){var r=this.doc.body.createTextRange();r.moveToPoint(e,t);var s=r.duplicate();s.moveToPoint(e,t),r.setEndPoint("EndToEnd",s),r.select()}return!0}catch(e){}return!1},n.prototype.removeMarkers=function(){s.$$("span[data-"+v.MARKER_CLASS+"]",this.area).forEach(m.Dom.safeRemove)},n.prototype.marker=function(e,t){void 0===e&&(e=!1);var o=null;t&&(o=t.cloneRange()).collapse(e);var i=this.jodit.create.inside.span();return i.id=v.MARKER_CLASS+"_"+ +new Date+"_"+(""+Math.random()).slice(2),i.style.lineHeight="0",i.style.display="none",i.setAttribute("data-"+v.MARKER_CLASS,e?"start":"end"),i.appendChild(this.jodit.create.inside.text(v.INVISIBLE_SPACE)),o&&m.Dom.isOrContains(this.area,e?o.startContainer:o.endContainer)&&o.insertNode(i),i},n.prototype.restore=function(e){var r=this;if(void 0===e&&(e=[]),Array.isArray(e)){var s=this.sel;s&&s.removeAllRanges(),e.forEach(function(e){var t=r.createRange(),o=r.area.querySelector("#"+e.endId),i=r.area.querySelector("#"+e.startId);if(i){if(e.collapsed||!o){var n=i.previousSibling;n&&n.nodeType===Node.TEXT_NODE?t.setStart(n,n.nodeValue?n.nodeValue.length:0):t.setStartBefore(i),m.Dom.safeRemove(i),t.collapse(!0)}else t.setStartAfter(i),m.Dom.safeRemove(i),t.setEndBefore(o),m.Dom.safeRemove(o);s&&s.addRange(t)}})}},n.prototype.save=function(){var e=this.sel;if(!e||!e.rangeCount)return[];var t,o,i,n=[],r=e.rangeCount,s=[];for(t=0;t<r;t+=1)s[t]=e.getRangeAt(t),n[t]=s[t].collapsed?{startId:(o=this.marker(!0,s[t])).id,collapsed:!0,startMarker:o.outerHTML}:(o=this.marker(!0,s[t]),i=this.marker(!1,s[t]),{startId:o.id,endId:i.id,collapsed:!1,startMarker:o.outerHTML,endMarker:i.outerHTML});for(e.removeAllRanges(),t=r-1;0<=t;--t){var a=this.doc.getElementById(n[t].startId);if(a)if(n[t].collapsed)s[t].setStartAfter(a),s[t].collapse(!0);else if(s[t].setStartBefore(a),n[t].endId){var l=this.doc.getElementById(n[t].endId);l&&s[t].setEndAfter(l)}try{e.addRange(s[t].cloneRange())}catch(e){}}return n},n.prototype.isCollapsed=function(){for(var e=this.sel,t=0;e&&t<e.rangeCount;t+=1)if(!e.getRangeAt(t).collapsed)return!1;return!0},n.prototype.isFocused=function(){return this.doc.hasFocus&&this.doc.hasFocus()&&this.area===this.doc.activeElement},n.prototype.current=function(e){if(void 0===e&&(e=!0),this.jodit.getRealMode()===v.MODE_WYSIWYG){var t=this.sel;if(t&&0<t.rangeCount){var o=t.getRangeAt(0),i=o.startContainer,n=!1,r=function(e){return n?e.lastChild:e.firstChild};if(i.nodeType!==Node.TEXT_NODE){if((i=o.startContainer.childNodes[o.startOffset])||(i=o.startContainer.childNodes[o.startOffset-1],n=!0),i&&t.isCollapsed&&i.nodeType!==Node.TEXT_NODE)if(!n&&i.previousSibling&&i.previousSibling.nodeType===Node.TEXT_NODE)i=i.previousSibling;else if(e)for(var s=r(i);s;){if(s&&s.nodeType===Node.TEXT_NODE){i=s;break}s=r(s)}if(i&&!t.isCollapsed&&i.nodeType!==Node.TEXT_NODE){for(var a=i,l=i;l=l.lastChild,(a=a.firstChild)&&l&&a.nodeType!==Node.TEXT_NODE;);a===l&&a&&a.nodeType===Node.TEXT_NODE&&(i=a)}}if(i&&m.Dom.isOrContains(this.area,i))return i}}return!1},n.prototype.insertNode=function(e,t,o){void 0===t&&(t=!0),void 0===o&&(o=!0),this.errorNode(e),this.focus();var i=this.sel;if(this.isCollapsed()||this.jodit.execCommand("Delete"),i&&i.rangeCount){var n=i.getRangeAt(0);m.Dom.isOrContains(this.area,n.commonAncestorContainer)?(n.deleteContents(),n.insertNode(e)):this.area.appendChild(e)}else this.area.appendChild(e);t&&this.setCursorAfter(e),o&&this.jodit.events&&this.jodit.events.fire("synchro"),this.jodit.events&&this.jodit.events.fire("afterInsertNode",e)},n.prototype.insertHTML=function(e){if(""!==e){var t,o,i=this.jodit.create.inside.div(),n=this.jodit.create.inside.fragment();if(!this.isFocused()&&this.jodit.isEditorMode()&&this.focus(),m.Dom.isNode(e,this.win)?i.appendChild(e):i.innerHTML=""+e,(this.jodit.isEditorMode()||!1!==this.jodit.events.fire("insertHTML",i.innerHTML))&&(t=i.lastChild)){for(;i.firstChild;)n.appendChild(t=i.firstChild);for(this.insertNode(n,!1),t?this.setCursorAfter(t):this.setCursorIn(n),o=this.area.lastChild;o&&o.nodeType===Node.TEXT_NODE&&o.previousSibling&&o.nodeValue&&/^\s*$/.test(o.nodeValue);)o=o.previousSibling;t&&(o&&t===o&&t.nodeType===Node.ELEMENT_NODE&&this.area.appendChild(this.jodit.create.inside.element("br")),this.setCursorAfter(t))}}},n.prototype.insertImage=function(e,t,o){var i="string"==typeof e?this.jodit.create.inside.element("img"):e;if("string"==typeof e&&i.setAttribute("src",e),null!==o){var n=""+o;!n||"auto"===n||~(n+"").indexOf("px")||~(n+"").indexOf("%")||(n+="px"),g.css(i,"width",n)}t&&"object"==typeof t&&g.css(i,t);var r=function(){(i.naturalHeight<i.offsetHeight||i.naturalWidth<i.offsetWidth)&&(i.style.width="",i.style.height=""),i.removeEventListener("load",r)};i.addEventListener("load",r),i.complete&&r();var s=this.insertNode(i);return this.jodit.events.fire("afterInsertImage",i),s},n.prototype.setCursorAfter=function(e){var t=this;if(this.errorNode(e),!m.Dom.up(e,function(e){return e===t.area||e&&e.parentNode===t.area},this.area))throw Error("Node element must be in editor");var o=this.createRange(),i=!1;return e.nodeType!==Node.TEXT_NODE?(i=this.doc.createTextNode(v.INVISIBLE_SPACE),o.setStartAfter(e),o.insertNode(i),o.selectNode(i)):o.setEnd(e,null!==e.nodeValue?e.nodeValue.length:0),o.collapse(!1),this.selectRange(o),i},n.prototype.cursorInTheEdge=function(o,i){var e=this.sel,t=e&&e.rangeCount?e.getRangeAt(0):null;if(!t)return null;function n(e){for(;e;)if(t=e,(e=o?m.Dom.prev(t,function(e){return!!e},i):m.Dom.next(t,function(e){return!!e},i))&&!m.Dom.isEmptyTextNode(e)&&"BR"!==e.nodeName)return!1;var t}var r=o?t.startContainer:t.endContainer;if(r.nodeType===Node.TEXT_NODE){var s=r.nodeValue||"";if(o&&t.startOffset>s.length-s.replace(d.INVISIBLE_SPACE_REG_EXP_START,"").length)return!1;if(!o&&t.startOffset<s.replace(d.INVISIBLE_SPACE_REG_EXP_END,"").length)return!1;if(!1===n(r))return!1}var a=this.current(!1);return a&&m.Dom.isOrContains(i,a,!0)?!(!o&&t.startContainer.childNodes[t.startOffset]&&a&&!m.Dom.isEmptyTextNode(a))&&!1!==n(a):null},n.prototype.setCursorBefore=function(e){var t=this;if(this.errorNode(e),!m.Dom.up(e,function(e){return e===t.area||e&&e.parentNode===t.area},this.area))throw Error("Node element must be in editor");var o=this.createRange(),i=!1;return e.nodeType!==Node.TEXT_NODE?(i=this.doc.createTextNode(v.INVISIBLE_SPACE),o.setStartBefore(e),o.collapse(!0),o.insertNode(i),o.selectNode(i)):o.setStart(e,null!==e.nodeValue?e.nodeValue.length:0),o.collapse(!0),this.selectRange(o),i},n.prototype.setCursorIn=function(e,t){var o=this;if(void 0===t&&(t=!1),this.errorNode(e),!m.Dom.up(e,function(e){return e===o.area||e&&e.parentNode===o.area},this.area))throw Error("Node element must be in editor");var i=this.createRange(),n=e,r=e;do{if(n.nodeType===Node.TEXT_NODE)break;r=n,n=t?n.firstChild:n.lastChild}while(n);if(!n){var s=this.doc.createTextNode(v.INVISIBLE_SPACE);/^(img|br|input)$/i.test(r.nodeName)?n=r:(r.appendChild(s),r=s)}return i.selectNodeContents(n||r),i.collapse(t),this.selectRange(i),r},n.prototype.selectRange=function(e){var t=this.sel;t&&(t.removeAllRanges(),t.addRange(e)),this.jodit.events.fire("changeSelection")},n.prototype.select=function(e,t){var o=this;if(void 0===t&&(t=!1),this.errorNode(e),!m.Dom.up(e,function(e){return e===o.area||e&&e.parentNode===o.area},this.area))throw Error("Node element must be in editor");var i=this.createRange();i[t?"selectNodeContents":"selectNode"](e),this.selectRange(i)},n.prototype.getHTML=function(){var e=this.sel;if(e&&0<e.rangeCount){var t=e.getRangeAt(0).cloneContents(),o=this.jodit.create.inside.div();return o.appendChild(t),o.innerHTML}return""},n.prototype.applyCSS=function(a,l,t){var c=this;function d(e){return null!==e&&!m.Dom.isEmptyTextNode(e)&&!c.isMarker(e)}function u(e){return!!e&&(RegExp("^"+e.nodeName+"$","i").test(l)||!(!t||("FONT"===(i=e).nodeName||i.nodeType!==Node.ELEMENT_NODE||!(_.isPlainObject(t)&&b.each(t,function(e,t){var o=g.css(i,e,void 0,!0);return null!==o&&""!==o&&!!~t.indexOf((""+o).toLowerCase())})||"function"==typeof t&&t(c.jodit,i)))))&&d(e);var i}function f(t){u(t)&&(t.nodeName===h&&a&&Object.keys(a).forEach(function(e){0===p||g.css(t,e)===r.normilizeCSSValue(e,a[e])?(g.css(t,e,""),void 0===p&&(p=0)):(g.css(t,e,a[e]),void 0===p&&(p=1))}),m.Dom.isBlock(t,c.win)||t.getAttribute("style")&&t.nodeName===h||(m.Dom.unwrap(t),void 0===p&&(p=0)))}void 0===l&&(l="span");var p,h="SPAN";if(this.isCollapsed()){var e=!1;if(this.current()&&m.Dom.closest(this.current(),l,this.area)){e=!0;var o=m.Dom.closest(this.current(),l,this.area);o&&this.setCursorAfter(o)}if(l.toUpperCase()==h||!e){var i=this.jodit.create.inside.element(l);i.appendChild(this.jodit.create.inside.text(v.INVISIBLE_SPACE)),this.insertNode(i,!1,!1),l.toUpperCase()==h&&a&&g.css(i,a),this.setCursorIn(i)}}else{var n=this.save();r.normalizeNode(this.area.firstChild),s.$$("*[style*=font-size]",this.area).forEach(function(e){e.style&&e.style.fontSize&&e.setAttribute("data-font-size",""+e.style.fontSize)}),this.doc.execCommand("fontsize",!1,"7"),s.$$("*[data-font-size]",this.area).forEach(function(e){var t=e.getAttribute("data-font-size");e.style&&t&&(e.style.fontSize=t,e.removeAttribute("data-font-size"))}),s.$$('font[size="7"]',this.area).forEach(function(e){if(m.Dom.next(e,d,e.parentNode)||m.Dom.prev(e,d,e.parentNode)||!u(e.parentNode)||e.parentNode===c.area||m.Dom.isBlock(e.parentNode,c.win)&&!v.IS_BLOCK.test(l))if(e.firstChild&&!m.Dom.next(e.firstChild,d,e)&&!m.Dom.prev(e.firstChild,d,e)&&u(e.firstChild))f(e.firstChild);else if(m.Dom.closest(e,u,c.area)){var t=c.createRange(),o=m.Dom.closest(e,u,c.area);t.setStartBefore(o),t.setEndBefore(e);var i=t.extractContents();i.textContent&&y.trim(i.textContent).length||!i.firstChild||m.Dom.unwrap(i.firstChild),o.parentNode&&o.parentNode.insertBefore(i,o),t.setStartAfter(e),t.setEndAfter(o);var n=t.extractContents();n.textContent&&y.trim(n.textContent).length||!n.firstChild||m.Dom.unwrap(n.firstChild),m.Dom.after(o,n),f(o)}else{var r,s=[];e.firstChild&&m.Dom.find(e.firstChild,function(e){return e&&u(e)?(void 0===r&&(r=!0),s.push(e)):void 0===r&&(r=!1),!1},e,!0),s.forEach(m.Dom.unwrap),r||(void 0===p&&(p=1),1===p&&g.css(m.Dom.replace(e,l,!1,!1,c.doc),a&&l.toUpperCase()==h?a:{}))}else f(e.parentNode);e.parentNode&&m.Dom.unwrap(e)}),this.restore(n)}},n);function n(e){var c=this;this.jodit=e,this.isMarker=function(e){return m.Dom.isNode(e,c.win)&&e.nodeType===Node.ELEMENT_NODE&&"SPAN"===e.nodeName&&e.hasAttribute("data-"+v.MARKER_CLASS)},this.focus=function(){if(c.isFocused())return!1;c.jodit.iframe&&"complete"==c.doc.readyState&&c.jodit.iframe.focus(),c.win.focus(),c.area.focus();var e=c.sel,t=c.createRange();return!e||e.rangeCount&&c.current()||(t.setStart(c.area,0),t.collapse(!0),e.removeAllRanges(),e.addRange(t)),!0},this.eachSelection=function(o){var e=c.sel;if(e&&e.rangeCount){var t=e.getRangeAt(0),i=[],n=t.startOffset,r=c.area.childNodes.length,s=t.startContainer===c.area?c.area.childNodes[n<r?n:r-1]:t.startContainer,a=t.endContainer===c.area?c.area.childNodes[t.endOffset-1]:t.endContainer;m.Dom.find(s,function(e){return!e||e===c.area||m.Dom.isEmptyTextNode(e)||c.isMarker(e)||i.push(e),e===a||e&&e.contains(a)},c.area,!0,"nextSibling",!1);var l=function(e){if(e.nodeName.match(/^(UL|OL)$/))return Array.from(e.childNodes).forEach(l);if("LI"===e.nodeName)if(e.firstChild)e=e.firstChild;else{var t=c.jodit.create.inside.text(d.INVISIBLE_SPACE);e.appendChild(t),e=t}o(e)};0===i.length&&m.Dom.isEmptyTextNode(s)&&i.push(s),i.forEach(l)}}}t.Select=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(n.prototype.set=function(t,o){try{localStorage.setItem(t,""+o)}catch(e){this.data[t]=""+o}},n.prototype.get=function(e){try{return localStorage.getItem(e)}catch(e){}return this.data[e]||null},n);function n(){this.data={}}t.LocalStorageProvider=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(1),r=o(62),s=(n.__extends(a,i=r.View),a.prototype.destruct=function(){this.toolbar.destruct(),delete this.toolbar,i.prototype.destruct.call(this)},a);function a(){var e=null!==i&&i.apply(this,arguments)||this;return e.toolbar=l.JoditToolbarCollection.makeCollection(e),e}t.ViewWithToolbar=s;var l=o(20)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=o(1),n=o(63),s=o(111),a=(r.__extends(l,i=s.Panel),Object.defineProperty(l.prototype,"defaultTimeout",{get:function(){return 100},enumerable:!0,configurable:!0}),l.prototype.i18n=function(e){for(var t,o,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];return this.jodit&&this.jodit!==this?(t=this.jodit).i18n.apply(t,r.__spreadArrays([e],i)):(o=c.Jodit.prototype).i18n.apply(o,r.__spreadArrays([e],i))},l.prototype.toggleFullSize=function(e){i.prototype.toggleFullSize.call(this,e),this.events&&this.events.fire("toggleFullSize",e)},l.prototype.getInstance=function(e,t){if("function"!=typeof c.Jodit.modules[e])throw Error("Need real module name");return void 0===this.__modulesInstances[e]&&(this.__modulesInstances[e]=new c.Jodit.modules[e](this.jodit||this,t)),this.__modulesInstances[e]},l.prototype.destruct=function(){this.isDestructed||(this.events&&(this.events.destruct(),delete this.events),delete this.options,i.prototype.destruct.call(this))},l);function l(e,t){var o=i.call(this,e)||this;return o.version="3.2.60",o.__modulesInstances={},o.progress_bar=o.create.div("jodit_progress_bar",o.create.div()),o.options={removeButtons:[],zIndex:100002,fullsize:!1,showTooltip:!0,useNativeTooltip:!1,buttons:[],globalFullsize:!0},o.components=[],o.getVersion=function(){return o.version},o.id=e&&e.id?e.id:""+(new Date).getTime(),o.jodit=e||o,o.events=e&&e.events?e.events:new n.EventsNative(o.ownerDocument),o.buffer=e&&e.buffer?e.buffer:{},o.options=r.__assign(r.__assign({},o.options),t),o}t.View=a;var c=o(12)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=o(1),p=o(110),i=(n.prototype.eachEvent=function(e,o){var i=this;e.split(/[\s,]+/).forEach(function(e){var t=e.split(".");o.call(i,t[0],t[1]||p.defaultNameSpace)})},n.prototype.getStore=function(e){if(void 0===e[this.__key]){var t=new p.EventHandlersStore;Object.defineProperty(e,this.__key,{enumerable:!1,configurable:!0,value:t})}return e[this.__key]},n.prototype.clearStore=function(e){void 0!==e[this.__key]&&delete e[this.__key]},n.prototype.triggerNativeEvent=function(e,t){var o=this.doc.createEvent("HTMLEvents");"string"==typeof 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)},n.prototype.removeStop=function(e){if(e){var t=this.__stopped.indexOf(e);-1!=t&&this.__stopped.splice(t,1)}},n.prototype.isStopped=function(e){return void 0!==e&&!!~this.__stopped.indexOf(e)},n.prototype.on=function(e,t,o,i,n){var r=this;void 0===n&&(n=!1);var s="string"==typeof e?this:e,a="string"==typeof t?t:e,l=o;void 0===l&&"function"==typeof t&&(l=t);var c=this.getStore(s);if("string"!=typeof a||""===a)throw Error("Need events names");if("function"!=typeof l)throw Error("Need event handler");if(Array.isArray(s))return s.forEach(function(e){r.on(e,a,l,i)}),this;var d="function"==typeof s.addEventListener,u=this,f=function(e){return l&&l.apply(this,arguments)};return d&&(f=function(e){if(u.prepareEvent(e),l&&!1===l.call(this,e))return e.preventDefault(),e.stopImmediatePropagation(),!1},i&&(f=function(e){u.prepareEvent(e);for(var t=e.target;t&&t!==this;){if(t.matches(i))return Object.defineProperty(e,"target",{value:t,configurable:!0,enumerable:!0}),l&&!1===l.call(t,e)?(e.preventDefault(),!1):void 0;t=t.parentNode}})),this.eachEvent(a,function(e,t){if(""===e)throw Error("Need event name");!1===c.indexOf(e,t,l)&&(c.set(e,t,{event:e,originalCallback:l,syntheticCallback:f},n),d&&s.addEventListener(e,f,!1))}),this},n.prototype.off=function(e,t,o){var i=this,n="string"==typeof e?this:e,r="string"==typeof t?t:e,s=this.getStore(n),a=o;if("string"!=typeof r||!r)return s.namespaces().forEach(function(e){i.off(n,"."+e)}),this.clearStore(n),this;function l(e){c&&n.removeEventListener(e.event,e.syntheticCallback,!1)}void 0===a&&"function"==typeof t&&(a=t);var c="function"==typeof n.removeEventListener,d=function(e,t){if(""!==e){var o=s.get(e,t);if(o&&o.length)if("function"!=typeof a)o.forEach(l),o.length=0;else{var i=s.indexOf(e,t,a);!1!==i&&(l(o[i]),o.splice(i,1))}}else s.events(t).forEach(function(e){""!==e&&d(e,t)})};return this.eachEvent(r,function(t,e){e===p.defaultNameSpace?s.namespaces().forEach(function(e){d(t,e)}):d(t,e)}),this},n.prototype.stopPropagation=function(e,t){var i=this,n="string"==typeof e?this:e,o="string"==typeof e?e:t;if("string"!=typeof o)throw Error("Need event names");var r=this.getStore(n);this.eachEvent(o,function(t,e){var o=r.get(t,e);o&&i.__stopped.push(o),e===p.defaultNameSpace&&r.namespaces(!0).forEach(function(e){return i.stopPropagation(n,t+"."+e)})})},n.prototype.fire=function(e,t){for(var n=this,o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var r,s=void 0,a="string"==typeof e?this:e,l="string"==typeof e?e:t,c="string"==typeof e?f.__spreadArrays([t],o):o,d="function"==typeof a.dispatchEvent;if(!d&&"string"!=typeof l)throw Error("Need events names");var u=this.getStore(a);return"string"!=typeof l&&d?this.triggerNativeEvent(a,t):this.eachEvent(l,function(o,t){if(d)n.triggerNativeEvent(a,o);else{var i=u.get(o,t);if(i)try{i.every(function(e){return!n.isStopped(i)&&(n.current.push(o),r=e.syntheticCallback.apply(a,c),n.current.pop(),void 0!==r&&(s=r),!0)})}finally{n.removeStop(i)}t!==p.defaultNameSpace||d||u.namespaces().filter(function(e){return e!==t}).forEach(function(e){var t=n.fire.apply(n,f.__spreadArrays([a,o+"."+e],c));void 0!==t&&(s=t)})}}),s},n.prototype.destruct=function(){this.isDestructed&&(this.isDestructed=!0,this.off(this),this.getStore(this).clear(),delete this[this.__key])},n);function n(e){var o=this;this.__key="__JoditEventsNativeNamespaces",this.doc=document,this.__stopped=[],this.prepareEvent=function(t){t.cancelBubble||(t.type.match(/^touch/)&&t.changedTouches&&t.changedTouches.length&&["clientX","clientY","pageX","pageY"].forEach(function(e){Object.defineProperty(t,e,{value:t.changedTouches[0][e],configurable:!0,enumerable:!0})}),t.originalEvent||(t.originalEvent=t),"paste"===t.type&&void 0===t.clipboardData&&o.doc.defaultView.clipboardData&&Object.defineProperty(t,"clipboardData",{get:function(){return o.doc.defaultView.clipboardData},configurable:!0,enumerable:!0}))},this.current=[],this.isDestructed=!1,e&&(this.doc=e),this.__key+=(new Date).getTime()}t.EventsNative=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(21),s=o(24),a=o(41),i=o(0),l=o(4),n=(c.prototype.setDocument=function(e){this.doc=e},c.prototype.element=function(e,t,o){var i=this,n=this.doc.createElement(e.toLowerCase());return t&&(r.isPlainObject(t)?s.each(t,function(e,t){r.isPlainObject(t)&&"style"===e?l.css(n,t):n.setAttribute(e,""+t)}):o=t),o&&a.asArray(o).forEach(function(e){return n.appendChild("string"==typeof e?i.fromHTML(e):e)}),n},c.prototype.div=function(e,t,o){var i=this.element("div",t,o);return e&&(i.className=e),i},c.prototype.span=function(e,t,o){var i=this.element("span",t,o);return e&&(i.className=e),i},c.prototype.a=function(e,t,o){var i=this.element("a",t,o);return e&&(i.className=e),i},c.prototype.text=function(e){return this.doc.createTextNode(e)},c.prototype.fragment=function(){return this.doc.createDocumentFragment()},c.prototype.fromHTML=function(e){var t=this.div();t.innerHTML=""+e;var o=t.firstChild===t.lastChild&&t.firstChild?t.firstChild:t;return i.Dom.safeRemove(o),o},c);function c(e,t){this.doc=e,null!==t&&(this.inside=t?new c(t):new c(e,null))}t.Create=n},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=o(16),p=o(6);t.Promt=function(e,t,o,i,n){var r=new f.Dialog,s=r.create.fromHTML('<a href="javascript:void(0)" style="float:right;" class="jodit_button">'+p.ToolbarIcon.getIcon("cancel")+"<span>"+h.Jodit.prototype.i18n("Cancel")+"</span></a>"),a=r.create.fromHTML('<a href="javascript:void(0)" style="float:left;" class="jodit_button">'+p.ToolbarIcon.getIcon("check")+"<span>"+h.Jodit.prototype.i18n("Ok")+"</span></a>"),l=r.create.element("form",{class:"jodit_promt"}),c=r.create.element("input",{autofocus:!0,class:"jodit_input"}),d=r.create.element("label");function u(){o&&"function"==typeof o&&!1===o(c.value)||r.close()}return"function"==typeof t&&(o=t,t=void 0),i&&c.setAttribute("placeholder",i),d.appendChild(r.create.text(e)),l.appendChild(d),l.appendChild(c),s.addEventListener("click",r.close,!1),a.addEventListener("click",u),l.addEventListener("submit",function(){return u(),!1}),r.setFooter([a,s]),r.open(l,t||"&nbsp;",!0,!0),c.focus(),void 0!==n&&n.length&&(c.value=n,c.select()),r};var h=o(12)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=o(16),d=o(6);t.Confirm=function(e,t,o){var i=new c.Dialog,n=i.create.fromHTML('<form class="jodit_promt"></form>'),r=i.create.element("label");"function"==typeof t&&(o=t,t=void 0),r.appendChild(i.create.fromHTML(e)),n.appendChild(r);var s=i.create.fromHTML('<a href="javascript:void(0)" style="float:right;" class="jodit_button">'+d.ToolbarIcon.getIcon("cancel")+"<span>"+u.Jodit.prototype.i18n("Cancel")+"</span></a>");function a(){o&&o(!0),i.close()}s.addEventListener("click",function(){o&&o(!1),i.close()});var l=i.create.fromHTML('<a href="javascript:void(0)" style="float:left;" class="jodit_button">'+d.ToolbarIcon.getIcon("check")+"<span>"+u.Jodit.prototype.i18n("Yes")+"</span></a>");return l.addEventListener("click",a),n.addEventListener("submit",function(){return a(),!1}),i.setFooter([l,s]),i.open(n,t||"&nbsp;",!0,!0),l.focus(),i};var u=o(12)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),o(68),"undefined"!=typeof window&&o(69);var i=o(12),n=o(2),r=o(117),s=o(37),a=o(147),l=o(189),c=o(3),d=o(6);function u(e){return"__esModule"!==e}Object.keys(n).forEach(function(e){i.Jodit[e]=n[e]}),Object.keys(l).filter(u).forEach(function(e){d.ToolbarIcon.icons[e.replace("_","-")]=l[e]}),Object.keys(s).filter(u).forEach(function(e){i.Jodit.modules[e]=s[e]}),["Confirm","Alert","Promt"].forEach(function(e){i.Jodit[e]=s[e]}),Object.keys(a).filter(u).forEach(function(e){i.Jodit.plugins[e]=a[e]}),Object.keys(r).filter(u).forEach(function(e){i.Jodit.lang[e]=r[e]}),i.Jodit.defaultOptions=c.Config.defaultOptions,c.OptionsDefault.prototype=i.Jodit.defaultOptions,t.Jodit=i.Jodit,t.default=i.Jodit},function(e,t,o){},function(e,t,o){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),o(70),o(71),(i=Element.prototype).matches||(i.matches=void 0!==i.matchesSelector?i.matchesSelector:function(e){if(!this.ownerDocument)return[];var t=this.ownerDocument.querySelectorAll(e),o=this;return Array.prototype.some.call(t,function(e){return e===o})}),Array.from||(Array.from=function(e){return[].slice.call(e)}),Array.prototype.includes||(Array.prototype.includes=function(e){return!!~this.indexOf(e)})},function(e,t){"document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(e){"use strict";if("Element"in e){var t="classList",o="prototype",i=e.Element[o],n=Object,r=String[o].trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array[o].indexOf||function(e){for(var t=0,o=this.length;t<o;t++)if(t in this&&this[t]===e)return t;return-1},a=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},l=function(e,t){if(""===t)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(e,t)},c=function(e){for(var t=r.call(e.getAttribute("class")||""),o=t?t.split(/\s+/):[],i=0,n=o.length;i<n;i++)this.push(o[i]);this._updateClassName=function(){e.setAttribute("class",""+this)}},d=c[o]=[],u=function(){return new c(this)};if(a[o]=Error[o],d.item=function(e){return this[e]||null},d.contains=function(e){return-1!==l(this,e+="")},d.add=function(){for(var e,t=arguments,o=0,i=t.length,n=!1;-1===l(this,e=t[o]+"")&&(this.push(e),n=!0),++o<i;);n&&this._updateClassName()},d.remove=function(){var e,t,o=arguments,i=0,n=o.length,r=!1;do{for(t=l(this,e=o[i]+"");-1!==t;)this.splice(t,1),r=!0,t=l(this,e)}while(++i<n);r&&this._updateClassName()},d.toggle=function(e,t){var o=this.contains(e+=""),i=o?!0!==t&&"remove":!1!==t&&"add";return i&&this[i](e),!0===t||!1===t?t:!o},d.toString=function(){return this.join(" ")},n.defineProperty){var f={get:u,enumerable:!0,configurable:!0};try{n.defineProperty(i,t,f)}catch(e){void 0!==e.number&&-2146823252!==e.number||(f.enumerable=!1,n.defineProperty(i,t,f))}}else n[o].__defineGetter__&&i.__defineGetter__(t,u)}}(window.self),function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var i=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var t,o=arguments.length;for(t=0;t<o;t++)i.call(this,e=arguments[t])}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:o.call(this,e)}}e=null}())},function(e,t,o){"use strict";e.exports=o(72).polyfill()},function(e,t,o){var H,W;H=o(73),W=o(74),e.exports=function(){"use strict";function l(e){return"function"==typeof e}var o=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,t=void 0,n=void 0,s=function(e,t){f[i]=e,f[i+1]=t,2===(i+=2)&&(n?n(p):_())};var e="undefined"!=typeof window?window:void 0,r=e||{},a=r.MutationObserver||r.WebKitMutationObserver,c="undefined"==typeof self&&void 0!==H&&"[object process]"==={}.toString.call(H),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function u(){var e=setTimeout;return function(){return e(p,1)}}var f=Array(1e3);function p(){for(var e=0;e<i;e+=2){(0,f[e])(f[e+1]),f[e]=void 0,f[e+1]=void 0}i=0}var h,v,m,g,_=void 0;function b(e,t){var o=this,i=new this.constructor(E);void 0===i[w]&&P(i);var n=o._state;if(n){var r=arguments[n-1];s(function(){return A(n,i,r,o._result)})}else I(o,i,e,t);return i}function y(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(E);return D(t,e),t}_=c?function(){return H.nextTick(p)}:a?(v=0,m=new a(p),g=document.createTextNode(""),m.observe(g,{characterData:!0}),function(){g.data=v=++v%2}):d?((h=new MessageChannel).port1.onmessage=p,function(){return h.port2.postMessage(0)}):void 0===e?function(){try{var e=Function("return this")().require("vertx");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(p)}:u()}catch(e){return u()}}():u();var w=Math.random().toString(36).substring(2);function E(){}var C=void 0,j=1,x=2;function T(e,i,n){s(function(t){var o=!1,e=function(e,t,o,i){try{e.call(t,o,i)}catch(e){return e}}(n,i,function(e){o||(o=!0,i!==e?D(t,e):M(t,e))},function(e){o||(o=!0,L(t,e))});!o&&e&&(o=!0,L(t,e))},e)}function S(e,t,o){t.constructor===e.constructor&&o===b&&t.constructor.resolve===y?function(t,e){e._state===j?M(t,e._result):e._state===x?L(t,e._result):I(e,void 0,function(e){return D(t,e)},function(e){return L(t,e)})}(e,t):void 0===o?M(e,t):l(o)?T(e,t,o):M(e,t)}function D(t,e){if(t===e)L(t,new TypeError("You cannot resolve a promise with itself"));else if(function(e){var t=typeof e;return null!==e&&("object"==t||"function"==t)}(e)){var o=void 0;try{o=e.then}catch(e){return void L(t,e)}S(t,e,o)}else M(t,e)}function q(e){e._onerror&&e._onerror(e._result),N(e)}function M(e,t){e._state===C&&(e._result=t,e._state=j,0!==e._subscribers.length&&s(N,e))}function L(e,t){e._state===C&&(e._state=x,e._result=t,s(q,e))}function I(e,t,o,i){var n=e._subscribers,r=n.length;e._onerror=null,n[r]=t,n[r+j]=o,n[r+x]=i,0===r&&e._state&&s(N,e)}function N(e){var t=e._subscribers,o=e._state;if(0!==t.length){for(var i=void 0,n=void 0,r=e._result,s=0;s<t.length;s+=3)n=t[s+o],(i=t[s])?A(o,i,n,r):n(r);e._subscribers.length=0}}function A(e,t,o,i){var n=l(o),r=void 0,s=void 0,a=!0;if(n){try{r=o(i)}catch(e){a=!1,s=e}if(t===r)return void L(t,new TypeError("A promises callback cannot return that same promise."))}else r=i;t._state!==C||(n&&a?D(t,r):!1===a?L(t,s):e===j?M(t,r):e===x&&L(t,r))}var k=0;function P(e){e[w]=k++,e._state=void 0,e._result=void 0,e._subscribers=[]}var O=(z.prototype._enumerate=function(e){for(var t=0;this._state===C&&t<e.length;t++)this._eachEntry(e[t],t)},z.prototype._eachEntry=function(t,e){var o=this._instanceConstructor,i=o.resolve;if(i===y){var n=void 0,r=void 0,s=!1;try{n=t.then}catch(e){s=!0,r=e}if(n===b&&t._state!==C)this._settledAt(t._state,e,t._result);else if("function"!=typeof n)this._remaining--,this._result[e]=t;else if(o===R){var a=new o(E);s?L(a,r):S(a,t,n),this._willSettleAt(a,e)}else this._willSettleAt(new o(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},z.prototype._settledAt=function(e,t,o){var i=this.promise;i._state===C&&(this._remaining--,e===x?L(i,o):this._result[t]=o),0===this._remaining&&M(i,this._result)},z.prototype._willSettleAt=function(e,t){var o=this;I(e,void 0,function(e){return o._settledAt(j,t,e)},function(e){return o._settledAt(x,t,e)})},z);function z(e,t){this._instanceConstructor=e,this.promise=new e(E),this.promise[w]||P(this.promise),o(t)?(this.length=t.length,this._remaining=t.length,this._result=Array(this.length),0===this.length?M(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&M(this.promise,this._result))):L(this.promise,Error("Array Methods must be provided an Array"))}var R=(B.prototype.catch=function(e){return this.then(null,e)},B.prototype.finally=function(t){var o=this.constructor;return l(t)?this.then(function(e){return o.resolve(t()).then(function(){return e})},function(e){return o.resolve(t()).then(function(){throw e})}):this.then(t,t)},B);function B(e){this[w]=k++,this._result=this._state=void 0,this._subscribers=[],E!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof B?function(t,e){try{e(function(e){D(t,e)},function(e){L(t,e)})}catch(e){L(t,e)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return R.prototype.then=b,R.all=function(e){return new O(this,e).promise},R.race=function(n){var r=this;return o(n)?new r(function(e,t){for(var o=n.length,i=0;i<o;i++)r.resolve(n[i]).then(e,t)}):new r(function(e,t){return t(new TypeError("You must pass an array to race."))})},R.resolve=y,R.reject=function(e){var t=new this(E);return L(t,e),t},R._setScheduler=function(e){n=e},R._setAsap=function(e){s=e},R._asap=s,R.polyfill=function(){var e=void 0;if(void 0!==W)e=W;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var o=null;try{o=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===o&&!t.cast)return}e.Promise=R},R.Promise=R}()},function(e,t){var o,i,n=e.exports={};function r(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function a(t){if(o===setTimeout)return setTimeout(t,0);if((o===r||!o)&&setTimeout)return(o=setTimeout)(t,0);try{return o(t,0)}catch(e){try{return o.call(null,t,0)}catch(e){return o.call(this,t,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:r}catch(e){o=r}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var l,c=[],d=!1,u=-1;function f(){d&&l&&(d=!1,l.length?c=l.concat(c):u=-1,c.length&&p())}function p(){if(!d){var e=a(f);d=!0;for(var t=c.length;t;){for(l=c,c=[];++u<t;)l&&l[u].run();u=-1,t=c.length}l=null,d=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return(i=clearTimeout)(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}n.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var o=1;o<arguments.length;o++)t[o-1]=arguments[o];c.push(new h(e,t)),1!==c.length||d||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=v,n.addListener=v,n.once=v,n.off=v,n.removeListener=v,n.removeAllListeners=v,n.emit=v,n.prependListener=v,n.prependOnceListener=v,n.listeners=function(e){return[]},n.binding=function(e){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw Error("process.chdir is not supported")},n.umask=function(){return 0}},function(e,t){var o;o=function(){return this}();try{o=o||Function("return this")()}catch(e){"object"==typeof window&&(o=window)}e.exports=o},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.inArray=function(e,t){return!!~t.indexOf(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitArray=function(e){return"string"==typeof e?e.split(/[,\s]+/):e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=o(18);t.throttle=function(t,o,i){var n,r,s,a=null;return function(){n=arguments,r=!0;var e=i||this;o?a||(s=function(){a=r?(t.apply(e,n),r=!1,l.setTimeout(s,o)):null})():t.apply(e,n)}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHTML=function(e){return/<([A-Za-z][A-Za-z0-9]*)\b[^>]*>(.*?)<\/\1>/m.test(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isHTMLFromWord=function(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(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(22);t.isInt=function(e){return"string"==typeof e&&i.isNumeric(e)&&(e=parseFloat(e)),"number"==typeof e&&Number.isFinite(e)&&!(e%1)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLicense=function(e){return"string"==typeof e&&32===e.length&&/^[a-z0-9]+$/.test(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBrowserColorPicker=function(){var t=!0;try{var e=document.createElement("input");t=(e.type="color")===e.type&&"number"!=typeof e.selectionStart}catch(e){t=!1}return t}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1);i.__exportStar(o(84),t),i.__exportStar(o(45),t)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToRgb=function(e){e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,t,o,i){return t+t+o+o+i+i});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(0),l=o(11);t.applyStyles=function(e){if(!~e.indexOf("<html "))return e;e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,7+e.lastIndexOf("</html>"));var t=document.createElement("iframe");t.style.display="none",document.body.appendChild(t);var o="",i=[];try{var n=t.contentDocument||(t.contentWindow?t.contentWindow.document:null);if(n){n.open(),n.write(e),n.close(),n.styleSheets.length&&(i=n.styleSheets[n.styleSheets.length-1].cssRules);for(var r=function(t){if(""===i[t].selectorText)return"continue";l.$$(i[t].selectorText,n.body).forEach(function(e){e.style.cssText=i[t].style.cssText.replace(/mso-[a-z\-]+:[\s]*[^;]+;/g,"").replace(/border[a-z\-]*:[\s]*[^;]+;/g,"")+e.style.cssText})},s=0;s<i.length;s+=1)r(s);o=n.firstChild?n.body.innerHTML:""}}catch(e){}finally{a.Dom.safeRemove(t)}return o&&(e=o),e.replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(0),r=o(9);t.cleanFromWord=function(e){~e.indexOf("<html ")&&(e=(e=e.substring(e.indexOf("<html "),e.length)).substring(0,7+e.lastIndexOf("</html>")));var t="";try{var o=document.createElement("div");o.innerHTML=e;var i=[];o.firstChild&&n.Dom.all(o,function(t){if(t)switch(t.nodeType){case Node.ELEMENT_NODE:switch(t.nodeName){case"STYLE":case"LINK":case"META":i.push(t);break;case"W:SDT":case"W:SDTPR":case"FONT":n.Dom.unwrap(t);break;default:Array.from(t.attributes).forEach(function(e){~["src","href","rel","content"].indexOf(e.name.toLowerCase())||t.removeAttribute(e.name)})}break;case Node.TEXT_NODE:break;default:i.push(t)}}),i.forEach(n.Dom.safeRemove),t=o.innerHTML}catch(e){}return t&&(e=t),(e=e.split(/(\n)/).filter(r.trim).join("\n")).replace(/<(\/)?(html|colgroup|col|o:p)[^>]*>/g,"").replace(/<!--[^>]*>/g,"")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sprintf=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var g=0,_=e,o=_[g];function b(e,t,o,i){var n=e.length<t?Array(1+t-e.length>>>0).join(o):"";return i?e+n:n+e}function y(e,t,o,i,n){var r=i-e.length;return 0<r&&(e=o||!n?b(e,i," ",o):e.slice(0,t.length)+b("",r,"0",!0)+e.slice(t.length)),e}function w(e,t,o,i,n,r,s){var a=e>>>0;return y((o=o&&a&&{2:"0b",8:"0",16:"0x"}[t]||"")+b(a.toString(t),r||0,"0",!1),o,i,n,s)}function E(e,t,o,i,n){return null!=i&&(e=e.slice(0,i)),y(e,"",t,o,n)}return g+=1,o.replace(/%%|%(\d+\$)?([-+#0 ]*)(\*\d+\$|\*|\d+)?(\.(\*\d+\$|\*|\d+))?([scboxXuidfegEG])/g,function(e,t,o,i,n,r,s){if("%%"===e)return"%";for(var a=!1,l="",c=!1,d=!1,u=0;o&&u<o.length;u++)switch(o[0|u]){case" ":l=" ";break;case"+":l="+";break;case"-":a=!0;break;case"0":c=!0;break;case"#":d=!0}if((i=i?"*"===i?+_[g++]:"*"==(""+i)[0]?+_[(""+i).slice(1,-1)]:+i:0)<0&&(i=-i,a=!0),!isFinite(i))throw Error("sprintf: (minimum-)width must be finite");r=r?"*"===r?+_[g++]:"*"===r[0]?+_[r.slice(1,-1)]:+r:~"fFeE".indexOf(s)?6:"d"===s?0:void 0;var f=t?_[t.slice(0,-1)]:_[g++];switch(s){case"s":return E(f+"",a,i,r,c);case"c":return E(String.fromCharCode(+f),a,i,r,c);case"b":return w(f,2,d,a,i,r,c);case"o":return w(f,8,d,a,i,r,c);case"x":return w(f,16,d,a,i,r,c);case"X":return w(f,16,d,a,i,r,c).toUpperCase();case"u":return w(f,10,d,a,i,r,c);case"i":case"d":return y(f=(h=(p=parseInt(""+f,10))<0?"-":l)+b(Math.abs(p)+"",r,"0",!1),h,a,i,c);case"e":case"E":case"f":case"F":case"g":case"G":var p,h=(p=+f)<0?"-":l,v=["toExponential","toFixed","toPrecision"]["efg".indexOf(s.toLowerCase())],m=["toString","toUpperCase"]["eEfFgG".indexOf(s)%2];return y(f=h+Math.abs(p)[v](r),h,a,i,c)[m]();default:return e}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(34),n=o(2);t.clear=function(e,t){return void 0===t&&(t=!1),e=i.trim(e).replace(n.INVISIBLE_SPACE_REG_EXP,"").replace(/[\s]*class=""/g,""),t&&(e=e.replace(/<p[^>]*>[\s\n\r\t]*(&nbsp;|<br>|<br\/>)?[\s\n\r\t]*<\/p>[\n\r]*/g,"")),e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.htmlspecialchars=function(e){var t=document.createElement("div");return t.textContent=e,t.innerHTML}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stripTags=function(e){var t=document.createElement("div");return t.innerHTML=e,t.textContent||""}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(9),n=o(2);t.normalizeKeyAliases=function(e){var t={};return e.replace(/\+\+/g,"+add").split(/[\s]*\+[\s]*/).map(function(e){return i.trim(e.toLowerCase())}).map(function(e){return n.KEY_ALIASES[e]||e}).sort().filter(function(e){return!t[e]&&""!==e&&(t[e]=!0)}).join("+")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLicense=function(e,t){void 0===t&&(t=8);for(var 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("-")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),n=o(0);t.normalizeNode=function(e){if(e){if(e.nodeType===Node.TEXT_NODE&&null!==e.nodeValue&&e.parentNode)for(;e.nextSibling&&e.nextSibling.nodeType===Node.TEXT_NODE;)null!==e.nextSibling.nodeValue&&(e.nodeValue+=e.nextSibling.nodeValue),e.nodeValue=e.nodeValue.replace(i.INVISIBLE_SPACE_REG_EXP,""),n.Dom.safeRemove(e.nextSibling);else t.normalizeNode(e.firstChild);t.normalizeNode(e.nextSibling)}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(9);t.normalizePath=function(){for(var o=[],e=0;e<arguments.length;e++)o[e]=arguments[e];return o.filter(function(e){return i.trim(e).length}).map(function(e,t){return e=e.replace(/([^:])[\\\/]+/g,"$1/"),t&&(e=e.replace(/^\//,"")),t!==o.length-1&&(e=e.replace(/\/$/,"")),e}).join("/")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeRelativePath=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("/")?"/":"")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeSize=function(e){return/^[0-9]+$/.test(""+e)?e+"px":""+e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeURL=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(function(e){return e.length}).map(function(e){return e.replace(/\/$/,"")}).join("/").replace(/([^:])[\\\/]+/g,"$1/")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(45),r=o(34);t.normalizeColor=function(e){var t=["#"],o=n.colorToHex(e);if(!o)return!1;if(3!==(o=(o=r.trim(o.toUpperCase())).substr(1)).length)return 6<o.length&&(o=o.substr(0,6)),"#"+o;for(var i=0;i<3;i+=1)t.push(o[i]),t.push(o[i]);return t.join("")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getContentWidth=function(e,t){function o(e){return parseInt(e,10)}var i=t.getComputedStyle(e);return e.offsetWidth-o(i.getPropertyValue("padding-left")||"0")-o(i.getPropertyValue("padding-right")||"0")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.innerWidth=function(e,t){var o=t.getComputedStyle(e);return e.clientWidth-(parseFloat(o.paddingLeft||"0")+parseFloat(o.paddingRight||"0"))}},function(e,v,t){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.offset=function(e,t,o,i){void 0===i&&(i=!1);var n,r,s=e.getBoundingClientRect(),a=o.body,l=o.documentElement||{clientTop:0,clientLeft:0,scrollTop:0,scrollLeft:0},c=o.defaultView||o.parentWindow,d=c.pageYOffset||l.scrollTop||a.scrollTop,u=c.pageXOffset||l.scrollLeft||a.scrollLeft,f=l.clientTop||a.clientTop||0,p=l.clientLeft||a.clientLeft||0;if(!i&&t&&t.options&&t.options.iframe&&t.iframe){var h=v.offset(t.iframe,t,t.ownerDocument,!0);n=s.top+h.top,r=s.left+h.left}else n=s.top+d-f,r=s.left+u-p;return{top:Math.round(n),left:Math.round(r),width:s.width,height:s.height}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browser=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")||[];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}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(44),l=o(52);t.convertMediaURLToVideoEmbed=function(e,t,o){if(void 0===t&&(t=400),void 0===o&&(o=345),!a.isURL(e))return e;var i=document.createElement("a"),n=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(.+)/g;i.href=e,t=t||400,o=o||345;var r=i.protocol||"";switch(i.hostname){case"www.vimeo.com":case"vimeo.com":return n.test(e)?e.replace(n,'<iframe width="'+t+'" height="'+o+'" src="'+r+'//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 s=i.search?l.parseQuery(i.search):{v:i.pathname.substr(1)};return s.v?'<iframe width="'+t+'" height="'+o+'" src="'+r+"//www.youtube.com/embed/"+s.v+'" frameborder="0" allowfullscreen></iframe>':e}return e}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="JoditDataBindKey";t.dataBind=function(e,t,o){var i=e[n];if(i||Object.defineProperty(e,n,{enumerable:(i={},!1),configurable:!0,value:i}),void 0===o)return i[t];i[t]=o}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.humanSizeToBytes=function(e){if(/^[0-9.]+$/.test(""+e))return parseFloat(e);var t=e.substr(-2,2).toUpperCase(),o=["KB","MB","GB","TB"],i=parseFloat(e.substr(0,e.length-2));return~o.indexOf(t)?i*Math.pow(1024,1+o.indexOf(t)):parseInt(e,10)}},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.inView=function(e,t,o){var i=e.getBoundingClientRect(),n=e,r=i.top,s=i.height;do{if(n&&n.parentNode){if(r>(i=(n=n.parentNode).getBoundingClientRect()).bottom)return!1;if(r+s<=i.top)return!1}}while(n&&n!==t&&n.parentNode);return r<=(o.documentElement&&o.documentElement.clientHeight||0)},i.scrollIntoView=function(e,t,o){i.inView(e,t,o)||(t.clientHeight!==t.scrollHeight&&(t.scrollTop=e.offsetTop),i.inView(e,t,o)||e.scrollIntoView())}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.val=function(e,t,o){var i=e.querySelector(t);return i?(o&&(i.value=o),i.value):""}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(n.prototype.undo=function(){this.observer.snapshot.restore(this.oldValue)},n.prototype.redo=function(){this.observer.snapshot.restore(this.newValue)},n);function n(e,t,o){this.observer=o,this.oldValue=e,this.newValue=t}t.Command=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(1),r=o(8),s=o(0),a=(n.__extends(l,i=r.Component),l.prototype.hide=function(){this.container&&(this.container.style.display="none")},l.prototype.show=function(){this.container&&(this.container.style.display="block")},l.prototype.append=function(e,t){void 0===t&&(t=!1);var o=this.jodit.create.div("jodit_statusbar_item");t&&o.classList.add("jodit_statusbar_item-right"),o.appendChild(e),this.container.appendChild(o),this.show(),this.jodit.events.fire("resize")},l.prototype.destruct=function(){s.Dom.safeRemove(this.container),delete this.container,i.prototype.destruct.call(this)},l);function l(e,t){var o=i.call(this,e)||this;return o.target=t,o.container=e.create.div("jodit_statusbar"),t.appendChild(o.container),o.hide(),o}t.StatusBar=a},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.defaultNameSpace="JoditEventDefaultNamespace";var i=(n.prototype.get=function(e,t){if(void 0!==this.__store[t])return this.__store[t][e]},n.prototype.indexOf=function(e,t,o){var i=this.get(e,t);if(i)for(var n=0;n<i.length;n+=1)if(i[n].originalCallback===o)return n;return!1},n.prototype.namespaces=function(e){void 0===e&&(e=!1);var t=Object.keys(this.__store);return e?t.filter(function(e){return e!==o.defaultNameSpace}):t},n.prototype.events=function(e){return this.__store[e]?Object.keys(this.__store[e]):[]},n.prototype.set=function(e,t,o,i){void 0===i&&(i=!1),void 0===this.__store[t]&&(this.__store[t]={}),void 0===this.__store[t][e]&&(this.__store[t][e]=[]),i?this.__store[t][e].unshift(o):this.__store[t][e].push(o)},n.prototype.clear=function(){delete this.__store,this.__store={}},n);function n(){this.__store={}}o.EventHandlersStore=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(1),r=o(8),s=o(0),a=o(64),l=o(15),c=(n.__extends(d,i=r.Component),d.prototype.destruct=function(){this.isDestructed&&(s.Dom.safeRemove(this.container),delete this.container,i.prototype.destruct.call(this))},d.prototype.lock=function(e){return void 0===e&&(e="any"),!this.isLocked()&&(this.__whoLocked=e,!0)},d.prototype.unlock=function(){return!!this.isLocked()&&!(this.__whoLocked="")},d.prototype.toggleFullSize=function(e){void 0===e&&(e=!this.__isFullSize),e!==this.__isFullSize&&(this.__isFullSize=e)},d);function d(e){var t=i.call(this,e)||this;return t.__whoLocked="",t.__isFullSize=!1,t.ownerDocument=document,t.ownerWindow=window,t.isLocked=function(){return""!==t.__whoLocked},t.isLockedNotBy=function(e){return t.isLocked()&&t.__whoLocked!==e},t.isFullSize=function(){return t.__isFullSize},e&&e.ownerDocument&&(t.ownerDocument=e.ownerDocument,t.ownerWindow=e.ownerWindow),t.create=new a.Create(t.ownerDocument,l.isJoditObject(e)?e.editorDocument:void 0),t.container=t.create.div(),t}t.Panel=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(1),r=o(25),s=(n.__extends(a,i=r.ToolbarElement),a);function a(e){var t=i.call(this,e)||this;return t.container.classList.add("jodit_toolbar_btn-break"),t}t.ToolbarBreak=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a=o(1),i=o(4),l=o(26),n=o(27),c=o(20),s=(a.__extends(d,r=n.Popup),d.prototype.doClose=function(){this.toolbar&&(this.toolbar.destruct(),delete this.toolbar)},d.prototype.doOpen=function(r){var s=this;this.toolbar=c.JoditToolbarCollection.makeCollection(this.jodit);var e="string"==typeof r.list?r.list.split(/[\s,]+/):r.list;i.each(e,function(e,t){function o(e){return n&&n[e]}var i,n=s.jodit.options.controls;"string"==typeof t&&o(t)?i=new l.ToolbarButton(s.toolbar,a.__assign({name:""+t},o(t)),s.current):"string"==typeof e&&o(e)&&"object"==typeof t?i=new l.ToolbarButton(s.toolbar,a.__assign(a.__assign({name:""+e},o(e)),t),s.current):(i=new l.ToolbarButton(s.toolbar,{name:""+e,exec:r.exec,command:r.command,isActive:r.isActiveChild,isDisable:r.isDisableChild,mode:r.mode,args:[r.args&&r.args[0]||e,r.args&&r.args[1]||t]},s.current)).textBox.innerHTML=(r.template||s.defaultControl.template)(s.jodit,""+e,""+t),s.toolbar.appendChild(i)}),this.container.appendChild(this.toolbar.container),this.container.style.removeProperty("marginLeft"),this.toolbar.checkActiveButtons()},d.prototype.firstInFocus=function(){this.toolbar.firstButton.focus()},d.prototype.destruct=function(){this.isDestructed||(this.doClose(),r.prototype.destruct.call(this))},d);function d(e,t,o,i){void 0===i&&(i="jodit_toolbar_list");var n=r.call(this,e,t,o,i)||this;return n.target=t,n.current=o,n.className=i,n.defaultControl={template:function(e,t,o){return n.jodit.i18n(o)}},n}t.PopupList=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(1),r=o(0),s=o(5),a=o(25),l=(n.__extends(c,i=a.ToolbarElement),c.prototype.destruct=function(){return this.hide(),this.jodit&&this.jodit.events&&this.jodit.events.off("change updateToolbar scroll hidePopup closeAllPopups hideTooltip",this.hide),i.prototype.destruct.call(this)},c);function c(e){var t=i.call(this,e.parentToolbar||e.jodit,"div","jodit_tooltip")||this;return t.button=e,t.timeout=0,t.show=function(){var e=t.button.jodit.options.showTooltipDelay||10*t.button.jodit.defaultTimeout;t.button.jodit.events.fire("hideTooltip"),t.timeout=s.setTimeout(function(){t.button.container.appendChild(t.container),t.container.style.marginLeft=-(t.container.offsetWidth-t.button.container.offsetWidth)/2+"px"},e)},t.hide=function(){window.clearTimeout(t.timeout),r.Dom.safeRemove(t.container)},e.control.tooltip&&(t.container.innerHTML=e.tooltipText,e.jodit.events.on(e.anchor,"mouseenter",t.show).on(e.anchor,"mouseleave",t.hide).on("change updateToolbar scroll hidePopup closeAllPopups hideTooltip",t.hide)),t}t.ToolbarTooltip=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(1),r=o(25),s=(n.__extends(a,i=r.ToolbarElement),a);function a(e){var t=i.call(this,e)||this;return t.container.classList.add("jodit_toolbar_btn-separator"),t}t.ToolbarSeparator=s},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ucfirst=function(e){return e.length?e[0].toUpperCase()+e.substr(1):""}},function(e,t,o){"use strict";var i=o(118),n=o(119),r=o(120),s=o(121),a=o(122),l=o(123),c=o(124),d=o(125),u=o(126),f=o(127),p=o(128),h=o(129),v=o(130),m=o(131),g=o(132),_=o(133),b={ar:i.default,de:r.default,cs_cz:n.default,en:_.default,es:s.default,fr:a.default,he:l.default,hu:c.default,id:d.default,it:u.default,nl:f.default,pt_br:p.default,ru:h.default,tr:v.default,zh_cn:m.default,zh_tw:g.default},y={};Array.isArray(_.default)&&_.default.forEach(function(e,t){y[t]=e}),Object.keys(b).forEach(function(o){var e=b[o];Array.isArray(e)&&(b[o]={},e.forEach(function(e,t){b[o][y[t]]=e}))}),e.exports=b},function(e,t){e.exports.default=["إبدأ في الكتابة...","لتحرير"]},function(e,t){e.exports.default=["Napiš něco","Chcete-li upravit"]},function(e,t){e.exports.default=["Bitte geben Sie einen Text ein","Bearbeiten"]},function(e,t){e.exports.default=["Escriba algo...","Para editar"]},function(e,t){e.exports.default=["Ecrivez ici","Pour éditer"]},function(e,t){e.exports.default=["הקלד משהו...","כדי לערוך"]},function(e,t){e.exports.default=["Írjon be valamit","Szerkesztés"]},function(e,t){e.exports.default=["Ketik sesuatu","pensil"]},function(e,t){e.exports.default=["Scrivi qualcosa...","Per modificare"]},function(e,t){e.exports.default=["Begin met typen..","Om te bewerken"]},function(e,t){e.exports.default=["Escreva algo...","Editar"]},function(e,t){e.exports.default=["Напишите что-либо","Редактировать"]},function(e,t){e.exports.default=["Bir şey yazın.","Düzenlemek için"]},function(e,t){e.exports.default=["输入一些内容","要編輯"]},function(e,t){e.exports.default=["輸入一些內容","要編輯"]},function(e,t){e.exports.default=["Type something","pencil"]},function(e,t){},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(n.prototype.set=function(e,t,o){var i,n;i=o?((n=new Date).setTime(n.getTime()+24*o*60*60*1e3),"; expires="+n.toUTCString()):"",document.cookie=e+"="+t+i+"; path=/"},n.prototype.get=function(e){var t,o,i=e+"=",n=document.cookie.split(";");for(t=0;t<n.length;t+=1){for(o=n[t];" "==o[0];)o=o.substring(1,o.length);if(!o.indexOf(i))return o.substring(i.length,o.length)}return null},n.prototype.remove=function(e){this.set(e,"",-1)},n);function n(){}t.Cookie=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(16),l=o(6);t.Alert=function(e,t,o,i){void 0===i&&(i="jodit_alert"),"function"==typeof t&&(o=t,t=void 0);var n=new a.Dialog,r=n.create.div(i),s=n.create.fromHTML('<a href="javascript:void(0)" style="float:right;" class="jodit_button">'+l.ToolbarIcon.getIcon("cancel")+"<span>"+c.Jodit.prototype.i18n("Ok")+"</span></a>");return d.asArray(e).forEach(function(e){r.appendChild(u.Dom.isNode(e,n.window)?e:n.create.fromHTML(e))}),s.addEventListener("click",function(){o&&"function"==typeof o&&!1===o(n)||n.close()}),n.setFooter([s]),n.open(r,t||"&nbsp;",!0,!0),s.focus(),n};var c=o(12),d=o(29),u=o(0)},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o(1),l=o(3),d=o(2),u=o(16),i=o(66),r=o(65),f=o(6),p=o(60),h=o(35),s=o(24),v=o(19),m=o(11),c=o(53),g=o(14),_=o(18),n=o(61);o(138);var b,y=o(0),w=o(5),E=o(13),C=o(139),j=o(140),x=o(141),T=o(142),S=o(143),D=o(144),q=o(40),M=q.ITEM_CLASS+"-active-true",L=(a.__extends(I,b=n.ViewWithToolbar),Object.defineProperty(I.prototype,"defaultTimeout",{get:function(){return this.jodit&&this.jodit!==this?this.jodit.defaultTimeout:l.Config.defaultOptions.observer.timeout},enumerable:!0,configurable:!0}),I.prototype.loadItems=function(t,o){return void 0===t&&(t=this.dataProvider.currentPath),void 0===o&&(o=this.dataProvider.currentSource),a.__awaiter(this,void 0,void 0,function(){var i=this;return a.__generator(this,function(e){return this.files.classList.add("active"),this.files.appendChild(this.loader.cloneNode(!0)),[2,this.dataProvider.items(t,o).then(function(e){var t=i.options.items.process;if(t=t||i.options.ajax.process){var o=t.call(self,e);i.generateItemsList(o.data.sources),i.state.activeElements=[]}}).catch(function(e){E.Alert(e.message),i.errorHandler(e)})]})})},I.prototype.loadTree=function(){return a.__awaiter(this,void 0,void 0,function(){var t,o,i,n,r,s=this;return a.__generator(this,function(e){return t=this.dataProvider.currentPath,o=this.dataProvider.currentSource,i=function(e){throw e instanceof Error?e:Error(e)},this.uploader&&(this.uploader.setPath(t),this.uploader.setSource(o)),this.tree.classList.add("active"),y.Dom.detach(this.tree),this.tree.appendChild(this.loader.cloneNode(!0)),this.options.showFoldersPanel?(n=this.dataProvider.tree(t,o).then(function(e){var t=s.options.folder.process;if(t=t||s.options.ajax.process){var o=t.call(self,e);s.generateFolderTree(o.data.sources)}}).catch(function(e){s.errorHandler(Error(s.jodit.i18n("Error on load folders"))),i(e)}),r=this.loadItems(t,o),[2,Promise.all([n,r]).catch(i)]):(this.tree.classList.remove("active"),[2])})})},I.prototype.deleteFile=function(o,i){return a.__awaiter(this,void 0,void 0,function(){var t=this;return a.__generator(this,function(e){return[2,this.dataProvider.fileRemove(this.dataProvider.currentPath,o,i).then(function(e){if(t.options.remove&&t.options.remove.process&&(e=t.options.remove.process.call(t,e)),!t.options.isSuccess(e))throw Error(t.options.getMessage(e));t.status(t.options.getMessage(e)||t.i18n('File "%s" was deleted',o),!0)}).catch(this.status)]})})},I.prototype.generateFolderTree=function(e){var i=[];s.each(e,function(t,o){o.folders.forEach(function(e){i.push({name:e,source:o,sourceName:t})})}),this.state.folders=i},I.prototype.generateItemsList=function(e){var i=this,n=[],r=this.state;s.each(e,function(t,o){o.files&&o.files.length&&("function"==typeof i.options.sort&&o.files.sort(function(e,t){return i.options.sort(e,t,r.sortBy)}),o.files.forEach(function(e){r.filterWord.length&&void 0!==i.options.filter&&!i.options.filter(e,r.filterWord)||i.state.onlyImages&&void 0!==e.isImage&&!e.isImage||n.push(T.FileBrowserItem.create(a.__assign(a.__assign({},e),{sourceName:t,source:o})))}))}),this.state.elements=n},I.prototype.onSelect=function(e){var t=this;return function(){if(t.state.activeElements.length){var o=[];t.state.activeElements.forEach(function(e){var t=e.fileURL;t&&o.push(t)}),t.close(),"function"==typeof e&&e({baseurl:"",files:o})}return!1}},I.prototype.isOpened=function(){return this.dialog.isOpened()&&"none"!==this.browser.style.display},I.prototype.elementToItem=function(e){return this.elementsMap[e.dataset.key||""].item},I.prototype.stateToView=function(){var l=this,e=this.state,t=this.files,c=this.create,d=this.options;e.on("beforeChange.activeElements",function(){e.activeElements.forEach(function(e){var t=l.elementsMap[e.uniqueHashKey].elm;t&&t.classList.remove(M)})}).on("change.activeElements",function(){l.events.fire("changeSelection"),e.activeElements.forEach(function(e){var t=l.elementsMap[e.uniqueHashKey].elm;t&&t.classList.add(M)})}).on("change.view",function(){t.classList.remove(q.F_CLASS+"_files_view-tiles"),t.classList.remove(q.F_CLASS+"_files_view-list"),t.classList.add(q.F_CLASS+"_files_view-"+e.view),l.storage.set(q.F_CLASS+"_view",e.view)}).on("change.sortBy",function(){l.storage.set(q.F_CLASS+"_sortby",e.sortBy)}).on("change.elements",w.debounce(function(){y.Dom.detach(t),e.elements.length?e.elements.forEach(function(e){l.files.appendChild(function(e){var t=e.uniqueHashKey;if(l.elementsMap[t])return l.elementsMap[t].elm;var o=c.fromHTML(d.getThumbTemplate.call(l,e,e.source,""+e.sourceName));return l.elementsMap[o.dataset.key=t]={item:e,elm:o},l.elementsMap[t].elm}(e))}):t.appendChild(c.div(q.F_CLASS+"_no_files",l.i18n("There are no files")))},this.defaultTimeout)).on("change.folders",w.debounce(function(){function r(e,t,o){void 0===o&&(o=!1),e&&a&&(e!==a||o)&&d.createNewFolder&&l.dataProvider.canI("FolderCreate")&&(l.tree.appendChild(c.a("jodit_button addfolder",{href:"javascript:void(0)","data-path":v.normalizePath(e.path+"/"),"data-source":t},f.ToolbarIcon.getIcon("plus")+" "+l.i18n("Add folder"))),a=e)}y.Dom.detach(l.tree);var s="default",a=null;e.folders.forEach(function(e){var t=e.name,o=e.source,i=e.sourceName;i&&i!==s&&(l.tree.appendChild(c.div(q.F_CLASS+"_source_title",i)),s=i);var n=c.a(q.F_CLASS+"_tree_item",{draggable:"draggable",href:"javascript:void(0)","data-path":v.normalizePath(o.path,t+"/"),"data-name":t,"data-source":i,"data-source-path":o.path},c.span(q.F_CLASS+"_tree_item_title",t));r(o,i),a=o,l.tree.appendChild(n),".."!==t&&"."!==t&&(d.deleteFolder&&l.dataProvider.canI("FolderRename")&&n.appendChild(c.element("i",{class:"jodit_icon_folder jodit_icon_folder_rename",title:l.i18n("Rename")},f.ToolbarIcon.getIcon("pencil"))),d.deleteFolder&&l.dataProvider.canI("FolderRemove")&&n.appendChild(c.element("i",{class:"jodit_icon_folder jodit_icon_folder_remove",title:l.i18n("Delete")},f.ToolbarIcon.getIcon("cancel"))))}),r(a,s,!0)},this.defaultTimeout))},I.prototype.initEventsListeners=function(){var t=this,o=this.state,n=this;n.events.on("view.filebrowser",function(e){e!==o.view&&(o.view=e)}).on("sort.filebrowser",function(e){e!==o.sortBy&&(o.sortBy=e,n.loadItems())}).on("filter.filebrowser",function(e){e!==o.filterWord&&(o.filterWord=e,n.loadItems())}).on("fileRemove.filebrowser",function(){n.state.activeElements.length&&i.Confirm(n.i18n("Are you sure?"),"",function(e){if(e){var t=[];n.state.activeElements.forEach(function(e){t.push(n.deleteFile(e.file||e.name||"",e.sourceName))}),n.state.activeElements=[],Promise.all(t).then(function(){return n.loadTree()})}})}).on("edit.filebrowser",function(){if(1===n.state.activeElements.length){var e=t.state.activeElements[0];n.openImageEditor(e.fileURL,e.file||"",e.path,e.sourceName)}}).on("fileRename.filebrowser",function(t,o,i){1===n.state.activeElements.length&&r.Promt(n.i18n("Enter new name"),n.i18n("Rename"),function(e){if(!D.isValidName(e))return n.status(n.i18n("Enter new name")),!1;n.dataProvider.fileRename(o,t,e,i).then(function(e){if(n.options.fileRename&&n.options.fileRename.process&&(e=n.options.fileRename.process.call(n,e)),!n.options.isSuccess(e))throw Error(n.options.getMessage(e));n.state.activeElements=[],n.status(n.options.getMessage(e),!0),n.loadItems()}).catch(n.status)},n.i18n("type name"),t)}).on("update.filebrowser",function(){n.loadTree()})},I.prototype.initNativeEventsListeners=function(){var t=this,o=!1,n=this;n.events.on(n.tree,"click",function(e){var t=this.parentNode,o=t.getAttribute("data-path")||"";return i.Confirm(n.i18n("Are you sure?"),n.i18n("Delete"),function(e){e&&n.dataProvider.folderRemove(o,t.getAttribute("data-name")||"",t.getAttribute("data-source")||"").then(function(e){if(n.options.folderRemove&&n.options.folderRemove.process&&(e=n.options.folderRemove.process.call(n,e)),!n.options.isSuccess(e))throw Error(n.options.getMessage(e));n.state.activeElements=[],n.status(n.options.getMessage(e),!0),n.loadTree()}).catch(n.status)}),e.stopImmediatePropagation(),!1},"a>.jodit_icon_folder_remove").on(n.tree,"click",function(e){var t=this.parentNode,o=t.getAttribute("data-name")||"",i=t.getAttribute("data-source-path")||"";return r.Promt(n.i18n("Enter new name"),n.i18n("Rename"),function(e){if(!D.isValidName(e))return n.status(n.i18n("Enter new name")),!1;n.dataProvider.folderRename(i,t.getAttribute("data-name")||"",e,t.getAttribute("data-source")||"").then(function(e){if(n.options.folderRename&&n.options.folderRename.process&&(e=n.options.folderRename.process.call(n,e)),!n.options.isSuccess(e))throw Error(n.options.getMessage(e));n.state.activeElements=[],n.status(n.options.getMessage(e),!0),n.loadTree()}).catch(n.status)},n.i18n("type name"),o),e.stopImmediatePropagation(),!1},"a>.jodit_icon_folder_rename").on(n.tree,"click",function(){var t=this;this.classList.contains("addfolder")?r.Promt(n.i18n("Enter Directory name"),n.i18n("Create directory"),function(e){n.dataProvider.createFolder(e,t.getAttribute("data-path")||"",t.getAttribute("data-source")||"").then(function(e){return n.options.isSuccess(e)?n.loadTree():n.status(n.options.getMessage(e)),e},n.status)},n.i18n("type name")):(n.dataProvider.currentPath=this.getAttribute("data-path")||"",n.dataProvider.currentSource=this.getAttribute("data-source")||"",n.loadTree())},"a").on(n.tree,"dragstart",function(){n.options.moveFolder&&(o=this)},"a").on(n.tree,"drop",function(){if((n.options.moveFile||n.options.moveFolder)&&o){var e=o.getAttribute("data-path")||"";if(!n.options.moveFolder&&o.classList.contains(q.F_CLASS+"_tree_item"))return!1;if(o.classList.contains(q.ITEM_CLASS)&&(e+=o.getAttribute("data-name"),!n.options.moveFile))return!1;n.dataProvider.move(e,this.getAttribute("data-path")||"",this.getAttribute("data-source")||"",o.classList.contains(q.ITEM_CLASS)).then(function(e){n.options.isSuccess(e)?n.loadTree():n.status(n.options.getMessage(e))},n.status),o=!1}},"a").on(n.files,"contextmenu",j.default(n),"a").on(n.files,"click",function(e){c.ctrlKey(e)||(t.state.activeElements=[])}).on(n.files,"click",function(e){var t=n.elementToItem(this);if(t)return n.state.activeElements=c.ctrlKey(e)?a.__spreadArrays(n.state.activeElements,[t]):[t],e.stopPropagation(),!1},"a").on(n.files,"dragstart",function(){n.options.moveFile&&(o=this)},"a").on(n.dialog.container,"drop",function(e){return e.preventDefault()})},I.prototype.initUploader=function(e){function t(){n.loadItems()}var o,i,n=this,r=this,s=g.extend(!0,{},l.Config.defaultOptions.uploader,r.options.uploader,a.__assign({},null===(i=null===(o=e)||void 0===o?void 0:o.options)||void 0===i?void 0:i.uploader));r.uploader=r.getInstance("Uploader",s),r.uploader.setPath(r.dataProvider.currentPath),r.uploader.setSource(r.dataProvider.currentSource),r.uploader.bind(r.browser,t,r.errorHandler),r.events.on("bindUploader.filebrowser",function(e){r.uploader.bind(e,t,r.errorHandler)})},I.prototype.destruct=function(){this.dialog.destruct(),delete this.dialog,this.events&&this.events.off(".filebrowser"),this.uploader&&this.uploader.destruct(),delete this.uploader,b.prototype.destruct.call(this)},I);function I(e,t){var c=b.call(this,e,t)||this;c.loader=c.create.div(q.F_CLASS+"_loader",q.ICON_LOADER),c.browser=c.create.div(q.F_CLASS+" non-selected"),c.status_line=c.create.div(q.F_CLASS+"_status"),c.tree=c.create.div(q.F_CLASS+"_tree"),c.files=c.create.div(q.F_CLASS+"_files"),c.state=x.ObserveObject.create({activeElements:[],elements:[],folders:[],view:"tiles",sortBy:"changed-desc",filterWord:"",onlyImages:!1}),c.errorHandler=function(e){c.status(e instanceof Error?c.i18n(e.message):c.options.getMessage(e))},c.status=function(e,t){"string"!=typeof e&&(e=e.message),clearTimeout(c.statusTimer),c.status_line.classList.remove("success"),c.status_line.classList.add("active");var o=c.create.div();o.textContent=e,c.status_line.appendChild(o),t&&c.status_line.classList.add("success"),c.statusTimer=_.setTimeout(function(){c.status_line.classList.remove("active"),y.Dom.detach(c.status_line)},c.options.howLongShowMsg)},c.close=function(){c.dialog.close()},c.open=function(n,e){return void 0===e&&(e=!1),c.state.onlyImages=e,new Promise(function(e,t){if(!c.options.items||!c.options.items.url)throw Error("Need set options.filebrowser.ajax.url");var o=0;c.events.off(c.files,"dblclick").on(c.files,"dblclick",c.onSelect(n),"a").on(c.files,"touchstart",function(){var e=(new Date).getTime();e-o<d.EMULATE_DBLCLICK_TIMEOUT&&c.onSelect(n)(),o=e},"a").off("select.filebrowser").on("select.filebrowser",c.onSelect(n));var i=c.create.div();c.toolbar.build(c.options.buttons,i),c.dialog.dialogbox_header.classList.add(q.F_CLASS+"_title_box"),c.dialog.open(c.browser,i),c.events.fire("sort.filebrowser",c.state.sortBy),c.loadTree().then(e,t)})},c.openImageEditor=function(e,n,r,s,a,l){return c.getInstance("ImageEditor").open(e,function(e,t,o,i){("resize"===t.action?c.dataProvider.resize(r,s,n,e,t.box):c.dataProvider.crop(r,s,n,e,t.box)).then(function(e){c.options.isSuccess(e)?c.loadTree().then(function(){o(),a&&a()}):(i(Error(c.options.getMessage(e))),l&&l(Error(c.options.getMessage(e))))}).catch(function(e){i(e),l&&l(e)})})},c.elementsMap={};var o=c,i=e?e.ownerDocument:document,n=e?e.editorDocument:i;e&&(c.id=e.id),o.options=new l.OptionsDefault(g.extend(!0,{},o.options,l.Config.defaultOptions.filebrowser,t,e?e.options.filebrowser:void 0)),o.storage=new h.Storage(c.options.filebrowser.saveStateInStorage?new p.LocalStorageProvider:new S.MemoryStorageProvider),o.dataProvider=new C.default(o.options,o.jodit||o),o.dialog=new u.Dialog(e||o,{fullsize:o.options.fullsize,buttons:["dialog.fullsize","dialog.close"]}),o.options.showFoldersPanel&&o.browser.appendChild(o.tree),o.browser.appendChild(o.files),o.browser.appendChild(o.status_line),c.initEventsListeners(),c.initNativeEventsListeners(),o.dialog.setSize(o.options.width,o.options.height),["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(function(e){null!==c.options[e]&&(c.options[e]=g.extend(!0,{},c.options.ajax,c.options[e]))}),o.stateToView();var r=c.storage.get(q.F_CLASS+"_view");o.state.view=r&&null===c.options.view?"list"===r?"list":"tiles":"list"===o.options.view?"list":"tiles";var s=o.storage.get(q.F_CLASS+"_sortby");if(s){var a=s.split("-");o.state.sortBy=["changed","name","size"].includes(a[0])?s:"changed-desc"}else o.state.sortBy=o.options.sortBy||"changed-desc";return o.dataProvider.currentBaseUrl=m.$$("base",n).length?m.$$("base",n)[0].getAttribute("href")||"":location.protocol+"//"+location.host,o.initUploader(e),c}t.FileBrowser=L},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),n=o(6),r=o(42),c=o(4),l=o(40);i.Config.prototype.filebrowser={filter:function(e,t){return t=t.toLowerCase(),"string"==typeof e?!!~e.toLowerCase().indexOf(t):"string"==typeof e.name?!!~e.name.toLowerCase().indexOf(t):"string"!=typeof e.file||!!~e.file.toLowerCase().indexOf(t)},sortBy:"changed-desc",sort:function(e,t,o){function i(e,t){return e<t?s?-1:1:t<e?s?1:-1:0}var n=o.toLowerCase().split("-"),r=n[0],s="asc"===n[1];if("string"==typeof e)return i(e.toLowerCase(),t.toLowerCase());if(void 0===e[r]||"name"===r)return"string"==typeof e.name?i(e.name.toLowerCase(),t.name.toLowerCase()):"string"==typeof e.file?i(e.file.toLowerCase(),t.file.toLowerCase()):0;switch(r){case"changed":var a=new Date(e.changed).getTime(),l=new Date(t.changed).getTime();return s?a-l:l-a;case"size":return a=c.humanSizeToBytes(e.size),l=c.humanSizeToBytes(t.size),s?a-l:l-a}return 0},editImage:!0,preview:!0,showPreviewNavigation:!0,showSelectButtonInPreview:!0,contextMenu:!0,howLongShowMsg:3e3,createNewFolder:!0,deleteFolder:!0,moveFolder:!0,moveFile:!0,showFoldersPanel:!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&&Array.isArray(e.data.messages)?e.data.messages.join(" "):""},showFileName:!0,showFileSize:!0,showFileChangeTime:!0,saveStateInStorage:!0,getThumbTemplate:function(e,t,o){var i=this.options,n=i.showFileName,r=i.showFileSize&&e.size,s=i.showFileChangeTime&&e.time,a="";return void 0!==e.file&&(a=e.file),'<a data-is-file="'+(e.isImage?0:1)+'" draggable="true" class="'+l.ITEM_CLASS+'" href="'+e.fileURL+'" data-source="'+o+'" data-path="'+e.path+'" data-name="'+a+'" title="'+a+'" data-url="'+e.fileURL+'"><img data-is-file="'+(e.isImage?0:1)+'" data-src="'+e.fileURL+'" src="'+e.imageURL+'" alt="'+a+'" loading="lazy" />'+(n||r||s?'<div class="'+l.ITEM_CLASS+'-info">'+(n?'<span class="'+l.ITEM_CLASS+'-info-filename">'+a+"</span>":"")+(r?'<span class="'+l.ITEM_CLASS+'-info-filesize">'+e.size+"</span>":"")+(s?'<span class="'+l.ITEM_CLASS+'-info-filechanged">'+s+"</span>":"")+"</div>":"")+"</a>"},ajax:{url:"",async:!0,data:{},cache:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",method:"POST",processData:!0,dataType:"json",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"}},uploader:null},i.Config.prototype.controls.filebrowser={upload:{icon:"plus",isInput:!0,exec:function(){},isDisable:function(e){return!e.dataProvider.canI("FileUpload")},getContent:function(e,t){var o=e.create.fromHTML('<span class="jodit_upload_button">'+n.ToolbarIcon.getIcon("plus")+'<input type="file" accept="'+(e.state.onlyImages?"image/*":"*")+'" tabindex="-1" dir="auto" multiple=""/></span>'),i=o.querySelector("input");return e.events.on("updateToolbar",function(){t&&t.isDisable&&(t.isDisable(e,t)?i.setAttribute("disabled","disabled"):i.removeAttribute("disabled"))}).fire("bindUploader.filebrowser",o),o}},remove:{icon:"bin",isDisable:function(e){return!e.state.activeElements.length||!e.dataProvider.canI("FileRemove")},exec:function(e){e.events.fire("fileRemove.filebrowser")}},update:{exec:function(e){e.events.fire("update.filebrowser")}},select:{icon:"check",isDisable:function(e){return!e.state.activeElements.length},exec:function(e){e.events.fire("select.filebrowser")}},edit:{icon:"pencil",isDisable: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.events.fire("edit.filebrowser")}},tiles:{icon:"th",isActive:function(e){return"tiles"===e.state.view},exec:function(e){e.events.fire("view.filebrowser","tiles")}},list:{icon:"th-list",isActive:function(e){return"list"===e.state.view},exec:function(e){e.events.fire("view.filebrowser","list")}},filter:{isInput:!0,getContent:function(e){var t=e.create.element("input",{class:"jodit_input",placeholder:e.i18n("Filter")});return e.events.on(t,"keydown mousedown",r.debounce(function(){e.events.fire("filter.filebrowser",t.value)},e.defaultTimeout)),t}},sort:{isInput:!0,getContent:function(e){var t=e.create.fromHTML('<select class="jodit_input"><option value="changed-asc">'+e.i18n("Sort by changed")+' (⬆)</option><option value="changed-desc">'+e.i18n("Sort by changed")+' (⬇)</option><option value="name-asc">'+e.i18n("Sort by name")+' (⬆)</option><option value="name-desc">'+e.i18n("Sort by name")+' (⬇)</option><option value="size-asc">'+e.i18n("Sort by size")+' (⬆)</option><option value="size-desc">'+e.i18n("Sort by size")+" (⬇)</option></select>");return e.events.on("sort.filebrowser",function(e){t.value!==e&&(t.value=e)}).on(t,"change",function(){e.events.fire("sort.filebrowser",t.value)}),t}}}},function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var n=t(1),r=t(4),s=t(38);o.DEFAULT_SOURCE_NAME="default";var i=(a.prototype.canI=function(e){var t="allow"+e;return null===this.__currentPermissions||void 0===this.__currentPermissions[t]||this.__currentPermissions[t]},a.prototype.get=function(e,t,o){var i=r.extend(!0,{},this.options.ajax,void 0!==this.options[e]?this.options[e]:this.options.ajax);i.prepareData&&(i.data=i.prepareData.call(this,i.data));var n=new s.Ajax(this.parent,i).send();return t&&n.then(t),o&&n.catch(o),n},a.prototype.permissions=function(t,o){return void 0===t&&(t=this.currentPath),void 0===o&&(o=this.currentSource),n.__awaiter(this,void 0,void 0,function(){var i=this;return n.__generator(this,function(e){return this.options.permissions?(this.options.permissions.data.path=t,this.options.permissions.data.source=o,this.options.permissions.url?[2,this.get("permissions").then(function(e){var t=i.options.permissions.process;if(t=t||i.options.ajax.process){var o=t.call(self,e);o.data.permissions&&(i.__currentPermissions=o.data.permissions)}})]:[2,Promise.resolve()]):[2,Promise.resolve()]})})},a.prototype.items=function(o,i){return void 0===o&&(o=this.currentPath),void 0===i&&(i=this.currentSource),n.__awaiter(this,void 0,void 0,function(){var t;return n.__generator(this,function(e){return(t=this.options).items?(t.items.data.path=o,t.items.data.source=i,[2,this.get("items")]):[2,Promise.reject("Set Items api options")]})})},a.prototype.tree=function(t,o){return void 0===t&&(t=this.currentPath),void 0===o&&(o=this.currentSource),n.__awaiter(this,void 0,void 0,function(){return n.__generator(this,function(e){switch(e.label){case 0:return t=r.normalizeRelativePath(t),[4,this.permissions(t,o)];case 1:return e.sent(),this.options.folder?(this.options.folder.data.path=t,this.options.folder.data.source=o,[2,this.get("folder")]):[2,Promise.reject("Set Folder Api options")]}})})},a.prototype.createFolder=function(e,t,o){var i=this;return this.options.create?(this.options.create.data.source=o,this.options.create.data.path=t,this.options.create.data.name=e,this.get("create").then(function(e){return i.currentPath=t,i.currentSource=o,e})):Promise.reject("Set Create api options")},a.prototype.move=function(e,t,o,i){var n=i?"fileMove":"folderMove",r=this.options[n];return r?(r.data.from=e,r.data.path=t,r.data.source=o,this.get(n)):Promise.reject("Set Move api options")},a.prototype.fileRemove=function(e,t,o){return this.options.fileRemove?(this.options.fileRemove.data.path=e,this.options.fileRemove.data.name=t,this.options.fileRemove.data.source=o,this.get("fileRemove")):Promise.reject("Set fileRemove api options")},a.prototype.folderRemove=function(e,t,o){return this.options.folderRemove?(this.options.folderRemove.data.path=e,this.options.folderRemove.data.name=t,this.options.folderRemove.data.source=o,this.get("folderRemove")):Promise.reject("Set folderRemove api options")},a.prototype.folderRename=function(e,t,o,i){return this.options.folderRename?(this.options.folderRename.data.path=e,this.options.folderRename.data.name=t,this.options.folderRename.data.newname=o,this.options.folderRename.data.source=i,this.get("folderRename")):Promise.reject("Set folderRename api options")},a.prototype.fileRename=function(e,t,o,i){return this.options.fileRename?(this.options.fileRename.data.path=e,this.options.fileRename.data.name=t,this.options.fileRename.data.newname=o,this.options.fileRename.data.source=i,this.get("fileRename")):Promise.reject("Set fileRename api options")},a.prototype.crop=function(e,t,o,i,n){return this.options.crop||(this.options.crop={data:{}}),void 0===this.options.crop.data&&(this.options.crop.data={action:"crop"}),this.options.crop.data.newname=i||o,n&&(this.options.crop.data.box=n),this.options.crop.data.path=e,this.options.crop.data.name=o,this.options.crop.data.source=t,this.get("crop")},a.prototype.resize=function(e,t,o,i,n){return this.options.resize||(this.options.resize={data:{}}),void 0===this.options.resize.data&&(this.options.resize.data={action:"resize"}),this.options.resize.data.newname=i||o,n&&(this.options.resize.data.box=n),this.options.resize.data.path=e,this.options.resize.data.name=o,this.options.resize.data.source=t,this.get("resize")},a);function a(e,t){var n=this;this.options=e,this.parent=t,this.__currentPermissions=null,this.currentPath="",this.currentSource=o.DEFAULT_SOURCE_NAME,this.currentBaseUrl="",this.getPathByUrl=function(e,t,o){var i="getLocalFileByUrl";return n.options[i].data.url=e,n.get(i,function(e){n.options.isSuccess(e)?t(e.data.path,e.data.name,e.data.source):o(Error(n.options.getMessage(e)))},o)}}o.default=i},function(e,t,o){"use strict";function f(e,t){return void 0===e&&(e="next"),void 0===t&&(t="right"),'<a href="javascript:void(0)" class="'+m+"navigation "+m+"navigation-"+e+'">'+s.ToolbarIcon.getIcon("angle-"+t)+"</a>"}Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),i=o(39),r=o(5),p=o(13),h=o(0),s=o(37),v=o(40),m=v.F_CLASS+"_preview_";t.default=function(u){if(!u.options.contextMenu)return function(){};var o=new i.ContextMenu(u.jodit||u);return function(e){function i(e){return c.getAttribute(e)||""}var t=this,c=this,d=u.options;return r.setTimeout(function(){o.show(e.pageX,e.pageY,[!("1"===i("data-is-file")||!d.editImage||!u.dataProvider.canI("ImageResize")&&!u.dataProvider.canI("ImageCrop"))&&{icon:"pencil",title:"Edit",exec:function(){u.openImageEditor(i("href"),i("data-name"),i("data-path"),i("data-source"))}},!!u.dataProvider.canI("FileRename")&&{icon:"italic",title:"Rename",exec:function(){return n.__awaiter(t,void 0,void 0,function(){return n.__generator(this,function(e){return u.events.fire("fileRename.filebrowser",i("data-name"),i("data-path"),i("data-source")),[2]})})}},!!u.dataProvider.canI("FileRemove")&&{icon:"bin",title:"Delete",exec:function(){return n.__awaiter(t,void 0,void 0,function(){return n.__generator(this,function(e){switch(e.label){case 0:return[4,u.deleteFile(i("data-name"),i("data-source"))];case 1:return e.sent(),u.state.activeElements=[],u.loadTree(),[2]}})})}},!!d.preview&&{icon:"eye",title:"Preview",exec:function(){function e(e){var o=u.create.element("img");o.setAttribute("src",e);var i=function(){var e,t;o.removeEventListener("load",i),r.innerHTML="",d.showPreviewNavigation&&(h.Dom.prevWithClass(c,v.ITEM_CLASS)&&r.appendChild(l),h.Dom.nextWithClass(c,v.ITEM_CLASS)&&r.appendChild(a)),r.appendChild(s),s.appendChild(o),n.setPosition(),null===(t=null===(e=u)||void 0===e?void 0:e.events)||void 0===t||t.fire("previewOpenedAndLoaded")};o.addEventListener("load",i),o.complete&&i()}var t,o,n=new p.Dialog(u),r=u.create.div(v.F_CLASS+"_preview",v.ICON_LOADER),s=u.create.div(v.F_CLASS+"_preview_box"),a=u.create.fromHTML(f()),l=u.create.fromHTML(f("prev","left"));e(i("href")),u.events.on([a,l],"click",function(){if(!(c=this.classList.contains(m+"navigation-next")?h.Dom.nextWithClass(c,v.ITEM_CLASS):h.Dom.prevWithClass(c,v.ITEM_CLASS)))throw Error("Need element");h.Dom.detach(r),h.Dom.detach(s),r.innerHTML=v.ICON_LOADER,e(i("href"))}),n.setContent(r),n.setPosition(),n.open(),null===(o=null===(t=u)||void 0===t?void 0:t.events)||void 0===o||o.fire("previewOpened")}},{icon:"upload",title:"Download",exec:function(){var e=i("href");e&&u.ownerWindow.open(e)}}],u.dialog.getZIndex()+1)},u.defaultTimeout),e.stopPropagation(),e.preventDefault(),!1}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(1),i=(r.prototype.on=function(e,t){var o=this;return Array.isArray(e)?e.map(function(e){return o.on(e,t)}):(this.__onEvents[e]||(this.__onEvents[e]=[]),this.__onEvents[e].push(t)),this},r.prototype.fire=function(e){for(var t=this,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(Array.isArray(e))e.map(function(e){return t.fire.apply(t,n.__spreadArrays([e],o))});else try{!this.__lockEvent[e]&&this.__onEvents[e]&&(this.__lockEvent[e]=!0,this.__onEvents[e].forEach(function(e){return e.call.apply(e,n.__spreadArrays([t],o))}))}catch(e){}finally{this.__lockEvent[e]=!1}},r.create=function(e){return new r(e)},r);function r(o){var i=this;this.data=o,this.__onEvents={},this.__lockEvent={},Object.keys(o).forEach(function(t){Object.defineProperty(i,t,{set:function(e){i.fire(["beforeChange","beforeChange."+t],t,e),i.fire(["change","change."+t],t,o[t]=e)},get:function(){return o[t]}})})}t.ObserveObject=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(14),n=o(19),r=(s.create=function(e){return new s(e)},Object.defineProperty(s.prototype,"path",{get:function(){return n.normalizePath(this.data.source.path?this.data.source.path+"/":"/")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"imageURL",{get:function(){var e=""+(new Date).getTime(),t=this.data,o=t.source,i=t.thumb||t.file;return t.thumbIsAbsolute&&i?i:n.normalizeURL(o.baseurl,o.path,i||"")+"?_tmst="+e},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"fileURL",{get:function(){var e=this.data,t=e.name,o=e.file,i=e.source;return void 0!==o&&(t=o),e.fileIsAbsolute&&t?t:n.normalizeURL(i.baseurl,i.path,t||"")},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"time",{get:function(){var e=this.data.changed;return e&&("number"==typeof e?new Date(e).toLocaleString():e)||""},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"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,"-")},enumerable:!0,configurable:!0}),s);function s(e){this.data=e,i.extend(this,e)}t.FileBrowserItem=r},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=(n.prototype.set=function(e,t){this.data[e]=""+t},n.prototype.get=function(e){return this.data[e]||null},n);function n(){this.data={}}t.MemoryStorageProvider=i},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidName=function(e){return!!e.length&&!/[^0-9A-Za-zа-яА-ЯЁё\w\-_\.]/.test(e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),r=o(8),s=o(13),a=o(4),l=o(6),c=o(0);n.Config.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%"};var d,u=(i.__extends(f,d=r.Component),f.prototype.destruct=function(){this.isDestructed||(this.dialog&&(this.dialog.destruct(),delete this.dialog),c.Dom.safeRemove(this.editor),delete this.widthInput,delete this.heightInput,delete this.resize_box,delete this.crop_box,delete this.sizes,delete this.resizeHandler,delete this.cropHandler,delete this.editor,this.jodit.events&&this.jodit.events.off(".jodit_image_editor"),d.prototype.destruct.call(this))},f);function f(e){var r=d.call(this,e)||this;return r.resizeUseRatio=!0,r.cropUseRatio=!0,r.clicked=!1,r.activeTab="resize",r.cropBox={x:0,y:0,w:0,h:0},r.resizeBox={w:0,h:0},r.calcValueByPercent=function(e,t){var o,i=""+t,n=parseFloat(""+e);return(o=/^[\-+]?[0-9]+(px)?$/.exec(i))?parseInt(i,10):(o=/^([\-+]?[0-9.]+)%$/.exec(i))?Math.round(n*(parseFloat(o[1])/100)):n||0},r.calcCropBox=function(){var e,t=.8*r.crop_box.parentNode.offsetWidth,o=.8*r.crop_box.parentNode.offsetHeight,i=t;e=r.naturalWidth<t&&r.naturalHeight<o?(i=r.naturalWidth,r.naturalHeight):t/o<r.ratio?r.naturalHeight*((i=t)/r.naturalWidth):(i=r.naturalWidth*(o/r.naturalHeight),o),a.css(r.crop_box,{width:i,height:e})},r.showCrop=function(){r.cropImage&&(r.calcCropBox(),r.new_w=r.calcValueByPercent(r.cropImage.offsetWidth||r.image.offsetWidth,r.options.cropDefaultWidth),r.new_h=r.cropUseRatio?r.new_w/r.ratio:r.calcValueByPercent(r.cropImage.offsetHeight||r.image.offsetHeight,r.options.cropDefaultHeight),a.css(r.cropHandler,{backgroundImage:"url("+r.cropImage.getAttribute("src")+")",width:r.new_w,height:r.new_h,left:(r.cropImage.offsetWidth||r.image.offsetWidth)/2-r.new_w/2,top:(r.cropImage.offsetHeight||r.image.offsetHeight)/2-r.new_h/2}),r.jodit.events.fire(r.cropHandler,"updatesize"))},r.updateCropBox=function(){if(r.cropImage){var e=r.cropImage.offsetWidth/r.naturalWidth,t=r.cropImage.offsetHeight/r.naturalHeight;r.cropBox.x=a.css(r.cropHandler,"left")/e,r.cropBox.y=a.css(r.cropHandler,"top")/t,r.cropBox.w=r.cropHandler.offsetWidth/e,r.cropBox.h=r.cropHandler.offsetHeight/t,r.sizes.textContent=r.cropBox.w.toFixed(0)+"x"+r.cropBox.h.toFixed(0)}},r.updateResizeBox=function(){r.resizeBox.w=r.image.offsetWidth||r.naturalWidth,r.resizeBox.h=r.image.offsetHeight||r.naturalHeight},r.setHandlers=function(){var n=r;n.jodit.events.on([n.editor.querySelector(".jodit_bottomright"),n.cropHandler],"mousedown.jodit_image_editor",function(e){n.target=e.target||e.srcElement,e.preventDefault(),e.stopImmediatePropagation(),n.clicked=!0,n.start_x=e.clientX,n.start_y=e.clientY,n.height="crop"===n.activeTab?(n.top_x=a.css(n.cropHandler,"left"),n.top_y=a.css(n.cropHandler,"top"),n.width=n.cropHandler.offsetWidth,n.cropHandler.offsetHeight):(n.width=n.image.offsetWidth,n.image.offsetHeight)}).off(r.jodit.ownerWindow,".jodit_image_editor"+n.jodit.id).on(r.jodit.ownerWindow,"mousemove.jodit_image_editor"+n.jodit.id,a.throttle(function(e){n.clicked&&(n.diff_x=e.clientX-n.start_x,n.diff_y=e.clientY-n.start_y,"resize"===n.activeTab&&n.resizeUseRatio||"crop"===n.activeTab&&n.cropUseRatio?n.diff_x?(n.new_w=n.width+n.diff_x,n.new_h=Math.round(n.new_w/n.ratio)):(n.new_h=n.height+n.diff_y,n.new_w=Math.round(n.new_h*n.ratio)):(n.new_w=n.width+n.diff_x,n.new_h=n.height+n.diff_y),"resize"===n.activeTab?(n.options.resizeMinWidth<n.new_w&&(a.css(n.image,"width",n.new_w+"px"),n.widthInput.value=""+n.new_w),n.options.resizeMinHeight<n.new_h&&(a.css(n.image,"height",n.new_h+"px"),n.heightInput.value=""+n.new_h),r.jodit.events.fire(n.resizeHandler,"updatesize")):(n.target!==n.cropHandler?(n.cropImage.offsetWidth<n.top_x+n.new_w&&(n.new_w=n.cropImage.offsetWidth-n.top_x),n.cropImage.offsetHeight<n.top_y+n.new_h&&(n.new_h=n.cropImage.offsetHeight-n.top_y),a.css(n.cropHandler,{width:n.new_w,height:n.new_h})):(n.cropImage.offsetWidth<n.top_x+n.diff_x+n.cropHandler.offsetWidth&&(n.diff_x=n.cropImage.offsetWidth-n.top_x-n.cropHandler.offsetWidth),a.css(n.cropHandler,"left",n.top_x+n.diff_x),n.cropImage.offsetHeight<n.top_y+n.diff_y+n.cropHandler.offsetHeight&&(n.diff_y=n.cropImage.offsetHeight-n.top_y-n.cropHandler.offsetHeight),a.css(n.cropHandler,"top",n.top_y+n.diff_y)),r.jodit.events.fire(n.cropHandler,"updatesize")),e.stopImmediatePropagation())},5)).on(r.jodit.ownerWindow,"resize.jodit_image_editor"+n.jodit.id,function(){r.jodit.events.fire(n.resizeHandler,"updatesize"),n.showCrop(),r.jodit.events.fire(n.cropHandler,"updatesize")}).on(r.jodit.ownerWindow,"mouseup.jodit_image_editor"+n.jodit.id+" keydown.jodit_image_editor"+n.jodit.id,function(e){n.clicked&&(n.clicked=!1,e.stopImmediatePropagation())}),a.$$(".jodit_btn_group",n.editor).forEach(function(e){var t=e.querySelector("input");n.jodit.events.on(e,"click change",function(){a.$$("button",e).forEach(function(e){return e.classList.remove("active")}),this.classList.add("active"),t.checked=!!this.getAttribute("data-yes"),n.jodit.events.fire(t,"change")},"button")}),n.jodit.events.on(r.editor,"click.jodit_image_editor",function(){a.$$(".jodit_image_editor_slider,.jodit_image_editor_area",n.editor).forEach(function(e){return e.classList.remove("active")});var e=this.parentNode;e.classList.add("active"),n.activeTab=e.getAttribute("data-area")||"resize";var t=n.editor.querySelector(".jodit_image_editor_area.jodit_image_editor_area_"+n.activeTab);t&&t.classList.add("active"),"crop"===n.activeTab&&n.showCrop()},".jodit_image_editor_slider-title").on(n.widthInput,"change.jodit_image_editor mousedown.jodit_image_editor keydown.jodit_image_editor",a.debounce(function(){var e,t=parseInt(n.widthInput.value,10);n.options.min_width<t&&(a.css(n.image,"width",t+"px"),n.resizeUseRatio&&n.options.min_height<(e=Math.round(t/n.ratio))&&(a.css(n.image,"height",e+"px"),n.heightInput.value=""+e)),r.jodit.events.fire(n.resizeHandler,"updatesize")},200)).on(n.heightInput,"change.jodit_image_editor mousedown.jodit_image_editor keydown.jodit_image_editor",a.debounce(function(){if(!r.isDestructed){var e,t=parseInt(n.heightInput.value,10);n.options.min_height<t&&(a.css(n.image,"height",t+"px"),n.resizeUseRatio&&n.options.min_width<(e=Math.round(t*n.ratio))&&(a.css(n.image,"width",e+"px"),n.widthInput.value=""+e)),r.jodit.events.fire(n.resizeHandler,"updatesize")}},200));var e=n.editor.querySelector(".jodit_image_editor_keep_spect_ratio");e&&e.addEventListener("change",function(){n.resizeUseRatio=e.checked});var t=n.editor.querySelector(".jodit_image_editor_keep_spect_ratio_crop");t&&t.addEventListener("change",function(){n.cropUseRatio=t.checked}),n.jodit.events.on(n.resizeHandler,"updatesize",function(){a.css(n.resizeHandler,{top:0,left:0,width:(n.image.offsetWidth||n.naturalWidth)+"px",height:(n.image.offsetHeight||n.naturalHeight)+"px"}),r.updateResizeBox()}).on(n.cropHandler,"updatesize",function(){if(n.cropImage){var e=a.css(n.cropHandler,"left"),t=a.css(n.cropHandler,"top"),o=n.cropHandler.offsetWidth,i=n.cropHandler.offsetHeight;e<0&&(e=0),t<0&&(t=0),n.cropImage.offsetWidth<e+o&&(o=n.cropImage.offsetWidth-e,n.cropUseRatio&&(i=o/n.ratio)),n.cropImage.offsetHeight<t+i&&(i=n.cropImage.offsetHeight-t,n.cropUseRatio&&(o=i*n.ratio)),a.css(n.cropHandler,{width:o,height:i,left:e,top:t,backgroundPosition:-e-1+"px "+(-t-1)+"px",backgroundSize:n.cropImage.offsetWidth+"px "+n.cropImage.offsetHeight+"px"}),n.updateCropBox()}}),n.buttons.forEach(function(e){e.addEventListener("mousedown",function(e){e.stopImmediatePropagation()}),e.addEventListener("click",function(){var t={action:n.activeTab,box:"resize"===n.activeTab?n.resizeBox:n.cropBox};switch(e.getAttribute("data-action")){case"saveas":s.Promt(n.jodit.i18n("Enter new name"),n.jodit.i18n("Save in new file"),function(e){if(!a.trim(e))return s.Alert(n.jodit.i18n("The name should not be empty")),!1;n.onSave(e,t,n.hide,function(e){s.Alert(e.message)})});break;case"save":n.onSave(void 0,t,n.hide,function(e){s.Alert(e.message)});break;case"reset":"resize"===n.activeTab?(a.css(n.image,{width:null,height:null}),n.widthInput.value=""+n.naturalWidth,n.heightInput.value=""+n.naturalHeight,n.jodit.events.fire(n.resizeHandler,"updatesize")):n.showCrop()}})})},r.hide=function(){r.dialog.close()},r.open=function(i,n){return new Promise(function(e){var t=(new Date).getTime();r.image=r.jodit.create.element("img"),a.$$("img,.jodit_icon-loader",r.resize_box).forEach(c.Dom.safeRemove),a.$$("img,.jodit_icon-loader",r.crop_box).forEach(c.Dom.safeRemove),a.css(r.cropHandler,"background","transparent"),r.onSave=n,r.resize_box.appendChild(r.jodit.create.element("i",{class:"jodit_icon-loader"})),r.crop_box.appendChild(r.jodit.create.element("i",{class:"jodit_icon-loader"})),r.image.setAttribute("src",i+=/\?/.test(i)?"&_tst="+t:"?_tst="+t),r.dialog.open();var o=function(){r.isDestructed||(r.image.removeEventListener("load",o),r.naturalWidth=r.image.naturalWidth,r.naturalHeight=r.image.naturalHeight,r.widthInput.value=""+r.naturalWidth,r.heightInput.value=""+r.naturalHeight,r.ratio=r.naturalWidth/r.naturalHeight,r.resize_box.appendChild(r.image),r.cropImage=r.image.cloneNode(),r.crop_box.appendChild(r.cropImage),a.$$(".jodit_icon-loader",r.editor).forEach(c.Dom.safeRemove),"crop"===r.activeTab&&r.showCrop(),r.jodit.events.fire(r.resizeHandler,"updatesize"),r.jodit.events.fire(r.cropHandler,"updatesize"),r.dialog.setPosition(),r.jodit.events.fire("afterImageEditor"),e(r.dialog))};r.image.addEventListener("load",o),r.image.complete&&o()})},r.options=e&&e.options?e.options.imageeditor:n.Config.defaultOptions.imageeditor,r.resizeUseRatio=r.options.resizeUseRatio,r.cropUseRatio=r.options.cropUseRatio,r.buttons=[r.jodit.create.fromHTML('<button data-action="reset" type="button" class="jodit_btn">'+l.ToolbarIcon.getIcon("update")+"&nbsp;"+e.i18n("Reset")+"</button>"),r.jodit.create.fromHTML('<button data-action="save" type="button" class="jodit_btn jodit_btn_success">'+l.ToolbarIcon.getIcon("save")+"&nbsp;"+e.i18n("Save")+"</button>"),r.jodit.create.fromHTML('<button data-action="saveas" type="button" class="jodit_btn jodit_btn_success">'+l.ToolbarIcon.getIcon("save")+"&nbsp;"+e.i18n("Save as ...")+"</button>")],r.activeTab=r.options.resize?"resize":"crop",r.editor=r.jodit.create.fromHTML('<form class="jodit_image_editor jodit_properties"><div class="jodit_grid"><div class="jodit_col-lg-3-4">'+(r.options.resize?'<div class="jodit_image_editor_area jodit_image_editor_area_resize active">                                <div class="jodit_image_editor_box"></div>                                <div class="jodit_image_editor_resizer">                                    <i class="jodit_bottomright"></i>                                </div>                            </div>':"")+(r.options.crop?'<div class="jodit_image_editor_area jodit_image_editor_area_crop'+(r.options.resize?"":" active")+'">                                <div class="jodit_image_editor_box">                                    <div class="jodit_image_editor_croper">                                        <i class="jodit_bottomright"></i>                                        <i class="jodit_sizes"></i>                                    </div>                                </div>                            </div>':"")+'</div><div class="jodit_col-lg-1-4">'+(r.options.resize?'<div data-area="resize" class="jodit_image_editor_slider active">                                <div class="jodit_image_editor_slider-title">'+l.ToolbarIcon.getIcon("resize")+e.i18n("Resize")+'</div>                                <div class="jodit_image_editor_slider-content">                                    <div class="jodit_form_group">                                        <label for="jodit_image_editor_width">'+e.i18n("Width")+'</label>                                        <input type="number" class="jodit_image_editor_width"/>                                    </div>                                    <div class="jodit_form_group">                                        <label for="jodit_image_editor_height">'+e.i18n("Height")+'</label>                                        <input type="number" class="jodit_image_editor_height"/>                                    </div>                                    <div class="jodit_form_group">                                        <label>'+e.i18n("Keep Aspect Ratio")+'</label>                                        <div class="jodit_btn_group jodit_btn_radio_group">                                            <input '+(r.resizeUseRatio?"checked":"")+' type="checkbox" class="jodit_image_editor_keep_spect_ratio"/>                                            <button type="button"  data-yes="1"                                                 class="jodit_col6 jodit_btn jodit_btn_success '+(r.resizeUseRatio?"active":"")+'">'+e.i18n("Yes")+'</button>                                            <button type="button" class="jodit_col6 jodit_btn'+(r.resizeUseRatio?"":"active")+'">'+e.i18n("No")+"</button>                                        </div>                                    </div>                                </div>                            </div>":"")+(r.options.crop?'<div data-area="crop" class="jodit_image_editor_slider'+(r.options.resize?"":" active")+'">                                <div class="jodit_image_editor_slider-title">'+l.ToolbarIcon.getIcon("crop")+e.i18n("Crop")+'</div>                                <div class="jodit_image_editor_slider-content">                                    <div class="jodit_form_group">                                        <label>'+e.i18n("Keep Aspect Ratio")+'</label>                                        <div class="jodit_btn_group jodit_btn_radio_group">                                            <input '+(r.cropUseRatio?"checked":"")+' type="checkbox" class="jodit_image_editor_keep_spect_ratio_crop"/>                                            <button type="button" data-yes="1"                                                 class="jodit_col6 jodit_btn jodit_btn_success '+(r.cropUseRatio?"active":"")+'">'+e.i18n("Yes")+'</button>                                            <button type="button" class="jodit_col6 jodit_btn '+(r.cropUseRatio?"":"active")+'">'+e.i18n("No")+"</button>                                        </div>                                    </div>                                </div>                            </div>":"")+"</div></div></form>"),r.widthInput=r.editor.querySelector(".jodit_image_editor_width"),r.heightInput=r.editor.querySelector(".jodit_image_editor_height"),r.resize_box=r.editor.querySelector(".jodit_image_editor_area.jodit_image_editor_area_resize .jodit_image_editor_box"),r.crop_box=r.editor.querySelector(".jodit_image_editor_area.jodit_image_editor_area_crop .jodit_image_editor_box"),r.sizes=r.editor.querySelector(".jodit_image_editor_area.jodit_image_editor_area_crop .jodit_sizes"),r.resizeHandler=r.editor.querySelector(".jodit_image_editor_resizer"),r.cropHandler=r.editor.querySelector(".jodit_image_editor_croper"),r.dialog=new s.Dialog(e),r.dialog.setContent(r.editor),r.dialog.setSize(r.options.width,r.options.height),r.dialog.setTitle(r.buttons),r.setHandlers(),r}t.ImageEditor=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),p=o(2),r=o(38),_=o(4),h=o(0),v=o(15),s=o(8);n.Config.prototype.enableDragAndDropFileToEditor=!0,n.Config.prototype.uploader={url:"",insertImageAsBase64URI:!1,imagesExtensions:["jpg","png","jpeg","gif"],headers:null,data:null,filesVariableName:function(e){return"files["+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&&Array.isArray(e.data.messages)?e.data.messages.join(" "):""},process:function(e){return e.data},error:function(e){this.jodit.events.fire("errorMessage",e.message,"error",4e3)},defaultHandlerSuccess:function(s){var a=this;s.files&&s.files.length&&s.files.forEach(function(e,t){var o=s.isImages&&s.isImages[t]?["img","src"]:["a","href"],i=o[0],n=o[1],r=a.jodit.create.inside.element(i);r.setAttribute(n,s.baseurl+e),"a"===i&&(r.textContent=s.baseurl+e),v.isJoditObject(a.jodit)&&("img"===i?a.jodit.selection.insertImage(r,null,a.jodit.options.imageDefaultWidth):a.jodit.selection.insertNode(r))})},defaultHandlerError:function(e){this.jodit.events.fire("errorMessage",e.message)},contentType:function(e){return(void 0===this.jodit.ownerWindow.FormData||"string"==typeof e)&&"application/x-www-form-urlencoded; charset=UTF-8"}};var a,l=(i.__extends(m,a=s.Component),m.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),o=e.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(t.length),n=new Uint8Array(i),r=0;r<t.length;r+=1)n[r]=t.charCodeAt(r);return new Blob([n],{type:o})},m.prototype.buildData=function(t){if(this.options.buildData&&"function"==typeof this.options.buildData)return this.options.buildData.call(this,t);var e=this.jodit.ownerWindow.FormData;if(void 0===e)return t;if(t instanceof e)return t;if("string"==typeof t)return t;var o=new e;return Object.keys(t).forEach(function(e){o.append(e,t[e])}),o},m.prototype.send=function(e,i){function t(e){var t=new r.Ajax(n.jodit||n,{xhr:function(){var e=new XMLHttpRequest;return void 0!==n.jodit.ownerWindow.FormData&&e.upload?e.upload.addEventListener("progress",function(e){if(e.lengthComputable){var t=e.loaded/e.total;t*=100,n.jodit.progress_bar.style.display="block",n.jodit.progress_bar.style.width=t+"%",100==t&&(n.jodit.progress_bar.style.display="none")}},!1):n.jodit.progress_bar.style.display="none",e},method:n.options.method||"POST",data:e,url:n.options.url,headers:n.options.headers,queryBuild:n.options.queryBuild,contentType:n.options.contentType.call(n,e),dataType:n.options.format||"json",withCredentials:n.options.withCredentials||!1});function o(){var e=n.ajaxInstances.indexOf(t);-1!=e&&n.ajaxInstances.splice(e,1)}return n.ajaxInstances.push(t),t.send().then(function(e){o(),i.call(n,e)}).catch(function(e){o(),n.options.error.call(n,e)})}var n=this,o=this.buildData(e);return o instanceof Promise?o.then(t).catch(function(e){n.options.error.call(n,e)}):t(o)},m.prototype.sendFiles=function(e,i,t,o){var n=this;if(!e)return Promise.reject(Error("Need files"));var r=this,s=Array.from(e);if(!s.length)return Promise.reject(Error("Need files"));var a=[];if(this.options.insertImageAsBase64URI){var l,c=void 0,d=function(){if((l=s[c])&&l.type){var e=l.type.match(/\/([a-z0-9]+)/i),t=e[1]?e[1].toLowerCase():"";if(u.options.imagesExtensions.includes(t)){var o=new FileReader;a.push(new Promise(function(t,e){o.onerror=e,o.onloadend=function(){var e={baseurl:"",files:[o.result],isImages:[!0]};"function"==typeof(i||r.options.defaultHandlerSuccess)&&(i||r.options.defaultHandlerSuccess).call(r,e),t(e)},o.readAsDataURL(l)})),s[c]=null}}},u=this;for(c=0;c<s.length;c+=1)d()}if((s=s.filter(function(e){return e})).length){var f=new FormData;f.append(this.options.pathVariableName,r.path),f.append("source",r.source);var p=void 0;for(c=0;c<s.length;c+=1)if(p=s[c]){var h=p.type.match(/\/([a-z0-9]+)/i),v=h&&h[1]?h[1].toLowerCase():"",m=s[c].name||(""+Math.random()).replace(".","");if(v){var g=v;["jpeg","jpg"].includes(g)&&(g="jpeg|jpg"),RegExp(".("+g+")$","i").test(m)||(m+="."+v)}f.append(this.options.filesVariableName(c),s[c],m)}o&&o(f),r.options.data&&_.isPlainObject(r.options.data)&&Object.keys(r.options.data).forEach(function(e){f.append(e,r.options.data[e])}),r.options.prepareData.call(this,f),a.push(r.send(f,function(e){n.options.isSuccess.call(r,e)?"function"==typeof(i||r.options.defaultHandlerSuccess)&&(i||r.options.defaultHandlerSuccess).call(r,r.options.process.call(r,e)):(t||r.options.defaultHandlerError).call(r,Error(r.options.getMessage.call(r,e)))}).then(function(){n.jodit.events&&n.jodit.events.fire("filesWereUploaded")}))}return Promise.all(a)},m.prototype.setPath=function(e){this.path=e},m.prototype.setSource=function(e){this.source=e},m.prototype.bind=function(t,c,d){function e(e){function t(e){i&&(e.append("extension",n),e.append("mimetype",i.type))}var o,i,n;if(e.clipboardData&&e.clipboardData.files&&e.clipboardData.files.length)return u.sendFiles(e.clipboardData.files,c,d),!1;if(_.browser("ff")||p.IS_IE){if(e.clipboardData&&!e.clipboardData.types.length&&e.clipboardData.types[0]!==p.TEXT_PLAIN){var r=u.jodit.create.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});u.jodit.ownerDocument.body.appendChild(r);var s=u.jodit&&v.isJoditObject(u.jodit)?u.jodit.selection.save():null;r.focus(),setTimeout(function(){var e=r.firstChild;if(h.Dom.safeRemove(r),e&&e.hasAttribute("src")){var t=e.getAttribute("src")||"";s&&u.jodit&&v.isJoditObject(u.jodit)&&u.jodit.selection.restore(s),f.sendFiles([m.dataURItoBlob(t)],c,d)}},200)}}else if(e.clipboardData&&e.clipboardData.items&&e.clipboardData.items.length){var a=e.clipboardData.items;for(o=0;o<a.length;o+=1)if("file"===a[o].kind&&"image/png"===a[o].type){if(i=a[o].getAsFile()){var l=i.type.match(/\/([a-z0-9]+)/i);n=l[1]?l[1].toLowerCase():"",u.sendFiles([i],c,d,t)}e.preventDefault();break}}}var u=this,f=this;function o(e){return!(!e.dataTransfer||!e.dataTransfer.files||0===e.dataTransfer.files.length)}this.jodit&&this.jodit.editor!==t?f.jodit.events.on(t,"paste",e):f.jodit.events.on("beforePaste",e),f.jodit.events.on(t,"dragend dragover dragenter dragleave drop",function(e){e.preventDefault()}).on(t,"dragover",function(e){o(e)&&(t.classList.contains("jodit_draghover")||t.classList.add("jodit_draghover"),e.preventDefault())}).on(t,"dragend",function(e){o(e)&&(t.classList.contains("jodit_draghover")&&t.classList.remove("jodit_draghover"),e.preventDefault())}).on(t,"drop",function(e){t.classList.remove("jodit_draghover"),o(e)&&e.dataTransfer&&e.dataTransfer.files&&(e.preventDefault(),e.stopImmediatePropagation(),u.sendFiles(e.dataTransfer.files,c,d))});var i=t.querySelector("input[type=file]");i&&f.jodit.events.on(i,"change",function(){f.sendFiles(this.files,c,d).then(function(){i.value="",/safari/i.test(navigator.userAgent)||(i.type="",i.type="file")})})},m.prototype.uploadRemoteImage=function(e,t,o){var i=this,n=this;n.send({action:"fileUploadRemote",url:e},function(e){if(n.options.isSuccess.call(n,e))"function"==typeof t?t.call(n,i.options.process.call(i,e)):i.options.defaultHandlerSuccess.call(n,i.options.process.call(i,e));else if("function"==typeof(o||n.options.defaultHandlerError))return void(o||i.options.defaultHandlerError).call(n,Error(n.options.getMessage.call(i,e)))})},m.prototype.destruct=function(){this.ajaxInstances.forEach(function(e){try{e.abort()}catch(e){}}),delete this.options,a.prototype.destruct.call(this)},m);function m(e,t){var o=a.call(this,e)||this;return o.path="",o.source="default",o.ajaxInstances=[],o.options=_.extend(!0,{},n.Config.defaultOptions.uploader,v.isJoditObject(e)?e.options.uploader:null,t),o}t.Uploader=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(148);t.addNewLine=i.addNewLine;var n=o(149);t.autofocus=n.autofocus;var r=o(150);t.backspace=r.backspace;var s=o(151);t.bold=s.bold;var a=o(152);t.cleanHtml=a.cleanHtml;var l=o(153);t.color=l.color,o(154);var c=o(155);t.enter=c.enter;var d=o(156);t.errorMessages=d.errorMessages;var u=o(157);t.font=u.font;var f=o(158);t.formatBlock=f.formatBlock;var p=o(159);t.fullsize=p.fullsize;var h=o(160);t.iframe=h.iframe;var v=o(161);t.indent=v.indent;var m=o(162);t.imageProcessor=m.imageProcessor;var g=o(163);t.imageProperties=g.imageProperties;var _=o(164);t.inlinePopup=_.inlinePopup;var b=o(165);t.justify=b.justify;var y=o(166);t.link=y.link;var w=o(167);t.limit=w.limit;var E=o(168);t.media=E.media;var C=o(169);t.mobile=C.mobile;var j=o(170);t.orderedlist=j.orderedlist;var x=o(171);t.paste=x.paste;var T=o(173);t.placeholder=T.placeholder;var S=o(174);t.redoundo=S.redoundo;var D=o(175);t.resizer=D.resizer;var q=o(176);t.size=q.size;var M=o(177);t.source=M.source;var L=o(178);t.symbols=L.symbols;var I=o(179);t.hotkeys=I.hotkeys;var N=o(180);t.table=N.TableProcessor;var A=o(181);t.tableKeyboardNavigation=A.tableKeyboardNavigation;var k=o(182);t.search=k.search;var P=o(183);t.sticky=P.sticky;var O=o(184);t.stat=O.stat;var z=o(185);t.xpath=z.xpath;var R=o(186);t.DragAndDropElement=R.DragAndDropElement;var B=o(187);t.DragAndDrop=B.DragAndDrop;var H=o(188);t.pasteStorage=H.pasteStorage},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),v=o(0),r=o(5),m=o(23),g=o(6);i.Config.prototype.addNewLine=!0,i.Config.prototype.addNewLineOnDBLClick=!0,i.Config.prototype.addNewLineTagsTriggers=["table","iframe","img","hr","jodit"],t.addNewLine=function(s){if(s.options.addNewLine){var a,l,c=s.create.fromHTML('<div role="button" tabIndex="-1" title="'+s.i18n("Break")+'" class="jodit-add-new-line"><span>'+g.ToolbarIcon.getIcon("enter")+"</span></div>"),d=RegExp("^("+s.options.addNewLineTagsTriggers.join("|")+")$","i"),u=!1,f=!1,e=!1,n=function(){clearTimeout(a),e=!1,c.style.display="none",u=!0},p=function(e){return null!==e&&v.Dom.isBlock(e,s.editorWindow)&&!/^(img|table|iframe|hr)$/i.test(e.nodeName)},h=function(){u||e||(clearTimeout(a),a=r.setTimeout(n,500))};s.events.on("beforeDestruct",function(){v.Dom.safeRemove(c)}).on("afterInit",function(){s.container.appendChild(c),s.events.on(c,"mousemove",function(e){e.stopPropagation()}).on(c,"mousedown touchstart",function(e){var t=s.editorDocument.createElement(s.options.enter);f&&l&&l.parentNode?l.parentNode.insertBefore(t,l):s.editor.appendChild(t),s.selection.setCursorIn(t),s.events.fire("synchro"),n(),e.preventDefault()})}).on("afterInit",function(){s.events.on(s.editor,"scroll",function(){n()}).on(s.container,"mouseleave",h).on(c,"mouseenter",function(){clearTimeout(a),e=!0}).on(c,"mouseleave",function(){e=!1}).on(s.editor,"dblclick",function(e){if(!s.options.readonly&&s.options.addNewLineOnDBLClick&&e.target===s.editor&&s.selection.isCollapsed()){var t=m.offset(s.editor,s,s.editorDocument),o=e.pageY-s.editorWindow.pageYOffset,i=s.editorDocument.createElement(s.options.enter);Math.abs(o-t.top)<Math.abs(o-(t.height+t.top))&&s.editor.firstChild?s.editor.insertBefore(i,s.editor.firstChild):s.editor.appendChild(i),s.selection.setCursorIn(i),s.setEditorValue(),n(),e.preventDefault()}}).on(s.editor,"mousemove",r.debounce(function(e){var t=s.editorDocument.elementFromPoint(e.pageX-s.editorWindow.pageXOffset,e.pageY-s.editorWindow.pageYOffset);if((!t||!v.Dom.isOrContains(c,t))&&t&&v.Dom.isOrContains(s.editor,t))if(t&&t.nodeName.match(d)&&v.Dom.isOrContains(s.editor,t)||(t=v.Dom.closest(t,d,s.editor))){if(d.test(t.nodeName)){var o=v.Dom.up(t,function(e){return v.Dom.isBlock(e,s.editorWindow)},s.editor);o&&o!==s.editor&&(t=o)}var i=m.offset(s.editor,s,s.editorDocument),n=m.offset(t,s,s.editorDocument),r=!1;Math.abs(e.pageY-n.top)<10&&((r=n.top)-i.top<20||(r-=15),f=!0),Math.abs(e.pageY-(n.top+n.height))<10&&(i.top+i.height-(r=n.top+n.height)<25||(r+=15),f=!1),!1!==r&&(f&&!v.Dom.prev(t,p,s.editor)||!f&&!v.Dom.next(t,p,s.editor))?(c.style.top=r+"px",l=t,s.options.readonly||s.isLocked()||s.container.classList.contains("jodit_popup_active")||(clearTimeout(a),c.classList.toggle("jodit-add-new-line_after",!f),c.style.display="block",c.style.width=s.editor.clientWidth+"px",u=!1)):(l=!1,h())}else h()},s.defaultTimeout))})}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),n=o(0),r=o(5);i.Config.prototype.autofocus=!1,t.autofocus=function(t){var e;t.events.on("afterInit",function(){t.options.autofocus&&(t.defaultTimeout?e=r.setTimeout(t.selection.focus,300):t.selection.focus())}).on("mousedown",function(e){t.isEditorMode()&&e.target&&n.Dom.isBlock(e.target,t.editorWindow)&&!e.target.childNodes.length&&(t.editor===e.target?t.selection.focus():t.selection.setCursorIn(e.target))}).on("beforeDestruct",function(){clearTimeout(e)})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var y=o(2),i=o(2),w=o(0),E=o(4);t.backspace=function(m){function g(e){var t,o=e;E.normalizeNode(e);do{var i=o.innerHTML.replace(y.INVISIBLE_SPACE_REG_EXP,"");if(i.length&&"<br>"!==i||w.Dom.isCell(o,m.editorWindow)||!o.parentNode||e===m.editor)break;t=o.parentNode,w.Dom.safeRemove(o),o=t}while(o&&o!==m.editor)}function r(e){if(e&&t.test(e.nodeName))return w.Dom.safeRemove(e),!1}function _(e,t,o){if(e.node){var i=e.node;if(void 0!==c(e,t,o))return!0;if(e.node||(e.node=i.parentNode),e.node===m.editor)return!1;var n=e.node;if(!1===r(n))return!1;for(n=n&&(t?n.previousSibling:n.nextSibling);n&&n.nodeType===Node.TEXT_NODE&&n.nodeValue&&n.nodeValue.match(/^[\n\r]+$/);)n=t?n.previousSibling:n.nextSibling;return r(n)}}var c=function(e,t,o){if(e.node&&e.node.nodeType===Node.TEXT_NODE&&"string"==typeof e.node.nodeValue){for(var i=e.node.nodeValue,n=t?i.length:0,r=t?-1:1,s=n;0<=n&&n<=i.length&&i[n+(t?-1:0)]===y.INVISIBLE_SPACE;)n+=r;n!==s&&(t?i=i.substr(0,n)+i.substr(s):(i=i.substr(0,s)+i.substr(n),n=s),e.node.nodeValue=i),o.setStart(e.node,n),o.collapse(!0),m.selection.selectRange(o);var a=w.Dom.findInline(e.node,t,m.editor);if(i.length){var l=!1;if(t?n&&(l=!0):n<i.length&&(l=!0),l)return!0}else o.setStartBefore(e.node),o.collapse(!0),m.selection.selectRange(o),w.Dom.safeRemove(e.node),e.node=a;if(a&&(w.Dom.isInlineBlock(a)&&(a=t?a.lastChild:a.firstChild),a&&a.nodeType===Node.TEXT_NODE))return e.node=a,c(e,t,o)}},t=i.MAY_BE_REMOVED_WITH_KEY,b=function(e){return!(null!==e.nodeName.match(/^(TD|TH|TR|TABLE|LI)$/)||!w.Dom.isEmpty(e)&&null===e.nodeName.match(t)&&(e.nodeType===Node.TEXT_NODE&&!w.Dom.isEmptyTextNode(e)||e.childNodes.length&&!Array.from(e.childNodes).every(b)))};m.events.on("afterCommand",function(e){if("delete"===e){var t=m.selection.current();if(t&&t.firstChild&&"BR"===t.firstChild.nodeName&&w.Dom.safeRemove(t.firstChild),!(E.trim(m.editor.textContent||"")||m.editor.querySelector("img")||t&&w.Dom.closest(t,"table",m.editor))){m.editor.innerHTML="";var o=m.selection.setCursorIn(m.editor);w.Dom.safeRemove(o)}}}).on("keydown",function(e){if(e.which===y.KEY_BACKSPACE||e.which===y.KEY_DELETE){var t=e.which===y.KEY_BACKSPACE;if(m.selection.isFocused()||m.selection.focus(),!m.selection.isCollapsed())return m.execCommand("Delete"),!1;var o=m.selection.sel,i=!(!o||!o.rangeCount)&&o.getRangeAt(0);if(!i)return!1;var n=m.ownerDocument.createTextNode(y.INVISIBLE_SPACE),r=m.editorDocument.createElement("span");try{if(i.insertNode(n),!w.Dom.isOrContains(m.editor,n))return!1;var s=w.Dom.up(n,function(e){return w.Dom.isBlock(e,m.editorWindow)},m.editor),a=w.Dom.findInline(n,t,m.editor),l={node:a},c=void 0;if(a?c=_(l,t,i):n.parentNode&&(c=_({node:t?n.parentNode.previousSibling:n.parentNode.nextSibling},t,i)),void 0!==c)return!!c&&void 0;if(s&&s.nodeName.match(/^(TD)$/))return!1;var d=t?w.Dom.prev(l.node||n,function(e){return w.Dom.isBlock(e,m.editorWindow)},m.editor):w.Dom.next(l.node||n,function(e){return w.Dom.isBlock(e,m.editorWindow)},m.editor);if(!d&&s&&s.parentNode){d=m.create.inside.element(m.options.enter);for(var u=s;u&&u.parentNode&&u.parentNode!==m.editor;)u=u.parentNode;u.parentNode&&u.parentNode.insertBefore(d,u)}else if(d&&b(d))return w.Dom.safeRemove(d),!1;if(d){var f=m.selection.setCursorIn(d,!t);m.selection.insertNode(r,!1,!1),f.nodeType===Node.TEXT_NODE&&f.nodeValue===y.INVISIBLE_SPACE&&w.Dom.safeRemove(f)}if(s){if(g(s),d&&s.parentNode&&(s.nodeName===d.nodeName&&s.parentNode&&d.parentNode&&s.parentNode!==m.editor&&d.parentNode!==m.editor&&s.parentNode!==d.parentNode&&s.parentNode.nodeName===d.parentNode.nodeName&&(s=s.parentNode,d=d.parentNode),w.Dom.moveContent(s,d,!t),E.normalizeNode(d)),d&&"LI"===d.nodeName){var p=w.Dom.closest(d,"Ul|OL",m.editor);if(p){var h=p.nextSibling;h&&h.nodeName===p.nodeName&&p!==h&&(w.Dom.moveContent(h,p,!t),w.Dom.safeRemove(h))}}return g(s),!1}}finally{if(n.parentNode&&n.nodeValue===y.INVISIBLE_SPACE){var v=n.parentNode;w.Dom.safeRemove(n),!v.firstChild&&v.parentNode&&v!==m.editor&&w.Dom.safeRemove(v)}r&&w.Dom.isOrContains(m.editor,r,!0)&&(f=m.selection.setCursorBefore(r),w.Dom.safeRemove(r),f&&f.parentNode&&(w.Dom.findInline(f,!0,f.parentNode)||w.Dom.findInline(f,!0,f.parentNode))&&w.Dom.safeRemove(f)),m.setEditorValue()}return!1}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(1),s=o(3);s.Config.prototype.controls.subscript={tags:["sub"],tooltip:"subscript"},s.Config.prototype.controls.superscript={tags:["sup"],tooltip:"superscript"},s.Config.prototype.controls.bold={tagRegExp:/^(strong|b)$/i,tags:["strong","b"],css:{"font-weight":["bold","700"]},tooltip:"Bold"},s.Config.prototype.controls.italic={tagRegExp:/^(em|i)$/i,tags:["em","i"],css:{"font-style":"italic"},tooltip:"Italic"},s.Config.prototype.controls.underline={tagRegExp:/^(u)$/i,tags:["u"],css:{"text-decoration":"underline"},tooltip:"Underline"},s.Config.prototype.controls.strikethrough={tagRegExp:/^(s)$/i,tags:["s"],css:{"text-decoration":"line-through"},tooltip:"Strike through"},t.bold=function(n){function e(e){var t=s.Config.defaultOptions.controls[e],o=r.__assign({},t.css),i={};return Object.keys(o).forEach(function(e){i[e]=Array.isArray(o[e])?o[e][0]:o[e]}),n.selection.applyCSS(i,t.tags?t.tags[0]:void 0,t.css),n.events.fire("synchro"),!1}n.registerCommand("bold",{exec:e,hotkeys:["ctrl+b","cmd+b"]}).registerCommand("italic",{exec:e,hotkeys:["ctrl+i","cmd+i"]}).registerCommand("underline",{exec:e,hotkeys:["ctrl+u","cmd+u"]}).registerCommand("strikethrough",{exec:e})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),l=o(2),v=o(2),m=o(0),g=o(4);i.Config.prototype.cleanHTML={timeout:300,removeEmptyElements:!0,fillEmptyParagraph:!0,replaceNBSP:!0,cleanOnPaste:!0,replaceOldTags:{i:"em",b:"strong"},allowTags:!1,denyTags:!1},i.Config.prototype.controls.eraser={command:"removeFormat",tooltip:"Clear Formatting"},t.cleanHtml=function(d){function e(t){var n={};return"string"==typeof t?(t.split(s).map(function(e){e=g.trim(e);var t=r.exec(e),o={};if(t){var i=t[2].split(s);t[1]&&(i.forEach(function(e){e=g.trim(e);var t=a.exec(e);t?o[t[1]]=t[2]:o[e]=!0}),n[t[1].toUpperCase()]=o)}else n[e.toUpperCase()]=!0}),n):!!t&&(Object.keys(t).forEach(function(e){n[e.toUpperCase()]=t[e]}),n)}function u(e,t){void 0===t&&(t=!1);for(var o=t?e.nextSibling:e.previousSibling;o;){if(o.nodeType===Node.ELEMENT_NODE||!m.Dom.isEmptyTextNode(o))return!0;o=t?o.nextSibling:o.previousSibling}return!1}d.options.cleanHTML.cleanOnPaste&&d.events.on("processPaste",function(e,t){return g.cleanFromWord(t)});var f,r=/([^\[]*)\[([^\]]+)]/,s=/[\s]*,[\s]*/,a=/^(.*)[\s]*=[\s]*(.*)$/,p=e(d.options.cleanHTML.allowTags),h=e(d.options.cleanHTML.denyTags);d.events.on("change afterSetMode afterInit mousedown keydown",g.debounce(function(){if(!d.isDestructed&&d.isEditorMode()&&d.selection){f=d.selection.current();var e=null,r=!1,s=0,a=[],t=d.options.cleanHTML.replaceOldTags;if(t&&f){var o=Object.keys(t).join("|");if(d.selection.isCollapsed()){var i=m.Dom.closest(f,o,d.editor);if(i){var n=d.selection.save(),l=t[i.nodeName.toLowerCase()]||t[i.nodeName];m.Dom.replace(i,l,!0,!1,d.editorDocument),d.selection.restore(n)}}}var c=function(t){if(t){if((n=t).nodeType!==Node.TEXT_NODE&&(p&&!p[n.nodeName]||h&&h[n.nodeName])||f&&"BR"===n.nodeName&&u(n)&&!u(n,!0)&&m.Dom.up(n,function(e){return m.Dom.isBlock(e,d.editorWindow)},d.editor)!==m.Dom.up(f,function(e){return m.Dom.isBlock(e,d.editorWindow)},d.editor)||d.options.cleanHTML.removeEmptyElements&&!1!==f&&n.nodeType===Node.ELEMENT_NODE&&null!==n.nodeName.match(v.IS_INLINE)&&!d.selection.isMarker(n)&&0===g.trim(n.innerHTML).length&&!m.Dom.isOrContains(n,f))return a.push(t),c(t.nextSibling);if(d.options.cleanHTML.fillEmptyParagraph&&m.Dom.isBlock(t,d.editorWindow)&&m.Dom.isEmpty(t,/^(img|svg|canvas|input|textarea|form|br)$/)){var e=d.create.inside.element("br");t.appendChild(e)}if(p&&!0!==p[t.nodeName]){var o=t.attributes;if(o&&o.length){var i=[];for(s=0;s<o.length;s+=1)p[t.nodeName][o[s].name]&&(!0===p[t.nodeName][o[s].name]||p[t.nodeName][o[s].name]===o[s].value)||i.push(o[s].name);i.length&&(r=!0),i.forEach(function(e){t.removeAttribute(e)})}}c(t.firstChild),c(t.nextSibling)}var n};d.editor.firstChild&&(e=d.editor.firstChild),c(e),a.forEach(m.Dom.safeRemove),(a.length||r)&&d.events&&d.events.fire("syncho")}},d.options.cleanHTML.timeout)).on("keyup",function(){if(!d.options.readonly){var t=d.selection.current();if(t){var e=m.Dom.up(t,function(e){return m.Dom.isBlock(e,d.editorWindow)},d.editor);e&&m.Dom.all(e,function(e){e&&e.nodeType===Node.TEXT_NODE&&null!==e.nodeValue&&l.INVISIBLE_SPACE_REG_EXP.test(e.nodeValue)&&0!==e.nodeValue.replace(l.INVISIBLE_SPACE_REG_EXP,"").length&&(e.nodeValue=e.nodeValue.replace(l.INVISIBLE_SPACE_REG_EXP,""),e===t&&d.selection.isCollapsed()&&d.selection.setCursorAfter(e))})}}}).on("afterCommand",function(e){var t,o,i=d.selection;switch(e.toLowerCase()){case"inserthorizontalrule":(t=d.editor.querySelector("hr[id=null]"))&&((o=m.Dom.next(t,function(e){return m.Dom.isBlock(e,d.editorWindow)},d.editor,!1))||(o=d.create.inside.element(d.options.enter))&&m.Dom.after(t,o),i.setCursorIn(o));break;case"removeformat":o=i.current();var n=function(t){switch(t.nodeType){case Node.ELEMENT_NODE:m.Dom.each(t,n),"FONT"===t.nodeName?m.Dom.unwrap(t):([].slice.call(t.attributes).forEach(function(e){~["src","href","rel","content"].indexOf(e.name.toLowerCase())||t.removeAttribute(e.name)}),g.normalizeNode(t));break;case Node.TEXT_NODE:d.options.cleanHTML.replaceNBSP&&t.nodeType===Node.TEXT_NODE&&null!==t.nodeValue&&t.nodeValue.match(l.SPACE_REG_EXP)&&(t.nodeValue=t.nodeValue.replace(l.SPACE_REG_EXP," "));break;default:m.Dom.safeRemove(t)}};if(i.isCollapsed())for(;o&&o.nodeType!==Node.ELEMENT_NODE&&o!==d.editor;)n(o),o=o&&o.parentNode;else d.selection.eachSelection(function(e){n(e)})}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),n=o(17),c=n.Widget.TabsWidget,d=n.Widget.ColorPickerWidget,u=o(0),f=o(4);i.Config.prototype.controls.brush={isActive:function(t,e,o){if(!o)return!0;var i=t.selection.current(),n=o.container.querySelector("svg");if(n&&n.style.fill&&n.style.removeProperty("fill"),i&&!o.isDisable()){var r=u.Dom.closest(i,function(e){return u.Dom.isBlock(e,t.editorWindow)||e&&u.Dom.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE},t.editor)||t.editor,s=""+f.css(r,"color"),a=""+f.css(r,"background-color");if(s!=""+f.css(t.editor,"color"))return n&&(n.style.fill=s),!0;if(a!=""+f.css(t.editor,"background-color"))return n&&(n.style.fill=a),!0}return!1},popup:function(t,e,o,i){var n="",r="",s=null;e&&e!==t.editor&&u.Dom.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE&&(n=""+f.css(e,"color"),r=""+f.css(e,"background-color"),s=e);var a=d(t,function(e){s?s.style.backgroundColor=e:t.execCommand("background",!1,e),i()},r),l=d(t,function(e){s?s.style.color=e:t.execCommand("forecolor",!1,e),i()},n);return c(t,"background"===t.options.colorPickerDefaultTab?{Background:a,Text:l}:{Text:l,Background:a},s)},tooltip:"Fill color or set the text color"},t.color=function(n){function e(e,t,o){var i=f.normalizeColor(o);switch(e){case"background":n.selection.applyCSS({backgroundColor:i||""});break;case"forecolor":n.selection.applyCSS({color:i||""})}return n.setEditorValue(),!1}n.registerCommand("forecolor",e).registerCommand("background",e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),d=o(0),u=o(4),f="copyformat",p=["fontWeight","fontStyle","fontSize","color","margin","padding","borderWidth","borderStyle","borderColor","borderRadius","backgroundColor","textDecorationLine","fontFamily"],h=function(e,t,o,i){var n=u.css(o,t);return n===i[t]&&(n=o.parentNode&&o!==e.editor&&o.parentNode!==e.editor?h(e,t,o.parentNode,i):void 0),n};i.Config.prototype.controls.copyformat={exec:function(t,e){if(e)if(t.buffer[f])t.buffer[f]=!1,t.events.off(t.editor,"mouseup."+f);else{var o={},i=d.Dom.up(e,function(e){return e&&e.nodeType!==Node.TEXT_NODE},t.editor)||t.editor,n=t.create.inside.span();t.editor.appendChild(n),p.forEach(function(e){o[e]=u.css(n,e)}),n!==t.editor&&d.Dom.safeRemove(n);var r=(s=t,l=o,c={},(a=i)&&p.forEach(function(e){c[e]=h(s,e,a,l),e.match(/border(Style|Color)/)&&!c.borderWidth&&(c[e]=void 0)}),c);t.events.on(t.editor,"mouseup."+f,function(){t.buffer[f]=!1;var e=t.selection.current();e&&("IMG"===e.nodeName?u.css(e,r):t.selection.applyCSS(r)),t.events.off(t.editor,"mouseup."+f)}),t.buffer[f]=!0}var s,a,l,c},isActive:function(e){return!!e.buffer[f]},tooltip:"Paint format"}},function(e,g,t){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var _=t(2),b=t(0),y=t(4);g.insertParagraph=function(e,t,o,i){var n=e.create.inside.element(o),r=e.create.inside.element("br");n.appendChild(r),i&&i.cssText&&n.setAttribute("style",i.cssText),e.selection.insertNode(n,!1,!1),e.selection.setCursorBefore(r);var s=e.editorDocument.createRange();return s.setStartBefore("br"!=o.toLowerCase()?r:n),s.collapse(!0),e.selection.selectRange(s),b.Dom.safeRemove(t),y.scrollIntoView(n,e.editor,e.editorDocument),e.events&&e.events.fire("synchro"),n},g.enter=function(m){m.options.enterBlock||(m.options.enterBlock="br"==m.options.enter.toLowerCase()?_.PARAGRAPH:m.options.enter.toLowerCase()),m.events.on("keydown",function(e){if(e.which===_.KEY_ENTER){var t=m.events.fire("beforeEnter",e);if(void 0!==t)return t;m.selection.isCollapsed()||m.execCommand("Delete"),m.selection.focus();var o=m.selection.current(!1),i=m.selection.sel,n=m.selection.range;o&&o!==m.editor||(m.selection.current(),o=m.create.inside.text(_.INVISIBLE_SPACE),i&&i.rangeCount?n.insertNode(o):m.editor.appendChild(o),n.selectNode(o),n.collapse(!1),i&&(i.removeAllRanges(),i.addRange(n)));var r=!!o&&b.Dom.up(o,function(e){return b.Dom.isBlock(e,m.editorWindow)},m.editor),s=r&&"LI"===r.nodeName;if(!s&&(m.options.enter.toLowerCase()==_.BR.toLowerCase()||e.shiftKey||b.Dom.closest(o,"PRE|BLOCKQUOTE",m.editor))){var a=m.create.inside.element("br");return m.selection.insertNode(a,!0),y.scrollIntoView(a,m.editor,m.editorDocument),!1}if(!r&&o&&!b.Dom.prev(o,function(e){return b.Dom.isBlock(e,m.editorWindow)||!!e&&b.Dom.isImage(e,m.editorWindow)},m.editor)){var l=o;if(b.Dom.up(l,function(e){e&&e.hasChildNodes()&&e!==m.editor&&(l=e)},m.editor),r=b.Dom.wrapInline(l,m.options.enter,m),b.Dom.isEmpty(r)){var c=m.editorDocument.createElement("br");r.appendChild(c),m.selection.setCursorBefore(c)}n=i&&i.rangeCount?i.getRangeAt(0):m.editorDocument.createRange()}var d=!1,u=!1;if(r){if(!b.Dom.canSplitBlock(r,m.editorWindow))return a=m.create.inside.element("br"),m.selection.insertNode(a,!1),m.selection.setCursorAfter(a),!1;if(s&&b.Dom.isEmpty(r)){var f=!1,p=b.Dom.closest(r,"ol|ul",m.editor);if(b.Dom.prev(r,function(e){return e&&"LI"===e.nodeName},p))if(b.Dom.next(r,function(e){return e&&"LI"===e.nodeName},p)){(v=m.editorDocument.createRange()).setStartBefore(p),v.setEndAfter(r);var h=v.extractContents();p.parentNode&&p.parentNode.insertBefore(h,p),f=m.selection.setCursorBefore(p)}else f=m.selection.setCursorAfter(p);else f=m.selection.setCursorBefore(p);return b.Dom.safeRemove(r),g.insertParagraph(m,f,m.options.enter),y.$$("li",p).length||b.Dom.safeRemove(p),!1}if(m.selection.cursorInTheEdge(!0,r))return d=m.selection.setCursorBefore(r),g.insertParagraph(m,d,s?"li":m.options.enter,r.style),r&&m.selection.setCursorIn(r,!0),!1;var v;if(!1===m.selection.cursorInTheEdge(!1,r))(v=m.editorDocument.createRange()).setStartBefore(r),v.setEnd(n.startContainer,n.startOffset),h=v.extractContents(),r.parentNode&&r.parentNode.insertBefore(h,r),m.selection.setCursorIn(r,!0);else d=m.selection.setCursorAfter(r)}else u=!0;return(u||d)&&g.insertParagraph(m,d,s?"li":m.options.enter,r?r.style:void 0),!1}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),a=o(0),l=o(5),c=o(4);i.Config.prototype.showMessageErrors=!0,i.Config.prototype.showMessageErrorTime=3e3,i.Config.prototype.showMessageErrorOffsetPx=3,t.errorMessages=function(n){if(n.options.showMessageErrors){var t,r=n.create.div("jodit_error_box_for_messages"),s=function(){t=5,Array.from(r.childNodes).forEach(function(e){c.css(r,"bottom",t+"px"),t+=e.offsetWidth+n.options.showMessageErrorOffsetPx})};n.workplace.appendChild(r),n.events.on("beforeDestruct",function(){a.Dom.safeRemove(r)}).on("errorMessage",function(e,t,o){var i=n.create.div("active "+(t||""),e);r.appendChild(i),s(),l.setTimeout(function(){i.classList.remove("active"),l.setTimeout(function(){a.Dom.safeRemove(i),s()},300)},o||n.options.showMessageErrorTime)})}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),s=o(0),a=o(4);i.Config.prototype.controls.fontsize={command:"fontSize",list:["8","9","10","11","12","14","16","18","24","30","36","48","60","72","96"],template:function(e,t,o){return o},tooltip:"Font size",isActiveChild:function(t,e){var o=t.selection.current();if(o){var i=s.Dom.closest(o,function(e){return s.Dom.isBlock(e,t.editorWindow)||e&&s.Dom.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE},t.editor)||t.editor,n=a.css(i,"font-size");return!(!n||!e.args||""+e.args[1]!=""+n)}return!1},isActive:function(t){var e=t.selection.current();if(e){var o=s.Dom.closest(e,function(e){return s.Dom.isBlock(e,t.editorWindow)||e&&s.Dom.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE},t.editor)||t.editor;return""+a.css(o,"font-size")!=""+a.css(t.editor,"font-size")}return!1}},i.Config.prototype.controls.font={command:"fontname",exec:function(e,t,o){e.execCommand(o.command,!1,o.args?o.args[0]:void 0)},list:{"Helvetica,sans-serif":"Helvetica","Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma","'Times New Roman',Times,serif":"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},template:function(e,t,o){return'<span style="font-family: '+t+'">'+o+"</span>"},isActiveChild:function(t,e){function o(e){return e.toLowerCase().replace(/['"]+/g,"").replace(/[^a-z0-9]+/g,",")}var i=t.selection.current();if(i){var n=s.Dom.closest(i,function(e){return s.Dom.isBlock(e,t.editorWindow)||e&&s.Dom.isNode(e,t.editorWindow)&&e.nodeType===Node.ELEMENT_NODE},t.editor)||t.editor,r=""+a.css(n,"font-family");return!(!r||!e.args||o(""+e.args[0])!==o(r))}return!1},isActive:function(t){var e=t.selection.current();if(e){var o=s.Dom.closest(e,function(e){return s.Dom.isBlock(e,t.editorWindow)||s.Dom.isNode(e,t.editorWindow)&&e&&e.nodeType===Node.ELEMENT_NODE},t.editor)||t.editor;return""+a.css(o,"font-family")!=""+a.css(t.editor,"font-family")}return!1},tooltip:"Font family"},t.font=function(i){function e(e,t,o){switch(e){case"fontsize":i.selection.applyCSS({fontSize:a.normalizeSize(o)});break;case"fontname":i.selection.applyCSS({fontFamily:o})}return i.events.fire("synchro"),!1}i.registerCommand("fontsize",e).registerCommand("fontname",e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),s=o(2),a=o(0);i.Config.prototype.controls.paragraph={command:"formatBlock",getLabel:function(t,e,o){var i=t.selection.current();if(i&&t.options.textIcons){var n=(a.Dom.closest(i,function(e){return a.Dom.isBlock(e,t.editorWindow)},t.editor)||t.editor).nodeName.toLowerCase(),r=e.list;o&&e.data&&e.data.currentValue!==n&&e.list&&r[n]&&(o.textBox.innerHTML="<span>"+t.i18n(r[n])+"</span>",o.textBox.firstChild.classList.add("jodit_icon"),e.data.currentValue=n)}return!1},exec:function(e,t,o){e.execCommand(o.command,!1,o.args?o.args[0]:void 0)},data:{currentValue:"left"},list:{p:"Normal",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",blockquote:"Quote"},isActiveChild:function(t,e){var o=t.selection.current();if(o){var i=a.Dom.closest(o,function(e){return a.Dom.isBlock(e,t.editorWindow)},t.editor);return i&&i!==t.editor&&void 0!==e.args&&i.nodeName.toLowerCase()===e.args[0]}return!1},isActive:function(t,e){var o=t.selection.current();if(o){var i=a.Dom.closest(o,function(e){return a.Dom.isBlock(e,t.editorWindow)},t.editor);return i&&i!==t.editor&&void 0!==e.list&&"p"!=i.nodeName.toLowerCase()&&void 0!==e.list[i.nodeName.toLowerCase()]}return!1},template:function(e,t,o){return"<"+t+' class="jodit_list_element"><span>'+e.i18n(o)+"</span></"+t+"></li>"},tooltip:"Insert format block"},t.formatBlock=function(r){r.registerCommand("formatblock",function(e,t,i){r.selection.focus();var n=!1;if(r.selection.eachSelection(function(e){var t=r.selection.save(),o=!!e&&a.Dom.up(e,function(e){return a.Dom.isBlock(e,r.editorWindow)},r.editor);o&&"LI"!==o.nodeName||!e||(o=a.Dom.wrapInline(e,r.options.enter,r)),o&&(o.tagName.match(/TD|TH|TBODY|TABLE|THEAD/i)?r.selection.isCollapsed()?a.Dom.wrapInline(e,i,r):r.selection.applyCSS({},i):i===r.options.enterBlock.toLowerCase()&&o.parentNode&&"LI"===o.parentNode.nodeName?a.Dom.unwrap(o):a.Dom.replace(o,i,!0,!1,r.editorDocument),n=!0),r.selection.restore(t)}),!n){var o=r.editorDocument.createElement(i);o.innerHTML=s.INVISIBLE_SPACE,r.selection.insertNode(o,!1),r.selection.setCursorIn(o)}return r.setEditorValue(),!1})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),n=o(2),a=o(4),r=o(6);i.Config.prototype.fullsize=!1,i.Config.prototype.globalFullsize=!0,i.Config.prototype.controls.fullsize={exec:function(e){e.toggleFullSize()},isActive:function(e){return e.isFullSize()},getLabel:function(e,t,o){var i=e.isFullSize()?"shrink":"fullsize";o&&(o.textBox.innerHTML=e.options.textIcons?"<span>"+e.i18n(i)+"</span>":r.ToolbarIcon.getIcon(i),o.textBox.firstChild.classList.add("jodit_icon"))},tooltip:"Open editor in fullsize",mode:n.MODE_SOURCE+n.MODE_WYSIWYG},t.fullsize=function(o){function i(){o.events&&(n?(t=a.css(o.container,"height"),r=a.css(o.container,"width"),a.css(o.container,{height:o.ownerWindow.innerHeight,width:o.ownerWindow.innerWidth}),s=!0):s&&a.css(o.container,{height:t||"auto",width:r||"auto"}))}function e(e){if(o.container){if(void 0===e&&(e=!o.container.classList.contains("jodit_fullsize")),o.options.fullsize=!!e,o.container.classList.toggle("jodit_fullsize",n=e),o.toolbar&&a.css(o.toolbar.container,"width","auto"),o.options.globalFullsize){for(var t=o.container.parentNode;t&&t.nodeType!==Node.DOCUMENT_NODE;)t.classList.toggle("jodit_fullsize_box",e),t=t.parentNode;i()}o.events.fire("afterResize")}}var n=!1,t=0,r=0,s=!1;o.options.globalFullsize&&o.events.on(o.ownerWindow,"resize",i),o.events.on("afterInit afterOpen",function(){o.toggleFullSize(o.options.fullsize)}).on("toggleFullSize",e).on("beforeDestruct beforeClose",function(){e(!1)}).on("beforeDestruct",function(){o.events&&o.events.off(o.ownerWindow,"resize",i)})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o(1),i=o(3),n=o(54),a=o(5),l=o(10);i.Config.prototype.iframeBaseUrl="",i.Config.prototype.iframeDefaultSrc="about:blank",i.Config.prototype.iframeStyle='html{margin: 0px;min-height: 100%;}body{box-sizing: border-box;font-size: 13px;    line-height: 1.6;padding:10px;background:transparent;color:#000;position:relative;z-index: 2;user-select:auto;margin:0px;overflow:auto;}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}td[data-jodit-selected-cell],th[data-jodit-selected-cell]{border: 1px double #1e88e5}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}',i.Config.prototype.iframeCSSLinks=[],t.iframe=function(r){var e=this;r.events.on("afterSetMode",function(){r.isEditorMode()&&r.selection.focus()}).on("generateDocumentStructure.iframe",function(e,t){var o=e||t.iframe.contentWindow.document;if(o.open(),o.write('<!DOCTYPE html><html dir="'+t.options.direction+'" class="jodit" lang="'+n.defaultLanguage(t.options.language)+'"><head><title>Jodit Editor</title>'+(t.options.iframeBaseUrl?'<base href="'+t.options.iframeBaseUrl+'"/>':"")+'</head><body class="jodit_wysiwyg" style="outline:none" contenteditable="true"></body></html>'),o.close(),t.options.iframeCSSLinks&&t.options.iframeCSSLinks.forEach(function(e){var t=o.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),o.head&&o.head.appendChild(t)}),t.options.iframeStyle){var i=o.createElement("style");i.innerHTML=t.options.iframeStyle,o.head&&o.head.appendChild(i)}}).on("createEditor",function(){return s.__awaiter(e,void 0,void 0,function(){var o,i,n;return s.__generator(this,function(e){switch(e.label){case 0:return r.options.iframe?(delete r.editor,(o=r.create.element("iframe")).style.display="block",o.src="about:blank",o.className="jodit_wysiwyg_iframe",o.setAttribute("allowtransparency","true"),o.setAttribute("tabindex",""+r.options.tabIndex),o.setAttribute("frameborder","0"),r.workplace.appendChild(o),r.iframe=o,[4,r.events.fire("generateDocumentStructure.iframe",null,r)]):[2];case 1:return e.sent(),r.editorDocument=i=r.iframe.contentWindow.document,r.editorWindow=r.iframe.contentWindow,r.create.inside.setDocument(i),r.editor=i.body,"auto"===r.options.height&&(i.documentElement&&(i.documentElement.style.overflowY="hidden"),n=a.throttle(function(){r.editor&&r.iframe&&"auto"===r.options.height&&l.css(r.iframe,"height",r.editor.offsetHeight)},r.defaultTimeout/2),r.events.on("change afterInit afterSetMode resize",n).on([r.iframe,r.editorWindow,i.documentElement],"load",n).on(i,"readystatechange DOMContentLoaded",n)),(t=r.editorWindow.Element.prototype).matches||(t.matches=Element.prototype.matches),r.editorDocument.documentElement&&r.events.on(r.editorDocument.documentElement,"mousedown touchend",function(){r.selection.isFocused()||(r.selection.focus(),r.selection.setCursorIn(r.editor))}).on(r.editorWindow,"mousedown touchstart keydown keyup touchend click mouseup mousemove scroll",function(e){r.events&&r.events.fire&&r.events.fire(r.ownerWindow,e)}),[2,!1]}var t})})})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),c=o(2),d=o(0);i.Config.prototype.controls.indent={tooltip:"Increase Indent"},i.Config.prototype.controls.outdent={isDisable:function(t){var e=t.selection.current();if(e){var o=d.Dom.closest(e,function(e){return d.Dom.isBlock(e,t.editorWindow)},t.editor);if(o&&o.style&&o.style.marginLeft)return parseInt(o.style.marginLeft,10)<=0}return!0},tooltip:"Decrease Indent"},i.Config.prototype.indentMargin=10,t.indent=function(l){function e(s){var a=[];return l.selection.eachSelection(function(e){var t=l.selection.save(),o=!!e&&d.Dom.up(e,function(e){return d.Dom.isBlock(e,l.editorWindow)},l.editor),i=l.options.enter;if(!o&&e&&(o=d.Dom.wrapInline(e,i!==c.BR?i:c.PARAGRAPH,l)),!o)return l.selection.restore(t),!1;var n=!!~a.indexOf(o);if(o&&o.style&&!n){a.push(o);var r=o.style.marginLeft?parseInt(o.style.marginLeft,10):0;o.style.marginLeft=0<(r+=l.options.indentMargin*("outdent"===s?-1:1))?r+"px":"",o.getAttribute("style")||o.removeAttribute("style")}l.selection.restore(t)}),l.setEditorValue(),!1}l.registerCommand("indent",{exec:e,hotkeys:["ctrl+]","cmd+]"]}),l.registerCommand("outdent",{exec:e,hotkeys:["ctrl+[","cmd+["]})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),n="__jodit_imageprocessor_binded";t.imageProcessor=function(o){o.events.on("change afterInit",i.debounce(function(){o.editor&&i.$$("img",o.editor).forEach(function(t){t[n]||(t[n]=!0,t.complete||t.addEventListener("load",function e(){o.events&&o.events.fire&&o.events.fire("resize"),t.removeEventListener("load",e)}),o.events.on(t,"mousedown touchstart",function(){o.selection.select(t)}))})},o.defaultTimeout))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),x=o(13),T=o(0),S=o(4),D=o(6),n=o(17),q=n.Widget.TabsWidget,M=n.Widget.FileSelectorWidget,L=o(27);i.Config.prototype.image={openOnDblClick:!0,editSrc:!0,useImageEditor:!0,editTitle:!0,editAlt:!0,editLink:!0,editSize:!0,editBorderRadius:!0,editMargins:!0,editClass:!0,editStyle:!0,editId:!0,editAlign:!0,showPreview:!0,selectImageAfterClose:!0},t.imageProperties=function(j){function t(e){var t=this;if(!j.options.readonly){e&&e.stopImmediatePropagation();var o,i=j.create.fromHTML.bind(j.create),r=this,n=new x.Dialog(j),s=i('<a href="javascript:void(0)" style="float:right;" class="jodit_button">'+D.ToolbarIcon.getIcon("cancel")+"<span>"+j.i18n("Cancel")+"</span></a>"),a=i('<a href="javascript:void(0)" style="float:left;" class="jodit_button">'+D.ToolbarIcon.getIcon("check")+"<span>"+j.i18n("Ok")+"</span></a>"),l={remove:i('<a href="javascript:void(0)" class="jodit_button">'+D.ToolbarIcon.getIcon("bin")+" "+j.i18n("Delete")+"</a>")},c=i('<form class="jodit_properties"><div class="jodit_grid"><div class="jodit_col-lg-2-5"><div class="jodit_properties_view_box"><div style="'+(j.options.image.showPreview?"":"display:none")+'" class="jodit_properties_image_view"><img class="imageViewSrc" src="" alt=""/></div><div style="'+(j.options.image.editSize?"":"display:none")+'" class="jodit_form_group jodit_properties_image_sizes"><input type="number" class="imageWidth"/><a class="jodit_lock_helper jodit_lock_size" href="javascript:void(0)">'+D.ToolbarIcon.getIcon("lock")+'</a><input type="number" class="imageHeight"/></div></div></div><div class="jodit_col-lg-3-5 tabsbox"></div></div></form>'),d=i('<div style="'+(j.options.image.editMargins?"":"display:none")+'" class="jodit_form_group"><label>'+j.i18n("Margins")+'</label><div class="jodit_grid"><input class="jodit_col-lg-1-5 margins marginTop" data-id="marginTop" type="text" placeholder="'+j.i18n("top")+'"/><a style="text-align: center;" class="jodit_lock_helper jodit_lock_margin jodit_col-lg-1-5" href="javascript:void(0)">'+D.ToolbarIcon.getIcon("lock")+'</a><input disabled="true" class="jodit_col-lg-1-5 margins marginRight" data-id="marginRight" type="text" placeholder="'+j.i18n("right")+'"/><input disabled="true" class="jodit_col-lg-1-5 margins marginBottom" data-id="marginBottom" type="text" placeholder="'+j.i18n("bottom")+'"/><input disabled="true" class="jodit_col-lg-1-5 margins marginLeft" data-id="marginLeft" type="text" placeholder="'+j.i18n("left")+'"/></div></div><div style="'+(j.options.image.editStyle?"":"display:none")+'" class="jodit_form_group"><label>'+j.i18n("Styles")+'</label><input type="text" class="style"/></div><div style="'+(j.options.image.editClass?"":"display:none")+'" class="jodit_form_group"><label for="classes">'+j.i18n("Classes")+'</label><input type="text" class="classes"/></div><div style="'+(j.options.image.editId?"":"display:none")+'" class="jodit_form_group"><label for="id">Id</label><input type="text" class="id"/></div><div style="'+(j.options.image.editBorderRadius?"":"display:none")+'" class="jodit_form_group"><label for="border_radius">Border radius</label><input type="number" class="border_radius"/></div><div style="'+(j.options.image.editAlign?"":"display:none")+'" class="jodit_form_group"><label for="align">'+j.i18n("Align")+'</label><select class="select align"><option value="">'+j.i18n("--Not Set--")+'</option><option value="left">'+j.i18n("Left")+'</option><option value="center">'+j.i18n("Center")+'</option><option value="right">'+j.i18n("Right")+"</option></optgroup></select></div>"),u=i('<div style="'+(j.options.image.editSrc?"":"display:none")+'" class="jodit_form_group"><label>'+j.i18n("Src")+'</label><div class="jodit_input_group"><input type="text" class="imageSrc"/>'+(j.options.filebrowser.ajax.url||j.options.uploader.url?'<div class="jodit_input_group-buttons">'+(j.options.filebrowser.ajax.url||j.options.uploader.url?'<a class="jodit_button jodit_rechange" href="javascript:void(0)">'+D.ToolbarIcon.getIcon("image")+"</a>":"")+(j.options.image.useImageEditor&&j.options.filebrowser.ajax.url?'<a class="jodit_button jodit_use_image_editor" href="javascript:void(0)">'+D.ToolbarIcon.getIcon("crop")+"</a>":"")+"</div>":"")+'</div></div><div style="'+(j.options.image.editTitle?"":"display:none")+'" class="jodit_form_group"><label for="imageTitle">'+j.i18n("Title")+'</label><input type="text" class="imageTitle"/></div><div style="'+(j.options.image.editAlt?"":"display:none")+'" class="jodit_form_group"><label for="imageAlt">'+j.i18n("Alternative")+'</label><input type="text" class="imageAlt"/></div><div style="'+(j.options.image.editLink?"":"display:none")+'" class="jodit_form_group"><label for="imageLink">'+j.i18n("Link")+'</label><input type="text" class="imageLink"/></div><div style="'+(j.options.image.editLink?"":"display:none")+'" class="jodit_form_group"><input type="checkbox" class="imageLinkOpenInNewTab"/> '+j.i18n("Open link in new tab")+"</div>"),f=r.naturalWidth/r.naturalHeight||1,p=c.querySelector(".imageWidth"),h=c.querySelector(".imageHeight"),v=function(){S.val(c,".imageSrc",r.getAttribute("src")||"");var e=c.querySelector(".imageViewSrc");e&&e.setAttribute("src",r.getAttribute("src")||"")},m=function(){v(),function(){r.hasAttribute("title")&&S.val(c,".imageTitle",r.getAttribute("title")||""),r.hasAttribute("alt")&&S.val(c,".imageAlt",r.getAttribute("alt")||"");var e=T.Dom.closest(r,"a",j.editor);e&&(S.val(c,".imageLink",e.getAttribute("href")||""),c.querySelector(".imageLinkOpenInNewTab").checked="_blank"===e.getAttribute("target"))}(),p.value=""+r.offsetWidth,h.value=""+r.offsetHeight,function(){if(j.options.image.editMargins){var i=!1;S.$$(".margins",c).forEach(function(e){var t=e.getAttribute("data-id")||"",o=r.style[t];o&&(/^[0-9]+(px)?$/.test(o)&&(o=parseInt(o,10)),e.value=""+o||"",i||"marginTop"===t||e.value===S.val(c,".marginTop")||(i=!0))}),_=!i;var e=c.querySelector(".jodit_lock_margin");e&&(e.innerHTML=D.ToolbarIcon.getIcon(_?"lock":"unlock")),S.$$(".margins:not(.marginTop)",c).forEach(function(e){return _?e.setAttribute("disabled","true"):e.removeAttribute("disabled")})}}(),S.val(c,".classes",(r.getAttribute("class")||"").replace(/jodit_focused_image[\s]*/,"")),S.val(c,".id",r.getAttribute("id")||""),S.val(c,".border_radius",""+(parseInt(r.style.borderRadius||"0",10)||"0")),r.style.cssFloat&&~["left","right"].indexOf(r.style.cssFloat.toLowerCase())?S.val(c,".align",S.css(r,"float")):"block"===S.css(r,"display")&&"auto"===r.style.marginLeft&&"auto"===r.style.marginRight&&S.val(c,".align","center"),S.val(c,".style",r.getAttribute("style")||"")},g=!0,_=!0,b={},y=c.querySelector(".tabsbox");b.Image=u,b.Advanced=d,y&&y.appendChild(q(j,b)),m(),j.events.on(n,"afterClose",function(){n.destruct(),r.parentNode&&j.options.image.selectImageAfterClose&&j.selection.select(r)}),l.remove.addEventListener("click",function(){T.Dom.safeRemove(r),n.close()}),j.options.image.useImageEditor&&S.$$(".jodit_use_image_editor",u).forEach(function(e){j.events.on(e,"mousedown touchstart",function(){function t(){n.host===location.host||x.Confirm(j.i18n("You can only edit your own images. Download this image on the host?"),function(e){e&&j.uploader&&j.uploader.uploadRemoteImage(""+n.href,function(e){x.Alert(j.i18n("The image has been successfully uploaded to the host!"),function(){"string"==typeof e.newfilename&&(r.setAttribute("src",e.baseurl+e.newfilename),v())})},function(e){x.Alert(j.i18n("There was an error loading %s",e.message))})})}var i=r.getAttribute("src")||"",n=j.create.element("a");n.href=i,j.getInstance("FileBrowser").dataProvider.getPathByUrl(""+n.href,function(e,t,o){j.getInstance("FileBrowser").openImageEditor(n.href,t,e,o,function(){var e=(new Date).getTime();r.setAttribute("src",i+(~i.indexOf("?")?"":"?")+"&_tmp="+e),v()},function(e){x.Alert(e.message)})},function(e){x.Alert(e.message,t)})})}),S.$$(".jodit_rechange",u).forEach(function(o){o.addEventListener("mousedown",function(e){o.classList.toggle("active");var t=new L.Popup(j,o);t.open(M(j,{upload:function(e){e.files&&e.files.length&&r.setAttribute("src",e.baseurl+e.files[0]),m(),t.close()},filebrowser:function(e){e&&e.files&&Array.isArray(e.files)&&e.files.length&&(r.setAttribute("src",e.files[0]),t.close(),m())}},r,t.close),!0),e.stopPropagation()})});var w=c.querySelector(".jodit_lock_helper.jodit_lock_size"),E=c.querySelector(".jodit_lock_helper.jodit_lock_margin");w&&w.addEventListener("click",function(){this.innerHTML=D.ToolbarIcon.getIcon((g=!g)?"lock":"unlock"),j.events.fire(p,"change")}),E&&E.addEventListener("click",function(){this.innerHTML=D.ToolbarIcon.getIcon((_=!_)?"lock":"unlock"),_?S.$$(".margins",c).forEach(function(e){e.matches(".marginTop")||e.setAttribute("disabled","true")}):S.$$(".margins",c).forEach(function(e){e.matches(".marginTop")||e.removeAttribute("disabled")})});var C=function(e){var t=parseInt(p.value,10),o=parseInt(h.value,10);e.target===p?h.value=""+Math.round(t/f):p.value=""+Math.round(o*f)};return j.events.on([p,h],"change keydown mousedown paste",function(e){g&&(j.defaultTimeout?(clearTimeout(o),o=S.setTimeout(C.bind(t,e),j.defaultTimeout)):C(e))}),n.setTitle([j.i18n("Image properties"),l.remove]),n.setContent(c),s.addEventListener("click",function(){n.close()}),a.addEventListener("click",function(){if(j.options.image.editStyle&&(S.val(c,".style")?r.setAttribute("style",S.val(c,".style")):r.removeAttribute("style")),!S.val(c,".imageSrc"))return T.Dom.safeRemove(r),void n.close();r.setAttribute("src",S.val(c,".imageSrc")),r.style.borderRadius="0"!==S.val(c,".border_radius")&&/^[0-9]+$/.test(S.val(c,".border_radius"))?S.val(c,".border_radius")+"px":"",S.val(c,".imageTitle")?r.setAttribute("title",S.val(c,".imageTitle")):r.removeAttribute("title"),S.val(c,".imageAlt")?r.setAttribute("alt",S.val(c,".imageAlt")):r.removeAttribute("alt");var e=T.Dom.closest(r,"a",j.editor);function o(e){return e=S.trim(e),/^[0-9]+$/.test(e)?e+"px":e}function t(){"block"===S.css(r,"display")&&S.css(r,"display",""),"auto"===r.style.marginLeft&&"auto"===r.style.marginRight&&(r.style.marginLeft="",r.style.marginRight="")}S.val(c,".imageLink")?((e=e||T.Dom.wrap(r,"a",j)).setAttribute("href",S.val(c,".imageLink")),c.querySelector(".imageLinkOpenInNewTab").checked?e.setAttribute("target","_blank"):e.removeAttribute("target")):e&&e.parentNode&&e.parentNode.replaceChild(r,e),p.value===""+r.offsetWidth&&h.value===""+r.offsetHeight||S.css(r,{width:S.trim(p.value)?o(p.value):null,height:S.trim(h.value)?o(h.value):null}),j.options.image.editMargins&&(_?S.css(r,"margin",o(S.val(c,".marginTop"))):S.$$(".margins",c).forEach(function(e){var t=e.getAttribute("data-id")||"";S.css(r,t,o(e.value))})),j.options.image.editClass&&(S.val(c,".classes")?r.setAttribute("class",S.val(c,".classes")):r.removeAttribute("class")),j.options.image.editId&&(S.val(c,".id")?r.setAttribute("id",S.val(c,".id")):r.removeAttribute("id")),j.options.image.editAlign&&(S.val(c,".align")?~["right","left"].indexOf(S.val(c,".align").toLowerCase())?(S.css(r,"float",S.val(c,".align")),t()):(S.css(r,"float",""),S.css(r,{display:"block","margin-left":"auto","margin-right":"auto"})):(S.css(r,"float")&&~["right","left"].indexOf((""+S.css(r,"float")).toLowerCase())&&S.css(r,"float",""),t())),r.getAttribute("style")||r.removeAttribute("style"),j.setEditorValue(),n.close()}),n.setFooter([a,s]),n.setSize(500),n.open(),e&&e.preventDefault(),!1}}j.events.on("afterInit",function(){j.events.on(j.editor,"dblclick",j.options.image.openOnDblClick?t:function(e){e.stopImmediatePropagation(),j.selection.select(this)},"img")}).on("openImageProperties",function(e){t.call(e)})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),r=o(17),c=r.Widget.ColorPickerWidget,d=r.Widget.TabsWidget,s=o(0),u=o(4),a=o(7),f=o(28),l=o(27),p=o(20);n.Config.prototype.toolbarInline=!0,n.Config.prototype.toolbarInlineDisableFor=[],n.Config.prototype.popup={a:[{name:"eye",tooltip:"Open link",exec:function(e,t){var o=t.getAttribute("href");t&&o&&e.ownerWindow.open(o)}},{name:"link",tooltip:"Edit link",icon:"pencil"},"unlink","brush","file"],jodit:[{name:"bin",tooltip:"Delete",exec:function(e,t){t.parentNode&&(s.Dom.safeRemove(t),e.events.fire("hidePopup"))}}],"jodit-media":[{name:"bin",tooltip:"Delete",exec:function(e,t){t.parentNode&&(s.Dom.safeRemove(t),e.events.fire("hidePopup"))}}],img:[{name:"delete",icon:"bin",tooltip:"Delete",exec:function(e,t){t.parentNode&&(s.Dom.safeRemove(t),e.events.fire("hidePopup"))}},{name:"pencil",exec:function(e,t){"img"==t.tagName.toLowerCase()&&e.events.fire("openImageProperties",t)},tooltip:"Edit"},{name:"valign",list:["Top","Middle","Bottom"],tooltip:"Vertical align",exec:function(e,t,o){if("img"==t.tagName.toLowerCase()){var i=o.args&&"string"==typeof o.args[1]?o.args[1].toLowerCase():"";u.css(t,"vertical-align",i),e.events.fire("recalcPositionPopup")}}},{name:"left",list:["Left","Right","Center","Normal"],exec:function(e,t,o){if("img"==t.tagName.toLowerCase()){var i=function(){"block"===u.css(t,"display")&&u.css(t,"display",""),"auto"===t.style.marginLeft&&"auto"===t.style.marginRight&&(t.style.marginLeft="",t.style.marginRight="")},n=o.args&&"string"==typeof o.args[1]?o.args[1].toLowerCase():"";"normal"!=n?~["right","left"].indexOf(n)?(u.css(t,"float",n),i()):(u.css(t,"float",""),u.css(t,{display:"block","margin-left":"auto","margin-right":"auto"})):(u.css(t,"float")&&~["right","left"].indexOf(u.css(t,"float").toLowerCase())&&u.css(t,"float",""),i()),e.events.fire("recalcPositionPopup")}},tooltip:"Horizontal align"}],table:[{name:"brush",popup:function(e,t){var o,i,n,r,s,a,l=f.Table.getAllSelectedCells(t);return!!l.length&&(r=u.css(l[0],"color"),a=u.css(l[0],"background-color"),s=u.css(l[0],"border-color"),o=c(e,function(t){l.forEach(function(e){u.css(e,"background-color",t)}),e.setEditorValue()},a),i=c(e,function(t){l.forEach(function(e){u.css(e,"color",t)}),e.setEditorValue()},r),n=c(e,function(t){l.forEach(function(e){u.css(e,"border-color",t)}),e.setEditorValue()},s),d(e,{Background:o,Text:i,Border:n}))},tooltip:"Background"},{name:"valign",list:["Top","Middle","Bottom"],exec:function(e,t,o){var i=o.args&&"string"==typeof o.args[1]?o.args[1].toLowerCase():"";f.Table.getAllSelectedCells(t).forEach(function(e){u.css(e,"vertical-align",i)})},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 i=o.args&&"string"==typeof o.args[0]?o.args[0].toLowerCase():"";e.execCommand(i,!1,t)},tooltip:"Add column"},{name:"addrow",list:{tableaddrowbefore:"Insert row above",tableaddrowafter:"Insert row below"},exec:function(e,t,o){var i=o.args&&"string"==typeof o.args[0]?o.args[0].toLowerCase():"";e.execCommand(i,!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 i=o.args&&"string"==typeof o.args[0]?o.args[0].toLowerCase():"";e.execCommand(i,!1,t),e.events.fire("hidePopup")},tooltip:"Delete"}]};var h,v=(i.__extends(m,h=a.Plugin),m.prototype.isExcludedTarget=function(e){return!!~u.splitArray(this.jodit.options.toolbarInlineDisableFor).map(function(e){return e.toLowerCase()}).indexOf(e.toLowerCase())},m.prototype.hideIfCollapsed=function(){return!!this.jodit.selection.isCollapsed()&&(this.hidePopup(),!0)},m.prototype.afterInit=function(t){var i=this;this.toolbar=p.JoditToolbarCollection.makeCollection(t),this.target=t.create.div("jodit_toolbar_popup-inline-target"),this.container=t.create.div(),this.popup=new l.Popup(t,this.target,void 0,"jodit_toolbar_popup-inline"),t.events.on(this.target,"mousedown keydown touchstart",function(e){e.stopPropagation()}).on("beforeOpenPopup hidePopup afterSetMode",this.hidePopup).on("recalcPositionPopup",this.reCalcPosition).on("getDiffButtons.mobile",function(e){if(i.toolbar===e)return u.splitArray(t.options.buttons).filter(function(e){return"|"!==e&&"\n"!==e}).filter(function(e){return!~i.toolbar.getButtonsList().indexOf(e)})}).on("selectionchange",this.onChangeSelection).on("afterCommand afterExec",function(){i.isShown&&i.isSelectionPopup&&i.onChangeSelection()}).on("showPopup",function(e,t){var o=("string"==typeof e?e:e.nodeName).toLowerCase();i.isSelectionPopup=!1,i.showPopup(t,o,"string"==typeof e?void 0:e)}).on("mousedown keydown touchstart",this.onSelectionStart).on([t.ownerWindow,t.editor],"scroll resize",this.reCalcPosition).on([t.ownerWindow],"mouseup keyup touchend",this.onSelectionEnd).on([t.ownerWindow],"mousedown keydown touchstart",this.checkIsTargetEvent)},m.prototype.beforeDestruct=function(e){this.popup&&this.popup.destruct(),delete this.popup,this.toolbar&&this.toolbar.destruct(),delete this.toolbar,s.Dom.safeRemove(this.target),s.Dom.safeRemove(this.container),e.events&&e.events.off([e.ownerWindow],"scroll resize",this.reCalcPosition).off([e.ownerWindow],"mouseup keyup touchend",this.onSelectionEnd).off([e.ownerWindow],"mousedown keydown touchstart",this.checkIsTargetEvent)},m);function m(){var a=null!==h&&h.apply(this,arguments)||this;return a._hiddenClass="jodit_toolbar_popup-inline-target-hidden",a.isSelectionStarted=!1,a.onSelectionEnd=u.debounce(function(){!a.isDestructed&&a.jodit.isEditorMode()&&(a.isSelectionStarted&&(a.isTargetAction||a.onChangeSelection()),a.isSelectionStarted=!1,a.isTargetAction=!1)},a.jodit.defaultTimeout),a.isTargetAction=!1,a.isSelectionPopup=!1,a.calcWindSizes=function(){var e=a.jodit.ownerWindow,t=a.jodit.ownerDocument.documentElement;if(!t)return{left:0,top:0,width:0,height:0};var o=a.jodit.ownerDocument.body,i=t.clientTop||o.clientTop||0,n=t.clientLeft||o.clientLeft||0;return{left:n,top:i,width:t.clientWidth+(e.pageXOffset||t.scrollLeft||o.scrollLeft)-n,height:t.clientHeight+(e.pageYOffset||t.scrollTop||o.scrollTop)-i}},a.calcPosition=function(e,t){if(!a.isDestructed){a.popup.target.classList.remove(a._hiddenClass);var o=e.left+e.width/2,i=u.offset(a.jodit.workplace,a.jodit,a.jodit.ownerDocument,!0),n=e.top+e.height+10;a.target.style.left=o+"px",a.target.style.top=n+"px",a.jodit.isFullSize()&&(a.target.style.zIndex=""+u.css(a.jodit.container,"zIndex"));var r=a.container.offsetWidth/2,s=-r;a.popup.container.classList.remove("jodit_toolbar_popup-inline-top"),t.height<n+a.container.offsetHeight&&(a.target.style.top=(n=e.top-a.container.offsetHeight-10)+"px",a.popup.container.classList.add("jodit_toolbar_popup-inline-top")),o-r<0&&(s=-(e.width/2+e.left)),t.width<o+r&&(s=-(a.container.offsetWidth-(t.width-o))),a.container.style.marginLeft=s+"px",(50<i.top-n||50<n-(i.top+i.height))&&a.popup.target.classList.add(a._hiddenClass)}},a.reCalcPosition=function(){a.__getRect&&a.calcPosition(a.__getRect(),a.calcWindSizes())},a.showPopup=function(e,t,o){if(!a.jodit.options.toolbarInline||!a.jodit.options.popup[t.toLowerCase()])return!1;if(a.isExcludedTarget(t))return!0;a.isShown=!0,a.isTargetAction=!0;var i=a.calcWindSizes();return a.target.parentNode||a.jodit.ownerDocument.body.appendChild(a.target),a.toolbar.build(a.jodit.options.popup[t.toLowerCase()],a.container,o),a.popup.open(a.container,!1,!0),a.__getRect=e,a.calcPosition(e(),i),!0},a.hidePopup=function(e){a.isDestructed||e&&(s.Dom.isNode(e,a.jodit.editorWindow||window)||e instanceof l.Popup)&&s.Dom.isOrContains(a.target,e instanceof l.Popup?e.target:e)||(a.isTargetAction=!1,a.isShown=!1,a.popup.close(),s.Dom.safeRemove(a.target))},a.onSelectionStart=function(e){if(!a.isDestructed&&a.jodit.isEditorMode()&&(a.isTargetAction=!1,a.isSelectionPopup=!1,!a.isSelectionStarted)){var t=Object.keys(a.jodit.options.popup).join("|"),o="IMG"===e.target.nodeName?e.target:s.Dom.closest(e.target,t,a.jodit.editor);o&&a.showPopup(function(){return u.offset(o,a.jodit,a.jodit.editorDocument)},o.nodeName,o)||(a.isSelectionStarted=!0)}},a.checkIsTargetEvent=function(){a.isTargetAction?a.isTargetAction=!1:a.hidePopup()},a.isShown=!1,a.onChangeSelection=function(){if(a.jodit.options.toolbarInline&&a.jodit.isEditorMode()&&!a.hideIfCollapsed()&&void 0!==a.jodit.options.popup.selection){var e=a.jodit.selection.sel;if(e&&e.rangeCount){a.isSelectionPopup=!0;var t=e.getRangeAt(0);a.showPopup(function(){return u.offset(t,a.jodit,a.jodit.editorDocument)},"selection")}}},a}t.inlinePopup=v},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),s=o(0),a=o(4),l=o(6);i.Config.prototype.controls.align={name:"left",tooltip:"Align",getLabel:function(t,e,o){var i=t.selection.current();if(i){var n=s.Dom.closest(i,function(e){return s.Dom.isBlock(e,t.editorWindow)},t.editor)||t.editor,r=""+a.css(n,"text-align");e.defaultValue&&~e.defaultValue.indexOf(r)&&(r="left"),o&&e.data&&e.data.currentValue!==r&&e.list&&~e.list.indexOf(r)&&(o.textBox.innerHTML=t.options.textIcons?"<span>"+r+"</span>":l.ToolbarIcon.getIcon(r,""),o.textBox.firstChild.classList.add("jodit_icon"),e.data.currentValue=r)}return!1},isActive:function(t,e){var o=t.selection.current();if(o&&e.defaultValue){var i=s.Dom.closest(o,function(e){return s.Dom.isBlock(e,t.editorWindow)},t.editor)||t.editor;return!~e.defaultValue.indexOf(""+a.css(i,"text-align"))}return!1},defaultValue:["left","start","inherit"],data:{currentValue:"left"},list:["center","left","right","justify"]},i.Config.prototype.controls.center={command:"justifyCenter",css:{"text-align":"center"},tooltip:"Align Center"},i.Config.prototype.controls.justify={command:"justifyFull",css:{"text-align":"justify"},tooltip:"Align Justify"},i.Config.prototype.controls.left={command:"justifyLeft",css:{"text-align":"left"},tooltip:"Align Left"},i.Config.prototype.controls.right={command:"justifyRight",css:{"text-align":"right"},tooltip:"Align Right"},t.justify=function(i){function e(t){function o(e){if(e instanceof i.editorWindow.HTMLElement)switch(t.toLowerCase()){case"justifyfull":e.style.textAlign="justify";break;case"justifyright":e.style.textAlign="right";break;case"justifyleft":e.style.textAlign="left";break;case"justifycenter":e.style.textAlign="center"}}return i.selection.focus(),i.selection.eachSelection(function(e){if(!e&&i.editor.querySelector(".jodit_selected_cell"))return a.$$(".jodit_selected_cell",i.editor).forEach(o),!1;if(e instanceof i.editorWindow.Node){var t=!!e&&s.Dom.up(e,function(e){return s.Dom.isBlock(e,i.editorWindow)},i.editor);!t&&e&&(t=s.Dom.wrapInline(e,i.options.enterBlock,i)),o(t)}}),!1}i.registerCommand("justifyfull",e),i.registerCommand("justifyright",e),i.registerCommand("justifyleft",e),i.registerCommand("justifycenter",e)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),c=o(0),d=o(4);i.Config.prototype.link={followOnDblClick:!0,processVideoLink:!0,processPastedLink:!0,openLinkDialogAfterPost:!0,removeLinkAfterFormat:!0,noFollowCheckbox:!0,openInNewTabCheckbox:!0},i.Config.prototype.controls.unlink={exec:function(e,t){var o=c.Dom.closest(t,"A",e.editor);o&&c.Dom.unwrap(o),e.events.fire("hidePopup")}},i.Config.prototype.controls.link={isActive:function(e){var t=e.selection.current();return t&&!1!==c.Dom.closest(t,"a",e.editor)},popup:function(o,i,e,n){var t=o.selection.sel,r=o.create.fromHTML('<form class="jodit_form"><input required type="text" name="url" placeholder="http://" type="text"/><input name="text" placeholder="'+o.i18n("Text")+'" type="text"/>'+(o.options.link.openInNewTabCheckbox?'<label><input name="target" type="checkbox"/> '+o.i18n("Open in new tab")+"</label>":"")+(o.options.link.noFollowCheckbox?'<label><input name="nofollow" type="checkbox"/> '+o.i18n("No follow")+"</label>":"")+'<div style="text-align: right"><button class="jodit_unlink_button" type="button">'+o.i18n("Unlink")+'</button> &nbsp;&nbsp;<button class="jodit_link_insert_button" type="submit"></button></div><form/>');i=!(!i||!c.Dom.closest(i,"A",o.editor))&&c.Dom.closest(i,"A",o.editor);var s=r.querySelector(".jodit_link_insert_button"),a=r.querySelector(".jodit_unlink_button");i?(d.val(r,"input[name=url]",i.getAttribute("href")||""),d.val(r,"input[name=text]",i.textContent||""),o.options.link.openInNewTabCheckbox&&(r.querySelector("input[name=target]").checked="_blank"===i.getAttribute("target")),o.options.link.noFollowCheckbox&&(r.querySelector("input[name=nofollow]").checked="nofollow"===i.getAttribute("rel")),s&&(s.innerHTML=o.i18n("Update"))):(a&&(a.style.display="none"),d.val(r,"input[name=text]",t?""+t:""),s&&(s.innerHTML=o.i18n("Insert")));var l=o.selection.save();return a&&a.addEventListener("mousedown",function(e){i&&c.Dom.unwrap(i),o.selection.restore(l),n(),e.preventDefault()}),r.addEventListener("submit",function(e){e.preventDefault(),o.selection.restore(l);var t=i||o.editorDocument.createElement("a");return d.val(r,"input[name=url]")?(t.setAttribute("href",d.val(r,"input[name=url]")),t.textContent=d.val(r,"input[name=text]"),o.options.link.openInNewTabCheckbox&&(r.querySelector("input[name=target]").checked?t.setAttribute("target","_blank"):t.removeAttribute("target")),o.options.link.noFollowCheckbox&&(r.querySelector("input[name=nofollow]").checked?t.setAttribute("rel","nofollow"):t.removeAttribute("rel")),i||o.selection.insertNode(t),n()):(r.querySelector("input[name=url]").focus(),r.querySelector("input[name=url]").classList.add("jodit_error")),!1}),r},tags:["a"],tooltip:"Insert link"},t.link=function(n){n.options.link.followOnDblClick&&n.events.on("afterInit",function(){n.events.on(n.editor,"dblclick",function(e){var t=this.getAttribute("href");t&&(location.href=t,e.preventDefault())},"a")}),n.options.link.processPastedLink&&n.events.on("processPaste",function(e,t){if(d.isURL(t)){var o=d.convertMediaURLToVideoEmbed(t);if(o!==t)return n.create.inside.fromHTML(o);var i=n.create.inside.element("a");return i.setAttribute("href",t),i.textContent=t,i}}),n.options.link.removeLinkAfterFormat&&n.events.on("afterCommand",function(e){var t,o;"removeFormat"===e&&((o=n.selection.current())&&"A"!==o.nodeName&&(o=c.Dom.closest(o,"A",n.editor)),o&&"A"===o.nodeName&&(o.innerHTML===o.textContent?t=n.editorDocument.createTextNode(o.innerHTML):(t=n.editorDocument.createElement("span")).innerHTML=o.innerHTML,o.parentNode&&(o.parentNode.replaceChild(t,o),n.selection.setCursorIn(t,!0))))})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),n=o(2),r=o(5),s=o(46);i.Config.prototype.limitWords=!1,i.Config.prototype.limitChars=!1,i.Config.prototype.limitHTML=!1,t.limit=function(i){if(i&&(i.options.limitWords||i.options.limitChars)){var o=function(e,t){void 0===t&&(t="");var o=(t||(i.options.limitHTML?i.value:i.getEditorText())).replace(n.INVISIBLE_SPACE_REG_EXP,"").split(n.SPACE_REG_EXP).filter(function(e){return e.length});if(!e||!~n.COMMAND_KEYS.indexOf(e.which))return i.options.limitWords&&i.options.limitWords<=o.length?i.options.limitWords===o.length:i.options.limitChars&&i.options.limitChars<=o.join("").length?i.options.limitChars===o.join("").length:void 0},e=null;i.events.on("beforePaste",function(){e=i.observer.snapshot.make()}).on("keydown keyup beforeEnter beforePaste",function(e){if(void 0!==o(e))return!1}).on("change",r.debounce(function(e,t){!1===o(null,i.options.limitHTML?e:s.stripTags(e))&&(i.value=t)},i.defaultTimeout)).on("afterPaste",function(){if(!1===o(null)&&e)return i.observer.snapshot.restore(e),!1})}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),r=o(2),s=o(5),a=o(11);i.Config.prototype.mediaFakeTag="jodit-media",i.Config.prototype.mediaInFakeBlock=!0,i.Config.prototype.mediaBlocks=["video","audio"],t.media=function(o){var i="jodit_fake_wrapper",e=o.options,n=e.mediaFakeTag,t=e.mediaBlocks;e.mediaInFakeBlock&&o.events.on("afterGetValueFromEditor",function(e){var t=RegExp("<"+n+"[^>]+data-"+i+"[^>]+>(.+?)</"+n+">","ig");t.test(e.value)&&(e.value=e.value.replace(t,"$1"))}).on("change afterInit afterSetMode",s.debounce(function(){o.isDestructed||o.getMode()===r.MODE_SOURCE||a.$$(t.join(","),o.editor).forEach(function(e){e["__"+i]||(e["__"+i]=!0,function(e){if(e.parentNode&&e.parentNode.getAttribute("data-jodit_iframe_wrapper"))e=e.parentNode;else{var t=void 0;(t=o.create.inside.fromHTML("<"+n+' data-jodit-temp="1" contenteditable="false" draggable="true" data-'+i+'="1"></'+n+">")).style.display="inline-block"===e.style.display?"inline-block":"block",t.style.width=e.offsetWidth+"px",t.style.height=e.offsetHeight+"px",e.parentNode&&e.parentNode.insertBefore(t,e),t.appendChild(e),e=t}o.events.off(e,"mousedown.select touchstart.select").on(e,"mousedown.select touchstart.select",function(){o.selection.setCursorAfter(e)})}(e))})},o.defaultTimeout))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),n=o(2),s=o(29),a=o(20);i.Config.prototype.mobileTapTimeout=300,i.Config.prototype.toolbarAdaptive=!0,i.Config.prototype.controls.dots={mode:n.MODE_SOURCE+n.MODE_WYSIWYG,popup:function(t,e,o,i,n){var r=o.data;return void 0===r&&((r={container:t.create.div(),toolbar:a.JoditToolbarCollection.makeCollection(t),rebuild:function(){if(n){var e=t.events.fire("getDiffButtons.mobile",n.parentToolbar);e&&r&&r.toolbar.build(s.splitArray(e),r.container)}}}).container.style.width="100px",o.data=r),r.rebuild(),r.container}},t.mobile=function(o){var t,i=0,n=s.splitArray(o.options.buttons);o.events.on("touchend",function(e){e.changedTouches&&e.changedTouches.length&&(t=(new Date).getTime(),o.options.mobileTapTimeout<t-i&&(i=t,o.selection.insertCursorAtPoint(e.changedTouches[0].clientX,e.changedTouches[0].clientY)))}).on("getDiffButtons.mobile",function(e){if(e===o.toolbar)return s.splitArray(o.options.buttons).filter(function(e){return!~n.indexOf(e)})}),o.options.toolbarAdaptive&&o.events.on("resize afterInit",function(){if(o.options.toolbar){var e,t=o.container.offsetWidth;""+(e=s.splitArray(t<o.options.sizeLG?t<o.options.sizeMD?t<o.options.sizeSM?o.options.buttonsXS:o.options.buttonsSM:o.options.buttonsMD:o.options.buttons))!=""+n&&o.toolbar.build((n=e).concat(o.options.extraButtons),o.container)}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),n=o(0);i.Config.prototype.controls.ul={command:"insertUnorderedList",controlName:"ul",tags:["ul"],tooltip:"Insert Unordered List"},i.Config.prototype.controls.ol={command:"insertOrderedList",controlName:"ol",tags:["ol"],tooltip:"Insert Ordered List"},t.orderedlist=function(i){i.events.on("afterCommand",function(e){if(/insert(un)?orderedlist/i.test(e)){var t=n.Dom.up(i.selection.current(),function(e){return e&&/^UL|OL$/i.test(e.nodeName)},i.editor);if(t&&t.parentNode&&"P"===t.parentNode.nodeName){var o=i.selection.save();n.Dom.unwrap(t.parentNode),Array.from(t.childNodes).forEach(function(e){e.lastChild&&e.lastChild.nodeType===Node.ELEMENT_NODE&&"BR"===e.lastChild.nodeName&&n.Dom.safeRemove(e.lastChild)}),i.selection.restore(o)}i.setEditorValue()}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),v=o(2),m=o(13),g=o(4),_=o(0),n=o(172);i.Config.prototype.askBeforePasteHTML=!0,i.Config.prototype.askBeforePasteFromWord=!0,i.Config.prototype.nl2brInPlainText=!0,i.Config.prototype.defaultActionOnPaste=v.INSERT_AS_HTML,i.Config.prototype.controls.cut={command:"cut",isDisable:function(e){var t=e.selection.sel;return!t||t.isCollapsed},tooltip:"Cut selection"},t.paste=function(d){function c(e,t,o,i,n){if(void 0===i&&(i="Clean"),void 0===n&&(n="Insert only Text"),!d.events||!1!==d.events.fire("beforeOpenPasteDialog",e,t,o,i,n)){var r=m.Confirm('<div style="word-break: normal; white-space: normal">'+e+"</div>",t,o);r.container.setAttribute("data-editor_id",d.id);var s=r.create.fromHTML('<a href="javascript:void(0)" style="float:left;" class="jodit_button"><span>'+d.i18n("Keep")+"</span></a>"),a=r.create.fromHTML('<a href="javascript:void(0)" style="float:left;" class="jodit_button"><span>'+d.i18n(i)+"</span></a>"),l=r.create.fromHTML('<a href="javascript:void(0)" style="float:left;" class="jodit_button"><span>'+d.i18n(n)+"</span></a>"),c=r.create.fromHTML('<a href="javascript:void(0)" style="float:right;" class="jodit_button"><span>'+d.i18n("Cancel")+"</span></a>");return d.events.on(s,"click",function(){r.close(),o&&o(!0)}),d.events.on(a,"click",function(){r.close(),o&&o(!1)}),d.events.on(l,"click",function(){r.close(),o&&o(0)}),d.events.on(c,"click",function(){r.close()}),r.setFooter([s,a,n?l:"",c]),d.events&&d.events.fire("afterOpenPasteDialog",r,e,t,o,i,n),r}}function s(e,t){if("string"==typeof e)switch(t){case v.INSERT_CLEAR_HTML:e=g.cleanFromWord(e);break;case v.INSERT_ONLY_TEXT:e=g.stripTags(e);break;case v.INSERT_AS_TEXT:e=g.htmlspecialchars(e)}d.selection.insertHTML(e)}function u(o,i){if(g.isHTML(o)&&h!==p(o))return d.events.stopPropagation("beforePaste"),o=p(o),c(d.i18n("Your code is similar to HTML. Keep as HTML?"),d.i18n("Paste as HTML"),function(e){var t=v.INSERT_AS_HTML;!1===e&&(t=v.INSERT_AS_TEXT),0===e&&(t=v.INSERT_ONLY_TEXT),"drop"===i.type&&d.selection.insertCursorAtPoint(i.clientX,i.clientY),s(o,t),d.setEditorValue()},"Insert as Text"),!1}function f(e){return e.clipboardData?e.clipboardData:e.dataTransfer||new DataTransfer}function p(e){var t=e.search(/<!--StartFragment-->/i);-1!=t&&(e=e.substr(20+t));var o=e.search(/<!--EndFragment-->/i);return-1!=o&&(e=e.substr(0,o)),e}var h="";d.events.on("copy cut",function(e){var t=d.selection.getHTML(),o=f(e)||f(d.editorWindow)||f(e.originalEvent);o&&(o.setData(v.TEXT_PLAIN,g.stripTags(t)),o.setData(v.TEXT_HTML,t)),h=t,"cut"===e.type&&(d.selection.remove(),d.selection.focus()),e.preventDefault(),d.events.fire("afterCopy",t)}).on("paste",function(e){if(!1===d.events.fire("beforePaste",e))return e.preventDefault(),!1;var t=f(e);if(e&&t){var o=t.types,i="",n="";if(Array.isArray(o)||"domstringlist"===g.type(o))for(var r=0;r<o.length;r+=1)i+=o[r]+";";else i=o+";";/text\/html/i.test(i)?n=t.getData("text/html"):/text\/rtf/i.test(i)&&g.browser("safari")?n=t.getData("text/rtf"):/text\/plain/i.test(i)&&!g.browser("mozilla")?n=t.getData(v.TEXT_PLAIN):/text/i.test(i)&&v.IS_IE&&(n=t.getData(v.TEXT_PLAIN)),(n instanceof d.editorWindow.Node||g.trim(n))&&(n=p(n),h!==n&&(n=d.events.fire("processPaste",e,n,i)),"string"!=typeof n&&!_.Dom.isNode(n,d.editorWindow)||("drop"===e.type&&d.selection.insertCursorAtPoint(e.clientX,e.clientY),s(n,d.options.defaultActionOnPaste)),e.preventDefault(),e.stopPropagation())}return!1!==d.events.fire("afterPaste",e)&&void 0}),d.options.askBeforePasteHTML&&d.events.on("beforePaste",function(e){var t=f(e);if(e&&t&&t.getData(v.TEXT_PLAIN))return u(t.getData(v.TEXT_PLAIN),e)}),d.options.askBeforePasteFromWord&&d.events.on("beforePaste",function(e){var t=f(e);if(e&&t&&t.getData&&t.getData(v.TEXT_HTML)){var o=function(t){if(g.isHTML(t)&&h!==p(t))return g.isHTMLFromWord(t)?c(d.i18n("The pasted content is coming from a Microsoft Word/Excel document. Do you want to keep the format or clean it up?"),d.i18n("Word Paste Detected"),function(e){!0===e&&(t=g.applyStyles(t),d.options.beautifyHTML&&d.ownerWindow.html_beautify&&(t=d.ownerWindow.html_beautify(t))),!1===e&&(t=g.cleanFromWord(t)),0===e&&(t=g.stripTags(g.cleanFromWord(t))),d.selection.insertHTML(t),d.setEditorValue()}):u(t,e),!1};if(t.types&&~Array.from(t.types).indexOf("text/html")){var i=t.getData(v.TEXT_HTML);return o(i)}if("drop"!==e.type){var n=d.create.div("",{tabindex:-1,contenteditable:!0,style:{left:-9999,top:0,width:0,height:"100%",lineHeight:"140%",overflow:"hidden",position:"fixed",zIndex:2147483647,wordBreak:"break-all"}});d.container.appendChild(n);var r=d.selection.save();n.focus();var s=0,a=function(){_.Dom.safeRemove(n),d.selection&&d.selection.restore(r)},l=function(){if(s+=1,n.childNodes&&0<n.childNodes.length){var e=n.innerHTML;a(),!1!==o(e)&&d.selection.insertHTML(e)}else s<5?g.setTimeout(l,20):a()};l()}}}),d.options.nl2brInPlainText&&d.events.on("processPaste",function(e,t,o){if(o===v.TEXT_PLAIN+";"&&!g.isHTML(t))return n.nl2br(t)})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nl2br=function(e){return e.replace(/([^>])([\n\r]+)/g,"$1<br/>$2")}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),s=o(2),a=o(10),l=o(5),c=o(0);i.Config.prototype.showPlaceholder=!0,i.Config.prototype.useInputsPlaceholder=!0,i.Config.prototype.placeholder="Type something",t.placeholder=function(n){if(n.options.showPlaceholder){this.destruct=function(){c.Dom.safeRemove(r)};var t=function(){r.parentNode&&(r.style.display="none")},o=l.debounce(function(){if(null!==r.parentNode&&n.editor){if(n.getRealMode()!==s.MODE_WYSIWYG)return t();var e=n.getEditorValue();e&&!/^<(p|div|h[1-6])><\/\1>$/.test(e)?t():function(){if(r.parentNode&&!n.options.readonly){var e=0,t=0,o=n.editorWindow.getComputedStyle(n.editor);if(n.editor.firstChild&&n.editor.firstChild.nodeType===Node.ELEMENT_NODE){var i=n.editorWindow.getComputedStyle(n.editor.firstChild);e=parseInt(i.getPropertyValue("margin-top"),10),t=parseInt(i.getPropertyValue("margin-left"),10),r.style.fontSize=parseInt(i.getPropertyValue("font-size"),10)+"px",r.style.lineHeight=i.getPropertyValue("line-height")}else r.style.fontSize=parseInt(o.getPropertyValue("font-size"),10)+"px",r.style.lineHeight=o.getPropertyValue("line-height");a.css(r,{display:"block",marginTop:Math.max(parseInt(o.getPropertyValue("margin-top"),10),e),marginLeft:Math.max(parseInt(o.getPropertyValue("margin-left"),10),t)})}}()}},n.defaultTimeout/10),r=n.create.fromHTML('<span style="display: none;" class="jodit_placeholder">'+n.i18n(n.options.placeholder)+"</span>");"rtl"===n.options.direction&&(r.style.right="0px",r.style.direction="rtl"),n.options.useInputsPlaceholder&&n.element.hasAttribute("placeholder")&&(r.innerHTML=n.element.getAttribute("placeholder")||""),n.events.on("readonly",function(e){e?t():o()}).on("afterInit",function(){n.workplace.appendChild(r),o(),n.events.fire("placeholder",r.innerHTML),n.events.on("change keyup mouseup keydown mousedown afterSetMode",o).on(window,"load",o)})}}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),r=o(2),s=o(7);n.Config.prototype.controls.redo={mode:r.MODE_SPLIT,isDisable:function(e){return!e.observer.stack.canRedo()},tooltip:"Redo"},n.Config.prototype.controls.undo={mode:r.MODE_SPLIT,isDisable:function(e){return!e.observer.stack.canUndo()},tooltip:"Undo"};var a,l=(i.__extends(c,a=s.Plugin),c.prototype.beforeDestruct=function(){},c.prototype.afterInit=function(t){function e(e){return t.getRealMode()===r.MODE_WYSIWYG&&t.observer[e](),!1}t.registerCommand("redo",{exec:e,hotkeys:["ctrl+y","ctrl+shift+z","cmd+y","cmd+shift+z"]}),t.registerCommand("undo",{exec:e,hotkeys:["ctrl+z","cmd+z"]})},c);function c(){return null!==a&&a.apply(this,arguments)||this}t.redoundo=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),x=o(2),T=o(2),S=o(0),D=o(11),q=o(5),M=o(23),L=o(4);i.Config.prototype.useIframeResizer=!0,i.Config.prototype.useTableResizer=!0,i.Config.prototype.useImageResizer=!0,i.Config.prototype.resizer={showSize:!0,hideSizeTimeout:1e3,min_width:10,min_height:10},t.resizer=function(r){function n(){w=y=!1,c=null,C.style.display="none"}function s(){j.style.opacity="0"}function a(){if(w&&c&&C){var e=M.offset(C.parentNode||r.ownerDocument.documentElement,r,r.ownerDocument,!0),t=M.offset(c,r,r.editorDocument),o=parseInt(C.style.left||"0",10),i=t.top-1-e.top,n=t.left-1-e.left;parseInt(C.style.top||"0",10)===i&&o===n&&C.offsetWidth===c.offsetWidth&&C.offsetHeight===c.offsetHeight||(C.style.top=i+"px",C.style.left=n+"px",C.style.width=c.offsetWidth+"px",C.style.height=c.offsetHeight+"px",r.events&&(r.events.fire(c,"changesize"),isNaN(o)||r.events.fire("resize")))}}var l,c,d,u,f,p,h,v,m,g,_,b=!1,y=!1,w=!1,E=0,C=r.create.fromHTML('<div data-editor_id="'+r.id+'" style="display:none" class="jodit_resizer"><i class="jodit_resizer-topleft"></i><i class="jodit_resizer-topright"></i><i class="jodit_resizer-bottomright"></i><i class="jodit_resizer-bottomleft"></i><span>100x100</span></div>'),j=C.getElementsByTagName("span")[0];D.$$("i",C).forEach(function(t){r.events.on(t,"mousedown touchstart",function(e){if(!c||!c.parentNode)return n(),!1;l=t,e.preventDefault(),e.stopImmediatePropagation(),h=(f=c.offsetWidth)/(p=c.offsetHeight),y=!0,d=e.clientX,u=e.clientY,r.events.fire("hidePopup"),r.lock("resizer")})}),r.events.on("readonly",function(e){e&&n()}).on("beforeDestruct",function(){S.Dom.safeRemove(C)}).on("afterInit",function(){r.events.on(r.editor,"keydown",function(e){w&&e.which===x.KEY_DELETE&&c&&"table"!=c.tagName.toLowerCase()&&("JODIT"!==c.tagName?r.selection.select(c):(S.Dom.safeRemove(c),n(),e.preventDefault()))}).on(r.ownerWindow,"mousemove touchmove",function(e){if(y){if(g=e.clientX-d,_=e.clientY-u,!c)return;var t=l.className;"IMG"===c.tagName?(g?(m=f+(t.match(/left/)?-1:1)*g,v=Math.round(m/h)):(v=p+(t.match(/top/)?-1:1)*_,m=Math.round(v*h)),m>M.innerWidth(r.editor,r.ownerWindow)&&(m=M.innerWidth(r.editor,r.ownerWindow),v=Math.round(m/h))):(m=f+(t.match(/left/)?-1:1)*g,v=p+(t.match(/top/)?-1:1)*_),r.options.resizer.min_width<m&&(c.style.width=m<C.parentNode.offsetWidth?m+"px":"100%"),r.options.resizer.min_height<v&&(c.style.height=v+"px"),a(),o=c.offsetWidth,i=c.offsetHeight,r.options.resizer.showSize&&(o<j.offsetWidth||i<j.offsetHeight?s():(j.style.opacity="1",j.innerHTML=o+" x "+i,clearTimeout(E),E=q.setTimeout(s,r.options.resizer.hideSizeTimeout))),e.stopImmediatePropagation()}var o,i}).on(r.ownerWindow,"resize",function(){w&&a()}).on(r.ownerWindow,"mouseup keydown touchend",function(e){w&&!b&&(y?(r.unlock(),y=!1,r.setEditorValue(),e.stopImmediatePropagation()):n())}).on([r.ownerWindow,r.editor],"scroll",function(){w&&!y&&n()})}).on("afterGetValueFromEditor",function(e){var t=/<jodit[^>]+data-jodit_iframe_wrapper[^>]+>(.*?<iframe[^>]+>[\s\n\r]*<\/iframe>.*?)<\/jodit>/gi;t.test(e.value)&&(e.value=e.value.replace(t,"$1"))}).on("hideResizer",n).on("change afterInit afterSetMode",q.debounce(function(){w&&(c&&c.parentNode?a():n()),r.isDestructed||D.$$("img, table, iframe",r.editor).forEach(function(e){r.getMode()!==x.MODE_SOURCE&&!e.__jodit_resizer_binded&&("IFRAME"===e.tagName&&r.options.useIframeResizer||"IMG"===e.tagName&&r.options.useImageResizer||"TABLE"===e.tagName&&r.options.useTableResizer)&&(e.__jodit_resizer_binded=!0,function(t){var e,o;if("IFRAME"===t.tagName){var i=t;t=t.parentNode&&t.parentNode.getAttribute("data-jodit_iframe_wrapper")?t.parentNode:((e=r.create.inside.fromHTML('<jodit data-jodit-temp="1" contenteditable="false" draggable="true" data-jodit_iframe_wrapper="1"></jodit>')).style.display="inline-block"===t.style.display?"inline-block":"block",e.style.width=t.offsetWidth+"px",e.style.height=t.offsetHeight+"px",t.parentNode&&t.parentNode.insertBefore(e,t),e.appendChild(t),e),r.events.off(t,"mousedown.select touchstart.select").on(t,"mousedown.select touchstart.select",function(){r.selection.select(t)}),r.events.off(t,"changesize").on(t,"changesize",function(){i.setAttribute("width",t.offsetWidth+"px"),i.setAttribute("height",t.offsetHeight+"px")})}r.events.on(t,"dragstart",n).on(t,"mousedown",function(e){T.IS_IE&&"IMG"===t.nodeName&&e.preventDefault()}).on(t,"mousedown touchstart",function(){b||(b=!0,c=t,r.options.readonly||(C.parentNode||r.workplace.appendChild(C),w=!0,C.style.display="block",r.isFullSize()&&(C.style.zIndex=""+L.css(r.container,"zIndex")),a()),"IMG"!==c.tagName||c.complete||c.addEventListener("load",function e(){a(),c&&c.removeEventListener("load",e)}),clearTimeout(o)),o=q.setTimeout(function(){b=!1},400)})}(e))})},r.defaultTimeout))}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),u=o(5),f=o(10);i.Config.prototype.allowResizeX=!1,i.Config.prototype.allowResizeY=!0,t.size=function(i){function o(e){f.css(i.container,"height",e),i.options.saveHeightInStorage&&i.storage.set("height",e)}function n(e){return f.css(i.container,"width",e)}function t(e){return f.css(i.workplace,"height",e)}if("auto"!==i.options.height&&(i.options.allowResizeX||i.options.allowResizeY)){var r=i.create.div("jodit_editor_resize",'<a tabindex="-1" href="javascript:void(0)"></a>'),s={x:0,y:0,w:0,h:0},a=!1;i.events.on(r,"mousedown touchstart",function(e){a=!0,s.x=e.clientX,s.y=e.clientY,s.w=i.container.offsetWidth,s.h=i.container.offsetHeight,i.lock(),e.preventDefault()}).on(i.ownerWindow,"mousemove touchmove",u.throttle(function(e){a&&(i.options.allowResizeY&&o(s.h+e.clientY-s.y),i.options.allowResizeX&&n(s.w+e.clientX-s.x),c(),i.events.fire("resize"))},i.defaultTimeout/10)).on(i.ownerWindow,"mouseup touchsend",function(){a&&(a=!1,i.unlock())}).on("afterInit",function(){i.container.appendChild(r)}).on("toggleFullSize",function(e){r.style.display=e?"none":"block"})}function e(){return(i.options.toolbar?i.toolbar.container.offsetHeight:0)+(i.statusbar?i.statusbar.container.offsetHeight:0)}function l(){if(i.container&&i.container.parentNode){var o=f.css(i.container,"minHeight")-e();[i.workplace,i.iframe,i.editor].map(function(e){var t=e===i.editor?o-2:o;e&&f.css(e,"minHeight",t),i.events.fire("setMinHeight",t)})}}var c=function(){i&&!i.isDestructed&&i.options&&!i.options.inline&&(l(),i.container&&("auto"!==i.options.height||i.isFullSize())&&t(i.container.offsetHeight-e()))},d=u.debounce(c,i.defaultTimeout);i.events.on("toggleFullSize",function(e){e||"auto"!==i.options.height||(t("auto"),l())}).on("afterInit",function(){i.options.inline||(f.css(i.editor,{minHeight:"100%"}),f.css(i.container,{minHeight:i.options.minHeight,minWidth:i.options.minWidth,maxWidth:i.options.maxWidth}));var e=i.options.height;if(i.options.saveHeightInStorage&&"auto"!==e){var t=i.storage.get("height");t&&(e=t)}i.options.inline||(o(e),n(i.options.width)),c()},void 0,void 0,!0).on(window,"load",d).on("afterInit resize updateToolbar scroll afterResize",d)}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),u=o(2),r=o(2),s=o(7),a=o(50),l=o(5),f=o(11),c=o(10),d=o(0);n.Config.prototype.beautifyHTML=!0,n.Config.prototype.useAceEditor=!0,n.Config.prototype.sourceEditorNativeOptions={showGutter:!0,theme:"ace/theme/idle_fingers",mode:"ace/mode/html",wrap:!0,highlightActiveLine:!0},n.Config.prototype.sourceEditorCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.5/ace.js"],n.Config.prototype.beautifyHTMLCDNUrlsJS=["https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.10.0/beautify.min.js","https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.10.0/beautify-html.min.js"],n.Config.prototype.controls.source={mode:u.MODE_SPLIT,exec:function(e){e.toggleMode()},isActive:function(e){return e.getRealMode()===u.MODE_SOURCE},tooltip:"Change mode"};var p,h=(i.__extends(v,p=s.Plugin),v.prototype.getMirrorValue=function(){return this.mirror.value},v.prototype.setMirrorValue=function(e){this.mirror.value=e},v.prototype.setFocusToMirror=function(){this.mirror.focus()},v.prototype.replaceMirrorToACE=function(){function t(){i&&c.getRealMode()===u.MODE_SOURCE&&(c.events.fire("canRedo",i.hasRedo()),c.events.fire("canUndo",i.hasUndo()))}function n(e){return a.session.getLine(e).length}function r(){for(var e=a.session.getLength(),t=[],o=0,i=0;i<e;i++)o+=n(i),0<i&&(o+=1),t[i]=o;return t}function s(e){var t=r();if(e<=t[0])return{row:0,column:e};for(var o=1,i=1;i<t.length;i++)t[i]<e&&(o=i+1);return{row:o,column:e-t[o-1]-1}}function o(e,t){return r()[e]-n(e)+t}var a,i,l=this,c=this.jodit,d=function(){if(void 0===a&&void 0!==l.jodit.ownerWindow.ace){l.jodit.events.off(l.jodit.ownerWindow,"aceReady",d);var e=l.jodit.create.div("jodit_source_mirror-fake");l.mirrorContainer.insertBefore(e,l.mirrorContainer.firstChild),l.aceEditor=a=l.jodit.ownerWindow.ace.edit(e),a.setTheme(c.options.sourceEditorNativeOptions.theme),a.renderer.setShowGutter(c.options.sourceEditorNativeOptions.showGutter),a.getSession().setMode(c.options.sourceEditorNativeOptions.mode),a.setHighlightActiveLine(c.options.sourceEditorNativeOptions.highlightActiveLine),a.getSession().setUseWrapMode(!0),a.setOption("indentedSoftWrap",!1),a.setOption("wrap",c.options.sourceEditorNativeOptions.wrap),a.getSession().setUseWorker(!1),a.$blockScrolling=1/0,a.setOptions({maxLines:1/0}),a.on("change",l.toWYSIWYG),a.on("focus",l.__proxyOnFocus),a.on("mousedown",l.__proxyOnMouseDown),l.mirror.style.display="none",i=a.getSession().getUndoManager(),l.setMirrorValue=function(e){a.setValue(c.options.beautifyHTML&&c.ownerWindow.html_beautify?c.ownerWindow.html_beautify(e):e),a.clearSelection(),t()},l.jodit.getRealMode()!==u.MODE_WYSIWYG&&l.setMirrorValue(l.getMirrorValue()),l.getMirrorValue=function(){return a.getValue()},l.setFocusToMirror=function(){a.focus()},l.getSelectionStart=function(){var e=a.selection.getRange();return o(e.start.row,e.start.column)},l.getSelectionEnd=function(){var e=a.selection.getRange();return o(e.end.row,e.end.column)},l.selectAll=function(){a.selection.selectAll()},l.insertHTML=function(e){var t=a.selection.getCursor(),o=a.session.insert(t,e);a.selection.setRange({start:t,end:o},!1)},l.setMirrorSelectionRange=function(e,t){var o,i,n;o=t,i=s(e),n=s(o),a.getSelection().setSelectionRange({start:i,end:n})},c.events.on("afterResize",function(){a.resize()}).fire("aceInited",c)}};c.events.on(this.jodit.ownerWindow,"aceReady",d).on("aceReady",d).on("afterSetMode",function(){c.getRealMode()!==u.MODE_SOURCE&&c.getMode()!==u.MODE_SPLIT||(l.fromWYSIWYG(),d())}).on("beforeCommand",function(e){if(c.getRealMode()!==u.MODE_WYSIWYG&&("redo"===e||"undo"===e)&&i)return i["has"+e.substr(0,1).toUpperCase()+e.substr(1)]&&a[e](),t(),!1}),d(),void 0!==this.jodit.ownerWindow.ace||f.$$("script."+this.className,this.jodit.ownerDocument.body).length||this.loadNext(0,c.options.sourceEditorCDNUrlsJS,"aceReady",this.className)},v.prototype.afterInit=function(t){var o=this;function e(){t.events.off("beforeSetMode.source afterSetMode.source").on("beforeSetMode.source",o.saveSelection).on("afterSetMode.source",o.restoreSelection)}this.mirrorContainer=t.create.div("jodit_source"),this.mirror=t.create.fromHTML('<textarea class="jodit_source_mirror"/>'),e(),this.onReadonlyReact(),t.events.on(this.mirror,"mousedown keydown touchstart input",l.debounce(this.toWYSIWYG,t.defaultTimeout)).on(this.mirror,"change keydown mousedown touchstart input",this.autosize).on("afterSetMode.source",this.autosize).on(this.mirror,"mousedown focus",function(e){t.events.fire(e.type,e)}),t.events.on("setMinHeight.source",function(e){o.mirror&&c.css(o.mirror,"minHeight",e)}).on("insertHTML.source",function(e){if(!t.options.readonly&&!o.jodit.isEditorMode())return o.insertHTML(e),!1}).on("aceInited",function(){o.onReadonlyReact(),e()},void 0,void 0,!0).on("readonly.source",this.onReadonlyReact).on("placeholder.source",function(e){o.mirror.setAttribute("placeholder",e)}).on("beforeCommand.source",this.onSelectAll).on("change.source",this.fromWYSIWYG),this.mirrorContainer.appendChild(this.mirror),t.workplace.appendChild(this.mirrorContainer),this.autosize();var i="beutyfy_html_jodit_helper";t.options.beautifyHTML&&void 0===t.ownerWindow.html_beautify&&!f.$$("script."+i,t.ownerDocument.body).length&&this.loadNext(0,t.options.beautifyHTMLCDNUrlsJS,!1,i),t.options.useAceEditor&&this.replaceMirrorToACE(),this.fromWYSIWYG()},v.prototype.beforeDestruct=function(e){d.Dom.safeRemove(this.mirrorContainer),d.Dom.safeRemove(this.mirror),e&&e.events&&e.events.off("aceInited.source"),this.aceEditor&&(this.setFocusToMirror=function(){},this.aceEditor.off("change",this.toWYSIWYG),this.aceEditor.off("focus",this.__proxyOnFocus),this.aceEditor.off("mousedown",this.__proxyOnMouseDown),this.aceEditor.destroy(),delete this.aceEditor),this.lastTuple&&this.lastTuple.element.removeEventListener("load",this.lastTuple.callback)},v);function v(){var s=null!==p&&p.apply(this,arguments)||this;return s.className="jodit_ace_editor",s.__lock=!1,s.__oldMirrorValue="",s.autosize=l.debounce(function(){s.mirror.style.height="auto",s.mirror.style.height=s.mirror.scrollHeight+"px"},s.jodit.defaultTimeout),s.tempMarkerStart="{start-jodit-selection}",s.tempMarkerStartReg=/{start-jodit-selection}/g,s.tempMarkerEnd="{end-jodit-selection}",s.tempMarkerEndReg=/{end-jodit-selection}/g,s.selInfo=[],s.lastTuple=null,s.loadNext=function(e,t,o,i){if(void 0===o&&(o="aceReady"),void 0===i&&(i=s.className),o&&void 0===t[e]&&!s.isDestructed)return s.jodit&&s.jodit.events&&s.jodit.events.fire(o),void(s.jodit&&s.jodit.events&&s.jodit.events.fire(s.jodit.ownerWindow,o));void 0!==t[e]&&(s.lastTuple&&s.lastTuple.element.removeEventListener("load",s.lastTuple.callback),s.lastTuple=a.appendScript(t[e],function(){s.isDestructed||s.loadNext(e+1,t,o,i)},i,s.jodit.ownerDocument))},s.insertHTML=function(e){if(s.mirror.selectionStart||0===s.mirror.selectionStart){var t=s.mirror.selectionEnd;s.mirror.value=s.mirror.value.substring(0,s.mirror.selectionStart)+e+s.mirror.value.substring(t,s.mirror.value.length)}else s.mirror.value+=s.mirror;s.toWYSIWYG()},s.fromWYSIWYG=function(e){if(void 0===e&&(e=!1),!s.__lock||!0===e){s.__lock=!0;var t=s.jodit.getEditorValue(!1);t!==s.getMirrorValue()&&s.setMirrorValue(t),s.__lock=!1}},s.toWYSIWYG=function(){if(!s.__lock){var e=s.getMirrorValue();e!==s.__oldMirrorValue&&(s.__lock=!0,s.jodit.setEditorValue(e),s.__lock=!1,s.__oldMirrorValue=e)}},s.getNormalPosition=function(e,t){for(var o=e;0<o;){if("<"===t[--o]&&void 0!==t[o+1]&&t[o+1].match(/[\w\/]+/i))return o;if(">"===t[o])return e}return e},s.__clear=function(e){return e.replace(u.INVISIBLE_SPACE_REG_EXP,"")},s.selectAll=function(){s.mirror.select()},s.onSelectAll=function(e){if("selectall"==e.toLowerCase()&&s.jodit.getRealMode()===r.MODE_SOURCE)return s.selectAll(),!1},s.getSelectionStart=function(){return s.mirror.selectionStart},s.getSelectionEnd=function(){return s.mirror.selectionEnd},s.saveSelection=function(){if(s.jodit.getRealMode()===u.MODE_WYSIWYG)s.selInfo=s.jodit.selection.save()||[],s.jodit.setEditorValue(),s.fromWYSIWYG(!0);else{s.selInfo.length=0;var e=s.getMirrorValue();if(s.getSelectionStart()===s.getSelectionEnd()){var t=s.jodit.selection.marker(!0);s.selInfo[0]={startId:t.id,collapsed:!0,startMarker:t.outerHTML};var o=s.getNormalPosition(s.getSelectionStart(),s.getMirrorValue());s.setMirrorValue(e.substr(0,o)+s.__clear(s.selInfo[0].startMarker)+e.substr(o))}else{var i=s.jodit.selection.marker(!0),n=s.jodit.selection.marker(!1);s.selInfo[0]={startId:i.id,endId:n.id,collapsed:!1,startMarker:s.__clear(i.outerHTML),endMarker:s.__clear(n.outerHTML)},o=s.getNormalPosition(s.getSelectionStart(),e);var r=s.getNormalPosition(s.getSelectionEnd(),e);s.setMirrorValue(e.substr(0,o)+s.selInfo[0].startMarker+e.substr(o,r-o)+s.selInfo[0].endMarker+e.substr(r))}s.toWYSIWYG()}},s.restoreSelection=function(){if(s.selInfo.length){if(s.jodit.getRealMode()===u.MODE_WYSIWYG)return s.__lock=!0,s.jodit.selection.restore(s.selInfo),void(s.__lock=!1);var e=s.getMirrorValue(),t=0,o=0;try{s.selInfo[0].startMarker&&(e=e.replace(/<span[^>]+data-jodit_selection_marker="start"[^>]*>[<>]*?<\/span>/gim,s.tempMarkerStart)),s.selInfo[0].endMarker&&(e=e.replace(/<span[^>]+data-jodit_selection_marker="end"[^>]*>[<>]*?<\/span>/gim,s.tempMarkerEnd)),s.jodit.ownerWindow.html_beautify&&s.jodit.options.beautifyHTML&&(e=s.jodit.ownerWindow.html_beautify(e)),o=t=e.indexOf(s.tempMarkerStart),e=e.replace(s.tempMarkerStartReg,""),s.selInfo[0].collapsed&&-1!==t||(o=e.indexOf(s.tempMarkerEnd),-1===t&&(t=o)),e=e.replace(s.tempMarkerEndReg,"")}finally{e=e.replace(s.tempMarkerEndReg,"").replace(s.tempMarkerStartReg,"")}s.setMirrorValue(e),s.setMirrorSelectionRange(t,o),s.toWYSIWYG(),s.setFocusToMirror()}},s.__proxyOnFocus=function(e){s.jodit.events.fire("focus",e)},s.__proxyOnMouseDown=function(e){s.jodit.events.fire("mousedown",e)},s.setMirrorSelectionRange=function(e,t){s.mirror.setSelectionRange(e,t)},s.onReadonlyReact=function(){var e=s.jodit.options.readonly;e?s.mirror.setAttribute("readonly","true"):s.mirror.removeAttribute("readonly"),s.aceEditor&&s.aceEditor.setReadOnly(e)},s}t.source=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(3),f=o(2),l=o(13);i.Config.prototype.usePopupForSpecialCharacters=!1,i.Config.prototype.specialCharacters=["!","&quot;","#","$","%","&amp;","'","(",")","*","+","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","&lt;","=","&gt;","?","@","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","{","|","}","~","&euro;","&lsquo;","&rsquo;","&ldquo;","&rdquo;","&ndash;","&mdash;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&raquo;","&not;","&reg;","&macr;","&deg;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;","&OElig;","&oelig;","&#372;","&#374","&#373","&#375;","&sbquo;","&#8219;","&bdquo;","&hellip;","&trade;","&#9658;","&bull;","&rarr;","&rArr;","&hArr;","&diams;","&asymp;"],i.Config.prototype.controls.symbol={icon:"omega",hotkeys:["ctrl+shift+i","cmd+shift+i"],tooltip:"Insert Special Character",popup:function(e,t,o,i){var n=e.events.fire("generateSpecialCharactersTable.symbols");if(n){if(e.options.usePopupForSpecialCharacters){var r=e.ownerDocument.createElement("div");return r.classList.add("jodit_symbols"),r.appendChild(n),e.events.on(n,"close_dialog",i),r}var s=l.Alert(n,e.i18n("Select Special Character"),void 0,"jodit_symbols"),a=n.querySelector("a");a&&a.focus(),e.events.on("beforeDestruct",function(){s&&s.close()})}}},t.symbols=function(d){var u=this;this.countInRow=17,d.events.on("generateSpecialCharactersTable.symbols",function(){for(var e=d.create.fromHTML('<div class="jodit_symbols-container"><div class="jodit_symbols-container_table"><table><tbody></tbody></table></div><div class="jodit_symbols-container_preview"><div class="jodit_symbols-preview"></div></div></div>'),t=e.querySelector(".jodit_symbols-preview"),o=e.querySelector("table").tBodies[0],r=[],i=0;i<d.options.specialCharacters.length;){for(var n=d.create.element("tr"),s=0;s<u.countInRow&&i<d.options.specialCharacters.length;s+=1,i+=1){var a=d.create.element("td"),l=d.create.fromHTML('<a\n                                    data-index="'+i+'"\n                                    data-index-j="'+s+'"\n                                    href="javascript:void(0)"\n                                    role="option"\n                                    tabindex="-1"\n                                >'+d.options.specialCharacters[i]+"</a>");r.push(l),a.appendChild(l),n.appendChild(a)}o.appendChild(n)}var c=u;return d.events.on(r,"focus",function(){t.innerHTML=this.innerHTML}).on(r,"mousedown",function(e){this&&"A"===this.nodeName&&(d.selection.focus(),d.selection.insertHTML(this.innerHTML),d.events.fire(this,"close_dialog"),e&&e.preventDefault(),e&&e.stopImmediatePropagation())}).on(r,"mouseenter",function(){this&&"A"===this.nodeName&&this.focus()}).on(r,"keydown",function(e){var t=e.target;if(t&&"A"===t.nodeName){var o=parseInt(t.getAttribute("data-index")||"0",10),i=parseInt(t.getAttribute("data-index-j")||"0",10),n=void 0;switch(e.which){case f.KEY_UP:case f.KEY_DOWN:void 0===r[n=e.which===f.KEY_UP?o-c.countInRow:o+c.countInRow]&&r.length-1<(n=e.which===f.KEY_UP?Math.floor(r.length/c.countInRow)*c.countInRow+i:i)&&(n-=c.countInRow),r[n]&&r[n].focus();break;case f.KEY_RIGHT:case f.KEY_LEFT:void 0===r[n=e.which===f.KEY_LEFT?o-1:o+1]&&(n=e.which===f.KEY_LEFT?r.length-1:0),r[n]&&r[n].focus();break;case f.KEY_ENTER:d.events.fire(t,"mousedown"),e.stopImmediatePropagation(),e.preventDefault()}}}),e})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),r=o(7),s=o(19);n.Config.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 a,l=(i.__extends(c,a=r.Plugin),c.prototype.afterInit=function(o){var i=this;Object.keys(o.options.commandToHotkeys).forEach(function(e){var t=o.options.commandToHotkeys[e];t&&o.registerHotkeyToCommand(t,e)});var n=!1;o.events.on("keydown.hotkeys",function(e){var t=i.onKeyPress(e);if(!1===i.jodit.events.fire(t+".hotkey",e.type))return n=!0,o.events.stopPropagation("keydown"),!1},void 0,void 0,!0).on("keyup.hotkeys",function(){if(n)return n=!1,o.events.stopPropagation("keyup"),!1},void 0,void 0,!0)},c.prototype.beforeDestruct=function(e){e.events&&e.events.off(".hotkeys")},c);function c(){var n=null!==a&&a.apply(this,arguments)||this;return n.onKeyPress=function(t){var o=n.specialKeys[t.which],e=(t.key||String.fromCharCode(t.which)).toLowerCase(),i=[o||e];return["alt","ctrl","shift","meta"].forEach(function(e){t[e+"Key"]&&o!==e&&i.push(e)}),s.normalizeKeyAliases(i.join("+"))},n.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:"'"},n}t.hotkeys=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),c=o(2),r=o(7),b=o(0),f=o(28),y=o(4),s=o(5);n.Config.prototype.useTableProcessor=!0,n.Config.prototype.useExtraClassesOptions=!0,n.Config.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(v,e,i,m,t){var n=i.data&&i.data.rows?i.data.rows:10,g=i.data&&i.data.cols?i.data.cols:10,o=v.create.fromHTML('<form class="jodit_form jodit_form_inserter"><label><span>1</span> &times; <span>1</span></label><div class="jodit_form-table-creator-box"><div class="jodit_form-container"></div><div class="jodit_form-options">'+function(){if(!v.options.useExtraClassesOptions)return"";var t=[];if(i.data){var o=i.data.classList;Object.keys(o).forEach(function(e){t.push('<label><input value="'+e+'" type="checkbox"/>'+o[e]+"</label>")})}return t.join("")}()+"</div></div></form>"),a=o.querySelectorAll("span")[0],l=o.querySelectorAll("span")[1],r=o.querySelector(".jodit_form-container"),s=o.querySelector(".jodit_form-table-creator-box"),_=o.querySelector(".jodit_form-options"),c=[];return r.addEventListener("mousemove",function(e,t){var o=e.target;if(o&&"DIV"===o.tagName){for(var i=void 0===t||isNaN(t)?parseInt(o.getAttribute("data-index")||"0",10):t||0,n=Math.ceil((i+1)/g),r=i%g+1,s=0;s<c.length;s+=1)c[s].className=r<s%g+1||n<Math.ceil((s+1)/g)?"":"hovered";l.textContent=""+r,a.textContent=""+n}}),v.events.on(r,"touchstart mousedown",function(e){var t=e.target;if(e.preventDefault(),e.stopImmediatePropagation(),"DIV"===t.tagName){var o=parseInt(t.getAttribute("data-index")||"0",10),i=Math.ceil((o+1)/g),n=o%g+1,r=v.create.inside,s=r.element("tbody"),a=r.element("table");a.appendChild(s),a.style.width="100%";for(var l,c,d=null,u=1;u<=i;u+=1){l=r.element("tr");for(var f=1;f<=n;f+=1)c=r.element("td"),d=d||c,c.appendChild(r.element("br")),l.appendChild(r.text("\n")),l.appendChild(r.text("\t")),l.appendChild(c);s.appendChild(r.text("\n")),s.appendChild(l)}var p=v.selection.current();if(p&&v.selection.isCollapsed()){var h=b.Dom.closest(p,function(e){return b.Dom.isBlock(e,v.editorWindow)},v.editor);h&&h!==v.editor&&!h.nodeName.match(/^TD|TH|TBODY|TABLE|THEADER|TFOOTER$/)&&v.selection.setCursorAfter(h)}y.$$("input[type=checkbox]:checked",_).forEach(function(e){e.value.split(/[\s]+/).forEach(function(e){a.classList.add(e)})}),v.selection.insertNode(r.text("\n")),v.selection.insertNode(a,!1),d&&(v.selection.setCursorIn(d),y.scrollIntoView(d,v.editor,v.editorDocument)),m()}}),t&&t.parentToolbar&&v.events.off(t.parentToolbar.container,"afterOpenPopup.tableGenerator").on(t.parentToolbar.container,"afterOpenPopup.tableGenerator",function(){!function(){var e=n*g;if(e<c.length){for(var t=e;t<c.length;t+=1)b.Dom.safeRemove(c[t]),delete c[t];c.length=e}for(t=0;t<e;t+=1)if(!c[t]){var o=v.create.div();o.setAttribute("data-index",""+t),c.push(o)}c.forEach(function(e){r.appendChild(e)});var i=(c[0].offsetWidth||18)*g;r.style.width=i+"px",s.style.width=i+_.offsetWidth+1+"px"}(),c[0]&&(c[0].className="hovered")},"",!0),o},tooltip:"Insert table"};var a,l=(i.__extends(p,a=r.Plugin),p.isCell=function(e){return!!e&&/^TD|TH$/i.test(e.nodeName)},p.prototype.showResizer=function(){clearTimeout(this.hideTimeout),this.__resizerHandler.style.display="block"},p.prototype.hideResizer=function(){var e=this;clearTimeout(this.hideTimeout),this.hideTimeout=s.setTimeout(function(){e.__resizerHandler.style.display="none"},this.jodit.defaultTimeout)},p.prototype.__deSelectAll=function(e,t){var o=f.Table.getAllSelectedCells(e||this.jodit.editor);o.length&&o.forEach(function(e){t&&t===e||f.Table.restoreSelection(e)})},p.prototype.__setWorkCell=function(e,t){void 0===t&&(t=null),this.__wholeTable=t,this.__workCell=e,this.__workTable=b.Dom.up(e,function(e){return e&&"TABLE"===e.nodeName},this.jodit.editor)},p.prototype.__calcResizerPosition=function(e,t,o,i){void 0===o&&(o=0),void 0===i&&(i=0);var n=y.offset(t,this.jodit,this.jodit.editorDocument);if(c.NEARBY<o&&c.NEARBY<n.width-o)this.hideResizer();else{var r=y.offset(this.__resizerHandler.parentNode||this.jodit.ownerDocument.documentElement,this.jodit,this.jodit.ownerDocument,!0),s=y.offset(e,this.jodit,this.jodit.editorDocument);if(this.__resizerHandler.style.left=(c.NEARBY<o?n.left+n.width:n.left)-r.left+i+"px",this.__resizerHandler.style.height=s.height+"px",this.__resizerHandler.style.top=s.top-r.top+"px",this.showResizer(),c.NEARBY<o){var a=b.Dom.next(t,p.isCell,t.parentNode);this.__setWorkCell(t,!!a&&null)}else{var l=b.Dom.prev(t,p.isCell,t.parentNode);l?this.__setWorkCell(l):this.__setWorkCell(t,!0)}}},p.prototype.observe=function(c){var d,u=this;c[this.__key]=!0,this.jodit.events.on(c,"mousedown.table touchstart.table",function(e){if(!u.jodit.options.readonly){var t=b.Dom.up(e.target,p.isCell,c);t&&t instanceof u.jodit.editorWindow.HTMLElement&&(t.firstChild||t.appendChild(u.jodit.editorDocument.createElement("br")),f.Table.addSelected(d=t),u.__selectMode=!0)}}).on(c,"mouseleave.table",function(e){u.__resizerHandler&&u.__resizerHandler!==e.relatedTarget&&u.hideResizer()}).on(c,"mousemove.table touchmove.table",function(e){if(!u.jodit.options.readonly&&!u.__drag&&!u.jodit.isLockedNotBy(u.__key)){var t=b.Dom.up(e.target,p.isCell,c);if(t)if(u.__selectMode){if(t!==d){u.jodit.lock(u.__key);var o=u.jodit.selection.sel;o&&o.removeAllRanges(),e.preventDefault&&e.preventDefault()}u.__deSelectAll(c);for(var i=f.Table.getSelectedBound(c,[t,d]),n=f.Table.formalMatrix(c),r=i[0][0];r<=i[1][0];r+=1)for(var s=i[0][1];s<=i[1][1];s+=1)f.Table.addSelected(n[r][s]);var a=n[i[1][0]][i[1][1]],l=n[i[0][0]][i[0][1]];u.jodit.events.fire("showPopup",c,function(){var e=y.offset(l,u.jodit,u.jodit.editorDocument),t=y.offset(a,u.jodit,u.jodit.editorDocument);return{left:e.left,top:e.top,width:t.left-e.left+t.width,height:t.top-e.top+t.height}}),e.stopPropagation()}else u.__calcResizerPosition(c,t,e.offsetX)}}),this.__addResizer()},p.prototype.afterInit=function(r){var s=this;r.options.useTableProcessor&&r.events.on(this.jodit.ownerWindow,"mouseup.table touchend.table",function(){if((s.__selectMode||s.__drag)&&(s.__selectMode=!1,s.jodit.unlock()),s.__resizerHandler&&s.__drag){if(s.__drag=!1,s.__resizerHandler.classList.remove("jodit_table_resizer-moved"),null===s.__wholeTable){var e=[];f.Table.setColumnWidthByDelta(s.__workTable,f.Table.formalCoordinate(s.__workTable,s.__workCell,!0)[1],s.__resizerDelta,!0,e);var t=b.Dom.next(s.__workCell,p.isCell,s.__workCell.parentNode);f.Table.setColumnWidthByDelta(s.__workTable,f.Table.formalCoordinate(s.__workTable,t)[1],-s.__resizerDelta,!1,e)}else{var o=s.__workTable.offsetWidth,i=y.getContentWidth(s.__workTable.parentNode,s.jodit.editorWindow);if(s.__wholeTable){var n=parseInt(s.jodit.editorWindow.getComputedStyle(s.__workTable).marginLeft||"0",10);s.__workTable.style.width=(o-s.__resizerDelta)/i*100+"%",s.__workTable.style.marginLeft=(n+s.__resizerDelta)/i*100+"%"}else s.__workTable.style.width=(o+s.__resizerDelta)/i*100+"%"}r.setEditorValue(),r.selection.focus()}}).on(this.jodit.ownerWindow,"scroll.table",function(){if(s.__drag){var e=b.Dom.up(s.__workCell,function(e){return e&&"TABLE"===e.nodeName},r.editor);if(e){var t=e.getBoundingClientRect();s.__resizerHandler.style.top=t.top+"px"}}}).on(this.jodit.ownerWindow,"mousedown.table touchend.table",function(e){var t=b.Dom.closest(e.originalEvent.target,"TD|TH",s.jodit.editor),o=null;t instanceof s.jodit.editorWindow.HTMLTableCellElement&&(o=b.Dom.closest(t,"table",s.jodit.editor)),o?s.__deSelectAll(o,t instanceof s.jodit.editorWindow.HTMLTableCellElement&&t):s.__deSelectAll()}).on("afterGetValueFromEditor.table",function(e){var t=RegExp("([s]*)"+c.JODIT_SELECTED_CELL_MARKER+'="1"',"g");t.test(e.value)&&(e.value=e.value.replace(t,""))}).on("change.table afterCommand.table afterSetMode.table",function(){y.$$("table",r.editor).forEach(function(e){e[s.__key]||s.observe(e)})}).on("beforeSetMode.table",function(){f.Table.getAllSelectedCells(r.editor).forEach(function(e){f.Table.restoreSelection(e),f.Table.normalizeTable(b.Dom.closest(e,"table",r.editor))})}).on("keydown.table",function(e){e.which===c.KEY_TAB&&y.$$("table",r.editor).forEach(function(e){s.__deSelectAll(e)})}).on("beforeCommand.table",this.onExecCommand.bind(this))},p.prototype.beforeDestruct=function(e){e.events&&(e.events.off(this.jodit.ownerWindow,".table"),e.events.off(".table"))},p);function p(){var s=null!==a&&a.apply(this,arguments)||this;return s.__key="table_processor_observer",s.__selectMode=!1,s.__resizerDelta=0,s.__drag=!1,s.__addResizer=function(){if(!s.__resizerHandler&&(s.__resizerHandler=s.jodit.container.querySelector(".jodit_table_resizer"),!s.__resizerHandler)){s.__resizerHandler=s.jodit.create.div("jodit_table_resizer");var r=0;s.jodit.events.on(s.__resizerHandler,"mousedown.table touchstart.table",function(e){s.__drag=!0,r=e.clientX,s.jodit.lock(s.__key),s.__resizerHandler.classList.add("jodit_table_resizer-moved");var i,t=s.__workTable.getBoundingClientRect();if(s.__minX=0,s.__maxX=1e6,null!==s.__wholeTable)t=s.__workTable.parentNode.getBoundingClientRect(),s.__minX=t.left,s.__maxX=t.left+t.width;else{var n=f.Table.formalCoordinate(s.__workTable,s.__workCell,!0);f.Table.formalMatrix(s.__workTable,function(e,t,o){n[1]===o&&(i=e.getBoundingClientRect(),s.__minX=Math.max(i.left+c.NEARBY/2,s.__minX)),n[1]+1===o&&(i=e.getBoundingClientRect(),s.__maxX=Math.min(i.left+i.width-c.NEARBY/2,s.__maxX))})}return!1}).on(s.__resizerHandler,"mouseenter.table",function(){clearTimeout(s.hideTimeout)}).on(s.jodit.editorWindow,"mousemove.table touchmove.table",function(e){if(s.__drag){var t=e.clientX,o=y.offset(s.__resizerHandler.parentNode||s.jodit.ownerDocument.documentElement,s.jodit,s.jodit.ownerDocument,!0);t<s.__minX&&(t=s.__minX),s.__maxX<t&&(t=s.__maxX),s.__resizerDelta=t-r+(s.jodit.options.iframe?o.left:0),s.__resizerHandler.style.left=t-(s.jodit.options.iframe?0:o.left)+"px";var i=s.jodit.selection.sel;i&&i.removeAllRanges(),e.preventDefault&&e.preventDefault()}}),s.jodit.workplace.appendChild(s.__resizerHandler)}},s.onExecCommand=function(e){if(/table(splitv|splitg|merge|empty|bin|binrow|bincolumn|addcolumn|addrow)/.test(e)){e=e.replace("table","");var t=f.Table.getAllSelectedCells(s.jodit.editor);if(t.length){var o=t.shift();if(!o)return;var i=b.Dom.closest(o,"table",s.jodit.editor);switch(e){case"splitv":f.Table.splitVertical(i);break;case"splitg":f.Table.splitHorizontal(i);break;case"merge":f.Table.mergeSelected(i);break;case"empty":f.Table.getAllSelectedCells(s.jodit.editor).forEach(function(e){return e.innerHTML=""});break;case"bin":b.Dom.safeRemove(i);break;case"binrow":f.Table.removeRow(i,o.parentNode.rowIndex);break;case"bincolumn":f.Table.removeColumn(i,o.cellIndex);break;case"addcolumnafter":case"addcolumnbefore":f.Table.appendColumn(i,o.cellIndex,"addcolumnafter"===e);break;case"addrowafter":case"addrowbefore":f.Table.appendRow(i,o.parentNode,"addrowafter"===e)}}return!1}},s}t.TableProcessor=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=o(2),p=o(0),h=o(28);t.tableKeyboardNavigation=function(u){u.events.on("keydown",function(t){var e,i;if((t.which===f.KEY_TAB||t.which===f.KEY_LEFT||t.which===f.KEY_RIGHT||t.which===f.KEY_UP||t.which===f.KEY_DOWN)&&(e=u.selection.current(),i=p.Dom.up(e,function(e){return e&&e.nodeName&&/^td|th$/i.test(e.nodeName)},u.editor))){var o=u.selection.range;if(t.which===f.KEY_TAB||e===i||(t.which!==f.KEY_LEFT&&t.which!==f.KEY_UP||!(p.Dom.prev(e,function(e){return t.which===f.KEY_UP?e&&"BR"===e.nodeName:!!e},i)||t.which!==f.KEY_UP&&e.nodeType===Node.TEXT_NODE&&0!==o.startOffset))&&(t.which!==f.KEY_RIGHT&&t.which!==f.KEY_DOWN||!(p.Dom.next(e,function(e){return t.which===f.KEY_DOWN?e&&"BR"===e.nodeName:!!e},i)||t.which!==f.KEY_DOWN&&e.nodeType===Node.TEXT_NODE&&e.nodeValue&&o.startOffset!==e.nodeValue.length))){var n=p.Dom.up(i,function(e){return e&&/^table$/i.test(e.nodeName)},u.editor),r=null;switch(t.which){case f.KEY_TAB:case f.KEY_LEFT:var s=t.which===f.KEY_LEFT||t.shiftKey?"prev":"next";(r=p.Dom[s](i,function(e){return e&&/^td|th$/i.test(e.tagName)},n))||(h.Table.appendRow(n,"next"!=s&&n.querySelector("tr"),"next"==s),r=p.Dom[s](i,function(e){return e&&p.Dom.isCell(e,u.editorWindow)},n));break;case f.KEY_UP:case f.KEY_DOWN:var a=0,l=0,c=h.Table.formalMatrix(n,function(e,t,o){e===i&&(a=t,l=o)});t.which===f.KEY_UP?void 0!==c[a-1]&&(r=c[a-1][l]):void 0!==c[a+1]&&(r=c[a+1][l])}if(r){if(r.firstChild)t.which===f.KEY_TAB?u.selection.select(r,!0):u.selection.setCursorIn(r,t.which===f.KEY_RIGHT||t.which===f.KEY_DOWN);else{var d=u.editorDocument.createElement("br");r.appendChild(d),u.selection.setCursorBefore(d)}return!1}}}})}},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),u=o(2),r=o(2),p=o(0),s=o(6),a=o(7),l=o(5),h=o(9);n.Config.prototype.useSearch=!0;var c,d=(i.__extends(v,c=a.Plugin),v.getSomePartOfStringIndex=function(e,t,o){return void 0===o&&(o=!0),this.findSomePartOfString(e,t,o,!0)},v.findSomePartOfString=function(e,t,o,i){void 0===o&&(o=!0),void 0===i&&(i=!1),e=h.trim(e.toLowerCase().replace(u.SPACE_REG_EXP," ")),t=t.toLowerCase();for(var n=o?0:t.length-1,r=o?0:e.length-1,s=0,a=null,l=o?1:-1,c=[];void 0!==t[n];n+=l){var d=e[r]===t[n];if(d||null!==a&&u.SPACE_REG_EXP.test(t[n])?(null!==a&&o||(a=n),c.push(t[n]),d&&(s+=1,r+=l)):(a=null,s=c.length=0,r=o?0:e.length-1),s===e.length)return!i||a}return i?null!=a&&a:!!c.length&&(o?c.join(""):c.reverse().join(""))},v.prototype.boundAlreadyWas=function(t,e){return e.some(function(e){return e.startContainer===t.startContainer&&e.endContainer===t.endContainer&&e.startOffset===t.startOffset&&e.endOffset===t.endOffset},!1)},v.prototype.tryScrollToElement=function(e){var t=p.Dom.closest(e,function(e){return e&&e.nodeType===Node.ELEMENT_NODE},this.jodit.editor);(t=t||p.Dom.prev(e,function(e){return e&&e.nodeType===Node.ELEMENT_NODE},this.jodit.editor))&&t!==this.jodit.editor&&t.scrollIntoView()},v.prototype.afterInit=function(i){var t=this;if(i.options.useSearch){var n=this;n.searchBox=i.create.fromHTML(n.template);var e=n.searchBox.querySelector.bind(n.searchBox);n.queryInput=e("input.jodit_search-query"),n.replaceInput=e("input.jodit_search-replace"),n.closeButton=e(".jodit_search_buttons-cancel"),n.nextButton=e(".jodit_search_buttons-next"),n.prevButton=e(".jodit_search_buttons-prev"),n.replaceButton=e(".jodit_search_buttons-replace"),n.counterBox=e(".jodit_search_counts span"),i.workplace.appendChild(this.searchBox),i.events.on(n.closeButton,"click",this.close).on(n.queryInput,"mousedown",function(){i.selection.isFocused()&&(i.selection.removeMarkers(),n.selInfo=i.selection.save())}).on(n.replaceButton,"click",function(e){n.findAndReplace(i.selection.current()||i.editor.firstChild,n.queryInput.value),t.updateCounters(),e.preventDefault(),e.stopImmediatePropagation()}).on([n.nextButton,n.prevButton],"click",function(e){i.events.fire(n.nextButton===this?"searchNext":"searchPrevious"),e.preventDefault(),e.stopImmediatePropagation()}).on(this.queryInput,"keydown",l.debounce(function(e){switch(e.which){case u.KEY_ENTER:e.preventDefault(),e.stopImmediatePropagation(),i.events.fire("searchNext")&&t.close();break;default:t.updateCounters()}},this.jodit.defaultTimeout)).on(this.jodit.container,"keydown.search",function(e){if(i.getRealMode()===r.MODE_WYSIWYG)switch(e.which){case u.KEY_ESC:t.close();break;case u.KEY_F3:n.queryInput.value&&(i.events.fire(e.shiftKey?"searchPrevious":"searchNext"),e.preventDefault())}}).on("beforeSetMode.search",function(){t.close()}).on("keydown.search mousedown.search",function(){t.selInfo&&(i.selection.removeMarkers(),t.selInfo=null),t.isOpened&&(t.current=t.jodit.selection.current(),t.updateCounters())}).on("searchNext.search searchPrevious.search",function(){return n.findAndSelect(i.selection.current()||i.editor.firstChild,n.queryInput.value,"searchNext"===i.events.current[i.events.current.length-1])}).on("search.search",function(e,t){void 0===t&&(t=!0),i.execCommand("search",e,t)}),i.registerCommand("search",{exec:function(e,t,o){return void 0===o&&(o=!0),n.findAndSelect(i.selection.current()||i.editor.firstChild,t||"",o),!1}}),i.registerCommand("openSearchDialog",{exec:function(){return n.open(),!1},hotkeys:["ctrl+f","cmd+f"]}),i.registerCommand("openReplaceDialog",{exec:function(){return i.options.readonly||n.open(!0),!1},hotkeys:["ctrl+h","cmd+h"]})}},v.prototype.beforeDestruct=function(e){p.Dom.safeRemove(this.searchBox),e.events&&e.events.off(".search"),e.events&&e.events.off(e.container,".search")},v);function v(){var f=null!==c&&c.apply(this,arguments)||this;return f.template='<div class="jodit_search"><div class="jodit_search_box"><div class="jodit_search_inputs"><input tabindex="0" class="jodit_search-query" placeholder="'+f.jodit.i18n("Search for")+'" type="text"/><input tabindex="0" class="jodit_search-replace" placeholder="'+f.jodit.i18n("Replace with")+'" type="text"/></div><div class="jodit_search_counts"><span>0/0</span></div><div class="jodit_search_buttons"><button tabindex="0" type="button" class="jodit_search_buttons-next">'+s.ToolbarIcon.getIcon("angle-down")+'</button><button tabindex="0" type="button" class="jodit_search_buttons-prev">'+s.ToolbarIcon.getIcon("angle-up")+'</button><button tabindex="0" type="button" class="jodit_search_buttons-cancel">'+s.ToolbarIcon.getIcon("cancel")+'</button><button tabindex="0" type="button" class="jodit_search_buttons-replace">'+f.jodit.i18n("Replace")+"</button></div></div></div>",f.isOpened=!1,f.selInfo=null,f.current=!1,f.eachMap=function(e,t,o){p.Dom.findWithCurrent(e,function(e){return!!e&&t(e)},f.jodit.editor,o?"nextSibling":"previousSibling",o?"firstChild":"lastChild")},f.updateCounters=function(){if(f.isOpened){f.counterBox.style.display=f.queryInput.value.length?"inline-block":"none";var e=f.calcCounts(f.queryInput.value,f.jodit.selection.range);f.counterBox.textContent=e.join("/")}},f.calcCounts=function(e,t){void 0===t&&(t=!1);for(var o=[],i=0,n=0,r=!1,s=f.jodit.editor.firstChild;s&&e.length;)if(r=f.find(s,e,!0,0,r||f.jodit.editorDocument.createRange())){if(f.boundAlreadyWas(r,o))break;o.push(r),s=r.startContainer,n+=1,t&&f.boundAlreadyWas(t,[r])&&(i=n)}else s=null;return[i,n]},f.findAndReplace=function(e,t){var o=f.find(e,t,!0,0,f.jodit.selection.range);if(o&&o.startContainer&&o.endContainer){var i=f.jodit.editorDocument.createRange();try{if(o&&o.startContainer&&o.endContainer){i.setStart(o.startContainer,o.startOffset),i.setEnd(o.endContainer,o.endOffset),i.deleteContents();var n=f.jodit.editorDocument.createTextNode(f.replaceInput.value);i.insertNode(n),f.jodit.selection.select(n),f.tryScrollToElement(n)}}catch(e){}return!0}return!1},f.findAndSelect=function(e,t,o){var i=f.find(e,t,o,0,f.jodit.selection.range);if(i&&i.startContainer&&i.endContainer){var n=f.jodit.editorDocument.createRange();try{n.setStart(i.startContainer,i.startOffset),n.setEnd(i.endContainer,i.endOffset),f.jodit.selection.selectRange(n)}catch(e){}return f.tryScrollToElement(i.startContainer),f.current=i.startContainer,f.updateCounters(),!0}return!1},f.find=function(e,s,a,l,c){if(e&&s.length){var d="",u={startContainer:null,startOffset:null,endContainer:null,endOffset:null};if(f.eachMap(e,function(e){if(e.nodeType===Node.TEXT_NODE&&null!==e.nodeValue&&e.nodeValue.length){var t=e.nodeValue;a||e!==c.startContainer?a&&e===c.endContainer&&(t=l?t.substr(0,c.startOffset):t.substr(c.endOffset)):t=l?t.substr(c.endOffset):t.substr(0,c.startOffset);var o=a?d+t:t+d,i=v.findSomePartOfString(s,o,a);if(!1!==i){var n=v.findSomePartOfString(s,t,a);!0===n?n=h.trim(s):!1===n&&!0===(n=v.findSomePartOfString(t,s,a))&&(n=h.trim(t));var r=v.getSomePartOfStringIndex(s,t,a)||0;if((a&&!l||!a&&l)&&0<e.nodeValue.length-t.length&&(r+=e.nodeValue.length-t.length),null===u.startContainer&&(u.startContainer=e,u.startOffset=r),!0===i)return u.endContainer=e,u.endOffset=r,u.endOffset+=n.length,!0;d=o}else d="",u={startContainer:null,startOffset:null,endContainer:null,endOffset:null}}else p.Dom.isBlock(e,f.jodit.editorWindow)&&""!==d&&(d=a?d+" ":" "+d);return!1},a),u.startContainer&&u.endContainer)return u;if(!l)return f.current=a?f.jodit.editor.firstChild:f.jodit.editor.lastChild,f.find(f.current,s,a,l+1,c)}return!1},f.open=function(e){void 0===e&&(e=!1),f.isOpened||(f.searchBox.classList.add("jodit_search-active"),f.isOpened=!0),f.jodit.events.fire("hidePopup"),f.searchBox.classList.toggle("jodit_search-and-replace",e),f.current=f.jodit.selection.current(),f.selInfo=f.jodit.selection.save();var t=""+(f.jodit.selection.sel||"");t&&(f.queryInput.value=t),f.updateCounters(),t?f.queryInput.select():f.queryInput.focus()},f.close=function(){f.isOpened&&(f.selInfo&&(f.jodit.selection.restore(f.selInfo),f.selInfo=null),f.searchBox.classList.remove("jodit_search-active"),f.isOpened=!1)},f}t.search=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),r=o(2),s=o(7),a=o(10),l=o(23),c=o(0);n.Config.prototype.toolbarSticky=!0,n.Config.prototype.toolbarDisableStickyForMobile=!0,n.Config.prototype.toolbarStickyOffset=0;var d,u=(i.__extends(f,d=s.Plugin),f.prototype.isMobile=function(){return this.jodit&&this.jodit.options&&this.jodit.container&&this.jodit.container.offsetWidth<=this.jodit.options.sizeSM},f.prototype.afterInit=function(i){var n=this;i.events.on(i.ownerWindow,"scroll wheel mousewheel resize",function(){var e=i.ownerWindow.pageYOffset||i.ownerDocument.documentElement&&i.ownerDocument.documentElement.scrollTop||0,t=l.offset(i.container,i,i.ownerDocument,!0),o=i.getMode()===r.MODE_WYSIWYG&&t.top<e+i.options.toolbarStickyOffset&&e+i.options.toolbarStickyOffset<t.top+t.height&&!(i.options.toolbarDisableStickyForMobile&&n.isMobile());i.options.toolbarSticky&&i.options.toolbar&&(o?n.addSticky(i.toolbar.container):n.removeSticky(i.toolbar.container)),i.events.fire("toggleSticky",o)})},f.prototype.beforeDestruct=function(e){c.Dom.safeRemove(this.dummyBox)},f);function f(){var t=null!==d&&d.apply(this,arguments)||this;return t.isToolbarSticked=!1,t.createDummy=function(e){t.dummyBox||(t.dummyBox=t.jodit.create.div(),t.dummyBox.classList.add("jodit_sticky-dummy_toolbar"),t.jodit.container.insertBefore(t.dummyBox,e))},t.addSticky=function(e){t.isToolbarSticked||(t.createDummy(e),t.jodit.container.classList.add("jodit_sticky"),t.isToolbarSticked=!0),a.css(e,{top:t.jodit.options.toolbarStickyOffset,width:t.jodit.container.offsetWidth}),a.css(t.dummyBox,{height:e.offsetHeight})},t.removeSticky=function(e){t.isToolbarSticked&&(a.css(e,{width:"",top:""}),t.jodit.container.classList.remove("jodit_sticky"),t.isToolbarSticked=!1)},t}t.sticky=u},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),r=o(2),s=o(5),a=o(7),l=o(0);n.Config.prototype.showCharsCounter=!0,n.Config.prototype.showWordsCounter=!0;var c,d=(i.__extends(u,c=a.Plugin),u.prototype.afterInit=function(){this.jodit.options.showCharsCounter&&(this.charCounter=this.jodit.create.span(),this.jodit.statusbar.append(this.charCounter,!0)),this.jodit.options.showWordsCounter&&(this.wordCounter=this.jodit.create.span(),this.jodit.statusbar.append(this.wordCounter,!0)),this.jodit.events.on("change",this.calc),this.calc()},u.prototype.beforeDestruct=function(){l.Dom.safeRemove(this.charCounter),l.Dom.safeRemove(this.wordCounter),this.charCounter=null,this.wordCounter=null},u);function u(){var t=null!==c&&c.apply(this,arguments)||this;return t.calc=s.throttle(function(){var e=t.jodit.getEditorText();t.jodit.options.showCharsCounter&&t.charCounter&&(t.charCounter.textContent=t.jodit.i18n("Chars: %d",e.replace(r.SPACE_REG_EXP,"").length)),t.jodit.options.showWordsCounter&&t.wordCounter&&(t.wordCounter.textContent=t.jodit.i18n("Words: %d",e.replace(r.INVISIBLE_SPACE_REG_EXP,"").split(r.SPACE_REG_EXP).filter(function(e){return e.length}).length))},t.jodit.defaultTimeout),t}t.stat=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),r=o(2),a=o(39),l=o(0),c=o(5),d=o(11),s=o(7),u=o(26),f=o(9);n.Config.prototype.controls.selectall={icon:"select-all",command:"selectall",tooltip:"Select all"},n.Config.prototype.showXPathInStatusbar=!0;var p,h=(i.__extends(v,p=s.Plugin),v.prototype.afterInit=function(){var e=this;this.jodit.options.showXPathInStatusbar&&(this.container=this.jodit.create.element("ul"),this.container.classList.add("jodit_xpath"),this.jodit.statusbar.append(this.container),this.jodit.events.on("mouseup.xpath change.xpath keydown.xpath changeSelection.xpath",this.calcPath).on("afterSetMode.xpath afterInit.xpath",function(){e.jodit.getRealMode()===r.MODE_WYSIWYG?e.calcPath():(e.container&&(e.container.innerHTML=r.INVISIBLE_SPACE),e.appendSelectAll())}),this.calcPath())},v.prototype.beforeDestruct=function(){this.jodit&&this.jodit.events&&this.jodit.events.off(".xpath"),this.removeSelectAll(),this.menu&&this.menu.destruct(),l.Dom.safeRemove(this.container),this.menu=null,this.container=null},v);function v(){var s=null!==p&&p.apply(this,arguments)||this;return s.onContext=function(e,t){return s.menu||(s.menu=new a.ContextMenu(s.jodit)),s.menu.show(t.clientX,t.clientY,[{icon:"bin",title:e===s.jodit.editor?"Clear":"Remove",exec:function(){e!==s.jodit.editor?l.Dom.safeRemove(e):s.jodit.value="",s.jodit.setEditorValue()}},{icon:"select-all",title:"Select",exec:function(){s.jodit.selection.select(e)}}]),!1},s.onSelectPath=function(e,t){s.jodit.selection.focus();var o=t.target.getAttribute("data-path")||"/";if("/"===o)return s.jodit.execCommand("selectall"),!1;try{var i=s.jodit.editorDocument.evaluate(o,s.jodit.editor,null,XPathResult.ANY_TYPE,null).iterateNext();if(i)return s.jodit.selection.select(i),!1}catch(e){}return s.jodit.selection.select(e),!1},s.tpl=function(e,t,o,i){var n=s.jodit.create.fromHTML('<li><a role="button" data-path="'+t+'" href="javascript:void(0)" title="'+i+'" tabindex="-1">'+f.trim(o)+"</a></li>"),r=n.firstChild;return s.jodit.events.on(r,"click",s.onSelectPath.bind(s,e)).on(r,"contextmenu",s.onContext.bind(s,e)),n},s.removeSelectAll=function(){s.selectAllButton&&(s.selectAllButton.destruct(),delete s.selectAllButton)},s.appendSelectAll=function(){s.removeSelectAll(),s.selectAllButton=new u.ToolbarButton(s.jodit,i.__assign({name:"selectall"},s.jodit.options.controls.selectall)),s.container&&s.container.insertBefore(s.selectAllButton.container,s.container.firstChild)},s.calcPathImd=function(){if(!s.isDestructed){var t,o,i,e=s.jodit.selection.current();s.container&&(s.container.innerHTML=r.INVISIBLE_SPACE),e&&l.Dom.up(e,function(e){e&&s.jodit.editor!==e&&e.nodeType!==Node.TEXT_NODE&&(t=e.nodeName.toLowerCase(),o=d.getXPathByElement(e,s.jodit.editor).replace(/^\//,""),i=s.tpl(e,o,t,s.jodit.i18n("Select %s",t)),s.container&&s.container.insertBefore(i,s.container.firstChild))},s.jodit.editor),s.appendSelectAll()}},s.calcPath=c.debounce(s.calcPathImd,2*s.jodit.defaultTimeout),s.container=null,s.menu=null,s}t.xpath=h},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(1),n=o(3),r=o(4),s=o(7),a=o(0);n.Config.prototype.draggableTags=["img","a","jodit-media","jodit"];var l,c=(i.__extends(d,l=s.Plugin),d.prototype.afterInit=function(){this.dragList=this.jodit.options.draggableTags?r.splitArray(this.jodit.options.draggableTags).filter(function(e){return e}).map(function(e){return e.toLowerCase()}):[],this.dragList.length&&this.jodit.events.on(this.jodit.editor,"mousemove touchmove",this.onDrag).on(this.jodit.editor,"mousedown touchstart dragstart",this.onDragStart).on("mouseup touchend",this.onDrop).on(window,"mouseup touchend",this.onDragEnd)},d.prototype.beforeDestruct=function(){this.onDragEnd()},d);function d(){var i=null!==l&&l.apply(this,arguments)||this;return i.dragList=[],i.isCopyMode=!1,i.draggable=null,i.wasMoved=!1,i.timeout=0,i.onDrag=r.throttle(function(e){i.draggable&&(i.wasMoved=!0,i.jodit.events.fire("hidePopup hideResizer"),i.draggable.parentNode||i.jodit.ownerDocument.body.appendChild(i.draggable),r.css(i.draggable,{left:e.clientX+20,top:e.clientY+20}),i.jodit.selection.insertCursorAtPoint(e.clientX,e.clientY))},i.jodit.defaultTimeout),i.onDragStart=function(t){var e=t.target,o=null;if(i.dragList.length){for(;~i.dragList.indexOf(e.nodeName.toLowerCase())&&(o&&(e.firstChild!==o||e.lastChild!==o)||(o=e)),(e=e.parentNode)&&e!==i.jodit.editor;);o&&(i.isCopyMode=r.ctrlKey(t),i.onDragEnd(),i.timeout=r.setTimeout(function(e){e&&(i.draggable=e.cloneNode(!0),r.dataBind(i.draggable,"target",e),r.css(i.draggable,{"z-index":1e14,"pointer-events":"none",position:"fixed",display:"inlin-block",left:t.clientX,top:t.clientY,width:e.offsetWidth,height:e.offsetHeight}))},i.jodit.defaultTimeout,o),t.preventDefault())}},i.onDragEnd=function(){window.clearTimeout(i.timeout),i.draggable&&(a.Dom.safeRemove(i.draggable),i.draggable=null,i.wasMoved=!1)},i.onDrop=function(){if(i.draggable&&i.wasMoved){var e=r.dataBind(i.draggable,"target");i.onDragEnd(),i.isCopyMode&&(e=e.cloneNode(!0)),i.jodit.selection.insertNode(e,!0,!1),"IMG"===e.nodeName&&i.jodit.events&&i.jodit.events.fire("afterInsertImage",e),i.jodit.events.fire("synchro")}else i.onDragEnd()},i}t.DragAndDropElement=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,n=o(1),r=o(2),s=o(0),l=o(4),a=o(7),c=(n.__extends(d,i=a.Plugin),d.prototype.afterInit=function(){this.jodit.events.on(window,"dragover",this.onDrag).on([window,this.jodit.editorDocument,this.jodit.editor],"dragstart",this.onDragStart).on("drop",this.onDrop).on(window,"dragend drop mouseup",this.onDragEnd)},d.prototype.beforeDestruct=function(){this.onDragEnd()},d);function d(){var a=null!==i&&i.apply(this,arguments)||this;return a.isFragmentFromEditor=!1,a.isCopyMode=!1,a.startDragPoint={x:0,y:0},a.draggable=null,a.bufferRange=null,a.onDragEnd=function(){a.draggable&&(s.Dom.safeRemove(a.draggable),a.draggable=null),a.isCopyMode=!1},a.onDrag=function(e){a.draggable&&(a.draggable.parentNode||a.jodit.ownerDocument.body.appendChild(a.draggable),a.jodit.events.fire("hidePopup"),l.css(a.draggable,{left:e.clientX+20,top:e.clientY+20}),a.jodit.selection.insertCursorAtPoint(e.clientX,e.clientY),e.preventDefault(),e.stopPropagation())},a.onDrop=function(e){if(!e.dataTransfer||!e.dataTransfer.files||!e.dataTransfer.files.length){if(!a.isFragmentFromEditor&&!a.draggable)return a.jodit.events.fire("paste",e),e.preventDefault(),e.stopPropagation(),!1;var t=a.jodit.selection.sel,o=a.bufferRange||(t&&t.rangeCount?t.getRangeAt(0):null),i=null;if(!a.draggable&&o)i=a.isCopyMode?o.cloneContents():o.extractContents();else if(a.draggable)if(a.isCopyMode){var n="1"===a.draggable.getAttribute("data-is-file")?["a","href"]:["img","src"],r=n[0],s=n[1];(i=a.jodit.editorDocument.createElement(r)).setAttribute(s,a.draggable.getAttribute("data-src")||a.draggable.getAttribute("src")||""),"a"===r&&(i.textContent=i.getAttribute(s)||"")}else i=l.dataBind(a.draggable,"target");else a.getText(e)&&(i=a.jodit.create.inside.fromHTML(a.getText(e)));t&&t.removeAllRanges(),a.jodit.selection.insertCursorAtPoint(e.clientX,e.clientY),i&&(a.jodit.selection.insertNode(i,!1,!1),o&&i.firstChild&&i.lastChild&&(o.setStartBefore(i.firstChild),o.setEndAfter(i.lastChild),a.jodit.selection.selectRange(o),a.jodit.events.fire("synchro")),"IMG"===i.nodeName&&a.jodit.events&&a.jodit.events.fire("afterInsertImage",i)),e.preventDefault(),e.stopPropagation()}a.isFragmentFromEditor=!1},a.onDragStart=function(e){var t=e.target;if(a.onDragEnd(),a.isFragmentFromEditor=s.Dom.isOrContains(a.jodit.editor,t,!0),a.isCopyMode=!a.isFragmentFromEditor||l.ctrlKey(e),a.isFragmentFromEditor){var o=a.jodit.selection.sel,i=o&&o.rangeCount?o.getRangeAt(0):null;i&&(a.bufferRange=i.cloneRange())}else a.bufferRange=null;a.startDragPoint.x=e.clientX,a.startDragPoint.y=e.clientY,t.nodeType===Node.ELEMENT_NODE&&t.matches(".jodit_filebrowser_files_item")&&(t=t.querySelector("img")),"IMG"===t.nodeName&&(a.draggable=t.cloneNode(!0),l.dataBind(a.draggable,"target",t),l.css(a.draggable,{"z-index":1e14,"pointer-events":"none",position:"fixed",display:"inlin-block",left:a.startDragPoint.x,top:a.startDragPoint.y,width:t.offsetWidth,height:t.offsetHeight}))},a.getDataTransfer=function(e){return e.dataTransfer||new DataTransfer},a.getText=function(e){var t=a.getDataTransfer(e);return t.getData(r.TEXT_HTML)||t.getData(r.TEXT_PLAIN)},a}t.DragAndDrop=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i=o(1),r=o(2),s=o(16),a=o(7),l=o(0),c=o(18),d=(i.__extends(u,n=a.Plugin),u.prototype.createDialog=function(){var o=this;this.dialog=new s.Dialog(this.jodit);var e=this.jodit.create.fromHTML('<a href="javascript:void(0)" style="float:right;" class="jodit_button"><span>'+this.jodit.i18n("Paste")+"</span></a>");e.addEventListener("click",this.paste);var t=this.jodit.create.fromHTML('<a href="javascript:void(0)" style="float:right; margin-right: 10px;" class="jodit_button"><span>'+this.jodit.i18n("Cancel")+"</span></a>");t.addEventListener("click",this.dialog.close),this.container=this.jodit.ownerDocument.createElement("div"),this.container.classList.add("jodit_paste_storage"),this.listBox=this.jodit.ownerDocument.createElement("div"),this.previewBox=this.jodit.ownerDocument.createElement("div"),this.container.appendChild(this.listBox),this.container.appendChild(this.previewBox),this.dialog.setTitle(this.jodit.i18n("Choose Content to Paste")),this.dialog.setContent(this.container),this.dialog.setFooter([e,t]),this.jodit.events.on(this.listBox,"click dblclick",function(e){var t=e.target;return t&&"A"===t.nodeName&&t.hasAttribute("data-index")&&o.selectIndex(parseInt(t.getAttribute("data-index")||"0",10)),"dblclick"===e.type&&o.paste(),!1},"a")},u.prototype.afterInit=function(){var t=this;this.jodit.events.on("afterCopy",function(e){~t.list.indexOf(e)&&t.list.splice(t.list.indexOf(e),1),t.list.unshift(e),5<t.list.length&&(t.list.length=5)}),this.jodit.registerCommand("showPasteStorage",{exec:this.showDialog,hotkeys:["ctrl+shift+v","cmd+shift+v"]})},u.prototype.beforeDestruct=function(){this.dialog&&this.dialog.destruct(),l.Dom.safeRemove(this.previewBox),l.Dom.safeRemove(this.listBox),l.Dom.safeRemove(this.container),this.container=null,this.listBox=null,this.previewBox=null,this.dialog=null,this.list=[]},u);function u(){var i=null!==n&&n.apply(this,arguments)||this;return i.currentIndex=0,i.list=[],i.container=null,i.listBox=null,i.previewBox=null,i.dialog=null,i.paste=function(){if(i.jodit.selection.focus(),i.jodit.selection.insertHTML(i.list[i.currentIndex]),0!==i.currentIndex){var e=i.list[0];i.list[0]=i.list[i.currentIndex],i.list[i.currentIndex]=e}i.dialog&&i.dialog.close(),i.jodit.setEditorValue()},i.onKeyDown=function(e){var t=i.currentIndex;~[r.KEY_UP,r.KEY_DOWN,r.KEY_ENTER].indexOf(e.which)&&(e.which===r.KEY_UP&&(0===t?t=i.list.length-1:t-=1),e.which===r.KEY_DOWN&&(t===i.list.length-1?t=0:t+=1),e.which!==r.KEY_ENTER?(t!==i.currentIndex&&i.selectIndex(t),e.stopImmediatePropagation(),e.preventDefault()):i.paste())},i.selectIndex=function(o){i.listBox&&Array.from(i.listBox.childNodes).forEach(function(e,t){e.classList.remove("jodit_active"),o===t&&i.previewBox&&(e.classList.add("jodit_active"),i.previewBox.innerHTML=i.list[o],e.focus())}),i.currentIndex=o},i.showDialog=function(){i.list.length<2||(i.dialog||i.createDialog(),i.listBox&&(i.listBox.innerHTML=""),i.previewBox&&(i.previewBox.innerHTML=""),i.list.forEach(function(e,t){var o=i.jodit.ownerDocument.createElement("a");o.textContent=t+1+". "+e.replace(r.SPACE_REG_EXP,""),o.addEventListener("keydown",i.onKeyDown),o.setAttribute("href","javascript:void(0)"),o.setAttribute("data-index",""+t),o.setAttribute("tab-index","-1"),i.listBox&&i.listBox.appendChild(o)}),i.dialog&&i.dialog.open(),c.setTimeout(function(){i.selectIndex(0)},100))},i}t.pasteStorage=d},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o(190);t.about=i;var n=o(191);t.addcolumn=n;var r=o(192);t.addrow=r;var s=o(193);t.angle_down=s;var a=o(194);t.angle_left=a;var l=o(195);t.angle_right=l;var c=o(196);t.angle_up=c;var d=o(197);t.arrows_alt=d;var u=o(198);t.arrows_h=u;var f=o(199);t.attachment=f;var p=o(200);t.bin=p;var h=o(201);t.bold=h;var v=o(202);t.brush=v;var m=o(203);t.cancel=m;var g=o(204);t.center=g;var _=o(205);t.chain_broken=_;var b=o(206);t.check=b;var y=o(207);t.check_square=y;var w=o(208);t.copyformat=w;var E=o(209);t.crop=E;var C=o(210);t.cut=C;var j=o(211);t.dedent=j;var x=o(212);t.dots=x;var T=o(213);t.dropdown_arrow=T;var S=o(214);t.enter=S;var D=o(215);t.eraser=D;var q=o(216);t.eye=q;var M=o(217);t.file=M;var L=o(218);t.folder=L;var I=o(219);t.font=I;var N=o(220);t.fontsize=N;var A=o(221);t.fullsize=A;var k=o(222);t.hr=k;var P=o(223);t.image=P;var O=o(224);t.indent=O;var z=o(225);t.info_circle=z;var R=o(226);t.italic=R;var B=o(227);t.justify=B;var H=o(228);t.left=H;var W=o(229);t.link=W;var F=o(230);t.lock=F;var V=o(231);t.menu=V;var Y=o(232);t.merge=Y;var U=o(233);t.ol=U;var X=o(234);t.omega=X;var K=o(235);t.outdent=K;var $=o(236);t.palette=$;var G=o(237);t.paragraph=G;var J=o(238);t.pencil=J;var Z=o(239);t.plus=Z;var Q=o(240);t.print=Q;var ee=o(241);t.redo=ee;var te=o(242);t.resize=te;var oe=o(243);t.resizer=oe;var ie=o(244);t.right=ie;var ne=o(245);t.save=ne;var re=o(246);t.select_all=re;var se=o(247);t.shrink=se;var ae=o(248);t.source=ae;var le=o(249);t.splitg=le;var ce=o(250);t.splitv=ce;var de=o(251);t.strikethrough=de;var ue=o(252);t.subscript=ue;var fe=o(253);t.superscript=fe;var pe=o(254);t.table=pe;var he=o(255);t.th=he;var ve=o(256);t.th_list=ve;var me=o(257);t.ul=me;var ge=o(258);t.underline=ge;var _e=o(259);t.undo=_e;var be=o(260);t.unlink=be;var ye=o(261);t.unlock=ye;var we=o(262);t.update=we;var Ee=o(263);t.upload=Ee;var Ce=o(264);t.valign=Ce;var je=o(265);t.video=je},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n\t<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"/>\n</svg>\n'},function(e,t){e.exports='<svg viewBox="0 0 18.151 18.151">\n<g>\n\t<g>\n\t\t<path d="M6.237,16.546H3.649V1.604h5.916v5.728c0.474-0.122,0.968-0.194,1.479-0.194\n\t\t\tc0.042,0,0.083,0.006,0.125,0.006V0H2.044v18.15h5.934C7.295,17.736,6.704,17.19,6.237,16.546z"/>\n\t\t<path 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\n\t\t\tS13.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\n\t\t\ts3.597,1.613,3.597,3.597C14.766,15.198,13.153,16.81,11.169,16.81z"/>\n\t\t<polygon  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\n\t\t\t10.502,15.352 11.792,15.352 11.792,13.868 13.309,13.868 13.309,12.578 11.792,12.578 \t\t"/>\n\t</g>\n</g>\n</svg>\n'},function(e,t){e.exports='<svg viewBox="0 0 432 432">\n<g>\n\t<g>\n\t\t<polygon points="203.688,96 0,96 0,144 155.688,144 \t\t"/>\n\t\t<polygon points="155.719,288 0,288 0,336 203.719,336 \t\t"/>\n\t\t<rect x="252" y="96"/>\n\t\t<rect/>\n\t\t<rect x="252" y="288"/>\n\t\t<rect y="384"/>\n\t\t<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\n\t\t\tL97.844,230.125z"/>\n\t\t<polygon points="232,176 232,96 112,216 232,336 232,256 432,256 432,176 \t\t"/>\n\t</g>\n</g>\n</svg>\n'},function(e,t){e.exports='<svg  viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1411 541l-355 355 355 355 144-144q29-31 70-14 39 17 39 59v448q0 26-19 45t-45 19h-448q-42 0-59-40-17-39 14-69l144-144-355-355-355 355 144 144q31 30 14 69-17 40-59 40h-448q-26 0-45-19t-19-45v-448q0-42 40-59 39-17 69 14l144 144 355-355-355-355-144 144q-19 19-45 19-12 0-24-5-40-17-40-59v-448q0-26 19-45t45-19h448q42 0 59 40 17 39-14 69l-144 144 355 355 355-355-144-144q-31-30-14-69 17-40 59-40h448q26 0 45 19t19 45v448q0 42-39 59-13 5-25 5-26 0-45-19z"/></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1792 896q0 26-19 45l-256 256q-19 19-45 19t-45-19-19-45v-128h-1024v128q0 26-19 45t-45 19-45-19l-256-256q-19-19-19-45t19-45l256-256q19-19 45-19t45 19 19 45v128h1024v-128q0-26 19-45t45-19 45 19l256 256q19 19 19 45z"/></svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1596 1385q0 117-79 196t-196 79q-135 0-235-100l-777-776q-113-115-113-271 0-159 110-270t269-111q158 0 273 113l605 606q10 10 10 22 0 16-30.5 46.5t-46.5 30.5q-13 0-23-10l-606-607q-79-77-181-77-106 0-179 75t-73 181q0 105 76 181l776 777q63 63 145 63 64 0 106-42t42-106q0-82-63-145l-581-581q-26-24-60-24-29 0-48 19t-19 48q0 32 25 59l410 410q10 10 10 22 0 16-31 47t-47 31q-12 0-22-10l-410-410q-63-61-63-149 0-82 57-139t139-57q88 0 149 63l581 581q100 98 100 235z"/></svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewBox="0 0 16 16" style="stroke: #000000;">\n    <g transform="translate(0,-1036.3622)">\n        <path d="m 2,1050.3622 12,-12"\n              style="fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"/>\n        <path d="m 2,1038.3622 12,12"\n              style="fill:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"/>\n    </g>\n</svg>\n'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M813 1299l614-614q19-19 19-45t-19-45l-102-102q-19-19-45-19t-45 19l-467 467-211-211q-19-19-45-19t-45 19l-102 102q-19 19-19 45t19 45l358 358q19 19 45 19t45-19zm851-883v960q0 119-84.5 203.5t-203.5 84.5h-960q-119 0-203.5-84.5t-84.5-203.5v-960q0-119 84.5-203.5t203.5-84.5h960q119 0 203.5 84.5t84.5 203.5z"/></svg>'},function(e,t){e.exports='<svg viewBox="0 0 16 16"><path 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>\n'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg\n        enable-background="new 0 0 24 24"\n        viewBox="0 0 24 24"\n        xml:space="preserve"\n\n       >\n    <circle cx="12" cy="12" r="2.2"/>\n    <circle cx="12" cy="5" r="2.2"/>\n    <circle cx="12" cy="19" r="2.2"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 10 10">\n\t<path\n\t\td="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"></path>\n</svg>\n'},function(e,t){e.exports='<svg viewBox="0 0 128 128" xml:space="preserve">\n    <g>\n        <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   "/>\n    </g>\n</svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewBox="0 0 24 24" >\n\t<path 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"/>\n</svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path d="M1664 1344v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45zm0-512v128q0 26-19 45t-45 19h-1408q-26 0-45-19t-19-45v-128q0-26 19-45t45-19h1408q26 0 45 19t19 45z"/></svg>'},function(e,t){e.exports='<svg\n     viewBox="0 0 312 312">\n    <g transform="translate(0.000000,312.000000) scale(0.100000,-0.100000)" stroke="none">\n        <path d="M50 3109 c0 -7 -11 -22 -25 -35 l-25 -23 0 -961 0 -961 32 -29 32\n-30 501 -2 500 -3 3 -502 2 -502 31 -30 31 -31 958 0 958 0 23 25 c13 13 30\n25 37 25 9 0 12 199 12 960 0 686 -3 960 -11 960 -6 0 -24 12 -40 28 l-29 27\n-503 5 -502 5 -5 502 -5 503 -28 29 c-15 16 -27 34 -27 40 0 8 -274 11 -960\n11 -710 0 -960 -3 -960 -11z m1738 -698 l2 -453 -40 -40 c-22 -22 -40 -43 -40\n-47 0 -4 36 -42 79 -85 88 -87 82 -87 141 -23 l26 27 455 -2 454 -3 0 -775 0\n-775 -775 0 -775 0 -3 450 -2 449 47 48 47 48 -82 80 c-44 44 -84 80 -87 80\n-3 0 -25 -18 -48 -40 l-41 -40 -456 2 -455 3 -3 765 c-1 421 0 771 3 778 3 10\n164 12 777 10 l773 -3 3 -454z"/>\n        <path d="M607 2492 c-42 -42 -77 -82 -77 -87 0 -6 86 -96 190 -200 105 -104\n190 -197 190 -205 0 -8 -41 -56 -92 -107 -65 -65 -87 -94 -77 -98 8 -3 138 -4\n289 -3 l275 3 3 275 c1 151 0 281 -3 289 -4 10 -35 -14 -103 -82 -54 -53 -103\n-97 -109 -97 -7 0 -99 88 -206 195 -107 107 -196 195 -198 195 -3 0 -39 -35\n-82 -78z"/>\n        <path d="M1470 1639 c-47 -49 -87 -91 -89 -94 -5 -6 149 -165 160 -165 9 0\n189 179 189 188 0 12 -154 162 -165 161 -6 0 -48 -41 -95 -90z"/>\n        <path d="M1797 1303 c-9 -8 -9 -568 0 -576 4 -4 50 36 103 88 54 52 101 95\n106 95 5 0 95 -85 199 -190 104 -104 194 -190 200 -190 6 0 46 36 90 80 l79\n79 -197 196 c-108 108 -197 199 -197 203 0 4 45 52 99 106 55 55 98 103 95\n108 -6 10 -568 11 -577 1z"/>\n    </g>\n</svg>\n'},function(e,t){e.exports='<svg role="img" viewBox="0 0 1792 1792">\n    <path 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"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 270 270">\n\t<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"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<svg x="0px" y="0px" viewBox="0 0 459 459">\n<g>\n\t<g>\n\t\t<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\n\t\t\tc-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\n\t\t\t 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\n\t\t\t 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\n\t\t\t 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\n\t\t\t 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"\n\t\t/>\n\t</g>\n</g>\n</svg>\n'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 24 24"\n    >\n    <g>\n        <g transform="translate(-251.000000, -443.000000)">\n            <g transform="translate(215.000000, 119.000000)"/>\n            <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"/>\n        </g>\n    </g>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <path d="M844 472q0 60-19 113.5t-63 92.5-105 39q-76 0-138-57.5t-92-135.5-30-151q0-60 19-113.5t63-92.5 105-39q77 0 138.5 57.5t91.5 135 30 151.5zm-342 483q0 80-42 139t-119 59q-76 0-141.5-55.5t-100.5-133.5-35-152q0-80 42-139.5t119-59.5q76 0 141.5 55.5t100.5 134 35 152.5zm394-27q118 0 255 97.5t229 237 92 254.5q0 46-17 76.5t-48.5 45-64.5 20-76 5.5q-68 0-187.5-45t-182.5-45q-66 0-192.5 44.5t-200.5 44.5q-183 0-183-146 0-86 56-191.5t139.5-192.5 187.5-146 193-59zm239-211q-61 0-105-39t-63-92.5-19-113.5q0-74 30-151.5t91.5-135 138.5-57.5q61 0 105 39t63 92.5 19 113.5q0 73-30 151t-92 135.5-138 57.5zm432-104q77 0 119 59.5t42 139.5q0 74-35 152t-100.5 133.5-141.5 55.5q-77 0-119-59t-42-139q0-74 35-152.5t100.5-134 141.5-55.5z"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18">\n    <g fill-rule="evenodd" stroke="none" stroke-width="1">\n        <g transform="translate(-381.000000, -381.000000)">\n            <g transform="translate(381.000000, 381.000000)">\n                <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"/>\n            </g>\n        </g>\n    </g>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 48 48">\n    <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"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 48 48">\n    <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"/>\n    <path d="M0 0h48v48h-48z" fill="none"/>\n</svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792">\n    <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"/>\n</svg>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<svg viewBox="0 0 1792 1792"><path 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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'},function(e,t){e.exports='<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>'}],n.c=i,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/build/",n(n.s=67);function n(e){if(i[e])return i[e].exports;var t=i[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var o,i});
window.kentico = window.kentico || {};

window.kentico.updatableFormHelper = (function () {

    // Duration for which user must not type anything in order for the form to be submitted.
    var KEY_UP_DEBOUNCE_DURATION = 800;

    /**
     * Registers event listeners and updates the form upon changes of the form data.
     * @param {object} config Configuration object.
     * @param {string} config.formId ID of the form element.
     * @param {string} config.targetAttributeName Data attribute of element that is used to be replaced by HTML received from the server.
     * @param {string} config.unobservedAttributeName Data attribute which marks an input as not being observed for changes.
     */
    function registerEventListeners(config) {
        if (!config || !config.formId || !config.targetAttributeName || !config.unobservedAttributeName) {
            throw new Error("Invalid configuration passed.");
        }

        var writeableTypes = ["email", "number", "password", "search", "tel", "text", "time"];

        var observedForm = document.getElementById(config.formId);
        if (!(observedForm && observedForm.getAttribute(config.targetAttributeName))) {
            return;
        }

        for (i = 0; i < observedForm.length; i++) {
            var observedFormElement = observedForm.elements[i];
            var handleElement = !observedFormElement.hasAttribute(config.unobservedAttributeName) &&
                observedFormElement.type !== "submit";

            if (handleElement) {
                var isWriteableElement = (observedFormElement.tagName === "INPUT" && writeableTypes.indexOf(observedFormElement.type) !== -1) || observedFormElement.tagName === "TEXTAREA";

                if (isWriteableElement) {
                    observedFormElement.previousValue = observedFormElement.value;

                    observedFormElement.addEventListener("keyup", debounce(function (e) {
                        setTimeout(function () {
                            if (!observedForm.updating && e.target.previousValue !== e.target.value) {
                                observedForm.keyupUpdate = true;
                                updateForm(observedForm, e.target);
                            }
                        }, 0);
                    }, KEY_UP_DEBOUNCE_DURATION));

                    observedFormElement.addEventListener("blur", function (e) {
                        setTimeout(function () {
                            if (!observedForm.updating && e.target.previousValue !== e.target.value) {
                                updateForm(observedForm, e.relatedTarget);
                            }
                        }, 0);
                    });
                }

                observedFormElement.addEventListener("change", function (e) {
                    setTimeout(function () {
                        if (!observedForm.updating) {
                            updateForm(observedForm);
                        }
                    }, 0);
                });
            }
        }
    }

    /**
     * Updates the form markup.
     * @param {HTMLElement} form Element of the form to update.
     * @param {Element} nextFocusElement Element which shout get focus after update.
     */
    function updateForm(form, nextFocusElement) {
        if (!form) {
            return;
        }

        // If form is not updatable then do nothing 
        var elementIdSelector = form.getAttribute("data-ktc-ajax-update");
        if (!elementIdSelector) {
            return;
        }

        form.querySelectorAll("input[type='submit']").forEach((item) => {
            item.setAttribute("onclick", "return false;");
        });

        form.updating = true;

        var formData = new FormData(form);
        formData.append("kentico_update_form", "true");

        var focus = nextFocusElement || document.activeElement;

        var onResponse = function (event) {
            if (!event.target.response.data) {
                var selectionStart = selectionEnd = null;
                if (focus && (focus.type === "text" || focus.type === "search" || focus.type === "password" || focus.type === "tel" || focus.type === "url")) {
                    selectionStart = focus.selectionStart;
                    selectionEnd = focus.selectionEnd;
                }

                var currentScrollPosition = window.scrollY;
                var element = document.getElementById(elementIdSelector);

                if (useJQuery()) {
                    $(element).replaceWith(event.target.responseText);
                } else {
                    renderMarkup(event.target.responseText, element);
                }
                window.scrollTo(0, currentScrollPosition);

                if (focus.id) {
                    var newInput = document.getElementById(focus.id);
                    if (newInput) {
                        newInput.focus();
                        setCaretPosition(newInput, selectionStart, selectionEnd);
                    }
                }
            }
        };

        createRequest(form, formData, onResponse);
    }

    function submitForm(event) {
        event.preventDefault();
        var form = event.target;
        var formData = new FormData(form);

        var onResponse = function(event) {
            var contentType = event.target.getResponseHeader("Content-Type");

            if (contentType.indexOf("application/json") === -1) {
                var currentScrollPosition = window.scrollY;
                var replaceTargetId = form.getAttribute("data-ktc-ajax-update");

                var element = document.getElementById(replaceTargetId);

                if (useJQuery()) {
                    $(element).replaceWith(event.target.response);
                } else {
                    renderMarkup(event.target.response, element)
                }

                window.scrollTo(0, currentScrollPosition);
            } else {
                var json = JSON.parse(event.target.response);

                location.href = json.redirectTo;
            }
        };

        createRequest(form, formData, onResponse);
    }

    const renderMarkup = (markup, targetElement) => {
        var elementFromMarkup = createElementFromMarkup(markup);

        targetElement.parentNode.replaceChild(elementFromMarkup, targetElement);
        const scripts = elementFromMarkup.querySelectorAll("script");
        Array.prototype.forEach.call(scripts, (scriptElement) => {
            const parent = scriptElement.parentNode;
            const temp = document.createElement("script");
            [...scriptElement.attributes].forEach((attr) => {
                temp.setAttribute(attr.name, attr.value);
            });

            temp.innerHTML = scriptElement.innerHTML;
            parent.replaceChild(temp, scriptElement);
            scriptElement.remove();
        });
    };

    function createElementFromMarkup(markup) {
        var element = document.createElement("div");

        element.innerHTML = markup;

        return element.firstElementChild;
    }

    function createRequest(form, formData, onResponse) {
        var xhr = new XMLHttpRequest();

        xhr.addEventListener("load", onResponse);

        xhr.open("POST", form.action);
        xhr.send(formData);
    }

    /**
     * Sets the caret position.
     * @param {HTMLInputElement} input Input element in which the caret position should be set.
     * @param {number} selectionStart Selection start position.
     * @param {number} selectionEnd Selection end position.
     */
    function setCaretPosition(input, selectionStart, selectionEnd) {
        if (selectionStart === null && selectionEnd === null) {
            return;
        }

        if (input.setSelectionRange) {
            input.setSelectionRange(selectionStart, selectionEnd);
        }
    }

    function debounce(func, wait, immediate) {
        var timeout;

        return function () {
            var context = this,
                args = arguments;

            var later = function () {
                timeout = null;

                if (!immediate) {
                    func.apply(context, args);
                }
            };

            var callNow = immediate && !timeout;
            clearTimeout(timeout);
            timeout = setTimeout(later, wait || 200);

            if (callNow) {
                func.apply(context, args);
            }
        };
    }

    function useJQuery() {
        return window.kentico.hasOwnProperty("builder") ? window.kentico.builder.useJQuery : false;
    }

    return {
        registerEventListeners: registerEventListeners,
        updateForm: updateForm,
        submitForm: submitForm
    };
}());

