Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@progress/kendo-editor-common

Package Overview
Dependencies
Maintainers
1
Versions
376
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@progress/kendo-editor-common - npm Package Compare versions

Comparing version 0.5.0-dev.201912130922 to 0.5.0-dev.202004271514

NOTICE.txt

4

dist/cdn/js/kendo-editor-common.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prosemirror-state"),require("prosemirror-model"),require("prosemirror-transform"),require("prosemirror-schema-list"),require("prosemirror-commands"),require("prosemirror-tables"),require("prosemirror-history"),require("prosemirror-inputrules")):"function"==typeof define&&define.amd?define(["prosemirror-state","prosemirror-model","prosemirror-transform","prosemirror-schema-list","prosemirror-commands","prosemirror-tables","prosemirror-history","prosemirror-inputrules"],t):"object"==typeof exports?exports.KendoEditorCommon=t(require("prosemirror-state"),require("prosemirror-model"),require("prosemirror-transform"),require("prosemirror-schema-list"),require("prosemirror-commands"),require("prosemirror-tables"),require("prosemirror-history"),require("prosemirror-inputrules")):e.KendoEditorCommon=t(e["prosemirror-state"],e["prosemirror-model"],e["prosemirror-transform"],e["prosemirror-schema-list"],e["prosemirror-commands"],e["prosemirror-tables"],e["prosemirror-history"],e["prosemirror-inputrules"])}(window,(function(e,t,n,r,o,i,a,s){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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="",n(n.s=15)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0),i=n(4),a=n(6),s=n(8);t.changeStyles=function(e,t){var n=t.style,r=t.value,o=t.newValue,i=[];if(e){var a=e.split(/\s*;\s*/).filter((function(e){return e})),s=a.filter((function(e){if(!e.toLowerCase().trim().startsWith(n))return!0;var t=e.split(":")[1].trim();return!r.test(t)||(i.push(t),!1)}));return o&&s.push(n+": "+o),{style:s.join("; ")+(s.length?";":""),changed:!!o||s.length!==a.length,styleMatches:i}}return{changed:!1,styleMatches:i,style:null}},t.changeStyle=function(e,t){return function(n,r,o){var s=n.selection,l=s.empty,u=s.$cursor,c=s.ranges;if(l&&!u||!i.markApplies(n.doc,c,e))return!1;var f=!1;if(r)if(o=o||n.tr,u){var d=n.storedMarks||u.marks();if(e.isInSet(d)){var p=a.changeStyleFromMark(d,t);r(o.removeStoredMark(e)),r(o.addStoredMark(e.create({style:p.style}))),f=!0}}else{for(var m=0;m<c.length;m++){var g=c[m],v=g.$from,y=g.$to;f=a.changeStyleMark(o,v.pos,y.pos,t,e)}f&&(o.scrollIntoView(),r(o))}return f}},t.canInsert=function(e,t){for(var n=e.selection.$from,r=n.depth;r>=0;r--){var o=n.index(r);if(n.node(r).canReplaceWith(o,o,t))return!0}return!1},t.getTypeName=function(e){return e instanceof r.Node?e.type.name:e.name},t.findParentNode=function(e){return function(t){for(var n=t.$from,r=n.depth;r>0;r--){var o=n.node(r);if(e(o))return{depth:r,node:o}}}},t.findNthParentNode=function(e,t){return void 0===t&&(t=1),function(n){for(var r=n.$from,o=r.depth;o>0;o--){var i=r.node(o);if(e(i)&&0===(t-=1))return{depth:o,node:i}}}},t.findNthParentNodeOfType=function(e,n){return void 0===n&&(n=1),function(r){return t.findNthParentNode((function(n){return t.getTypeName(n)===t.getTypeName(e)}),n)(r)}},t.insertNode=function(e,t){return function(n,r){var o=n.tr.replaceSelectionWith(e);t&&o.scrollIntoView(),r(o)}},t.isNullOrUndefined=function(e){return null==e},t.safeString=function(e){return t.isNullOrUndefined(e)?"":e.toString()},t.hasSameMarkup=function(e,t,n,o){var i=r.Fragment.from(s.parseContent(e,n,o)),a=r.Fragment.from(s.parseContent(t,n,o));return i.eq(a)},t.first=function(e){return e[0]},t.last=function(e){return e[e.length-1]},t.split=function(e){return function(t){return t.split(e)}},t.trim=function(e){return e.trim()},t.filter=function(e){return function(t){return t.filter(e)}},t.getUniqueStyleValues=function(e,n){if(e.hasNodesWithoutMarks)return"";var r=e.marks.filter((function(e){return"style"===e.type.name})).map((function(e){return e.attrs.style})).map(t.split(";")).map(t.filter((function(e){return e.includes(n)}))).map((function(e){return 0!==e.length?e:[n+": INVALID"]})).map(t.first).map(t.split(":")).map(t.last).map(t.trim).reduce((function(e,t){return e.indexOf(t)>-1?e:e.concat([t])}),[]);return r.indexOf("INVALID")>-1||1!==r.length?"":r[0]},t.getSelectionText=function(e){var t=e.selection;if(t instanceof o.TextSelection||t instanceof o.AllSelection){var n=t.content().content;return n.textBetween(0,n.size)}return""},t.getNodeFromSelection=function(e){if(e.selection instanceof o.NodeSelection)return e.selection.node},t.indentHtml=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return f})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return h})),n.d(t,"__asyncDelegator",(function(){return k})),n.d(t,"__asyncValues",(function(){return b})),n.d(t,"__makeTemplateObject",(function(){return M})),n.d(t,"__importStar",(function(){return _})),n.d(t,"__importDefault",(function(){return S}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prosemirror-state"),require("prosemirror-model"),require("prosemirror-transform"),require("prosemirror-schema-list"),require("prosemirror-commands"),require("prosemirror-tables"),require("prosemirror-history"),require("prosemirror-inputrules")):"function"==typeof define&&define.amd?define(["prosemirror-state","prosemirror-model","prosemirror-transform","prosemirror-schema-list","prosemirror-commands","prosemirror-tables","prosemirror-history","prosemirror-inputrules"],t):"object"==typeof exports?exports.KendoEditorCommon=t(require("prosemirror-state"),require("prosemirror-model"),require("prosemirror-transform"),require("prosemirror-schema-list"),require("prosemirror-commands"),require("prosemirror-tables"),require("prosemirror-history"),require("prosemirror-inputrules")):e.KendoEditorCommon=t(e["prosemirror-state"],e["prosemirror-model"],e["prosemirror-transform"],e["prosemirror-schema-list"],e["prosemirror-commands"],e["prosemirror-tables"],e["prosemirror-history"],e["prosemirror-inputrules"])}(window,(function(e,t,n,r,o,i,a,s){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},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(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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="",n(n.s=15)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0),i=n(4),a=n(6),s=n(8);t.changeStyles=function(e,t){var n=t.style,r=t.value,o=t.newValue,i=[];if(e){var a=e.split(/\s*;\s*/).filter((function(e){return e})),s=a.filter((function(e){if(!e.toLowerCase().trim().startsWith(n))return!0;var t=e.split(":")[1].trim();return!r.test(t)||(i.push(t),!1)}));return o&&s.push(n+": "+o),{style:s.join("; ")+(s.length?";":""),changed:!!o||s.length!==a.length,styleMatches:i}}return{changed:!1,styleMatches:i,style:null}},t.changeStyle=function(e,t){return function(n,r,o){var s=n.selection,l=s.empty,u=s.$cursor,c=s.ranges;if(l&&!u||!i.markApplies(n.doc,c,e))return!1;var f=!1;if(r)if(o=o||n.tr,u){var d=n.storedMarks||u.marks();if(e.isInSet(d)){var p=a.changeStyleFromMark(d,t);r(o.removeStoredMark(e)),r(o.addStoredMark(e.create({style:p.style}))),f=!0}}else{for(var m=0;m<c.length;m++){var g=c[m],v=g.$from,y=g.$to;f=a.changeStyleMark(o,v.pos,y.pos,t,e)}f&&(o.scrollIntoView(),r(o))}return f}},t.canInsert=function(e,t){for(var n=e.selection.$from,r=n.depth;r>=0;r--){var o=n.index(r);if(n.node(r).canReplaceWith(o,o,t))return!0}return!1},t.getTypeName=function(e){return e instanceof r.Node?e.type.name:e.name},t.findParentNode=function(e){return function(t){for(var n=t.$from,r=n.depth;r>0;r--){var o=n.node(r);if(e(o))return{depth:r,node:o}}}},t.findNthParentNode=function(e,t){return void 0===t&&(t=1),function(n){for(var r=n.$from,o=r.depth;o>0;o--){var i=r.node(o);if(e(i)&&0===(t-=1))return{depth:o,node:i}}}},t.findNthParentNodeOfType=function(e,n){return void 0===n&&(n=1),function(r){return t.findNthParentNode((function(n){return t.getTypeName(n)===t.getTypeName(e)}),n)(r)}},t.insertNode=function(e,t){return function(n,r){var o=n.tr.replaceSelectionWith(e);t&&o.scrollIntoView(),r(o)}},t.isNullOrUndefined=function(e){return null==e},t.safeString=function(e){return t.isNullOrUndefined(e)?"":e.toString()},t.hasSameMarkup=function(e,t,n,o){var i=r.Fragment.from(s.parseContent(e,n,o)),a=r.Fragment.from(s.parseContent(t,n,o));return i.eq(a)},t.first=function(e){return e[0]},t.last=function(e){return e[e.length-1]},t.split=function(e){return function(t){return t.split(e)}},t.trim=function(e){return e.trim()},t.filter=function(e){return function(t){return t.filter(e)}},t.getUniqueStyleValues=function(e,n){if(e.hasNodesWithoutMarks)return"";var r=e.marks.filter((function(e){return"style"===e.type.name})).map((function(e){return e.attrs.style})).map(t.split(";")).map(t.filter((function(e){return e.includes(n)}))).map((function(e){return 0!==e.length?e:[n+": INVALID"]})).map(t.first).map(t.split(":")).map(t.last).map(t.trim).reduce((function(e,t){return e.indexOf(t)>-1?e:e.concat([t])}),[]);return r.indexOf("INVALID")>-1||1!==r.length?"":r[0]},t.getSelectionText=function(e){var t=e.selection;if(t instanceof o.TextSelection||t instanceof o.AllSelection){var n=t.content().content;return n.textBetween(0,n.size)}return""},t.getNodeFromSelection=function(e){if(e.selection instanceof o.NodeSelection)return e.selection.node},t.indentHtml=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return o})),n.d(t,"__assign",(function(){return i})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return f})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return h})),n.d(t,"__asyncDelegator",(function(){return k})),n.d(t,"__asyncValues",(function(){return b})),n.d(t,"__makeTemplateObject",(function(){return M})),n.d(t,"__importStar",(function(){return _})),n.d(t,"__importDefault",(function(){return S})),n.d(t,"__classPrivateFieldGet",(function(){return I})),n.d(t,"__classPrivateFieldSet",(function(){return w}));
/*! *****************************************************************************

@@ -16,2 +16,2 @@ Copyright (c) Microsoft Corporation. All rights reserved.

***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function d(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function h(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(l,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function k(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function M(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=n(3),i=n(0),a=n(6);t.markApplies=function(e,t,n){for(var r=function(r){var o=t[r],i=o.$from,a=o.$to,s=0===i.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(i.pos,a.pos,(function(e){if(s)return!1;s=e.inlineContent&&e.type.allowsMarkType(n)})),s)return{v:!0}},o=0;o<t.length;o++){var i=r(o);if(i)return i.v}return!1},t.toggleMark=function(e,n,r){return function(o,i){var a=o.selection,s=a.empty,l=a.$cursor,u=a.ranges;if(s&&!l||!t.markApplies(o.doc,u,e))return!1;if(i)if(l)e.isInSet(o.storedMarks||l.marks())?i(r.removeStoredMark(e)):i(r.addStoredMark(e.create(n)));else{for(var c=!1,f=0;!c&&f<u.length;f++){var d=u[f],p=d.$from,m=d.$to;c=o.doc.rangeHasMark(p.pos,m.pos,e)}for(f=0;f<u.length;f++){var g=u[f];p=g.$from,m=g.$to;c?r.removeMark(p.pos,m.pos,e):r.addMark(p.pos,m.pos,e.create(n))}i(r.scrollIntoView())}return!0}},t.removeMark=function(e,t,n,i){void 0===i&&(i=null);var a=[],s=0;return e.doc.nodesBetween(t,n,(function(e,r){if(e.isInline){s++;var l=null;if(i instanceof o.MarkType){var u=i.isInSet(e.marks);u&&(l=[u])}else i?i.isInSet(e.marks)&&(l=[i]):l=e.marks;if(l&&l.length)for(var c=Math.min(r+e.nodeSize,n),f=0;f<l.length;f++){for(var d=l[f],p=void 0,m=0;m<a.length;m++){var g=a[m];g.step===s-1&&d.eq(g.style)&&(p=g)}p?(p.to=c,p.step=s):a.push({style:d,from:Math.max(r,t),to:c,step:s})}}})),a.forEach((function(t){return e.step(new r.RemoveMarkStep(t.from,t.to,t.style))})),e},t.removeMarks=function(e,n,r,o){var i=n.selection,a=i.$cursor,s=i.ranges;if(o=o||n.tr,a)e.forEach((function(e){e.isInSet(n.storedMarks||a.marks())&&r(o.removeStoredMark(e))}));else{for(var l=function(n){var r=s[n],i=r.$from,a=r.$to;e.forEach((function(e){t.removeMark(o,i.pos,a.pos,e)}))},u=0;u<s.length;u++)l(u);r(o.scrollIntoView())}return!0};t.removeAllMarks=function(e){var t=(void 0===e?{}:e).except,n=void 0===t?[]:t;return function(e,t){var r,o=e.schema,i=e.selection,a=i.$cursor,s=i.from,l=i.to,u=e.tr,c=(r=n,r instanceof Array?r:[r]).map((function(e){return e.name}));a||(Object.keys(o.marks).map((function(e){return o.marks[e]})).filter((function(e){return-1===c.indexOf(e.name)})).forEach((function(e){return u.removeMark(s,l,e)})),t(u))}},t.getParentMark=function(e,t){var n=e.selection,r=n.from,o=n.$from,i=n.to,a=n.empty,s=e.doc;if(a)return t.isInSet(e.storedMarks||o.marks())||null;var l=[];return s.nodesBetween(r,i,(function(e){e.isInline&&l.push(t.isInSet(e.marks))})),1===l.length&&l[0]?l[0]:null},t.hasMark=function(e,t){var n,r=e.schema.marks,o=(t.altMarks||[]).filter((function(e){return r[e]})),i=t.altStyle,s=e.selection,l=s.from,u=s.$from,c=s.to,f=s.empty,d=r[t.mark],p=e.doc,m=!1;return f?(n=e.storedMarks||u.marks(),m=d&&d.isInSet(n)||o.some((function(e){return r[e].isInSet(n)}))):m=d&&p.rangeHasMark(l,c,d)||o.some((function(e){return p.rangeHasMark(l,c,r[e])})),!m&&i?a.hasStyle(e,i):Boolean(m)},t.getMark=function(e,t){var n,r=e.selection,o=r.from,i=r.$from,a=r.to,s=r.empty,l=e.doc;if(s)n=t.isInSet(e.storedMarks||i.marks());else{var u=[];l.nodesBetween(o,a,(function(e){e.isInline&&u.push(t.isInSet(e.marks))})),u.some((function(e){return!e}))||(n=u[u.length-1])}return n};t.getActiveMarks=function(e,t){var n=e.selection,r=!1;if(n instanceof i.TextSelection&&n.$cursor)return{hasNodesWithoutMarks:r,marks:n.$cursor.marks().filter((function(e){return!t||e.type.name===t.name}))};var o=[];return n.content().content.descendants((function(e){if("text"===e.type.name){var n=t?function(e,t){return t.marks.filter((function(t){return t.type.name===e.name}))}(t,e):e.marks;e.marks.length>0&&n.length>0?o.push.apply(o,n):r=!0}})),{hasNodesWithoutMarks:r,marks:o}}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(5),i=n(1),a=n(4);t.changeStyleFromMark=function(e,t){var n=e.find((function(e){return"style"===e.type.name})),r=n&&n.attrs.style;return i.changeStyles(r,t)},t.changeStyleMark=function(e,n,i,a,s){var l=s.create({style:a.style}),u=[],c=[],f=null,d=null;return e.doc.nodesBetween(n,i,(function(e,p,m){if(e.isInline){var g=e.marks;if(!l.isInSet(g)&&m.type.allowsMarkType(l.type)){var v=Math.max(p,n),y=Math.min(p+e.nodeSize,i),h=t.changeStyleFromMark(g,a);if(h.changed||a.newValue){for(var k=h.changed?{style:h.style||null}:{style:[a.style]+": "+a.newValue+";"},b=s.isInSet(g)?g.find((function(e){return"style"===e.type.name})):null,M=b?r.__assign({},b.attrs,k):k,_=s.create(M),S=_.addToSet(g),I=0;I<g.length;I++)g[I].isInSet(S)||(f&&f.to===v&&f.mark.eq(g[I])?f.to=y:(f=new o.RemoveMarkStep(v,y,g[I]),u.push(f)));var O=d&&d.to===v,w=O&&_.attrs.style===d.mark.attrs.style;O&&w?d.to=y:Object.keys(M).some((function(e){return null!==M[e]}))&&(d=new o.AddMarkStep(v,y,_),c.push(d))}}}})),u.forEach((function(t){return e.step(t)})),c.forEach((function(t){return e.step(t)})),u.length+c.length>0},t.hasStyle=function(e,n){var r=e.selection,o=r.from,i=r.$from,a=r.to,s=r.empty,l=!1,u={style:n.name,value:n.value};return s?l=t.changeStyleFromMark(e.storedMarks||i.marks(),u).changed:e.doc.nodesBetween(o,a,(function(e,n,r){!l&&e.isInline&&(l=t.changeStyleFromMark(e.marks,u).changed)})),l},t.getInlineStyles=function(e,n){var r,o=e.selection,i=o.from,a=o.$from,s=o.to,l=o.empty,u=[],c={style:n.name,value:n.value};return l?(r=t.changeStyleFromMark(e.storedMarks||a.marks(),c)).changed&&(u=r.styleMatches):e.doc.nodesBetween(i,s,(function(e,n,o){e.isInline&&((r=t.changeStyleFromMark(e.marks,c)).changed?u.push.apply(u,r.styleMatches):u.push(null))})),u.filter((function(e){return null!==e}))},t.changeStyle=function(e,n){return function(o,i,s){var l=o.selection,u=l.empty,c=l.$cursor,f=l.ranges;if(u&&!c||!a.markApplies(o.doc,f,e))return!1;var d=!1;if(i)if(s=s||o.tr,c){var p=o.storedMarks||c.marks();if(e.isInSet(p)){var m=t.changeStyleFromMark(p,n),g=p.find((function(e){return"style"===e.type.name})),v=r.__assign({},g?g.attrs:{},{style:m.style||null});i(s.removeStoredMark(e)),Object.keys(v).some((function(e){return null!==v[e]}))&&i(s.addStoredMark(e.create(v))),d=!0}}else{for(var y=0;y<f.length;y++){var h=f[y],k=h.$from,b=h.$to;d=t.changeStyleMark(s,k.pos,b.pos,n,e)}d&&(s.scrollIntoView(),i(s))}return d}},t.toggleInlineFormat=function(e,n,r){return function(o,i){var s=o.schema.marks,l=e.altStyle,u=e.altMarks,c=void 0===u?[]:u,f=e.mark;n=n||o.tr;var d=!1,p=!1,m=function(){return p=!0};if(l&&s.style){var g=s.style;d=t.changeStyle(g,{style:l.name,value:l.value})(o,m,n)}var v=[f].concat(c).filter((function(e){return s[e]})).map((function(e){return a.hasMark(o,{mark:e})&&s[e]})).filter((function(e){return e}));return v.length?a.removeMarks(v,o,m,n):d||a.toggleMark(s[f],r,n)(o,m),p&&i(n),p}},t.applyInlineStyle=function(e,n){return function(o,s){var l=o.schema.marks.style,u={style:e.style,value:/^.+$/,newValue:e.value},c=o.tr;n&&c.setMeta("commandName",n),c.setMeta("args",e);var f=o.selection,d=f.empty,p=f.$cursor,m=f.ranges;if(d&&!p||!a.markApplies(o.doc,m,l))return!1;if(p){var g=o.storedMarks||p.marks(),v=l.isInSet(g)?g.find((function(e){return"style"===e.type.name})):null,y={style:null};if(v&&v.attrs.style){var h=i.changeStyles(v.attrs.style,u);h.changed&&h.style&&(y.style=h.style)}else u.newValue&&(y.style=[u.style]+": "+u.newValue+";");var k=v?r.__assign({},v.attrs,y):y;return Object.keys(k).some((function(e){return null!==k[e]}))?s(c.addStoredMark(l.create(k))):s(c.removeStoredMark(l)),!0}return t.changeStyle(l,u)(o,s,c)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(1),i=n(5),a=n(3),s=n(0);t.changeBlockNode=function(e,t,n,r,o,s){var l=e.selection,u=l.from,c=l.to,f=!1;if(e.doc.nodesBetween(u,c,(function(t,n){if(f)return!1;if(t.isTextblock&&!t.hasMarkup(o,s))if(t.type===o)f=!0;else{var r=e.doc.resolve(n),i=r.index();f=r.parent.canReplaceWith(i,i+1,o)}})),!f)return!1;if(t){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var d=n.steps.length;n.doc.nodesBetween(u,c,(function(e,t){if(e.eq(r)&&e.isTextblock&&!e.hasMarkup(o,s)&&function(e,t,n){var r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(n.doc,n.mapping.slice(d).map(t),o)){n.clearIncompatible(n.mapping.slice(d).map(t,1),o);var l=n.mapping.slice(d),u=l.map(t,1),c=l.map(t+e.nodeSize,1),f=new a.Slice(a.Fragment.from(o.create(s,null,e.marks)),0,0);return n.step(new i.ReplaceAroundStep(u,c,u+1,c-1,f,1,!0)),!1}}))}return!0},t.blockNodes=function(e){var t=e.selection,n=t.from,r=t.to,o=t.$from,i=[];return t.node?t.node.isBlock?i.push(t.node):o.parent&&o.parent.isBlock&&i.push(o.parent):e.doc.nodesBetween(n,r,(function(e){e.isBlock&&i.push(e)})),i},t.formatBlockElements=function(e,n){return function(o,i){var a=t.blockNodes(o),s=o.schema.nodes,l=!1,u=o.tr;return u.setMeta("commandName",n),u.setMeta("args",{value:e}),a.forEach((function(n){if(n.type.isTextblock)if("p"===e){var a=n.attrs,c=a.level,f=r.__rest(a,["level"]);l=t.changeBlockNode(o,i,u,n,s.paragraph,f)||l}else if(/^h[1-6]$/i.test(e)){c=parseInt(e.substr(1),10);l=t.changeBlockNode(o,i,u,n,s.heading,r.__assign({},n.attrs,{level:c}))||l}else if("blockquote"===e){var d=n.attrs;c=d.level,f=r.__rest(d,["level"]);l=t.changeBlockNode(o,i,u,n,s.blockquote,f)||l}})),l&&i(u.scrollIntoView()),l}},t.getBlockFormats=function(e){var n=t.blockNodes(e),r=e.schema.nodes,o=[];return n.forEach((function(e){if(e.type===r.paragraph)o.push("p");else if(e.type===r.heading)for(var t=1;t<=6;t++)if(e.attrs.level===t){o.push("h"+t);break}})),o},t.addStyles=function(e,t){var n=e.attrs.style,r=null,i=null;n&&t.forEach((function(e){i={style:e.name,value:/^.+$/,newValue:e.value},r=o.changeStyles(n,i),n=r.changed?r.style:n}));return n=n||t.reduce((function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""}),""),Object.assign({},e.attrs,{style:n||null})},t.hasNode=function(e,t){var n=e.selection,r=n.from,o=n.to,i=!1;return e.doc.nodesBetween(r,o,(function(e){return!(i=i||e.type===t)})),i};var l=function(e){return function(e,t){return Object.keys(e).filter((function(e){return t(e)})).reduce((function(t,n){var r;return Object.assign(t,((r={})[n]=e[n],r))}),{})}(e,(function(t){return null!==e[t]&&void 0!==e[t]&&""!==e[t]}))};t.getNodeTagName=function(e,t){var n,r=e.type.spec.parseDOM||[],o=e.attrs;return(n=1===r.length?r[0]:r.find((function(n){var r=a.DOMSerializer.fromSchema(t).serializeNode(e);return JSON.stringify(n.getAttrs(r))===JSON.stringify(l(o))})))?n.tag.toLowerCase().replace(/ *\[[^\]]*]/,""):""},t.activeNode=function(e){var n,r=e.schema.nodes.doc;if(e.selection instanceof s.AllSelection)n=e.doc;else if(e.selection instanceof s.TextSelection){var i=e.selection.$anchor,a=i.node(i.blockRange().depth);n=o.getTypeName(a)===o.getTypeName(r)?i.node():a}else e.selection instanceof s.NodeSelection&&(n=e.selection.node);return{name:o.getTypeName(n),tag:t.getNodeTagName(n,e.schema)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0),i=n(1);t.parseContent=function(e,t,n){var o=document.createElement("div");return o.innerHTML=i.safeString(e),r.DOMParser.fromSchema(t).parse(o,n)},t.getHtml=function(e){var t=r.DOMSerializer.fromSchema(e.schema).serializeFragment(e.doc.content),n=document.createElement("div");return n.appendChild(t),n.innerHTML},t.setHtml=function(e,n,r){return void 0===n&&(n="setHTML"),void 0===r&&(r={preserveWhitespace:"full"}),function(i,a){return a(i.tr.setSelection(new o.AllSelection(i.doc)).replaceSelectionWith(t.parseContent(e,i.schema,r)).setMeta("commandName",n))}}},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(11);t.indentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"}],listsTypes:r.__assign({},o.listsTypes)},t.outdentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"}],listsTypes:r.__assign({},o.listsTypes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.listsTypes={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},t.orderedList={listType:t.listsTypes.orderedList,types:r.__assign({},t.listsTypes)},t.bulletList={listType:t.listsTypes.bulletList,types:r.__assign({},t.listsTypes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(3),i=n(0),a=n(5),s=n(13),l=n(9),u=n(11);function c(e,n,r){var o=e.selection,i=o.from,a=o.to,s=e.schema.nodes,l=s.paragraph,u=s.heading,c=[];n.doc.nodesBetween(i,a,(function(e,t){e.type!==l&&e.type!==u||c.push({node:e,pos:t})}));for(var f=c.length-1;f>=0;f--){var d=c[f],p=n.doc.resolve(n.mapping.map(d.pos));if(p.depth>0){var m=void 0;m=d.node.textContent&&d.node.textContent.length>0?n.doc.resolve(n.mapping.map(d.pos+d.node.textContent.length)):n.doc.resolve(n.mapping.map(d.pos+1));var g=p.blockRange(m);g&&n.lift(g,t.getListLiftTarget(e.schema,p,r))}}return n}function f(e){return function(t,n,r){if(!r)return!1;var o=(t=r.state).schema.nodes[e.listType],i=t.selection,a=i.$from,s=i.$to,l=a.node(-2),u=a.node(-3),c=m(t.doc,a,s,o);return(l&&l.type===o||u&&u.type===o)&&c?y(e)(t,n):(c||(y(e)(t,n),t=r.state),h(o)(t,n))}}function d(e,t,n,r){r||(r=e.schema.nodes.listItem);var i=t.$from,s=t.$to,l=i.blockRange(s,(function(e){return e.childCount&&e.firstChild.type===r}));if(!l||l.depth<2||i.node(l.depth-1).type!==r)return n;var u=l.end,c=s.end(l.depth);return u<c&&(n.step(new a.ReplaceAroundStep(u-1,c,u,c,new o.Slice(o.Fragment.from(r.create(void 0,l.parent.copy())),1,0),1,!0)),l=new o.NodeRange(n.doc.resolve(i.pos),n.doc.resolve(c),l.depth)),n.lift(l,a.liftTarget(l)).scrollIntoView()}function p(e,t,n,r,o,a){a||(a=e.schema.nodes.listItem);var s=!1;return o.doc.nodesBetween(t,n,(function(n,l){if(!s&&n.type===a&&l>t){s=!0;for(var u=r+3;u>r+2;){var c=o.doc.resolve(o.mapping.map(l));u=c.depth;var f=o.doc.resolve(o.mapping.map(l+n.textContent.length)),p=new i.TextSelection(c,f);o=d(e,p,o,a)}}})),o}function m(e,t,n,r){return 0===g(e,t,n).filter((function(e){return e.type!==r})).length}function g(e,t,n){for(var r=Array(),o=v(e,t).depth,i=e.resolve(t.start(o));i.pos<=n.start(n.depth);){var a=Math.min(i.depth,o),s=i.node(a);if(s&&r.push(s),0===a)break;var l=e.resolve(i.after(a));if(l.start(a)>=e.nodeSize-2)break;l.depth!==i.depth&&(l=e.resolve(l.pos+2)),i=l.depth?e.resolve(l.start(l.depth)):e.resolve(l.end(l.depth))}return r}function v(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;for(var r=t.node(t.depth),o=t;t.depth>=1;)(r=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==n.indexOf(r.type.name)&&(o=t);return o}function y(e){return function(t,n){var r=t.tr,o=t.selection,s=o.$from,l=o.$to;return r.doc.nodesBetween(s.pos,l.pos,(function(n,o){if(n.isTextblock||"blockquote"===n.type.name||"div"===n.type.name){var s=new i.NodeSelection(r.doc.resolve(r.mapping.map(o))),l=s.$from.blockRange(s.$to);if(!l||s.$from.parent.type!==t.schema.nodes[e.listItem])return!1;var u=l&&a.liftTarget(l);if(null==u)return!1;r.lift(l,u)}})),n&&n(r),!0}}function h(e){return s.autoJoin(l.wrapInList(e),(function(t,n){return t.type===n.type&&t.type===e}))}t.rootListDepth=function(e,t){for(var n,r=t.bulletList,o=t.orderedList,i=t.listItem,a=e.depth-1;a>0;a--){var s=e.node(a);if(s.type!==r&&s.type!==o||(n=a),s.type!==r&&s.type!==o&&s.type!==i)break}return n},t.getListLiftTarget=function(e,t,n){for(var r=t.depth,o=e.nodes[n.bulletList],i=e.nodes[n.orderedList],a=e.nodes[n.listItem],s=t.depth;s>0;s--){var l=t.node(s);if(l.type!==o&&l.type!==i||(r=s),l.type!==o&&l.type!==i&&l.type!==a)break}return r-1},t.liftSelectionList=c,t.toggleList=function(e,n,r,o,i){var a=o.listType,s=e.selection,l=s.$from.node(s.$from.depth-2),u=s.$to.node(s.$to.depth-2);if(l&&l.type.name===a&&u&&u.type.name===a){var d=r.state.schema.nodes,m={bulletList:d[o.bulletList],orderedList:d[o.orderedList],listItem:d[o.listItem]},g=t.rootListDepth(s.$to,m),v=p(e,s.$to.pos,s.$to.end(g),g,r.state.tr,m.listItem);return(v=c(e,v,o)).setMeta("commandName",i),n(v),!0}return f(o)(e,n,r)},t.toggleListCommand=f,t.liftFollowingList=p,t.isRangeOfType=m,t.getAncestorNodesBetween=g,t.findAncestorPosition=v,t.liftListItems=y,t.wrapInList=h,t.toggleUnorderedList=function(e,n,o){return t.toggleList(e,n,o,r.__assign({listType:u.bulletList.listType},u.bulletList.types))},t.toggleOrderedList=function(e,n,o){return t.toggleList(e,n,o,r.__assign({listType:u.orderedList.listType},u.orderedList.types))},t.splitListItemKeepMarks=function(e){return function(t,n){return l.splitListItem(e)(t,(function(e){var r=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();r&&e.ensureMarks(r),n(e)}))}}},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,o=function(e){return/^MsoListParagraph/.test(e.className)},i=function(e){var t=e.innerHTML;return t=(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},a=function(e,t){var n=document.createElement(e);return n.style.listStyleType=t,n},s=function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},l=function(e,t){var n=[];Array.from(e).forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE){var r=e;r.getAttribute("datalist")?(n.push(e),t.add(n)):o(r)&&n.length?n.push(e):(n=[],"DIV"===r.nodeName?l(r.children,t):"TABLE"===r.nodeName&&Array.from(r.querySelectorAll("td,th")).forEach((function(e){l(e.children,t)})))}}))},u=function(e){var t,n=e.innerHTML,r=function(e){return e.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")};return n=n.replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g," "),/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(n)?{tag:"ul",style:(t=r(i(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(t)?null:/^o/.test(t)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(n)?{tag:"ol",style:s(r(i(e)))}:void 0},c=function(e){var t,n=e.nodeName.toLowerCase();e.firstChild&&e.firstChild.nodeType===Node.COMMENT_NODE&&e.removeChild(e.firstChild),1===e.childNodes.length?t=e.firstChild.nodeType===Node.TEXT_NODE?i(e):e.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(e.removeChild(e.firstChild),3===e.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(e.firstChild.nodeValue)&&e.removeChild(e.firstChild),/^(&nbsp;|\s)+$/i.test(e.firstChild.innerHTML)&&e.removeChild(e.firstChild),t="p"!==n?"<"+n+">"+e.innerHTML+"</"+n+">":e.innerHTML),e.parentNode.removeChild(e);var r=document.createElement("li");return r.innerHTML=t,r};t.convertMsLists=function(e){var t=document.createElement("div");t.innerHTML=function(e){return e=e.replace(r,(function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e}))}(e);var n=new Set;return l(t.children,n),n.forEach((function(e){return function(e){var t,n,r,i,s,l,f,d,p,m,g,v,y,h=-1,k={};for(d=0;d<e.length;d++){var b=(y={datalist:(p=e[d]).getAttribute("datalist"),datalevel:p.getAttribute("datalevel")}).datalist,M=u(p);if(m=M&&M.tag){if(g=y.datalevel||parseFloat(p.style.marginLeft||0),y.datalevel||p.style.marginLeft){var _=m+b;k[g]||(k[g]={}),(!n||n<0)&&(n=g,r=b,i=(f=e.filter((function(e){return e.getAttribute("datalist")===String(r)})))[f.length-1],l=a(m,M&&M.style),p.parentNode.insertBefore(l,p),h=g,k[g][_]=l),s=i===p,v=k[g][_],(g>h||!v)&&(v=a(m,M&&M.style),k[g][_]=v,t.appendChild(v)),t=c(p),v.appendChild(t),s?n=h=-1:h=g}}else!t||s&&!o(p)||(p.style.marginLeft&&(p.style.marginLeft=""),p.style.marginLeft&&(p.style.margin=""),t.appendChild(p))}}(e)})),t.innerHTML}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);t.getHtml=r.getHtml,t.setHtml=r.setHtml,t.parseContent=r.parseContent;var o=n(6);t.applyInlineStyle=o.applyInlineStyle,t.getInlineStyles=o.getInlineStyles,t.toggleInlineFormat=o.toggleInlineFormat;var i=n(16);t.applyLink=i.applyLink,t.removeLink=i.removeLink;var a=n(17);t.insertText=a.insertText;var s=n(18);t.insertImage=s.insertImage;var l=n(19);t.alignBlocks=l.alignBlocks,t.isAligned=l.isAligned;var u=n(7);t.hasNode=u.hasNode,t.activeNode=u.activeNode,t.formatBlockElements=u.formatBlockElements,t.getBlockFormats=u.getBlockFormats;var c=n(4);t.hasMark=c.hasMark,t.getMark=c.getMark,t.getActiveMarks=c.getActiveMarks,t.removeAllMarks=c.removeAllMarks;var f=n(20);t.indent=f.indent,t.canIndentAsListItem=f.canIndentAsListItem,t.outdent=f.outdent,t.canOutdentAsListItem=f.canOutdentAsListItem,t.isIndented=f.isIndented,t.canBeIndented=f.canBeIndented,t.indentBlocks=f.indentBlocks;var d=n(12);t.toggleOrderedList=d.toggleOrderedList,t.toggleUnorderedList=d.toggleUnorderedList,t.toggleList=d.toggleList;var p=n(1);t.hasSameMarkup=p.hasSameMarkup,t.getUniqueStyleValues=p.getUniqueStyleValues,t.getSelectionText=p.getSelectionText,t.getNodeFromSelection=p.getNodeFromSelection,t.canInsert=p.canInsert,t.insertNode=p.insertNode,t.indentHtml=p.indentHtml;var m=n(21);t.alignLeftRules=m.alignLeftRules,t.alignCenterRules=m.alignCenterRules,t.alignRightRules=m.alignRightRules,t.alignJustifyRules=m.alignJustifyRules,t.alignRemoveRules=m.alignRemoveRules;var g=n(10);t.indentRules=g.indentRules,t.outdentRules=g.outdentRules;var v=n(22);t.nodes=v.nodes,t.marks=v.marks;var y=n(24);t.buildKeymap=y.buildKeymap,t.buildListKeymap=y.buildListKeymap;var h=n(27);t.bold=h.bold,t.italic=h.italic,t.underline=h.underline,t.strikethrough=h.strikethrough,t.subscript=h.subscript,t.superscript=h.superscript,t.link=h.link;var k=n(28);t.sanitize=k.sanitize,t.removeComments=k.removeComments,t.removeTag=k.removeTag,t.pasteCleanup=k.pasteCleanup,t.sanitizeClassAttr=k.sanitizeClassAttr,t.sanitizeStyleAttr=k.sanitizeStyleAttr,t.removeAttribute=k.removeAttribute;var b=n(14);t.convertMsLists=b.convertMsLists;var M=n(29);t.createTable=M.createTable},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),o=n(4),i=n(0);t.removeLink=function(e,t){return function(n,i){var a=n.selection.$cursor;if(a){var s=a.parent,l=a.index(),u=n.schema.marks[e.mark],c=s.child(l).marks.find((function(e){return e.type===u})),f=s.childCount,d=a.pos-a.textOffset,p=s.child(l).nodeSize,m=void 0,g=void 0;for(m=l-1;m>=0&&c.isInSet(s.child(m).marks);)p+=g=s.child(m).nodeSize,d-=g,m-=1;for(m=l+1;m<f&&c.isInSet(s.child(m).marks);)p+=s.child(m).nodeSize,m+=1;i(o.removeMark(t||n.tr,d,d+p,c))}else r.toggleInlineFormat(e,t)(n,i)}},t.applyLink=function(e,n){var a=e.mark,s=e.attrs;return void 0===n&&(n="link"),function(e,l){var u=e.schema.marks,c=e.tr;n&&(c.setMeta("commandName",n),c.setMeta("args",s));var f=!1,d=function(){return f=!0};if(o.getParentMark(e,u[a]))!function(e,t){return function(n,r){var o=n.selection,i=o.$cursor,a=o.from,s=o.to,l=n.schema.marks[e.mark];if(i){var u=i.parent,c=i.index(),f=u.child(c).marks.find((function(e){return e.type===l})),d=u.childCount,p=i.pos-i.textOffset,m=u.child(c).nodeSize,g=void 0,v=void 0;for(g=c-1;g>=0&&f.isInSet(u.child(g).marks);)m+=v=u.child(g).nodeSize,p-=v,g-=1;for(g=c+1;g<d&&f.isInSet(u.child(g).marks);)m+=u.child(g).nodeSize,g+=1;t.removeMark(p,p+m,l),t.addMark(p,p+m,l.create(e.attrs)),r(t)}else t.doc.nodesBetween(a,s,(function(n,o){n.isInline&&l.isInSet(n.marks)&&(t.removeMark(o,o+n.nodeSize,l),t.addMark(o,o+n.nodeSize,l.create(e.attrs)),r(t))}))}}({mark:a,attrs:s},c)(e,d);else{var p=e;o.hasMark(e,{mark:a})&&(t.removeLink({mark:a,attrs:s},c)(e,d),p=i.EditorState.create({doc:c.doc,selection:c.selection})),f?o.toggleMark(u[a],s,c)(p,d):r.toggleInlineFormat({mark:a},c,s)(p,d)}return f&&l(c),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertText=function(e){return function(t,n){n(t.tr.insertText(e.text,e.from,e.to))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.insertImage=function(e){return function(t,n){var o=t.schema.nodes.image,i=o.createAndFill(e);r.insertNode(i)(t,(function(t){return n(t.setMeta("commandName","insertImage").setMeta("args",e))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7);t.alignBlocks=function(e,t){return function(n,o){var i=r.blockNodes(n),a=n.tr;a.setMeta("commandName",t);var s=!1;return i.forEach((function(t){if(t.type.isTextblock){var i={},l=e.find((function(e){return e.node===t.type.name}));l&&(i=r.addStyles(t,l.style)),s=r.changeBlockNode(n,o,a,t,t.type,i)||s}})),s&&o(a.scrollIntoView()),s}},t.isAligned=function(e,t){var n=r.blockNodes(e),o=!1;return n.forEach((function(e){if(!o&&e.type.isTextblock&&e.attrs.style){var n=t.find((function(t){return t.node===e.type.name}));n&&(o=n.style.every((function(t){return!!t.value&&new RegExp(t.name+":\\s?"+t.value,"i").test(e.attrs.style)})))}})),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(10),i=n(7),a=n(1);t.indentBlocks=function(e,t,n){return function(r,o){var a=i.blockNodes(r),s=r.tr,l=!1;return s.setMeta("commandName",t),a.forEach((function(t){if(t.type.isTextblock){var a=void 0,u=e.find((function(e){return e.node===t.type.name}));if(u){var c="rtl"===n?u.rtlStyle:u.style,f={name:c,value:u.step>0?""+u.step+u.unit:""};if(t.attrs.style){var d=new RegExp(c+":\\s?(\\d+)"+u.unit,"i"),p=t.attrs.style.match(d);if(p){var m=parseFloat(p[1])+u.step;m=m<=0?"":m,f.value=""+m+(m?u.unit:"")}}a=i.addStyles(t,[f])}a&&(l=i.changeBlockNode(r,o,s,t,t.type,a)||l)}})),l&&o(s.scrollIntoView()),l}},t.isIndented=function(e,t,n){var r=i.blockNodes(e),o=!1;return r.forEach((function(e){if(!o&&e.type.isTextblock&&e.attrs.style){var r=t.find((function(t){return t.node===e.type.name}));if(r){var i="rtl"===n?r.rtlStyle:r.style,a=new RegExp(i+":\\s?\\d+"+r.unit,"i");o=a.test(e.attrs.style)}}})),o},t.canIndentAsListItem=function(e,t){return r.sinkListItem(t)(e)},t.canOutdentAsListItem=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],o=e.schema.nodes[t.listsTypes.orderedList],i=e.schema.nodes[t.listsTypes.bulletList],s=!!a.findNthParentNodeOfType(o,2)(e.selection),l=!!a.findNthParentNodeOfType(i,2)(e.selection);return(s||l)&&r.liftListItem(n)(e)},t.canBeIndented=function(e,n){var r=e.schema.nodes,a=r[o.indentRules.listsTypes.listItem];return(t.isIndented(e,n.nodes)||o.indentRules.nodes.some((function(t){return r[t.node]&&i.hasNode(e,r[t.node])})))&&!i.hasNode(e,a)},t.indent=function(e,n){var i=e.schema.nodes[o.indentRules.listsTypes.listItem],a=t.canBeIndented(e,o.indentRules);t.canIndentAsListItem(e,i)?r.sinkListItem(i)(e,n):a&&t.indentBlocks(o.indentRules.nodes)(e,n)},t.outdent=function(e,n){var i=e.schema.nodes[o.outdentRules.listsTypes.listItem],a=t.canBeIndented(e,o.outdentRules);t.canOutdentAsListItem(e,o.outdentRules)?r.liftListItem(i)(e,n):a&&t.indentBlocks(o.outdentRules.nodes)(e,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return{name:e,value:t}};t.alignLeftRules=[{node:"paragraph",style:[r("text-align","left")]},{node:"heading",style:[r("text-align","left")]},{node:"listItem",style:[r("text-align","left"),r("list-style-position","inside")]}],t.alignRightRules=[{node:"paragraph",style:[r("text-align","right")]},{node:"heading",style:[r("text-align","right")]},{node:"listItem",style:[r("text-align","right"),r("list-style-position","inside")]}],t.alignCenterRules=[{node:"paragraph",style:[r("text-align","center")]},{node:"heading",style:[r("text-align","center")]},{node:"listItem",style:[r("text-align","center"),r("list-style-position","inside")]}],t.alignJustifyRules=[{node:"paragraph",style:[r("text-align","justify")]},{node:"heading",style:[r("text-align","justify")]},{node:"listItem",style:[r("text-align","justify"),r("list-style-position","justify")]}],t.alignRemoveRules=[{node:"paragraph",style:[r("text-align","")]},{node:"heading",style:[r("text-align","")]},{node:"listItem",style:[r("text-align",""),r("list-style-position","")]}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(23),i=["blockquote",0],a=["hr"],s=["pre",["code",0]],l=["ol",0],u=["ul",0],c=["li",0],f=function(e){for(var t,n={},r=e.attributes,o=0;o<r.length;o++)n[(t=r[o]).name]=t.value;return n},d=function(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return!0;return!1},p=function(e,t){var n={};for(var r in e)r&&null!==e[r]&&r!==t&&(n[r]=e[r]);return n},m=function(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t},g=r.__assign({link:{attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:f}],toDOM:function(e){return["a",p(e.attrs),0]}}},m("strong"),m("b"),m("em"),m("i"),m("u"),m("del"),m("sub"),m("sup"),m("code"),{style:{attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"span",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["span",p(e.attrs),0]:["span",0]}}});t.marks=g;var v=r.__assign({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"p",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["p",p(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"div",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["div",p(e.attrs),0]:["div",0]}},blockquote:{attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:function(){return i}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return a}},heading:{attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return r.__assign({},f(e),{level:1})}},{tag:"h2",getAttrs:function(e){return r.__assign({},f(e),{level:2})}},{tag:"h3",getAttrs:function(e){return r.__assign({},f(e),{level:3})}},{tag:"h4",getAttrs:function(e){return r.__assign({},f(e),{level:4})}},{tag:"h5",getAttrs:function(e){return r.__assign({},f(e),{level:5})}},{tag:"h6",getAttrs:function(e){return r.__assign({},f(e),{level:6})}}],toDOM:function(e){return d(e.attrs,"level")?["h"+e.attrs.level,p(e.attrs,"level"),0]:["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:function(){return s}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:r.__assign({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["img",p(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["br",p(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return r.__assign({},f(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?d(e.attrs,"order")?["ol",p(e.attrs,"order"),0]:l:["ol",r.__assign({},p(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"ul",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["ul",p(e.attrs),0]:u}},list_item:{content:"block*",attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"li",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["li",p(e.attrs),0]:c},defining:!0}},o.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:{}}));t.nodes=v},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13),o=n(25),i=n(26),a=n(12),s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.buildKeymap=function(e){var t={};if(t["Mod-z"]=o.undo,t["Shift-Mod-z"]=o.redo,t.Backspace=r.chainCommands(i.undoInputRule,r.deleteSelection,r.joinBackward,r.selectNodeBackward),t.Enter=r.chainCommands(r.newlineInCode,r.createParagraphNear,r.liftEmptyBlock,r.splitBlockKeepMarks),s||(t["Mod-y"]=o.redo),e.marks.strong&&(t["Mod-b"]=r.toggleMark(e.marks.strong)),e.marks.em&&(t["Mod-i"]=r.toggleMark(e.marks.em)),e.marks.underline&&(t["Mod-u"]=r.toggleMark(e.marks.underline)),e.nodes.hardBreak){var n=e.nodes.hardBreak,a=r.chainCommands(r.exitCode,(function(e,t){return t(e.tr.replaceSelectionWith(n.create()).scrollIntoView()),!0}));t["Mod-Enter"]=a,t["Shift-Enter"]=a,s&&(t["Ctrl-Enter"]=a)}return t},t.buildListKeymap=function(e){var t={};return e.nodes.list_item&&(t.Enter=a.splitListItemKeepMarks(e.nodes.list_item)),t}},function(e,t){e.exports=a},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bold={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},t.italic={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},t.underline={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},t.strikethrough={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},t.subscript={mark:"sub"},t.superscript={mark:"sup"},t.link={mark:"link"},t.unlink={mark:"link"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);t.sanitize=function(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^[\s\S]+?<!--StartFragment-->\s*([\s\S]*?)\s*<!--EndFragment-->[\s\S]+$/,"$1")).replace(/<\/?[ovw]:[^>]*?>/gi,"")).replace(/<\\?\??xml[^>]*>/gi,"")).replace(/<(?:link|meta) [^>]+?>/gi,"")).replace(/<style[^>]*?>\s*<\/style>/gi,"")).replace(/<\/?st1:.*?>/gi,"")).replace(/<a name="[a-zA-Z0-9_]+">/gim,"")).replace(/v:shapes?="[^"]+"/gi,"")).replace(/<!\[if !supportLists\]>/gi,"")).replace(/<!\[endif\]>/gi,"")},t.removeComments=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},t.removeTag=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},t.removeAttribute=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},t.sanitizeClassAttr=function(e){/^Mso/.test(e.value)&&t.removeAttribute(e)};var o=/\s*;\s*/,i=/\s*:\s*/;t.sanitizeStyleAttr=function(e){var n,r,a=e.value.split(o).filter((function(e){return Boolean(e)})),s=e.ownerElement.style,l="";a.forEach((function(e){var t;t=e.split(i),n=t[0],r=t[1],void 0!==s[n]&&(l+=n+": "+r+"; ")})),(l=l.trim())?e.value=l:t.removeAttribute(e)};t.pasteCleanup=function(e,n){var o=e;if(n.convertMsLists&&(o=r.convertMsLists(o)),n.stripTags&&(o=t.removeTag(o,n.stripTags)),n.attributes){var i=document.createElement("div");i.innerHTML=o,Array.from(i.querySelectorAll("*")).forEach((function(e){return function(e,t){if(e.nodeType===Node.ELEMENT_NODE){for(var n=e.attributes.length-1;n>=0;n--){var r=e.attributes[n];t[r.name]?t[r.name](r):t["*"]&&t["*"](r)}"SPAN"===e.nodeName&&0===e.attributes.length&&function(e){var t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}(e)}}(e,n.attributes)})),o=i.innerHTML}return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTable=function(e,t,n){for(var r,o=e.table,i=e.table_row,a=e.table_cell,s=[],l=0;l<t+1;l++){r=[];for(var u=0;u<n+1;u++)r.push(a.createAndFill());s.push(i.createAndFill(void 0,r))}return o.createAndFill(void 0,s)}}])}));
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function d(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function v(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function h(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(l,u):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function k(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,o,(t=e[n](t)).done,t.value)}))}}}function M(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function S(e){return e&&e.__esModule?e:{default:e}}function I(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function w(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5),o=n(3),i=n(0),a=n(6);t.markApplies=function(e,t,n){for(var r=function(r){var o=t[r],i=o.$from,a=o.$to,s=0===i.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(i.pos,a.pos,(function(e){if(s)return!1;s=e.inlineContent&&e.type.allowsMarkType(n)})),s)return{v:!0}},o=0;o<t.length;o++){var i=r(o);if(i)return i.v}return!1},t.toggleMark=function(e,n,r){return function(o,i){var a=o.selection,s=a.empty,l=a.$cursor,u=a.ranges;if(s&&!l||!t.markApplies(o.doc,u,e))return!1;if(i)if(l)e.isInSet(o.storedMarks||l.marks())?i(r.removeStoredMark(e)):i(r.addStoredMark(e.create(n)));else{for(var c=!1,f=0;!c&&f<u.length;f++){var d=u[f],p=d.$from,m=d.$to;c=o.doc.rangeHasMark(p.pos,m.pos,e)}for(f=0;f<u.length;f++){var g=u[f];p=g.$from,m=g.$to;c?r.removeMark(p.pos,m.pos,e):r.addMark(p.pos,m.pos,e.create(n))}i(r.scrollIntoView())}return!0}},t.removeMark=function(e,t,n,i){void 0===i&&(i=null);var a=[],s=0;return e.doc.nodesBetween(t,n,(function(e,r){if(e.isInline){s++;var l=null;if(i instanceof o.MarkType){var u=i.isInSet(e.marks);u&&(l=[u])}else i?i.isInSet(e.marks)&&(l=[i]):l=e.marks;if(l&&l.length)for(var c=Math.min(r+e.nodeSize,n),f=0;f<l.length;f++){for(var d=l[f],p=void 0,m=0;m<a.length;m++){var g=a[m];g.step===s-1&&d.eq(g.style)&&(p=g)}p?(p.to=c,p.step=s):a.push({style:d,from:Math.max(r,t),to:c,step:s})}}})),a.forEach((function(t){return e.step(new r.RemoveMarkStep(t.from,t.to,t.style))})),e},t.removeMarks=function(e,n,r,o){var i=n.selection,a=i.$cursor,s=i.ranges;if(o=o||n.tr,a)e.forEach((function(e){e.isInSet(n.storedMarks||a.marks())&&r(o.removeStoredMark(e))}));else{for(var l=function(n){var r=s[n],i=r.$from,a=r.$to;e.forEach((function(e){t.removeMark(o,i.pos,a.pos,e)}))},u=0;u<s.length;u++)l(u);r(o.scrollIntoView())}return!0};t.removeAllMarks=function(e){var t=(void 0===e?{}:e).except,n=void 0===t?[]:t;return function(e,t){var r,o=e.schema,i=e.selection,a=i.$cursor,s=i.from,l=i.to,u=e.tr,c=(r=n,r instanceof Array?r:[r]).map((function(e){return e.name}));a||(Object.keys(o.marks).map((function(e){return o.marks[e]})).filter((function(e){return-1===c.indexOf(e.name)})).forEach((function(e){return u.removeMark(s,l,e)})),t(u))}},t.getParentMark=function(e,t){var n=e.selection,r=n.from,o=n.$from,i=n.to,a=n.empty,s=e.doc;if(a)return t.isInSet(e.storedMarks||o.marks())||null;var l=[];return s.nodesBetween(r,i,(function(e){e.isInline&&l.push(t.isInSet(e.marks))})),1===l.length&&l[0]?l[0]:null},t.hasMark=function(e,t){var n,r=e.schema.marks,o=(t.altMarks||[]).filter((function(e){return r[e]})),i=t.altStyle,s=e.selection,l=s.from,u=s.$from,c=s.to,f=s.empty,d=r[t.mark],p=e.doc,m=!1;return f?(n=e.storedMarks||u.marks(),m=d&&d.isInSet(n)||o.some((function(e){return r[e].isInSet(n)}))):m=d&&p.rangeHasMark(l,c,d)||o.some((function(e){return p.rangeHasMark(l,c,r[e])})),!m&&i?a.hasStyle(e,i):Boolean(m)},t.getMark=function(e,t){var n,r=e.selection,o=r.from,i=r.$from,a=r.to,s=r.empty,l=e.doc;if(s)n=t.isInSet(e.storedMarks||i.marks());else{var u=[];l.nodesBetween(o,a,(function(e){e.isInline&&u.push(t.isInSet(e.marks))})),u.some((function(e){return!e}))||(n=u[u.length-1])}return n};t.getActiveMarks=function(e,t){var n=e.selection,r=!1;if(n instanceof i.TextSelection&&n.$cursor)return{hasNodesWithoutMarks:r,marks:n.$cursor.marks().filter((function(e){return!t||e.type.name===t.name}))};var o=[];return n.content().content.descendants((function(e){if("text"===e.type.name){var n=t?function(e,t){return t.marks.filter((function(t){return t.type.name===e.name}))}(t,e):e.marks;e.marks.length>0&&n.length>0?o.push.apply(o,n):r=!0}})),{hasNodesWithoutMarks:r,marks:o}}},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(5),i=n(1),a=n(4);t.changeStyleFromMark=function(e,t){var n=e.find((function(e){return"style"===e.type.name})),r=n&&n.attrs.style;return i.changeStyles(r,t)},t.changeStyleMark=function(e,n,i,a,s){var l=s.create({style:a.style}),u=[],c=[],f=null,d=null;return e.doc.nodesBetween(n,i,(function(e,p,m){if(e.isInline){var g=e.marks;if(!l.isInSet(g)&&m.type.allowsMarkType(l.type)){var v=Math.max(p,n),y=Math.min(p+e.nodeSize,i),h=t.changeStyleFromMark(g,a);if(h.changed||a.newValue){for(var k=h.changed?{style:h.style||null}:{style:[a.style]+": "+a.newValue+";"},b=s.isInSet(g)?g.find((function(e){return"style"===e.type.name})):null,M=b?r.__assign({},b.attrs,k):k,_=s.create(M),S=_.addToSet(g),I=0;I<g.length;I++)g[I].isInSet(S)||(f&&f.to===v&&f.mark.eq(g[I])?f.to=y:(f=new o.RemoveMarkStep(v,y,g[I]),u.push(f)));var w=d&&d.to===v,O=w&&_.attrs.style===d.mark.attrs.style;w&&O?d.to=y:Object.keys(M).some((function(e){return null!==M[e]}))&&(d=new o.AddMarkStep(v,y,_),c.push(d))}}}})),u.forEach((function(t){return e.step(t)})),c.forEach((function(t){return e.step(t)})),u.length+c.length>0},t.hasStyle=function(e,n){var r=e.selection,o=r.from,i=r.$from,a=r.to,s=r.empty,l=!1,u={style:n.name,value:n.value};return s?l=t.changeStyleFromMark(e.storedMarks||i.marks(),u).changed:e.doc.nodesBetween(o,a,(function(e,n,r){!l&&e.isInline&&(l=t.changeStyleFromMark(e.marks,u).changed)})),l},t.getInlineStyles=function(e,n){var r,o=e.selection,i=o.from,a=o.$from,s=o.to,l=o.empty,u=[],c={style:n.name,value:n.value};return l?(r=t.changeStyleFromMark(e.storedMarks||a.marks(),c)).changed&&(u=r.styleMatches):e.doc.nodesBetween(i,s,(function(e,n,o){e.isInline&&((r=t.changeStyleFromMark(e.marks,c)).changed?u.push.apply(u,r.styleMatches):u.push(null))})),u.filter((function(e){return null!==e}))},t.changeStyle=function(e,n){return function(o,i,s){var l=o.selection,u=l.empty,c=l.$cursor,f=l.ranges;if(u&&!c||!a.markApplies(o.doc,f,e))return!1;var d=!1;if(i)if(s=s||o.tr,c){var p=o.storedMarks||c.marks();if(e.isInSet(p)){var m=t.changeStyleFromMark(p,n),g=p.find((function(e){return"style"===e.type.name})),v=r.__assign({},g?g.attrs:{},{style:m.style||null});i(s.removeStoredMark(e)),Object.keys(v).some((function(e){return null!==v[e]}))&&i(s.addStoredMark(e.create(v))),d=!0}}else{for(var y=0;y<f.length;y++){var h=f[y],k=h.$from,b=h.$to;d=t.changeStyleMark(s,k.pos,b.pos,n,e)}d&&(s.scrollIntoView(),i(s))}return d}},t.toggleInlineFormat=function(e,n,r){return function(o,i){var s=o.schema.marks,l=e.altStyle,u=e.altMarks,c=void 0===u?[]:u,f=e.mark;n=n||o.tr;var d=!1,p=!1,m=function(){return p=!0};if(l&&s.style){var g=s.style;d=t.changeStyle(g,{style:l.name,value:l.value})(o,m,n)}var v=[f].concat(c).filter((function(e){return s[e]})).map((function(e){return a.hasMark(o,{mark:e})&&s[e]})).filter((function(e){return e}));return v.length?a.removeMarks(v,o,m,n):d||a.toggleMark(s[f],r,n)(o,m),p&&i(n),p}},t.applyInlineStyle=function(e,n){return function(o,s){var l=o.schema.marks.style,u={style:e.style,value:/^.+$/,newValue:e.value},c=o.tr;n&&c.setMeta("commandName",n),c.setMeta("args",e);var f=o.selection,d=f.empty,p=f.$cursor,m=f.ranges;if(d&&!p||!a.markApplies(o.doc,m,l))return!1;if(p){var g=o.storedMarks||p.marks(),v=l.isInSet(g)?g.find((function(e){return"style"===e.type.name})):null,y={style:null};if(v&&v.attrs.style){var h=i.changeStyles(v.attrs.style,u);h.changed&&h.style&&(y.style=h.style)}else u.newValue&&(y.style=[u.style]+": "+u.newValue+";");var k=v?r.__assign({},v.attrs,y):y;return Object.keys(k).some((function(e){return null!==k[e]}))?s(c.addStoredMark(l.create(k))):s(c.removeStoredMark(l)),!0}return t.changeStyle(l,u)(o,s,c)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(1),i=n(5),a=n(3),s=n(0);t.changeBlockNode=function(e,t,n,r,o,s){var l=e.selection,u=l.from,c=l.to,f=!1;if(e.doc.nodesBetween(u,c,(function(t,n){if(f)return!1;if(t.isTextblock&&!t.hasMarkup(o,s))if(t.type===o)f=!0;else{var r=e.doc.resolve(n),i=r.index();f=r.parent.canReplaceWith(i,i+1,o)}})),!f)return!1;if(t){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var d=n.steps.length;n.doc.nodesBetween(u,c,(function(e,t){if(e.eq(r)&&e.isTextblock&&!e.hasMarkup(o,s)&&function(e,t,n){var r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(n.doc,n.mapping.slice(d).map(t),o)){n.clearIncompatible(n.mapping.slice(d).map(t,1),o);var l=n.mapping.slice(d),u=l.map(t,1),c=l.map(t+e.nodeSize,1),f=new a.Slice(a.Fragment.from(o.create(s,null,e.marks)),0,0);return n.step(new i.ReplaceAroundStep(u,c,u+1,c-1,f,1,!0)),!1}}))}return!0},t.blockNodes=function(e){var t=e.selection,n=t.from,r=t.to,o=t.$from,i=[];return t.node?t.node.isBlock?i.push(t.node):o.parent&&o.parent.isBlock&&i.push(o.parent):e.doc.nodesBetween(n,r,(function(e){e.isBlock&&i.push(e)})),i},t.formatBlockElements=function(e,n){return function(o,i){var a=t.blockNodes(o),s=o.schema.nodes,l=!1,u=o.tr;return u.setMeta("commandName",n),u.setMeta("args",{value:e}),a.forEach((function(n){if(n.type.isTextblock)if("p"===e){var a=n.attrs,c=a.level,f=r.__rest(a,["level"]);l=t.changeBlockNode(o,i,u,n,s.paragraph,f)||l}else if(/^h[1-6]$/i.test(e)){c=parseInt(e.substr(1),10);l=t.changeBlockNode(o,i,u,n,s.heading,r.__assign({},n.attrs,{level:c}))||l}else if("blockquote"===e){var d=n.attrs;c=d.level,f=r.__rest(d,["level"]);l=t.changeBlockNode(o,i,u,n,s.blockquote,f)||l}})),l&&i(u.scrollIntoView()),l}},t.getBlockFormats=function(e){var n=t.blockNodes(e),r=e.schema.nodes,o=[];return n.forEach((function(e){if(e.type===r.paragraph)o.push("p");else if(e.type===r.heading)for(var t=1;t<=6;t++)if(e.attrs.level===t){o.push("h"+t);break}})),o},t.addStyles=function(e,t){var n=e.attrs.style,r=null,i=null;n&&t.forEach((function(e){i={style:e.name,value:/^.+$/,newValue:e.value},r=o.changeStyles(n,i),n=r.changed?r.style:n}));return n=n||t.reduce((function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""}),""),Object.assign({},e.attrs,{style:n||null})},t.hasNode=function(e,t){var n=e.selection,r=n.from,o=n.to,i=!1;return e.doc.nodesBetween(r,o,(function(e){return!(i=i||e.type===t)})),i};var l=function(e){return function(e,t){return Object.keys(e).filter((function(e){return t(e)})).reduce((function(t,n){var r;return Object.assign(t,((r={})[n]=e[n],r))}),{})}(e,(function(t){return null!==e[t]&&void 0!==e[t]&&""!==e[t]}))};t.getNodeTagName=function(e,t){var n,r=e.type.spec.parseDOM||[],o=e.attrs;return(n=1===r.length?r[0]:r.find((function(n){var r=a.DOMSerializer.fromSchema(t).serializeNode(e);return JSON.stringify(n.getAttrs(r))===JSON.stringify(l(o))})))?n.tag.toLowerCase().replace(/ *\[[^\]]*]/,""):""},t.activeNode=function(e){var n,r=e.schema.nodes.doc;if(e.selection instanceof s.AllSelection)n=e.doc;else if(e.selection instanceof s.TextSelection){var i=e.selection.$anchor,a=i.node(i.blockRange().depth);n=o.getTypeName(a)===o.getTypeName(r)?i.node():a}else e.selection instanceof s.NodeSelection&&(n=e.selection.node);return{name:o.getTypeName(n),tag:t.getNodeTagName(n,e.schema)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),o=n(0),i=n(1);t.parseContent=function(e,t,n){var o=document.createElement("div");return o.innerHTML=i.safeString(e),r.DOMParser.fromSchema(t).parse(o,n)},t.getHtml=function(e){var t=r.DOMSerializer.fromSchema(e.schema).serializeFragment(e.doc.content),n=document.createElement("div");return n.appendChild(t),n.innerHTML},t.setHtml=function(e,n,r){return void 0===n&&(n="setHTML"),void 0===r&&(r={preserveWhitespace:"full"}),function(i,a){return a(i.tr.setSelection(new o.AllSelection(i.doc)).replaceSelectionWith(t.parseContent(e,i.schema,r)).setMeta("commandName",n))}}},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(11);t.indentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"}],listsTypes:r.__assign({},o.listsTypes)},t.outdentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"}],listsTypes:r.__assign({},o.listsTypes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.listsTypes={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},t.orderedList={listType:t.listsTypes.orderedList,types:r.__assign({},t.listsTypes)},t.bulletList={listType:t.listsTypes.bulletList,types:r.__assign({},t.listsTypes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(3),i=n(0),a=n(5),s=n(13),l=n(9),u=n(11);function c(e,n,r){var o=e.selection,i=o.from,a=o.to,s=e.schema.nodes,l=s.paragraph,u=s.heading,c=[];n.doc.nodesBetween(i,a,(function(e,t){e.type!==l&&e.type!==u||c.push({node:e,pos:t})}));for(var f=c.length-1;f>=0;f--){var d=c[f],p=n.doc.resolve(n.mapping.map(d.pos));if(p.depth>0){var m=void 0;m=d.node.textContent&&d.node.textContent.length>0?n.doc.resolve(n.mapping.map(d.pos+d.node.textContent.length)):n.doc.resolve(n.mapping.map(d.pos+1));var g=p.blockRange(m);g&&n.lift(g,t.getListLiftTarget(e.schema,p,r))}}return n}function f(e){return function(t,n,r){if(!r)return!1;var o=(t=r.state).schema.nodes[e.listType],i=t.selection,a=i.$from,s=i.$to,l=a.node(-2),u=a.node(-3),c=m(t.doc,a,s,o);return(l&&l.type===o||u&&u.type===o)&&c?y(e)(t,n):(c||(y(e)(t,n),t=r.state),h(o)(t,n))}}function d(e,t,n,r){r||(r=e.schema.nodes.listItem);var i=t.$from,s=t.$to,l=i.blockRange(s,(function(e){return e.childCount&&e.firstChild.type===r}));if(!l||l.depth<2||i.node(l.depth-1).type!==r)return n;var u=l.end,c=s.end(l.depth);return u<c&&(n.step(new a.ReplaceAroundStep(u-1,c,u,c,new o.Slice(o.Fragment.from(r.create(void 0,l.parent.copy())),1,0),1,!0)),l=new o.NodeRange(n.doc.resolve(i.pos),n.doc.resolve(c),l.depth)),n.lift(l,a.liftTarget(l)).scrollIntoView()}function p(e,t,n,r,o,a){a||(a=e.schema.nodes.listItem);var s=!1;return o.doc.nodesBetween(t,n,(function(n,l){if(!s&&n.type===a&&l>t){s=!0;for(var u=r+3;u>r+2;){var c=o.doc.resolve(o.mapping.map(l));u=c.depth;var f=o.doc.resolve(o.mapping.map(l+n.textContent.length)),p=new i.TextSelection(c,f);o=d(e,p,o,a)}}})),o}function m(e,t,n,r){return 0===g(e,t,n).filter((function(e){return e.type!==r})).length}function g(e,t,n){for(var r=Array(),o=v(e,t).depth,i=e.resolve(t.start(o));i.pos<=n.start(n.depth);){var a=Math.min(i.depth,o),s=i.node(a);if(s&&r.push(s),0===a)break;var l=e.resolve(i.after(a));if(l.start(a)>=e.nodeSize-2)break;l.depth!==i.depth&&(l=e.resolve(l.pos+2)),i=l.depth?e.resolve(l.start(l.depth)):e.resolve(l.end(l.depth))}return r}function v(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;for(var r=t.node(t.depth),o=t;t.depth>=1;)(r=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==n.indexOf(r.type.name)&&(o=t);return o}function y(e){return function(t,n){var r=t.tr,o=t.selection,s=o.$from,l=o.$to;return r.doc.nodesBetween(s.pos,l.pos,(function(n,o){if(n.isTextblock||"blockquote"===n.type.name||"div"===n.type.name){var s=new i.NodeSelection(r.doc.resolve(r.mapping.map(o))),l=s.$from.blockRange(s.$to);if(!l||s.$from.parent.type!==t.schema.nodes[e.listItem])return!1;var u=l&&a.liftTarget(l);if(null==u)return!1;r.lift(l,u)}})),n&&n(r),!0}}function h(e){return s.autoJoin(l.wrapInList(e),(function(t,n){return t.type===n.type&&t.type===e}))}t.rootListDepth=function(e,t){for(var n,r=t.bulletList,o=t.orderedList,i=t.listItem,a=e.depth-1;a>0;a--){var s=e.node(a);if(s.type!==r&&s.type!==o||(n=a),s.type!==r&&s.type!==o&&s.type!==i)break}return n},t.getListLiftTarget=function(e,t,n){for(var r=t.depth,o=e.nodes[n.bulletList],i=e.nodes[n.orderedList],a=e.nodes[n.listItem],s=t.depth;s>0;s--){var l=t.node(s);if(l.type!==o&&l.type!==i||(r=s),l.type!==o&&l.type!==i&&l.type!==a)break}return r-1},t.liftSelectionList=c,t.toggleList=function(e,n,r,o,i){var a=o.listType,s=e.selection,l=s.$from.node(s.$from.depth-2),u=s.$to.node(s.$to.depth-2);if(l&&l.type.name===a&&u&&u.type.name===a){var d=r.state.schema.nodes,m={bulletList:d[o.bulletList],orderedList:d[o.orderedList],listItem:d[o.listItem]},g=t.rootListDepth(s.$to,m),v=p(e,s.$to.pos,s.$to.end(g),g,r.state.tr,m.listItem);return(v=c(e,v,o)).setMeta("commandName",i),n(v),!0}return f(o)(e,n,r)},t.toggleListCommand=f,t.liftFollowingList=p,t.isRangeOfType=m,t.getAncestorNodesBetween=g,t.findAncestorPosition=v,t.liftListItems=y,t.wrapInList=h,t.toggleUnorderedList=function(e,n,o){return t.toggleList(e,n,o,r.__assign({listType:u.bulletList.listType},u.bulletList.types))},t.toggleOrderedList=function(e,n,o){return t.toggleList(e,n,o,r.__assign({listType:u.orderedList.listType},u.orderedList.types))},t.splitListItemKeepMarks=function(e){return function(t,n){return l.splitListItem(e)(t,(function(e){var r=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();r&&e.ensureMarks(r),n(e)}))}}},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,o=function(e){return/^MsoListParagraph/.test(e.className)},i=function(e){var t=e.innerHTML;return t=(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},a=function(e,t){var n=document.createElement(e);return n.style.listStyleType=t,n},s=function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},l=function(e,t){var n=[];Array.from(e).forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE){var r=e;r.getAttribute("datalist")?(n.push(e),t.add(n)):o(r)&&n.length?n.push(e):(n=[],"DIV"===r.nodeName?l(r.children,t):"TABLE"===r.nodeName&&Array.from(r.querySelectorAll("td,th")).forEach((function(e){l(e.children,t)})))}}))},u=function(e){var t,n=e.innerHTML,r=function(e){return e.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")};return n=n.replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g," "),/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(n)?{tag:"ul",style:(t=r(i(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(t)?null:/^o/.test(t)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(n)?{tag:"ol",style:s(r(i(e)))}:void 0},c=function(e){var t,n=e.nodeName.toLowerCase();e.firstChild&&e.firstChild.nodeType===Node.COMMENT_NODE&&e.removeChild(e.firstChild),1===e.childNodes.length?t=e.firstChild.nodeType===Node.TEXT_NODE?i(e):e.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(e.removeChild(e.firstChild),3===e.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(e.firstChild.nodeValue)&&e.removeChild(e.firstChild),/^(&nbsp;|\s)+$/i.test(e.firstChild.innerHTML)&&e.removeChild(e.firstChild),t="p"!==n?"<"+n+">"+e.innerHTML+"</"+n+">":e.innerHTML),e.parentNode.removeChild(e);var r=document.createElement("li");return r.innerHTML=t,r};t.convertMsLists=function(e){var t=document.createElement("div");t.innerHTML=function(e){return e=e.replace(r,(function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e}))}(e);var n=new Set;return l(t.children,n),n.forEach((function(e){return function(e){var t,n,r,i,s,l,f,d,p,m,g,v,y,h=-1,k={};for(d=0;d<e.length;d++){var b=(y={datalist:(p=e[d]).getAttribute("datalist"),datalevel:p.getAttribute("datalevel")}).datalist,M=u(p);if(m=M&&M.tag){if(g=y.datalevel||parseFloat(p.style.marginLeft||0),y.datalevel||p.style.marginLeft){var _=m+b;k[g]||(k[g]={}),(!n||n<0)&&(n=g,r=b,i=(f=e.filter((function(e){return e.getAttribute("datalist")===String(r)})))[f.length-1],l=a(m,M&&M.style),p.parentNode.insertBefore(l,p),h=g,k[g][_]=l),s=i===p,v=k[g][_],(g>h||!v)&&(v=a(m,M&&M.style),k[g][_]=v,t.appendChild(v)),t=c(p),v.appendChild(t),s?n=h=-1:h=g}}else!t||s&&!o(p)||(p.style.marginLeft&&(p.style.marginLeft=""),p.style.marginLeft&&(p.style.margin=""),t.appendChild(p))}}(e)})),t.innerHTML}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8);t.getHtml=r.getHtml,t.setHtml=r.setHtml,t.parseContent=r.parseContent;var o=n(6);t.applyInlineStyle=o.applyInlineStyle,t.getInlineStyles=o.getInlineStyles,t.toggleInlineFormat=o.toggleInlineFormat;var i=n(16);t.applyLink=i.applyLink,t.removeLink=i.removeLink;var a=n(17);t.insertText=a.insertText;var s=n(18);t.insertImage=s.insertImage;var l=n(19);t.alignBlocks=l.alignBlocks,t.isAligned=l.isAligned;var u=n(7);t.hasNode=u.hasNode,t.activeNode=u.activeNode,t.formatBlockElements=u.formatBlockElements,t.getBlockFormats=u.getBlockFormats;var c=n(4);t.hasMark=c.hasMark,t.getMark=c.getMark,t.getActiveMarks=c.getActiveMarks,t.removeAllMarks=c.removeAllMarks;var f=n(20);t.indent=f.indent,t.canIndentAsListItem=f.canIndentAsListItem,t.outdent=f.outdent,t.canOutdentAsListItem=f.canOutdentAsListItem,t.isIndented=f.isIndented,t.canBeIndented=f.canBeIndented,t.indentBlocks=f.indentBlocks;var d=n(12);t.toggleOrderedList=d.toggleOrderedList,t.toggleUnorderedList=d.toggleUnorderedList,t.toggleList=d.toggleList;var p=n(1);t.hasSameMarkup=p.hasSameMarkup,t.getUniqueStyleValues=p.getUniqueStyleValues,t.getSelectionText=p.getSelectionText,t.getNodeFromSelection=p.getNodeFromSelection,t.canInsert=p.canInsert,t.insertNode=p.insertNode,t.indentHtml=p.indentHtml;var m=n(21);t.alignLeftRules=m.alignLeftRules,t.alignCenterRules=m.alignCenterRules,t.alignRightRules=m.alignRightRules,t.alignJustifyRules=m.alignJustifyRules,t.alignRemoveRules=m.alignRemoveRules;var g=n(10);t.indentRules=g.indentRules,t.outdentRules=g.outdentRules;var v=n(22);t.nodes=v.nodes,t.marks=v.marks;var y=n(24);t.buildKeymap=y.buildKeymap,t.buildListKeymap=y.buildListKeymap;var h=n(27);t.bold=h.bold,t.italic=h.italic,t.underline=h.underline,t.strikethrough=h.strikethrough,t.subscript=h.subscript,t.superscript=h.superscript,t.link=h.link;var k=n(28);t.sanitize=k.sanitize,t.removeComments=k.removeComments,t.removeTag=k.removeTag,t.pasteCleanup=k.pasteCleanup,t.sanitizeClassAttr=k.sanitizeClassAttr,t.sanitizeStyleAttr=k.sanitizeStyleAttr,t.removeAttribute=k.removeAttribute;var b=n(14);t.convertMsLists=b.convertMsLists;var M=n(29);t.createTable=M.createTable},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),o=n(4),i=n(0);t.removeLink=function(e,t){return function(n,i){var a=n.selection.$cursor;if(a){var s=a.parent,l=a.index(),u=n.schema.marks[e.mark],c=s.child(l).marks.find((function(e){return e.type===u})),f=s.childCount,d=a.pos-a.textOffset,p=s.child(l).nodeSize,m=void 0,g=void 0;for(m=l-1;m>=0&&c.isInSet(s.child(m).marks);)p+=g=s.child(m).nodeSize,d-=g,m-=1;for(m=l+1;m<f&&c.isInSet(s.child(m).marks);)p+=s.child(m).nodeSize,m+=1;i(o.removeMark(t||n.tr,d,d+p,c))}else r.toggleInlineFormat(e,t)(n,i)}},t.applyLink=function(e,n){var a=e.mark,s=e.attrs;return void 0===n&&(n="link"),function(e,l){var u=e.schema.marks,c=e.tr;n&&(c.setMeta("commandName",n),c.setMeta("args",s));var f=!1,d=function(){return f=!0};if(o.getParentMark(e,u[a]))!function(e,t){return function(n,r){var o=n.selection,i=o.$cursor,a=o.from,s=o.to,l=n.schema.marks[e.mark];if(i){var u=i.parent,c=i.index(),f=u.child(c).marks.find((function(e){return e.type===l})),d=u.childCount,p=i.pos-i.textOffset,m=u.child(c).nodeSize,g=void 0,v=void 0;for(g=c-1;g>=0&&f.isInSet(u.child(g).marks);)m+=v=u.child(g).nodeSize,p-=v,g-=1;for(g=c+1;g<d&&f.isInSet(u.child(g).marks);)m+=u.child(g).nodeSize,g+=1;t.removeMark(p,p+m,l),t.addMark(p,p+m,l.create(e.attrs)),r(t)}else t.doc.nodesBetween(a,s,(function(n,o){n.isInline&&l.isInSet(n.marks)&&(t.removeMark(o,o+n.nodeSize,l),t.addMark(o,o+n.nodeSize,l.create(e.attrs)),r(t))}))}}({mark:a,attrs:s},c)(e,d);else{var p=e;o.hasMark(e,{mark:a})&&(t.removeLink({mark:a,attrs:s},c)(e,d),p=i.EditorState.create({doc:c.doc,selection:c.selection})),f?o.toggleMark(u[a],s,c)(p,d):r.toggleInlineFormat({mark:a},c,s)(p,d)}return f&&l(c),f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertText=function(e){return function(t,n){n(t.tr.insertText(e.text,e.from,e.to))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.insertImage=function(e){return function(t,n){var o=t.schema.nodes.image,i=o.createAndFill(e);r.insertNode(i)(t,(function(t){return n(t.setMeta("commandName","insertImage").setMeta("args",e))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(7);t.alignBlocks=function(e,t){return function(n,o){var i=r.blockNodes(n),a=n.tr;a.setMeta("commandName",t);var s=!1;return i.forEach((function(t){if(t.type.isTextblock){var i={},l=e.find((function(e){return e.node===t.type.name}));l&&(i=r.addStyles(t,l.style)),s=r.changeBlockNode(n,o,a,t,t.type,i)||s}})),s&&o(a.scrollIntoView()),s}},t.isAligned=function(e,t){var n=r.blockNodes(e),o=!1;return n.forEach((function(e){if(!o&&e.type.isTextblock&&e.attrs.style){var n=t.find((function(t){return t.node===e.type.name}));n&&(o=n.style.every((function(t){return!!t.value&&new RegExp(t.name+":\\s?"+t.value,"i").test(e.attrs.style)})))}})),o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(10),i=n(7),a=n(1);t.indentBlocks=function(e,t,n){return function(r,o){var a=i.blockNodes(r),s=r.tr,l=!1;return s.setMeta("commandName",t),a.forEach((function(t){if(t.type.isTextblock){var a=void 0,u=e.find((function(e){return e.node===t.type.name}));if(u){var c="rtl"===n?u.rtlStyle:u.style,f={name:c,value:u.step>0?""+u.step+u.unit:""};if(t.attrs.style){var d=new RegExp(c+":\\s?(\\d+)"+u.unit,"i"),p=t.attrs.style.match(d);if(p){var m=parseFloat(p[1])+u.step;m=m<=0?"":m,f.value=""+m+(m?u.unit:"")}}a=i.addStyles(t,[f])}a&&(l=i.changeBlockNode(r,o,s,t,t.type,a)||l)}})),l&&o(s.scrollIntoView()),l}},t.isIndented=function(e,t,n){var r=i.blockNodes(e),o=!1;return r.forEach((function(e){if(!o&&e.type.isTextblock&&e.attrs.style){var r=t.find((function(t){return t.node===e.type.name}));if(r){var i="rtl"===n?r.rtlStyle:r.style,a=new RegExp(i+":\\s?\\d+"+r.unit,"i");o=a.test(e.attrs.style)}}})),o},t.canIndentAsListItem=function(e,t){return r.sinkListItem(t)(e)},t.canOutdentAsListItem=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],o=e.schema.nodes[t.listsTypes.orderedList],i=e.schema.nodes[t.listsTypes.bulletList],s=!!a.findNthParentNodeOfType(o,2)(e.selection),l=!!a.findNthParentNodeOfType(i,2)(e.selection);return(s||l)&&r.liftListItem(n)(e)},t.canBeIndented=function(e,n){var r=e.schema.nodes,a=r[o.indentRules.listsTypes.listItem];return(t.isIndented(e,n.nodes)||o.indentRules.nodes.some((function(t){return r[t.node]&&i.hasNode(e,r[t.node])})))&&!i.hasNode(e,a)},t.indent=function(e,n){var i=e.schema.nodes[o.indentRules.listsTypes.listItem],a=t.canBeIndented(e,o.indentRules);t.canIndentAsListItem(e,i)?r.sinkListItem(i)(e,n):a&&t.indentBlocks(o.indentRules.nodes)(e,n)},t.outdent=function(e,n){var i=e.schema.nodes[o.outdentRules.listsTypes.listItem],a=t.canBeIndented(e,o.outdentRules);t.canOutdentAsListItem(e,o.outdentRules)?r.liftListItem(i)(e,n):a&&t.indentBlocks(o.outdentRules.nodes)(e,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return{name:e,value:t}};t.alignLeftRules=[{node:"paragraph",style:[r("text-align","left")]},{node:"heading",style:[r("text-align","left")]},{node:"listItem",style:[r("text-align","left"),r("list-style-position","inside")]}],t.alignRightRules=[{node:"paragraph",style:[r("text-align","right")]},{node:"heading",style:[r("text-align","right")]},{node:"listItem",style:[r("text-align","right"),r("list-style-position","inside")]}],t.alignCenterRules=[{node:"paragraph",style:[r("text-align","center")]},{node:"heading",style:[r("text-align","center")]},{node:"listItem",style:[r("text-align","center"),r("list-style-position","inside")]}],t.alignJustifyRules=[{node:"paragraph",style:[r("text-align","justify")]},{node:"heading",style:[r("text-align","justify")]},{node:"listItem",style:[r("text-align","justify"),r("list-style-position","justify")]}],t.alignRemoveRules=[{node:"paragraph",style:[r("text-align","")]},{node:"heading",style:[r("text-align","")]},{node:"listItem",style:[r("text-align",""),r("list-style-position","")]}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(23),i=["blockquote",0],a=["hr"],s=["pre",["code",0]],l=["ol",0],u=["ul",0],c=["li",0],f=function(e){for(var t,n={},r=e.attributes,o=0;o<r.length;o++)n[(t=r[o]).name]=t.value;return n},d=function(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return!0;return!1},p=function(e,t){var n={};for(var r in e)r&&null!==e[r]&&r!==t&&(n[r]=e[r]);return n},m=function(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t},g=r.__assign({link:{attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:f}],toDOM:function(e){return["a",p(e.attrs),0]}}},m("strong"),m("b"),m("em"),m("i"),m("u"),m("del"),m("sub"),m("sup"),m("code"),{style:{attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"span",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["span",p(e.attrs),0]:["span",0]}}});t.marks=g;var v=r.__assign({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"p",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["p",p(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"div",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["div",p(e.attrs),0]:["div",0]}},blockquote:{attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:function(){return i}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return a}},heading:{attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return r.__assign({},f(e),{level:1})}},{tag:"h2",getAttrs:function(e){return r.__assign({},f(e),{level:2})}},{tag:"h3",getAttrs:function(e){return r.__assign({},f(e),{level:3})}},{tag:"h4",getAttrs:function(e){return r.__assign({},f(e),{level:4})}},{tag:"h5",getAttrs:function(e){return r.__assign({},f(e),{level:5})}},{tag:"h6",getAttrs:function(e){return r.__assign({},f(e),{level:6})}}],toDOM:function(e){return d(e.attrs,"level")?["h"+e.attrs.level,p(e.attrs,"level"),0]:["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:function(){return s}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:r.__assign({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["img",p(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["br",p(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return r.__assign({},f(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?d(e.attrs,"order")?["ol",p(e.attrs,"order"),0]:l:["ol",r.__assign({},p(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"ul",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["ul",p(e.attrs),0]:u}},list_item:{content:"block*",attrs:r.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"li",getAttrs:f}],toDOM:function(e){return d(e.attrs)?["li",p(e.attrs),0]:c},defining:!0}},o.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:{}}));t.nodes=v},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13),o=n(25),i=n(26),a=n(12),s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.buildKeymap=function(e){var t={};if(t["Mod-z"]=o.undo,t["Shift-Mod-z"]=o.redo,t.Backspace=r.chainCommands(i.undoInputRule,r.deleteSelection,r.joinBackward,r.selectNodeBackward),t.Enter=r.chainCommands(r.newlineInCode,r.createParagraphNear,r.liftEmptyBlock,r.splitBlockKeepMarks),s||(t["Mod-y"]=o.redo),e.marks.strong&&(t["Mod-b"]=r.toggleMark(e.marks.strong)),e.marks.em&&(t["Mod-i"]=r.toggleMark(e.marks.em)),e.marks.underline&&(t["Mod-u"]=r.toggleMark(e.marks.underline)),e.nodes.hard_break){var n=e.nodes.hard_break,a=r.chainCommands(r.exitCode,(function(e,t){return t(e.tr.replaceSelectionWith(n.create()).scrollIntoView()),!0}));t["Shift-Enter"]=a}return t},t.buildListKeymap=function(e){var t={};return e.nodes.list_item&&(t.Enter=a.splitListItemKeepMarks(e.nodes.list_item)),t}},function(e,t){e.exports=a},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bold={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},t.italic={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},t.underline={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},t.strikethrough={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},t.subscript={mark:"sub"},t.superscript={mark:"sup"},t.link={mark:"link"},t.unlink={mark:"link"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);t.sanitize=function(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^[\s\S]+?<!--StartFragment-->\s*([\s\S]*?)\s*<!--EndFragment-->[\s\S]+$/,"$1")).replace(/<\/?[ovw]:[^>]*?>/gi,"")).replace(/<\\?\??xml[^>]*>/gi,"")).replace(/<(?:link|meta) [^>]+?>/gi,"")).replace(/<style[^>]*?>\s*<\/style>/gi,"")).replace(/<\/?st1:.*?>/gi,"")).replace(/<a name="[a-zA-Z0-9_]+">/gim,"")).replace(/v:shapes?="[^"]+"/gi,"")).replace(/<!\[if !supportLists\]>/gi,"")).replace(/<!\[endif\]>/gi,"")},t.removeComments=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},t.removeTag=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},t.removeAttribute=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},t.sanitizeClassAttr=function(e){/^Mso/.test(e.value)&&t.removeAttribute(e)};var o=/\s*;\s*/,i=/\s*:\s*/;t.sanitizeStyleAttr=function(e){var n,r,a=e.value.split(o).filter((function(e){return Boolean(e)})),s=e.ownerElement.style,l="";a.forEach((function(e){var t;t=e.split(i),n=t[0],r=t[1],void 0!==s[n]&&(l+=n+": "+r+"; ")})),(l=l.trim())?e.value=l:t.removeAttribute(e)};t.pasteCleanup=function(e,n){var o=e;if(n.convertMsLists&&(o=r.convertMsLists(o)),n.stripTags&&(o=t.removeTag(o,n.stripTags)),n.attributes){var i=document.createElement("div");i.innerHTML=o,Array.from(i.querySelectorAll("*")).forEach((function(e){return function(e,t){if(e.nodeType===Node.ELEMENT_NODE){for(var n=e.attributes.length-1;n>=0;n--){var r=e.attributes[n];t[r.name]?t[r.name](r):t["*"]&&t["*"](r)}"SPAN"===e.nodeName&&0===e.attributes.length&&function(e){var t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}(e)}}(e,n.attributes)})),o=i.innerHTML}return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTable=function(e,t,n){for(var r,o=e.table,i=e.table_row,a=e.table_cell,s=[],l=0;l<t+1;l++){r=[];for(var u=0;u<n+1;u++)r.push(a.createAndFill());s.push(i.createAndFill(void 0,r))}return o.createAndFill(void 0,s)}}])}));

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prosemirror-state"),require("tslib"),require("prosemirror-model"),require("prosemirror-transform"),require("prosemirror-schema-list"),require("prosemirror-commands"),require("prosemirror-tables"),require("prosemirror-history"),require("prosemirror-inputrules")):"function"==typeof define&&define.amd?define(["prosemirror-state","tslib","prosemirror-model","prosemirror-transform","prosemirror-schema-list","prosemirror-commands","prosemirror-tables","prosemirror-history","prosemirror-inputrules"],t):"object"==typeof exports?exports.KendoEditorCommon=t(require("prosemirror-state"),require("tslib"),require("prosemirror-model"),require("prosemirror-transform"),require("prosemirror-schema-list"),require("prosemirror-commands"),require("prosemirror-tables"),require("prosemirror-history"),require("prosemirror-inputrules")):e.KendoEditorCommon=t(e["prosemirror-state"],e.tslib,e["prosemirror-model"],e["prosemirror-transform"],e["prosemirror-schema-list"],e["prosemirror-commands"],e["prosemirror-tables"],e["prosemirror-history"],e["prosemirror-inputrules"])}(window,(function(e,t,r,n,i,s,o,a,l){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=15)}([function(t,r){t.exports=e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3),i=r(0),s=r(4),o=r(6),a=r(8);t.changeStyles=function(e,t){var r=t.style,n=t.value,i=t.newValue,s=[];if(e){var o=e.split(/\s*;\s*/).filter((function(e){return e})),a=o.filter((function(e){if(!e.toLowerCase().trim().startsWith(r))return!0;var t=e.split(":")[1].trim();return!n.test(t)||(s.push(t),!1)}));return i&&a.push(r+": "+i),{style:a.join("; ")+(a.length?";":""),changed:!!i||a.length!==o.length,styleMatches:s}}return{changed:!1,styleMatches:s,style:null}},t.changeStyle=function(e,t){return function(r,n,i){var a=r.selection,l=a.empty,u=a.$cursor,c=a.ranges;if(l&&!u||!s.markApplies(r.doc,c,e))return!1;var d=!1;if(n)if(i=i||r.tr,u){var f=r.storedMarks||u.marks();if(e.isInSet(f)){var p=o.changeStyleFromMark(f,t);n(i.removeStoredMark(e)),n(i.addStoredMark(e.create({style:p.style}))),d=!0}}else{for(var m=0;m<c.length;m++){var g=c[m],v=g.$from,y=g.$to;d=o.changeStyleMark(i,v.pos,y.pos,t,e)}d&&(i.scrollIntoView(),n(i))}return d}},t.canInsert=function(e,t){for(var r=e.selection.$from,n=r.depth;n>=0;n--){var i=r.index(n);if(r.node(n).canReplaceWith(i,i,t))return!0}return!1},t.getTypeName=function(e){return e instanceof n.Node?e.type.name:e.name},t.findParentNode=function(e){return function(t){for(var r=t.$from,n=r.depth;n>0;n--){var i=r.node(n);if(e(i))return{depth:n,node:i}}}},t.findNthParentNode=function(e,t){return void 0===t&&(t=1),function(r){for(var n=r.$from,i=n.depth;i>0;i--){var s=n.node(i);if(e(s)&&0===(t-=1))return{depth:i,node:s}}}},t.findNthParentNodeOfType=function(e,r){return void 0===r&&(r=1),function(n){return t.findNthParentNode((function(r){return t.getTypeName(r)===t.getTypeName(e)}),r)(n)}},t.insertNode=function(e,t){return function(r,n){var i=r.tr.replaceSelectionWith(e);t&&i.scrollIntoView(),n(i)}},t.isNullOrUndefined=function(e){return null==e},t.safeString=function(e){return t.isNullOrUndefined(e)?"":e.toString()},t.hasSameMarkup=function(e,t,r,i){var s=n.Fragment.from(a.parseContent(e,r,i)),o=n.Fragment.from(a.parseContent(t,r,i));return s.eq(o)},t.first=function(e){return e[0]},t.last=function(e){return e[e.length-1]},t.split=function(e){return function(t){return t.split(e)}},t.trim=function(e){return e.trim()},t.filter=function(e){return function(t){return t.filter(e)}},t.getUniqueStyleValues=function(e,r){if(e.hasNodesWithoutMarks)return"";var n=e.marks.filter((function(e){return"style"===e.type.name})).map((function(e){return e.attrs.style})).map(t.split(";")).map(t.filter((function(e){return e.includes(r)}))).map((function(e){return 0!==e.length?e:[r+": INVALID"]})).map(t.first).map(t.split(":")).map(t.last).map(t.trim).reduce((function(e,t){return e.indexOf(t)>-1?e:e.concat([t])}),[]);return n.indexOf("INVALID")>-1||1!==n.length?"":n[0]},t.getSelectionText=function(e){var t=e.selection;if(t instanceof i.TextSelection||t instanceof i.AllSelection){var r=t.content().content;return r.textBetween(0,r.size)}return""},t.getNodeFromSelection=function(e){if(e.selection instanceof i.NodeSelection)return e.selection.node},t.indentHtml=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")}},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5),i=r(3),s=r(0),o=r(6);t.markApplies=function(e,t,r){for(var n=function(n){var i=t[n],s=i.$from,o=i.$to,a=0===s.depth&&e.type.allowsMarkType(r);if(e.nodesBetween(s.pos,o.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(r)})),a)return{v:!0}},i=0;i<t.length;i++){var s=n(i);if(s)return s.v}return!1},t.toggleMark=function(e,r,n){return function(i,s){var o=i.selection,a=o.empty,l=o.$cursor,u=o.ranges;if(a&&!l||!t.markApplies(i.doc,u,e))return!1;if(s)if(l)e.isInSet(i.storedMarks||l.marks())?s(n.removeStoredMark(e)):s(n.addStoredMark(e.create(r)));else{for(var c=!1,d=0;!c&&d<u.length;d++){var f=u[d],p=f.$from,m=f.$to;c=i.doc.rangeHasMark(p.pos,m.pos,e)}for(d=0;d<u.length;d++){var g=u[d];p=g.$from,m=g.$to;c?n.removeMark(p.pos,m.pos,e):n.addMark(p.pos,m.pos,e.create(r))}s(n.scrollIntoView())}return!0}},t.removeMark=function(e,t,r,s){void 0===s&&(s=null);var o=[],a=0;return e.doc.nodesBetween(t,r,(function(e,n){if(e.isInline){a++;var l=null;if(s instanceof i.MarkType){var u=s.isInSet(e.marks);u&&(l=[u])}else s?s.isInSet(e.marks)&&(l=[s]):l=e.marks;if(l&&l.length)for(var c=Math.min(n+e.nodeSize,r),d=0;d<l.length;d++){for(var f=l[d],p=void 0,m=0;m<o.length;m++){var g=o[m];g.step===a-1&&f.eq(g.style)&&(p=g)}p?(p.to=c,p.step=a):o.push({style:f,from:Math.max(n,t),to:c,step:a})}}})),o.forEach((function(t){return e.step(new n.RemoveMarkStep(t.from,t.to,t.style))})),e},t.removeMarks=function(e,r,n,i){var s=r.selection,o=s.$cursor,a=s.ranges;if(i=i||r.tr,o)e.forEach((function(e){e.isInSet(r.storedMarks||o.marks())&&n(i.removeStoredMark(e))}));else{for(var l=function(r){var n=a[r],s=n.$from,o=n.$to;e.forEach((function(e){t.removeMark(i,s.pos,o.pos,e)}))},u=0;u<a.length;u++)l(u);n(i.scrollIntoView())}return!0};t.removeAllMarks=function(e){var t=(void 0===e?{}:e).except,r=void 0===t?[]:t;return function(e,t){var n,i=e.schema,s=e.selection,o=s.$cursor,a=s.from,l=s.to,u=e.tr,c=(n=r,n instanceof Array?n:[n]).map((function(e){return e.name}));o||(Object.keys(i.marks).map((function(e){return i.marks[e]})).filter((function(e){return-1===c.indexOf(e.name)})).forEach((function(e){return u.removeMark(a,l,e)})),t(u))}},t.getParentMark=function(e,t){var r=e.selection,n=r.from,i=r.$from,s=r.to,o=r.empty,a=e.doc;if(o)return t.isInSet(e.storedMarks||i.marks())||null;var l=[];return a.nodesBetween(n,s,(function(e){e.isInline&&l.push(t.isInSet(e.marks))})),1===l.length&&l[0]?l[0]:null},t.hasMark=function(e,t){var r,n=e.schema.marks,i=(t.altMarks||[]).filter((function(e){return n[e]})),s=t.altStyle,a=e.selection,l=a.from,u=a.$from,c=a.to,d=a.empty,f=n[t.mark],p=e.doc,m=!1;return d?(r=e.storedMarks||u.marks(),m=f&&f.isInSet(r)||i.some((function(e){return n[e].isInSet(r)}))):m=f&&p.rangeHasMark(l,c,f)||i.some((function(e){return p.rangeHasMark(l,c,n[e])})),!m&&s?o.hasStyle(e,s):Boolean(m)},t.getMark=function(e,t){var r,n=e.selection,i=n.from,s=n.$from,o=n.to,a=n.empty,l=e.doc;if(a)r=t.isInSet(e.storedMarks||s.marks());else{var u=[];l.nodesBetween(i,o,(function(e){e.isInline&&u.push(t.isInSet(e.marks))})),u.some((function(e){return!e}))||(r=u[u.length-1])}return r};t.getActiveMarks=function(e,t){var r=e.selection,n=!1;if(r instanceof s.TextSelection&&r.$cursor)return{hasNodesWithoutMarks:n,marks:r.$cursor.marks().filter((function(e){return!t||e.type.name===t.name}))};var i=[];return r.content().content.descendants((function(e){if("text"===e.type.name){var r=t?function(e,t){return t.marks.filter((function(t){return t.type.name===e.name}))}(t,e):e.marks;e.marks.length>0&&r.length>0?i.push.apply(i,r):n=!0}})),{hasNodesWithoutMarks:n,marks:i}}},function(e,t){e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=r(5),s=r(1),o=r(4);t.changeStyleFromMark=function(e,t){var r=e.find((function(e){return"style"===e.type.name})),n=r&&r.attrs.style;return s.changeStyles(n,t)},t.changeStyleMark=function(e,r,s,o,a){var l=a.create({style:o.style}),u=[],c=[],d=null,f=null;return e.doc.nodesBetween(r,s,(function(e,p,m){if(e.isInline){var g=e.marks;if(!l.isInSet(g)&&m.type.allowsMarkType(l.type)){var v=Math.max(p,r),y=Math.min(p+e.nodeSize,s),h=t.changeStyleFromMark(g,o);if(h.changed||o.newValue){for(var k=h.changed?{style:h.style||null}:{style:[o.style]+": "+o.newValue+";"},M=a.isInSet(g)?g.find((function(e){return"style"===e.type.name})):null,b=M?n.__assign({},M.attrs,k):k,S=a.create(b),_=S.addToSet(g),I=0;I<g.length;I++)g[I].isInSet(_)||(d&&d.to===v&&d.mark.eq(g[I])?d.to=y:(d=new i.RemoveMarkStep(v,y,g[I]),u.push(d)));var L=f&&f.to===v,T=L&&S.attrs.style===f.mark.attrs.style;L&&T?f.to=y:Object.keys(b).some((function(e){return null!==b[e]}))&&(f=new i.AddMarkStep(v,y,S),c.push(f))}}}})),u.forEach((function(t){return e.step(t)})),c.forEach((function(t){return e.step(t)})),u.length+c.length>0},t.hasStyle=function(e,r){var n=e.selection,i=n.from,s=n.$from,o=n.to,a=n.empty,l=!1,u={style:r.name,value:r.value};return a?l=t.changeStyleFromMark(e.storedMarks||s.marks(),u).changed:e.doc.nodesBetween(i,o,(function(e,r,n){!l&&e.isInline&&(l=t.changeStyleFromMark(e.marks,u).changed)})),l},t.getInlineStyles=function(e,r){var n,i=e.selection,s=i.from,o=i.$from,a=i.to,l=i.empty,u=[],c={style:r.name,value:r.value};return l?(n=t.changeStyleFromMark(e.storedMarks||o.marks(),c)).changed&&(u=n.styleMatches):e.doc.nodesBetween(s,a,(function(e,r,i){e.isInline&&((n=t.changeStyleFromMark(e.marks,c)).changed?u.push.apply(u,n.styleMatches):u.push(null))})),u.filter((function(e){return null!==e}))},t.changeStyle=function(e,r){return function(i,s,a){var l=i.selection,u=l.empty,c=l.$cursor,d=l.ranges;if(u&&!c||!o.markApplies(i.doc,d,e))return!1;var f=!1;if(s)if(a=a||i.tr,c){var p=i.storedMarks||c.marks();if(e.isInSet(p)){var m=t.changeStyleFromMark(p,r),g=p.find((function(e){return"style"===e.type.name})),v=n.__assign({},g?g.attrs:{},{style:m.style||null});s(a.removeStoredMark(e)),Object.keys(v).some((function(e){return null!==v[e]}))&&s(a.addStoredMark(e.create(v))),f=!0}}else{for(var y=0;y<d.length;y++){var h=d[y],k=h.$from,M=h.$to;f=t.changeStyleMark(a,k.pos,M.pos,r,e)}f&&(a.scrollIntoView(),s(a))}return f}},t.toggleInlineFormat=function(e,r,n){return function(i,s){var a=i.schema.marks,l=e.altStyle,u=e.altMarks,c=void 0===u?[]:u,d=e.mark;r=r||i.tr;var f=!1,p=!1,m=function(){return p=!0};if(l&&a.style){var g=a.style;f=t.changeStyle(g,{style:l.name,value:l.value})(i,m,r)}var v=[d].concat(c).filter((function(e){return a[e]})).map((function(e){return o.hasMark(i,{mark:e})&&a[e]})).filter((function(e){return e}));return v.length?o.removeMarks(v,i,m,r):f||o.toggleMark(a[d],n,r)(i,m),p&&s(r),p}},t.applyInlineStyle=function(e,r){return function(i,a){var l=i.schema.marks.style,u={style:e.style,value:/^.+$/,newValue:e.value},c=i.tr;r&&c.setMeta("commandName",r),c.setMeta("args",e);var d=i.selection,f=d.empty,p=d.$cursor,m=d.ranges;if(f&&!p||!o.markApplies(i.doc,m,l))return!1;if(p){var g=i.storedMarks||p.marks(),v=l.isInSet(g)?g.find((function(e){return"style"===e.type.name})):null,y={style:null};if(v&&v.attrs.style){var h=s.changeStyles(v.attrs.style,u);h.changed&&h.style&&(y.style=h.style)}else u.newValue&&(y.style=[u.style]+": "+u.newValue+";");var k=v?n.__assign({},v.attrs,y):y;return Object.keys(k).some((function(e){return null!==k[e]}))?a(c.addStoredMark(l.create(k))):a(c.removeStoredMark(l)),!0}return t.changeStyle(l,u)(i,a,c)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=r(1),s=r(5),o=r(3),a=r(0);t.changeBlockNode=function(e,t,r,n,i,a){var l=e.selection,u=l.from,c=l.to,d=!1;if(e.doc.nodesBetween(u,c,(function(t,r){if(d)return!1;if(t.isTextblock&&!t.hasMarkup(i,a))if(t.type===i)d=!0;else{var n=e.doc.resolve(r),s=n.index();d=n.parent.canReplaceWith(s,s+1,i)}})),!d)return!1;if(t){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var f=r.steps.length;r.doc.nodesBetween(u,c,(function(e,t){if(e.eq(n)&&e.isTextblock&&!e.hasMarkup(i,a)&&function(e,t,r){var n=e.resolve(t),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}(r.doc,r.mapping.slice(f).map(t),i)){r.clearIncompatible(r.mapping.slice(f).map(t,1),i);var l=r.mapping.slice(f),u=l.map(t,1),c=l.map(t+e.nodeSize,1),d=new o.Slice(o.Fragment.from(i.create(a,null,e.marks)),0,0);return r.step(new s.ReplaceAroundStep(u,c,u+1,c-1,d,1,!0)),!1}}))}return!0},t.blockNodes=function(e){var t=e.selection,r=t.from,n=t.to,i=t.$from,s=[];return t.node?t.node.isBlock?s.push(t.node):i.parent&&i.parent.isBlock&&s.push(i.parent):e.doc.nodesBetween(r,n,(function(e){e.isBlock&&s.push(e)})),s},t.formatBlockElements=function(e,r){return function(i,s){var o=t.blockNodes(i),a=i.schema.nodes,l=!1,u=i.tr;return u.setMeta("commandName",r),u.setMeta("args",{value:e}),o.forEach((function(r){if(r.type.isTextblock)if("p"===e){var o=r.attrs,c=o.level,d=n.__rest(o,["level"]);l=t.changeBlockNode(i,s,u,r,a.paragraph,d)||l}else if(/^h[1-6]$/i.test(e)){c=parseInt(e.substr(1),10);l=t.changeBlockNode(i,s,u,r,a.heading,n.__assign({},r.attrs,{level:c}))||l}else if("blockquote"===e){var f=r.attrs;c=f.level,d=n.__rest(f,["level"]);l=t.changeBlockNode(i,s,u,r,a.blockquote,d)||l}})),l&&s(u.scrollIntoView()),l}},t.getBlockFormats=function(e){var r=t.blockNodes(e),n=e.schema.nodes,i=[];return r.forEach((function(e){if(e.type===n.paragraph)i.push("p");else if(e.type===n.heading)for(var t=1;t<=6;t++)if(e.attrs.level===t){i.push("h"+t);break}})),i},t.addStyles=function(e,t){var r=e.attrs.style,n=null,s=null;r&&t.forEach((function(e){s={style:e.name,value:/^.+$/,newValue:e.value},n=i.changeStyles(r,s),r=n.changed?n.style:r}));return r=r||t.reduce((function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""}),""),Object.assign({},e.attrs,{style:r||null})},t.hasNode=function(e,t){var r=e.selection,n=r.from,i=r.to,s=!1;return e.doc.nodesBetween(n,i,(function(e){return!(s=s||e.type===t)})),s};var l=function(e){return function(e,t){return Object.keys(e).filter((function(e){return t(e)})).reduce((function(t,r){var n;return Object.assign(t,((n={})[r]=e[r],n))}),{})}(e,(function(t){return null!==e[t]&&void 0!==e[t]&&""!==e[t]}))};t.getNodeTagName=function(e,t){var r,n=e.type.spec.parseDOM||[],i=e.attrs;return(r=1===n.length?n[0]:n.find((function(r){var n=o.DOMSerializer.fromSchema(t).serializeNode(e);return JSON.stringify(r.getAttrs(n))===JSON.stringify(l(i))})))?r.tag.toLowerCase().replace(/ *\[[^\]]*]/,""):""},t.activeNode=function(e){var r,n=e.schema.nodes.doc;if(e.selection instanceof a.AllSelection)r=e.doc;else if(e.selection instanceof a.TextSelection){var s=e.selection.$anchor,o=s.node(s.blockRange().depth);r=i.getTypeName(o)===i.getTypeName(n)?s.node():o}else e.selection instanceof a.NodeSelection&&(r=e.selection.node);return{name:i.getTypeName(r),tag:t.getNodeTagName(r,e.schema)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3),i=r(0),s=r(1);t.parseContent=function(e,t,r){var i=document.createElement("div");return i.innerHTML=s.safeString(e),n.DOMParser.fromSchema(t).parse(i,r)},t.getHtml=function(e){var t=n.DOMSerializer.fromSchema(e.schema).serializeFragment(e.doc.content),r=document.createElement("div");return r.appendChild(t),r.innerHTML},t.setHtml=function(e,r,n){return void 0===r&&(r="setHTML"),void 0===n&&(n={preserveWhitespace:"full"}),function(s,o){return o(s.tr.setSelection(new i.AllSelection(s.doc)).replaceSelectionWith(t.parseContent(e,s.schema,n)).setMeta("commandName",r))}}},function(e,t){e.exports=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=r(11);t.indentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"}],listsTypes:n.__assign({},i.listsTypes)},t.outdentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"}],listsTypes:n.__assign({},i.listsTypes)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.listsTypes={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},t.orderedList={listType:t.listsTypes.orderedList,types:n.__assign({},t.listsTypes)},t.bulletList={listType:t.listsTypes.bulletList,types:n.__assign({},t.listsTypes)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=r(3),s=r(0),o=r(5),a=r(13),l=r(9),u=r(11);function c(e,r,n){var i=e.selection,s=i.from,o=i.to,a=e.schema.nodes,l=a.paragraph,u=a.heading,c=[];r.doc.nodesBetween(s,o,(function(e,t){e.type!==l&&e.type!==u||c.push({node:e,pos:t})}));for(var d=c.length-1;d>=0;d--){var f=c[d],p=r.doc.resolve(r.mapping.map(f.pos));if(p.depth>0){var m=void 0;m=f.node.textContent&&f.node.textContent.length>0?r.doc.resolve(r.mapping.map(f.pos+f.node.textContent.length)):r.doc.resolve(r.mapping.map(f.pos+1));var g=p.blockRange(m);g&&r.lift(g,t.getListLiftTarget(e.schema,p,n))}}return r}function d(e){return function(t,r,n){if(!n)return!1;var i=(t=n.state).schema.nodes[e.listType],s=t.selection,o=s.$from,a=s.$to,l=o.node(-2),u=o.node(-3),c=m(t.doc,o,a,i);return(l&&l.type===i||u&&u.type===i)&&c?y(e)(t,r):(c||(y(e)(t,r),t=n.state),h(i)(t,r))}}function f(e,t,r,n){n||(n=e.schema.nodes.listItem);var s=t.$from,a=t.$to,l=s.blockRange(a,(function(e){return e.childCount&&e.firstChild.type===n}));if(!l||l.depth<2||s.node(l.depth-1).type!==n)return r;var u=l.end,c=a.end(l.depth);return u<c&&(r.step(new o.ReplaceAroundStep(u-1,c,u,c,new i.Slice(i.Fragment.from(n.create(void 0,l.parent.copy())),1,0),1,!0)),l=new i.NodeRange(r.doc.resolve(s.pos),r.doc.resolve(c),l.depth)),r.lift(l,o.liftTarget(l)).scrollIntoView()}function p(e,t,r,n,i,o){o||(o=e.schema.nodes.listItem);var a=!1;return i.doc.nodesBetween(t,r,(function(r,l){if(!a&&r.type===o&&l>t){a=!0;for(var u=n+3;u>n+2;){var c=i.doc.resolve(i.mapping.map(l));u=c.depth;var d=i.doc.resolve(i.mapping.map(l+r.textContent.length)),p=new s.TextSelection(c,d);i=f(e,p,i,o)}}})),i}function m(e,t,r,n){return 0===g(e,t,r).filter((function(e){return e.type!==n})).length}function g(e,t,r){for(var n=Array(),i=v(e,t).depth,s=e.resolve(t.start(i));s.pos<=r.start(r.depth);){var o=Math.min(s.depth,i),a=s.node(o);if(a&&n.push(a),0===o)break;var l=e.resolve(s.after(o));if(l.start(o)>=e.nodeSize-2)break;l.depth!==s.depth&&(l=e.resolve(l.pos+2)),s=l.depth?e.resolve(l.start(l.depth)):e.resolve(l.end(l.depth))}return n}function v(e,t){var r=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;for(var n=t.node(t.depth),i=t;t.depth>=1;)(n=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==r.indexOf(n.type.name)&&(i=t);return i}function y(e){return function(t,r){var n=t.tr,i=t.selection,a=i.$from,l=i.$to;return n.doc.nodesBetween(a.pos,l.pos,(function(r,i){if(r.isTextblock||"blockquote"===r.type.name||"div"===r.type.name){var a=new s.NodeSelection(n.doc.resolve(n.mapping.map(i))),l=a.$from.blockRange(a.$to);if(!l||a.$from.parent.type!==t.schema.nodes[e.listItem])return!1;var u=l&&o.liftTarget(l);if(null==u)return!1;n.lift(l,u)}})),r&&r(n),!0}}function h(e){return a.autoJoin(l.wrapInList(e),(function(t,r){return t.type===r.type&&t.type===e}))}t.rootListDepth=function(e,t){for(var r,n=t.bulletList,i=t.orderedList,s=t.listItem,o=e.depth-1;o>0;o--){var a=e.node(o);if(a.type!==n&&a.type!==i||(r=o),a.type!==n&&a.type!==i&&a.type!==s)break}return r},t.getListLiftTarget=function(e,t,r){for(var n=t.depth,i=e.nodes[r.bulletList],s=e.nodes[r.orderedList],o=e.nodes[r.listItem],a=t.depth;a>0;a--){var l=t.node(a);if(l.type!==i&&l.type!==s||(n=a),l.type!==i&&l.type!==s&&l.type!==o)break}return n-1},t.liftSelectionList=c,t.toggleList=function(e,r,n,i,s){var o=i.listType,a=e.selection,l=a.$from.node(a.$from.depth-2),u=a.$to.node(a.$to.depth-2);if(l&&l.type.name===o&&u&&u.type.name===o){var f=n.state.schema.nodes,m={bulletList:f[i.bulletList],orderedList:f[i.orderedList],listItem:f[i.listItem]},g=t.rootListDepth(a.$to,m),v=p(e,a.$to.pos,a.$to.end(g),g,n.state.tr,m.listItem);return(v=c(e,v,i)).setMeta("commandName",s),r(v),!0}return d(i)(e,r,n)},t.toggleListCommand=d,t.liftFollowingList=p,t.isRangeOfType=m,t.getAncestorNodesBetween=g,t.findAncestorPosition=v,t.liftListItems=y,t.wrapInList=h,t.toggleUnorderedList=function(e,r,i){return t.toggleList(e,r,i,n.__assign({listType:u.bulletList.listType},u.bulletList.types))},t.toggleOrderedList=function(e,r,i){return t.toggleList(e,r,i,n.__assign({listType:u.orderedList.listType},u.orderedList.types))},t.splitListItemKeepMarks=function(e){return function(t,r){return l.splitListItem(e)(t,(function(e){var n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();n&&e.ensureMarks(n),r(e)}))}}},function(e,t){e.exports=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,i=function(e){return/^MsoListParagraph/.test(e.className)},s=function(e){var t=e.innerHTML;return t=(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},o=function(e,t){var r=document.createElement(e);return r.style.listStyleType=t,r},a=function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},l=function(e,t){var r=[];Array.from(e).forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE){var n=e;n.getAttribute("datalist")?(r.push(e),t.add(r)):i(n)&&r.length?r.push(e):(r=[],"DIV"===n.nodeName?l(n.children,t):"TABLE"===n.nodeName&&Array.from(n.querySelectorAll("td,th")).forEach((function(e){l(e.children,t)})))}}))},u=function(e){var t,r=e.innerHTML,n=function(e){return e.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")};return r=r.replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g," "),/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(r)?{tag:"ul",style:(t=n(s(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(t)?null:/^o/.test(t)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(r)?{tag:"ol",style:a(n(s(e)))}:void 0},c=function(e){var t,r=e.nodeName.toLowerCase();e.firstChild&&e.firstChild.nodeType===Node.COMMENT_NODE&&e.removeChild(e.firstChild),1===e.childNodes.length?t=e.firstChild.nodeType===Node.TEXT_NODE?s(e):e.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(e.removeChild(e.firstChild),3===e.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(e.firstChild.nodeValue)&&e.removeChild(e.firstChild),/^(&nbsp;|\s)+$/i.test(e.firstChild.innerHTML)&&e.removeChild(e.firstChild),t="p"!==r?"<"+r+">"+e.innerHTML+"</"+r+">":e.innerHTML),e.parentNode.removeChild(e);var n=document.createElement("li");return n.innerHTML=t,n};t.convertMsLists=function(e){var t=document.createElement("div");t.innerHTML=function(e){return e=e.replace(n,(function(e,t,r){return'datalist="'+t+'" datalevel="'+r+'" '+e}))}(e);var r=new Set;return l(t.children,r),r.forEach((function(e){return function(e){var t,r,n,s,a,l,d,f,p,m,g,v,y,h=-1,k={};for(f=0;f<e.length;f++){var M=(y={datalist:(p=e[f]).getAttribute("datalist"),datalevel:p.getAttribute("datalevel")}).datalist,b=u(p);if(m=b&&b.tag){if(g=y.datalevel||parseFloat(p.style.marginLeft||0),y.datalevel||p.style.marginLeft){var S=m+M;k[g]||(k[g]={}),(!r||r<0)&&(r=g,n=M,s=(d=e.filter((function(e){return e.getAttribute("datalist")===String(n)})))[d.length-1],l=o(m,b&&b.style),p.parentNode.insertBefore(l,p),h=g,k[g][S]=l),a=s===p,v=k[g][S],(g>h||!v)&&(v=o(m,b&&b.style),k[g][S]=v,t.appendChild(v)),t=c(p),v.appendChild(t),a?r=h=-1:h=g}}else!t||a&&!i(p)||(p.style.marginLeft&&(p.style.marginLeft=""),p.style.marginLeft&&(p.style.margin=""),t.appendChild(p))}}(e)})),t.innerHTML}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8);t.getHtml=n.getHtml,t.setHtml=n.setHtml,t.parseContent=n.parseContent;var i=r(6);t.applyInlineStyle=i.applyInlineStyle,t.getInlineStyles=i.getInlineStyles,t.toggleInlineFormat=i.toggleInlineFormat;var s=r(16);t.applyLink=s.applyLink,t.removeLink=s.removeLink;var o=r(17);t.insertText=o.insertText;var a=r(18);t.insertImage=a.insertImage;var l=r(19);t.alignBlocks=l.alignBlocks,t.isAligned=l.isAligned;var u=r(7);t.hasNode=u.hasNode,t.activeNode=u.activeNode,t.formatBlockElements=u.formatBlockElements,t.getBlockFormats=u.getBlockFormats;var c=r(4);t.hasMark=c.hasMark,t.getMark=c.getMark,t.getActiveMarks=c.getActiveMarks,t.removeAllMarks=c.removeAllMarks;var d=r(20);t.indent=d.indent,t.canIndentAsListItem=d.canIndentAsListItem,t.outdent=d.outdent,t.canOutdentAsListItem=d.canOutdentAsListItem,t.isIndented=d.isIndented,t.canBeIndented=d.canBeIndented,t.indentBlocks=d.indentBlocks;var f=r(12);t.toggleOrderedList=f.toggleOrderedList,t.toggleUnorderedList=f.toggleUnorderedList,t.toggleList=f.toggleList;var p=r(1);t.hasSameMarkup=p.hasSameMarkup,t.getUniqueStyleValues=p.getUniqueStyleValues,t.getSelectionText=p.getSelectionText,t.getNodeFromSelection=p.getNodeFromSelection,t.canInsert=p.canInsert,t.insertNode=p.insertNode,t.indentHtml=p.indentHtml;var m=r(21);t.alignLeftRules=m.alignLeftRules,t.alignCenterRules=m.alignCenterRules,t.alignRightRules=m.alignRightRules,t.alignJustifyRules=m.alignJustifyRules,t.alignRemoveRules=m.alignRemoveRules;var g=r(10);t.indentRules=g.indentRules,t.outdentRules=g.outdentRules;var v=r(22);t.nodes=v.nodes,t.marks=v.marks;var y=r(24);t.buildKeymap=y.buildKeymap,t.buildListKeymap=y.buildListKeymap;var h=r(27);t.bold=h.bold,t.italic=h.italic,t.underline=h.underline,t.strikethrough=h.strikethrough,t.subscript=h.subscript,t.superscript=h.superscript,t.link=h.link;var k=r(28);t.sanitize=k.sanitize,t.removeComments=k.removeComments,t.removeTag=k.removeTag,t.pasteCleanup=k.pasteCleanup,t.sanitizeClassAttr=k.sanitizeClassAttr,t.sanitizeStyleAttr=k.sanitizeStyleAttr,t.removeAttribute=k.removeAttribute;var M=r(14);t.convertMsLists=M.convertMsLists;var b=r(29);t.createTable=b.createTable},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6),i=r(4),s=r(0);t.removeLink=function(e,t){return function(r,s){var o=r.selection.$cursor;if(o){var a=o.parent,l=o.index(),u=r.schema.marks[e.mark],c=a.child(l).marks.find((function(e){return e.type===u})),d=a.childCount,f=o.pos-o.textOffset,p=a.child(l).nodeSize,m=void 0,g=void 0;for(m=l-1;m>=0&&c.isInSet(a.child(m).marks);)p+=g=a.child(m).nodeSize,f-=g,m-=1;for(m=l+1;m<d&&c.isInSet(a.child(m).marks);)p+=a.child(m).nodeSize,m+=1;s(i.removeMark(t||r.tr,f,f+p,c))}else n.toggleInlineFormat(e,t)(r,s)}},t.applyLink=function(e,r){var o=e.mark,a=e.attrs;return void 0===r&&(r="link"),function(e,l){var u=e.schema.marks,c=e.tr;r&&(c.setMeta("commandName",r),c.setMeta("args",a));var d=!1,f=function(){return d=!0};if(i.getParentMark(e,u[o]))!function(e,t){return function(r,n){var i=r.selection,s=i.$cursor,o=i.from,a=i.to,l=r.schema.marks[e.mark];if(s){var u=s.parent,c=s.index(),d=u.child(c).marks.find((function(e){return e.type===l})),f=u.childCount,p=s.pos-s.textOffset,m=u.child(c).nodeSize,g=void 0,v=void 0;for(g=c-1;g>=0&&d.isInSet(u.child(g).marks);)m+=v=u.child(g).nodeSize,p-=v,g-=1;for(g=c+1;g<f&&d.isInSet(u.child(g).marks);)m+=u.child(g).nodeSize,g+=1;t.removeMark(p,p+m,l),t.addMark(p,p+m,l.create(e.attrs)),n(t)}else t.doc.nodesBetween(o,a,(function(r,i){r.isInline&&l.isInSet(r.marks)&&(t.removeMark(i,i+r.nodeSize,l),t.addMark(i,i+r.nodeSize,l.create(e.attrs)),n(t))}))}}({mark:o,attrs:a},c)(e,f);else{var p=e;i.hasMark(e,{mark:o})&&(t.removeLink({mark:o,attrs:a},c)(e,f),p=s.EditorState.create({doc:c.doc,selection:c.selection})),d?i.toggleMark(u[o],a,c)(p,f):n.toggleInlineFormat({mark:o},c,a)(p,f)}return d&&l(c),d}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertText=function(e){return function(t,r){r(t.tr.insertText(e.text,e.from,e.to))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.insertImage=function(e){return function(t,r){var i=t.schema.nodes.image,s=i.createAndFill(e);n.insertNode(s)(t,(function(t){return r(t.setMeta("commandName","insertImage").setMeta("args",e))}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7);t.alignBlocks=function(e,t){return function(r,i){var s=n.blockNodes(r),o=r.tr;o.setMeta("commandName",t);var a=!1;return s.forEach((function(t){if(t.type.isTextblock){var s={},l=e.find((function(e){return e.node===t.type.name}));l&&(s=n.addStyles(t,l.style)),a=n.changeBlockNode(r,i,o,t,t.type,s)||a}})),a&&i(o.scrollIntoView()),a}},t.isAligned=function(e,t){var r=n.blockNodes(e),i=!1;return r.forEach((function(e){if(!i&&e.type.isTextblock&&e.attrs.style){var r=t.find((function(t){return t.node===e.type.name}));r&&(i=r.style.every((function(t){return!!t.value&&new RegExp(t.name+":\\s?"+t.value,"i").test(e.attrs.style)})))}})),i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=r(10),s=r(7),o=r(1);t.indentBlocks=function(e,t,r){return function(n,i){var o=s.blockNodes(n),a=n.tr,l=!1;return a.setMeta("commandName",t),o.forEach((function(t){if(t.type.isTextblock){var o=void 0,u=e.find((function(e){return e.node===t.type.name}));if(u){var c="rtl"===r?u.rtlStyle:u.style,d={name:c,value:u.step>0?""+u.step+u.unit:""};if(t.attrs.style){var f=new RegExp(c+":\\s?(\\d+)"+u.unit,"i"),p=t.attrs.style.match(f);if(p){var m=parseFloat(p[1])+u.step;m=m<=0?"":m,d.value=""+m+(m?u.unit:"")}}o=s.addStyles(t,[d])}o&&(l=s.changeBlockNode(n,i,a,t,t.type,o)||l)}})),l&&i(a.scrollIntoView()),l}},t.isIndented=function(e,t,r){var n=s.blockNodes(e),i=!1;return n.forEach((function(e){if(!i&&e.type.isTextblock&&e.attrs.style){var n=t.find((function(t){return t.node===e.type.name}));if(n){var s="rtl"===r?n.rtlStyle:n.style,o=new RegExp(s+":\\s?\\d+"+n.unit,"i");i=o.test(e.attrs.style)}}})),i},t.canIndentAsListItem=function(e,t){return n.sinkListItem(t)(e)},t.canOutdentAsListItem=function(e,t){var r=e.schema.nodes[t.listsTypes.listItem],i=e.schema.nodes[t.listsTypes.orderedList],s=e.schema.nodes[t.listsTypes.bulletList],a=!!o.findNthParentNodeOfType(i,2)(e.selection),l=!!o.findNthParentNodeOfType(s,2)(e.selection);return(a||l)&&n.liftListItem(r)(e)},t.canBeIndented=function(e,r){var n=e.schema.nodes,o=n[i.indentRules.listsTypes.listItem];return(t.isIndented(e,r.nodes)||i.indentRules.nodes.some((function(t){return n[t.node]&&s.hasNode(e,n[t.node])})))&&!s.hasNode(e,o)},t.indent=function(e,r){var s=e.schema.nodes[i.indentRules.listsTypes.listItem],o=t.canBeIndented(e,i.indentRules);t.canIndentAsListItem(e,s)?n.sinkListItem(s)(e,r):o&&t.indentBlocks(i.indentRules.nodes)(e,r)},t.outdent=function(e,r){var s=e.schema.nodes[i.outdentRules.listsTypes.listItem],o=t.canBeIndented(e,i.outdentRules);t.canOutdentAsListItem(e,i.outdentRules)?n.liftListItem(s)(e,r):o&&t.indentBlocks(i.outdentRules.nodes)(e,r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){return{name:e,value:t}};t.alignLeftRules=[{node:"paragraph",style:[n("text-align","left")]},{node:"heading",style:[n("text-align","left")]},{node:"listItem",style:[n("text-align","left"),n("list-style-position","inside")]}],t.alignRightRules=[{node:"paragraph",style:[n("text-align","right")]},{node:"heading",style:[n("text-align","right")]},{node:"listItem",style:[n("text-align","right"),n("list-style-position","inside")]}],t.alignCenterRules=[{node:"paragraph",style:[n("text-align","center")]},{node:"heading",style:[n("text-align","center")]},{node:"listItem",style:[n("text-align","center"),n("list-style-position","inside")]}],t.alignJustifyRules=[{node:"paragraph",style:[n("text-align","justify")]},{node:"heading",style:[n("text-align","justify")]},{node:"listItem",style:[n("text-align","justify"),n("list-style-position","justify")]}],t.alignRemoveRules=[{node:"paragraph",style:[n("text-align","")]},{node:"heading",style:[n("text-align","")]},{node:"listItem",style:[n("text-align",""),n("list-style-position","")]}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=r(23),s=["blockquote",0],o=["hr"],a=["pre",["code",0]],l=["ol",0],u=["ul",0],c=["li",0],d=function(e){for(var t,r={},n=e.attributes,i=0;i<n.length;i++)r[(t=n[i]).name]=t.value;return r},f=function(e,t){for(var r in e)if(r&&null!==e[r]&&r!==t)return!0;return!1},p=function(e,t){var r={};for(var n in e)n&&null!==e[n]&&n!==t&&(r[n]=e[n]);return r},m=function(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t},g=n.__assign({link:{attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:d}],toDOM:function(e){return["a",p(e.attrs),0]}}},m("strong"),m("b"),m("em"),m("i"),m("u"),m("del"),m("sub"),m("sup"),m("code"),{style:{attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"span",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["span",p(e.attrs),0]:["span",0]}}});t.marks=g;var v=n.__assign({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"p",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["p",p(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"div",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["div",p(e.attrs),0]:["div",0]}},blockquote:{attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:function(){return s}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return o}},heading:{attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return n.__assign({},d(e),{level:1})}},{tag:"h2",getAttrs:function(e){return n.__assign({},d(e),{level:2})}},{tag:"h3",getAttrs:function(e){return n.__assign({},d(e),{level:3})}},{tag:"h4",getAttrs:function(e){return n.__assign({},d(e),{level:4})}},{tag:"h5",getAttrs:function(e){return n.__assign({},d(e),{level:5})}},{tag:"h6",getAttrs:function(e){return n.__assign({},d(e),{level:6})}}],toDOM:function(e){return f(e.attrs,"level")?["h"+e.attrs.level,p(e.attrs,"level"),0]:["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:function(){return a}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:n.__assign({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["img",p(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["br",p(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return n.__assign({},d(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?f(e.attrs,"order")?["ol",p(e.attrs,"order"),0]:l:["ol",n.__assign({},p(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"ul",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["ul",p(e.attrs),0]:u}},list_item:{content:"block*",attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"li",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["li",p(e.attrs),0]:c},defining:!0}},i.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:{}}));t.nodes=v},function(e,t){e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13),i=r(25),s=r(26),o=r(12),a="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.buildKeymap=function(e){var t={};if(t["Mod-z"]=i.undo,t["Shift-Mod-z"]=i.redo,t.Backspace=n.chainCommands(s.undoInputRule,n.deleteSelection,n.joinBackward,n.selectNodeBackward),t.Enter=n.chainCommands(n.newlineInCode,n.createParagraphNear,n.liftEmptyBlock,n.splitBlockKeepMarks),a||(t["Mod-y"]=i.redo),e.marks.strong&&(t["Mod-b"]=n.toggleMark(e.marks.strong)),e.marks.em&&(t["Mod-i"]=n.toggleMark(e.marks.em)),e.marks.underline&&(t["Mod-u"]=n.toggleMark(e.marks.underline)),e.nodes.hardBreak){var r=e.nodes.hardBreak,o=n.chainCommands(n.exitCode,(function(e,t){return t(e.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0}));t["Mod-Enter"]=o,t["Shift-Enter"]=o,a&&(t["Ctrl-Enter"]=o)}return t},t.buildListKeymap=function(e){var t={};return e.nodes.list_item&&(t.Enter=o.splitListItemKeepMarks(e.nodes.list_item)),t}},function(e,t){e.exports=a},function(e,t){e.exports=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bold={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},t.italic={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},t.underline={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},t.strikethrough={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},t.subscript={mark:"sub"},t.superscript={mark:"sup"},t.link={mark:"link"},t.unlink={mark:"link"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(14);t.sanitize=function(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^[\s\S]+?<!--StartFragment-->\s*([\s\S]*?)\s*<!--EndFragment-->[\s\S]+$/,"$1")).replace(/<\/?[ovw]:[^>]*?>/gi,"")).replace(/<\\?\??xml[^>]*>/gi,"")).replace(/<(?:link|meta) [^>]+?>/gi,"")).replace(/<style[^>]*?>\s*<\/style>/gi,"")).replace(/<\/?st1:.*?>/gi,"")).replace(/<a name="[a-zA-Z0-9_]+">/gim,"")).replace(/v:shapes?="[^"]+"/gi,"")).replace(/<!\[if !supportLists\]>/gi,"")).replace(/<!\[endif\]>/gi,"")},t.removeComments=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},t.removeTag=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},t.removeAttribute=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},t.sanitizeClassAttr=function(e){/^Mso/.test(e.value)&&t.removeAttribute(e)};var i=/\s*;\s*/,s=/\s*:\s*/;t.sanitizeStyleAttr=function(e){var r,n,o=e.value.split(i).filter((function(e){return Boolean(e)})),a=e.ownerElement.style,l="";o.forEach((function(e){var t;t=e.split(s),r=t[0],n=t[1],void 0!==a[r]&&(l+=r+": "+n+"; ")})),(l=l.trim())?e.value=l:t.removeAttribute(e)};t.pasteCleanup=function(e,r){var i=e;if(r.convertMsLists&&(i=n.convertMsLists(i)),r.stripTags&&(i=t.removeTag(i,r.stripTags)),r.attributes){var s=document.createElement("div");s.innerHTML=i,Array.from(s.querySelectorAll("*")).forEach((function(e){return function(e,t){if(e.nodeType===Node.ELEMENT_NODE){for(var r=e.attributes.length-1;r>=0;r--){var n=e.attributes[r];t[n.name]?t[n.name](n):t["*"]&&t["*"](n)}"SPAN"===e.nodeName&&0===e.attributes.length&&function(e){var t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}(e)}}(e,r.attributes)})),i=s.innerHTML}return i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTable=function(e,t,r){for(var n,i=e.table,s=e.table_row,o=e.table_cell,a=[],l=0;l<t+1;l++){n=[];for(var u=0;u<r+1;u++)n.push(o.createAndFill());a.push(s.createAndFill(void 0,n))}return i.createAndFill(void 0,a)}}])}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("prosemirror-state"),require("tslib"),require("prosemirror-model"),require("prosemirror-transform"),require("prosemirror-schema-list"),require("prosemirror-commands"),require("prosemirror-tables"),require("prosemirror-history"),require("prosemirror-inputrules")):"function"==typeof define&&define.amd?define(["prosemirror-state","tslib","prosemirror-model","prosemirror-transform","prosemirror-schema-list","prosemirror-commands","prosemirror-tables","prosemirror-history","prosemirror-inputrules"],t):"object"==typeof exports?exports.KendoEditorCommon=t(require("prosemirror-state"),require("tslib"),require("prosemirror-model"),require("prosemirror-transform"),require("prosemirror-schema-list"),require("prosemirror-commands"),require("prosemirror-tables"),require("prosemirror-history"),require("prosemirror-inputrules")):e.KendoEditorCommon=t(e["prosemirror-state"],e.tslib,e["prosemirror-model"],e["prosemirror-transform"],e["prosemirror-schema-list"],e["prosemirror-commands"],e["prosemirror-tables"],e["prosemirror-history"],e["prosemirror-inputrules"])}(window,(function(e,t,r,n,i,s,o,a,l){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=15)}([function(t,r){t.exports=e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3),i=r(0),s=r(4),o=r(6),a=r(8);t.changeStyles=function(e,t){var r=t.style,n=t.value,i=t.newValue,s=[];if(e){var o=e.split(/\s*;\s*/).filter((function(e){return e})),a=o.filter((function(e){if(!e.toLowerCase().trim().startsWith(r))return!0;var t=e.split(":")[1].trim();return!n.test(t)||(s.push(t),!1)}));return i&&a.push(r+": "+i),{style:a.join("; ")+(a.length?";":""),changed:!!i||a.length!==o.length,styleMatches:s}}return{changed:!1,styleMatches:s,style:null}},t.changeStyle=function(e,t){return function(r,n,i){var a=r.selection,l=a.empty,u=a.$cursor,c=a.ranges;if(l&&!u||!s.markApplies(r.doc,c,e))return!1;var d=!1;if(n)if(i=i||r.tr,u){var f=r.storedMarks||u.marks();if(e.isInSet(f)){var p=o.changeStyleFromMark(f,t);n(i.removeStoredMark(e)),n(i.addStoredMark(e.create({style:p.style}))),d=!0}}else{for(var m=0;m<c.length;m++){var g=c[m],v=g.$from,y=g.$to;d=o.changeStyleMark(i,v.pos,y.pos,t,e)}d&&(i.scrollIntoView(),n(i))}return d}},t.canInsert=function(e,t){for(var r=e.selection.$from,n=r.depth;n>=0;n--){var i=r.index(n);if(r.node(n).canReplaceWith(i,i,t))return!0}return!1},t.getTypeName=function(e){return e instanceof n.Node?e.type.name:e.name},t.findParentNode=function(e){return function(t){for(var r=t.$from,n=r.depth;n>0;n--){var i=r.node(n);if(e(i))return{depth:n,node:i}}}},t.findNthParentNode=function(e,t){return void 0===t&&(t=1),function(r){for(var n=r.$from,i=n.depth;i>0;i--){var s=n.node(i);if(e(s)&&0===(t-=1))return{depth:i,node:s}}}},t.findNthParentNodeOfType=function(e,r){return void 0===r&&(r=1),function(n){return t.findNthParentNode((function(r){return t.getTypeName(r)===t.getTypeName(e)}),r)(n)}},t.insertNode=function(e,t){return function(r,n){var i=r.tr.replaceSelectionWith(e);t&&i.scrollIntoView(),n(i)}},t.isNullOrUndefined=function(e){return null==e},t.safeString=function(e){return t.isNullOrUndefined(e)?"":e.toString()},t.hasSameMarkup=function(e,t,r,i){var s=n.Fragment.from(a.parseContent(e,r,i)),o=n.Fragment.from(a.parseContent(t,r,i));return s.eq(o)},t.first=function(e){return e[0]},t.last=function(e){return e[e.length-1]},t.split=function(e){return function(t){return t.split(e)}},t.trim=function(e){return e.trim()},t.filter=function(e){return function(t){return t.filter(e)}},t.getUniqueStyleValues=function(e,r){if(e.hasNodesWithoutMarks)return"";var n=e.marks.filter((function(e){return"style"===e.type.name})).map((function(e){return e.attrs.style})).map(t.split(";")).map(t.filter((function(e){return e.includes(r)}))).map((function(e){return 0!==e.length?e:[r+": INVALID"]})).map(t.first).map(t.split(":")).map(t.last).map(t.trim).reduce((function(e,t){return e.indexOf(t)>-1?e:e.concat([t])}),[]);return n.indexOf("INVALID")>-1||1!==n.length?"":n[0]},t.getSelectionText=function(e){var t=e.selection;if(t instanceof i.TextSelection||t instanceof i.AllSelection){var r=t.content().content;return r.textBetween(0,r.size)}return""},t.getNodeFromSelection=function(e){if(e.selection instanceof i.NodeSelection)return e.selection.node},t.indentHtml=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")}},function(e,r){e.exports=t},function(e,t){e.exports=r},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5),i=r(3),s=r(0),o=r(6);t.markApplies=function(e,t,r){for(var n=function(n){var i=t[n],s=i.$from,o=i.$to,a=0===s.depth&&e.type.allowsMarkType(r);if(e.nodesBetween(s.pos,o.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(r)})),a)return{v:!0}},i=0;i<t.length;i++){var s=n(i);if(s)return s.v}return!1},t.toggleMark=function(e,r,n){return function(i,s){var o=i.selection,a=o.empty,l=o.$cursor,u=o.ranges;if(a&&!l||!t.markApplies(i.doc,u,e))return!1;if(s)if(l)e.isInSet(i.storedMarks||l.marks())?s(n.removeStoredMark(e)):s(n.addStoredMark(e.create(r)));else{for(var c=!1,d=0;!c&&d<u.length;d++){var f=u[d],p=f.$from,m=f.$to;c=i.doc.rangeHasMark(p.pos,m.pos,e)}for(d=0;d<u.length;d++){var g=u[d];p=g.$from,m=g.$to;c?n.removeMark(p.pos,m.pos,e):n.addMark(p.pos,m.pos,e.create(r))}s(n.scrollIntoView())}return!0}},t.removeMark=function(e,t,r,s){void 0===s&&(s=null);var o=[],a=0;return e.doc.nodesBetween(t,r,(function(e,n){if(e.isInline){a++;var l=null;if(s instanceof i.MarkType){var u=s.isInSet(e.marks);u&&(l=[u])}else s?s.isInSet(e.marks)&&(l=[s]):l=e.marks;if(l&&l.length)for(var c=Math.min(n+e.nodeSize,r),d=0;d<l.length;d++){for(var f=l[d],p=void 0,m=0;m<o.length;m++){var g=o[m];g.step===a-1&&f.eq(g.style)&&(p=g)}p?(p.to=c,p.step=a):o.push({style:f,from:Math.max(n,t),to:c,step:a})}}})),o.forEach((function(t){return e.step(new n.RemoveMarkStep(t.from,t.to,t.style))})),e},t.removeMarks=function(e,r,n,i){var s=r.selection,o=s.$cursor,a=s.ranges;if(i=i||r.tr,o)e.forEach((function(e){e.isInSet(r.storedMarks||o.marks())&&n(i.removeStoredMark(e))}));else{for(var l=function(r){var n=a[r],s=n.$from,o=n.$to;e.forEach((function(e){t.removeMark(i,s.pos,o.pos,e)}))},u=0;u<a.length;u++)l(u);n(i.scrollIntoView())}return!0};t.removeAllMarks=function(e){var t=(void 0===e?{}:e).except,r=void 0===t?[]:t;return function(e,t){var n,i=e.schema,s=e.selection,o=s.$cursor,a=s.from,l=s.to,u=e.tr,c=(n=r,n instanceof Array?n:[n]).map((function(e){return e.name}));o||(Object.keys(i.marks).map((function(e){return i.marks[e]})).filter((function(e){return-1===c.indexOf(e.name)})).forEach((function(e){return u.removeMark(a,l,e)})),t(u))}},t.getParentMark=function(e,t){var r=e.selection,n=r.from,i=r.$from,s=r.to,o=r.empty,a=e.doc;if(o)return t.isInSet(e.storedMarks||i.marks())||null;var l=[];return a.nodesBetween(n,s,(function(e){e.isInline&&l.push(t.isInSet(e.marks))})),1===l.length&&l[0]?l[0]:null},t.hasMark=function(e,t){var r,n=e.schema.marks,i=(t.altMarks||[]).filter((function(e){return n[e]})),s=t.altStyle,a=e.selection,l=a.from,u=a.$from,c=a.to,d=a.empty,f=n[t.mark],p=e.doc,m=!1;return d?(r=e.storedMarks||u.marks(),m=f&&f.isInSet(r)||i.some((function(e){return n[e].isInSet(r)}))):m=f&&p.rangeHasMark(l,c,f)||i.some((function(e){return p.rangeHasMark(l,c,n[e])})),!m&&s?o.hasStyle(e,s):Boolean(m)},t.getMark=function(e,t){var r,n=e.selection,i=n.from,s=n.$from,o=n.to,a=n.empty,l=e.doc;if(a)r=t.isInSet(e.storedMarks||s.marks());else{var u=[];l.nodesBetween(i,o,(function(e){e.isInline&&u.push(t.isInSet(e.marks))})),u.some((function(e){return!e}))||(r=u[u.length-1])}return r};t.getActiveMarks=function(e,t){var r=e.selection,n=!1;if(r instanceof s.TextSelection&&r.$cursor)return{hasNodesWithoutMarks:n,marks:r.$cursor.marks().filter((function(e){return!t||e.type.name===t.name}))};var i=[];return r.content().content.descendants((function(e){if("text"===e.type.name){var r=t?function(e,t){return t.marks.filter((function(t){return t.type.name===e.name}))}(t,e):e.marks;e.marks.length>0&&r.length>0?i.push.apply(i,r):n=!0}})),{hasNodesWithoutMarks:n,marks:i}}},function(e,t){e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=r(5),s=r(1),o=r(4);t.changeStyleFromMark=function(e,t){var r=e.find((function(e){return"style"===e.type.name})),n=r&&r.attrs.style;return s.changeStyles(n,t)},t.changeStyleMark=function(e,r,s,o,a){var l=a.create({style:o.style}),u=[],c=[],d=null,f=null;return e.doc.nodesBetween(r,s,(function(e,p,m){if(e.isInline){var g=e.marks;if(!l.isInSet(g)&&m.type.allowsMarkType(l.type)){var v=Math.max(p,r),y=Math.min(p+e.nodeSize,s),h=t.changeStyleFromMark(g,o);if(h.changed||o.newValue){for(var k=h.changed?{style:h.style||null}:{style:[o.style]+": "+o.newValue+";"},M=a.isInSet(g)?g.find((function(e){return"style"===e.type.name})):null,b=M?n.__assign({},M.attrs,k):k,S=a.create(b),_=S.addToSet(g),I=0;I<g.length;I++)g[I].isInSet(_)||(d&&d.to===v&&d.mark.eq(g[I])?d.to=y:(d=new i.RemoveMarkStep(v,y,g[I]),u.push(d)));var L=f&&f.to===v,T=L&&S.attrs.style===f.mark.attrs.style;L&&T?f.to=y:Object.keys(b).some((function(e){return null!==b[e]}))&&(f=new i.AddMarkStep(v,y,S),c.push(f))}}}})),u.forEach((function(t){return e.step(t)})),c.forEach((function(t){return e.step(t)})),u.length+c.length>0},t.hasStyle=function(e,r){var n=e.selection,i=n.from,s=n.$from,o=n.to,a=n.empty,l=!1,u={style:r.name,value:r.value};return a?l=t.changeStyleFromMark(e.storedMarks||s.marks(),u).changed:e.doc.nodesBetween(i,o,(function(e,r,n){!l&&e.isInline&&(l=t.changeStyleFromMark(e.marks,u).changed)})),l},t.getInlineStyles=function(e,r){var n,i=e.selection,s=i.from,o=i.$from,a=i.to,l=i.empty,u=[],c={style:r.name,value:r.value};return l?(n=t.changeStyleFromMark(e.storedMarks||o.marks(),c)).changed&&(u=n.styleMatches):e.doc.nodesBetween(s,a,(function(e,r,i){e.isInline&&((n=t.changeStyleFromMark(e.marks,c)).changed?u.push.apply(u,n.styleMatches):u.push(null))})),u.filter((function(e){return null!==e}))},t.changeStyle=function(e,r){return function(i,s,a){var l=i.selection,u=l.empty,c=l.$cursor,d=l.ranges;if(u&&!c||!o.markApplies(i.doc,d,e))return!1;var f=!1;if(s)if(a=a||i.tr,c){var p=i.storedMarks||c.marks();if(e.isInSet(p)){var m=t.changeStyleFromMark(p,r),g=p.find((function(e){return"style"===e.type.name})),v=n.__assign({},g?g.attrs:{},{style:m.style||null});s(a.removeStoredMark(e)),Object.keys(v).some((function(e){return null!==v[e]}))&&s(a.addStoredMark(e.create(v))),f=!0}}else{for(var y=0;y<d.length;y++){var h=d[y],k=h.$from,M=h.$to;f=t.changeStyleMark(a,k.pos,M.pos,r,e)}f&&(a.scrollIntoView(),s(a))}return f}},t.toggleInlineFormat=function(e,r,n){return function(i,s){var a=i.schema.marks,l=e.altStyle,u=e.altMarks,c=void 0===u?[]:u,d=e.mark;r=r||i.tr;var f=!1,p=!1,m=function(){return p=!0};if(l&&a.style){var g=a.style;f=t.changeStyle(g,{style:l.name,value:l.value})(i,m,r)}var v=[d].concat(c).filter((function(e){return a[e]})).map((function(e){return o.hasMark(i,{mark:e})&&a[e]})).filter((function(e){return e}));return v.length?o.removeMarks(v,i,m,r):f||o.toggleMark(a[d],n,r)(i,m),p&&s(r),p}},t.applyInlineStyle=function(e,r){return function(i,a){var l=i.schema.marks.style,u={style:e.style,value:/^.+$/,newValue:e.value},c=i.tr;r&&c.setMeta("commandName",r),c.setMeta("args",e);var d=i.selection,f=d.empty,p=d.$cursor,m=d.ranges;if(f&&!p||!o.markApplies(i.doc,m,l))return!1;if(p){var g=i.storedMarks||p.marks(),v=l.isInSet(g)?g.find((function(e){return"style"===e.type.name})):null,y={style:null};if(v&&v.attrs.style){var h=s.changeStyles(v.attrs.style,u);h.changed&&h.style&&(y.style=h.style)}else u.newValue&&(y.style=[u.style]+": "+u.newValue+";");var k=v?n.__assign({},v.attrs,y):y;return Object.keys(k).some((function(e){return null!==k[e]}))?a(c.addStoredMark(l.create(k))):a(c.removeStoredMark(l)),!0}return t.changeStyle(l,u)(i,a,c)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=r(1),s=r(5),o=r(3),a=r(0);t.changeBlockNode=function(e,t,r,n,i,a){var l=e.selection,u=l.from,c=l.to,d=!1;if(e.doc.nodesBetween(u,c,(function(t,r){if(d)return!1;if(t.isTextblock&&!t.hasMarkup(i,a))if(t.type===i)d=!0;else{var n=e.doc.resolve(r),s=n.index();d=n.parent.canReplaceWith(s,s+1,i)}})),!d)return!1;if(t){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var f=r.steps.length;r.doc.nodesBetween(u,c,(function(e,t){if(e.eq(n)&&e.isTextblock&&!e.hasMarkup(i,a)&&function(e,t,r){var n=e.resolve(t),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}(r.doc,r.mapping.slice(f).map(t),i)){r.clearIncompatible(r.mapping.slice(f).map(t,1),i);var l=r.mapping.slice(f),u=l.map(t,1),c=l.map(t+e.nodeSize,1),d=new o.Slice(o.Fragment.from(i.create(a,null,e.marks)),0,0);return r.step(new s.ReplaceAroundStep(u,c,u+1,c-1,d,1,!0)),!1}}))}return!0},t.blockNodes=function(e){var t=e.selection,r=t.from,n=t.to,i=t.$from,s=[];return t.node?t.node.isBlock?s.push(t.node):i.parent&&i.parent.isBlock&&s.push(i.parent):e.doc.nodesBetween(r,n,(function(e){e.isBlock&&s.push(e)})),s},t.formatBlockElements=function(e,r){return function(i,s){var o=t.blockNodes(i),a=i.schema.nodes,l=!1,u=i.tr;return u.setMeta("commandName",r),u.setMeta("args",{value:e}),o.forEach((function(r){if(r.type.isTextblock)if("p"===e){var o=r.attrs,c=o.level,d=n.__rest(o,["level"]);l=t.changeBlockNode(i,s,u,r,a.paragraph,d)||l}else if(/^h[1-6]$/i.test(e)){c=parseInt(e.substr(1),10);l=t.changeBlockNode(i,s,u,r,a.heading,n.__assign({},r.attrs,{level:c}))||l}else if("blockquote"===e){var f=r.attrs;c=f.level,d=n.__rest(f,["level"]);l=t.changeBlockNode(i,s,u,r,a.blockquote,d)||l}})),l&&s(u.scrollIntoView()),l}},t.getBlockFormats=function(e){var r=t.blockNodes(e),n=e.schema.nodes,i=[];return r.forEach((function(e){if(e.type===n.paragraph)i.push("p");else if(e.type===n.heading)for(var t=1;t<=6;t++)if(e.attrs.level===t){i.push("h"+t);break}})),i},t.addStyles=function(e,t){var r=e.attrs.style,n=null,s=null;r&&t.forEach((function(e){s={style:e.name,value:/^.+$/,newValue:e.value},n=i.changeStyles(r,s),r=n.changed?n.style:r}));return r=r||t.reduce((function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""}),""),Object.assign({},e.attrs,{style:r||null})},t.hasNode=function(e,t){var r=e.selection,n=r.from,i=r.to,s=!1;return e.doc.nodesBetween(n,i,(function(e){return!(s=s||e.type===t)})),s};var l=function(e){return function(e,t){return Object.keys(e).filter((function(e){return t(e)})).reduce((function(t,r){var n;return Object.assign(t,((n={})[r]=e[r],n))}),{})}(e,(function(t){return null!==e[t]&&void 0!==e[t]&&""!==e[t]}))};t.getNodeTagName=function(e,t){var r,n=e.type.spec.parseDOM||[],i=e.attrs;return(r=1===n.length?n[0]:n.find((function(r){var n=o.DOMSerializer.fromSchema(t).serializeNode(e);return JSON.stringify(r.getAttrs(n))===JSON.stringify(l(i))})))?r.tag.toLowerCase().replace(/ *\[[^\]]*]/,""):""},t.activeNode=function(e){var r,n=e.schema.nodes.doc;if(e.selection instanceof a.AllSelection)r=e.doc;else if(e.selection instanceof a.TextSelection){var s=e.selection.$anchor,o=s.node(s.blockRange().depth);r=i.getTypeName(o)===i.getTypeName(n)?s.node():o}else e.selection instanceof a.NodeSelection&&(r=e.selection.node);return{name:i.getTypeName(r),tag:t.getNodeTagName(r,e.schema)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3),i=r(0),s=r(1);t.parseContent=function(e,t,r){var i=document.createElement("div");return i.innerHTML=s.safeString(e),n.DOMParser.fromSchema(t).parse(i,r)},t.getHtml=function(e){var t=n.DOMSerializer.fromSchema(e.schema).serializeFragment(e.doc.content),r=document.createElement("div");return r.appendChild(t),r.innerHTML},t.setHtml=function(e,r,n){return void 0===r&&(r="setHTML"),void 0===n&&(n={preserveWhitespace:"full"}),function(s,o){return o(s.tr.setSelection(new i.AllSelection(s.doc)).replaceSelectionWith(t.parseContent(e,s.schema,n)).setMeta("commandName",r))}}},function(e,t){e.exports=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=r(11);t.indentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"}],listsTypes:n.__assign({},i.listsTypes)},t.outdentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"}],listsTypes:n.__assign({},i.listsTypes)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);t.listsTypes={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},t.orderedList={listType:t.listsTypes.orderedList,types:n.__assign({},t.listsTypes)},t.bulletList={listType:t.listsTypes.bulletList,types:n.__assign({},t.listsTypes)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=r(3),s=r(0),o=r(5),a=r(13),l=r(9),u=r(11);function c(e,r,n){var i=e.selection,s=i.from,o=i.to,a=e.schema.nodes,l=a.paragraph,u=a.heading,c=[];r.doc.nodesBetween(s,o,(function(e,t){e.type!==l&&e.type!==u||c.push({node:e,pos:t})}));for(var d=c.length-1;d>=0;d--){var f=c[d],p=r.doc.resolve(r.mapping.map(f.pos));if(p.depth>0){var m=void 0;m=f.node.textContent&&f.node.textContent.length>0?r.doc.resolve(r.mapping.map(f.pos+f.node.textContent.length)):r.doc.resolve(r.mapping.map(f.pos+1));var g=p.blockRange(m);g&&r.lift(g,t.getListLiftTarget(e.schema,p,n))}}return r}function d(e){return function(t,r,n){if(!n)return!1;var i=(t=n.state).schema.nodes[e.listType],s=t.selection,o=s.$from,a=s.$to,l=o.node(-2),u=o.node(-3),c=m(t.doc,o,a,i);return(l&&l.type===i||u&&u.type===i)&&c?y(e)(t,r):(c||(y(e)(t,r),t=n.state),h(i)(t,r))}}function f(e,t,r,n){n||(n=e.schema.nodes.listItem);var s=t.$from,a=t.$to,l=s.blockRange(a,(function(e){return e.childCount&&e.firstChild.type===n}));if(!l||l.depth<2||s.node(l.depth-1).type!==n)return r;var u=l.end,c=a.end(l.depth);return u<c&&(r.step(new o.ReplaceAroundStep(u-1,c,u,c,new i.Slice(i.Fragment.from(n.create(void 0,l.parent.copy())),1,0),1,!0)),l=new i.NodeRange(r.doc.resolve(s.pos),r.doc.resolve(c),l.depth)),r.lift(l,o.liftTarget(l)).scrollIntoView()}function p(e,t,r,n,i,o){o||(o=e.schema.nodes.listItem);var a=!1;return i.doc.nodesBetween(t,r,(function(r,l){if(!a&&r.type===o&&l>t){a=!0;for(var u=n+3;u>n+2;){var c=i.doc.resolve(i.mapping.map(l));u=c.depth;var d=i.doc.resolve(i.mapping.map(l+r.textContent.length)),p=new s.TextSelection(c,d);i=f(e,p,i,o)}}})),i}function m(e,t,r,n){return 0===g(e,t,r).filter((function(e){return e.type!==n})).length}function g(e,t,r){for(var n=Array(),i=v(e,t).depth,s=e.resolve(t.start(i));s.pos<=r.start(r.depth);){var o=Math.min(s.depth,i),a=s.node(o);if(a&&n.push(a),0===o)break;var l=e.resolve(s.after(o));if(l.start(o)>=e.nodeSize-2)break;l.depth!==s.depth&&(l=e.resolve(l.pos+2)),s=l.depth?e.resolve(l.start(l.depth)):e.resolve(l.end(l.depth))}return n}function v(e,t){var r=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;for(var n=t.node(t.depth),i=t;t.depth>=1;)(n=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==r.indexOf(n.type.name)&&(i=t);return i}function y(e){return function(t,r){var n=t.tr,i=t.selection,a=i.$from,l=i.$to;return n.doc.nodesBetween(a.pos,l.pos,(function(r,i){if(r.isTextblock||"blockquote"===r.type.name||"div"===r.type.name){var a=new s.NodeSelection(n.doc.resolve(n.mapping.map(i))),l=a.$from.blockRange(a.$to);if(!l||a.$from.parent.type!==t.schema.nodes[e.listItem])return!1;var u=l&&o.liftTarget(l);if(null==u)return!1;n.lift(l,u)}})),r&&r(n),!0}}function h(e){return a.autoJoin(l.wrapInList(e),(function(t,r){return t.type===r.type&&t.type===e}))}t.rootListDepth=function(e,t){for(var r,n=t.bulletList,i=t.orderedList,s=t.listItem,o=e.depth-1;o>0;o--){var a=e.node(o);if(a.type!==n&&a.type!==i||(r=o),a.type!==n&&a.type!==i&&a.type!==s)break}return r},t.getListLiftTarget=function(e,t,r){for(var n=t.depth,i=e.nodes[r.bulletList],s=e.nodes[r.orderedList],o=e.nodes[r.listItem],a=t.depth;a>0;a--){var l=t.node(a);if(l.type!==i&&l.type!==s||(n=a),l.type!==i&&l.type!==s&&l.type!==o)break}return n-1},t.liftSelectionList=c,t.toggleList=function(e,r,n,i,s){var o=i.listType,a=e.selection,l=a.$from.node(a.$from.depth-2),u=a.$to.node(a.$to.depth-2);if(l&&l.type.name===o&&u&&u.type.name===o){var f=n.state.schema.nodes,m={bulletList:f[i.bulletList],orderedList:f[i.orderedList],listItem:f[i.listItem]},g=t.rootListDepth(a.$to,m),v=p(e,a.$to.pos,a.$to.end(g),g,n.state.tr,m.listItem);return(v=c(e,v,i)).setMeta("commandName",s),r(v),!0}return d(i)(e,r,n)},t.toggleListCommand=d,t.liftFollowingList=p,t.isRangeOfType=m,t.getAncestorNodesBetween=g,t.findAncestorPosition=v,t.liftListItems=y,t.wrapInList=h,t.toggleUnorderedList=function(e,r,i){return t.toggleList(e,r,i,n.__assign({listType:u.bulletList.listType},u.bulletList.types))},t.toggleOrderedList=function(e,r,i){return t.toggleList(e,r,i,n.__assign({listType:u.orderedList.listType},u.orderedList.types))},t.splitListItemKeepMarks=function(e){return function(t,r){return l.splitListItem(e)(t,(function(e){var n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();n&&e.ensureMarks(n),r(e)}))}}},function(e,t){e.exports=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,i=function(e){return/^MsoListParagraph/.test(e.className)},s=function(e){var t=e.innerHTML;return t=(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},o=function(e,t){var r=document.createElement(e);return r.style.listStyleType=t,r},a=function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},l=function(e,t){var r=[];Array.from(e).forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE){var n=e;n.getAttribute("datalist")?(r.push(e),t.add(r)):i(n)&&r.length?r.push(e):(r=[],"DIV"===n.nodeName?l(n.children,t):"TABLE"===n.nodeName&&Array.from(n.querySelectorAll("td,th")).forEach((function(e){l(e.children,t)})))}}))},u=function(e){var t,r=e.innerHTML,n=function(e){return e.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")};return r=r.replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g," "),/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(r)?{tag:"ul",style:(t=n(s(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(t)?null:/^o/.test(t)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(r)?{tag:"ol",style:a(n(s(e)))}:void 0},c=function(e){var t,r=e.nodeName.toLowerCase();e.firstChild&&e.firstChild.nodeType===Node.COMMENT_NODE&&e.removeChild(e.firstChild),1===e.childNodes.length?t=e.firstChild.nodeType===Node.TEXT_NODE?s(e):e.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(e.removeChild(e.firstChild),3===e.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(e.firstChild.nodeValue)&&e.removeChild(e.firstChild),/^(&nbsp;|\s)+$/i.test(e.firstChild.innerHTML)&&e.removeChild(e.firstChild),t="p"!==r?"<"+r+">"+e.innerHTML+"</"+r+">":e.innerHTML),e.parentNode.removeChild(e);var n=document.createElement("li");return n.innerHTML=t,n};t.convertMsLists=function(e){var t=document.createElement("div");t.innerHTML=function(e){return e=e.replace(n,(function(e,t,r){return'datalist="'+t+'" datalevel="'+r+'" '+e}))}(e);var r=new Set;return l(t.children,r),r.forEach((function(e){return function(e){var t,r,n,s,a,l,d,f,p,m,g,v,y,h=-1,k={};for(f=0;f<e.length;f++){var M=(y={datalist:(p=e[f]).getAttribute("datalist"),datalevel:p.getAttribute("datalevel")}).datalist,b=u(p);if(m=b&&b.tag){if(g=y.datalevel||parseFloat(p.style.marginLeft||0),y.datalevel||p.style.marginLeft){var S=m+M;k[g]||(k[g]={}),(!r||r<0)&&(r=g,n=M,s=(d=e.filter((function(e){return e.getAttribute("datalist")===String(n)})))[d.length-1],l=o(m,b&&b.style),p.parentNode.insertBefore(l,p),h=g,k[g][S]=l),a=s===p,v=k[g][S],(g>h||!v)&&(v=o(m,b&&b.style),k[g][S]=v,t.appendChild(v)),t=c(p),v.appendChild(t),a?r=h=-1:h=g}}else!t||a&&!i(p)||(p.style.marginLeft&&(p.style.marginLeft=""),p.style.marginLeft&&(p.style.margin=""),t.appendChild(p))}}(e)})),t.innerHTML}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(8);t.getHtml=n.getHtml,t.setHtml=n.setHtml,t.parseContent=n.parseContent;var i=r(6);t.applyInlineStyle=i.applyInlineStyle,t.getInlineStyles=i.getInlineStyles,t.toggleInlineFormat=i.toggleInlineFormat;var s=r(16);t.applyLink=s.applyLink,t.removeLink=s.removeLink;var o=r(17);t.insertText=o.insertText;var a=r(18);t.insertImage=a.insertImage;var l=r(19);t.alignBlocks=l.alignBlocks,t.isAligned=l.isAligned;var u=r(7);t.hasNode=u.hasNode,t.activeNode=u.activeNode,t.formatBlockElements=u.formatBlockElements,t.getBlockFormats=u.getBlockFormats;var c=r(4);t.hasMark=c.hasMark,t.getMark=c.getMark,t.getActiveMarks=c.getActiveMarks,t.removeAllMarks=c.removeAllMarks;var d=r(20);t.indent=d.indent,t.canIndentAsListItem=d.canIndentAsListItem,t.outdent=d.outdent,t.canOutdentAsListItem=d.canOutdentAsListItem,t.isIndented=d.isIndented,t.canBeIndented=d.canBeIndented,t.indentBlocks=d.indentBlocks;var f=r(12);t.toggleOrderedList=f.toggleOrderedList,t.toggleUnorderedList=f.toggleUnorderedList,t.toggleList=f.toggleList;var p=r(1);t.hasSameMarkup=p.hasSameMarkup,t.getUniqueStyleValues=p.getUniqueStyleValues,t.getSelectionText=p.getSelectionText,t.getNodeFromSelection=p.getNodeFromSelection,t.canInsert=p.canInsert,t.insertNode=p.insertNode,t.indentHtml=p.indentHtml;var m=r(21);t.alignLeftRules=m.alignLeftRules,t.alignCenterRules=m.alignCenterRules,t.alignRightRules=m.alignRightRules,t.alignJustifyRules=m.alignJustifyRules,t.alignRemoveRules=m.alignRemoveRules;var g=r(10);t.indentRules=g.indentRules,t.outdentRules=g.outdentRules;var v=r(22);t.nodes=v.nodes,t.marks=v.marks;var y=r(24);t.buildKeymap=y.buildKeymap,t.buildListKeymap=y.buildListKeymap;var h=r(27);t.bold=h.bold,t.italic=h.italic,t.underline=h.underline,t.strikethrough=h.strikethrough,t.subscript=h.subscript,t.superscript=h.superscript,t.link=h.link;var k=r(28);t.sanitize=k.sanitize,t.removeComments=k.removeComments,t.removeTag=k.removeTag,t.pasteCleanup=k.pasteCleanup,t.sanitizeClassAttr=k.sanitizeClassAttr,t.sanitizeStyleAttr=k.sanitizeStyleAttr,t.removeAttribute=k.removeAttribute;var M=r(14);t.convertMsLists=M.convertMsLists;var b=r(29);t.createTable=b.createTable},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(6),i=r(4),s=r(0);t.removeLink=function(e,t){return function(r,s){var o=r.selection.$cursor;if(o){var a=o.parent,l=o.index(),u=r.schema.marks[e.mark],c=a.child(l).marks.find((function(e){return e.type===u})),d=a.childCount,f=o.pos-o.textOffset,p=a.child(l).nodeSize,m=void 0,g=void 0;for(m=l-1;m>=0&&c.isInSet(a.child(m).marks);)p+=g=a.child(m).nodeSize,f-=g,m-=1;for(m=l+1;m<d&&c.isInSet(a.child(m).marks);)p+=a.child(m).nodeSize,m+=1;s(i.removeMark(t||r.tr,f,f+p,c))}else n.toggleInlineFormat(e,t)(r,s)}},t.applyLink=function(e,r){var o=e.mark,a=e.attrs;return void 0===r&&(r="link"),function(e,l){var u=e.schema.marks,c=e.tr;r&&(c.setMeta("commandName",r),c.setMeta("args",a));var d=!1,f=function(){return d=!0};if(i.getParentMark(e,u[o]))!function(e,t){return function(r,n){var i=r.selection,s=i.$cursor,o=i.from,a=i.to,l=r.schema.marks[e.mark];if(s){var u=s.parent,c=s.index(),d=u.child(c).marks.find((function(e){return e.type===l})),f=u.childCount,p=s.pos-s.textOffset,m=u.child(c).nodeSize,g=void 0,v=void 0;for(g=c-1;g>=0&&d.isInSet(u.child(g).marks);)m+=v=u.child(g).nodeSize,p-=v,g-=1;for(g=c+1;g<f&&d.isInSet(u.child(g).marks);)m+=u.child(g).nodeSize,g+=1;t.removeMark(p,p+m,l),t.addMark(p,p+m,l.create(e.attrs)),n(t)}else t.doc.nodesBetween(o,a,(function(r,i){r.isInline&&l.isInSet(r.marks)&&(t.removeMark(i,i+r.nodeSize,l),t.addMark(i,i+r.nodeSize,l.create(e.attrs)),n(t))}))}}({mark:o,attrs:a},c)(e,f);else{var p=e;i.hasMark(e,{mark:o})&&(t.removeLink({mark:o,attrs:a},c)(e,f),p=s.EditorState.create({doc:c.doc,selection:c.selection})),d?i.toggleMark(u[o],a,c)(p,f):n.toggleInlineFormat({mark:o},c,a)(p,f)}return d&&l(c),d}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertText=function(e){return function(t,r){r(t.tr.insertText(e.text,e.from,e.to))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1);t.insertImage=function(e){return function(t,r){var i=t.schema.nodes.image,s=i.createAndFill(e);n.insertNode(s)(t,(function(t){return r(t.setMeta("commandName","insertImage").setMeta("args",e))}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7);t.alignBlocks=function(e,t){return function(r,i){var s=n.blockNodes(r),o=r.tr;o.setMeta("commandName",t);var a=!1;return s.forEach((function(t){if(t.type.isTextblock){var s={},l=e.find((function(e){return e.node===t.type.name}));l&&(s=n.addStyles(t,l.style)),a=n.changeBlockNode(r,i,o,t,t.type,s)||a}})),a&&i(o.scrollIntoView()),a}},t.isAligned=function(e,t){var r=n.blockNodes(e),i=!1;return r.forEach((function(e){if(!i&&e.type.isTextblock&&e.attrs.style){var r=t.find((function(t){return t.node===e.type.name}));r&&(i=r.style.every((function(t){return!!t.value&&new RegExp(t.name+":\\s?"+t.value,"i").test(e.attrs.style)})))}})),i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(9),i=r(10),s=r(7),o=r(1);t.indentBlocks=function(e,t,r){return function(n,i){var o=s.blockNodes(n),a=n.tr,l=!1;return a.setMeta("commandName",t),o.forEach((function(t){if(t.type.isTextblock){var o=void 0,u=e.find((function(e){return e.node===t.type.name}));if(u){var c="rtl"===r?u.rtlStyle:u.style,d={name:c,value:u.step>0?""+u.step+u.unit:""};if(t.attrs.style){var f=new RegExp(c+":\\s?(\\d+)"+u.unit,"i"),p=t.attrs.style.match(f);if(p){var m=parseFloat(p[1])+u.step;m=m<=0?"":m,d.value=""+m+(m?u.unit:"")}}o=s.addStyles(t,[d])}o&&(l=s.changeBlockNode(n,i,a,t,t.type,o)||l)}})),l&&i(a.scrollIntoView()),l}},t.isIndented=function(e,t,r){var n=s.blockNodes(e),i=!1;return n.forEach((function(e){if(!i&&e.type.isTextblock&&e.attrs.style){var n=t.find((function(t){return t.node===e.type.name}));if(n){var s="rtl"===r?n.rtlStyle:n.style,o=new RegExp(s+":\\s?\\d+"+n.unit,"i");i=o.test(e.attrs.style)}}})),i},t.canIndentAsListItem=function(e,t){return n.sinkListItem(t)(e)},t.canOutdentAsListItem=function(e,t){var r=e.schema.nodes[t.listsTypes.listItem],i=e.schema.nodes[t.listsTypes.orderedList],s=e.schema.nodes[t.listsTypes.bulletList],a=!!o.findNthParentNodeOfType(i,2)(e.selection),l=!!o.findNthParentNodeOfType(s,2)(e.selection);return(a||l)&&n.liftListItem(r)(e)},t.canBeIndented=function(e,r){var n=e.schema.nodes,o=n[i.indentRules.listsTypes.listItem];return(t.isIndented(e,r.nodes)||i.indentRules.nodes.some((function(t){return n[t.node]&&s.hasNode(e,n[t.node])})))&&!s.hasNode(e,o)},t.indent=function(e,r){var s=e.schema.nodes[i.indentRules.listsTypes.listItem],o=t.canBeIndented(e,i.indentRules);t.canIndentAsListItem(e,s)?n.sinkListItem(s)(e,r):o&&t.indentBlocks(i.indentRules.nodes)(e,r)},t.outdent=function(e,r){var s=e.schema.nodes[i.outdentRules.listsTypes.listItem],o=t.canBeIndented(e,i.outdentRules);t.canOutdentAsListItem(e,i.outdentRules)?n.liftListItem(s)(e,r):o&&t.indentBlocks(i.outdentRules.nodes)(e,r)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){return{name:e,value:t}};t.alignLeftRules=[{node:"paragraph",style:[n("text-align","left")]},{node:"heading",style:[n("text-align","left")]},{node:"listItem",style:[n("text-align","left"),n("list-style-position","inside")]}],t.alignRightRules=[{node:"paragraph",style:[n("text-align","right")]},{node:"heading",style:[n("text-align","right")]},{node:"listItem",style:[n("text-align","right"),n("list-style-position","inside")]}],t.alignCenterRules=[{node:"paragraph",style:[n("text-align","center")]},{node:"heading",style:[n("text-align","center")]},{node:"listItem",style:[n("text-align","center"),n("list-style-position","inside")]}],t.alignJustifyRules=[{node:"paragraph",style:[n("text-align","justify")]},{node:"heading",style:[n("text-align","justify")]},{node:"listItem",style:[n("text-align","justify"),n("list-style-position","justify")]}],t.alignRemoveRules=[{node:"paragraph",style:[n("text-align","")]},{node:"heading",style:[n("text-align","")]},{node:"listItem",style:[n("text-align",""),n("list-style-position","")]}]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=r(23),s=["blockquote",0],o=["hr"],a=["pre",["code",0]],l=["ol",0],u=["ul",0],c=["li",0],d=function(e){for(var t,r={},n=e.attributes,i=0;i<n.length;i++)r[(t=n[i]).name]=t.value;return r},f=function(e,t){for(var r in e)if(r&&null!==e[r]&&r!==t)return!0;return!1},p=function(e,t){var r={};for(var n in e)n&&null!==e[n]&&n!==t&&(r[n]=e[n]);return r},m=function(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t},g=n.__assign({link:{attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:d}],toDOM:function(e){return["a",p(e.attrs),0]}}},m("strong"),m("b"),m("em"),m("i"),m("u"),m("del"),m("sub"),m("sup"),m("code"),{style:{attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"span",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["span",p(e.attrs),0]:["span",0]}}});t.marks=g;var v=n.__assign({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"p",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["p",p(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"div",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["div",p(e.attrs),0]:["div",0]}},blockquote:{attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:function(){return s}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return o}},heading:{attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return n.__assign({},d(e),{level:1})}},{tag:"h2",getAttrs:function(e){return n.__assign({},d(e),{level:2})}},{tag:"h3",getAttrs:function(e){return n.__assign({},d(e),{level:3})}},{tag:"h4",getAttrs:function(e){return n.__assign({},d(e),{level:4})}},{tag:"h5",getAttrs:function(e){return n.__assign({},d(e),{level:5})}},{tag:"h6",getAttrs:function(e){return n.__assign({},d(e),{level:6})}}],toDOM:function(e){return f(e.attrs,"level")?["h"+e.attrs.level,p(e.attrs,"level"),0]:["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:function(){return a}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:n.__assign({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["img",p(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["br",p(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return n.__assign({},d(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?f(e.attrs,"order")?["ol",p(e.attrs,"order"),0]:l:["ol",n.__assign({},p(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"ul",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["ul",p(e.attrs),0]:u}},list_item:{content:"block*",attrs:n.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"li",getAttrs:d}],toDOM:function(e){return f(e.attrs)?["li",p(e.attrs),0]:c},defining:!0}},i.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:{}}));t.nodes=v},function(e,t){e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(13),i=r(25),s=r(26),o=r(12),a="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.buildKeymap=function(e){var t={};if(t["Mod-z"]=i.undo,t["Shift-Mod-z"]=i.redo,t.Backspace=n.chainCommands(s.undoInputRule,n.deleteSelection,n.joinBackward,n.selectNodeBackward),t.Enter=n.chainCommands(n.newlineInCode,n.createParagraphNear,n.liftEmptyBlock,n.splitBlockKeepMarks),a||(t["Mod-y"]=i.redo),e.marks.strong&&(t["Mod-b"]=n.toggleMark(e.marks.strong)),e.marks.em&&(t["Mod-i"]=n.toggleMark(e.marks.em)),e.marks.underline&&(t["Mod-u"]=n.toggleMark(e.marks.underline)),e.nodes.hard_break){var r=e.nodes.hard_break,o=n.chainCommands(n.exitCode,(function(e,t){return t(e.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0}));t["Shift-Enter"]=o}return t},t.buildListKeymap=function(e){var t={};return e.nodes.list_item&&(t.Enter=o.splitListItemKeepMarks(e.nodes.list_item)),t}},function(e,t){e.exports=a},function(e,t){e.exports=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bold={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},t.italic={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},t.underline={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},t.strikethrough={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},t.subscript={mark:"sub"},t.superscript={mark:"sup"},t.link={mark:"link"},t.unlink={mark:"link"}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(14);t.sanitize=function(e){return e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^[\s\S]+?<!--StartFragment-->\s*([\s\S]*?)\s*<!--EndFragment-->[\s\S]+$/,"$1")).replace(/<\/?[ovw]:[^>]*?>/gi,"")).replace(/<\\?\??xml[^>]*>/gi,"")).replace(/<(?:link|meta) [^>]+?>/gi,"")).replace(/<style[^>]*?>\s*<\/style>/gi,"")).replace(/<\/?st1:.*?>/gi,"")).replace(/<a name="[a-zA-Z0-9_]+">/gim,"")).replace(/v:shapes?="[^"]+"/gi,"")).replace(/<!\[if !supportLists\]>/gi,"")).replace(/<!\[endif\]>/gi,"")},t.removeComments=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},t.removeTag=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},t.removeAttribute=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},t.sanitizeClassAttr=function(e){/^Mso/.test(e.value)&&t.removeAttribute(e)};var i=/\s*;\s*/,s=/\s*:\s*/;t.sanitizeStyleAttr=function(e){var r,n,o=e.value.split(i).filter((function(e){return Boolean(e)})),a=e.ownerElement.style,l="";o.forEach((function(e){var t;t=e.split(s),r=t[0],n=t[1],void 0!==a[r]&&(l+=r+": "+n+"; ")})),(l=l.trim())?e.value=l:t.removeAttribute(e)};t.pasteCleanup=function(e,r){var i=e;if(r.convertMsLists&&(i=n.convertMsLists(i)),r.stripTags&&(i=t.removeTag(i,r.stripTags)),r.attributes){var s=document.createElement("div");s.innerHTML=i,Array.from(s.querySelectorAll("*")).forEach((function(e){return function(e,t){if(e.nodeType===Node.ELEMENT_NODE){for(var r=e.attributes.length-1;r>=0;r--){var n=e.attributes[r];t[n.name]?t[n.name](n):t["*"]&&t["*"](n)}"SPAN"===e.nodeName&&0===e.attributes.length&&function(e){var t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}(e)}}(e,r.attributes)})),i=s.innerHTML}return i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTable=function(e,t,r){for(var n,i=e.table,s=e.table_row,o=e.table_cell,a=[],l=0;l<t+1;l++){n=[];for(var u=0;u<r+1;u++)n.push(o.createAndFill());a.push(s.createAndFill(void 0,n))}return i.createAndFill(void 0,a)}}])}));
import { chainCommands, toggleMark, exitCode, newlineInCode, createParagraphNear, liftEmptyBlock, splitBlockKeepMarks, deleteSelection, joinBackward, selectNodeBackward } from 'prosemirror-commands';
import { undo, redo } from 'prosemirror-history';
import { undoInputRule } from 'prosemirror-inputrules';
// import { Keymap } from '../types/keymap';
import { splitListItemKeepMarks } from '../lists';

@@ -31,4 +30,4 @@ var mac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false;

}
if (schema.nodes.hardBreak) {
var br_1 = schema.nodes.hardBreak;
if (schema.nodes.hard_break) {
var br_1 = schema.nodes.hard_break;
var cmd = chainCommands(exitCode, function (state, dispatch) {

@@ -38,7 +37,3 @@ dispatch(state.tr.replaceSelectionWith(br_1.create()).scrollIntoView());

});
keys['Mod-Enter'] = cmd;
keys['Shift-Enter'] = cmd;
if (mac) {
keys['Ctrl-Enter'] = cmd;
}
}

@@ -45,0 +40,0 @@ return keys;

import { chainCommands, toggleMark, exitCode, newlineInCode, createParagraphNear, liftEmptyBlock, splitBlockKeepMarks, deleteSelection, joinBackward, selectNodeBackward } from 'prosemirror-commands';
import { undo, redo } from 'prosemirror-history';
import { undoInputRule } from 'prosemirror-inputrules';
// import { Keymap } from '../types/keymap';
import { splitListItemKeepMarks } from '../lists';

@@ -31,4 +30,4 @@ const mac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false;

}
if (schema.nodes.hardBreak) {
const br = schema.nodes.hardBreak;
if (schema.nodes.hard_break) {
const br = schema.nodes.hard_break;
const cmd = chainCommands(exitCode, (state, dispatch) => {

@@ -38,7 +37,3 @@ dispatch(state.tr.replaceSelectionWith(br.create()).scrollIntoView());

});
keys['Mod-Enter'] = cmd;
keys['Shift-Enter'] = cmd;
if (mac) {
keys['Ctrl-Enter'] = cmd;
}
}

@@ -45,0 +40,0 @@ return keys;

@@ -6,3 +6,2 @@ "use strict";

var prosemirror_inputrules_1 = require("prosemirror-inputrules");
// import { Keymap } from '../types/keymap';
var lists_1 = require("../lists");

@@ -34,4 +33,4 @@ var mac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false;

}
if (schema.nodes.hardBreak) {
var br_1 = schema.nodes.hardBreak;
if (schema.nodes.hard_break) {
var br_1 = schema.nodes.hard_break;
var cmd = prosemirror_commands_1.chainCommands(prosemirror_commands_1.exitCode, function (state, dispatch) {

@@ -41,7 +40,3 @@ dispatch(state.tr.replaceSelectionWith(br_1.create()).scrollIntoView());

});
keys['Mod-Enter'] = cmd;
keys['Shift-Enter'] = cmd;
if (mac) {
keys['Ctrl-Enter'] = cmd;
}
}

@@ -48,0 +43,0 @@ return keys;

@@ -1,1 +0,1 @@

System.register("@progress/kendo-editor-common",["prosemirror-model","prosemirror-state","prosemirror-schema-list","tslib","prosemirror-transform","prosemirror-commands","prosemirror-history","prosemirror-inputrules","prosemirror-tables"],function(S){var s,i,o,l,u,c,d,f,p;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){s=t(e)},function(e){i=t(e)},function(e){o=t(e)},function(e){l=t(e)},function(e){u=t(e)},function(e){c=t(e)},function(e){d=t(e)},function(e){f=t(e)},function(e){p=t(e)}],execute:function(){function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var n,a;a={},r.m=n=[function(e,t){e.exports=l},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(3),a=t(2),v=t(6),h=t(4),o=t(14);r.changeStyles=function(e,t){var n=t.style,r=t.value,a=t.newValue,s=[];if(e){var i=e.split(/\s*;\s*/).filter(function(e){return e}),o=i.filter(function(e){if(!e.toLowerCase().trim().startsWith(n))return!0;var t=e.split(":")[1].trim();return!r.test(t)||(s.push(t),!1)});return a&&o.push(n+": "+a),{style:o.join("; ")+(o.length?";":""),changed:!!a||o.length!==i.length,styleMatches:s}}return{changed:!1,styleMatches:s,style:null}},r.changeStyle=function(m,g){return function(e,t,n){var r=e.selection,a=r.empty,s=r.$cursor,i=r.ranges;if(a&&!s||!v.markApplies(e.doc,i,m))return!1;var o=!1;if(t)if(n=n||e.tr,s){var l=e.storedMarks||s.marks();if(m.isInSet(l)){var u=h.changeStyleFromMark(l,g);t(n.removeStoredMark(m)),t(n.addStoredMark(m.create({style:u.style}))),o=!0}}else{for(var c=0;c<i.length;c++){var d=i[c],f=d.$from,p=d.$to;o=h.changeStyleMark(n,f.pos,p.pos,g,m)}o&&(n.scrollIntoView(),t(n))}return o}},r.canInsert=function(e,t){for(var n=e.selection.$from,r=n.depth;0<=r;r--){var a=n.index(r);if(n.node(r).canReplaceWith(a,a,t))return!0}return!1},r.getTypeName=function(e){return e instanceof i.Node?e.type.name:e.name},r.findParentNode=function(a){return function(e){for(var t=e.$from,n=t.depth;0<n;n--){var r=t.node(n);if(a(r))return{depth:n,node:r}}}},r.findNthParentNode=function(a,s){return void 0===s&&(s=1),function(e){for(var t=e.$from,n=t.depth;0<n;n--){var r=t.node(n);if(a(r)&&0==--s)return{depth:n,node:r}}}},r.findNthParentNodeOfType=function(t,n){return void 0===n&&(n=1),function(e){return r.findNthParentNode(function(e){return r.getTypeName(e)===r.getTypeName(t)},n)(e)}},r.insertNode=function(r,a){return function(e,t){var n=e.tr.replaceSelectionWith(r);a&&n.scrollIntoView(),t(n)}},r.isNullOrUndefined=function(e){return null==e},r.safeString=function(e){return r.isNullOrUndefined(e)?"":e.toString()},r.hasSameMarkup=function(e,t,n,r){var a=i.Fragment.from(o.parseContent(e,n,r)),s=i.Fragment.from(o.parseContent(t,n,r));return a.eq(s)},r.first=function(e){return e[0]},r.last=function(e){return e[e.length-1]},r.split=function(t){return function(e){return e.split(t)}},r.trim=function(e){return e.trim()},r.filter=function(t){return function(e){return e.filter(t)}},r.getUniqueStyleValues=function(e,t){if(e.hasNodesWithoutMarks)return"";var n=e.marks.filter(function(e){return"style"===e.type.name}).map(function(e){return e.attrs.style}).map(r.split(";")).map(r.filter(function(e){return e.includes(t)})).map(function(e){return 0!==e.length?e:[t+": INVALID"]}).map(r.first).map(r.split(":")).map(r.last).map(r.trim).reduce(function(e,t){return-1<e.indexOf(t)?e:e.concat([t])},[]);return-1<n.indexOf("INVALID")||1!==n.length?"":n[0]},r.getSelectionText=function(e){var t=e.selection;if(t instanceof a.TextSelection||t instanceof a.AllSelection){var n=t.content().content;return n.textBetween(0,n.size)}return""},r.getNodeFromSelection=function(e){if(e.selection instanceof a.NodeSelection)return e.selection.node},r.indentHtml=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")}},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,I,t){"use strict";Object.defineProperty(I,"__esModule",{value:!0});var L=t(0),T=t(5),v=t(1),y=t(6);I.changeStyleFromMark=function(e,t){var n=e.find(function(e){return"style"===e.type.name}),r=n&&n.attrs.style;return v.changeStyles(r,t)},I.changeStyleMark=function(t,g,v,h,y){var k=y.create({style:h.style}),M=[],b=[],S=null,_=null;return t.doc.nodesBetween(g,v,function(e,t,n){if(e.isInline){var r=e.marks;if(!k.isInSet(r)&&n.type.allowsMarkType(k.type)){var a=Math.max(t,g),s=Math.min(t+e.nodeSize,v),i=I.changeStyleFromMark(r,h);if(i.changed||h.newValue){for(var o=i.changed?{style:i.style||null}:{style:[h.style]+": "+h.newValue+";"},l=y.isInSet(r)?r.find(function(e){return"style"===e.type.name}):null,u=l?L.__assign({},l.attrs,o):o,c=y.create(u),d=c.addToSet(r),f=0;f<r.length;f++)r[f].isInSet(d)||(S&&S.to===a&&S.mark.eq(r[f])?S.to=s:(S=new T.RemoveMarkStep(a,s,r[f]),M.push(S)));var p=_&&_.to===a,m=p&&c.attrs.style===_.mark.attrs.style;p&&m?_.to=s:Object.keys(u).some(function(e){return null!==u[e]})&&(_=new T.AddMarkStep(a,s,c),b.push(_))}}}}),M.forEach(function(e){return t.step(e)}),b.forEach(function(e){return t.step(e)}),0<M.length+b.length},I.hasStyle=function(e,t){var n=e.selection,r=n.from,a=n.$from,s=n.to,i=n.empty,o=!1,l={style:t.name,value:t.value};return i?o=I.changeStyleFromMark(e.storedMarks||a.marks(),l).changed:e.doc.nodesBetween(r,s,function(e,t,n){!o&&e.isInline&&(o=I.changeStyleFromMark(e.marks,l).changed)}),o},I.getInlineStyles=function(e,t){var r,n=e.selection,a=n.from,s=n.$from,i=n.to,o=n.empty,l=[],u={style:t.name,value:t.value};return o?(r=I.changeStyleFromMark(e.storedMarks||s.marks(),u)).changed&&(l=r.styleMatches):e.doc.nodesBetween(a,i,function(e,t,n){e.isInline&&((r=I.changeStyleFromMark(e.marks,u)).changed?l.push.apply(l,r.styleMatches):l.push(null))}),l.filter(function(e){return null!==e})},I.changeStyle=function(v,h){return function(e,t,n){var r=e.selection,a=r.empty,s=r.$cursor,i=r.ranges;if(a&&!s||!y.markApplies(e.doc,i,v))return!1;var o=!1;if(t)if(n=n||e.tr,s){var l=e.storedMarks||s.marks();if(v.isInSet(l)){var u=I.changeStyleFromMark(l,h),c=l.find(function(e){return"style"===e.type.name}),d=L.__assign({},c?c.attrs:{},{style:u.style||null});t(n.removeStoredMark(v)),Object.keys(d).some(function(e){return null!==d[e]})&&t(n.addStoredMark(v.create(d))),o=!0}}else{for(var f=0;f<i.length;f++){var p=i[f],m=p.$from,g=p.$to;o=I.changeStyleMark(n,m.pos,g.pos,h,v)}o&&(n.scrollIntoView(),t(n))}return o}},I.toggleInlineFormat=function(f,p,m){return function(t,e){var n=t.schema.marks,r=f.altStyle,a=f.altMarks,s=void 0===a?[]:a,i=f.mark;p=p||t.tr;function o(){return u=!0}var l=!1,u=!1;if(r&&n.style){var c=n.style;l=I.changeStyle(c,{style:r.name,value:r.value})(t,o,p)}var d=[i].concat(s).filter(function(e){return n[e]}).map(function(e){return y.hasMark(t,{mark:e})&&n[e]}).filter(function(e){return e});return d.length?y.removeMarks(d,t,o,p):l||y.toggleMark(n[i],m,p)(t,o),u&&e(p),u}},I.applyInlineStyle=function(m,g){return function(e,t){var n=e.schema.marks.style,r={style:m.style,value:/^.+$/,newValue:m.value},a=e.tr;g&&a.setMeta("commandName",g),a.setMeta("args",m);var s=e.selection,i=s.empty,o=s.$cursor,l=s.ranges;if(i&&!o||!y.markApplies(e.doc,l,n))return!1;if(o){var u=e.storedMarks||o.marks(),c=n.isInSet(u)?u.find(function(e){return"style"===e.type.name}):null,d={style:null};if(c&&c.attrs.style){var f=v.changeStyles(c.attrs.style,r);f.changed&&f.style&&(d.style=f.style)}else r.newValue&&(d.style=[r.style]+": "+r.newValue+";");var p=c?L.__assign({},c.attrs,d):d;return Object.keys(p).some(function(e){return null!==p[e]})?t(a.addStoredMark(n.create(p))):t(a.removeStoredMark(n)),!0}return I.changeStyle(n,r)(e,t,a)}}},function(e,t){e.exports=u},function(e,g,t){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var n=t(5),v=t(3),i=t(2),m=t(4);g.markApplies=function(s,i,o){for(var e=function(e){var t=i[e],n=t.$from,r=t.$to,a=0===n.depth&&s.type.allowsMarkType(o);if(s.nodesBetween(n.pos,r.pos,function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(o)}),a)return{v:!0}},t=0;t<i.length;t++){var n=e(t);if(n)return n.v}return!1},g.toggleMark=function(f,p,m){return function(e,t){var n=e.selection,r=n.empty,a=n.$cursor,s=n.ranges;if(r&&!a||!g.markApplies(e.doc,s,f))return!1;if(t)if(a)f.isInSet(e.storedMarks||a.marks())?t(m.removeStoredMark(f)):t(m.addStoredMark(f.create(p)));else{for(var i=!1,o=0;!i&&o<s.length;o++){var l=s[o],u=l.$from,c=l.$to;i=e.doc.rangeHasMark(u.pos,c.pos,f)}for(o=0;o<s.length;o++){var d=s[o];u=d.$from,c=d.$to,i?m.removeMark(u.pos,c.pos,f):m.addMark(u.pos,c.pos,f.create(p))}t(m.scrollIntoView())}return!0}},g.removeMark=function(t,c,d,f){void 0===f&&(f=null);var p=[],m=0;return t.doc.nodesBetween(c,d,function(e,t){if(e.isInline){m++;var n=null;if(f instanceof v.MarkType){var r=f.isInSet(e.marks);r&&(n=[r])}else f?f.isInSet(e.marks)&&(n=[f]):n=e.marks;if(n&&n.length)for(var a=Math.min(t+e.nodeSize,d),s=0;s<n.length;s++){for(var i=n[s],o=void 0,l=0;l<p.length;l++){var u=p[l];u.step===m-1&&i.eq(u.style)&&(o=u)}o?(o.to=a,o.step=m):p.push({style:i,from:Math.max(t,c),to:a,step:m})}}}),p.forEach(function(e){return t.step(new n.RemoveMarkStep(e.from,e.to,e.style))}),t},g.removeMarks=function(a,t,n,s){var e=t.selection,r=e.$cursor,i=e.ranges;if(s=s||t.tr,r)a.forEach(function(e){e.isInSet(t.storedMarks||r.marks())&&n(s.removeStoredMark(e))});else{for(var o=function(e){var t=i[e],n=t.$from,r=t.$to;a.forEach(function(e){g.removeMark(s,n.pos,r.pos,e)})},l=0;l<i.length;l++)o(l);n(s.scrollIntoView())}return!0},g.removeAllMarks=function(e){var t=(void 0===e?{}:e).except,u=void 0===t?[]:t;return function(e,t){var n=e.schema,r=e.selection,a=r.$cursor,s=r.from,i=r.to,o=e.tr,l=(u instanceof Array?u:[u]).map(function(e){return e.name});a||(Object.keys(n.marks).map(function(e){return n.marks[e]}).filter(function(e){return-1===l.indexOf(e.name)}).forEach(function(e){return o.removeMark(s,i,e)}),t(o))}},g.getParentMark=function(e,t){var n=e.selection,r=n.from,a=n.$from,s=n.to,i=n.empty,o=e.doc;if(i)return t.isInSet(e.storedMarks||a.marks())||null;var l=[];return o.nodesBetween(r,s,function(e){e.isInline&&l.push(t.isInSet(e.marks))}),1===l.length&&l[0]?l[0]:null},g.hasMark=function(e,t){var n,r=e.schema.marks,a=(t.altMarks||[]).filter(function(e){return r[e]}),s=t.altStyle,i=e.selection,o=i.from,l=i.$from,u=i.to,c=i.empty,d=r[t.mark],f=e.doc,p=!1;return!(p=c?(n=e.storedMarks||l.marks(),d&&d.isInSet(n)||a.some(function(e){return r[e].isInSet(n)})):d&&f.rangeHasMark(o,u,d)||a.some(function(e){return f.rangeHasMark(o,u,r[e])}))&&s?m.hasStyle(e,s):Boolean(p)},g.getMark=function(e,t){var n,r=e.selection,a=r.from,s=r.$from,i=r.to,o=r.empty,l=e.doc;if(o)n=t.isInSet(e.storedMarks||s.marks());else{var u=[];l.nodesBetween(a,i,function(e){e.isInline&&u.push(t.isInSet(e.marks))}),u.some(function(e){return!e})||(n=u[u.length-1])}return n},g.getActiveMarks=function(e,r){var t=e.selection,a=!1;if(t instanceof i.TextSelection&&t.$cursor)return{hasNodesWithoutMarks:a,marks:t.$cursor.marks().filter(function(e){return!r||e.type.name===r.name})};var s=[];return t.content().content.descendants(function(e){if("text"===e.type.name){var t=r?(n=r,e.marks.filter(function(e){return e.type.name===n.name})):e.marks;0<e.marks.length&&0<t.length?s.push.apply(s,t):a=!0}var n}),{hasNodesWithoutMarks:a,marks:s}}},function(e,d,t){"use strict";Object.defineProperty(d,"__esModule",{value:!0});var f=t(0),s=t(1),v=t(5),h=t(3),i=t(2);d.changeBlockNode=function(a,e,d,f,p,m){var t=a.selection,n=t.from,r=t.to,s=!1;if(a.doc.nodesBetween(n,r,function(e,t){if(s)return!1;if(e.isTextblock&&!e.hasMarkup(p,m))if(e.type===p)s=!0;else{var n=a.doc.resolve(t),r=n.index();s=n.parent.canReplaceWith(r,r+1,p)}}),!s)return!1;if(e){if(!p.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var g=d.steps.length;d.doc.nodesBetween(n,r,function(e,t){if(e.eq(f)&&e.isTextblock&&!e.hasMarkup(p,m)&&(i=d.doc,o=d.mapping.slice(g).map(t),l=p,u=i.resolve(o),c=u.index(),u.parent.canReplaceWith(c,c+1,l))){d.clearIncompatible(d.mapping.slice(g).map(t,1),p);var n=d.mapping.slice(g),r=n.map(t,1),a=n.map(t+e.nodeSize,1),s=new h.Slice(h.Fragment.from(p.create(m,null,e.marks)),0,0);return d.step(new v.ReplaceAroundStep(r,a,r+1,a-1,s,1,!0)),!1}var i,o,l,u,c})}return!0},d.blockNodes=function(e){var t=e.selection,n=t.from,r=t.to,a=t.$from,s=[];return t.node?t.node.isBlock?s.push(t.node):a.parent&&a.parent.isBlock&&s.push(a.parent):e.doc.nodesBetween(n,r,function(e){e.isBlock&&s.push(e)}),s},d.formatBlockElements=function(c,t){return function(s,i){var e=d.blockNodes(s),o=s.schema.nodes,l=!1,u=s.tr;return u.setMeta("commandName",t),u.setMeta("args",{value:c}),e.forEach(function(e){if(e.type.isTextblock)if("p"===c){var t=e.attrs,n=t.level,r=f.__rest(t,["level"]);l=d.changeBlockNode(s,i,u,e,o.paragraph,r)||l}else if(/^h[1-6]$/i.test(c))n=parseInt(c.substr(1),10),l=d.changeBlockNode(s,i,u,e,o.heading,f.__assign({},e.attrs,{level:n}))||l;else if("blockquote"===c){var a=e.attrs;n=a.level,r=f.__rest(a,["level"]),l=d.changeBlockNode(s,i,u,e,o.blockquote,r)||l}}),l&&i(u.scrollIntoView()),l}},d.getBlockFormats=function(e){var t=d.blockNodes(e),n=e.schema.nodes,r=[];return t.forEach(function(e){if(e.type===n.paragraph)r.push("p");else if(e.type===n.heading)for(var t=1;t<=6;t++)if(e.attrs.level===t){r.push("h"+t);break}}),r},d.addStyles=function(e,t){var n=e.attrs.style,r=null,a=null;return n&&t.forEach(function(e){a={style:e.name,value:/^.+$/,newValue:e.value},r=s.changeStyles(n,a),n=r.changed?r.style:n}),n=n||t.reduce(function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""},""),Object.assign({},e.attrs,{style:n||null})},d.hasNode=function(e,t){var n=e.selection,r=n.from,a=n.to,s=!1;return e.doc.nodesBetween(r,a,function(e){return!(s=s||e.type===t)}),s};function o(n){return r=n,Object.keys(r).filter(function(e){return null!==n[t=e]&&void 0!==n[t]&&""!==n[t];var t}).reduce(function(e,t){var n;return Object.assign(e,((n={})[t]=r[t],n))},{});var r}d.getNodeTagName=function(n,r){var e,t=n.type.spec.parseDOM||[],a=n.attrs;return(e=1===t.length?t[0]:t.find(function(e){var t=h.DOMSerializer.fromSchema(r).serializeNode(n);return JSON.stringify(e.getAttrs(t))===JSON.stringify(o(a))}))?e.tag.toLowerCase().replace(/ *\[[^\]]*]/,""):""},d.activeNode=function(e){var t,n=e.schema.nodes.doc;if(e.selection instanceof i.AllSelection)t=e.doc;else if(e.selection instanceof i.TextSelection){var r=e.selection.$anchor,a=r.node(r.blockRange().depth);t=s.getTypeName(a)===s.getTypeName(n)?r.node():a}else e.selection instanceof i.NodeSelection&&(t=e.selection.node);return{name:s.getTypeName(t),tag:d.getNodeTagName(t,e.schema)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function k(e){return/^MsoListParagraph/.test(e.className)}function i(e){var t=e.innerHTML;return(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")}function M(e,t){var n=document.createElement(e);return n.style.listStyleType=t,n}function b(e){function t(e){return e.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")}var n,r,a,s=e.innerHTML;return s=s.replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g," "),/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(s)?{tag:"ul",style:(a=t(i(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(a)?null:/^o/.test(a)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(s)?{tag:"ol",style:(n=t(i(e)),r=null,/^\d/.test(n)||(r=(/^[a-z]/.test(n)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(n)?"roman":"alpha")),r)}:void 0}function S(e){var t,n=e.nodeName.toLowerCase();e.firstChild&&e.firstChild.nodeType===Node.COMMENT_NODE&&e.removeChild(e.firstChild),t=1===e.childNodes.length?e.firstChild.nodeType===Node.TEXT_NODE?i(e):e.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(e.removeChild(e.firstChild),3===e.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(e.firstChild.nodeValue)&&e.removeChild(e.firstChild),/^(&nbsp;|\s)+$/i.test(e.firstChild.innerHTML)&&e.removeChild(e.firstChild),"p"!==n?"<"+n+">"+e.innerHTML+"</"+n+">":e.innerHTML),e.parentNode.removeChild(e);var r=document.createElement("li");return r.innerHTML=t,r}var r=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,a=function(e,n){var r=[];Array.from(e).forEach(function(e){if(e.nodeType===Node.ELEMENT_NODE){var t=e;t.getAttribute("datalist")?(r.push(e),n.add(r)):k(t)&&r.length?r.push(e):(r=[],"DIV"===t.nodeName?a(t.children,n):"TABLE"===t.nodeName&&Array.from(t.querySelectorAll("td,th")).forEach(function(e){a(e.children,n)}))}})};t.convertMsLists=function(e){var t=document.createElement("div");t.innerHTML=e.replace(r,function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e});var n=new Set;return a(t.children,n),n.forEach(function(e){return function(e){var t,n,r,a,s,i,o,l,u,c,d,f,p,m=-1,g={};for(l=0;l<e.length;l++){var v=(p={datalist:(u=e[l]).getAttribute("datalist"),datalevel:u.getAttribute("datalevel")}).datalist,h=b(u);if(c=h&&h.tag){if(d=p.datalevel||parseFloat(u.style.marginLeft||0),p.datalevel||u.style.marginLeft){var y=c+v;g[d]||(g[d]={}),(!n||n<0)&&(n=d,r=v,a=(o=e.filter(function(e){return e.getAttribute("datalist")===String(r)}))[o.length-1],i=M(c,h&&h.style),u.parentNode.insertBefore(i,u),g[m=d][y]=i),s=a===u,f=g[d][y],(m<d||!f)&&(f=M(c,h&&h.style),g[d][y]=f,t.appendChild(f)),t=S(u),f.appendChild(t),s?n=m=-1:m=d}}else!t||s&&!k(u)||(u.style.marginLeft&&(u.style.marginLeft=""),u.style.marginLeft&&(u.style.margin=""),t.appendChild(u))}}(e)}),t.innerHTML}},function(e,t){e.exports=c},function(e,g,t){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var r=t(0),u=t(3),f=t(2),c=t(5),a=t(9),s=t(13),i=t(11);function p(e,t,n){var r=e.selection,a=r.from,s=r.to,i=e.schema.nodes,o=i.paragraph,l=i.heading,u=[];t.doc.nodesBetween(a,s,function(e,t){e.type!==o&&e.type!==l||u.push({node:e,pos:t})});for(var c=u.length-1;0<=c;c--){var d=u[c],f=t.doc.resolve(t.mapping.map(d.pos));if(0<f.depth){var p;p=d.node.textContent&&0<d.node.textContent.length?t.doc.resolve(t.mapping.map(d.pos+d.node.textContent.length)):t.doc.resolve(t.mapping.map(d.pos+1));var m=f.blockRange(p);m&&t.lift(m,g.getListLiftTarget(e.schema,f,n))}}return t}function m(c){return function(e,t,n){if(!n)return!1;var r=(e=n.state).schema.nodes[c.listType],a=e.selection,s=a.$from,i=a.$to,o=s.node(-2),l=s.node(-3),u=d(e.doc,s,i,r);return(o&&o.type===r||l&&l.type===r)&&u?k(c)(e,t):(u||(k(c)(e,t),e=n.state),M(r)(e,t))}}function v(e,t,n,r){r=r||e.schema.nodes.listItem;var a=t.$from,s=t.$to,i=a.blockRange(s,function(e){return e.childCount&&e.firstChild.type===r});if(!i||i.depth<2||a.node(i.depth-1).type!==r)return n;var o=i.end,l=s.end(i.depth);return o<l&&(n.step(new c.ReplaceAroundStep(o-1,l,o,l,new u.Slice(u.Fragment.from(r.create(void 0,i.parent.copy())),1,0),1,!0)),i=new u.NodeRange(n.doc.resolve(a.pos),n.doc.resolve(l),i.depth)),n.lift(i,c.liftTarget(i)).scrollIntoView()}function h(i,o,e,l,u,c){c=c||i.schema.nodes.listItem;var d=!1;return u.doc.nodesBetween(o,e,function(e,t){if(!d&&e.type===c&&o<t){d=!0;for(var n=l+3;l+2<n;){var r=u.doc.resolve(u.mapping.map(t));n=r.depth;var a=u.doc.resolve(u.mapping.map(t+e.textContent.length)),s=new f.TextSelection(r,a);u=v(i,s,u,c)}}}),u}function d(e,t,n,r){return 0===o(e,t,n).filter(function(e){return e.type!==r}).length}function o(e,t,n){for(var r=Array(),a=y(e,t).depth,s=e.resolve(t.start(a));s.pos<=n.start(n.depth);){var i=Math.min(s.depth,a),o=s.node(i);if(o&&r.push(o),0===i)break;var l=e.resolve(s.after(i));if(l.start(i)>=e.nodeSize-2)break;l.depth!==s.depth&&(l=e.resolve(l.pos+2)),s=l.depth?e.resolve(l.start(l.depth)):e.resolve(l.end(l.depth))}return r}function y(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;for(var r=t.node(t.depth),a=t;1<=t.depth;)(r=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==n.indexOf(r.type.name)&&(a=t);return a}function k(o){return function(s,e){var i=s.tr,t=s.selection,n=t.$from,r=t.$to;return i.doc.nodesBetween(n.pos,r.pos,function(e,t){if(e.isTextblock||"blockquote"===e.type.name||"div"===e.type.name){var n=new f.NodeSelection(i.doc.resolve(i.mapping.map(t))),r=n.$from.blockRange(n.$to);if(!r||n.$from.parent.type!==s.schema.nodes[o.listItem])return!1;var a=r&&c.liftTarget(r);if(null==a)return!1;i.lift(r,a)}}),e&&e(i),!0}}function M(n){return a.autoJoin(s.wrapInList(n),function(e,t){return e.type===t.type&&e.type===n})}g.rootListDepth=function(e,t){for(var n,r=t.bulletList,a=t.orderedList,s=t.listItem,i=e.depth-1;0<i;i--){var o=e.node(i);if(o.type!==r&&o.type!==a||(n=i),o.type!==r&&o.type!==a&&o.type!==s)break}return n},g.getListLiftTarget=function(e,t,n){for(var r=t.depth,a=e.nodes[n.bulletList],s=e.nodes[n.orderedList],i=e.nodes[n.listItem],o=t.depth;0<o;o--){var l=t.node(o);if(l.type!==a&&l.type!==s||(r=o),l.type!==a&&l.type!==s&&l.type!==i)break}return r-1},g.liftSelectionList=p,g.toggleList=function(e,t,n,r,a){var s=r.listType,i=e.selection,o=i.$from.node(i.$from.depth-2),l=i.$to.node(i.$to.depth-2);if(o&&o.type.name===s&&l&&l.type.name===s){var u=n.state.schema.nodes,c={bulletList:u[r.bulletList],orderedList:u[r.orderedList],listItem:u[r.listItem]},d=g.rootListDepth(i.$to,c),f=h(e,i.$to.pos,i.$to.end(d),d,n.state.tr,c.listItem);return(f=p(e,f,r)).setMeta("commandName",a),t(f),!0}return m(r)(e,t,n)},g.toggleListCommand=m,g.liftFollowingList=h,g.isRangeOfType=d,g.getAncestorNodesBetween=o,g.findAncestorPosition=y,g.liftListItems=k,g.wrapInList=M,g.toggleUnorderedList=function(e,t,n){return g.toggleList(e,t,n,r.__assign({listType:i.bulletList.listType},i.bulletList.types))},g.toggleOrderedList=function(e,t,n){return g.toggleList(e,t,n,r.__assign({listType:i.orderedList.listType},i.orderedList.types))},g.splitListItemKeepMarks=function(e){return function(n,r){return s.splitListItem(e)(n,function(e){var t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();t&&e.ensureMarks(t),r(e)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.listsTypes={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},t.orderedList={listType:t.listsTypes.orderedList,types:r.__assign({},t.listsTypes)},t.bulletList={listType:t.listsTypes.bulletList,types:r.__assign({},t.listsTypes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(11);t.indentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"}],listsTypes:r.__assign({},a.listsTypes)},t.outdentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"}],listsTypes:r.__assign({},a.listsTypes)}},function(e,t){e.exports=o},function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=t(3),i=t(2),o=t(1);s.parseContent=function(e,t,n){var r=document.createElement("div");return r.innerHTML=o.safeString(e),a.DOMParser.fromSchema(t).parse(r,n)},s.getHtml=function(e){var t=a.DOMSerializer.fromSchema(e.schema).serializeFragment(e.doc.content),n=document.createElement("div");return n.appendChild(t),n.innerHTML},s.setHtml=function(n,r,a){return void 0===r&&(r="setHTML"),void 0===a&&(a={preserveWhitespace:"full"}),function(e,t){return t(e.tr.setSelection(new i.AllSelection(e.doc)).replaceSelectionWith(s.parseContent(n,e.schema,a)).setMeta("commandName",r))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTable=function(e,t,n){for(var r,a=e.table,s=e.table_row,i=e.table_cell,o=[],l=0;l<t+1;l++){r=[];for(var u=0;u<n+1;u++)r.push(i.createAndFill());o.push(s.createAndFill(void 0,r))}return a.createAndFill(void 0,o)}},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=t(8);i.sanitize=function(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^[\s\S]+?<!--StartFragment-->\s*([\s\S]*?)\s*<!--EndFragment-->[\s\S]+$/,"$1")).replace(/<\/?[ovw]:[^>]*?>/gi,"")).replace(/<\\?\??xml[^>]*>/gi,"")).replace(/<(?:link|meta) [^>]+?>/gi,"")).replace(/<style[^>]*?>\s*<\/style>/gi,"")).replace(/<\/?st1:.*?>/gi,"")).replace(/<a name="[a-zA-Z0-9_]+">/gim,"")).replace(/v:shapes?="[^"]+"/gi,"")).replace(/<!\[if !supportLists\]>/gi,"")).replace(/<!\[endif\]>/gi,"")},i.removeComments=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},i.removeTag=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},i.removeAttribute=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},i.sanitizeClassAttr=function(e){/^Mso/.test(e.value)&&i.removeAttribute(e)};var o=/\s*;\s*/,l=/\s*:\s*/;i.sanitizeStyleAttr=function(e){var n,r,t=e.value.split(o).filter(function(e){return Boolean(e)}),a=e.ownerElement.style,s="";t.forEach(function(e){var t;t=e.split(l),n=t[0],r=t[1],void 0!==a[n]&&(s+=n+": "+r+"; ")}),(s=s.trim())?e.value=s:i.removeAttribute(e)},i.pasteCleanup=function(e,t){var n=e;if(t.convertMsLists&&(n=a.convertMsLists(n)),t.stripTags&&(n=i.removeTag(n,t.stripTags)),t.attributes){var r=document.createElement("div");r.innerHTML=n,Array.from(r.querySelectorAll("*")).forEach(function(e){return function(e,t){if(e.nodeType===Node.ELEMENT_NODE){for(var n=e.attributes.length-1;0<=n;n--){var r=e.attributes[n];t[r.name]?t[r.name](r):t["*"]&&t["*"](r)}"SPAN"===e.nodeName&&0===e.attributes.length&&function(e){var t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}(e)}}(e,t.attributes)}),n=r.innerHTML}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bold={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},t.italic={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},t.underline={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},t.strikethrough={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},t.subscript={mark:"sub"},t.superscript={mark:"sup"},t.link={mark:"link"},t.unlink={mark:"link"}},function(e,t){e.exports=f},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(9),s=n(19),i=n(18),r=n(10),o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.buildKeymap=function(e){var t={};if(t["Mod-z"]=s.undo,t["Shift-Mod-z"]=s.redo,t.Backspace=a.chainCommands(i.undoInputRule,a.deleteSelection,a.joinBackward,a.selectNodeBackward),t.Enter=a.chainCommands(a.newlineInCode,a.createParagraphNear,a.liftEmptyBlock,a.splitBlockKeepMarks),o||(t["Mod-y"]=s.redo),e.marks.strong&&(t["Mod-b"]=a.toggleMark(e.marks.strong)),e.marks.em&&(t["Mod-i"]=a.toggleMark(e.marks.em)),e.marks.underline&&(t["Mod-u"]=a.toggleMark(e.marks.underline)),e.nodes.hardBreak){var n=e.nodes.hardBreak,r=a.chainCommands(a.exitCode,function(e,t){return t(e.tr.replaceSelectionWith(n.create()).scrollIntoView()),!0});t["Mod-Enter"]=r,t["Shift-Enter"]=r,o&&(t["Ctrl-Enter"]=r)}return t},t.buildListKeymap=function(e){var t={};return e.nodes.list_item&&(t.Enter=r.splitListItemKeepMarks(e.nodes.list_item)),t}},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){for(var t,n={},r=e.attributes,a=0;a<r.length;a++)n[(t=r[a]).name]=t.value;return n}function a(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return!0;return!1}function s(e,t){var n={};for(var r in e)r&&null!==e[r]&&r!==t&&(n[r]=e[r]);return n}function i(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t}var o=n(0),l=n(21),u=["blockquote",0],c=["hr"],d=["pre",["code",0]],f=["ol",0],p=["ul",0],m=["li",0],g=o.__assign({link:{attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:r}],toDOM:function(e){return["a",s(e.attrs),0]}}},i("strong"),i("b"),i("em"),i("i"),i("u"),i("del"),i("sub"),i("sup"),i("code"),{style:{attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"span",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["span",s(e.attrs),0]:["span",0]}}});t.marks=g;var v=o.__assign({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"p",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["p",s(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"div",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["div",s(e.attrs),0]:["div",0]}},blockquote:{attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:function(){return u}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return c}},heading:{attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return o.__assign({},r(e),{level:1})}},{tag:"h2",getAttrs:function(e){return o.__assign({},r(e),{level:2})}},{tag:"h3",getAttrs:function(e){return o.__assign({},r(e),{level:3})}},{tag:"h4",getAttrs:function(e){return o.__assign({},r(e),{level:4})}},{tag:"h5",getAttrs:function(e){return o.__assign({},r(e),{level:5})}},{tag:"h6",getAttrs:function(e){return o.__assign({},r(e),{level:6})}}],toDOM:function(e){return a(e.attrs,"level")?["h"+e.attrs.level,s(e.attrs,"level"),0]:["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:function(){return d}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:o.__assign({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["img",s(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["br",s(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return o.__assign({},r(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?a(e.attrs,"order")?["ol",s(e.attrs,"order"),0]:f:["ol",o.__assign({},s(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"ul",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["ul",s(e.attrs),0]:p}},list_item:{content:"block*",attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"li",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["li",s(e.attrs),0]:m},defining:!0}},l.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:{}}));t.nodes=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){return{name:e,value:t}}t.alignLeftRules=[{node:"paragraph",style:[r("text-align","left")]},{node:"heading",style:[r("text-align","left")]},{node:"listItem",style:[r("text-align","left"),r("list-style-position","inside")]}],t.alignRightRules=[{node:"paragraph",style:[r("text-align","right")]},{node:"heading",style:[r("text-align","right")]},{node:"listItem",style:[r("text-align","right"),r("list-style-position","inside")]}],t.alignCenterRules=[{node:"paragraph",style:[r("text-align","center")]},{node:"heading",style:[r("text-align","center")]},{node:"listItem",style:[r("text-align","center"),r("list-style-position","inside")]}],t.alignJustifyRules=[{node:"paragraph",style:[r("text-align","justify")]},{node:"heading",style:[r("text-align","justify")]},{node:"listItem",style:[r("text-align","justify"),r("list-style-position","justify")]}],t.alignRemoveRules=[{node:"paragraph",style:[r("text-align","")]},{node:"heading",style:[r("text-align","")]},{node:"listItem",style:[r("text-align",""),r("list-style-position","")]}]},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o=t(13),s=t(12),m=t(7),l=t(1);a.indentBlocks=function(f,t,p){return function(l,u){var e=m.blockNodes(l),c=l.tr,d=!1;return c.setMeta("commandName",t),e.forEach(function(t){if(t.type.isTextblock){var e=void 0,n=f.find(function(e){return e.node===t.type.name});if(n){var r="rtl"===p?n.rtlStyle:n.style,a={name:r,value:0<n.step?""+n.step+n.unit:""};if(t.attrs.style){var s=new RegExp(r+":\\s?(\\d+)"+n.unit,"i"),i=t.attrs.style.match(s);if(i){var o=parseFloat(i[1])+n.step;o=o<=0?"":o,a.value=""+o+(o?n.unit:"")}}e=m.addStyles(t,[a])}e&&(d=m.changeBlockNode(l,u,c,t,t.type,e)||d)}}),d&&u(c.scrollIntoView()),d}},a.isIndented=function(e,a,s){var i=!1;return m.blockNodes(e).forEach(function(t){if(!i&&t.type.isTextblock&&t.attrs.style){var e=a.find(function(e){return e.node===t.type.name});if(e){var n="rtl"===s?e.rtlStyle:e.style,r=new RegExp(n+":\\s?\\d+"+e.unit,"i");i=r.test(t.attrs.style)}}}),i},a.canIndentAsListItem=function(e,t){return o.sinkListItem(t)(e)},a.canOutdentAsListItem=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],r=e.schema.nodes[t.listsTypes.orderedList],a=e.schema.nodes[t.listsTypes.bulletList],s=!!l.findNthParentNodeOfType(r,2)(e.selection),i=!!l.findNthParentNodeOfType(a,2)(e.selection);return(s||i)&&o.liftListItem(n)(e)},a.canBeIndented=function(t,e){var n=t.schema.nodes,r=n[s.indentRules.listsTypes.listItem];return(a.isIndented(t,e.nodes)||s.indentRules.nodes.some(function(e){return n[e.node]&&m.hasNode(t,n[e.node])}))&&!m.hasNode(t,r)},a.indent=function(e,t){var n=e.schema.nodes[s.indentRules.listsTypes.listItem],r=a.canBeIndented(e,s.indentRules);a.canIndentAsListItem(e,n)?o.sinkListItem(n)(e,t):r&&a.indentBlocks(s.indentRules.nodes)(e,t)},a.outdent=function(e,t){var n=e.schema.nodes[s.outdentRules.listsTypes.listItem],r=a.canBeIndented(e,s.outdentRules);a.canOutdentAsListItem(e,s.outdentRules)?o.liftListItem(n)(e,t):r&&a.indentBlocks(s.outdentRules.nodes)(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(7);t.alignBlocks=function(o,t){return function(r,a){var e=l.blockNodes(r),s=r.tr;s.setMeta("commandName",t);var i=!1;return e.forEach(function(t){if(t.type.isTextblock){var e={},n=o.find(function(e){return e.node===t.type.name});n&&(e=l.addStyles(t,n.style)),i=l.changeBlockNode(r,a,s,t,t.type,e)||i}}),i&&a(s.scrollIntoView()),i}},t.isAligned=function(e,n){var r=!1;return l.blockNodes(e).forEach(function(t){if(!r&&t.type.isTextblock&&t.attrs.style){var e=n.find(function(e){return e.node===t.type.name});e&&(r=e.style.every(function(e){return!!e.value&&new RegExp(e.name+":\\s?"+e.value,"i").test(t.attrs.style)}))}}),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(1);t.insertImage=function(r){return function(e,t){var n=e.schema.nodes.image.createAndFill(r);a.insertNode(n)(e,function(e){return t(e.setMeta("commandName","insertImage").setMeta("args",r))})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertText=function(n){return function(e,t){t(e.tr.insertText(n.text,n.from,n.to))}}},function(e,c,t){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var m=t(4),h=t(6),d=t(2);c.removeLink=function(f,p){return function(e,t){var n=e.selection.$cursor;if(n){var r=n.parent,a=n.index(),s=e.schema.marks[f.mark],i=r.child(a).marks.find(function(e){return e.type===s}),o=r.childCount,l=n.pos-n.textOffset,u=r.child(a).nodeSize,c=void 0,d=void 0;for(c=a-1;0<=c&&i.isInSet(r.child(c).marks);)u+=d=r.child(c).nodeSize,l-=d,--c;for(c=a+1;c<o&&i.isInSet(r.child(c).marks);)u+=r.child(c).nodeSize,c+=1;t(h.removeMark(p||e.tr,l,l+u,i))}else m.toggleInlineFormat(f,p)(e,t)}},c.applyLink=function(e,o){var l=e.mark,u=e.attrs;return void 0===o&&(o="link"),function(e,t){var n=e.schema.marks,r=e.tr;o&&(r.setMeta("commandName",o),r.setMeta("args",u));function a(){return s=!0}var g,v,s=!1;if(h.getParentMark(e,n[l]))g={mark:l,attrs:u},v=r,function(e,n){var t=e.selection,r=t.$cursor,a=t.from,s=t.to,i=e.schema.marks[g.mark];if(r){var o=r.parent,l=r.index(),u=o.child(l).marks.find(function(e){return e.type===i}),c=o.childCount,d=r.pos-r.textOffset,f=o.child(l).nodeSize,p=void 0,m=void 0;for(p=l-1;0<=p&&u.isInSet(o.child(p).marks);)f+=m=o.child(p).nodeSize,d-=m,--p;for(p=l+1;p<c&&u.isInSet(o.child(p).marks);)f+=o.child(p).nodeSize,p+=1;v.removeMark(d,d+f,i),v.addMark(d,d+f,i.create(g.attrs)),n(v)}else v.doc.nodesBetween(a,s,function(e,t){e.isInline&&i.isInSet(e.marks)&&(v.removeMark(t,t+e.nodeSize,i),v.addMark(t,t+e.nodeSize,i.create(g.attrs)),n(v))})}(e,a);else{var i=e;h.hasMark(e,{mark:l})&&(c.removeLink({mark:l,attrs:u},r)(e,a),i=d.EditorState.create({doc:r.doc,selection:r.selection})),s?h.toggleMark(n[l],u,r)(i,a):m.toggleInlineFormat({mark:l},r,u)(i,a)}return s&&t(r),s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);t.getHtml=r.getHtml,t.setHtml=r.setHtml,t.parseContent=r.parseContent;var a=n(4);t.applyInlineStyle=a.applyInlineStyle,t.getInlineStyles=a.getInlineStyles,t.toggleInlineFormat=a.toggleInlineFormat;var s=n(28);t.applyLink=s.applyLink,t.removeLink=s.removeLink;var i=n(27);t.insertText=i.insertText;var o=n(26);t.insertImage=o.insertImage;var l=n(25);t.alignBlocks=l.alignBlocks,t.isAligned=l.isAligned;var u=n(7);t.hasNode=u.hasNode,t.activeNode=u.activeNode,t.formatBlockElements=u.formatBlockElements,t.getBlockFormats=u.getBlockFormats;var c=n(6);t.hasMark=c.hasMark,t.getMark=c.getMark,t.getActiveMarks=c.getActiveMarks,t.removeAllMarks=c.removeAllMarks;var d=n(24);t.indent=d.indent,t.canIndentAsListItem=d.canIndentAsListItem,t.outdent=d.outdent,t.canOutdentAsListItem=d.canOutdentAsListItem,t.isIndented=d.isIndented,t.canBeIndented=d.canBeIndented,t.indentBlocks=d.indentBlocks;var f=n(10);t.toggleOrderedList=f.toggleOrderedList,t.toggleUnorderedList=f.toggleUnorderedList,t.toggleList=f.toggleList;var p=n(1);t.hasSameMarkup=p.hasSameMarkup,t.getUniqueStyleValues=p.getUniqueStyleValues,t.getSelectionText=p.getSelectionText,t.getNodeFromSelection=p.getNodeFromSelection,t.canInsert=p.canInsert,t.insertNode=p.insertNode,t.indentHtml=p.indentHtml;var m=n(23);t.alignLeftRules=m.alignLeftRules,t.alignCenterRules=m.alignCenterRules,t.alignRightRules=m.alignRightRules,t.alignJustifyRules=m.alignJustifyRules,t.alignRemoveRules=m.alignRemoveRules;var g=n(12);t.indentRules=g.indentRules,t.outdentRules=g.outdentRules;var v=n(22);t.nodes=v.nodes,t.marks=v.marks;var h=n(20);t.buildKeymap=h.buildKeymap,t.buildListKeymap=h.buildListKeymap;var y=n(17);t.bold=y.bold,t.italic=y.italic,t.underline=y.underline,t.strikethrough=y.strikethrough,t.subscript=y.subscript,t.superscript=y.superscript,t.link=y.link;var k=n(16);t.sanitize=k.sanitize,t.removeComments=k.removeComments,t.removeTag=k.removeTag,t.pasteCleanup=k.pasteCleanup,t.sanitizeClassAttr=k.sanitizeClassAttr,t.sanitizeStyleAttr=k.sanitizeStyleAttr,t.removeAttribute=k.removeAttribute;var M=n(8);t.convertMsLists=M.convertMsLists;var b=n(15);t.createTable=b.createTable,function(e){for(var t in e)S(t,e[t])}(t)}],r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=29)}}});
System.register("@progress/kendo-editor-common",["prosemirror-model","prosemirror-state","prosemirror-schema-list","tslib","prosemirror-transform","prosemirror-commands","prosemirror-history","prosemirror-inputrules","prosemirror-tables"],function(S){var s,i,o,l,u,c,d,f,p;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){s=t(e)},function(e){i=t(e)},function(e){o=t(e)},function(e){l=t(e)},function(e){u=t(e)},function(e){c=t(e)},function(e){d=t(e)},function(e){f=t(e)},function(e){p=t(e)}],execute:function(){function r(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}var n,a;a={},r.m=n=[function(e,t){e.exports=l},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=t(3),a=t(2),v=t(6),h=t(4),o=t(14);r.changeStyles=function(e,t){var n=t.style,r=t.value,a=t.newValue,s=[];if(e){var i=e.split(/\s*;\s*/).filter(function(e){return e}),o=i.filter(function(e){if(!e.toLowerCase().trim().startsWith(n))return!0;var t=e.split(":")[1].trim();return!r.test(t)||(s.push(t),!1)});return a&&o.push(n+": "+a),{style:o.join("; ")+(o.length?";":""),changed:!!a||o.length!==i.length,styleMatches:s}}return{changed:!1,styleMatches:s,style:null}},r.changeStyle=function(m,g){return function(e,t,n){var r=e.selection,a=r.empty,s=r.$cursor,i=r.ranges;if(a&&!s||!v.markApplies(e.doc,i,m))return!1;var o=!1;if(t)if(n=n||e.tr,s){var l=e.storedMarks||s.marks();if(m.isInSet(l)){var u=h.changeStyleFromMark(l,g);t(n.removeStoredMark(m)),t(n.addStoredMark(m.create({style:u.style}))),o=!0}}else{for(var c=0;c<i.length;c++){var d=i[c],f=d.$from,p=d.$to;o=h.changeStyleMark(n,f.pos,p.pos,g,m)}o&&(n.scrollIntoView(),t(n))}return o}},r.canInsert=function(e,t){for(var n=e.selection.$from,r=n.depth;0<=r;r--){var a=n.index(r);if(n.node(r).canReplaceWith(a,a,t))return!0}return!1},r.getTypeName=function(e){return e instanceof i.Node?e.type.name:e.name},r.findParentNode=function(a){return function(e){for(var t=e.$from,n=t.depth;0<n;n--){var r=t.node(n);if(a(r))return{depth:n,node:r}}}},r.findNthParentNode=function(a,s){return void 0===s&&(s=1),function(e){for(var t=e.$from,n=t.depth;0<n;n--){var r=t.node(n);if(a(r)&&0==--s)return{depth:n,node:r}}}},r.findNthParentNodeOfType=function(t,n){return void 0===n&&(n=1),function(e){return r.findNthParentNode(function(e){return r.getTypeName(e)===r.getTypeName(t)},n)(e)}},r.insertNode=function(r,a){return function(e,t){var n=e.tr.replaceSelectionWith(r);a&&n.scrollIntoView(),t(n)}},r.isNullOrUndefined=function(e){return null==e},r.safeString=function(e){return r.isNullOrUndefined(e)?"":e.toString()},r.hasSameMarkup=function(e,t,n,r){var a=i.Fragment.from(o.parseContent(e,n,r)),s=i.Fragment.from(o.parseContent(t,n,r));return a.eq(s)},r.first=function(e){return e[0]},r.last=function(e){return e[e.length-1]},r.split=function(t){return function(e){return e.split(t)}},r.trim=function(e){return e.trim()},r.filter=function(t){return function(e){return e.filter(t)}},r.getUniqueStyleValues=function(e,t){if(e.hasNodesWithoutMarks)return"";var n=e.marks.filter(function(e){return"style"===e.type.name}).map(function(e){return e.attrs.style}).map(r.split(";")).map(r.filter(function(e){return e.includes(t)})).map(function(e){return 0!==e.length?e:[t+": INVALID"]}).map(r.first).map(r.split(":")).map(r.last).map(r.trim).reduce(function(e,t){return-1<e.indexOf(t)?e:e.concat([t])},[]);return-1<n.indexOf("INVALID")||1!==n.length?"":n[0]},r.getSelectionText=function(e){var t=e.selection;if(t instanceof a.TextSelection||t instanceof a.AllSelection){var n=t.content().content;return n.textBetween(0,n.size)}return""},r.getNodeFromSelection=function(e){if(e.selection instanceof a.NodeSelection)return e.selection.node},r.indentHtml=function(e){return e.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi,"</$1>\n").replace(/<(ul|ol)([^>]*)><li/gi,"<$1$2>\n<li").replace(/<br \/>/gi,"<br />\n").replace(/\n$/,"")}},function(e,t){e.exports=i},function(e,t){e.exports=s},function(e,I,t){"use strict";Object.defineProperty(I,"__esModule",{value:!0});var L=t(0),T=t(5),v=t(1),y=t(6);I.changeStyleFromMark=function(e,t){var n=e.find(function(e){return"style"===e.type.name}),r=n&&n.attrs.style;return v.changeStyles(r,t)},I.changeStyleMark=function(t,g,v,h,y){var k=y.create({style:h.style}),M=[],b=[],S=null,_=null;return t.doc.nodesBetween(g,v,function(e,t,n){if(e.isInline){var r=e.marks;if(!k.isInSet(r)&&n.type.allowsMarkType(k.type)){var a=Math.max(t,g),s=Math.min(t+e.nodeSize,v),i=I.changeStyleFromMark(r,h);if(i.changed||h.newValue){for(var o=i.changed?{style:i.style||null}:{style:[h.style]+": "+h.newValue+";"},l=y.isInSet(r)?r.find(function(e){return"style"===e.type.name}):null,u=l?L.__assign({},l.attrs,o):o,c=y.create(u),d=c.addToSet(r),f=0;f<r.length;f++)r[f].isInSet(d)||(S&&S.to===a&&S.mark.eq(r[f])?S.to=s:(S=new T.RemoveMarkStep(a,s,r[f]),M.push(S)));var p=_&&_.to===a,m=p&&c.attrs.style===_.mark.attrs.style;p&&m?_.to=s:Object.keys(u).some(function(e){return null!==u[e]})&&(_=new T.AddMarkStep(a,s,c),b.push(_))}}}}),M.forEach(function(e){return t.step(e)}),b.forEach(function(e){return t.step(e)}),0<M.length+b.length},I.hasStyle=function(e,t){var n=e.selection,r=n.from,a=n.$from,s=n.to,i=n.empty,o=!1,l={style:t.name,value:t.value};return i?o=I.changeStyleFromMark(e.storedMarks||a.marks(),l).changed:e.doc.nodesBetween(r,s,function(e,t,n){!o&&e.isInline&&(o=I.changeStyleFromMark(e.marks,l).changed)}),o},I.getInlineStyles=function(e,t){var r,n=e.selection,a=n.from,s=n.$from,i=n.to,o=n.empty,l=[],u={style:t.name,value:t.value};return o?(r=I.changeStyleFromMark(e.storedMarks||s.marks(),u)).changed&&(l=r.styleMatches):e.doc.nodesBetween(a,i,function(e,t,n){e.isInline&&((r=I.changeStyleFromMark(e.marks,u)).changed?l.push.apply(l,r.styleMatches):l.push(null))}),l.filter(function(e){return null!==e})},I.changeStyle=function(v,h){return function(e,t,n){var r=e.selection,a=r.empty,s=r.$cursor,i=r.ranges;if(a&&!s||!y.markApplies(e.doc,i,v))return!1;var o=!1;if(t)if(n=n||e.tr,s){var l=e.storedMarks||s.marks();if(v.isInSet(l)){var u=I.changeStyleFromMark(l,h),c=l.find(function(e){return"style"===e.type.name}),d=L.__assign({},c?c.attrs:{},{style:u.style||null});t(n.removeStoredMark(v)),Object.keys(d).some(function(e){return null!==d[e]})&&t(n.addStoredMark(v.create(d))),o=!0}}else{for(var f=0;f<i.length;f++){var p=i[f],m=p.$from,g=p.$to;o=I.changeStyleMark(n,m.pos,g.pos,h,v)}o&&(n.scrollIntoView(),t(n))}return o}},I.toggleInlineFormat=function(f,p,m){return function(t,e){var n=t.schema.marks,r=f.altStyle,a=f.altMarks,s=void 0===a?[]:a,i=f.mark;p=p||t.tr;function o(){return u=!0}var l=!1,u=!1;if(r&&n.style){var c=n.style;l=I.changeStyle(c,{style:r.name,value:r.value})(t,o,p)}var d=[i].concat(s).filter(function(e){return n[e]}).map(function(e){return y.hasMark(t,{mark:e})&&n[e]}).filter(function(e){return e});return d.length?y.removeMarks(d,t,o,p):l||y.toggleMark(n[i],m,p)(t,o),u&&e(p),u}},I.applyInlineStyle=function(m,g){return function(e,t){var n=e.schema.marks.style,r={style:m.style,value:/^.+$/,newValue:m.value},a=e.tr;g&&a.setMeta("commandName",g),a.setMeta("args",m);var s=e.selection,i=s.empty,o=s.$cursor,l=s.ranges;if(i&&!o||!y.markApplies(e.doc,l,n))return!1;if(o){var u=e.storedMarks||o.marks(),c=n.isInSet(u)?u.find(function(e){return"style"===e.type.name}):null,d={style:null};if(c&&c.attrs.style){var f=v.changeStyles(c.attrs.style,r);f.changed&&f.style&&(d.style=f.style)}else r.newValue&&(d.style=[r.style]+": "+r.newValue+";");var p=c?L.__assign({},c.attrs,d):d;return Object.keys(p).some(function(e){return null!==p[e]})?t(a.addStoredMark(n.create(p))):t(a.removeStoredMark(n)),!0}return I.changeStyle(n,r)(e,t,a)}}},function(e,t){e.exports=u},function(e,g,t){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var n=t(5),v=t(3),i=t(2),m=t(4);g.markApplies=function(s,i,o){for(var e=function(e){var t=i[e],n=t.$from,r=t.$to,a=0===n.depth&&s.type.allowsMarkType(o);if(s.nodesBetween(n.pos,r.pos,function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(o)}),a)return{v:!0}},t=0;t<i.length;t++){var n=e(t);if(n)return n.v}return!1},g.toggleMark=function(f,p,m){return function(e,t){var n=e.selection,r=n.empty,a=n.$cursor,s=n.ranges;if(r&&!a||!g.markApplies(e.doc,s,f))return!1;if(t)if(a)f.isInSet(e.storedMarks||a.marks())?t(m.removeStoredMark(f)):t(m.addStoredMark(f.create(p)));else{for(var i=!1,o=0;!i&&o<s.length;o++){var l=s[o],u=l.$from,c=l.$to;i=e.doc.rangeHasMark(u.pos,c.pos,f)}for(o=0;o<s.length;o++){var d=s[o];u=d.$from,c=d.$to,i?m.removeMark(u.pos,c.pos,f):m.addMark(u.pos,c.pos,f.create(p))}t(m.scrollIntoView())}return!0}},g.removeMark=function(t,c,d,f){void 0===f&&(f=null);var p=[],m=0;return t.doc.nodesBetween(c,d,function(e,t){if(e.isInline){m++;var n=null;if(f instanceof v.MarkType){var r=f.isInSet(e.marks);r&&(n=[r])}else f?f.isInSet(e.marks)&&(n=[f]):n=e.marks;if(n&&n.length)for(var a=Math.min(t+e.nodeSize,d),s=0;s<n.length;s++){for(var i=n[s],o=void 0,l=0;l<p.length;l++){var u=p[l];u.step===m-1&&i.eq(u.style)&&(o=u)}o?(o.to=a,o.step=m):p.push({style:i,from:Math.max(t,c),to:a,step:m})}}}),p.forEach(function(e){return t.step(new n.RemoveMarkStep(e.from,e.to,e.style))}),t},g.removeMarks=function(a,t,n,s){var e=t.selection,r=e.$cursor,i=e.ranges;if(s=s||t.tr,r)a.forEach(function(e){e.isInSet(t.storedMarks||r.marks())&&n(s.removeStoredMark(e))});else{for(var o=function(e){var t=i[e],n=t.$from,r=t.$to;a.forEach(function(e){g.removeMark(s,n.pos,r.pos,e)})},l=0;l<i.length;l++)o(l);n(s.scrollIntoView())}return!0},g.removeAllMarks=function(e){var t=(void 0===e?{}:e).except,u=void 0===t?[]:t;return function(e,t){var n=e.schema,r=e.selection,a=r.$cursor,s=r.from,i=r.to,o=e.tr,l=(u instanceof Array?u:[u]).map(function(e){return e.name});a||(Object.keys(n.marks).map(function(e){return n.marks[e]}).filter(function(e){return-1===l.indexOf(e.name)}).forEach(function(e){return o.removeMark(s,i,e)}),t(o))}},g.getParentMark=function(e,t){var n=e.selection,r=n.from,a=n.$from,s=n.to,i=n.empty,o=e.doc;if(i)return t.isInSet(e.storedMarks||a.marks())||null;var l=[];return o.nodesBetween(r,s,function(e){e.isInline&&l.push(t.isInSet(e.marks))}),1===l.length&&l[0]?l[0]:null},g.hasMark=function(e,t){var n,r=e.schema.marks,a=(t.altMarks||[]).filter(function(e){return r[e]}),s=t.altStyle,i=e.selection,o=i.from,l=i.$from,u=i.to,c=i.empty,d=r[t.mark],f=e.doc,p=!1;return!(p=c?(n=e.storedMarks||l.marks(),d&&d.isInSet(n)||a.some(function(e){return r[e].isInSet(n)})):d&&f.rangeHasMark(o,u,d)||a.some(function(e){return f.rangeHasMark(o,u,r[e])}))&&s?m.hasStyle(e,s):Boolean(p)},g.getMark=function(e,t){var n,r=e.selection,a=r.from,s=r.$from,i=r.to,o=r.empty,l=e.doc;if(o)n=t.isInSet(e.storedMarks||s.marks());else{var u=[];l.nodesBetween(a,i,function(e){e.isInline&&u.push(t.isInSet(e.marks))}),u.some(function(e){return!e})||(n=u[u.length-1])}return n},g.getActiveMarks=function(e,r){var t=e.selection,a=!1;if(t instanceof i.TextSelection&&t.$cursor)return{hasNodesWithoutMarks:a,marks:t.$cursor.marks().filter(function(e){return!r||e.type.name===r.name})};var s=[];return t.content().content.descendants(function(e){if("text"===e.type.name){var t=r?(n=r,e.marks.filter(function(e){return e.type.name===n.name})):e.marks;0<e.marks.length&&0<t.length?s.push.apply(s,t):a=!0}var n}),{hasNodesWithoutMarks:a,marks:s}}},function(e,d,t){"use strict";Object.defineProperty(d,"__esModule",{value:!0});var f=t(0),s=t(1),v=t(5),h=t(3),i=t(2);d.changeBlockNode=function(a,e,d,f,p,m){var t=a.selection,n=t.from,r=t.to,s=!1;if(a.doc.nodesBetween(n,r,function(e,t){if(s)return!1;if(e.isTextblock&&!e.hasMarkup(p,m))if(e.type===p)s=!0;else{var n=a.doc.resolve(t),r=n.index();s=n.parent.canReplaceWith(r,r+1,p)}}),!s)return!1;if(e){if(!p.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var g=d.steps.length;d.doc.nodesBetween(n,r,function(e,t){if(e.eq(f)&&e.isTextblock&&!e.hasMarkup(p,m)&&(i=d.doc,o=d.mapping.slice(g).map(t),l=p,u=i.resolve(o),c=u.index(),u.parent.canReplaceWith(c,c+1,l))){d.clearIncompatible(d.mapping.slice(g).map(t,1),p);var n=d.mapping.slice(g),r=n.map(t,1),a=n.map(t+e.nodeSize,1),s=new h.Slice(h.Fragment.from(p.create(m,null,e.marks)),0,0);return d.step(new v.ReplaceAroundStep(r,a,r+1,a-1,s,1,!0)),!1}var i,o,l,u,c})}return!0},d.blockNodes=function(e){var t=e.selection,n=t.from,r=t.to,a=t.$from,s=[];return t.node?t.node.isBlock?s.push(t.node):a.parent&&a.parent.isBlock&&s.push(a.parent):e.doc.nodesBetween(n,r,function(e){e.isBlock&&s.push(e)}),s},d.formatBlockElements=function(c,t){return function(s,i){var e=d.blockNodes(s),o=s.schema.nodes,l=!1,u=s.tr;return u.setMeta("commandName",t),u.setMeta("args",{value:c}),e.forEach(function(e){if(e.type.isTextblock)if("p"===c){var t=e.attrs,n=t.level,r=f.__rest(t,["level"]);l=d.changeBlockNode(s,i,u,e,o.paragraph,r)||l}else if(/^h[1-6]$/i.test(c))n=parseInt(c.substr(1),10),l=d.changeBlockNode(s,i,u,e,o.heading,f.__assign({},e.attrs,{level:n}))||l;else if("blockquote"===c){var a=e.attrs;n=a.level,r=f.__rest(a,["level"]),l=d.changeBlockNode(s,i,u,e,o.blockquote,r)||l}}),l&&i(u.scrollIntoView()),l}},d.getBlockFormats=function(e){var t=d.blockNodes(e),n=e.schema.nodes,r=[];return t.forEach(function(e){if(e.type===n.paragraph)r.push("p");else if(e.type===n.heading)for(var t=1;t<=6;t++)if(e.attrs.level===t){r.push("h"+t);break}}),r},d.addStyles=function(e,t){var n=e.attrs.style,r=null,a=null;return n&&t.forEach(function(e){a={style:e.name,value:/^.+$/,newValue:e.value},r=s.changeStyles(n,a),n=r.changed?r.style:n}),n=n||t.reduce(function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""},""),Object.assign({},e.attrs,{style:n||null})},d.hasNode=function(e,t){var n=e.selection,r=n.from,a=n.to,s=!1;return e.doc.nodesBetween(r,a,function(e){return!(s=s||e.type===t)}),s};function o(n){return r=n,Object.keys(r).filter(function(e){return null!==n[t=e]&&void 0!==n[t]&&""!==n[t];var t}).reduce(function(e,t){var n;return Object.assign(e,((n={})[t]=r[t],n))},{});var r}d.getNodeTagName=function(n,r){var e,t=n.type.spec.parseDOM||[],a=n.attrs;return(e=1===t.length?t[0]:t.find(function(e){var t=h.DOMSerializer.fromSchema(r).serializeNode(n);return JSON.stringify(e.getAttrs(t))===JSON.stringify(o(a))}))?e.tag.toLowerCase().replace(/ *\[[^\]]*]/,""):""},d.activeNode=function(e){var t,n=e.schema.nodes.doc;if(e.selection instanceof i.AllSelection)t=e.doc;else if(e.selection instanceof i.TextSelection){var r=e.selection.$anchor,a=r.node(r.blockRange().depth);t=s.getTypeName(a)===s.getTypeName(n)?r.node():a}else e.selection instanceof i.NodeSelection&&(t=e.selection.node);return{name:s.getTypeName(t),tag:d.getNodeTagName(t,e.schema)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function k(e){return/^MsoListParagraph/.test(e.className)}function i(e){var t=e.innerHTML;return(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")}function M(e,t){var n=document.createElement(e);return n.style.listStyleType=t,n}function b(e){function t(e){return e.replace(/^(?:&nbsp;|[\u00a0\n\r\s])+/,"")}var n,r,a,s=e.innerHTML;return s=s.replace(/<\/?\w+[^>]*>/g,"").replace(/&nbsp;/g," "),/^[\u2022\u00b7\u00a7\u00d8oØüvn][\u00a0 ]+/.test(s)?{tag:"ul",style:(a=t(i(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(a)?null:/^o/.test(a)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(s)?{tag:"ol",style:(n=t(i(e)),r=null,/^\d/.test(n)||(r=(/^[a-z]/.test(n)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(n)?"roman":"alpha")),r)}:void 0}function S(e){var t,n=e.nodeName.toLowerCase();e.firstChild&&e.firstChild.nodeType===Node.COMMENT_NODE&&e.removeChild(e.firstChild),t=1===e.childNodes.length?e.firstChild.nodeType===Node.TEXT_NODE?i(e):e.firstChild.innerHTML.replace(/^\w+[\.\)](&nbsp;)+ /,""):(e.removeChild(e.firstChild),3===e.firstChild.nodeType&&/^[ivxlcdm]+\.$/i.test(e.firstChild.nodeValue)&&e.removeChild(e.firstChild),/^(&nbsp;|\s)+$/i.test(e.firstChild.innerHTML)&&e.removeChild(e.firstChild),"p"!==n?"<"+n+">"+e.innerHTML+"</"+n+">":e.innerHTML),e.parentNode.removeChild(e);var r=document.createElement("li");return r.innerHTML=t,r}var r=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,a=function(e,n){var r=[];Array.from(e).forEach(function(e){if(e.nodeType===Node.ELEMENT_NODE){var t=e;t.getAttribute("datalist")?(r.push(e),n.add(r)):k(t)&&r.length?r.push(e):(r=[],"DIV"===t.nodeName?a(t.children,n):"TABLE"===t.nodeName&&Array.from(t.querySelectorAll("td,th")).forEach(function(e){a(e.children,n)}))}})};t.convertMsLists=function(e){var t=document.createElement("div");t.innerHTML=e.replace(r,function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e});var n=new Set;return a(t.children,n),n.forEach(function(e){return function(e){var t,n,r,a,s,i,o,l,u,c,d,f,p,m=-1,g={};for(l=0;l<e.length;l++){var v=(p={datalist:(u=e[l]).getAttribute("datalist"),datalevel:u.getAttribute("datalevel")}).datalist,h=b(u);if(c=h&&h.tag){if(d=p.datalevel||parseFloat(u.style.marginLeft||0),p.datalevel||u.style.marginLeft){var y=c+v;g[d]||(g[d]={}),(!n||n<0)&&(n=d,r=v,a=(o=e.filter(function(e){return e.getAttribute("datalist")===String(r)}))[o.length-1],i=M(c,h&&h.style),u.parentNode.insertBefore(i,u),g[m=d][y]=i),s=a===u,f=g[d][y],(m<d||!f)&&(f=M(c,h&&h.style),g[d][y]=f,t.appendChild(f)),t=S(u),f.appendChild(t),s?n=m=-1:m=d}}else!t||s&&!k(u)||(u.style.marginLeft&&(u.style.marginLeft=""),u.style.marginLeft&&(u.style.margin=""),t.appendChild(u))}}(e)}),t.innerHTML}},function(e,t){e.exports=c},function(e,g,t){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var r=t(0),u=t(3),f=t(2),c=t(5),a=t(9),s=t(13),i=t(11);function p(e,t,n){var r=e.selection,a=r.from,s=r.to,i=e.schema.nodes,o=i.paragraph,l=i.heading,u=[];t.doc.nodesBetween(a,s,function(e,t){e.type!==o&&e.type!==l||u.push({node:e,pos:t})});for(var c=u.length-1;0<=c;c--){var d=u[c],f=t.doc.resolve(t.mapping.map(d.pos));if(0<f.depth){var p;p=d.node.textContent&&0<d.node.textContent.length?t.doc.resolve(t.mapping.map(d.pos+d.node.textContent.length)):t.doc.resolve(t.mapping.map(d.pos+1));var m=f.blockRange(p);m&&t.lift(m,g.getListLiftTarget(e.schema,f,n))}}return t}function m(c){return function(e,t,n){if(!n)return!1;var r=(e=n.state).schema.nodes[c.listType],a=e.selection,s=a.$from,i=a.$to,o=s.node(-2),l=s.node(-3),u=d(e.doc,s,i,r);return(o&&o.type===r||l&&l.type===r)&&u?k(c)(e,t):(u||(k(c)(e,t),e=n.state),M(r)(e,t))}}function v(e,t,n,r){r=r||e.schema.nodes.listItem;var a=t.$from,s=t.$to,i=a.blockRange(s,function(e){return e.childCount&&e.firstChild.type===r});if(!i||i.depth<2||a.node(i.depth-1).type!==r)return n;var o=i.end,l=s.end(i.depth);return o<l&&(n.step(new c.ReplaceAroundStep(o-1,l,o,l,new u.Slice(u.Fragment.from(r.create(void 0,i.parent.copy())),1,0),1,!0)),i=new u.NodeRange(n.doc.resolve(a.pos),n.doc.resolve(l),i.depth)),n.lift(i,c.liftTarget(i)).scrollIntoView()}function h(i,o,e,l,u,c){c=c||i.schema.nodes.listItem;var d=!1;return u.doc.nodesBetween(o,e,function(e,t){if(!d&&e.type===c&&o<t){d=!0;for(var n=l+3;l+2<n;){var r=u.doc.resolve(u.mapping.map(t));n=r.depth;var a=u.doc.resolve(u.mapping.map(t+e.textContent.length)),s=new f.TextSelection(r,a);u=v(i,s,u,c)}}}),u}function d(e,t,n,r){return 0===o(e,t,n).filter(function(e){return e.type!==r}).length}function o(e,t,n){for(var r=Array(),a=y(e,t).depth,s=e.resolve(t.start(a));s.pos<=n.start(n.depth);){var i=Math.min(s.depth,a),o=s.node(i);if(o&&r.push(o),0===i)break;var l=e.resolve(s.after(i));if(l.start(i)>=e.nodeSize-2)break;l.depth!==s.depth&&(l=e.resolve(l.pos+2)),s=l.depth?e.resolve(l.start(l.depth)):e.resolve(l.end(l.depth))}return r}function y(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;for(var r=t.node(t.depth),a=t;1<=t.depth;)(r=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==n.indexOf(r.type.name)&&(a=t);return a}function k(o){return function(s,e){var i=s.tr,t=s.selection,n=t.$from,r=t.$to;return i.doc.nodesBetween(n.pos,r.pos,function(e,t){if(e.isTextblock||"blockquote"===e.type.name||"div"===e.type.name){var n=new f.NodeSelection(i.doc.resolve(i.mapping.map(t))),r=n.$from.blockRange(n.$to);if(!r||n.$from.parent.type!==s.schema.nodes[o.listItem])return!1;var a=r&&c.liftTarget(r);if(null==a)return!1;i.lift(r,a)}}),e&&e(i),!0}}function M(n){return a.autoJoin(s.wrapInList(n),function(e,t){return e.type===t.type&&e.type===n})}g.rootListDepth=function(e,t){for(var n,r=t.bulletList,a=t.orderedList,s=t.listItem,i=e.depth-1;0<i;i--){var o=e.node(i);if(o.type!==r&&o.type!==a||(n=i),o.type!==r&&o.type!==a&&o.type!==s)break}return n},g.getListLiftTarget=function(e,t,n){for(var r=t.depth,a=e.nodes[n.bulletList],s=e.nodes[n.orderedList],i=e.nodes[n.listItem],o=t.depth;0<o;o--){var l=t.node(o);if(l.type!==a&&l.type!==s||(r=o),l.type!==a&&l.type!==s&&l.type!==i)break}return r-1},g.liftSelectionList=p,g.toggleList=function(e,t,n,r,a){var s=r.listType,i=e.selection,o=i.$from.node(i.$from.depth-2),l=i.$to.node(i.$to.depth-2);if(o&&o.type.name===s&&l&&l.type.name===s){var u=n.state.schema.nodes,c={bulletList:u[r.bulletList],orderedList:u[r.orderedList],listItem:u[r.listItem]},d=g.rootListDepth(i.$to,c),f=h(e,i.$to.pos,i.$to.end(d),d,n.state.tr,c.listItem);return(f=p(e,f,r)).setMeta("commandName",a),t(f),!0}return m(r)(e,t,n)},g.toggleListCommand=m,g.liftFollowingList=h,g.isRangeOfType=d,g.getAncestorNodesBetween=o,g.findAncestorPosition=y,g.liftListItems=k,g.wrapInList=M,g.toggleUnorderedList=function(e,t,n){return g.toggleList(e,t,n,r.__assign({listType:i.bulletList.listType},i.bulletList.types))},g.toggleOrderedList=function(e,t,n){return g.toggleList(e,t,n,r.__assign({listType:i.orderedList.listType},i.orderedList.types))},g.splitListItemKeepMarks=function(e){return function(n,r){return s.splitListItem(e)(n,function(e){var t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();t&&e.ensureMarks(t),r(e)})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.listsTypes={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},t.orderedList={listType:t.listsTypes.orderedList,types:r.__assign({},t.listsTypes)},t.bulletList={listType:t.listsTypes.bulletList,types:r.__assign({},t.listsTypes)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(11);t.indentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:30,unit:"px"}],listsTypes:r.__assign({},a.listsTypes)},t.outdentRules={nodes:[{node:"paragraph",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"},{node:"heading",style:"margin-left",rtlStyle:"margin-right",step:-30,unit:"px"}],listsTypes:r.__assign({},a.listsTypes)}},function(e,t){e.exports=o},function(e,s,t){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=t(3),i=t(2),o=t(1);s.parseContent=function(e,t,n){var r=document.createElement("div");return r.innerHTML=o.safeString(e),a.DOMParser.fromSchema(t).parse(r,n)},s.getHtml=function(e){var t=a.DOMSerializer.fromSchema(e.schema).serializeFragment(e.doc.content),n=document.createElement("div");return n.appendChild(t),n.innerHTML},s.setHtml=function(n,r,a){return void 0===r&&(r="setHTML"),void 0===a&&(a={preserveWhitespace:"full"}),function(e,t){return t(e.tr.setSelection(new i.AllSelection(e.doc)).replaceSelectionWith(s.parseContent(n,e.schema,a)).setMeta("commandName",r))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTable=function(e,t,n){for(var r,a=e.table,s=e.table_row,i=e.table_cell,o=[],l=0;l<t+1;l++){r=[];for(var u=0;u<n+1;u++)r.push(i.createAndFill());o.push(s.createAndFill(void 0,r))}return a.createAndFill(void 0,o)}},function(e,i,t){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=t(8);i.sanitize=function(e){return(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^[\s\S]+?<!--StartFragment-->\s*([\s\S]*?)\s*<!--EndFragment-->[\s\S]+$/,"$1")).replace(/<\/?[ovw]:[^>]*?>/gi,"")).replace(/<\\?\??xml[^>]*>/gi,"")).replace(/<(?:link|meta) [^>]+?>/gi,"")).replace(/<style[^>]*?>\s*<\/style>/gi,"")).replace(/<\/?st1:.*?>/gi,"")).replace(/<a name="[a-zA-Z0-9_]+">/gim,"")).replace(/v:shapes?="[^"]+"/gi,"")).replace(/<!\[if !supportLists\]>/gi,"")).replace(/<!\[endif\]>/gi,"")},i.removeComments=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},i.removeTag=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},i.removeAttribute=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},i.sanitizeClassAttr=function(e){/^Mso/.test(e.value)&&i.removeAttribute(e)};var o=/\s*;\s*/,l=/\s*:\s*/;i.sanitizeStyleAttr=function(e){var n,r,t=e.value.split(o).filter(function(e){return Boolean(e)}),a=e.ownerElement.style,s="";t.forEach(function(e){var t;t=e.split(l),n=t[0],r=t[1],void 0!==a[n]&&(s+=n+": "+r+"; ")}),(s=s.trim())?e.value=s:i.removeAttribute(e)},i.pasteCleanup=function(e,t){var n=e;if(t.convertMsLists&&(n=a.convertMsLists(n)),t.stripTags&&(n=i.removeTag(n,t.stripTags)),t.attributes){var r=document.createElement("div");r.innerHTML=n,Array.from(r.querySelectorAll("*")).forEach(function(e){return function(e,t){if(e.nodeType===Node.ELEMENT_NODE){for(var n=e.attributes.length-1;0<=n;n--){var r=e.attributes[n];t[r.name]?t[r.name](r):t["*"]&&t["*"](r)}"SPAN"===e.nodeName&&0===e.attributes.length&&function(e){var t=e.parentNode;if(t){for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)}}(e)}}(e,t.attributes)}),n=r.innerHTML}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bold={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},t.italic={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},t.underline={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},t.strikethrough={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},t.subscript={mark:"sub"},t.superscript={mark:"sup"},t.link={mark:"link"},t.unlink={mark:"link"}},function(e,t){e.exports=f},function(e,t){e.exports=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(9),s=n(19),i=n(18),r=n(10),o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.buildKeymap=function(e){var t={};if(t["Mod-z"]=s.undo,t["Shift-Mod-z"]=s.redo,t.Backspace=a.chainCommands(i.undoInputRule,a.deleteSelection,a.joinBackward,a.selectNodeBackward),t.Enter=a.chainCommands(a.newlineInCode,a.createParagraphNear,a.liftEmptyBlock,a.splitBlockKeepMarks),o||(t["Mod-y"]=s.redo),e.marks.strong&&(t["Mod-b"]=a.toggleMark(e.marks.strong)),e.marks.em&&(t["Mod-i"]=a.toggleMark(e.marks.em)),e.marks.underline&&(t["Mod-u"]=a.toggleMark(e.marks.underline)),e.nodes.hard_break){var n=e.nodes.hard_break,r=a.chainCommands(a.exitCode,function(e,t){return t(e.tr.replaceSelectionWith(n.create()).scrollIntoView()),!0});t["Shift-Enter"]=r}return t},t.buildListKeymap=function(e){var t={};return e.nodes.list_item&&(t.Enter=r.splitListItemKeepMarks(e.nodes.list_item)),t}},function(e,t){e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e){for(var t,n={},r=e.attributes,a=0;a<r.length;a++)n[(t=r[a]).name]=t.value;return n}function a(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return 1}function s(e,t){var n={};for(var r in e)r&&null!==e[r]&&r!==t&&(n[r]=e[r]);return n}function i(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t}var o=n(0),l=n(21),u=["blockquote",0],c=["hr"],d=["pre",["code",0]],f=["ol",0],p=["ul",0],m=["li",0],g=o.__assign({link:{attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:r}],toDOM:function(e){return["a",s(e.attrs),0]}}},i("strong"),i("b"),i("em"),i("i"),i("u"),i("del"),i("sub"),i("sup"),i("code"),{style:{attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"span",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["span",s(e.attrs),0]:["span",0]}}});t.marks=g;var v=o.__assign({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"p",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["p",s(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"div",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["div",s(e.attrs),0]:["div",0]}},blockquote:{attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"blockquote"}],toDOM:function(){return u}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return c}},heading:{attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return o.__assign({},r(e),{level:1})}},{tag:"h2",getAttrs:function(e){return o.__assign({},r(e),{level:2})}},{tag:"h3",getAttrs:function(e){return o.__assign({},r(e),{level:3})}},{tag:"h4",getAttrs:function(e){return o.__assign({},r(e),{level:4})}},{tag:"h5",getAttrs:function(e){return o.__assign({},r(e),{level:5})}},{tag:"h6",getAttrs:function(e){return o.__assign({},r(e),{level:6})}}],toDOM:function(e){return a(e.attrs,"level")?["h"+e.attrs.level,s(e.attrs,"level"),0]:["h"+e.attrs.level,0]}},code_block:{content:"text*",marks:"",group:"block",code:!0,defining:!0,parseDOM:[{tag:"pre",preserveWhitespace:"full"}],toDOM:function(){return d}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:o.__assign({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["img",s(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["br",s(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}},{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return o.__assign({},r(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?a(e.attrs,"order")?["ol",s(e.attrs,"order"),0]:f:["ol",o.__assign({},s(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"ul",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["ul",s(e.attrs),0]:p}},list_item:{content:"block*",attrs:o.__assign({},{style:{default:null},class:{default:null},id:{default:null}}),parseDOM:[{tag:"li",getAttrs:r}],toDOM:function(e){return a(e.attrs)?["li",s(e.attrs),0]:m},defining:!0}},l.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:{}}));t.nodes=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){return{name:e,value:t}}t.alignLeftRules=[{node:"paragraph",style:[r("text-align","left")]},{node:"heading",style:[r("text-align","left")]},{node:"listItem",style:[r("text-align","left"),r("list-style-position","inside")]}],t.alignRightRules=[{node:"paragraph",style:[r("text-align","right")]},{node:"heading",style:[r("text-align","right")]},{node:"listItem",style:[r("text-align","right"),r("list-style-position","inside")]}],t.alignCenterRules=[{node:"paragraph",style:[r("text-align","center")]},{node:"heading",style:[r("text-align","center")]},{node:"listItem",style:[r("text-align","center"),r("list-style-position","inside")]}],t.alignJustifyRules=[{node:"paragraph",style:[r("text-align","justify")]},{node:"heading",style:[r("text-align","justify")]},{node:"listItem",style:[r("text-align","justify"),r("list-style-position","justify")]}],t.alignRemoveRules=[{node:"paragraph",style:[r("text-align","")]},{node:"heading",style:[r("text-align","")]},{node:"listItem",style:[r("text-align",""),r("list-style-position","")]}]},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o=t(13),s=t(12),m=t(7),l=t(1);a.indentBlocks=function(f,t,p){return function(l,u){var e=m.blockNodes(l),c=l.tr,d=!1;return c.setMeta("commandName",t),e.forEach(function(t){if(t.type.isTextblock){var e=void 0,n=f.find(function(e){return e.node===t.type.name});if(n){var r="rtl"===p?n.rtlStyle:n.style,a={name:r,value:0<n.step?""+n.step+n.unit:""};if(t.attrs.style){var s=new RegExp(r+":\\s?(\\d+)"+n.unit,"i"),i=t.attrs.style.match(s);if(i){var o=parseFloat(i[1])+n.step;o=o<=0?"":o,a.value=""+o+(o?n.unit:"")}}e=m.addStyles(t,[a])}e&&(d=m.changeBlockNode(l,u,c,t,t.type,e)||d)}}),d&&u(c.scrollIntoView()),d}},a.isIndented=function(e,a,s){var i=!1;return m.blockNodes(e).forEach(function(t){if(!i&&t.type.isTextblock&&t.attrs.style){var e=a.find(function(e){return e.node===t.type.name});if(e){var n="rtl"===s?e.rtlStyle:e.style,r=new RegExp(n+":\\s?\\d+"+e.unit,"i");i=r.test(t.attrs.style)}}}),i},a.canIndentAsListItem=function(e,t){return o.sinkListItem(t)(e)},a.canOutdentAsListItem=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],r=e.schema.nodes[t.listsTypes.orderedList],a=e.schema.nodes[t.listsTypes.bulletList],s=!!l.findNthParentNodeOfType(r,2)(e.selection),i=!!l.findNthParentNodeOfType(a,2)(e.selection);return(s||i)&&o.liftListItem(n)(e)},a.canBeIndented=function(t,e){var n=t.schema.nodes,r=n[s.indentRules.listsTypes.listItem];return(a.isIndented(t,e.nodes)||s.indentRules.nodes.some(function(e){return n[e.node]&&m.hasNode(t,n[e.node])}))&&!m.hasNode(t,r)},a.indent=function(e,t){var n=e.schema.nodes[s.indentRules.listsTypes.listItem],r=a.canBeIndented(e,s.indentRules);a.canIndentAsListItem(e,n)?o.sinkListItem(n)(e,t):r&&a.indentBlocks(s.indentRules.nodes)(e,t)},a.outdent=function(e,t){var n=e.schema.nodes[s.outdentRules.listsTypes.listItem],r=a.canBeIndented(e,s.outdentRules);a.canOutdentAsListItem(e,s.outdentRules)?o.liftListItem(n)(e,t):r&&a.indentBlocks(s.outdentRules.nodes)(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=n(7);t.alignBlocks=function(o,t){return function(r,a){var e=l.blockNodes(r),s=r.tr;s.setMeta("commandName",t);var i=!1;return e.forEach(function(t){if(t.type.isTextblock){var e={},n=o.find(function(e){return e.node===t.type.name});n&&(e=l.addStyles(t,n.style)),i=l.changeBlockNode(r,a,s,t,t.type,e)||i}}),i&&a(s.scrollIntoView()),i}},t.isAligned=function(e,n){var r=!1;return l.blockNodes(e).forEach(function(t){if(!r&&t.type.isTextblock&&t.attrs.style){var e=n.find(function(e){return e.node===t.type.name});e&&(r=e.style.every(function(e){return!!e.value&&new RegExp(e.name+":\\s?"+e.value,"i").test(t.attrs.style)}))}}),r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n(1);t.insertImage=function(r){return function(e,t){var n=e.schema.nodes.image.createAndFill(r);a.insertNode(n)(e,function(e){return t(e.setMeta("commandName","insertImage").setMeta("args",r))})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.insertText=function(n){return function(e,t){t(e.tr.insertText(n.text,n.from,n.to))}}},function(e,c,t){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var m=t(4),h=t(6),d=t(2);c.removeLink=function(f,p){return function(e,t){var n=e.selection.$cursor;if(n){var r=n.parent,a=n.index(),s=e.schema.marks[f.mark],i=r.child(a).marks.find(function(e){return e.type===s}),o=r.childCount,l=n.pos-n.textOffset,u=r.child(a).nodeSize,c=void 0,d=void 0;for(c=a-1;0<=c&&i.isInSet(r.child(c).marks);)u+=d=r.child(c).nodeSize,l-=d,--c;for(c=a+1;c<o&&i.isInSet(r.child(c).marks);)u+=r.child(c).nodeSize,c+=1;t(h.removeMark(p||e.tr,l,l+u,i))}else m.toggleInlineFormat(f,p)(e,t)}},c.applyLink=function(e,o){var l=e.mark,u=e.attrs;return void 0===o&&(o="link"),function(e,t){var n=e.schema.marks,r=e.tr;o&&(r.setMeta("commandName",o),r.setMeta("args",u));function a(){return s=!0}var g,v,s=!1;if(h.getParentMark(e,n[l]))g={mark:l,attrs:u},v=r,function(e,n){var t=e.selection,r=t.$cursor,a=t.from,s=t.to,i=e.schema.marks[g.mark];if(r){var o=r.parent,l=r.index(),u=o.child(l).marks.find(function(e){return e.type===i}),c=o.childCount,d=r.pos-r.textOffset,f=o.child(l).nodeSize,p=void 0,m=void 0;for(p=l-1;0<=p&&u.isInSet(o.child(p).marks);)f+=m=o.child(p).nodeSize,d-=m,--p;for(p=l+1;p<c&&u.isInSet(o.child(p).marks);)f+=o.child(p).nodeSize,p+=1;v.removeMark(d,d+f,i),v.addMark(d,d+f,i.create(g.attrs)),n(v)}else v.doc.nodesBetween(a,s,function(e,t){e.isInline&&i.isInSet(e.marks)&&(v.removeMark(t,t+e.nodeSize,i),v.addMark(t,t+e.nodeSize,i.create(g.attrs)),n(v))})}(e,a);else{var i=e;h.hasMark(e,{mark:l})&&(c.removeLink({mark:l,attrs:u},r)(e,a),i=d.EditorState.create({doc:r.doc,selection:r.selection})),(s?h.toggleMark(n[l],u,r):m.toggleInlineFormat({mark:l},r,u))(i,a)}return s&&t(r),s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14);t.getHtml=r.getHtml,t.setHtml=r.setHtml,t.parseContent=r.parseContent;var a=n(4);t.applyInlineStyle=a.applyInlineStyle,t.getInlineStyles=a.getInlineStyles,t.toggleInlineFormat=a.toggleInlineFormat;var s=n(28);t.applyLink=s.applyLink,t.removeLink=s.removeLink;var i=n(27);t.insertText=i.insertText;var o=n(26);t.insertImage=o.insertImage;var l=n(25);t.alignBlocks=l.alignBlocks,t.isAligned=l.isAligned;var u=n(7);t.hasNode=u.hasNode,t.activeNode=u.activeNode,t.formatBlockElements=u.formatBlockElements,t.getBlockFormats=u.getBlockFormats;var c=n(6);t.hasMark=c.hasMark,t.getMark=c.getMark,t.getActiveMarks=c.getActiveMarks,t.removeAllMarks=c.removeAllMarks;var d=n(24);t.indent=d.indent,t.canIndentAsListItem=d.canIndentAsListItem,t.outdent=d.outdent,t.canOutdentAsListItem=d.canOutdentAsListItem,t.isIndented=d.isIndented,t.canBeIndented=d.canBeIndented,t.indentBlocks=d.indentBlocks;var f=n(10);t.toggleOrderedList=f.toggleOrderedList,t.toggleUnorderedList=f.toggleUnorderedList,t.toggleList=f.toggleList;var p=n(1);t.hasSameMarkup=p.hasSameMarkup,t.getUniqueStyleValues=p.getUniqueStyleValues,t.getSelectionText=p.getSelectionText,t.getNodeFromSelection=p.getNodeFromSelection,t.canInsert=p.canInsert,t.insertNode=p.insertNode,t.indentHtml=p.indentHtml;var m=n(23);t.alignLeftRules=m.alignLeftRules,t.alignCenterRules=m.alignCenterRules,t.alignRightRules=m.alignRightRules,t.alignJustifyRules=m.alignJustifyRules,t.alignRemoveRules=m.alignRemoveRules;var g=n(12);t.indentRules=g.indentRules,t.outdentRules=g.outdentRules;var v=n(22);t.nodes=v.nodes,t.marks=v.marks;var h=n(20);t.buildKeymap=h.buildKeymap,t.buildListKeymap=h.buildListKeymap;var y=n(17);t.bold=y.bold,t.italic=y.italic,t.underline=y.underline,t.strikethrough=y.strikethrough,t.subscript=y.subscript,t.superscript=y.superscript,t.link=y.link;var k=n(16);t.sanitize=k.sanitize,t.removeComments=k.removeComments,t.removeTag=k.removeTag,t.pasteCleanup=k.pasteCleanup,t.sanitizeClassAttr=k.sanitizeClassAttr,t.sanitizeStyleAttr=k.sanitizeStyleAttr,t.removeAttribute=k.removeAttribute;var M=n(8);t.convertMsLists=M.convertMsLists;var b=n(15);t.createTable=b.createTable,function(e){for(var t in e)S(t,e[t])}(t)}],r.c=a,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=29)}}});
[Kendo UI for Angular](http://www.telerik.com/kendo-angular-ui)
Copyright © 2017 Telerik AD. All rights reserved.
Copyright © 2020 Telerik AD. All rights reserved.

@@ -5,0 +5,0 @@ This is commercial software. To use it, you need to agree to the [**Telerik End User License Agreement for Kendo UI Complete**](http://www.telerik.com/purchase/license-agreement/kendo-ui-complete). If you do not own a commercial license, this file shall be governed by the trial license terms.

{
"name": "@progress/kendo-editor-common",
"description": "Kendo UI TypeScript package exporting functions for Editor component",
"version": "0.5.0-dev.201912130922",
"version": "0.5.0-dev.202004271514",
"keywords": [

@@ -47,3 +47,3 @@ "Kendo UI"

"devDependencies": {
"@progress/kendo-typescript-tasks": "^7.1.8",
"@progress/kendo-typescript-tasks": "^8.0.1",
"@telerik/semantic-prerelease": "^1.0.0",

@@ -55,3 +55,3 @@ "@types/jasmine": "~2.2.0",

"ghooks": "^1.0.3",
"gulp": "^3.9.0",
"gulp": "^4.0.0",
"jest": "^23.6.0",

@@ -58,0 +58,0 @@ "jest-preset-typescript": "^1.0.1",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc