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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAAA;AAGA;AACA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAEA;AACA;AAAA;AACA;AAAA;AAEA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AAAA;AACA;AAEA;AAAA;AAgCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sources":["webpack://hexlet_cv/./node_modules/select2/dist/js/select2.js","webpack://hexlet_cv/./node_modules/prosemirror-model/dist/index.js","webpack://hexlet_cv/./node_modules/prosemirror-view/dist/index.js","webpack://hexlet_cv/./node_modules/prosemirror-commands/dist/index.js","webpack://hexlet_cv/./node_modules/@toast-ui/editor/dist/esm/index.js"],"sourcesContent":["/*!\n * Select2 4.1.0-rc.0\n * https://select2.github.io\n *\n * Released under the MIT license\n * https://github.com/select2/select2/blob/master/LICENSE.md\n */\n;\n(function(factory) {\n if (typeof define === \"function\" && define.amd) {\n define([\"jquery\"], factory);\n } else if (typeof module === \"object\" && module.exports) {\n module.exports = function(root, jQuery2) {\n if (jQuery2 === void 0) {\n if (typeof window !== \"undefined\") {\n jQuery2 = require(\"jquery\");\n } else {\n jQuery2 = require(\"jquery\")(root);\n }\n }\n factory(jQuery2);\n return jQuery2;\n };\n } else {\n factory(jQuery);\n }\n})(function(jQuery2) {\n var S2 = function() {\n if (jQuery2 && jQuery2.fn && jQuery2.fn.select2 && jQuery2.fn.select2.amd) {\n var S22 = jQuery2.fn.select2.amd;\n }\n var S22;\n (function() {\n if (!S22 || !S22.requirejs) {\n if (!S22) {\n S22 = {};\n } else {\n require2 = S22;\n }\n /**\n * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.\n * Released under MIT license, http://github.com/requirejs/almond/LICENSE\n */\n var requirejs, require2, define2;\n (function(undef) {\n var main, req, makeMap, handlers, defined = {}, waiting = {}, config = {}, defining = {}, hasOwn = Object.prototype.hasOwnProperty, aps = [].slice, jsSuffixRegExp = /\\.js$/;\n function hasProp(obj, prop) {\n return hasOwn.call(obj, prop);\n }\n function normalize(name, baseName) {\n var nameParts, nameSegment, mapValue, foundMap, lastIndex, foundI, foundStarMap, starI, i, j, part, normalizedBaseParts, baseParts = baseName && baseName.split(\"/\"), map = config.map, starMap = map && map[\"*\"] || {};\n if (name) {\n name = name.split(\"/\");\n lastIndex = name.length - 1;\n if (config.nodeIdCompat && jsSuffixRegExp.test(name[lastIndex])) {\n name[lastIndex] = name[lastIndex].replace(jsSuffixRegExp, \"\");\n }\n if (name[0].charAt(0) === \".\" && baseParts) {\n normalizedBaseParts = baseParts.slice(0, baseParts.length - 1);\n name = normalizedBaseParts.concat(name);\n }\n for (i = 0; i < name.length; i++) {\n part = name[i];\n if (part === \".\") {\n name.splice(i, 1);\n i -= 1;\n } else if (part === \"..\") {\n if (i === 0 || i === 1 && name[2] === \"..\" || name[i - 1] === \"..\") {\n continue;\n } else if (i > 0) {\n name.splice(i - 1, 2);\n i -= 2;\n }\n }\n }\n name = name.join(\"/\");\n }\n if ((baseParts || starMap) && map) {\n nameParts = name.split(\"/\");\n for (i = nameParts.length; i > 0; i -= 1) {\n nameSegment = nameParts.slice(0, i).join(\"/\");\n if (baseParts) {\n for (j = baseParts.length; j > 0; j -= 1) {\n mapValue = map[baseParts.slice(0, j).join(\"/\")];\n if (mapValue) {\n mapValue = mapValue[nameSegment];\n if (mapValue) {\n foundMap = mapValue;\n foundI = i;\n break;\n }\n }\n }\n }\n if (foundMap) {\n break;\n }\n if (!foundStarMap && starMap && starMap[nameSegment]) {\n foundStarMap = starMap[nameSegment];\n starI = i;\n }\n }\n if (!foundMap && foundStarMap) {\n foundMap = foundStarMap;\n foundI = starI;\n }\n if (foundMap) {\n nameParts.splice(0, foundI, foundMap);\n name = nameParts.join(\"/\");\n }\n }\n return name;\n }\n function makeRequire(relName, forceSync) {\n return function() {\n var args = aps.call(arguments, 0);\n if (typeof args[0] !== \"string\" && args.length === 1) {\n args.push(null);\n }\n return req.apply(undef, args.concat([relName, forceSync]));\n };\n }\n function makeNormalize(relName) {\n return function(name) {\n return normalize(name, relName);\n };\n }\n function makeLoad(depName) {\n return function(value) {\n defined[depName] = value;\n };\n }\n function callDep(name) {\n if (hasProp(waiting, name)) {\n var args = waiting[name];\n delete waiting[name];\n defining[name] = true;\n main.apply(undef, args);\n }\n if (!hasProp(defined, name) && !hasProp(defining, name)) {\n throw new Error(\"No \" + name);\n }\n return defined[name];\n }\n function splitPrefix(name) {\n var prefix, index = name ? name.indexOf(\"!\") : -1;\n if (index > -1) {\n prefix = name.substring(0, index);\n name = name.substring(index + 1, name.length);\n }\n return [prefix, name];\n }\n function makeRelParts(relName) {\n return relName ? splitPrefix(relName) : [];\n }\n makeMap = function(name, relParts) {\n var plugin, parts = splitPrefix(name), prefix = parts[0], relResourceName = relParts[1];\n name = parts[1];\n if (prefix) {\n prefix = normalize(prefix, relResourceName);\n plugin = callDep(prefix);\n }\n if (prefix) {\n if (plugin && plugin.normalize) {\n name = plugin.normalize(name, makeNormalize(relResourceName));\n } else {\n name = normalize(name, relResourceName);\n }\n } else {\n name = normalize(name, relResourceName);\n parts = splitPrefix(name);\n prefix = parts[0];\n name = parts[1];\n if (prefix) {\n plugin = callDep(prefix);\n }\n }\n return {\n f: prefix ? prefix + \"!\" + name : name,\n //fullName\n n: name,\n pr: prefix,\n p: plugin\n };\n };\n function makeConfig(name) {\n return function() {\n return config && config.config && config.config[name] || {};\n };\n }\n handlers = {\n require: function(name) {\n return makeRequire(name);\n },\n exports: function(name) {\n var e = defined[name];\n if (typeof e !== \"undefined\") {\n return e;\n } else {\n return defined[name] = {};\n }\n },\n module: function(name) {\n return {\n id: name,\n uri: \"\",\n exports: defined[name],\n config: makeConfig(name)\n };\n }\n };\n main = function(name, deps, callback, relName) {\n var cjsModule, depName, ret, map, i, relParts, args = [], callbackType = typeof callback, usingExports;\n relName = relName || name;\n relParts = makeRelParts(relName);\n if (callbackType === \"undefined\" || callbackType === \"function\") {\n deps = !deps.length && callback.length ? [\"require\", \"exports\", \"module\"] : deps;\n for (i = 0; i < deps.length; i += 1) {\n map = makeMap(deps[i], relParts);\n depName = map.f;\n if (depName === \"require\") {\n args[i] = handlers.require(name);\n } else if (depName === \"exports\") {\n args[i] = handlers.exports(name);\n usingExports = true;\n } else if (depName === \"module\") {\n cjsModule = args[i] = handlers.module(name);\n } else if (hasProp(defined, depName) || hasProp(waiting, depName) || hasProp(defining, depName)) {\n args[i] = callDep(depName);\n } else if (map.p) {\n map.p.load(map.n, makeRequire(relName, true), makeLoad(depName), {});\n args[i] = defined[depName];\n } else {\n throw new Error(name + \" missing \" + depName);\n }\n }\n ret = callback ? callback.apply(defined[name], args) : void 0;\n if (name) {\n if (cjsModule && cjsModule.exports !== undef && cjsModule.exports !== defined[name]) {\n defined[name] = cjsModule.exports;\n } else if (ret !== undef || !usingExports) {\n defined[name] = ret;\n }\n }\n } else if (name) {\n defined[name] = callback;\n }\n };\n requirejs = require2 = req = function(deps, callback, relName, forceSync, alt) {\n if (typeof deps === \"string\") {\n if (handlers[deps]) {\n return handlers[deps](callback);\n }\n return callDep(makeMap(deps, makeRelParts(callback)).f);\n } else if (!deps.splice) {\n config = deps;\n if (config.deps) {\n req(config.deps, config.callback);\n }\n if (!callback) {\n return;\n }\n if (callback.splice) {\n deps = callback;\n callback = relName;\n relName = null;\n } else {\n deps = undef;\n }\n }\n callback = callback || function() {\n };\n if (typeof relName === \"function\") {\n relName = forceSync;\n forceSync = alt;\n }\n if (forceSync) {\n main(undef, deps, callback, relName);\n } else {\n setTimeout(function() {\n main(undef, deps, callback, relName);\n }, 4);\n }\n return req;\n };\n req.config = function(cfg) {\n return req(cfg);\n };\n requirejs._defined = defined;\n define2 = function(name, deps, callback) {\n if (typeof name !== \"string\") {\n throw new Error(\"See almond README: incorrect module build, no module name\");\n }\n if (!deps.splice) {\n callback = deps;\n deps = [];\n }\n if (!hasProp(defined, name) && !hasProp(waiting, name)) {\n waiting[name] = [name, deps, callback];\n }\n };\n define2.amd = {\n jQuery: true\n };\n })();\n S22.requirejs = requirejs;\n S22.require = require2;\n S22.define = define2;\n }\n })();\n S22.define(\"almond\", function() {\n });\n S22.define(\"jquery\", [], function() {\n var _$ = jQuery2 || $;\n if (_$ == null && console && console.error) {\n console.error(\n \"Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page.\"\n );\n }\n return _$;\n });\n S22.define(\"select2/utils\", [\n \"jquery\"\n ], function($2) {\n var Utils = {};\n Utils.Extend = function(ChildClass, SuperClass) {\n var __hasProp = {}.hasOwnProperty;\n function BaseConstructor() {\n this.constructor = ChildClass;\n }\n for (var key in SuperClass) {\n if (__hasProp.call(SuperClass, key)) {\n ChildClass[key] = SuperClass[key];\n }\n }\n BaseConstructor.prototype = SuperClass.prototype;\n ChildClass.prototype = new BaseConstructor();\n ChildClass.__super__ = SuperClass.prototype;\n return ChildClass;\n };\n function getMethods(theClass) {\n var proto = theClass.prototype;\n var methods = [];\n for (var methodName in proto) {\n var m = proto[methodName];\n if (typeof m !== \"function\") {\n continue;\n }\n if (methodName === \"constructor\") {\n continue;\n }\n methods.push(methodName);\n }\n return methods;\n }\n Utils.Decorate = function(SuperClass, DecoratorClass) {\n var decoratedMethods = getMethods(DecoratorClass);\n var superMethods = getMethods(SuperClass);\n function DecoratedClass() {\n var unshift = Array.prototype.unshift;\n var argCount = DecoratorClass.prototype.constructor.length;\n var calledConstructor = SuperClass.prototype.constructor;\n if (argCount > 0) {\n unshift.call(arguments, SuperClass.prototype.constructor);\n calledConstructor = DecoratorClass.prototype.constructor;\n }\n calledConstructor.apply(this, arguments);\n }\n DecoratorClass.displayName = SuperClass.displayName;\n function ctr() {\n this.constructor = DecoratedClass;\n }\n DecoratedClass.prototype = new ctr();\n for (var m = 0; m < superMethods.length; m++) {\n var superMethod = superMethods[m];\n DecoratedClass.prototype[superMethod] = SuperClass.prototype[superMethod];\n }\n var calledMethod = function(methodName) {\n var originalMethod = function() {\n };\n if (methodName in DecoratedClass.prototype) {\n originalMethod = DecoratedClass.prototype[methodName];\n }\n var decoratedMethod2 = DecoratorClass.prototype[methodName];\n return function() {\n var unshift = Array.prototype.unshift;\n unshift.call(arguments, originalMethod);\n return decoratedMethod2.apply(this, arguments);\n };\n };\n for (var d = 0; d < decoratedMethods.length; d++) {\n var decoratedMethod = decoratedMethods[d];\n DecoratedClass.prototype[decoratedMethod] = calledMethod(decoratedMethod);\n }\n return DecoratedClass;\n };\n var Observable = function() {\n this.listeners = {};\n };\n Observable.prototype.on = function(event, callback) {\n this.listeners = this.listeners || {};\n if (event in this.listeners) {\n this.listeners[event].push(callback);\n } else {\n this.listeners[event] = [callback];\n }\n };\n Observable.prototype.trigger = function(event) {\n var slice = Array.prototype.slice;\n var params = slice.call(arguments, 1);\n this.listeners = this.listeners || {};\n if (params == null) {\n params = [];\n }\n if (params.length === 0) {\n params.push({});\n }\n params[0]._type = event;\n if (event in this.listeners) {\n this.invoke(this.listeners[event], slice.call(arguments, 1));\n }\n if (\"*\" in this.listeners) {\n this.invoke(this.listeners[\"*\"], arguments);\n }\n };\n Observable.prototype.invoke = function(listeners, params) {\n for (var i = 0, len = listeners.length; i < len; i++) {\n listeners[i].apply(this, params);\n }\n };\n Utils.Observable = Observable;\n Utils.generateChars = function(length) {\n var chars = \"\";\n for (var i = 0; i < length; i++) {\n var randomChar = Math.floor(Math.random() * 36);\n chars += randomChar.toString(36);\n }\n return chars;\n };\n Utils.bind = function(func, context) {\n return function() {\n func.apply(context, arguments);\n };\n };\n Utils._convertData = function(data) {\n for (var originalKey in data) {\n var keys = originalKey.split(\"-\");\n var dataLevel = data;\n if (keys.length === 1) {\n continue;\n }\n for (var k = 0; k < keys.length; k++) {\n var key = keys[k];\n key = key.substring(0, 1).toLowerCase() + key.substring(1);\n if (!(key in dataLevel)) {\n dataLevel[key] = {};\n }\n if (k == keys.length - 1) {\n dataLevel[key] = data[originalKey];\n }\n dataLevel = dataLevel[key];\n }\n delete data[originalKey];\n }\n return data;\n };\n Utils.hasScroll = function(index, el) {\n var $el = $2(el);\n var overflowX = el.style.overflowX;\n var overflowY = el.style.overflowY;\n if (overflowX === overflowY && (overflowY === \"hidden\" || overflowY === \"visible\")) {\n return false;\n }\n if (overflowX === \"scroll\" || overflowY === \"scroll\") {\n return true;\n }\n return $el.innerHeight() < el.scrollHeight || $el.innerWidth() < el.scrollWidth;\n };\n Utils.escapeMarkup = function(markup) {\n var replaceMap = {\n \"\\\\\": \"\\",\n \"&\": \"&\",\n \"<\": \"<\",\n \">\": \">\",\n '\"': \""\",\n \"'\": \"'\",\n \"/\": \"/\"\n };\n if (typeof markup !== \"string\") {\n return markup;\n }\n return String(markup).replace(/[&<>\"'\\/\\\\]/g, function(match) {\n return replaceMap[match];\n });\n };\n Utils.__cache = {};\n var id = 0;\n Utils.GetUniqueElementId = function(element) {\n var select2Id = element.getAttribute(\"data-select2-id\");\n if (select2Id != null) {\n return select2Id;\n }\n if (element.id) {\n select2Id = \"select2-data-\" + element.id;\n } else {\n select2Id = \"select2-data-\" + (++id).toString() + \"-\" + Utils.generateChars(4);\n }\n element.setAttribute(\"data-select2-id\", select2Id);\n return select2Id;\n };\n Utils.StoreData = function(element, name, value) {\n var id2 = Utils.GetUniqueElementId(element);\n if (!Utils.__cache[id2]) {\n Utils.__cache[id2] = {};\n }\n Utils.__cache[id2][name] = value;\n };\n Utils.GetData = function(element, name) {\n var id2 = Utils.GetUniqueElementId(element);\n if (name) {\n if (Utils.__cache[id2]) {\n if (Utils.__cache[id2][name] != null) {\n return Utils.__cache[id2][name];\n }\n return $2(element).data(name);\n }\n return $2(element).data(name);\n } else {\n return Utils.__cache[id2];\n }\n };\n Utils.RemoveData = function(element) {\n var id2 = Utils.GetUniqueElementId(element);\n if (Utils.__cache[id2] != null) {\n delete Utils.__cache[id2];\n }\n element.removeAttribute(\"data-select2-id\");\n };\n Utils.copyNonInternalCssClasses = function(dest, src) {\n var classes;\n var destinationClasses = dest.getAttribute(\"class\").trim().split(/\\s+/);\n destinationClasses = destinationClasses.filter(function(clazz) {\n return clazz.indexOf(\"select2-\") === 0;\n });\n var sourceClasses = src.getAttribute(\"class\").trim().split(/\\s+/);\n sourceClasses = sourceClasses.filter(function(clazz) {\n return clazz.indexOf(\"select2-\") !== 0;\n });\n var replacements = destinationClasses.concat(sourceClasses);\n dest.setAttribute(\"class\", replacements.join(\" \"));\n };\n return Utils;\n });\n S22.define(\"select2/results\", [\n \"jquery\",\n \"./utils\"\n ], function($2, Utils) {\n function Results($element, options, dataAdapter) {\n this.$element = $element;\n this.data = dataAdapter;\n this.options = options;\n Results.__super__.constructor.call(this);\n }\n Utils.Extend(Results, Utils.Observable);\n Results.prototype.render = function() {\n var $results = $2(\n '
'\n );\n if (this.options.get(\"multiple\")) {\n $results.attr(\"aria-multiselectable\", \"true\");\n }\n this.$results = $results;\n return $results;\n };\n Results.prototype.clear = function() {\n this.$results.empty();\n };\n Results.prototype.displayMessage = function(params) {\n var escapeMarkup = this.options.get(\"escapeMarkup\");\n this.clear();\n this.hideLoading();\n var $message = $2(\n ''\n );\n var message = this.options.get(\"translations\").get(params.message);\n $message.append(\n escapeMarkup(\n message(params.args)\n )\n );\n $message[0].className += \" select2-results__message\";\n this.$results.append($message);\n };\n Results.prototype.hideMessages = function() {\n this.$results.find(\".select2-results__message\").remove();\n };\n Results.prototype.append = function(data) {\n this.hideLoading();\n var $options = [];\n if (data.results == null || data.results.length === 0) {\n if (this.$results.children().length === 0) {\n this.trigger(\"results:message\", {\n message: \"noResults\"\n });\n }\n return;\n }\n data.results = this.sort(data.results);\n for (var d = 0; d < data.results.length; d++) {\n var item = data.results[d];\n var $option = this.option(item);\n $options.push($option);\n }\n this.$results.append($options);\n };\n Results.prototype.position = function($results, $dropdown) {\n var $resultsContainer = $dropdown.find(\".select2-results\");\n $resultsContainer.append($results);\n };\n Results.prototype.sort = function(data) {\n var sorter = this.options.get(\"sorter\");\n return sorter(data);\n };\n Results.prototype.highlightFirstItem = function() {\n var $options = this.$results.find(\".select2-results__option--selectable\");\n var $selected = $options.filter(\".select2-results__option--selected\");\n if ($selected.length > 0) {\n $selected.first().trigger(\"mouseenter\");\n } else {\n $options.first().trigger(\"mouseenter\");\n }\n this.ensureHighlightVisible();\n };\n Results.prototype.setClasses = function() {\n var self = this;\n this.data.current(function(selected) {\n var selectedIds = selected.map(function(s) {\n return s.id.toString();\n });\n var $options = self.$results.find(\".select2-results__option--selectable\");\n $options.each(function() {\n var $option = $2(this);\n var item = Utils.GetData(this, \"data\");\n var id = \"\" + item.id;\n if (item.element != null && item.element.selected || item.element == null && selectedIds.indexOf(id) > -1) {\n this.classList.add(\"select2-results__option--selected\");\n $option.attr(\"aria-selected\", \"true\");\n } else {\n this.classList.remove(\"select2-results__option--selected\");\n $option.attr(\"aria-selected\", \"false\");\n }\n });\n });\n };\n Results.prototype.showLoading = function(params) {\n this.hideLoading();\n var loadingMore = this.options.get(\"translations\").get(\"searching\");\n var loading = {\n disabled: true,\n loading: true,\n text: loadingMore(params)\n };\n var $loading = this.option(loading);\n $loading.className += \" loading-results\";\n this.$results.prepend($loading);\n };\n Results.prototype.hideLoading = function() {\n this.$results.find(\".loading-results\").remove();\n };\n Results.prototype.option = function(data) {\n var option = document.createElement(\"li\");\n option.classList.add(\"select2-results__option\");\n option.classList.add(\"select2-results__option--selectable\");\n var attrs = {\n \"role\": \"option\"\n };\n var matches = window.Element.prototype.matches || window.Element.prototype.msMatchesSelector || window.Element.prototype.webkitMatchesSelector;\n if (data.element != null && matches.call(data.element, \":disabled\") || data.element == null && data.disabled) {\n attrs[\"aria-disabled\"] = \"true\";\n option.classList.remove(\"select2-results__option--selectable\");\n option.classList.add(\"select2-results__option--disabled\");\n }\n if (data.id == null) {\n option.classList.remove(\"select2-results__option--selectable\");\n }\n if (data._resultId != null) {\n option.id = data._resultId;\n }\n if (data.title) {\n option.title = data.title;\n }\n if (data.children) {\n attrs.role = \"group\";\n attrs[\"aria-label\"] = data.text;\n option.classList.remove(\"select2-results__option--selectable\");\n option.classList.add(\"select2-results__option--group\");\n }\n for (var attr in attrs) {\n var val = attrs[attr];\n option.setAttribute(attr, val);\n }\n if (data.children) {\n var $option = $2(option);\n var label = document.createElement(\"strong\");\n label.className = \"select2-results__group\";\n this.template(data, label);\n var $children = [];\n for (var c = 0; c < data.children.length; c++) {\n var child = data.children[c];\n var $child = this.option(child);\n $children.push($child);\n }\n var $childrenContainer = $2(\"\";\nfunction isPositionInBox(style, offsetX, offsetY) {\n var left = parseInt(style.left, 10);\n var top2 = parseInt(style.top, 10);\n var width = parseInt(style.width, 10) + parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);\n var height = parseInt(style.height, 10) + parseInt(style.paddingTop, 10) + parseInt(style.paddingBottom, 10);\n return offsetX >= left && offsetX <= left + width && offsetY >= top2 && offsetY <= top2 + height;\n}\nvar CLS_PREFIX = \"toastui-editor-\";\nfunction cls() {\n var names = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n names[_i] = arguments[_i];\n }\n var result = [];\n for (var _a = 0, names_1 = names; _a < names_1.length; _a++) {\n var name_1 = names_1[_a];\n var className = void 0;\n if (Array.isArray(name_1)) {\n className = name_1[0] ? name_1[1] : null;\n } else {\n className = name_1;\n }\n if (className) {\n result.push(\"\" + CLS_PREFIX + className);\n }\n }\n return result.join(\" \");\n}\nfunction clsWithMdPrefix() {\n var names = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n names[_i] = arguments[_i];\n }\n return names.map(function(className) {\n return CLS_PREFIX + \"md-\" + className;\n }).join(\" \");\n}\nfunction isTextNode(node) {\n return (node === null || node === void 0 ? void 0 : node.nodeType) === Node.TEXT_NODE;\n}\nfunction isElemNode(node) {\n return node && node.nodeType === Node.ELEMENT_NODE;\n}\nfunction findNodes(element, selector) {\n var nodeList = toArray_1(element.querySelectorAll(selector));\n if (nodeList.length) {\n return nodeList;\n }\n return [];\n}\nfunction appendNodes(node, nodesToAppend) {\n nodesToAppend = isArray_1(nodesToAppend) ? toArray_1(nodesToAppend) : [nodesToAppend];\n nodesToAppend.forEach(function(nodeToAppend) {\n node.appendChild(nodeToAppend);\n });\n}\nfunction insertBeforeNode(insertedNode, node) {\n if (node.parentNode) {\n node.parentNode.insertBefore(insertedNode, node);\n }\n}\nfunction removeNode$1(node) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\n}\nfunction unwrapNode(node) {\n var result = [];\n while (node.firstChild) {\n result.push(node.firstChild);\n if (node.parentNode) {\n node.parentNode.insertBefore(node.firstChild, node);\n }\n }\n removeNode$1(node);\n return result;\n}\nfunction toggleClass(element, className, state) {\n if (isUndefined_1(state)) {\n state = !hasClass_1(element, className);\n }\n var toggleFn = state ? addClass_1 : removeClass_1;\n toggleFn(element, className);\n}\nfunction createElementWith(contents, target2) {\n var container = document.createElement(\"div\");\n if (isString_1(contents)) {\n container.innerHTML = contents;\n } else {\n container.appendChild(contents);\n }\n var firstChild = container.firstChild;\n if (target2) {\n target2.appendChild(firstChild);\n }\n return firstChild;\n}\nfunction getOuterWidth(el2) {\n var computed = window.getComputedStyle(el2);\n return [\"margin-left\", \"margin-right\"].reduce(function(acc, type) {\n return acc + parseInt(computed.getPropertyValue(type), 10);\n }, 0) + el2.offsetWidth;\n}\nfunction closest(node, found) {\n var condition;\n if (isString_1(found)) {\n condition = function(target2) {\n return matches_1(target2, found);\n };\n } else {\n condition = function(target2) {\n return target2 === found;\n };\n }\n while (node && node !== document) {\n if (isElemNode(node) && condition(node)) {\n return node;\n }\n node = node.parentNode;\n }\n return null;\n}\nfunction getTotalOffset(el2, root) {\n var offsetTop = 0;\n var offsetLeft = 0;\n while (el2 && el2 !== root) {\n var top_1 = el2.offsetTop, left = el2.offsetLeft, offsetParent = el2.offsetParent;\n offsetTop += top_1;\n offsetLeft += left;\n if (offsetParent === root.offsetParent) {\n break;\n }\n el2 = el2.offsetParent;\n }\n return { offsetTop, offsetLeft };\n}\nfunction setAttributes(attributes, element) {\n Object.keys(attributes).forEach(function(attrName) {\n if (isNil(attributes[attrName])) {\n element.removeAttribute(attrName);\n } else {\n element.setAttribute(attrName, attributes[attrName]);\n }\n });\n}\nfunction replaceBRWithEmptyBlock(html2) {\n var replacedHTML = html2.replace(/
<\\/p>/gi, \"