@progress/kendo-vue-editor 3.5.0 → 3.5.1-dev.202208100944

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/js/kendo-vue-editor.js +1 -1
  3. package/dist/es/Editor.d.ts +41 -41
  4. package/dist/es/Editor.js +7 -11
  5. package/dist/es/EditorProps.js +1 -0
  6. package/dist/es/config/pasteSettings.js +1 -0
  7. package/dist/es/config/toolsSettings.js +13 -11
  8. package/dist/es/dialogs/EditorDialogProps.js +1 -0
  9. package/dist/es/dialogs/FindReplace.js +4 -4
  10. package/dist/es/main.d.ts +0 -1
  11. package/dist/es/main.js +115 -28
  12. package/dist/es/messages/index.d.ts +0 -313
  13. package/dist/es/package-metadata.js +1 -1
  14. package/dist/es/tools/ToolProps.d.ts +2 -1
  15. package/dist/es/tools/ToolProps.js +1 -0
  16. package/dist/es/tools/fontStyle.js +7 -11
  17. package/dist/es/tools/formatBlock.js +7 -11
  18. package/dist/es/tools/insertTable/popupGrid.js +1 -1
  19. package/dist/es/tools/main.js +1 -0
  20. package/dist/esm/Editor.d.ts +283 -0
  21. package/dist/esm/Editor.js +813 -0
  22. package/dist/esm/EditorProps.d.ts +182 -0
  23. package/dist/esm/EditorProps.js +1 -0
  24. package/dist/esm/additionalTypes.ts +21 -0
  25. package/dist/esm/config/defaultStyles.d.ts +12 -0
  26. package/dist/esm/config/defaultStyles.js +12 -0
  27. package/dist/esm/config/pasteSettings.d.ts +6 -0
  28. package/dist/esm/config/pasteSettings.js +1 -0
  29. package/dist/esm/config/schema.d.ts +8 -0
  30. package/dist/esm/config/schema.js +51 -0
  31. package/dist/esm/config/shortcuts.d.ts +22 -0
  32. package/dist/esm/config/shortcuts.js +70 -0
  33. package/dist/esm/config/toolsSettings.d.ts +485 -0
  34. package/dist/esm/config/toolsSettings.js +525 -0
  35. package/dist/esm/dialogs/EditorDialogProps.d.ts +23 -0
  36. package/dist/esm/dialogs/EditorDialogProps.js +1 -0
  37. package/dist/esm/dialogs/FindReplace.d.ts +70 -0
  38. package/dist/esm/dialogs/FindReplace.js +880 -0
  39. package/dist/esm/dialogs/insertImage.d.ts +54 -0
  40. package/dist/esm/dialogs/insertImage.js +299 -0
  41. package/dist/esm/dialogs/insertLink.d.ts +52 -0
  42. package/dist/esm/dialogs/insertLink.js +313 -0
  43. package/dist/esm/dialogs/main.d.ts +1 -0
  44. package/dist/esm/dialogs/main.js +42 -0
  45. package/dist/esm/dialogs/viewHtml.d.ts +51 -0
  46. package/dist/esm/dialogs/viewHtml.js +149 -0
  47. package/dist/esm/main.d.ts +184 -0
  48. package/dist/esm/main.js +216 -0
  49. package/dist/esm/messages/index.d.ts +166 -0
  50. package/dist/esm/messages/index.js +485 -0
  51. package/dist/esm/package-metadata.d.ts +5 -0
  52. package/dist/esm/package-metadata.js +11 -0
  53. package/dist/esm/package.json +3 -0
  54. package/dist/esm/tools/ToolProps.d.ts +35 -0
  55. package/dist/esm/tools/ToolProps.js +1 -0
  56. package/dist/esm/tools/align.d.ts +42 -0
  57. package/dist/esm/tools/align.js +124 -0
  58. package/dist/esm/tools/applyColor.d.ts +45 -0
  59. package/dist/esm/tools/applyColor.js +107 -0
  60. package/dist/esm/tools/cleanFormatting.d.ts +49 -0
  61. package/dist/esm/tools/cleanFormatting.js +122 -0
  62. package/dist/esm/tools/findReplace.d.ts +43 -0
  63. package/dist/esm/tools/findReplace.js +127 -0
  64. package/dist/esm/tools/fontStyle.d.ts +55 -0
  65. package/dist/esm/tools/fontStyle.js +166 -0
  66. package/dist/esm/tools/formatBlock.d.ts +45 -0
  67. package/dist/esm/tools/formatBlock.js +161 -0
  68. package/dist/esm/tools/history.d.ts +18 -0
  69. package/dist/esm/tools/history.js +5 -0
  70. package/dist/esm/tools/indent.d.ts +44 -0
  71. package/dist/esm/tools/indent.js +135 -0
  72. package/dist/esm/tools/inlineFormat.d.ts +74 -0
  73. package/dist/esm/tools/inlineFormat.js +133 -0
  74. package/dist/esm/tools/insertImage.d.ts +46 -0
  75. package/dist/esm/tools/insertImage.js +138 -0
  76. package/dist/esm/tools/insertLink.d.ts +46 -0
  77. package/dist/esm/tools/insertLink.js +138 -0
  78. package/dist/esm/tools/insertTable/index.d.ts +1 -0
  79. package/dist/esm/tools/insertTable/index.js +6 -0
  80. package/dist/esm/tools/insertTable/popup.d.ts +80 -0
  81. package/dist/esm/tools/insertTable/popup.js +176 -0
  82. package/dist/esm/tools/insertTable/popupGrid.d.ts +51 -0
  83. package/dist/esm/tools/insertTable/popupGrid.js +139 -0
  84. package/dist/esm/tools/insertTable/tool.d.ts +53 -0
  85. package/dist/esm/tools/insertTable/tool.js +173 -0
  86. package/dist/esm/tools/lists.d.ts +48 -0
  87. package/dist/esm/tools/lists.js +140 -0
  88. package/dist/esm/tools/main.d.ts +95 -0
  89. package/dist/esm/tools/main.js +1 -0
  90. package/dist/esm/tools/outdent.d.ts +44 -0
  91. package/dist/esm/tools/outdent.js +137 -0
  92. package/dist/esm/tools/pdf.d.ts +58 -0
  93. package/dist/esm/tools/pdf.js +113 -0
  94. package/dist/esm/tools/print.d.ts +49 -0
  95. package/dist/esm/tools/print.js +117 -0
  96. package/dist/esm/tools/proseMirrorTool.d.ts +48 -0
  97. package/dist/esm/tools/proseMirrorTool.js +118 -0
  98. package/dist/esm/tools/selectAll.d.ts +49 -0
  99. package/dist/esm/tools/selectAll.js +110 -0
  100. package/dist/esm/tools/tableEdit.d.ts +51 -0
  101. package/dist/esm/tools/tableEdit.js +43 -0
  102. package/dist/esm/tools/unlink.d.ts +47 -0
  103. package/dist/esm/tools/unlink.js +118 -0
  104. package/dist/esm/tools/utils.d.ts +18 -0
  105. package/dist/esm/tools/utils.js +36 -0
  106. package/dist/esm/tools/viewHtml.d.ts +54 -0
  107. package/dist/esm/tools/viewHtml.js +133 -0
  108. package/dist/esm/utils/browser-detection.d.ts +4 -0
  109. package/dist/esm/utils/browser-detection.js +5 -0
  110. package/dist/esm/utils/controlled-value.d.ts +5 -0
  111. package/dist/esm/utils/controlled-value.js +31 -0
  112. package/dist/esm/utils/index.d.ts +358 -0
  113. package/dist/esm/utils/index.js +422 -0
  114. package/dist/esm/utils/props-key.d.ts +5 -0
  115. package/dist/esm/utils/props-key.js +5 -0
  116. package/dist/npm/Editor.d.ts +41 -41
  117. package/dist/npm/Editor.js +18 -22
  118. package/dist/npm/config/schema.js +1 -1
  119. package/dist/npm/config/shortcuts.js +11 -9
  120. package/dist/npm/config/toolsSettings.js +13 -11
  121. package/dist/npm/dialogs/FindReplace.js +11 -11
  122. package/dist/npm/dialogs/insertImage.js +12 -12
  123. package/dist/npm/dialogs/insertLink.js +9 -9
  124. package/dist/npm/dialogs/viewHtml.js +7 -7
  125. package/dist/npm/main.d.ts +0 -1
  126. package/dist/npm/main.js +116 -29
  127. package/dist/npm/messages/index.d.ts +0 -313
  128. package/dist/npm/package-metadata.js +1 -1
  129. package/dist/npm/tools/ToolProps.d.ts +2 -1
  130. package/dist/npm/tools/align.js +4 -4
  131. package/dist/npm/tools/applyColor.js +2 -2
  132. package/dist/npm/tools/cleanFormatting.js +2 -2
  133. package/dist/npm/tools/findReplace.js +1 -1
  134. package/dist/npm/tools/fontStyle.js +10 -14
  135. package/dist/npm/tools/formatBlock.js +10 -14
  136. package/dist/npm/tools/indent.js +11 -11
  137. package/dist/npm/tools/inlineFormat.js +3 -3
  138. package/dist/npm/tools/insertImage.js +2 -2
  139. package/dist/npm/tools/insertLink.js +2 -2
  140. package/dist/npm/tools/insertTable/popupGrid.js +2 -2
  141. package/dist/npm/tools/insertTable/tool.js +5 -5
  142. package/dist/npm/tools/lists.js +4 -4
  143. package/dist/npm/tools/outdent.js +7 -7
  144. package/dist/npm/tools/pdf.js +2 -2
  145. package/dist/npm/tools/print.js +1 -1
  146. package/dist/npm/tools/proseMirrorTool.js +1 -1
  147. package/dist/npm/tools/selectAll.js +2 -2
  148. package/dist/npm/tools/tableEdit.js +4 -4
  149. package/dist/npm/tools/unlink.js +3 -3
  150. package/dist/npm/tools/viewHtml.js +1 -1
  151. package/dist/npm/utils/controlled-value.js +2 -1
  152. package/dist/npm/utils/index.js +35 -35
  153. package/package.json +12 -12
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-vue-intl","@progress/kendo-drawing","@progress/kendo-licensing"],t):"object"==typeof exports?exports.KendoVueEditor=t(require("vue"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing"),require("@progress/kendo-licensing")):e.KendoVueEditor=t(e.Vue,e.KendoVueIntl,e.KendoDrawing,e.KendoLicensing)}(window,(function(e,t,n,i){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},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=162)}([function(e,t,n){"use strict";n.r(t),n.d(t,"getRef",(function(){return l})),n.d(t,"setRef",(function(){return u})),n.d(t,"classNames",(function(){return r})),n.d(t,"guid",(function(){return o})),n.d(t,"Keys",(function(){return s})),n.d(t,"noop",(function(){return A})),n.d(t,"isObject",(function(){return i})),n.d(t,"getListeners",(function(){return W})),n.d(t,"hasListener",(function(){return H})),n.d(t,"canUseDOM",(function(){return a})),n.d(t,"firstFocusableChild",(function(){return c})),n.d(t,"focusFirstFocusableChild",(function(){return h})),n.d(t,"lastFocusableChild",(function(){return p})),n.d(t,"focusLastFocusableChild",(function(){return f})),n.d(t,"focusContainer",(function(){return v})),n.d(t,"clone",(function(){return N})),n.d(t,"Draggable",(function(){return R})),n.d(t,"cloneArray",(function(){return E})),n.d(t,"cloneValue",(function(){return j})),n.d(t,"cloneObject",(function(){return P})),n.d(t,"cloneDate",(function(){return B})),n.d(t,"getTemplate",(function(){return Y})),n.d(t,"templateRendering",(function(){return X})),n.d(t,"templateDefinition",(function(){return J})),n.d(t,"getTabIndex",(function(){return Q})),n.d(t,"getDefaultSlots",(function(){return T})),n.d(t,"isRtl",(function(){return ee})),n.d(t,"getDir",(function(){return te})),n.d(t,"getter",(function(){return z})),n.d(t,"setter",(function(){return _})),n.d(t,"validatePackage",(function(){return ie})),n.d(t,"kendoThemeMaps",(function(){return re}));var i=function(e){return"object"==typeof e},r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r.apply(void 0,e):i(e)?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},s={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},a=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function l(e,t,n){return e.v3?e[t+"Ref"]:e.$refs[""+(n||t)]}function u(e,t,n){return e.v3?function(n){e[t+"Ref"]=n}:n||t}var d='input, [tabindex]:not([tabindex="-1"])',c=function(e){if(e){var t=e.querySelectorAll(d);if(t.length&&t[0].focus)return t[0]}},p=function(e){if(e){var t=e.querySelectorAll(d);if(t.length&&t[t.length-1].focus)return t[t.length-1]}},h=function(e){if(e){var t=e.querySelectorAll(d);t.length&&t[0].focus&&t[0].focus()}},f=function(e){if(e){var t=e.querySelectorAll(d);t.length&&t[t.length-1].focus&&t[t.length-1].focus()}},v=function(e,t){var n=!0;if(e.keyCode!==s.enter&&e.target===t)return!1;if(e.keyCode===s.enter&&e.target===t)n=!0,setTimeout((function(){h(t)}),1);else if(e.keyCode===s.esc)n=!1,t.focus();else if(e.keyCode===s.tab){var i=c(t),r=p(t);r&&!e.shiftKey&&e.target===r&&(e.preventDefault(),i.focus()),i&&e.shiftKey&&e.target===i&&(e.preventDefault(),r.focus())}return n},m=n(1),g=function(e,t){return function(n){return t(e(n))}},b=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},y=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},k=function(){},w=function(e){return e.preventDefault()},S=/touch/;function C(e){return e.type.match(S)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var x=function(e){var t=this,n=e.press;void 0===n&&(n=k);var i=e.drag;void 0===i&&(i=k);var r=e.release;void 0===r&&(r=k);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=g(C,n),this._dragHandler=g(C,i),this._releaseHandler=g(C,r),this._ignoreMouse=!1,this._mouseOnly=o,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(b(t.document,"mousemove",t._mousemove),b(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){y(t.document,"mousemove",t._mousemove),y(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(b(t.document,"pointermove",t._pointermove),b(t.document,"pointerup",t._pointerup),b(t.document,"pointercancel",t._pointerup),b(t.document,"contextmenu",w),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(y(t.document,"pointermove",t._pointermove),y(t.document,"pointerup",t._pointerup),y(t.document,"pointercancel",t._pointerup),y(t.document,"contextmenu",w),t._releaseHandler(e))}},O={document:{configurable:!0}};x.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},O.document.get=function(){return this._element?this._element.ownerDocument:document},x.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},x.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?b(e,"pointerdown",this._pointerdown):(b(e,"mousedown",this._mousedown),this._mouseOnly||(b(e,"touchstart",this._touchstart),b(e,"touchmove",this._touchmove),b(e,"touchend",this._touchend)))},x.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return y(e,"pointerdown",this._pointerdown),y(this.document,"pointermove",this._pointermove),y(this.document,"pointerup",this._pointerup),y(this.document,"contextmenu",w),void y(this.document,"pointercancel",this._pointerup);y(e,"mousedown",this._mousedown),this._mouseOnly||(y(e,"touchstart",this._touchstart),y(e,"touchmove",this._touchmove),y(e,"touchend",this._touchend))},x.prototype._usePointers=function(){return!this._mouseOnly&&x.supportPointerEvent()},x.prototype.update=function(e){var t=e.press;void 0===t&&(t=k);var n=e.drag;void 0===n&&(n=k);var i=e.release;void 0===i&&(i=k);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=g(C,t),this._dragHandler=g(C,n),this._releaseHandler=g(C,i),this._mouseOnly=r},x.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(x.prototype,O),x.default=x;var $,I=x;function T(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V=m,M=(V.h,V.version&&"3"===V.version[0]),R=(D($={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new I({press:this.press,drag:this.drag,release:this.release})},setup:M?function(){return{v3:!!M}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:M?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(e){this.element&&this.$emit("press",e,this.element)},drag:function(e){this.element&&this.$emit("drag",e,this.element)},release:function(e){this.element&&this.$emit("release",e,this.element)}}},"setup",M?function(){return{v3:!!M}}:void 0),D($,"render",(function(e){return T(this)})),$),B=function(e){return e?new Date(e.getTime()):null};function N(e){var t={};return P(e,t),t}function P(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t[n]=j(i,t[n])}}function j(e,t){if(Array.isArray(e))return E(e);if(e instanceof Date)return B(e);if(e&&i(e)){var n=t||{};return P(e,n),n}return e}function E(e){return e.map((function(e){return j(e,void 0)}))}var A=function(){},L=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,F={};function z(e){if(F[e])return F[e];var t=[];return e.replace(L,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),F[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},F[e]}F.undefined=function(){};var K={};function _(e){if(K[e])return K[e];var t=[];return e.replace(L,(function(e,n,i,r){t.push(void 0!==n?n:i||r)})),K[e]=function(e,n){for(var i=e,r=t.length-1,o=0;o<r&&i;o++)i=i[t[o]]=i[t[o]]||{};i[t[r]]=n},K[e]}function H(e){return this.v3?Object.keys(this.$attrs).map((function(e){return e.toLowerCase()})).some((function(t){return t.endsWith(e.toLowerCase())})):this.$listeners[e]}function W(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}K.undefined=function(e){return e};var U=function(){return(U=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},q=m,G=q.version&&"3"===q.version[0],J={type:[String,Function,Object,Boolean],default:function(){}};function X(e,t){if(e||!1===e){var n=G?this.$slots[e]||(e.toLowerCase?this.$slots[e.toLowerCase()]:null):this.$scopedSlots[e]||(e.toLowerCase?this.$scopedSlots[e.toLowerCase()]:null);return"string"==typeof e&&n?{kt:!0,type:"slot",render:n,listeners:t}:"string"==typeof e||i(e)||"function"==typeof e&&e.component?{kt:!0,type:"component",render:e,listeners:t}:{kt:!0,type:"renderFunction",render:e,listeners:t}}}function Y(e){var t,n,i,r=e.h,o=e.template,s=e.defaultRendering,a=e.defaultSlots,l=e.additionalProps,u=e.additionalListeners,d=e.swapDefaultSlots;if(!o||o&&!0===o.render)return s;if(G){var c=s?s.props:{};t=U(U({},Z(u)),o.listeners),n=U(U(U({},c),l),t),i=U(U({},n),t)}else{var p=s&&s.componentOptions,h=p?s.componentOptions.listeners:{},f=p?s.componentOptions.propsData:{};t=U(U(U(U({},h),u),Z(u)),o.listeners),i={props:n=U(U(U({},f),l),t),on:t}}if("slot"===o.type){var v=o.render({props:n,listeners:t,methods:t,defaultSlots:a});return v?v[0]:void 0}return"renderFunction"===o.type?d?o.render?o.render(r,s,a,n,t):void 0:o.render?o.render(r,s,n,t,a):void 0:r(o.render,i,G?function(){return[a]}:[a])}function Z(e){if(!e)return e;for(var t={},n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];t["on"+r.charAt(0).toUpperCase()+r.slice(1)]=e[r]}return t}var Q=function(e,t,n){var i="string"==typeof e?parseInt(e,void 0):e;if(NaN!==i)return void 0!==i?i:t?n?void 0:-1:0};function ee(e){return Boolean(a&&e&&"rtl"===getComputedStyle(e).direction)}function te(e,t){if(!t&&a&&e){var n=window.getComputedStyle(e).direction;if(n)return n}return t}var ne=n(35);function ie(e){if(void 0!==ne)ne.validatePackage(e);else{var t="License activation failed for "+e.name+"\n";t+="The @progress/kendo-licensing script is not loaded.\n",t+="See "+e.licensingDocsUrl+" for more information.\n",console.warn(t)}}var re={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(t,n){t.exports=e},function(e,t,n){"use strict";var i;n.d(t,"z",(function(){return r})),n.d(t,"y",(function(){return o})),n.d(t,"C",(function(){return s})),n.d(t,"A",(function(){return a})),n.d(t,"B",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"q",(function(){return d})),n.d(t,"l",(function(){return c})),n.d(t,"g",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"n",(function(){return f})),n.d(t,"o",(function(){return v})),n.d(t,"r",(function(){return m})),n.d(t,"m",(function(){return g})),n.d(t,"h",(function(){return b})),n.d(t,"f",(function(){return y})),n.d(t,"i",(function(){return k})),n.d(t,"e",(function(){return w})),n.d(t,"d",(function(){return S})),n.d(t,"p",(function(){return C})),n.d(t,"k",(function(){return x})),n.d(t,"t",(function(){return O})),n.d(t,"s",(function(){return $})),n.d(t,"v",(function(){return I})),n.d(t,"w",(function(){return T})),n.d(t,"u",(function(){return D})),n.d(t,"b",(function(){return V})),n.d(t,"a",(function(){return M})),n.d(t,"D",(function(){return R})),n.d(t,"x",(function(){return B}));var r="numerictextbox.increment",o="numerictextbox.decrement",s="slider.increment",a="slider.decrement",l="slider.dragTitle",u="colorGradient.dragHandle",d="colorGradient.r",c="colorGradient.g",p="colorGradient.b",h="colorGradient.a",f="colorGradient.hex",v="colorGradient.inputColorButton",m="colorGradient.rLabel",g="colorGradient.gLabel",b="colorGradient.bLabel",y="colorGradient.aLabel",k="colorGradient.contrastRatio",w="colorGradient.colorGradientAALevel",S="colorGradient.colorGradientAAALevel",C="colorGradient.colorGradientPass",x="colorGradient.colorGradientFail",O="flatColorPicker.cancelBtn",$="flatColorPicker.applyBtn",I="flatColorPicker.gradientBtn",T="flatColorPicker.paletterBtn",D="flatColorPicker.clearBtn",V="checkbox.validation",M="checkbox.optionalText",R="switch.validation",B=((i={})[r]="Increase value",i[o]="Decrease value",i[s]="Increase",i[a]="Decrease",i[l]="Drag",i[u]="Color well with two-dimensional slider for selecting\n saturation and lightness. Selected color is",i[v]="Change the color input",i[d]="r",i[d]="r",i[c]="g",i[p]="b",i[h]="a",i[m]="red chanel",i[g]="green chanel",i[b]="blue chanel",i[y]="alpha chanel",i[f]="hex",i[k]="Contrast ratio",i[w]="AA",i[S]="AAA",i[C]="Pass",i[x]="Fail",i[O]="Cancel",i[$]="Apply",i[I]="Gradient",i[T]="Palette",i[D]="Clear",i[V]="Please check this box if you want to proceed!",i[M]="(Optional)",i["radioButton.validation"]="Please select option if you want to proceed!",i[R]="Please turn on if you want to proceed!",i["colorPicker.dropdownButtonAriaLabel"]="Select",i)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return a})),n.d(t,"n",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"k",(function(){return c})),n.d(t,"m",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"j",(function(){return f})),n.d(t,"i",(function(){return v})),n.d(t,"e",(function(){return m}));var i="",r="0";function o(e,t){if(p(e))return t[Number(e)];var n=t[Number(s(e))];return n.items?o(function(e){if(c(e))return e;var t=e.indexOf("_");return e.substring(t+1)}(e),n.items):void 0}function s(e){return c(e)?e:e.split("_")[0]}function a(e){return u("0",e)}function l(e,t){return 0===t.indexOf(e)&&(t.length===e.length||"_"===t.charAt(e.length))}function u(e,t){return t?t+"_"+e:e}function d(e){var t=e.lastIndexOf("_");return t<0?i:e.substring(0,t)}function c(e){return e===i||e.indexOf("_")<0}function p(e){return e!==i&&e.indexOf("_")<0}function h(e){return 1===function(e){return e.split("_").length-1}(e)}function f(e){return v(e)===r}function v(e){var t=e.lastIndexOf("_");return t<0?e:e.substring(t+1)}function m(e,t,n){return p(t)?e?Number(t)<n-1?(Number(t)+1).toString():"0":Number(t)>0?(Number(t)-1).toString():(n-1).toString():t}},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t);var i=n(22);n.d(t,"Button",(function(){return i.a})),n.d(t,"ButtonVue2",(function(){return i.b}));var r=n(63);n.d(t,"ButtonGroup",(function(){return r.a})),n.d(t,"ButtonGroupVue2",(function(){return r.b}));var o=n(31);n.d(t,"Chip",(function(){return o.a})),n.d(t,"ChipVue2",(function(){return o.b}));var s=n(54);n.d(t,"ChipList",(function(){return s.a})),n.d(t,"ChipListVue2",(function(){return s.b}));var a=n(64);n.d(t,"FloatingActionButton",(function(){return a.a})),n.d(t,"FloatingActionButtonVue2",(function(){return a.b}));var l=n(32);n.d(t,"FloatingActionButtonItem",(function(){return l.a})),n.d(t,"FloatingActionButtonItemVue2",(function(){return l.b}));var u=n(65);for(var d in u)["default","Toolbar","ToolbarVue2","ToolbarItem","ToolbarItemVue2","ToolbarSeparator","ToolbarSeparatorVue2","ToolbarSpacer","ToolbarSpacerVue2","Button","ButtonVue2","ButtonGroup","ButtonGroupVue2","SplitButton","SplitButtonVue2","DropDownButton","DropDownButtonVue2","ButtonItem","Chip","ChipVue2","ChipList","ChipListVue2","FloatingActionButton","FloatingActionButtonVue2","FloatingActionButtonItem","FloatingActionButtonItemVue2"].indexOf(d)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(d);var c=n(55);n.d(t,"SplitButton",(function(){return c.a})),n.d(t,"SplitButtonVue2",(function(){return c.b}));var p=n(56);n.d(t,"DropDownButton",(function(){return p.a})),n.d(t,"DropDownButtonVue2",(function(){return p.b}));var h=n(28);n.d(t,"ButtonItem",(function(){return h.a}));var f=n(57);n.d(t,"Toolbar",(function(){return f.a})),n.d(t,"ToolbarVue2",(function(){return f.b}));var v=n(33);n.d(t,"ToolbarItem",(function(){return v.a})),n.d(t,"ToolbarItemVue2",(function(){return v.b}));var m=n(58);n.d(t,"ToolbarSeparator",(function(){return m.a})),n.d(t,"ToolbarSeparatorVue2",(function(){return m.b}));var g=n(59);n.d(t,"ToolbarSpacer",(function(){return g.a})),n.d(t,"ToolbarSpacerVue2",(function(){return g.b}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var i=function(e){return null!=e},r=function(e,t,n){return!i(e)||isNaN(e)||e<=t?t:e>=n?n:e}},function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return f}));var i=n(13),r=n(6),o=function(e,t,n,o){void 0===n&&(n=!1),void 0===o&&(o=!0);if(-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '"+t+"'. The available options are 'hex' or 'rgba'.");if(Object(r.b)(e)){var a=Object(i.parseColor)(e.trim(),o);if(Object(r.b)(a))return"hex"===t?s(a,n):a.toCssRgba()}},s=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},a=function(e,t){void 0===t&&(t=!0);var n=Object(i.parseColor)(e,t);return Object(r.b)(n)?n.toHSV():{}},l=function(e,t){void 0===t&&(t=!0);var n=Object(i.parseColor)(e,t);return Object(r.b)(n)?n.toBytes():{}},u=function(e){var t=Object(r.a)(e.h,0,359.9),n=Object(r.a)(e.s,0,1),o=Object(r.a)(e.v,0,1),s=Object(r.a)(e.a,0,1);return i.Color.fromHSV(t,n,o,s).toCssRgba()},d=function(e){return u({h:e,s:1,v:1,a:1})},c=function(e){var t=Object(r.a)(e.r,0,255),n=Object(r.a)(e.g,0,255),o=Object(r.a)(e.b,0,255),s=Object(r.a)(e.a,0,1);return i.Color.fromBytes(t,n,o,s).toCssRgba()},p=function(e,t){var n=Object(r.a)(e.r,0,255),i=Object(r.a)(e.g,0,255),o=Object(r.a)(e.b,0,255),s=Object(r.a)(e.a,0,1),a=Object(r.a)(t.r,0,255),l=Object(r.a)(t.g,0,255),u=Object(r.a)(t.b,0,255);return{r:Math.round((1-s)*a+s*n),g:Math.round((1-s)*l+s*i),b:Math.round((1-s)*u+s*o)}},h=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},f=function(e,t){return n=h(p(e,t)),i=h(p(t,{r:0,g:0,b:0,a:1})),(Math.max(n,i)+.05)/(Math.min(n,i)+.05);var n,i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i={name:"@progress/kendo-vue-inputs",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428896,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t,n){"use strict";function i(e){this.content=e}n.r(t),n.d(t,"getHtml",(function(){return Rt})),n.d(t,"setHtml",(function(){return Bt})),n.d(t,"parseContent",(function(){return Mt})),n.d(t,"trimWhitespace",(function(){return It})),n.d(t,"htmlToFragment",(function(){return Tt})),n.d(t,"domToPmDoc",(function(){return Vt})),n.d(t,"pmDocToFragment",(function(){return Dt})),n.d(t,"applyInlineStyle",(function(){return cn})),n.d(t,"getInlineStyles",(function(){return ln})),n.d(t,"toggleInlineFormat",(function(){return dn})),n.d(t,"applyLink",(function(){return hn})),n.d(t,"removeLink",(function(){return pn})),n.d(t,"insertText",(function(){return fn})),n.d(t,"insertImage",(function(){return vn})),n.d(t,"alignBlocks",(function(){return On})),n.d(t,"isAligned",(function(){return $n})),n.d(t,"cleanFormatting",(function(){return In})),n.d(t,"hasNode",(function(){return Sn})),n.d(t,"activeNode",(function(){return xn})),n.d(t,"formatBlockElements",(function(){return bn})),n.d(t,"getBlockFormats",(function(){return kn})),n.d(t,"parentBlockFormat",(function(){return Cn})),n.d(t,"changeTextBlock",(function(){return mn})),n.d(t,"blockNodes",(function(){return gn})),n.d(t,"cleanTextBlockFormatting",(function(){return yn})),n.d(t,"hasMark",(function(){return en})),n.d(t,"getMark",(function(){return rn})),n.d(t,"getActiveMarks",(function(){return on})),n.d(t,"removeAllMarks",(function(){return Zt})),n.d(t,"cleanMarks",(function(){return Qt})),n.d(t,"selectionMarks",(function(){return nn})),n.d(t,"indent",(function(){return Bi})),n.d(t,"canIndentAsListItem",(function(){return Vi})),n.d(t,"outdent",(function(){return Ni})),n.d(t,"canOutdentAsListItem",(function(){return Mi})),n.d(t,"isIndented",(function(){return Di})),n.d(t,"canBeIndented",(function(){return Ri})),n.d(t,"indentBlocks",(function(){return Ti})),n.d(t,"toggleOrderedList",(function(){return _i})),n.d(t,"toggleUnorderedList",(function(){return Ki})),n.d(t,"toggleList",(function(){return zi})),n.d(t,"listStyle",(function(){return Fi})),n.d(t,"blockquote",(function(){return $i})),n.d(t,"liftBlockquote",(function(){return Ii})),n.d(t,"hasSameMarkup",(function(){return zt})),n.d(t,"getSelectionText",(function(){return Kt})),n.d(t,"getNodeFromSelection",(function(){return _t})),n.d(t,"selectedLineTextOnly",(function(){return Ht})),n.d(t,"expandSelection",(function(){return qt})),n.d(t,"expandToWordWrap",(function(){return Gt})),n.d(t,"canInsert",(function(){return Et})),n.d(t,"insertNode",(function(){return Ft})),n.d(t,"indentHtml",(function(){return Wt})),n.d(t,"alignLeftRules",(function(){return Wi})),n.d(t,"alignCenterRules",(function(){return qi})),n.d(t,"alignRightRules",(function(){return Ui})),n.d(t,"alignJustifyRules",(function(){return Gi})),n.d(t,"alignRemoveRules",(function(){return Ji})),n.d(t,"indentRules",(function(){return _n})),n.d(t,"outdentRules",(function(){return Hn})),n.d(t,"nodes",(function(){return Jl})),n.d(t,"marks",(function(){return _l})),n.d(t,"buildKeymap",(function(){return Lu})),n.d(t,"buildListKeymap",(function(){return Fu})),n.d(t,"bold",(function(){return Mu})),n.d(t,"italic",(function(){return Ru})),n.d(t,"underline",(function(){return Bu})),n.d(t,"strikethrough",(function(){return Nu})),n.d(t,"subscript",(function(){return Pu})),n.d(t,"superscript",(function(){return ju})),n.d(t,"link",(function(){return Eu})),n.d(t,"sanitize",(function(){return Xu})),n.d(t,"removeComments",(function(){return Yu})),n.d(t,"removeTag",(function(){return Zu})),n.d(t,"pasteCleanup",(function(){return rd})),n.d(t,"sanitizeClassAttr",(function(){return ed})),n.d(t,"sanitizeStyleAttr",(function(){return id})),n.d(t,"removeAttribute",(function(){return Qu})),n.d(t,"replaceImageSourcesFromRtf",(function(){return pd})),n.d(t,"convertMsLists",(function(){return Ju})),n.d(t,"find",(function(){return fd})),n.d(t,"findAt",(function(){return hd})),n.d(t,"findAll",(function(){return vd})),n.d(t,"replace",(function(){return md})),n.d(t,"replaceAll",(function(){return gd})),n.d(t,"placeholder",(function(){return wd})),n.d(t,"spacesFix",(function(){return xd})),n.d(t,"textHighlight",(function(){return $d})),n.d(t,"textHighlightKey",(function(){return Od})),n.d(t,"imageResizing",(function(){return Pd})),n.d(t,"imageResizeKey",(function(){return Id})),n.d(t,"caretColor",(function(){return Ed})),n.d(t,"caretColorKey",(function(){return jd})),n.d(t,"autoJoin",(function(){return bi})),n.d(t,"baseKeymap",(function(){return Oi})),n.d(t,"chainCommands",(function(){return yi})),n.d(t,"createParagraphNear",(function(){return oi})),n.d(t,"deleteSelection",(function(){return Wn})),n.d(t,"exitCode",(function(){return ri})),n.d(t,"joinBackward",(function(){return Un})),n.d(t,"joinDown",(function(){return ei})),n.d(t,"joinForward",(function(){return Xn})),n.d(t,"joinUp",(function(){return Qn})),n.d(t,"lift",(function(){return ti})),n.d(t,"liftEmptyBlock",(function(){return si})),n.d(t,"macBaseKeymap",(function(){return Ci})),n.d(t,"newlineInCode",(function(){return ni})),n.d(t,"pcBaseKeymap",(function(){return Si})),n.d(t,"selectAll",(function(){return di})),n.d(t,"selectNodeBackward",(function(){return Gn})),n.d(t,"selectNodeForward",(function(){return Yn})),n.d(t,"selectParentNode",(function(){return ui})),n.d(t,"selectTextblockEnd",(function(){return fi})),n.d(t,"selectTextblockStart",(function(){return hi})),n.d(t,"setBlockType",(function(){return mi})),n.d(t,"splitBlock",(function(){return ai})),n.d(t,"splitBlockKeepMarks",(function(){return li})),n.d(t,"toggleMark",(function(){return gi})),n.d(t,"wrapIn",(function(){return vi})),n.d(t,"dropCursor",(function(){return Ad})),n.d(t,"GapCursor",(function(){return Fd})),n.d(t,"gapCursor",(function(){return Kd})),n.d(t,"HistoryState",(function(){return nu})),n.d(t,"closeHistory",(function(){return du})),n.d(t,"history",(function(){return hu})),n.d(t,"redo",(function(){return vu})),n.d(t,"redoDepth",(function(){return gu})),n.d(t,"undo",(function(){return fu})),n.d(t,"undoDepth",(function(){return mu})),n.d(t,"InputRule",(function(){return bu})),n.d(t,"closeDoubleQuote",(function(){return Ou})),n.d(t,"closeSingleQuote",(function(){return Iu})),n.d(t,"ellipsis",(function(){return Cu})),n.d(t,"emDash",(function(){return Su})),n.d(t,"inputRules",(function(){return yu})),n.d(t,"openDoubleQuote",(function(){return xu})),n.d(t,"openSingleQuote",(function(){return $u})),n.d(t,"smartQuotes",(function(){return Tu})),n.d(t,"textblockTypeInputRule",(function(){return Vu})),n.d(t,"undoInputRule",(function(){return wu})),n.d(t,"wrappingInputRule",(function(){return Du})),n.d(t,"keydownHandler",(function(){return dr})),n.d(t,"keymap",(function(){return ur})),n.d(t,"ContentMatch",(function(){return B})),n.d(t,"DOMParser",(function(){return ee})),n.d(t,"DOMSerializer",(function(){return ce})),n.d(t,"Fragment",(function(){return o})),n.d(t,"Mark",(function(){return d})),n.d(t,"MarkType",(function(){return Y})),n.d(t,"Node",(function(){return D})),n.d(t,"NodeRange",(function(){return $})),n.d(t,"NodeType",(function(){return q})),n.d(t,"ReplaceError",(function(){return c})),n.d(t,"ResolvedPos",(function(){return w})),n.d(t,"Schema",(function(){return Z})),n.d(t,"Slice",(function(){return p})),n.d(t,"addListNodes",(function(){return Pn})),n.d(t,"bulletList",(function(){return Rn})),n.d(t,"liftListItem",(function(){return An})),n.d(t,"listItem",(function(){return Bn})),n.d(t,"orderedList",(function(){return Mn})),n.d(t,"sinkListItem",(function(){return Ln})),n.d(t,"splitListItem",(function(){return En})),n.d(t,"wrapInList",(function(){return jn})),n.d(t,"AllSelection",(function(){return at})),n.d(t,"EditorState",(function(){return mt})),n.d(t,"NodeSelection",(function(){return ot})),n.d(t,"Plugin",(function(){return yt})),n.d(t,"PluginKey",(function(){return St})),n.d(t,"Selection",(function(){return et})),n.d(t,"SelectionRange",(function(){return nt})),n.d(t,"TextSelection",(function(){return it})),n.d(t,"Transaction",(function(){return ct})),n.d(t,"CellSelection",(function(){return Da})),n.d(t,"TableMap",(function(){return ua})),n.d(t,"TableView",(function(){return wl})),n.d(t,"__clipCells",(function(){return Na})),n.d(t,"__insertCells",(function(){return Ea})),n.d(t,"__pastedCells",(function(){return Ra})),n.d(t,"addColSpan",(function(){return Ia})),n.d(t,"addColumn",(function(){return Za})),n.d(t,"addColumnAfter",(function(){return el})),n.d(t,"addColumnBefore",(function(){return Qa})),n.d(t,"addRow",(function(){return rl})),n.d(t,"cellAround",(function(){return ma})),n.d(t,"colCount",(function(){return Ca})),n.d(t,"columnIsHeader",(function(){return Ta})),n.d(t,"columnResizing",(function(){return xl})),n.d(t,"columnResizingPluginKey",(function(){return Cl})),n.d(t,"deleteColumn",(function(){return nl})),n.d(t,"deleteRow",(function(){return ll})),n.d(t,"deleteTable",(function(){return kl})),n.d(t,"findCell",(function(){return Sa})),n.d(t,"fixTables",(function(){return Xa})),n.d(t,"fixTablesKey",(function(){return Ja})),n.d(t,"goToNextCell",(function(){return yl})),n.d(t,"handlePaste",(function(){return Ha})),n.d(t,"inSameTable",(function(){return wa})),n.d(t,"isInTable",(function(){return ga})),n.d(t,"mergeCells",(function(){return dl})),n.d(t,"moveCellForward",(function(){return ka})),n.d(t,"nextCell",(function(){return xa})),n.d(t,"pointsAtCell",(function(){return ya})),n.d(t,"removeColSpan",(function(){return $a})),n.d(t,"removeColumn",(function(){return tl})),n.d(t,"removeRow",(function(){return al})),n.d(t,"rowIsHeader",(function(){return il})),n.d(t,"selectedRect",(function(){return Ya})),n.d(t,"selectionCell",(function(){return ba})),n.d(t,"setAttr",(function(){return Oa})),n.d(t,"setCellAttr",(function(){return hl})),n.d(t,"splitCell",(function(){return cl})),n.d(t,"splitCellWithType",(function(){return pl})),n.d(t,"tableEditing",(function(){return Vl})),n.d(t,"tableEditingKey",(function(){return va})),n.d(t,"tableNodeTypes",(function(){return fa})),n.d(t,"tableNodes",(function(){return ha})),n.d(t,"toggleHeader",(function(){return vl})),n.d(t,"toggleHeaderCell",(function(){return bl})),n.d(t,"toggleHeaderColumn",(function(){return gl})),n.d(t,"toggleHeaderRow",(function(){return ml})),n.d(t,"updateColumnsOnResize",(function(){return Sl})),n.d(t,"AddMarkStep",(function(){return Fe})),n.d(t,"MapResult",(function(){return me})),n.d(t,"Mapping",(function(){return be})),n.d(t,"RemoveMarkStep",(function(){return ze})),n.d(t,"ReplaceAroundStep",(function(){return Ie})),n.d(t,"ReplaceStep",(function(){return $e})),n.d(t,"Step",(function(){return xe})),n.d(t,"StepMap",(function(){return ge})),n.d(t,"StepResult",(function(){return Oe})),n.d(t,"Transform",(function(){return ke})),n.d(t,"TransformError",(function(){return ye})),n.d(t,"canJoin",(function(){return Ne})),n.d(t,"canSplit",(function(){return Be})),n.d(t,"dropPoint",(function(){return Ae})),n.d(t,"findWrapping",(function(){return Me})),n.d(t,"insertPoint",(function(){return Ee})),n.d(t,"joinPoint",(function(){return je})),n.d(t,"liftTarget",(function(){return Ve})),n.d(t,"replaceStep",(function(){return Ke})),n.d(t,"Decoration",(function(){return Ps})),n.d(t,"DecorationSet",(function(){return Ls})),n.d(t,"EditorView",(function(){return Zs})),n.d(t,"__endComposition",(function(){return Os})),n.d(t,"__parseFromClipboard",(function(){return qo})),n.d(t,"__serializeForClipboard",(function(){return Uo})),n.d(t,"createTable",(function(){return qd})),n.d(t,"addRowAfter",(function(){return Xd})),n.d(t,"addRowBefore",(function(){return Jd})),n.d(t,"pmAddRowAfter",(function(){return sl})),n.d(t,"pmAddRowBefore",(function(){return ol})),i.prototype={constructor:i,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,o=r.find(e),s=r.content.slice();return-1==o?s.push(n||e,t):(s[o+1]=t,n&&(s[o]=n)),new i(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new i(n)},addToStart:function(e,t){return new i([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new i(n)},addBefore:function(e,t,n){var r=this.remove(t),o=r.content.slice(),s=r.find(e);return o.splice(-1==s?o.length:s,0,t,n),new i(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=i.from(e)).size?new i(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=i.from(e)).size?new i(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=i.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},get size(){return this.content.length>>1}},i.from=function(e){if(e instanceof i)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new i(t)};var r=i;var o=function(e,t){if(this.content=e,this.size=t||0,null==t)for(var n=0;n<e.length;n++)this.size+=e[n].nodeSize},s={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};o.prototype.nodesBetween=function(e,t,n,i,r){void 0===i&&(i=0);for(var o=0,s=0;s<t;o++){var a=this.content[o],l=s+a.nodeSize;if(l>e&&!1!==n(a,i+s,r,o)&&a.content.size){var u=s+1;a.nodesBetween(Math.max(0,e-u),Math.min(a.content.size,t-u),n,i+u)}s=l}},o.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},o.prototype.textBetween=function(e,t,n,i){var r="",o=!0;return this.nodesBetween(e,t,(function(s,a){s.isText?(r+=s.text.slice(Math.max(e,a)-a,t-a),o=!n):s.isLeaf&&i?(r+="function"==typeof i?i(s):i,o=!n):!o&&s.isBlock&&(r+=n,o=!0)}),0),r},o.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,i=this.content.slice(),r=0;for(t.isText&&t.sameMarkup(n)&&(i[i.length-1]=t.withText(t.text+n.text),r=1);r<e.content.length;r++)i.push(e.content[r]);return new o(i,this.size+e.size)},o.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],i=0;if(t>e)for(var r=0,s=0;s<t;r++){var a=this.content[r],l=s+a.nodeSize;l>e&&((s<e||l>t)&&(a=a.isText?a.cut(Math.max(0,e-s),Math.min(a.text.length,t-s)):a.cut(Math.max(0,e-s-1),Math.min(a.content.size,t-s-1))),n.push(a),i+=a.nodeSize),s=l}return new o(n,i)},o.prototype.cutByIndex=function(e,t){return e==t?o.empty:0==e&&t==this.content.length?this:new o(this.content.slice(e,t))},o.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var i=this.content.slice(),r=this.size+t.nodeSize-n.nodeSize;return i[e]=t,new o(i,r)},o.prototype.addToStart=function(e){return new o([e].concat(this.content),this.size+e.nodeSize)},o.prototype.addToEnd=function(e){return new o(this.content.concat(e),this.size+e.nodeSize)},o.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0},s.firstChild.get=function(){return this.content.length?this.content[0]:null},s.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},s.childCount.get=function(){return this.content.length},o.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},o.prototype.maybeChild=function(e){return this.content[e]},o.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var i=this.content[t];e(i,n,t),n+=i.nodeSize}},o.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),function e(t,n,i){for(var r=0;;r++){if(r==t.childCount||r==n.childCount)return t.childCount==n.childCount?null:i;var o=t.child(r),s=n.child(r);if(o!=s){if(!o.sameMarkup(s))return i;if(o.isText&&o.text!=s.text){for(var a=0;o.text[a]==s.text[a];a++)i++;return i}if(o.content.size||s.content.size){var l=e(o.content,s.content,i+1);if(null!=l)return l}i+=o.nodeSize}else i+=o.nodeSize}}(this,e,t)},o.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),function e(t,n,i,r){for(var o=t.childCount,s=n.childCount;;){if(0==o||0==s)return o==s?null:{a:i,b:r};var a=t.child(--o),l=n.child(--s),u=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:i,b:r};if(a.isText&&a.text!=l.text){for(var d=0,c=Math.min(a.text.length,l.text.length);d<c&&a.text[a.text.length-d-1]==l.text[l.text.length-d-1];)d++,i--,r--;return{a:i,b:r}}if(a.content.size||l.content.size){var p=e(a.content,l.content,i-1,r-1);if(p)return p}i-=u,r-=u}else i-=u,r-=u}}(this,e,t,n)},o.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return l(0,e);if(e==this.size)return l(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,i=0;;n++){var r=i+this.child(n).nodeSize;if(r>=e)return r==e||t>0?l(n+1,r):l(n,i);i=r}},o.prototype.toString=function(){return"<"+this.toStringInner()+">"},o.prototype.toStringInner=function(){return this.content.join(", ")},o.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},o.fromJSON=function(e,t){if(!t)return o.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new o(t.map(e.nodeFromJSON))},o.fromArray=function(e){if(!e.length)return o.empty;for(var t,n=0,i=0;i<e.length;i++){var r=e[i];n+=r.nodeSize,i&&r.isText&&e[i-1].sameMarkup(r)?(t||(t=e.slice(0,i)),t[t.length-1]=r.withText(t[t.length-1].text+r.text)):t&&t.push(r)}return new o(t||e,n)},o.from=function(e){if(!e)return o.empty;if(e instanceof o)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new o([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))},Object.defineProperties(o.prototype,s);var a={index:0,offset:0};function l(e,t){return a.index=e,a.offset=t,a}function u(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var i=0;i<e.length;i++)if(!u(e[i],t[i]))return!1}else{for(var r in e)if(!(r in t)||!u(e[r],t[r]))return!1;for(var o in t)if(!(o in e))return!1}return!0}o.empty=new o([],0);var d=function(e,t){this.type=e,this.attrs=t};function c(e){var t=Error.call(this,e);return t.__proto__=c.prototype,t}d.prototype.addToSet=function(e){for(var t,n=!1,i=0;i<e.length;i++){var r=e[i];if(this.eq(r))return e;if(this.type.excludes(r.type))t||(t=e.slice(0,i));else{if(r.type.excludes(this.type))return e;!n&&r.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),n=!0),t&&t.push(r)}}return t||(t=e.slice()),n||t.push(this),t},d.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e},d.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},d.prototype.eq=function(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)},d.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},d.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type "+t.type+" in this schema");return n.create(t.attrs)},d.sameSet=function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0},d.setFrom=function(e){if(!e||0==e.length)return d.none;if(e instanceof d)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},d.none=[],c.prototype=Object.create(Error.prototype),c.prototype.constructor=c,c.prototype.name="ReplaceError";var p=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},h={size:{configurable:!0}};function f(e,t,n){if(n.openStart>e.depth)throw new c("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new c("Inconsistent open depths");return function e(t,n,i,r){var s=t.index(r),a=t.node(r);if(s==n.index(r)&&r<t.depth-i.openStart){var l=e(t,n,i,r+1);return a.copy(a.content.replaceChild(s,l))}if(i.content.size){if(i.openStart||i.openEnd||t.depth!=r||n.depth!=r){var u=function(e,t){for(var n=t.depth-e.openStart,i=t.node(n).copy(e.content),r=n-1;r>=0;r--)i=t.node(r).copy(o.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}(i,t),d=u.start,c=u.end;return y(a,function e(t,n,i,r,s){var a=t.depth>s&&m(t,n,s+1),l=r.depth>s&&m(i,r,s+1),u=[];b(null,t,s,u),a&&l&&n.index(s)==i.index(s)?(v(a,l),g(y(a,e(t,n,i,r,s+1)),u)):(a&&g(y(a,k(t,n,s+1)),u),b(n,i,s,u),l&&g(y(l,k(i,r,s+1)),u));return b(r,null,s,u),new o(u)}(t,d,c,n,r))}var p=t.parent,h=p.content;return y(p,h.cut(0,t.parentOffset).append(i.content).append(h.cut(n.parentOffset)))}return y(a,k(t,n,r))}(e,t,n,0)}function v(e,t){if(!t.type.compatibleContent(e.type))throw new c("Cannot join "+t.type.name+" onto "+e.type.name)}function m(e,t,n){var i=e.node(n);return v(i,t.node(n)),i}function g(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function b(e,t,n,i){var r=(t||e).node(n),o=0,s=t?t.index(n):r.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(g(e.nodeAfter,i),o++));for(var a=o;a<s;a++)g(r.child(a),i);t&&t.depth==n&&t.textOffset&&g(t.nodeBefore,i)}function y(e,t){if(!e.type.validContent(t))throw new c("Invalid content for node "+e.type.name);return e.copy(t)}function k(e,t,n){var i=[];(b(null,e,n,i),e.depth>n)&&g(y(m(e,t,n+1),k(e,t,n+1)),i);return b(t,null,n,i),new o(i)}h.size.get=function(){return this.content.size-this.openStart-this.openEnd},p.prototype.insertAt=function(e,t){var n=function e(t,n,i,r){var o=t.findIndex(n),s=o.index,a=o.offset,l=t.maybeChild(s);if(a==n||l.isText)return r&&!r.canReplace(s,s,i)?null:t.cut(0,n).append(i).append(t.cut(n));var u=e(l.content,n-a-1,i);return u&&t.replaceChild(s,l.copy(u))}(this.content,e+this.openStart,t,null);return n&&new p(n,this.openStart,this.openEnd)},p.prototype.removeBetween=function(e,t){return new p(function e(t,n,i){var r=t.findIndex(n),o=r.index,s=r.offset,a=t.maybeChild(o),l=t.findIndex(i),u=l.index,d=l.offset;if(s==n||a.isText){if(d!=i&&!t.child(u).isText)throw new RangeError("Removing non-flat range");return t.cut(0,n).append(t.cut(i))}if(o!=u)throw new RangeError("Removing non-flat range");return t.replaceChild(o,a.copy(e(a.content,n-s-1,i-s-1)))}(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},p.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},p.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},p.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},p.fromJSON=function(e,t){if(!t)return p.empty;var n=t.openStart||0,i=t.openEnd||0;if("number"!=typeof n||"number"!=typeof i)throw new RangeError("Invalid input for Slice.fromJSON");return new p(o.fromJSON(e,t.content),n,i)},p.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,i=0,r=e.firstChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.firstChild)n++;for(var o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)i++;return new p(e,n,i)},Object.defineProperties(p.prototype,h),p.empty=new p(o.empty,0,0);var w=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},S={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};w.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},S.parent.get=function(){return this.node(this.depth)},S.doc.get=function(){return this.node(0)},w.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},w.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},w.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},w.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},w.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},w.prototype.before=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},w.prototype.after=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},S.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},S.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],i=e.child(t);return n?e.child(t).cut(n):i},S.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},w.prototype.posAtIndex=function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],i=0==t?0:this.path[3*t-1]+1,r=0;r<e;r++)i+=n.child(r).nodeSize;return i},w.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return d.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),i=e.maybeChild(t);if(!n){var r=n;n=i,i=r}for(var o=n.marks,s=0;s<o.length;s++)!1!==o[s].type.spec.inclusive||i&&o[s].isInSet(i.marks)||(o=o[s--].removeFromSet(o));return o},w.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,i=e.parent.maybeChild(e.index()),r=0;r<n.length;r++)!1!==n[r].type.spec.inclusive||i&&n[r].isInSet(i.marks)||(n=n[r--].removeFromSet(n));return n},w.prototype.sharedDepth=function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},w.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new $(this,e,n)},w.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},w.prototype.max=function(e){return e.pos>this.pos?e:this},w.prototype.min=function(e){return e.pos<this.pos?e:this},w.prototype.toString=function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset},w.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],i=0,r=t,o=e;;){var s=o.content.findIndex(r),a=s.index,l=s.offset,u=r-l;if(n.push(o,a,i+l),!u)break;if((o=o.child(a)).isText)break;r=u-1,i+=l+1}return new w(t,n,r)},w.resolveCached=function(e,t){for(var n=0;n<C.length;n++){var i=C[n];if(i.pos==t&&i.doc==e)return i}var r=C[x]=w.resolve(e,t);return x=(x+1)%O,r},Object.defineProperties(w.prototype,S);var C=[],x=0,O=12,$=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},I={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};I.start.get=function(){return this.$from.before(this.depth+1)},I.end.get=function(){return this.$to.after(this.depth+1)},I.parent.get=function(){return this.$from.node(this.depth)},I.startIndex.get=function(){return this.$from.index(this.depth)},I.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties($.prototype,I);var T=Object.create(null),D=function(e,t,n,i){this.type=e,this.attrs=t,this.content=n||o.empty,this.marks=i||d.none},V={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};V.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},V.childCount.get=function(){return this.content.childCount},D.prototype.child=function(e){return this.content.child(e)},D.prototype.maybeChild=function(e){return this.content.maybeChild(e)},D.prototype.forEach=function(e){this.content.forEach(e)},D.prototype.nodesBetween=function(e,t,n,i){void 0===i&&(i=0),this.content.nodesBetween(e,t,n,i,this)},D.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},V.textContent.get=function(){return this.textBetween(0,this.content.size,"")},D.prototype.textBetween=function(e,t,n,i){return this.content.textBetween(e,t,n,i)},V.firstChild.get=function(){return this.content.firstChild},V.lastChild.get=function(){return this.content.lastChild},D.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},D.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},D.prototype.hasMarkup=function(e,t,n){return this.type==e&&u(this.attrs,t||e.defaultAttrs||T)&&d.sameSet(this.marks,n||d.none)},D.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},D.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},D.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},D.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return p.empty;var i=this.resolve(e),r=this.resolve(t),o=n?0:i.sharedDepth(t),s=i.start(o),a=i.node(o).content.cut(i.pos-s,r.pos-s);return new p(a,i.depth-o,r.depth-o)},D.prototype.replace=function(e,t,n){return f(this.resolve(e),this.resolve(t),n)},D.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),i=n.index,r=n.offset;if(!(t=t.maybeChild(i)))return null;if(r==e||t.isText)return t;e-=r+1}},D.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,i=t.offset;return{node:this.content.maybeChild(n),index:n,offset:i}},D.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,i=t.offset;if(i<e)return{node:this.content.child(n),index:n,offset:i};var r=this.content.child(n-1);return{node:r,index:n-1,offset:i-r.nodeSize}},D.prototype.resolve=function(e){return w.resolveCached(this,e)},D.prototype.resolveNoCache=function(e){return w.resolve(this,e)},D.prototype.rangeHasMark=function(e,t,n){var i=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(i=!0),!i})),i},V.isBlock.get=function(){return this.type.isBlock},V.isTextblock.get=function(){return this.type.isTextblock},V.inlineContent.get=function(){return this.type.inlineContent},V.isInline.get=function(){return this.type.isInline},V.isText.get=function(){return this.type.isText},V.isLeaf.get=function(){return this.type.isLeaf},V.isAtom.get=function(){return this.type.isAtom},D.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),R(this.marks,e)},D.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},D.prototype.canReplace=function(e,t,n,i,r){void 0===n&&(n=o.empty),void 0===i&&(i=0),void 0===r&&(r=n.childCount);var s=this.contentMatchAt(e).matchFragment(n,i,r),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(var l=i;l<r;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0},D.prototype.canReplaceWith=function(e,t,n,i){if(i&&!this.type.allowsMarks(i))return!1;var r=this.contentMatchAt(e).matchType(n),o=r&&r.matchFragment(this.content,t);return!!o&&o.validEnd},D.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},D.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var e=d.none,t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!d.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map((function(e){return e.type.name})));this.content.forEach((function(e){return e.check()}))},D.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((function(e){return e.toJSON()}))),e},D.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var i=o.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,n)},Object.defineProperties(D.prototype,V);var M=function(e){function t(t,n,i,r){if(e.call(this,t,n,null,r),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={textContent:{configurable:!0},nodeSize:{configurable:!0}};return t.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):R(this.marks,JSON.stringify(this.text))},n.textContent.get=function(){return this.text},t.prototype.textBetween=function(e,t){return this.text.slice(e,t)},n.nodeSize.get=function(){return this.text.length},t.prototype.mark=function(e){return e==this.marks?this:new t(this.type,this.attrs,this.text,e)},t.prototype.withText=function(e){return e==this.text?this:new t(this.type,this.attrs,e,this.marks)},t.prototype.cut=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.text.length),0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))},t.prototype.eq=function(e){return this.sameMarkup(e)&&this.text==e.text},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.text=this.text,t},Object.defineProperties(t.prototype,n),t}(D);function R(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var B=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},N={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};B.parse=function(e,t){var n=new P(e,t);if(null==n.next)return B.empty;var i=E(n);n.next&&n.err("Unexpected trailing text");var r=function(e){var t=Object.create(null);return function n(i){var r=[];i.forEach((function(t){e[t].forEach((function(t){var n=t.term,i=t.to;if(n){var o=r.indexOf(n),s=o>-1&&r[o+1];_(e,i).forEach((function(e){s||r.push(n,s=[]),-1==s.indexOf(e)&&s.push(e)}))}}))}));for(var o=t[i.join(",")]=new B(i.indexOf(e.length-1)>-1),s=0;s<r.length;s+=2){var a=r[s+1].sort(K);o.next.push(r[s],t[a.join(",")]||n(a))}return o}(_(e,0))}(function(e){var t=[[]];return r(function e(t,o){if("choice"==t.type)return t.exprs.reduce((function(t,n){return t.concat(e(n,o))}),[]);if("seq"==t.type)for(var s=0;;s++){var a=e(t.exprs[s],o);if(s==t.exprs.length-1)return a;r(a,o=n())}else{if("star"==t.type){var l=n();return i(o,l),r(e(t.expr,l),l),[i(l)]}if("plus"==t.type){var u=n();return r(e(t.expr,o),u),r(e(t.expr,u),u),[i(u)]}if("opt"==t.type)return[i(o)].concat(e(t.expr,o));if("range"==t.type){for(var d=o,c=0;c<t.min;c++){var p=n();r(e(t.expr,d),p),d=p}if(-1==t.max)r(e(t.expr,d),d);else for(var h=t.min;h<t.max;h++){var f=n();i(d,f),r(e(t.expr,d),f),d=f}return[i(d)]}if("name"==t.type)return[i(o,null,t.value)]}}(e,0),n()),t;function n(){return t.push([])-1}function i(e,n,i){var r={term:i,to:n};return t[e].push(r),r}function r(e,t){e.forEach((function(e){return e.to=t}))}}(i));return function(e,t){for(var n=0,i=[e];n<i.length;n++){for(var r=i[n],o=!r.validEnd,s=[],a=0;a<r.next.length;a+=2){var l=r.next[a],u=r.next[a+1];s.push(l.name),!o||l.isText||l.hasRequiredAttrs()||(o=!1),-1==i.indexOf(u)&&i.push(u)}o&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(r,n),r},B.prototype.matchType=function(e){for(var t=0;t<this.next.length;t+=2)if(this.next[t]==e)return this.next[t+1];return null},B.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var i=this,r=t;i&&r<n;r++)i=i.matchType(e.child(r).type);return i},N.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},N.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}},B.prototype.compatible=function(e){for(var t=0;t<this.next.length;t+=2)for(var n=0;n<e.next.length;n+=2)if(this.next[t]==e.next[n])return!0;return!1},B.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var i=[this];return function r(s,a){var l=s.matchFragment(e,n);if(l&&(!t||l.validEnd))return o.from(a.map((function(e){return e.createAndFill()})));for(var u=0;u<s.next.length;u+=2){var d=s.next[u],c=s.next[u+1];if(!d.isText&&!d.hasRequiredAttrs()&&-1==i.indexOf(c)){i.push(c);var p=r(c,a.concat(d));if(p)return p}}}(this,[])},B.prototype.findWrapping=function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n},B.prototype.computeWrapping=function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var i=n.shift(),r=i.match;if(r.matchType(e)){for(var o=[],s=i;s.type;s=s.via)o.push(s.type);return o.reverse()}for(var a=0;a<r.next.length;a+=2){var l=r.next[a];l.isLeaf||l.hasRequiredAttrs()||l.name in t||i.type&&!r.next[a+1].validEnd||(n.push({match:l.contentMatch,type:l,via:i}),t[l.name]=!0)}}},N.edgeCount.get=function(){return this.next.length>>1},B.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},B.prototype.toString=function(){var e=[];return function t(n){e.push(n);for(var i=1;i<n.next.length;i+=2)-1==e.indexOf(n.next[i])&&t(n.next[i])}(this),e.map((function(t,n){for(var i=n+(t.validEnd?"*":" ")+" ",r=0;r<t.next.length;r+=2)i+=(r?", ":"")+t.next[r].name+"->"+e.indexOf(t.next[r+1]);return i})).join("\n")},Object.defineProperties(B.prototype,N),B.empty=new B(!0);var P=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()},j={next:{configurable:!0}};function E(e){var t=[];do{t.push(A(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function A(e){var t=[];do{t.push(L(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function L(e){for(var t=function(e){if(e.eat("(")){var t=E(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,i=n[t];if(i)return[i];var r=[];for(var o in n){var s=n[o];s.groups.indexOf(t)>-1&&r.push(s)}0==r.length&&e.err("No node type or group '"+t+"' found");return r}(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=z(e,t)}return t}function F(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function z(e,t){var n=F(e),i=n;return e.eat(",")&&(i="}"!=e.next?F(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function K(e,t){return t-e}function _(e,t){var n=[];return function t(i){var r=e[i];if(1==r.length&&!r[0].term)return t(r[0].to);n.push(i);for(var o=0;o<r.length;o++){var s=r[o],a=s.term,l=s.to;a||-1!=n.indexOf(l)||t(l)}}(t),n.sort(K)}function H(e){var t=Object.create(null);for(var n in e){var i=e[n];if(!i.hasDefault)return null;t[n]=i.default}return t}function W(e,t){var n=Object.create(null);for(var i in e){var r=t&&t[i];if(void 0===r){var o=e[i];if(!o.hasDefault)throw new RangeError("No value supplied for attribute "+i);r=o.default}n[i]=r}return n}function U(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new J(e[n]);return t}j.next.get=function(){return this.tokens[this.pos]},P.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},P.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(P.prototype,j);var q=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=U(n.attrs),this.defaultAttrs=H(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},G={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0},whitespace:{configurable:!0}};G.isInline.get=function(){return!this.isBlock},G.isTextblock.get=function(){return this.isBlock&&this.inlineContent},G.isLeaf.get=function(){return this.contentMatch==B.empty},G.isAtom.get=function(){return this.isLeaf||this.spec.atom},G.whitespace.get=function(){return this.spec.whitespace||(this.spec.code?"pre":"normal")},q.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},q.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},q.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:W(this.attrs,e)},q.prototype.create=function(e,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new D(this,this.computeAttrs(e),o.from(t),d.setFrom(n))},q.prototype.createChecked=function(e,t,n){if(t=o.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new D(this,this.computeAttrs(e),t,d.setFrom(n))},q.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),(t=o.from(t)).size){var i=this.contentMatch.fillBefore(t);if(!i)return null;t=i.append(t)}var r=this.contentMatch.matchFragment(t).fillBefore(o.empty,!0);return r?new D(this,e,t.append(r),d.setFrom(n)):null},q.prototype.validContent=function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0},q.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},q.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0},q.prototype.allowedMarks=function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:d.empty:e},q.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,i){return n[e]=new q(e,t,i)}));var i=t.spec.topNode||"doc";if(!n[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var r in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(q.prototype,G);var J=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},X={isRequired:{configurable:!0}};X.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(J.prototype,X);var Y=function(e,t,n,i){this.name=e,this.schema=n,this.spec=i,this.attrs=U(i.attrs),this.rank=t,this.excluded=null;var r=H(this.attrs);this.instance=r&&new d(this,r)};Y.prototype.create=function(e){return!e&&this.instance?this.instance:new d(this,W(this.attrs,e))},Y.compile=function(e,t){var n=Object.create(null),i=0;return e.forEach((function(e,r){return n[e]=new Y(e,i++,t,r)})),n},Y.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e},Y.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},Y.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var Z=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=r.from(e.nodes),this.spec.marks=r.from(e.marks),this.nodes=q.compile(this.spec.nodes,this),this.marks=Y.compile(this.spec.marks,this);var n=Object.create(null);for(var i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");var o=this.nodes[i],s=o.spec.content||"",a=o.spec.marks;o.contentMatch=n[s]||(n[s]=B.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==a?null:a?Q(this,a.split(" ")):""!=a&&o.inlineContent?null:[]}for(var l in this.marks){var u=this.marks[l],d=u.spec.excludes;u.excluded=null==d?[u]:""==d?[]:Q(this,d.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function Q(e,t){for(var n=[],i=0;i<t.length;i++){var r=t[i],o=e.marks[r],s=o;if(o)n.push(o);else for(var a in e.marks){var l=e.marks[a];("_"==r||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}Z.prototype.node=function(e,t,n,i){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof q))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,i)},Z.prototype.text=function(e,t){var n=this.nodes.text;return new M(n,n.defaultAttrs,e,d.setFrom(t))},Z.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},Z.prototype.nodeFromJSON=function(e){return D.fromJSON(this,e)},Z.prototype.markFromJSON=function(e){return d.fromJSON(this,e)},Z.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var ee=function(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)})),this.normalizeLists=!this.tags.some((function(t){if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;var n=e.nodes[t.node];return n.contentMatch.matchType(n)}))};ee.prototype.parse=function(e,t){void 0===t&&(t={});var n=new se(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},ee.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new se(this,t,!0);return n.addAll(e,null,t.from,t.to),p.maxOpen(n.finish())},ee.prototype.matchTag=function(e,t,n){for(var i=n?this.tags.indexOf(n)+1:0;i<this.tags.length;i++){var r=this.tags[i];if(le(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){var o=r.getAttrs(e);if(!1===o)continue;r.attrs=o}return r}}},ee.prototype.matchStyle=function(e,t,n,i){for(var r=i?this.styles.indexOf(i)+1:0;r<this.styles.length;r++){var o=this.styles[r];if(!(0!=o.style.indexOf(e)||o.context&&!n.matchesContext(o.context)||o.style.length>e.length&&(61!=o.style.charCodeAt(e.length)||o.style.slice(e.length+1)!=t))){if(o.getAttrs){var s=o.getAttrs(t);if(!1===s)continue;o.attrs=s}return o}}},ee.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,i=0;i<t.length;i++){var r=t[i];if((null==r.priority?50:r.priority)<n)break}t.splice(i,0,e)}var i=function(t){var i=e.marks[t].spec.parseDOM;i&&i.forEach((function(e){n(e=ue(e)),e.mark=t}))};for(var r in e.marks)i(r);var o;for(var s in e.nodes)o=void 0,(o=e.nodes[s].spec.parseDOM)&&o.forEach((function(e){n(e=ue(e)),e.node=s}));return t},ee.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new ee(e,ee.schemaRules(e)))};var te={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ne={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ie={ol:!0,ul:!0};function re(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}var oe=function(e,t,n,i,r,o,s){this.type=e,this.attrs=t,this.solid=r,this.match=o||(4&s?null:e.contentMatch),this.options=s,this.content=[],this.marks=n,this.activeMarks=d.none,this.pendingMarks=i,this.stashMarks=[]};oe.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(o.from(e));if(!t){var n,i=this.type.contentMatch;return(n=i.findWrapping(e.type))?(this.match=i,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},oe.prototype.finish=function(e){if(!(1&this.options)){var t,n=this.content[this.content.length-1];n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length)))}var i=o.from(this.content);return!e&&this.match&&(i=i.append(this.match.fillBefore(o.empty,!0))),this.type?this.type.create(this.attrs,i,this.marks):i},oe.prototype.popFromStashMark=function(e){for(var t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]},oe.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var i=n[t];(this.type?this.type.allowsMarkType(i.type):de(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}},oe.prototype.inlineContext=function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!te.hasOwnProperty(e.parentNode.nodeName.toLowerCase())};var se=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var i,r=t.topNode,o=re(null,t.preserveWhitespace,0)|(n?4:0);i=r?new oe(r.type,r.attrs,d.none,d.none,!0,t.topMatch||r.type.contentMatch,o):new oe(n?null:e.schema.topNodeType,null,d.none,d.none,!0,null,o),this.nodes=[i],this.open=0,this.find=t.findPositions,this.needsBlock=!1},ae={top:{configurable:!0},currentPos:{configurable:!0}};function le(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ue(e){var t={};for(var n in e)t[n]=e[n];return t}function de(e,t){var n=t.schema.nodes,i=function(i){var r=n[i];if(r.allowsMarkType(e)){var o=[],s=function(e){o.push(e);for(var n=0;n<e.edgeCount;n++){var i=e.edge(n),r=i.type,a=i.next;if(r==t)return!0;if(o.indexOf(a)<0&&s(a))return!0}};return s(r.contentMatch)?{v:!0}:void 0}};for(var r in n){var o=i(r);if(o)return o.v}}ae.top.get=function(){return this.nodes[this.open]},se.prototype.addDOM=function(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){var t=e.getAttribute("style"),n=t?this.readStyles(function(e){var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,i=[];for(;t=n.exec(e);)i.push(t[1],t[2].trim());return i}(t)):null,i=this.top;if(null!=n)for(var r=0;r<n.length;r++)this.addPendingMark(n[r]);if(this.addElement(e),null!=n)for(var o=0;o<n.length;o++)this.removePendingMark(n[o],i)}},se.prototype.addTextNode=function(e){var t=e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){var i=n.content[n.content.length-1],r=e.previousSibling;(!i||r&&"BR"==r.nodeName||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},se.prototype.addElement=function(e,t){var n,i=e.nodeName.toLowerCase();ie.hasOwnProperty(i)&&this.parser.normalizeLists&&function(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var i=1==t.nodeType?t.nodeName.toLowerCase():null;i&&ie.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):"li"==i?n=t:i&&(n=null)}}(e);var r=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(r?r.ignore:ne.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e);else if(!r||r.skip||r.closeParent){r&&r.closeParent?this.open=Math.max(0,this.open-1):r&&r.skip.nodeType&&(e=r.skip);var o,s=this.top,a=this.needsBlock;if(te.hasOwnProperty(i))o=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),o&&this.sync(s),this.needsBlock=a}else this.addElementByRule(e,r,!1===r.consuming?n:null)},se.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},se.prototype.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},se.prototype.readStyles=function(e){var t=d.none;e:for(var n=0;n<e.length;n+=2)for(var i=null;;){var r=this.parser.matchStyle(e[n],e[n+1],this,i);if(!r)continue e;if(r.ignore)return null;if(t=this.parser.schema.marks[r.mark].create(r.attrs).addToSet(t),!1!==r.consuming)break;i=r}return t},se.prototype.addElementByRule=function(e,t,n){var i,r,o,s=this;t.node?(r=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(r.create(t.attrs))||this.leafFallback(e):i=this.enter(r,t.attrs,t.preserveWhitespace):(o=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(o));var a=this.top;if(r&&r.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return s.insertNode(e)}));else{var l=t.contentElement;"string"==typeof l?l=e.querySelector(l):"function"==typeof l&&(l=l(e)),l||(l=e),this.findAround(e,l,!0),this.addAll(l,i)}i&&(this.sync(a),this.open--),o&&this.removePendingMark(o,a)},se.prototype.addAll=function(e,t,n,i){for(var r=n||0,o=n?e.childNodes[n]:e.firstChild,s=null==i?null:e.childNodes[i];o!=s;o=o.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(o),t&&te.hasOwnProperty(o.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,r)},se.prototype.findPlace=function(e){for(var t,n,i=this.open;i>=0;i--){var r=this.nodes[i],o=r.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=r,!o.length))break;if(r.solid)break}if(!t)return!1;this.sync(n);for(var s=0;s<t.length;s++)this.enterInner(t[s],null,!1);return!0},se.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var i=n.activeMarks,r=0;r<e.marks.length;r++)n.type&&!n.type.allowsMarkType(e.marks[r].type)||(i=e.marks[r].addToSet(i));return n.content.push(e.mark(i)),!0}return!1},se.prototype.enter=function(e,t,n){var i=this.findPlace(e.create(t));return i&&this.enterInner(e,t,!0,n),i},se.prototype.enterInner=function(e,t,n,i){this.closeExtra();var r=this.top;r.applyPending(e),r.match=r.match&&r.match.matchType(e,t);var o=re(e,i,r.options);4&r.options&&0==r.content.length&&(o|=4),this.nodes.push(new oe(e,t,r.activeMarks,r.pendingMarks,n,null,o)),this.open++},se.prototype.closeExtra=function(e){var t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},se.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},se.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},ae.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,i=n.length-1;i>=0;i--)e+=n[i].nodeSize;t&&e++}return e},se.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)},se.prototype.findInside=function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)},se.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var i=0;i<this.find.length;i++){if(null==this.find[i].pos&&1==e.nodeType&&e.contains(this.find[i].node))t.compareDocumentPosition(this.find[i].node)&(n?2:4)&&(this.find[i].pos=this.currentPos)}},se.prototype.findInText=function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))},se.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),i=this.options.context,r=!(this.isOpen||i&&i.parent.type!=this.nodes[0].type),o=-(i?i.depth+1:0)+(r?0:1),s=function(e,a){for(;e>=0;e--){var l=n[e];if(""==l){if(e==n.length-1||0==e)continue;for(;a>=o;a--)if(s(e-1,a))return!0;return!1}var u=a>0||0==a&&r?t.nodes[a].type:i&&a>=o?i.node(a-o).type:null;if(!u||u.name!=l&&-1==u.groups.indexOf(l))return!1;a--}return!0};return s(n.length-1,this.open)},se.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var i in this.parser.schema.nodes){var r=this.parser.schema.nodes[i];if(r.isTextblock&&r.defaultAttrs)return r}},se.prototype.addPendingMark=function(e){var t=function(e,t){for(var n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},se.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var i=this.nodes[n];if(i.pendingMarks.lastIndexOf(e)>-1)i.pendingMarks=e.removeFromSet(i.pendingMarks);else{i.activeMarks=e.removeFromSet(i.activeMarks);var r=i.popFromStashMark(e);r&&i.type&&i.type.allowsMarkType(r.type)&&(i.activeMarks=r.addToSet(i.activeMarks))}if(i==t)break}},Object.defineProperties(se.prototype,ae);var ce=function(e,t){this.nodes=e||{},this.marks=t||{}};function pe(e){var t={};for(var n in e){var i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function he(e){return e.document||window.document}ce.prototype.serializeFragment=function(e,t,n){var i=this;void 0===t&&(t={}),n||(n=he(t).createDocumentFragment());var r=n,o=null;return e.forEach((function(e){if(o||e.marks.length){o||(o=[]);for(var n=0,s=0;n<o.length&&s<e.marks.length;){var a=e.marks[s];if(i.marks[a.type.name]){if(!a.eq(o[n])||!1===a.type.spec.spanning)break;n+=2,s++}else s++}for(;n<o.length;)r=o.pop(),o.pop();for(;s<e.marks.length;){var l=e.marks[s++],u=i.serializeMark(l,e.isInline,t);u&&(o.push(l,r),r.appendChild(u.dom),r=u.contentDOM||u.dom)}}r.appendChild(i.serializeNodeInner(e,t))})),n},ce.prototype.serializeNodeInner=function(e,t){void 0===t&&(t={});var n=ce.renderSpec(he(t),this.nodes[e.type.name](e)),i=n.dom,r=n.contentDOM;if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,r,t):this.serializeFragment(e.content,t,r)}return i},ce.prototype.serializeNode=function(e,t){void 0===t&&(t={});for(var n=this.serializeNodeInner(e,t),i=e.marks.length-1;i>=0;i--){var r=this.serializeMark(e.marks[i],e.isInline,t);r&&((r.contentDOM||r.dom).appendChild(n),n=r.dom)}return n},ce.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var i=this.marks[e.type.name];return i&&ce.renderSpec(he(n),i(e,t))},ce.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var i=t[0],r=i.indexOf(" ");r>0&&(n=i.slice(0,r),i=i.slice(r+1));var o=null,s=n?e.createElementNS(n,i):e.createElement(i),a=t[1],l=1;if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a))for(var u in l=2,a)if(null!=a[u]){var d=u.indexOf(" ");d>0?s.setAttributeNS(u.slice(0,d),u.slice(d+1),a[u]):s.setAttribute(u,a[u])}for(var c=l;c<t.length;c++){var p=t[c];if(0===p){if(c<t.length-1||c>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}var h=ce.renderSpec(e,p,n),f=h.dom,v=h.contentDOM;if(s.appendChild(f),v){if(o)throw new RangeError("Multiple content holes");o=v}}return{dom:s,contentDOM:o}},ce.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new ce(this.nodesFromSchema(e),this.marksFromSchema(e)))},ce.nodesFromSchema=function(e){var t=pe(e.nodes);return t.text||(t.text=function(e){return e.text}),t},ce.marksFromSchema=function(e){return pe(e.marks)};var fe=Math.pow(2,16);function ve(e){return 65535&e}var me=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},ge=function e(t,n){if(void 0===n&&(n=!1),!t.length&&e.empty)return e.empty;this.ranges=t,this.inverted=n};ge.prototype.recover=function(e){var t=0,n=ve(e);if(!this.inverted)for(var i=0;i<n;i++)t+=this.ranges[3*i+2]-this.ranges[3*i+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/fe}(e)},ge.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},ge.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},ge.prototype._map=function(e,t,n){for(var i=0,r=this.inverted?2:1,o=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var a=this.ranges[s]-(this.inverted?i:0);if(a>e)break;var l=this.ranges[s+r],u=this.ranges[s+o],d=a+l;if(e<=d){var c=a+i+((l?e==a?-1:e==d?1:t:t)<0?0:u);if(n)return c;var p=e==(t<0?a:d)?null:s/3+(e-a)*fe;return new me(c,t<0?e!=a:e!=d,p)}i+=u-l}return n?e+i:new me(e+i)},ge.prototype.touches=function(e,t){for(var n=0,i=ve(t),r=this.inverted?2:1,o=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var a=this.ranges[s]-(this.inverted?n:0);if(a>e)break;var l=this.ranges[s+r];if(e<=a+l&&s==3*i)return!0;n+=this.ranges[s+o]-l}return!1},ge.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,i=0,r=0;i<this.ranges.length;i+=3){var o=this.ranges[i],s=o-(this.inverted?r:0),a=o+(this.inverted?0:r),l=this.ranges[i+t],u=this.ranges[i+n];e(s,s+l,a,a+u),r+=u-l}},ge.prototype.invert=function(){return new ge(this.ranges,!this.inverted)},ge.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},ge.offset=function(e){return 0==e?ge.empty:new ge(e<0?[0,-e,0]:[0,0,e])},ge.empty=new ge([]);var be=function(e,t,n,i){this.maps=e||[],this.from=n||0,this.to=null==i?this.maps.length:i,this.mirror=t};function ye(e){var t=Error.call(this,e);return t.__proto__=ye.prototype,t}be.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new be(this.maps,this.mirror,e,t)},be.prototype.copy=function(){return new be(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},be.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},be.prototype.appendMapping=function(e){for(var t=0,n=this.maps.length;t<e.maps.length;t++){var i=e.getMirror(t);this.appendMap(e.maps[t],null!=i&&i<t?n+i:null)}},be.prototype.getMirror=function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]},be.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},be.prototype.appendMappingInverted=function(e){for(var t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){var i=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=i&&i>t?n-i-1:null)}},be.prototype.invert=function(){var e=new be;return e.appendMappingInverted(this),e},be.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e},be.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},be.prototype._map=function(e,t,n){for(var i=!1,r=this.from;r<this.to;r++){var o=this.maps[r].mapResult(e,t);if(null!=o.recover){var s=this.getMirror(r);if(null!=s&&s>r&&s<this.to){r=s,e=this.maps[s].recover(o.recover);continue}}o.deleted&&(i=!0),e=o.pos}return n?e:new me(e,i)},ye.prototype=Object.create(Error.prototype),ye.prototype.constructor=ye,ye.prototype.name="TransformError";var ke=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new be},we={before:{configurable:!0},docChanged:{configurable:!0}};function Se(){throw new Error("Override me")}we.before.get=function(){return this.docs.length?this.docs[0]:this.doc},ke.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new ye(t.failed);return this},ke.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},we.docChanged.get=function(){return this.steps.length>0},ke.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(ke.prototype,we);var Ce=Object.create(null),xe=function(){};xe.prototype.apply=function(e){return Se()},xe.prototype.getMap=function(){return ge.empty},xe.prototype.invert=function(e){return Se()},xe.prototype.map=function(e){return Se()},xe.prototype.merge=function(e){return null},xe.prototype.toJSON=function(){return Se()},xe.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=Ce[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},xe.jsonID=function(e,t){if(e in Ce)throw new RangeError("Duplicate use of step JSON ID "+e);return Ce[e]=t,t.prototype.jsonID=e,t};var Oe=function(e,t){this.doc=e,this.failed=t};Oe.ok=function(e){return new Oe(e,null)},Oe.fail=function(e){return new Oe(null,e)},Oe.fromReplace=function(e,t,n,i){try{return Oe.ok(e.replace(t,n,i))}catch(e){if(e instanceof c)return Oe.fail(e.message);throw e}};var $e=function(e){function t(t,n,i,r){e.call(this),this.from=t,this.to=n,this.slice=i,this.structure=!!r}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&Te(e,this.from,this.to)?Oe.fail("Structure replace would overwrite content"):Oe.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new ge([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted?null:new t(n.pos,Math.max(n.pos,i.pos),this.slice)},t.prototype.merge=function(e){if(!(e instanceof t)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var n=this.slice.size+e.slice.size==0?p.empty:new p(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var i=this.slice.size+e.slice.size==0?p.empty:new p(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),i,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,p.fromJSON(e,n.slice),!!n.structure)},t}(xe);xe.jsonID("replace",$e);var Ie=function(e){function t(t,n,i,r,o,s,a){e.call(this),this.from=t,this.to=n,this.gapFrom=i,this.gapTo=r,this.slice=o,this.insert=s,this.structure=!!a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){if(this.structure&&(Te(e,this.from,this.gapFrom)||Te(e,this.gapTo,this.to)))return Oe.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Oe.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?Oe.fromReplace(e,this.from,this.to,n):Oe.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new ge([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(e){var n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1),r=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return n.deleted&&i.deleted||r<n.pos||o>i.pos?null:new t(n.pos,i.pos,r,o,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,p.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(xe);function Te(e,t,n){for(var i=e.resolve(t),r=n-t,o=i.depth;r>0&&o>0&&i.indexAfter(o)==i.node(o).childCount;)o--,r--;if(r>0)for(var s=i.node(o).maybeChild(i.indexAfter(o));r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}return!1}function De(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Ve(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var i=e.$from.node(n),r=e.$from.index(n),o=e.$to.indexAfter(n);if(n<e.depth&&i.canReplace(r,o,t))return n;if(0==n||i.type.spec.isolating||!De(i,r,o))break}}function Me(e,t,n,i){void 0===i&&(i=e);var r=function(e,t){var n=e.parent,i=e.startIndex,r=e.endIndex,o=n.contentMatchAt(i).findWrapping(t);if(!o)return null;var s=o.length?o[0]:t;return n.canReplaceWith(i,r,s)?o:null}(e,t),o=r&&function(e,t){var n=e.parent,i=e.startIndex,r=e.endIndex,o=n.child(i),s=t.contentMatch.findWrapping(o.type);if(!s)return null;for(var a=(s.length?s[s.length-1]:t).contentMatch,l=i;a&&l<r;l++)a=a.matchType(n.child(l).type);if(!a||!a.validEnd)return null;return s}(i,t);return o?r.map(Re).concat({type:t,attrs:n}).concat(o.map(Re)):null}function Re(e){return{type:e,attrs:null}}function Be(e,t,n,i){void 0===n&&(n=1);var r=e.resolve(t),o=r.depth-n,s=i&&i[i.length-1]||r.parent;if(o<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(var a=r.depth-1,l=n-2;a>o;a--,l--){var u=r.node(a),d=r.index(a);if(u.type.spec.isolating)return!1;var c=u.content.cutByIndex(d,u.childCount),p=i&&i[l]||u;if(p!=u&&(c=c.replaceChild(0,p.type.create(p.attrs))),!u.canReplace(d+1,u.childCount)||!p.type.validContent(c))return!1}var h=r.indexAfter(o),f=i&&i[0];return r.node(o).canReplaceWith(h,h,f?f.type:r.node(o+1).type)}function Ne(e,t){var n=e.resolve(t),i=n.index();return Pe(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function Pe(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function je(e,t,n){void 0===n&&(n=-1);for(var i=e.resolve(t),r=i.depth;;r--){var o=void 0,s=void 0,a=i.index(r);if(r==i.depth?(o=i.nodeBefore,s=i.nodeAfter):n>0?(o=i.node(r+1),a++,s=i.node(r).maybeChild(a)):(o=i.node(r).maybeChild(a-1),s=i.node(r+1)),o&&!o.isTextblock&&Pe(o,s)&&i.node(r).canReplace(a,a+1))return t;if(0==r)break;t=n<0?i.before(r):i.after(r)}}function Ee(e,t,n){var i=e.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),n))return t;if(0==i.parentOffset)for(var r=i.depth-1;r>=0;r--){var o=i.index(r);if(i.node(r).canReplaceWith(o,o,n))return i.before(r+1);if(o>0)return null}if(i.parentOffset==i.parent.content.size)for(var s=i.depth-1;s>=0;s--){var a=i.indexAfter(s);if(i.node(s).canReplaceWith(a,a,n))return i.after(s+1);if(a<i.node(s).childCount)return null}}function Ae(e,t,n){var i=e.resolve(t);if(!n.content.size)return t;for(var r=n.content,o=0;o<n.openStart;o++)r=r.firstChild.content;for(var s=1;s<=(0==n.openStart&&n.size?2:1);s++)for(var a=i.depth;a>=0;a--){var l=a==i.depth?0:i.pos<=(i.start(a+1)+i.end(a+1))/2?-1:1,u=i.index(a)+(l>0?1:0),d=i.node(a),c=!1;if(1==s)c=d.canReplace(u,u,r);else{var p=d.contentMatchAt(u).findWrapping(r.firstChild.type);c=p&&d.canReplaceWith(u,u,p[0])}if(c)return 0==l?i.pos:l<0?i.before(a+1):i.after(a+1)}return null}function Le(e,t,n){for(var i=[],r=0;r<e.childCount;r++){var s=e.child(r);s.content.size&&(s=s.copy(Le(s.content,t,s))),s.isInline&&(s=t(s,n,r)),i.push(s)}return o.fromArray(i)}xe.jsonID("replaceAround",Ie),ke.prototype.lift=function(e,t){for(var n=e.$from,i=e.$to,r=e.depth,s=n.before(r+1),a=i.after(r+1),l=s,u=a,d=o.empty,c=0,h=r,f=!1;h>t;h--)f||n.index(h)>0?(f=!0,d=o.from(n.node(h).copy(d)),c++):l--;for(var v=o.empty,m=0,g=r,b=!1;g>t;g--)b||i.after(g+1)<i.end(g)?(b=!0,v=o.from(i.node(g).copy(v)),m++):u++;return this.step(new Ie(l,u,s,a,new p(d.append(v),c,m),d.size-c,!0))},ke.prototype.wrap=function(e,t){for(var n=o.empty,i=t.length-1;i>=0;i--){if(n.size){var r=t[i].type.contentMatch.matchFragment(n);if(!r||!r.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=o.from(t[i].type.create(t[i].attrs,n))}var s=e.start,a=e.end;return this.step(new Ie(s,a,s,a,new p(n,0,0),t.length,!0))},ke.prototype.setBlockType=function(e,t,n,i){var r=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var s=this.steps.length;return this.doc.nodesBetween(e,t,(function(e,t){if(e.isTextblock&&!e.hasMarkup(n,i)&&function(e,t,n){var i=e.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,n)}(r.doc,r.mapping.slice(s).map(t),n)){r.clearIncompatible(r.mapping.slice(s).map(t,1),n);var a=r.mapping.slice(s),l=a.map(t,1),u=a.map(t+e.nodeSize,1);return r.step(new Ie(l,u,l+1,u-1,new p(o.from(n.create(i,null,e.marks)),0,0),1,!0)),!1}})),this},ke.prototype.setNodeMarkup=function(e,t,n,i){var r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at given position");t||(t=r.type);var s=t.create(n,null,i||r.marks);if(r.isLeaf)return this.replaceWith(e,e+r.nodeSize,s);if(!t.validContent(r.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new Ie(e,e+r.nodeSize,e+1,e+r.nodeSize-1,new p(o.from(s),0,0),1,!0))},ke.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var i=this.doc.resolve(e),r=o.empty,s=o.empty,a=i.depth,l=i.depth-t,u=t-1;a>l;a--,u--){r=o.from(i.node(a).copy(r));var d=n&&n[u];s=o.from(d?d.type.create(d.attrs,s):i.node(a).copy(s))}return this.step(new $e(e,e,new p(r.append(s),t,t),!0))},ke.prototype.join=function(e,t){void 0===t&&(t=1);var n=new $e(e-t,e+t,p.empty,!0);return this.step(n)};var Fe=function(e){function t(t,n,i){e.call(this),this.from=t,this.to=n,this.mark=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),i=e.resolve(this.from),r=i.node(i.sharedDepth(this.to)),o=new p(Le(n.content,(function(e,n){return e.isAtom&&n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),r),n.openStart,n.openEnd);return Oe.fromReplace(e,this.from,this.to,o)},t.prototype.invert=function(){return new ze(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new t(n.pos,i.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(xe);xe.jsonID("addMark",Fe);var ze=function(e){function t(t,n,i){e.call(this),this.from=t,this.to=n,this.mark=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),i=new p(Le(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return Oe.fromReplace(e,this.from,this.to,i)},t.prototype.invert=function(){return new Fe(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new t(n.pos,i.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(xe);function Ke(e,t,n,i){if(void 0===n&&(n=t),void 0===i&&(i=p.empty),t==n&&!i.size)return null;var r=e.resolve(t),o=e.resolve(n);return _e(r,o,i)?new $e(t,n,i):new He(r,o,i).fit()}function _e(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}xe.jsonID("removeMark",ze),ke.prototype.addMark=function(e,t,n){var i=this,r=[],o=[],s=null,a=null;return this.doc.nodesBetween(e,t,(function(i,l,u){if(i.isInline){var d=i.marks;if(!n.isInSet(d)&&u.type.allowsMarkType(n.type)){for(var c=Math.max(l,e),p=Math.min(l+i.nodeSize,t),h=n.addToSet(d),f=0;f<d.length;f++)d[f].isInSet(h)||(s&&s.to==c&&s.mark.eq(d[f])?s.to=p:r.push(s=new ze(c,p,d[f])));a&&a.to==c?a.to=p:o.push(a=new Fe(c,p,n))}}})),r.forEach((function(e){return i.step(e)})),o.forEach((function(e){return i.step(e)})),this},ke.prototype.removeMark=function(e,t,n){var i=this;void 0===n&&(n=null);var r=[],o=0;return this.doc.nodesBetween(e,t,(function(i,s){if(i.isInline){o++;var a=null;if(n instanceof Y)for(var l,u=i.marks;l=n.isInSet(u);)(a||(a=[])).push(l),u=l.removeFromSet(u);else n?n.isInSet(i.marks)&&(a=[n]):a=i.marks;if(a&&a.length)for(var d=Math.min(s+i.nodeSize,t),c=0;c<a.length;c++){for(var p=a[c],h=void 0,f=0;f<r.length;f++){var v=r[f];v.step==o-1&&p.eq(r[f].style)&&(h=v)}h?(h.to=d,h.step=o):r.push({style:p,from:Math.max(s,e),to:d,step:o})}}})),r.forEach((function(e){return i.step(new ze(e.from,e.to,e.style))})),this},ke.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var i=this.doc.nodeAt(e),r=[],s=e+1,a=0;a<i.childCount;a++){var l=i.child(a),u=s+l.nodeSize,d=n.matchType(l.type,l.attrs);if(d){n=d;for(var c=0;c<l.marks.length;c++)t.allowsMarkType(l.marks[c].type)||this.step(new ze(s,u,l.marks[c]))}else r.push(new $e(s,u,p.empty));s=u}if(!n.validEnd){var h=n.fillBefore(o.empty,!0);this.replace(s,s,new p(h,0,0))}for(var f=r.length-1;f>=0;f--)this.step(r[f]);return this},ke.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=p.empty);var i=Ke(this.doc,e,t,n);return i&&this.step(i),this},ke.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new p(o.from(n),0,0))},ke.prototype.delete=function(e,t){return this.replace(e,t,p.empty)},ke.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var He=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var i=0;i<=e.depth;i++){var r=e.node(i);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(i))})}this.placed=o.empty;for(var s=e.depth;s>0;s--)this.placed=o.from(e.node(s).copy(this.placed))},We={depth:{configurable:!0}};function Ue(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(Ue(e.firstChild.content,t-1,n)))}function qe(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(qe(e.lastChild.content,t-1,n)))}function Ge(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function Je(e,t,n){if(t<=0)return e;var i=e.content;return t>1&&(i=i.replaceChild(0,Je(i.firstChild,t-1,1==i.childCount?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(o.empty,!0)))),e.copy(i)}function Xe(e,t,n,i,r){var o=e.node(t),s=r?e.indexAfter(t):e.index(t);if(s==o.childCount&&!n.compatibleContent(o.type))return null;var a=i.fillBefore(o.content,!0,s);return a&&!function(e,t,n){for(var i=n;i<t.childCount;i++)if(!e.allowsMarks(t.child(i).marks))return!0;return!1}(n,o.content,s)?a:null}function Ye(e,t,n,i,r){if(t<n){var s=e.firstChild;e=e.replaceChild(0,s.copy(Ye(s.content,t+1,n,i,s)))}if(t>i){var a=r.contentMatchAt(0),l=a.fillBefore(e).append(e);e=l.append(a.matchFragment(l).fillBefore(o.empty,!0))}return e}function Ze(e,t){for(var n=[],i=Math.min(e.depth,t.depth);i>=0;i--){var r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}We.depth.get=function(){return this.frontier.length-1},He.prototype.fit=function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,r=this.close(t<0?this.$to:i.doc.resolve(t));if(!r)return null;for(var o=this.placed,s=i.depth,a=r.depth;s&&a&&1==o.childCount;)o=o.firstChild.content,s--,a--;var l=new p(o,s,a);return t>-1?new Ie(i.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||i.pos!=this.$to.pos?new $e(i.pos,r.pos,l):void 0},He.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,i=(t?(n=Ge(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,r=this.depth;r>=0;r--){var s=this.frontier[r],a=s.type,l=s.match,u=void 0,d=void 0;if(1==e&&(i?l.matchType(i.type)||(d=l.fillBefore(o.from(i),!1)):a.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:r,parent:n,inject:d};if(2==e&&i&&(u=l.findWrapping(i.type)))return{sliceDepth:t,frontierDepth:r,parent:n,wrap:u};if(n&&l.matchType(n.type))break}},He.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,r=Ge(t,n);return!(!r.childCount||r.firstChild.isLeaf)&&(this.unplaced=new p(t,n+1,Math.max(i,r.size+n>=t.size-i?n+1:0)),!0)},He.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,r=Ge(t,n);if(r.childCount<=1&&n>0){var o=t.size-n<=n+r.size;this.unplaced=new p(Ue(t,n-1,1),n-1,o?n-1:i)}else this.unplaced=new p(Ue(t,n,1),n,i)},He.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,i=e.parent,r=e.inject,s=e.wrap;this.depth>n;)this.closeFrontierNode();if(s)for(var a=0;a<s.length;a++)this.openFrontierNode(s[a]);var l=this.unplaced,u=i?i.content:l.content,d=l.openStart-t,c=0,h=[],f=this.frontier[n],v=f.match,m=f.type;if(r){for(var g=0;g<r.childCount;g++)h.push(r.child(g));v=v.matchFragment(r)}for(var b=u.size+t-(l.content.size-l.openEnd);c<u.childCount;){var y=u.child(c),k=v.matchType(y.type);if(!k)break;(++c>1||0==d||y.content.size)&&(v=k,h.push(Je(y.mark(m.allowedMarks(y.marks)),1==c?d:0,c==u.childCount?b:-1)))}var w=c==u.childCount;w||(b=-1),this.placed=qe(this.placed,n,o.from(h)),this.frontier[n].match=v,w&&b<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var S=0,C=u;S<b;S++){var x=C.lastChild;this.frontier.push({type:x.type,match:x.contentMatchAt(x.childCount)}),C=x.content}this.unplaced=w?0==t?p.empty:new p(Ue(l.content,t-1,1),t-1,b<0?l.openEnd:t-1):new p(Ue(l.content,t,c),l.openStart,l.openEnd)},He.prototype.mustMoveInline=function(){if(!this.$to.parent.isTextblock||this.$to.end()==this.$to.pos)return-1;var e,t=this.frontier[this.depth];if(!t.type.isTextblock||!Xe(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;for(var n=this.$to.depth,i=this.$to.after(n);n>1&&i==this.$to.end(--n);)++i;return i},He.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],i=n.match,r=n.type,o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=Xe(e,t,r,i,o);if(s){for(var a=t-1;a>=0;a--){var l=this.frontier[a],u=l.match,d=Xe(e,a,l.type,u,!0);if(!d||d.childCount)continue e}return{depth:t,fit:s,move:o?e.doc.resolve(e.after(t+1)):e}}}},He.prototype.close=function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=qe(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var i=e.node(n),r=i.type.contentMatch.fillBefore(i.content,!0,e.index(n));this.openFrontierNode(i.type,i.attrs,r)}return e},He.prototype.openFrontierNode=function(e,t,n){var i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=qe(this.placed,this.depth,o.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},He.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(o.empty,!0);e.childCount&&(this.placed=qe(this.placed,this.frontier.length,e))},Object.defineProperties(He.prototype,We),ke.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var i=this.doc.resolve(e),r=this.doc.resolve(t);if(_e(i,r,n))return this.step(new $e(e,t,n));var o=Ze(i,this.doc.resolve(t));0==o[o.length-1]&&o.pop();var s=-(i.depth+1);o.unshift(s);for(var a=i.depth,l=i.pos-1;a>0;a--,l--){var u=i.node(a).type.spec;if(u.defining||u.isolating)break;o.indexOf(a)>-1?s=a:i.before(a)==l&&o.splice(1,0,-a)}for(var d=o.indexOf(s),c=[],h=n.openStart,f=n.content,v=0;;v++){var m=f.firstChild;if(c.push(m),v==n.openStart)break;f=m.content}h>0&&c[h-1].type.spec.defining&&i.node(d).type!=c[h-1].type?h-=1:h>=2&&c[h-1].isTextblock&&c[h-2].type.spec.defining&&i.node(d).type!=c[h-2].type&&(h-=2);for(var g=n.openStart;g>=0;g--){var b=(g+h+1)%(n.openStart+1),y=c[b];if(y)for(var k=0;k<o.length;k++){var w=o[(k+d)%o.length],S=!0;w<0&&(S=!1,w=-w);var C=i.node(w-1),x=i.index(w-1);if(C.canReplaceWith(x,x,y.type,y.marks))return this.replace(i.before(w),S?r.after(w):t,new p(Ye(n.content,0,n.openStart,b),b,n.openEnd))}}for(var O=this.steps.length,$=o.length-1;$>=0&&(this.replace(e,t,n),!(this.steps.length>O));$--){var I=o[$];I<0||(e=i.before(I),t=r.after(I))}return this},ke.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var i=Ee(this.doc,e,n.type);null!=i&&(e=t=i)}return this.replaceRange(e,t,new p(o.from(n),0,0))},ke.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),i=this.doc.resolve(t),r=Ze(n,i),o=0;o<r.length;o++){var s=r[o],a=o==r.length-1;if(a&&0==s||n.node(s).type.contentMatch.validEnd)return this.delete(n.start(s),i.end(s));if(s>0&&(a||n.node(s-1).canReplace(n.index(s-1),i.indexAfter(s-1))))return this.delete(n.before(s),i.after(s))}for(var l=1;l<=n.depth&&l<=i.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&i.end(l)-t!=i.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)};var Qe=Object.create(null),et=function(e,t,n){this.ranges=n||[new nt(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},tt={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};tt.anchor.get=function(){return this.$anchor.pos},tt.head.get=function(){return this.$head.pos},tt.from.get=function(){return this.$from.pos},tt.to.get=function(){return this.$to.pos},tt.$from.get=function(){return this.ranges[0].$from},tt.$to.get=function(){return this.ranges[0].$to},tt.empty.get=function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0},et.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},et.prototype.replace=function(e,t){void 0===t&&(t=p.empty);for(var n=t.content.lastChild,i=null,r=0;r<t.openEnd;r++)i=n,n=n.lastChild;for(var o=e.steps.length,s=this.ranges,a=0;a<s.length;a++){var l=s[a],u=l.$from,d=l.$to,c=e.mapping.slice(o);e.replaceRange(c.map(u.pos),c.map(d.pos),a?p.empty:t),0==a&&dt(e,o,(n?n.isInline:i&&i.isTextblock)?-1:1)}},et.prototype.replaceWith=function(e,t){for(var n=e.steps.length,i=this.ranges,r=0;r<i.length;r++){var o=i[r],s=o.$from,a=o.$to,l=e.mapping.slice(n),u=l.map(s.pos),d=l.map(a.pos);r?e.deleteRange(u,d):(e.replaceRangeWith(u,d,t),dt(e,n,t.isInline?-1:1))}},et.findFrom=function(e,t,n){var i=e.parent.inlineContent?new it(e):ut(e.node(0),e.parent,e.pos,e.index(),t,n);if(i)return i;for(var r=e.depth-1;r>=0;r--){var o=t<0?ut(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):ut(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(o)return o}},et.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new at(e.node(0))},et.atStart=function(e){return ut(e,e,0,0,1)||new at(e)},et.atEnd=function(e){return ut(e,e,e.content.size,e.childCount,-1)||new at(e)},et.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=Qe[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},et.jsonID=function(e,t){if(e in Qe)throw new RangeError("Duplicate use of selection JSON ID "+e);return Qe[e]=t,t.prototype.jsonID=e,t},et.prototype.getBookmark=function(){return it.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(et.prototype,tt),et.prototype.visible=!0;var nt=function(e,t){this.$from=e,this.$to=t},it=function(e){function t(t,n){void 0===n&&(n=t),e.call(this,t,n)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={$cursor:{configurable:!0}};return n.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},t.prototype.map=function(n,i){var r=n.resolve(i.map(this.head));if(!r.parent.inlineContent)return e.near(r);var o=n.resolve(i.map(this.anchor));return new t(o.parent.inlineContent?o:r,r)},t.prototype.replace=function(t,n){if(void 0===n&&(n=p.empty),e.prototype.replace.call(this,t,n),n==p.empty){var i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head},t.prototype.getBookmark=function(){return new rt(this.anchor,this.head)},t.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,t,n){void 0===n&&(n=t);var i=e.resolve(t);return new this(i,n==t?i:e.resolve(n))},t.between=function(n,i,r){var o=n.pos-i.pos;if(r&&!o||(r=o>=0?1:-1),!i.parent.inlineContent){var s=e.findFrom(i,r,!0)||e.findFrom(i,-r,!0);if(!s)return e.near(i,r);i=s.$head}return n.parent.inlineContent||(0==o||(n=(e.findFrom(n,-r,!0)||e.findFrom(n,r,!0)).$anchor).pos<i.pos!=o<0)&&(n=i),new t(n,i)},Object.defineProperties(t.prototype,n),t}(et);et.jsonID("text",it);var rt=function(e,t){this.anchor=e,this.head=t};rt.prototype.map=function(e){return new rt(e.map(this.anchor),e.map(this.head))},rt.prototype.resolve=function(e){return it.between(e.resolve(this.anchor),e.resolve(this.head))};var ot=function(e){function t(t){var n=t.nodeAfter,i=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,i),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,i){var r=i.mapResult(this.anchor),o=r.deleted,s=r.pos,a=n.resolve(s);return o?e.near(a):new t(a)},t.prototype.content=function(){return new p(o.from(this.node),0,0)},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor},t.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},t.prototype.getBookmark=function(){return new st(this.anchor)},t.fromJSON=function(e,n){if("number"!=typeof n.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))},t.create=function(e,t){return new this(e.resolve(t))},t.isSelectable=function(e){return!e.isText&&!1!==e.type.spec.selectable},t}(et);ot.prototype.visible=!1,et.jsonID("node",ot);var st=function(e){this.anchor=e};st.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,i=t.pos;return n?new rt(i,i):new st(i)},st.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&ot.isSelectable(n)?new ot(t):et.near(t)};var at=function(e){function t(t){e.call(this,t.resolve(0),t.resolve(t.content.size))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.replace=function(t,n){if(void 0===n&&(n=p.empty),n==p.empty){t.delete(0,t.doc.content.size);var i=e.atStart(t.doc);i.eq(t.selection)||t.setSelection(i)}else e.prototype.replace.call(this,t,n)},t.prototype.toJSON=function(){return{type:"all"}},t.fromJSON=function(e){return new t(e)},t.prototype.map=function(e){return new t(e)},t.prototype.eq=function(e){return e instanceof t},t.prototype.getBookmark=function(){return lt},t}(et);et.jsonID("all",at);var lt={map:function(){return this},resolve:function(e){return new at(e)}};function ut(e,t,n,i,r,o){if(t.inlineContent)return it.create(e,n);for(var s=i-(r>0?0:1);r>0?s<t.childCount:s>=0;s+=r){var a=t.child(s);if(a.isAtom){if(!o&&ot.isSelectable(a))return ot.create(e,n-(r<0?a.nodeSize:0))}else{var l=ut(e,a,n+r,r<0?a.childCount:0,r,o);if(l)return l}n+=a.nodeSize*r}}function dt(e,t,n){var i=e.steps.length-1;if(!(i<t)){var r,o=e.steps[i];if(o instanceof $e||o instanceof Ie)e.mapping.maps[i].forEach((function(e,t,n,i){null==r&&(r=i)})),e.setSelection(et.near(e.doc.resolve(r),n))}}var ct=function(e){function t(t){e.call(this,t.doc),this.time=Date.now(),this.curSelection=t.selection,this.curSelectionFor=0,this.storedMarks=t.storedMarks,this.updated=0,this.meta=Object.create(null)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return n.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},t.prototype.setSelection=function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this},n.selectionSet.get=function(){return(1&this.updated)>0},t.prototype.setStoredMarks=function(e){return this.storedMarks=e,this.updated|=2,this},t.prototype.ensureMarks=function(e){return d.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this},t.prototype.addStoredMark=function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))},t.prototype.removeStoredMark=function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))},n.storedMarksSet.get=function(){return(2&this.updated)>0},t.prototype.addStep=function(t,n){e.prototype.addStep.call(this,t,n),this.updated=-3&this.updated,this.storedMarks=null},t.prototype.setTime=function(e){return this.time=e,this},t.prototype.replaceSelection=function(e){return this.selection.replace(this,e),this},t.prototype.replaceSelectionWith=function(e,t){var n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||d.none))),n.replaceWith(this,e),this},t.prototype.deleteSelection=function(){return this.selection.replace(this),this},t.prototype.insertText=function(e,t,n){void 0===n&&(n=t);var i=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var r=this.storedMarks;if(!r){var o=this.doc.resolve(t);r=n==t?o.marks():o.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,i.text(e,r)),this.selection.empty||this.setSelection(et.near(this.selection.$to)),this},t.prototype.setMeta=function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this},t.prototype.getMeta=function(e){return this.meta["string"==typeof e?e:e.key]},n.isGeneric.get=function(){for(var e in this.meta)return!1;return!0},t.prototype.scrollIntoView=function(){return this.updated|=4,this},n.scrolledIntoView.get=function(){return(4&this.updated)>0},Object.defineProperties(t.prototype,n),t}(ke);function pt(e,t){return t&&e?e.bind(t):e}var ht=function(e,t,n){this.name=e,this.init=pt(t.init,n),this.apply=pt(t.apply,n)},ft=[new ht("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new ht("selection",{init:function(e,t){return e.selection||et.atStart(t.doc)},apply:function(e){return e.selection}}),new ht("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new ht("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],vt=function(e,t){var n=this;this.schema=e,this.fields=ft.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach((function(e){if(n.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new ht(e.key,e.spec.state,e))}))},mt=function(e){this.config=e},gt={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};gt.schema.get=function(){return this.config.schema},gt.plugins.get=function(){return this.config.plugins},mt.prototype.apply=function(e){return this.applyTransaction(e).state},mt.prototype.filterTransaction=function(e,t){void 0===t&&(t=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=t){var i=this.config.plugins[n];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0},mt.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),i=null;;){for(var r=!1,o=0;o<this.config.plugins.length;o++){var s=this.config.plugins[o];if(s.spec.appendTransaction){var a=i?i[o].n:0,l=i?i[o].state:this,u=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(u&&n.filterTransaction(u,o)){if(u.setMeta("appendedTransaction",e),!i){i=[];for(var d=0;d<this.config.plugins.length;d++)i.push(d<o?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),r=!0}i&&(i[o]={state:n,n:t.length})}}if(!r)return{state:n,transactions:t}}},mt.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new mt(this.config),n=this.config.fields,i=0;i<n.length;i++){var r=n[i];t[r.name]=r.apply(e,this[r.name],this,t)}for(var o=0;o<bt.length;o++)bt[o](this,e,t);return t},gt.tr.get=function(){return new ct(this)},mt.create=function(e){for(var t=new vt(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new mt(t),i=0;i<t.fields.length;i++)n[t.fields[i].name]=t.fields[i].init(e,n);return n},mt.prototype.reconfigure=function(e){for(var t=new vt(this.schema,e.plugins),n=t.fields,i=new mt(t),r=0;r<n.length;r++){var o=n[r].name;i[o]=this.hasOwnProperty(o)?this[o]:n[r].init(e,i)}return i},mt.prototype.toJSON=function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==typeof e)for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var i=e[n],r=i.spec.state;r&&r.toJSON&&(t[n]=r.toJSON.call(i,this[i.key]))}return t},mt.fromJSON=function(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");var i=new vt(e.schema,e.plugins),r=new mt(i);return i.fields.forEach((function(i){if("doc"==i.name)r.doc=D.fromJSON(e.schema,t.doc);else if("selection"==i.name)r.selection=et.fromJSON(r.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(r.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var o in n){var s=n[o],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,o))return void(r[i.name]=a.fromJSON.call(s,e,t[o],r))}r[i.name]=i.init(e,r)}})),r},mt.addApplyListener=function(e){bt.push(e)},mt.removeApplyListener=function(e){var t=bt.indexOf(e);t>-1&&bt.splice(t,1)},Object.defineProperties(mt.prototype,gt);var bt=[];var yt=function(e){this.props={},e.props&&function e(t,n,i){for(var r in t){var o=t[r];o instanceof Function?o=o.bind(n):"handleDOMEvents"==r&&(o=e(o,n,{})),i[r]=o}return i}(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:wt("plugin")};yt.prototype.getState=function(e){return e[this.key]};var kt=Object.create(null);function wt(e){return e in kt?e+"$"+ ++kt[e]:(kt[e]=0,e+"$")}var St=function(e){void 0===e&&(e="key"),this.key=wt(e)};St.prototype.get=function(e){return e.config.pluginsByKey[this.key]},St.prototype.getState=function(e){return e[this.key]};var Ct="k-parent-node",xt=["div","ol","ul","li","table","tbody","thead","tfoot","td","th","p","tr","col","colgroup","article","main","nav","header","footer","aside","section"],Ot=function(e,t){var n=(e.ownerDocument||document).createElement(t);Array.from(e.rows).filter((function(e){return e.getAttribute(Ct)===t})).forEach((function(e){e.removeAttribute(Ct),n.appendChild(e)})),n.children.length&&e.appendChild(n)},$t=function(e,t){var n=t.toUpperCase();e.filter((function(e){return e.nodeName===n})).forEach((function(e){Array.from(e.children).forEach((function(n){n.setAttribute(Ct,t),e.parentNode&&e.parentNode.insertBefore(n,e)})),e.remove()}))},It=function(e,t){void 0===t&&(t=xt);var n=t.join("|");return e.replace(new RegExp("\\s*(<(?:"+n+")(?:\\s[^>]*?)?>)","g"),"$1").replace(new RegExp("(<\\/(?:"+n+")(?:\\s[^>]*?)?>)\\s*","g"),"$1")},Tt=function(e){var t,n=document.createElement("template");if("content"in n)n.innerHTML=e,t=n.content;else{var i=(new DOMParser).parseFromString(e,"text/html");t=document.createDocumentFragment();for(var r=i.body;r&&r.firstChild;)t.appendChild(r.firstChild)}return t},Dt=function(e){var t=ce.fromSchema(e.type.schema).serializeFragment(e.content);return function(e){Array.from(e.querySelectorAll("table")).forEach((function(e){Ot(e,"thead"),Ot(e,"tbody"),Ot(e,"tfoot");var t=Array.from(e.children).find((function(e){return 0===e.children.length}));t&&t.remove()}))}(t),t},Vt=function(e,t,n){return ee.fromSchema(t).parse(e,n)},Mt=function(e,t,n){var i,r=Tt(e);return i=r,Array.from(i.querySelectorAll("table")).forEach((function(e){var t=Array.from(e.children);t.some((function(e){return"THEAD"===e.nodeName||"TFOOT"===e.nodeName}))&&($t(t,"thead"),$t(t,"tbody"),$t(t,"tfoot"));var n=t.find((function(e){return"COLGROUP"===e.nodeName}));n&&(e.setAttribute("k-colgroup-data",n.outerHTML),n.remove())})),Vt(r,t,n)},Rt=function(e){var t=Dt(e.doc),n=document.createElement("div");return n.appendChild(t),n.innerHTML},Bt=function(e,t,n){return void 0===t&&(t="setHTML"),void 0===n&&(n={preserveWhitespace:"full"}),function(i,r){return r(i.tr.setSelection(new at(i.doc)).replaceSelectionWith(Mt(e,i.schema,n)).setMeta("commandName",t))}};var Nt=function(){return(Nt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Pt(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}var jt=function(e,t){var n=t.style,i=t.value,r=t.newValue;if(!e)return{changed:!1,style:null};var o=e.split(/\s*;\s*/).filter((function(e){return Boolean(e)})),s=o.filter((function(e){var t=e.split(/\s*:\s*/);return!(t[0].toLowerCase()===n&&i.test(t[1]))}));return r&&s.push(n+": "+r),{style:s.join("; ")+(s.length?";":""),changed:Boolean(r)||s.length!==o.length}},Et=function(e,t){for(var n=e.selection.$from,i=n.depth;i>=0;i--){var r=n.index(i);if(n.node(i).canReplaceWith(r,r,t))return!0}return!1},At=function(e){return e instanceof D?e.type.name:e.name},Lt=function(e,t){return void 0===t&&(t=1),function(n){return function(e,t){return void 0===t&&(t=1),function(n){for(var i=n.$from,r=i.depth;r>0;r--){var o=i.node(r);if(e(o)&&0===(t-=1))return{depth:r,node:o}}}}((function(t){return At(t)===At(e)}),t)(n)}},Ft=function(e,t){return function(n,i){var r=n.tr.replaceSelectionWith(e);t&&r.scrollIntoView(),i(r)}},zt=function(e,t,n,i){var r=o.from(Mt(e,n,i)),s=o.from(Mt(t,n,i));return r.eq(s)},Kt=function(e){var t=e.selection;if(t instanceof it||t instanceof at){var n=t.content().content;return n.textBetween(0,n.size)}return""},_t=function(e){if(e.selection instanceof ot)return e.selection.node},Ht=function(e){var t="",n=!1,i=e.selection,r=e.doc,o=i.$from,s=i.$to,a=i.from,l=i.to;return o.sameParent(s)&&(r.nodesBetween(a,l,(function(e){n=n||e.isLeaf&&!e.isText})),n||(t=Kt(e))),t},Wt=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$/,"")},Ut={before:/[^ !,?.\[\]{}()]+$/i,after:/^[^ !,?.\[\]{}()]+/i},qt=function(e,t,n){if(!n.applyToWord||!e.selection.empty)return{state:e,dispatch:t};var i=!0===n.applyToWord?Ut:n.applyToWord,r=null,o=e.tr,s=e.selection,a=s.$head.nodeBefore,l=s.$head.nodeAfter;if(a&&"text"===a.type.name&&a.text&&l&&"text"===l.type.name&&l.text){var u=[];s.$head.parent.descendants((function(e,t){return u.push({node:e,pos:t}),!1}));for(var d=s.$head.parentOffset,c=u.findIndex((function(e){var t=e.node,n=e.pos;return n<=d&&n+t.nodeSize>=d})),p=u[c].node.text,h=!1,f=c-1;f>=0;f--){var v=u[f];!h&&v&&"text"===v.node.type.name?p=v.node.text+p:(h=!0,d-=v.node.nodeSize)}for(f=c+1;f<u.length;f++){if(!(v=u[f])||"text"!==v.node.type.name)break;p+=v.node.text}var m=p.substring(0,d),g=p.substring(d),b=i.before.exec(m),y=i.after.exec(g);if(b&&y){var k=b[0].length,w=y[0].length,S=r=s.from;o.setSelection(it.create(e.doc,S-k,S+w));return{state:{tr:o,selection:o.selection,doc:o.doc,storedMarks:null,schema:o.doc.type.schema},dispatch:function(e){e.setSelection(it.create(e.doc,r)),t(e)}}}}return{state:e,dispatch:t}},Gt=function(e,t){return function(n,i,r){var o=qt(n,i,t),s=o.state,a=o.dispatch;return e(t)(s,a)}},Jt=function(e,t,n){for(var i=function(i){var r=t[i],o=r.$from,s=r.$to,a=0===o.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,s.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)})),a)return{v:!0}},r=0;r<t.length;r++){var o=i(r);if(o)return o.v}return!1},Xt=function(e,t,n){return function(i,r){var o=i.selection,s=o.empty,a=o.$cursor,l=o.ranges;if(s&&!a||!Jt(i.doc,l,e))return!1;if(r)if(a)e.isInSet(i.storedMarks||a.marks())?r(n.removeStoredMark(e)):r(n.addStoredMark(e.create(t)));else{for(var u=!1,d=0;!u&&d<l.length;d++){var c=l[d],p=c.$from,h=c.$to;u=i.doc.rangeHasMark(p.pos,h.pos,e)}for(d=0;d<l.length;d++){var f=l[d];p=f.$from,h=f.$to;u?n.removeMark(p.pos,h.pos,e):n.addMark(p.pos,h.pos,e.create(t))}r(n.scrollIntoView())}return!0}},Yt=function(e,t,n,i){void 0===i&&(i=null);var r=[],o=0;return e.doc.nodesBetween(t,n,(function(e,s){if(e.isInline){o++;var a=null;if(i instanceof Y){var l=i.isInSet(e.marks);l&&(a=[l])}else i?i.isInSet(e.marks)&&(a=[i]):a=e.marks;if(a&&a.length)for(var u=Math.min(s+e.nodeSize,n),d=0;d<a.length;d++){for(var c=a[d],p=void 0,h=0;h<r.length;h++){var f=r[h];f.step===o-1&&c.eq(f.style)&&(p=f)}p?(p.to=u,p.step=o):r.push({style:c,from:Math.max(s,t),to:u,step:o})}}})),r.forEach((function(t){return e.step(new ze(t.from,t.to,t.style))})),e},Zt=function(e){var t=(void 0===e?{}:e).except,n=void 0===t?[]:t;return function(e,t){var i,r=e.tr;Qt(r,{except:(i=n,i instanceof Array?i:[i])}),r.docChanged&&t(r)}},Qt=function(e,t){var n=t.except,i=e.doc,r=e.selection,o=i.type.schema,s=r.empty,a=r.ranges,l=(n||[]).map((function(e){return e.name}));if(!s){var u=Object.keys(o.marks).map((function(e){return o.marks[e]})).filter((function(e){return-1===l.indexOf(e.name)}));a.forEach((function(t){var n=t.$from,i=t.$to;u.forEach((function(t){return e.removeMark(n.pos,i.pos,t)}))}))}},en=function(e,t){var n,i=e.schema.marks,r=(t.altMarks||[]).filter((function(e){return i[e]})),o=t.altStyle,s=e.selection,a=s.from,l=s.$from,u=s.to,d=s.empty,c=i[t.mark],p=e.doc,h=!1;return d?(n=e.storedMarks||l.marks(),h=c&&c.isInSet(n)||r.some((function(e){return i[e].isInSet(n)}))):h=c&&p.rangeHasMark(a,u,c)||r.some((function(e){return p.rangeHasMark(a,u,i[e])})),!h&&o&&i.style?nn(e,i.style).some((function(e){return null!==tn(e,o)})):Boolean(h)},tn=function(e,t){for(var n=(e&&e.attrs.style||"").split(/\s*;\s*/).filter((function(e){return Boolean(e)})),i=0;i<n.length;i++){var r=n[i].split(/\s*:\s*/);if(r[0].toLowerCase()===t.name&&t.value.test(r[1]))return r[1]}return null},nn=function(e,t){var n=e.selection,i=n.from,r=n.$from,o=n.to,s=n.empty,a=[];return s?a.push(t.isInSet(e.storedMarks||r.marks())):e.doc.nodesBetween(i,o,(function(e){e.isInline&&a.push(t.isInSet(e.marks))})),a},rn=function(e,t){var n=nn(e,t),i=n.filter((function(e){return Boolean(e)}));return n.length===i.length?n[0]:void 0},on=function(e,t){var n=nn(e,t),i=n.filter((function(e){return Boolean(e)}));return{hasNodesWithoutMarks:n.length!==i.length,marks:i}},sn=function(e,t){var n=e.find((function(e){return"style"===e.type.name})),i=n&&n.attrs.style;return jt(i,t)},an=function(e,t,n,i,r){var o=r.create({style:i.style}),s=[],a=[],l=null,u=null;return e.doc.nodesBetween(t,n,(function(e,d,c){if(e.isInline){var p=e.marks;if(!o.isInSet(p)&&c.type.allowsMarkType(o.type)){var h=Math.max(d,t),f=Math.min(d+e.nodeSize,n),v=sn(p,i);if(v.changed||i.newValue){for(var m=v.changed?{style:v.style||null}:{style:[i.style]+": "+i.newValue+";"},g=r.isInSet(p)?p.find((function(e){return"style"===e.type.name})):null,b=g?Nt({},g.attrs,m):m,y=r.create(b),k=y.addToSet(p),w=0;w<p.length;w++)p[w].isInSet(k)||(l&&l.to===h&&l.mark.eq(p[w])?l.to=f:(l=new ze(h,f,p[w]),s.push(l)));var S=u&&u.to===h,C=S&&y.attrs.style===u.mark.attrs.style;S&&C?u.to=f:Object.keys(b).some((function(e){return null!==b[e]}))&&(u=new Fe(h,f,y),a.push(u))}}}})),s.forEach((function(t){return e.step(t)})),a.forEach((function(t){return e.step(t)})),s.length+a.length>0},ln=function(e,t){var n=e.schema.marks.style;return(n?nn(e,n):[]).map((function(e){return tn(e,t)})).filter((function(e){return null!==e}))},un=function(e,t){return function(n,i,r){var o=n.selection,s=o.empty,a=o.$cursor,l=o.ranges;if(s&&!a||!Jt(n.doc,l,e))return!1;var u,d,c,p,h=!1;if(i){var f=r||n.tr;if(a){var v=n.storedMarks||a.marks();if(e.isInSet(v)){var m=sn(v,t),g=v.find((function(e){return"style"===e.type.name})),b=Nt({},g?g.attrs:{},{style:m.style||null});if(u=g.attrs,d=b,c=Object.keys(u),p=Object.keys(d),c.length===p.length&&c.every((function(e){return u[e]===d[e]})))return!1;i(f.removeStoredMark(e)),Object.keys(b).some((function(e){return null!==b[e]}))&&i(f.addStoredMark(e.create(b))),h=!0}}else{for(var y=0;y<l.length;y++){var k=l[y],w=k.$from,S=k.$to;h=an(f,w.pos,S.pos,t,e)}h&&(f.scrollIntoView(),i(f))}}return h}},dn=function(e,t,n){return function(i,r){var o=i.schema.marks,s=e.altStyle,a=e.altMarks,l=void 0===a?[]:a,u=e.mark,d=t||i.tr,c=!1,p=!1,h=function(){return p=!0};s&&o.style&&(c=un(o.style,{style:s.name,value:s.value})(i,h,d));var f=[u].concat(l).filter((function(e){return o[e]})).map((function(e){return en(i,{mark:e})&&o[e]})).filter((function(e){return e}));return f.length?function(e,t,n,i){var r=t.selection,o=r.$cursor,s=r.ranges;if(i=i||t.tr,o)e.forEach((function(e){e.isInSet(t.storedMarks||o.marks())&&n(i.removeStoredMark(e))}));else{for(var a=function(t){var n=s[t],r=n.$from,o=n.$to;e.forEach((function(e){Yt(i,r.pos,o.pos,e)}))},l=0;l<s.length;l++)a(l);n(i.scrollIntoView())}}(f,i,h,d):c||Xt(o[u],n,d)(i,h),p&&r(d),p}},cn=function(e,t){return function(n,i){var r=n.schema.marks.style,o={style:e.style,value:/^.+$/,newValue:e.value},s=n.tr;t&&s.setMeta("commandName",t),s.setMeta("args",e);var a=n.selection,l=a.empty,u=a.$cursor,d=a.ranges;if(l&&!u||!r||!Jt(n.doc,d,r))return!1;if(u){var c=n.storedMarks||u.marks(),p=r.isInSet(c)?c.find((function(e){return"style"===e.type.name})):null,h={style:null};if(p&&p.attrs.style){var f=jt(p.attrs.style,o);f.changed&&f.style&&(h.style=f.style)}else o.newValue&&(h.style=[o.style]+": "+o.newValue+";");var v=p?Nt({},p.attrs,h):h;return Object.keys(v).some((function(e){return null!==v[e]}))?i(s.addStoredMark(r.create(v))):i(s.removeStoredMark(r)),!0}return un(r,o)(n,i,s)}},pn=function(e,t){return function(n,i){var r=n.selection.$cursor;if(r){var o=r.parent,s=r.index(),a=n.schema.marks[e.mark],l=o.child(s).marks.find((function(e){return e.type===a})),u=o.childCount,d=r.pos-r.textOffset,c=o.child(s).nodeSize,p=void 0,h=void 0;for(p=s-1;p>=0&&l.isInSet(o.child(p).marks);)c+=h=o.child(p).nodeSize,d-=h,p-=1;for(p=s+1;p<u&&l.isInSet(o.child(p).marks);)c+=o.child(p).nodeSize,p+=1;i(Yt(t||n.tr,d,d+c,l))}else dn(e,t)(n,i)}},hn=function(e,t){var n=e.mark,i=e.attrs;return void 0===t&&(t="link"),function(e,r){var o=e.schema.marks,s=e.tr;t&&(s.setMeta("commandName",t),s.setMeta("args",i));var a=!1,l=function(){return a=!0};if(function(e,t){var n=nn(e,t);return 1===n.length&&n[0]?n[0]:null}(e,o[n]))!function(e,t){return function(n,i){var r=n.selection,o=r.$cursor,s=r.from,a=r.to,l=n.schema.marks[e.mark];if(o){var u=o.parent,d=o.index(),c=u.child(d).marks.find((function(e){return e.type===l})),p=u.childCount,h=o.pos-o.textOffset,f=u.child(d).nodeSize,v=void 0,m=void 0;for(v=d-1;v>=0&&c.isInSet(u.child(v).marks);)f+=m=u.child(v).nodeSize,h-=m,v-=1;for(v=d+1;v<p&&c.isInSet(u.child(v).marks);)f+=u.child(v).nodeSize,v+=1;t.removeMark(h,h+f,l),t.addMark(h,h+f,l.create(e.attrs)),i(t)}else t.doc.nodesBetween(s,a,(function(n,r){n.isInline&&l.isInSet(n.marks)&&(t.removeMark(r,r+n.nodeSize,l),t.addMark(r,r+n.nodeSize,l.create(e.attrs)),i(t))}))}}({mark:n,attrs:i},s)(e,l);else{var u=e;en(e,{mark:n})&&(pn({mark:n,attrs:i},s)(e,l),u=mt.create({doc:s.doc,selection:s.selection})),a?Xt(o[n],i,s)(u,l):dn({mark:n},s,i)(u,l)}return a&&r(s),a}},fn=function(e){return function(t,n){n(t.tr.insertText(e.text,e.from,e.to))}},vn=function(e){return function(t,n){var i=t.schema.nodes.image,r=i.createAndFill(e);Ft(r)(t,(function(t){return n(t.setMeta("commandName","insertImage").setMeta("args",e))}))}},mn=function(e,t,n,i){if(!n.isTextblock)return!1;e.selection.ranges.forEach((function(r){var s=e.steps.length,a=r.$from.pos,l=r.$to.pos;e.doc.nodesBetween(a,l,(function(r,a){if(r.eq(t)&&r.isTextblock&&!r.hasMarkup(n,i)&&function(e,t,n){var i=e.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,n)}(e.doc,e.mapping.slice(s).map(a),n)){e.clearIncompatible(e.mapping.slice(s).map(a,1),n);var l=e.mapping.slice(s),u=l.map(a,1),d=l.map(a+r.nodeSize,1),c=new p(o.from(n.create(i,null,r.marks)),0,0);return e.step(new Ie(u,d,u+1,d-1,c,1,!0)),!1}}))}))},gn=function(e,t){void 0===t&&(t={blocksInSelection:!1});var n=e.doc,i=e.selection,r=i.$from,o=i.ranges,s=t.blocksInSelection,a=[],l=i instanceof ot?i.node:void 0;return l?l.isBlock?(a.push(l),l.nodesBetween(0,l.content.size,(function(e){e.isBlock&&a.push(e)}))):!s&&r.parent&&r.parent.isBlock&&a.push(r.parent):o.forEach((function(e){var t=e.$from.pos,i=e.$to.pos;n.nodesBetween(t,i,(function(e,n,r,o){e.isBlock&&(!s||n>=t&&n+e.content.size+2<=i)&&a.push(e)}))})),a},bn=function(e,t){return function(n,i){var r=gn(n),o=n.schema.nodes,s=n.tr;s.setMeta("commandName",t),s.setMeta("args",{value:e}),r.forEach((function(t){if(t.type.isTextblock)if("p"===e){var n=t.attrs,i=n.level,r=Pt(n,["level"]);mn(s,t,o.paragraph,r)}else if(/^h[1-6]$/i.test(e)){i=parseInt(e.substr(1),10);mn(s,t,o.heading,Nt({},t.attrs,{level:i}))}else if("blockquote"===e){var a=t.attrs;i=a.level,r=Pt(a,["level"]);mn(s,t,o.blockquote,r)}}));var a=s.docChanged;return a&&i(s.scrollIntoView()),a}},yn=function(e,t){void 0===t&&(t={blocksInSelection:!0});var n=e.doc,i=e.selection,r=t.blocksInSelection,o=t.blockNodeType;gn({doc:n,selection:i},{blocksInSelection:r}).filter((function(e){return e.isTextblock})).forEach((function(t){var n=t.attrs||{},i=n.style,r=void 0===i?"":i,s=n.class,a=void 0===s?"":s,l=Pt(n,["style","class"]),u=o||t.type;(r||a||u!==t.type)&&mn(e,t,u,l)}))},kn=function(e){var t=gn(e),n=e.schema.nodes,i=[];return t.forEach((function(e){e.type===n.paragraph?i.push("p"):e.type===n.heading?i.push("h"+e.attrs.level):e.type===n.blockquote&&n.blockquote.isTextblock&&i.push("blockquote")})),i},wn=function(e,t){var n,i,r=e.attrs.style;r&&t.forEach((function(e){i={style:e.name,value:/^.+$/,newValue:e.value},n=jt(r,i),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})},Sn=function(e,t){var n=e.selection,i=n.from,r=n.to,o=!1;return e.doc.nodesBetween(i,r,(function(e){return!(o=o||e.type===t)})),o},Cn=function(e){var t=kn(e);return 1===new Set(t).size?t[0]:null},xn=function(e){return{tag:Cn(e)||""}},On=function(e,t){return function(n,i){var r=gn(n),o=n.tr;o.setMeta("commandName",t),r.forEach((function(t){if(t.type.isTextblock){var n={},i=e.find((function(e){return e.node===t.type.name}));i&&(n=wn(t,i.style)),mn(o,t,t.type,n)}}));var s=o.docChanged;return s&&i(o.scrollIntoView()),s}},$n=function(e,t){var n=gn(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}));n&&(i=n.style.every((function(t){return!!t.value&&new RegExp(t.name+":\\s?"+t.value,"i").test(e.attrs.style)})))}})),i},In=function(e){return void 0===e&&(e={blocksInSelection:!0}),function(t,n){var i=t.tr,r=e.blocksInSelection,o=e.blockNodeType,s=(e.exceptMarks||[t.schema.marks.link]).filter(Boolean);Qt(i,{except:s}),yn(i,{blocksInSelection:r,blockNodeType:o});var a=i.docChanged;return a&&n&&n(i),a}},Tn=["ol",0],Dn=["ul",0],Vn=["li",0],Mn={attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs:function(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1}}}],toDOM:function(e){return 1==e.attrs.order?Tn:["ol",{start:e.attrs.order},0]}},Rn={parseDOM:[{tag:"ul"}],toDOM:function(){return Dn}},Bn={parseDOM:[{tag:"li"}],toDOM:function(){return Vn},defining:!0};function Nn(e,t){var n={};for(var i in e)n[i]=e[i];for(var r in t)n[r]=t[r];return n}function Pn(e,t,n){return e.append({ordered_list:Nn(Mn,{content:"list_item+",group:n}),bullet_list:Nn(Rn,{content:"list_item+",group:n}),list_item:Nn(Bn,{content:t})})}function jn(e,t){return function(n,i){var r=n.selection,s=r.$from,a=r.$to,l=s.blockRange(a),u=!1,d=l;if(!l)return!1;if(l.depth>=2&&s.node(l.depth-1).type.compatibleContent(e)&&0==l.startIndex){if(0==s.index(l.depth-1))return!1;var c=n.doc.resolve(l.start-2);d=new $(c,c,l.depth),l.endIndex<l.parent.childCount&&(l=new $(s,n.doc.resolve(a.end(l.depth)),l.depth)),u=!0}var h=Me(d,e,t,l);return!!h&&(i&&i(function(e,t,n,i,r){for(var s=o.empty,a=n.length-1;a>=0;a--)s=o.from(n[a].type.create(n[a].attrs,s));e.step(new Ie(t.start-(i?2:0),t.end,t.start,t.end,new p(s,0,0),n.length,!0));for(var l=0,u=0;u<n.length;u++)n[u].type==r&&(l=u+1);for(var d=n.length-l,c=t.start+n.length-(i?2:0),h=t.parent,f=t.startIndex,v=t.endIndex,m=!0;f<v;f++,m=!1)!m&&Be(e.doc,c,d)&&(e.split(c,d),c+=2*d),c+=h.child(f).nodeSize;return e}(n.tr,l,h,u,e).scrollIntoView()),!0)}}function En(e){return function(t,n){var i=t.selection,r=i.$from,s=i.$to,a=i.node;if(a&&a.isBlock||r.depth<2||!r.sameParent(s))return!1;var l=r.node(-1);if(l.type!=e)return!1;if(0==r.parent.content.size&&r.node(-1).childCount==r.indexAfter(-1)){if(2==r.depth||r.node(-3).type!=e||r.index(-2)!=r.node(-2).childCount-1)return!1;if(n){for(var u=o.empty,d=r.index(-1)?1:r.index(-2)?2:3,c=r.depth-d;c>=r.depth-3;c--)u=o.from(r.node(c).copy(u));var h=r.indexAfter(-1)<r.node(-2).childCount?1:r.indexAfter(-2)<r.node(-3).childCount?2:3;u=u.append(o.from(e.createAndFill()));var f=r.before(r.depth-(d-1)),v=t.tr.replace(f,r.after(-h),new p(u,4-d,0)),m=-1;v.doc.nodesBetween(f,v.doc.content.size,(function(e,t){if(m>-1)return!1;e.isTextblock&&0==e.content.size&&(m=t+1)})),m>-1&&v.setSelection(t.selection.constructor.near(v.doc.resolve(m))),n(v.scrollIntoView())}return!0}var g=s.pos==r.end()?l.contentMatchAt(0).defaultType:null,b=t.tr.delete(r.pos,s.pos),y=g&&[null,{type:g}];return!!Be(b.doc,r.pos,2,y)&&(n&&n(b.split(r.pos,2,y).scrollIntoView()),!0)}}function An(e){return function(t,n){var i=t.selection,r=i.$from,s=i.$to,a=r.blockRange(s,(function(t){return t.childCount&&t.firstChild.type==e}));return!!a&&(!n||(r.node(a.depth-1).type==e?function(e,t,n,i){var r=e.tr,s=i.end,a=i.$to.end(i.depth);s<a&&(r.step(new Ie(s-1,a,s,a,new p(o.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new $(r.doc.resolve(i.$from.pos),r.doc.resolve(a),i.depth));return t(r.lift(i,Ve(i)).scrollIntoView()),!0}(t,n,e,a):function(e,t,n){for(var i=e.tr,r=n.parent,s=n.end,a=n.endIndex-1,l=n.startIndex;a>l;a--)s-=r.child(a).nodeSize,i.delete(s-1,s+1);var u=i.doc.resolve(n.start),d=u.nodeAfter;if(i.mapping.map(n.end)!=n.start+u.nodeAfter.nodeSize)return!1;var c=0==n.startIndex,h=n.endIndex==r.childCount,f=u.node(-1),v=u.index(-1);if(!f.canReplace(v+(c?0:1),v+1,d.content.append(h?o.empty:o.from(r))))return!1;var m=u.pos,g=m+d.nodeSize;return i.step(new Ie(m-(c?1:0),g+(h?1:0),m+1,g-1,new p((c?o.empty:o.from(r.copy(o.empty))).append(h?o.empty:o.from(r.copy(o.empty))),c?0:1,h?0:1),c?0:1)),t(i.scrollIntoView()),!0}(t,n,a)))}}function Ln(e){return function(t,n){var i=t.selection,r=i.$from,s=i.$to,a=r.blockRange(s,(function(t){return t.childCount&&t.firstChild.type==e}));if(!a)return!1;var l=a.startIndex;if(0==l)return!1;var u=a.parent,d=u.child(l-1);if(d.type!=e)return!1;if(n){var c=d.lastChild&&d.lastChild.type==u.type,h=o.from(c?e.create():null),f=new p(o.from(e.create(null,o.from(u.type.create(null,h)))),c?3:1,0),v=a.start,m=a.end;n(t.tr.step(new Ie(v-(c?3:1),m,v,m,f,1,!0)).scrollIntoView())}return!0}}var Fn={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},zn={listType:Fn.orderedList,types:Nt({},Fn)},Kn={listType:Fn.bulletList,types:Nt({},Fn)},_n={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:Nt({},Fn)},Hn={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:Nt({},Fn)};function Wn(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function Un(e,t,n){var i=e.selection.$cursor;if(!i||(n?!n.endOfTextblock("backward",e):i.parentOffset>0))return!1;var r=Jn(i);if(!r){var o=i.blockRange(),s=o&&Ve(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}var a=r.nodeBefore;if(!a.type.spec.isolating&&ci(e,r,t))return!0;if(0==i.parent.content.size&&(qn(a,"end")||ot.isSelectable(a))){var l=Ke(e.doc,i.before(),i.after(),p.empty);if(l.slice.size<l.to-l.from){if(t){var u=e.tr.step(l);u.setSelection(qn(a,"end")?et.findFrom(u.doc.resolve(u.mapping.map(r.pos,-1)),-1):ot.create(u.doc,r.pos-a.nodeSize)),t(u.scrollIntoView())}return!0}}return!(!a.isAtom||r.depth!=i.depth-1)&&(t&&t(e.tr.delete(r.pos-a.nodeSize,r.pos).scrollIntoView()),!0)}function qn(e,t,n){for(;e;e="start"==t?e.firstChild:e.lastChild){if(e.isTextblock)return!0;if(n&&1!=e.childCount)return!1}return!1}function Gn(e,t,n){var i=e.selection,r=i.$head,o=r;if(!i.empty)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;o=Jn(r)}var s=o&&o.nodeBefore;return!(!s||!ot.isSelectable(s))&&(t&&t(e.tr.setSelection(ot.create(e.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)}function Jn(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Xn(e,t,n){var i=e.selection.$cursor;if(!i||(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size))return!1;var r=Zn(i);if(!r)return!1;var o=r.nodeAfter;if(ci(e,r,t))return!0;if(0==i.parent.content.size&&(qn(o,"start")||ot.isSelectable(o))){var s=Ke(e.doc,i.before(),i.after(),p.empty);if(s.slice.size<s.to-s.from){if(t){var a=e.tr.step(s);a.setSelection(qn(o,"start")?et.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):ot.create(a.doc,a.mapping.map(r.pos))),t(a.scrollIntoView())}return!0}}return!(!o.isAtom||r.depth!=i.depth-1)&&(t&&t(e.tr.delete(r.pos,r.pos+o.nodeSize).scrollIntoView()),!0)}function Yn(e,t,n){var i=e.selection,r=i.$head,o=r;if(!i.empty)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;o=Zn(r)}var s=o&&o.nodeAfter;return!(!s||!ot.isSelectable(s))&&(t&&t(e.tr.setSelection(ot.create(e.doc,o.pos)).scrollIntoView()),!0)}function Zn(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){var n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function Qn(e,t){var n,i=e.selection,r=i instanceof ot;if(r){if(i.node.isTextblock||!Ne(e.doc,i.from))return!1;n=i.from}else if(null==(n=je(e.doc,i.from,-1)))return!1;if(t){var o=e.tr.join(n);r&&o.setSelection(ot.create(o.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0}function ei(e,t){var n,i=e.selection;if(i instanceof ot){if(i.node.isTextblock||!Ne(e.doc,i.to))return!1;n=i.to}else if(null==(n=je(e.doc,i.to,1)))return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0}function ti(e,t){var n=e.selection,i=n.$from,r=n.$to,o=i.blockRange(r),s=o&&Ve(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)}function ni(e,t){var n=e.selection,i=n.$head,r=n.$anchor;return!(!i.parent.type.spec.code||!i.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)}function ii(e){for(var t=0;t<e.edgeCount;t++){var n=e.edge(t).type;if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function ri(e,t){var n=e.selection,i=n.$head,r=n.$anchor;if(!i.parent.type.spec.code||!i.sameParent(r))return!1;var o=i.node(-1),s=i.indexAfter(-1),a=ii(o.contentMatchAt(s));if(!o.canReplaceWith(s,s,a))return!1;if(t){var l=i.after(),u=e.tr.replaceWith(l,l,a.createAndFill());u.setSelection(et.near(u.doc.resolve(l),1)),t(u.scrollIntoView())}return!0}function oi(e,t){var n=e.selection,i=n.$from,r=n.$to;if(n instanceof at||i.parent.inlineContent||r.parent.inlineContent)return!1;var o=ii(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){var s=(!i.parentOffset&&r.index()<r.parent.childCount?i:r).pos,a=e.tr.insert(s,o.createAndFill());a.setSelection(it.create(a.doc,s+1)),t(a.scrollIntoView())}return!0}function si(e,t){var n=e.selection.$cursor;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){var i=n.before();if(Be(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}var r=n.blockRange(),o=r&&Ve(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)}function ai(e,t){var n=e.selection,i=n.$from,r=n.$to;if(e.selection instanceof ot&&e.selection.node.isBlock)return!(!i.parentOffset||!Be(e.doc,i.pos))&&(t&&t(e.tr.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;if(t){var o=r.parentOffset==r.parent.content.size,s=e.tr;(e.selection instanceof it||e.selection instanceof at)&&s.deleteSelection();var a=0==i.depth?null:ii(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=o&&a?[{type:a}]:null,u=Be(s.doc,s.mapping.map(i.pos),1,l);if(l||u||!Be(s.doc,s.mapping.map(i.pos),1,a&&[{type:a}])||(l=[{type:a}],u=!0),u&&(s.split(s.mapping.map(i.pos),1,l),!o&&!i.parentOffset&&i.parent.type!=a)){var d=s.mapping.map(i.before()),c=s.doc.resolve(d);i.node(-1).canReplaceWith(c.index(),c.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}t(s.scrollIntoView())}return!0}function li(e,t){return ai(e,t&&function(n){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&n.ensureMarks(i),t(n)})}function ui(e,t){var n,i=e.selection,r=i.$from,o=i.to,s=r.sharedDepth(o);return 0!=s&&(n=r.before(s),t&&t(e.tr.setSelection(ot.create(e.doc,n))),!0)}function di(e,t){return t&&t(e.tr.setSelection(new at(e.doc))),!0}function ci(e,t,n){var i,r,s=t.nodeBefore,a=t.nodeAfter;if(s.type.spec.isolating||a.type.spec.isolating)return!1;if(function(e,t,n){var i=t.nodeBefore,r=t.nodeAfter,o=t.index();return!!(i&&r&&i.type.compatibleContent(r.type))&&(!i.content.size&&t.parent.canReplace(o-1,o)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(o,o+1)||!r.isTextblock&&!Ne(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}(e,t,n))return!0;var l=t.parent.canReplace(t.index(),t.index()+1);if(l&&(i=(r=s.contentMatchAt(s.childCount)).findWrapping(a.type))&&r.matchType(i[0]||a.type).validEnd){if(n){for(var u=t.pos+a.nodeSize,d=o.empty,c=i.length-1;c>=0;c--)d=o.from(i[c].create(null,d));d=o.from(s.copy(d));var h=e.tr.step(new Ie(t.pos-1,u,t.pos,u,new p(d,1,0),i.length,!0)),f=u+2*i.length;Ne(h.doc,f)&&h.join(f),n(h.scrollIntoView())}return!0}var v=et.findFrom(t,1),m=v&&v.$from.blockRange(v.$to),g=m&&Ve(m);if(null!=g&&g>=t.depth)return n&&n(e.tr.lift(m,g).scrollIntoView()),!0;if(l&&qn(a,"start",!0)&&qn(s,"end")){for(var b=s,y=[];y.push(b),!b.isTextblock;)b=b.lastChild;for(var k=a,w=1;!k.isTextblock;k=k.firstChild)w++;if(b.canReplace(b.childCount,b.childCount,k.content)){if(n){for(var S=o.empty,C=y.length-1;C>=0;C--)S=o.from(y[C].copy(S));n(e.tr.step(new Ie(t.pos-y.length,t.pos+a.nodeSize,t.pos+w,t.pos+a.nodeSize-w,new p(S,y.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function pi(e){return function(t,n){for(var i=t.selection,r=e<0?i.$from:i.$to,o=r.depth;r.node(o).isInline;){if(!o)return!1;o--}return!!r.node(o).isTextblock&&(n&&n(t.tr.setSelection(it.create(t.doc,e<0?r.start(o):r.end(o)))),!0)}}var hi=pi(-1),fi=pi(1);function vi(e,t){return function(n,i){var r=n.selection,o=r.$from,s=r.$to,a=o.blockRange(s),l=a&&Me(a,e,t);return!!l&&(i&&i(n.tr.wrap(a,l).scrollIntoView()),!0)}}function mi(e,t){return function(n,i){var r=n.selection,o=r.from,s=r.to,a=!1;return n.doc.nodesBetween(o,s,(function(i,r){if(a)return!1;if(i.isTextblock&&!i.hasMarkup(e,t))if(i.type==e)a=!0;else{var o=n.doc.resolve(r),s=o.index();a=o.parent.canReplaceWith(s,s+1,e)}})),!!a&&(i&&i(n.tr.setBlockType(o,s,e,t).scrollIntoView()),!0)}}function gi(e,t){return function(n,i){var r=n.selection,o=r.empty,s=r.$cursor,a=r.ranges;if(o&&!s||!function(e,t,n){for(var i=function(i){var r=t[i],o=r.$from,s=r.$to,a=0==o.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(o.pos,s.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)})),a)return{v:!0}},r=0;r<t.length;r++){var o=i(r);if(o)return o.v}return!1}(n.doc,a,e))return!1;if(i)if(s)e.isInSet(n.storedMarks||s.marks())?i(n.tr.removeStoredMark(e)):i(n.tr.addStoredMark(e.create(t)));else{for(var l=!1,u=n.tr,d=0;!l&&d<a.length;d++){var c=a[d],p=c.$from,h=c.$to;l=n.doc.rangeHasMark(p.pos,h.pos,e)}for(var f=0;f<a.length;f++){var v=a[f],m=v.$from,g=v.$to;if(l)u.removeMark(m.pos,g.pos,e);else{var b=m.pos,y=g.pos,k=m.nodeAfter,w=g.nodeBefore,S=k&&k.isText?/^\s*/.exec(k.text)[0].length:0,C=w&&w.isText?/\s*$/.exec(w.text)[0].length:0;b+S<y&&(b+=S,y-=C),u.addMark(b,y,e.create(t))}}i(u.scrollIntoView())}return!0}}function bi(e,t){if(Array.isArray(t)){var n=t;t=function(e){return n.indexOf(e.type.name)>-1}}return function(n,i,r){return e(n,i&&function(e,t){return function(n){if(!n.isGeneric)return e(n);for(var i=[],r=0;r<n.mapping.maps.length;r++){for(var o=n.mapping.maps[r],s=0;s<i.length;s++)i[s]=o.map(i[s]);o.forEach((function(e,t,n,r){return i.push(n,r)}))}for(var a=[],l=0;l<i.length;l+=2)for(var u=i[l],d=i[l+1],c=n.doc.resolve(u),p=c.sharedDepth(d),h=c.node(p),f=c.indexAfter(p),v=c.after(p+1);v<=d;++f){var m=h.maybeChild(f);if(!m)break;if(f&&-1==a.indexOf(v)){var g=h.child(f-1);g.type==m.type&&t(g,m)&&a.push(v)}v+=m.nodeSize}a.sort((function(e,t){return e-t}));for(var b=a.length-1;b>=0;b--)Ne(n.doc,a[b])&&n.join(a[b]);e(n)}}(i,t),r)}}function yi(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t,n,i){for(var r=0;r<e.length;r++)if(e[r](t,n,i))return!0;return!1}}var ki=yi(Wn,Un,Gn),wi=yi(Wn,Xn,Yn),Si={Enter:yi(ni,oi,si,ai),"Mod-Enter":ri,Backspace:ki,"Mod-Backspace":ki,"Shift-Backspace":ki,Delete:wi,"Mod-Delete":wi,"Mod-a":di},Ci={"Ctrl-h":Si.Backspace,"Alt-Backspace":Si["Mod-Backspace"],"Ctrl-d":Si.Delete,"Ctrl-Alt-Backspace":Si["Mod-Delete"],"Alt-Delete":Si["Mod-Delete"],"Alt-d":Si["Mod-Delete"],"Ctrl-a":hi,"Ctrl-e":fi};for(var xi in Si)Ci[xi]=Si[xi];Si.Home=hi,Si.End=fi;var Oi=("undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform())?Ci:Si,$i=function(e,t){return vi(e.schema.nodes.blockquote)(e,t)},Ii=function(e,t){var n=e.selection,i=n.$from,r=n.$to,o=e.schema.nodes.blockquote,s=e.doc,a=-1,l=i.blockRange(r);l&&s.nodesBetween(l.start,l.end,(function(e,t,n,i){e.type===o&&(a=t)}));var u=-1!==a;return t&&u&&t(e.tr.lift(l,s.resolve(a).depth)),u},Ti=function(e,t,n){return function(i,r){var o=gn(i),s=i.tr;s.setMeta("commandName",t),o.forEach((function(t){if(t.type.isTextblock){var i=void 0,r=e.find((function(e){return e.node===t.type.name}));if(r){var o="rtl"===n?r.rtlStyle:r.style,a={name:o,value:r.step>0?""+r.step+r.unit:""};if(t.attrs.style){var l=new RegExp(o+":\\s?(\\d+)"+r.unit,"i"),u=t.attrs.style.match(l);if(u){var d=parseFloat(u[1])+r.step;d=d<=0?"":d,a.value=""+d+(d?r.unit:"")}}i=wn(t,[a])}i&&mn(s,t,t.type,i)}}));var a=s.docChanged;return a&&r(s.scrollIntoView()),a}},Di=function(e,t,n){var i=gn(e),r=!1;return i.forEach((function(e){if(!r&&e.type.isTextblock&&e.attrs.style){var i=t.find((function(t){return t.node===e.type.name}));if(i){var o="rtl"===n?i.rtlStyle:i.style,s=new RegExp(o+":\\s?\\d+"+i.unit,"i");r=s.test(e.attrs.style)}}})),r},Vi=function(e,t){return Ln(t)(e)},Mi=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],i=e.schema.nodes[t.listsTypes.orderedList],r=e.schema.nodes[t.listsTypes.bulletList],o=!!Lt(i,2)(e.selection),s=!!Lt(r,2)(e.selection);return(o||s)&&An(n)(e)},Ri=function(e,t){var n=e.schema.nodes,i=n[_n.listsTypes.listItem];return(Di(e,t.nodes)||_n.nodes.some((function(t){return n[t.node]&&Sn(e,n[t.node])})))&&!Sn(e,i)},Bi=function(e,t){var n=e.schema.nodes[_n.listsTypes.listItem],i=Ri(e,_n);Vi(e,n)?Ln(n)(e,t):i&&Ti(_n.nodes)(e,t)},Ni=function(e,t){var n=e.schema.nodes,i=n[Hn.listsTypes.listItem],r=Ri(e,Hn);Sn(e,n.blockquote)?Ii(e,t):Mi(e,Hn)?An(i)(e,t):r&&Ti(Hn.nodes)(e,t)},Pi=function(e,t,n){for(var i=t.depth,r=e.nodes[n.bulletList],o=e.nodes[n.orderedList],s=e.nodes[n.listItem],a=t.depth;a>0;a--){var l=t.node(a);if(l.type!==r&&l.type!==o||(i=a),l.type!==r&&l.type!==o&&l.type!==s)break}return i-1};function ji(e){return function(t,n,i){if(!i)return!1;var r=(t=i.state).schema.nodes[e.listType],o=t.selection,s=o.$from,a=o.$to,l=s.node(-2),u=s.node(-3),d=function(e,t,n,i){return 0===function(e,t,n){var i=Array(),r=function(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;var i=t.node(t.depth),r=t;for(;t.depth>=1;)t=e.resolve(t.before(t.depth)),(i=t.node(t.depth))&&-1!==n.indexOf(i.type.name)&&(r=t);return r}(e,t).depth,o=e.resolve(t.start(r));for(;o.pos<=n.start(n.depth);){var s=Math.min(o.depth,r),a=o.node(s);if(a&&i.push(a),0===s)break;var l=e.resolve(o.after(s));if(l.start(s)>=e.nodeSize-2)break;l.depth!==o.depth&&(l=e.resolve(l.pos+2)),o=l.depth?e.resolve(l.start(l.depth)):e.resolve(l.end(l.depth))}return i}(e,t,n).filter((function(e){return e.type!==i})).length}(t.doc,s,a,r);return(l&&l.type===r||u&&u.type===r)&&d?Ai(e)(t,n):(d||(Ai(e)(t,n),t=i.state),function(e,t){void 0===t&&(t={});return bi(jn(e,t),(function(t,n){return t.type===n.type&&t.type===e}))}(r,e.listAttrs)(t,n))}}function Ei(e,t,n,i){var r=i||e.schema.nodes.listItem,s=t.$from,a=t.$to,l=s.blockRange(a,(function(e){return e.childCount&&e.firstChild.type===r}));if(!l||l.depth<2||s.node(l.depth-1).type!==r)return n;var u=l.end,d=a.end(l.depth);return u<d&&(n.step(new Ie(u-1,d,u,d,new p(o.from(r.create(void 0,l.parent.copy())),1,0),1,!0)),l=new $(n.doc.resolve(s.pos),n.doc.resolve(d),l.depth)),n.lift(l,Ve(l)).scrollIntoView()}function Ai(e){return function(t,n){var i=t.tr,r=t.selection,o=r.$from,s=r.$to;return i.doc.nodesBetween(o.pos,s.pos,(function(n,r){if(n.isTextblock||"blockquote"===n.type.name||"div"===n.type.name){var o=new ot(i.doc.resolve(i.mapping.map(r))),s=o.$from.blockRange(o.$to);if(!s||o.$from.parent.type!==t.schema.nodes[e.listItem])return!1;var a=s&&Ve(s);if(null==a)return!1;i.lift(s,a)}})),n&&n(i),!0}}var Li=/list\-style\-type:\s?([\w-]+)/,Fi=function(e){var t=e.style||"",n=Li.exec(t);return n&&n[1]||""},zi=function(e,t,n,i,r){var o=i.listType,s=i.listAttrs,a=void 0===s?{style:null}:s,l=e.selection,u=l.$from.node(l.$from.depth-2),d=l.$to.node(l.$to.depth-2);if(u&&u.type.name===o&&Fi(u.attrs)===Fi(a)&&d&&d.type.name===o&&Fi(d.attrs)===Fi(a)){var c=n.state.schema.nodes,p={bulletList:c[i.bulletList],orderedList:c[i.orderedList],listItem:c[i.listItem]},h=function(e,t){for(var n,i=t.bulletList,r=t.orderedList,o=t.listItem,s=e.depth-1;s>0;s--){var a=e.node(s);if(a.type!==i&&a.type!==r||(n=s),a.type!==i&&a.type!==r&&a.type!==o)break}return n}(l.$to,p),f=function(e,t,n,i,r,o){o||(o=e.schema.nodes.listItem);var s=!1;return r.doc.nodesBetween(t,n,(function(n,a){if(!s&&n.type===o&&a>t){s=!0;for(var l=i+3;l>i+2;){var u=r.doc.resolve(r.mapping.map(a));l=u.depth;var d=r.doc.resolve(r.mapping.map(a+n.textContent.length)),c=new it(u,d);r=Ei(e,c,r,o)}}})),r}(e,l.$to.pos,l.$to.end(h),h,n.state.tr,p.listItem);return(f=function(e,t,n){var i=e.selection,r=i.from,o=i.to,s=e.schema.nodes,a=s.paragraph,l=s.heading,u=[];t.doc.nodesBetween(r,o,(function(e,t){e.type!==a&&e.type!==l||u.push({node:e,pos:t})}));for(var d=u.length-1;d>=0;d--){var c=u[d],p=t.doc.resolve(t.mapping.map(c.pos));if(p.depth>0){var h=void 0;h=c.node.textContent&&c.node.textContent.length>0?t.doc.resolve(t.mapping.map(c.pos+c.node.textContent.length)):t.doc.resolve(t.mapping.map(c.pos+1));var f=p.blockRange(h);f&&t.lift(f,Pi(e.schema,p,n))}}return t}(e,f,i)).setMeta("commandName",r),t(f),!0}return ji(i)(e,t,n)};function Ki(e,t,n){return zi(e,t,n,Nt({listType:Kn.listType},Kn.types))}function _i(e,t,n){return zi(e,t,n,Nt({listType:zn.listType},zn.types))}for(var Hi=function(e,t){return{name:e,value:t}},Wi=[{node:"paragraph",style:[Hi("text-align","left")]},{node:"heading",style:[Hi("text-align","left")]}],Ui=[{node:"paragraph",style:[Hi("text-align","right")]},{node:"heading",style:[Hi("text-align","right")]}],qi=[{node:"paragraph",style:[Hi("text-align","center")]},{node:"heading",style:[Hi("text-align","center")]}],Gi=[{node:"paragraph",style:[Hi("text-align","justify")]},{node:"heading",style:[Hi("text-align","justify")]}],Ji=[{node:"paragraph",style:[Hi("text-align","")]},{node:"heading",style:[Hi("text-align","")]}],Xi={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Yi={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Zi="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),Qi="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),er="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),tr="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),nr="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),ir=Zi&&(tr||+Zi[1]<57)||er&&tr,rr=0;rr<10;rr++)Xi[48+rr]=Xi[96+rr]=String(rr);for(rr=1;rr<=24;rr++)Xi[rr+111]="F"+rr;for(rr=65;rr<=90;rr++)Xi[rr]=String.fromCharCode(rr+32),Yi[rr]=String.fromCharCode(rr);for(var or in Xi)Yi.hasOwnProperty(or)||(Yi[or]=Xi[or]);var sr="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function ar(e){var t,n,i,r,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(var a=0;a<o.length-1;a++){var l=o[a];if(/^(cmd|meta|m)$/i.test(l))r=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))i=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: "+l);sr?r=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),r&&(s="Meta-"+s),i&&(s="Shift-"+s),s}function lr(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}function ur(e){return new yt({props:{handleKeyDown:dr(e)}})}function dr(e){var t=function(e){var t=Object.create(null);for(var n in e)t[ar(n)]=e[n];return t}(e);return function(e,n){var i,r=function(e){var t=!(ir&&(e.ctrlKey||e.altKey||e.metaKey)||(Qi||nr)&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?Yi:Xi)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),o=1==r.length&&" "!=r,s=t[lr(r,n,!o)];if(s&&s(e.state,e.dispatch,e))return!0;if(o&&(n.shiftKey||n.altKey||n.metaKey||r.charCodeAt(0)>127)&&(i=Xi[n.keyCode])&&i!=r){var a=t[lr(i,n,!0)];if(a&&a(e.state,e.dispatch,e))return!0}else if(o&&n.shiftKey){var l=t[lr(r,n,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}var cr={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var pr=/Edge\/(\d+)/.exec(navigator.userAgent),hr=/MSIE \d/.test(navigator.userAgent),fr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),vr=cr.ie=!!(hr||fr||pr);cr.ie_version=hr?document.documentMode||6:fr?+fr[1]:pr?+pr[1]:null,cr.gecko=!vr&&/gecko\/(\d+)/i.test(navigator.userAgent),cr.gecko_version=cr.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var mr=!vr&&/Chrome\/(\d+)/.exec(navigator.userAgent);cr.chrome=!!mr,cr.chrome_version=mr&&+mr[1],cr.safari=!vr&&/Apple Computer/.test(navigator.vendor),cr.ios=cr.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),cr.mac=cr.ios||/Mac/.test(navigator.platform),cr.android=/Android \d/.test(navigator.userAgent),cr.webkit="webkitFontSmoothing"in document.documentElement.style,cr.webkit_version=cr.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var gr=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},br=function(e){var t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},yr=null,kr=function(e,t,n){var i=yr||(yr=document.createRange());return i.setEnd(e,null==n?e.nodeValue.length:n),i.setStart(e,t||0),i},wr=function(e,t,n,i){return n&&(Cr(e,t,n,i,-1)||Cr(e,t,n,i,1))},Sr=/^(img|br|input|textarea|hr)$/i;function Cr(e,t,n,i,r){for(;;){if(e==n&&t==i)return!0;if(t==(r<0?0:xr(e))){var o=e.parentNode;if(1!=o.nodeType||Or(e)||Sr.test(e.nodeName)||"false"==e.contentEditable)return!1;t=gr(e)+(r<0?0:1),e=o}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(r<0?-1:0)]).contentEditable)return!1;t=r<0?xr(e):0}}}function xr(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Or(e){for(var t,n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var $r=function(e){var t=e.isCollapsed;return t&&cr.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function Ir(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function Tr(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Dr(e,t){return"number"==typeof e?e:e[t]}function Vr(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,i=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*i}}function Mr(e,t,n){for(var i=e.someProp("scrollThreshold")||0,r=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument,s=n||e.dom;s;s=br(s))if(1==s.nodeType){var a=s==o.body||1!=s.nodeType,l=a?Tr(o):Vr(s),u=0,d=0;if(t.top<l.top+Dr(i,"top")?d=-(l.top-t.top+Dr(r,"top")):t.bottom>l.bottom-Dr(i,"bottom")&&(d=t.bottom-l.bottom+Dr(r,"bottom")),t.left<l.left+Dr(i,"left")?u=-(l.left-t.left+Dr(r,"left")):t.right>l.right-Dr(i,"right")&&(u=t.right-l.right+Dr(r,"right")),u||d)if(a)o.defaultView.scrollBy(u,d);else{var c=s.scrollLeft,p=s.scrollTop;d&&(s.scrollTop+=d),u&&(s.scrollLeft+=u);var h=s.scrollLeft-c,f=s.scrollTop-p;t={left:t.left-h,top:t.top-f,right:t.right-h,bottom:t.bottom-f}}if(a)break}}function Rr(e){for(var t=[],n=e.ownerDocument;e&&(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e!=n);e=br(e));return t}function Br(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.dom,o=i.top,s=i.left;r.scrollTop!=o+t&&(r.scrollTop=o+t),r.scrollLeft!=s&&(r.scrollLeft=s)}}var Nr=null;function Pr(e,t){for(var n,i,r=2e8,o=0,s=t.top,a=t.top,l=e.firstChild,u=0;l;l=l.nextSibling,u++){var d=void 0;if(1==l.nodeType)d=l.getClientRects();else{if(3!=l.nodeType)continue;d=kr(l).getClientRects()}for(var c=0;c<d.length;c++){var p=d[c];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);var h=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(h<r){n=l,r=h,i=h&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==l.nodeType&&h&&(o=u+(t.left>=(p.left+p.right)/2?1:0));continue}}!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(o=u+1)}}return n&&3==n.nodeType?function(e,t){for(var n=e.nodeValue.length,i=document.createRange(),r=0;r<n;r++){i.setEnd(e,r+1),i.setStart(e,r);var o=Ar(i,1);if(o.top!=o.bottom&&jr(t,o))return{node:e,offset:r+(t.left>=(o.left+o.right)/2?1:0)}}return{node:e,offset:0}}(n,i):!n||r&&1==n.nodeType?{node:e,offset:o}:Pr(n,i)}function jr(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Er(e,t){var n,i,r,o,s=e.dom.ownerDocument;if(s.caretPositionFromPoint)try{var a=s.caretPositionFromPoint(t.left,t.top);a&&(r=(n=a).offsetNode,o=n.offset)}catch(e){}if(!r&&s.caretRangeFromPoint){var l=s.caretRangeFromPoint(t.left,t.top);l&&(r=(i=l).startContainer,o=i.startOffset)}var u,d=(e.root.elementFromPoint?e.root:s).elementFromPoint(t.left,t.top+1);if(!d||!e.dom.contains(1!=d.nodeType?d.parentNode:d)){var c=e.dom.getBoundingClientRect();if(!jr(t,c))return null;if(!(d=function e(t,n,i){var r=t.childNodes.length;if(r&&i.top<i.bottom)for(var o=Math.max(0,Math.min(r-1,Math.floor(r*(n.top-i.top)/(i.bottom-i.top))-2)),s=o;;){var a=t.childNodes[s];if(1==a.nodeType)for(var l=a.getClientRects(),u=0;u<l.length;u++){var d=l[u];if(jr(n,d))return e(a,n,d)}if((s=(s+1)%r)==o)break}return t}(e.dom,t,c)))return null}if(cr.safari)for(var p=d;r&&p;p=br(p))p.draggable&&(r=o=null);if(d=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(d,t),r){if(cr.gecko&&1==r.nodeType&&(o=Math.min(o,r.childNodes.length))<r.childNodes.length){var h,f=r.childNodes[o];"IMG"==f.nodeName&&(h=f.getBoundingClientRect()).right<=t.left&&h.bottom>t.top&&o++}r==e.dom&&o==r.childNodes.length-1&&1==r.lastChild.nodeType&&t.top>r.lastChild.getBoundingClientRect().bottom?u=e.state.doc.content.size:0!=o&&1==r.nodeType&&"BR"==r.childNodes[o-1].nodeName||(u=function(e,t,n,i){for(var r=-1,o=t;o!=e.dom;){var s=e.docView.nearestDesc(o,!0);if(!s)return null;if(s.node.isBlock&&s.parent){var a=s.dom.getBoundingClientRect();if(a.left>i.left||a.top>i.top)r=s.posBefore;else{if(!(a.right<i.left||a.bottom<i.top))break;r=s.posAfter}}o=s.dom.parentNode}return r>-1?r:e.docView.posFromDOM(t,n)}(e,r,o,t))}null==u&&(u=function(e,t,n){var i=Pr(t,n),r=i.node,o=i.offset,s=-1;if(1==r.nodeType&&!r.firstChild){var a=r.getBoundingClientRect();s=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(r,o,s)}(e,d,t));var v=e.docView.nearestDesc(d,!0);return{pos:u,inside:v?v.posAtStart-v.border:-1}}function Ar(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var Lr=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Fr(e,t,n){var i=e.docView.domFromPos(t,n<0?-1:1),r=i.node,o=i.offset,s=cr.webkit||cr.gecko;if(3==r.nodeType){if(!s||!Lr.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){var a=o,l=o,u=n<0?1:-1;return n<0&&!o?(l++,u=-1):n>=0&&o==r.nodeValue.length?(a--,u=1):n<0?a--:l++,zr(Ar(kr(r,a,l),u),u<0)}var d=Ar(kr(r,o,o),n);if(cr.gecko&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){var c=Ar(kr(r,o-1,o-1),-1);if(c.top==d.top){var p=Ar(kr(r,o,o+1),-1);if(p.top!=d.top)return zr(p,p.left<c.left)}}return d}if(!e.state.doc.resolve(t).parent.inlineContent){if(o&&(n<0||o==xr(r))){var h=r.childNodes[o-1];if(1==h.nodeType)return Kr(h.getBoundingClientRect(),!1)}if(o<xr(r)){var f=r.childNodes[o];if(1==f.nodeType)return Kr(f.getBoundingClientRect(),!0)}return Kr(r.getBoundingClientRect(),n>=0)}if(o&&(n<0||o==xr(r))){var v=r.childNodes[o-1],m=3==v.nodeType?kr(v,xr(v)-(s?0:1)):1!=v.nodeType||"BR"==v.nodeName&&v.nextSibling?null:v;if(m)return zr(Ar(m,1),!1)}if(o<xr(r)){for(var g=r.childNodes[o];g.pmViewDesc&&g.pmViewDesc.ignoreForCoords;)g=g.nextSibling;var b=g?3==g.nodeType?kr(g,0,s?0:1):1==g.nodeType?g:null:null;if(b)return zr(Ar(b,-1),!0)}return zr(Ar(3==r.nodeType?kr(r):r,-n),n>=0)}function zr(e,t){if(0==e.width)return e;var n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function Kr(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function _r(e,t,n){var i=e.state,r=e.root.activeElement;i!=t&&e.updateState(t),r!=e.dom&&e.focus();try{return n()}finally{i!=t&&e.updateState(i),r!=e.dom&&r&&r.focus()}}var Hr=/[\u0590-\u08ac]/;var Wr=null,Ur=null,qr=!1;function Gr(e,t,n){return Wr==t&&Ur==n?qr:(Wr=t,Ur=n,qr="up"==n||"down"==n?function(e,t,n){var i=t.selection,r="up"==n?i.$from:i.$to;return _r(e,t,(function(){for(var t=e.docView.domFromPos(r.pos,"up"==n?-1:1).node;;){var i=e.docView.nearestDesc(t,!0);if(!i)break;if(i.node.isBlock){t=i.dom;break}t=i.dom.parentNode}for(var o=Fr(e,r.pos,1),s=t.firstChild;s;s=s.nextSibling){var a=void 0;if(1==s.nodeType)a=s.getClientRects();else{if(3!=s.nodeType)continue;a=kr(s,0,s.nodeValue.length).getClientRects()}for(var l=0;l<a.length;l++){var u=a[l];if(u.bottom>u.top+1&&("up"==n?o.top-u.top>2*(u.bottom-o.top):u.bottom-o.bottom>2*(o.bottom-u.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){var i=t.selection.$head;if(!i.parent.isTextblock)return!1;var r=i.parentOffset,o=!r,s=r==i.parent.content.size,a=e.root.getSelection();return Hr.test(i.parent.textContent)&&a.modify?_r(e,t,(function(){var t=a.getRangeAt(0),r=a.focusNode,o=a.focusOffset,s=a.caretBidiLevel;a.modify("move",n,"character");var l=!(i.depth?e.docView.domAfterPos(i.before()):e.dom).contains(1==a.focusNode.nodeType?a.focusNode:a.focusNode.parentNode)||r==a.focusNode&&o==a.focusOffset;return a.removeAllRanges(),a.addRange(t),null!=s&&(a.caretBidiLevel=s),l})):"left"==n||"backward"==n?o:s}(e,t,n))}var Jr=function(e,t,n,i){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=i,this.dirty=0},Xr={size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0},domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};Jr.prototype.matchesWidget=function(){return!1},Jr.prototype.matchesMark=function(){return!1},Jr.prototype.matchesNode=function(){return!1},Jr.prototype.matchesHack=function(e){return!1},Jr.prototype.parseRule=function(){return null},Jr.prototype.stopEvent=function(){return!1},Xr.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},Xr.border.get=function(){return 0},Jr.prototype.destroy=function(){this.parent=null,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=null);for(var e=0;e<this.children.length;e++)this.children[e].destroy()},Jr.prototype.posBeforeChild=function(e){for(var t=0,n=this.posAtStart;t<this.children.length;t++){var i=this.children[t];if(i==e)return n;n+=i.size}},Xr.posBefore.get=function(){return this.parent.posBeforeChild(this)},Xr.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},Xr.posAfter.get=function(){return this.posBefore+this.size},Xr.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},Jr.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var i,r;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&(!(r=i.pmViewDesc)||r.parent!=this);)i=i.previousSibling;return i?this.posBeforeChild(r)+r.size:this.posAtStart}var o,s;if(e==this.contentDOM)o=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&(!(s=o.pmViewDesc)||s.parent!=this);)o=o.nextSibling;return o?this.posBeforeChild(s):this.posAtEnd}var a;if(e==this.dom&&this.contentDOM)a=t>gr(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))a=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var l=e;;l=l.parentNode){if(l==this.dom){a=!1;break}if(l.parentNode.firstChild!=l)break}if(null==a&&t==e.childNodes.length)for(var u=e;;u=u.parentNode){if(u==this.dom){a=!0;break}if(u.parentNode.lastChild!=u)break}}return(null==a?n>0:a)?this.posAtEnd:this.posAtStart},Jr.prototype.nearestDesc=function(e,t){for(var n=!0,i=e;i;i=i.parentNode){var r=this.getDesc(i);if(r&&(!t||r.node)){if(!n||!r.nodeDOM||(1==r.nodeDOM.nodeType?r.nodeDOM.contains(1==e.nodeType?e:e.parentNode):r.nodeDOM==e))return r;n=!1}}},Jr.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},Jr.prototype.posFromDOM=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=this.getDesc(i);if(r)return r.localPosFromDOM(e,t,n)}return-1},Jr.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var i=this.children[t],r=n+i.size;if(n==e&&r!=n){for(;!i.border&&i.children.length;)i=i.children[0];return i}if(e<r)return i.descAt(e-n-i.border);n=r}},Jr.prototype.domFromPos=function(e,t){if(!this.contentDOM)return{node:this.dom,offset:0};for(var n=0,i=0,r=0;n<this.children.length;n++){var o=this.children[n],s=r+o.size;if(s>e||o instanceof ro){i=e-r;break}r=s}if(i)return this.children[n].domFromPos(i-this.children[n].border,t);for(var a=void 0;n&&!(a=this.children[n-1]).size&&a instanceof Zr&&a.widget.type.side>=0;n--);if(t<=0){for(var l,u=!0;(l=n?this.children[n-1]:null)&&l.dom.parentNode!=this.contentDOM;n--,u=!1);return l&&t&&u&&!l.border&&!l.domAtom?l.domFromPos(l.size,t):{node:this.contentDOM,offset:l?gr(l.dom)+1:0}}for(var d,c=!0;(d=n<this.children.length?this.children[n]:null)&&d.dom.parentNode!=this.contentDOM;n++,c=!1);return d&&c&&!d.border&&!d.domAtom?d.domFromPos(0,t):{node:this.contentDOM,offset:d?gr(d.dom):this.contentDOM.childNodes.length}},Jr.prototype.parseRange=function(e,t,n){if(void 0===n&&(n=0),0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var i=-1,r=-1,o=n,s=0;;s++){var a=this.children[s],l=o+a.size;if(-1==i&&e<=l){var u=o+a.border;if(e>=u&&t<=l-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,u);e=o;for(var d=s;d>0;d--){var c=this.children[d-1];if(c.size&&c.dom.parentNode==this.contentDOM&&!c.emptyChildAt(1)){i=gr(c.dom)+1;break}e-=c.size}-1==i&&(i=0)}if(i>-1&&(l>t||s==this.children.length-1)){t=l;for(var p=s+1;p<this.children.length;p++){var h=this.children[p];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){r=gr(h.dom);break}t+=h.size}-1==r&&(r=this.contentDOM.childNodes.length);break}o=l}return{node:this.contentDOM,from:e,to:t,fromOffset:i,toOffset:r}},Jr.prototype.emptyChildAt=function(e){if(this.border||!this.contentDOM||!this.children.length)return!1;var t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)},Jr.prototype.domAfterPos=function(e){var t=this.domFromPos(e,0),n=t.node,i=t.offset;if(1!=n.nodeType||i==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[i]},Jr.prototype.setSelection=function(e,t,n,i){for(var r=Math.min(e,t),o=Math.max(e,t),s=0,a=0;s<this.children.length;s++){var l=this.children[s],u=a+l.size;if(r>a&&o<u)return l.setSelection(e-a-l.border,t-a-l.border,n,i);a=u}var d=this.domFromPos(e,e?-1:1),c=t==e?d:this.domFromPos(t,t?-1:1),p=n.getSelection(),h=!1;if((cr.gecko||cr.safari)&&e==t){var f=d.node,v=d.offset;if(3==f.nodeType){if((h=v&&"\n"==f.nodeValue[v-1])&&v==f.nodeValue.length)for(var m=f,g=void 0;m;m=m.parentNode){if(g=m.nextSibling){"BR"==g.nodeName&&(d=c={node:g.parentNode,offset:gr(g)+1});break}var b=m.pmViewDesc;if(b&&b.node&&b.node.isBlock)break}}else{var y=f.childNodes[v-1];h=y&&("BR"==y.nodeName||"false"==y.contentEditable)}}if(cr.gecko&&p.focusNode&&p.focusNode!=c.node&&1==p.focusNode.nodeType){var k=p.focusNode.childNodes[p.focusOffset];k&&"false"==k.contentEditable&&(i=!0)}if(i||h&&cr.safari||!wr(d.node,d.offset,p.anchorNode,p.anchorOffset)||!wr(c.node,c.offset,p.focusNode,p.focusOffset)){var w=!1;if((p.extend||e==t)&&!h){p.collapse(d.node,d.offset);try{e!=t&&p.extend(c.node,c.offset),w=!0}catch(e){if(!(e instanceof DOMException))throw e}}if(!w){if(e>t){var S=d;d=c,c=S}var C=document.createRange();C.setEnd(c.node,c.offset),C.setStart(d.node,d.offset),p.removeAllRanges(),p.addRange(C)}}},Jr.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},Xr.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},Jr.prototype.markDirty=function(e,t){for(var n=0,i=0;i<this.children.length;i++){var r=this.children[i],o=n+r.size;if(n==o?e<=o&&t>=n:e<o&&t>n){var s=n+r.border,a=o-r.border;if(e>=s&&t<=a)return this.dirty=e==n||t==o?2:1,void(e!=s||t!=a||!r.contentLost&&r.dom.parentNode==this.contentDOM?r.markDirty(e-s,t-s):r.dirty=3);r.dirty=r.dom!=r.contentDOM||r.dom.parentNode!=this.contentDOM||r.children.length?3:2}n=o}this.dirty=2},Jr.prototype.markParentsDirty=function(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?2:1;t.dirty<n&&(t.dirty=n)}},Xr.domAtom.get=function(){return!1},Xr.ignoreForCoords.get=function(){return!1},Object.defineProperties(Jr.prototype,Xr);var Yr=[],Zr=function(e){function t(t,n,i,r){var o,s=n.type.toDOM;if("function"==typeof s&&(s=s(i,(function(){return o?o.parent?o.parent.posBeforeChild(o):void 0:r}))),!n.type.spec.raw){if(1!=s.nodeType){var a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable=!1,s.classList.add("ProseMirror-widget")}e.call(this,t,Yr,s,null),this.widget=n,o=this}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.matchesWidget=function(e){return 0==this.dirty&&e.type.eq(this.widget.type)},t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.stopEvent=function(e){var t=this.widget.spec.stopEvent;return!!t&&t(e)},t.prototype.ignoreMutation=function(e){return"selection"!=e.type||this.widget.spec.ignoreSelection},t.prototype.destroy=function(){this.widget.type.destroy(this.dom),e.prototype.destroy.call(this)},n.domAtom.get=function(){return!0},Object.defineProperties(t.prototype,n),t}(Jr),Qr=function(e){function t(t,n,i,r){e.call(this,t,Yr,n,null),this.textDOM=i,this.text=r}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0}};return n.size.get=function(){return this.text.length},t.prototype.localPosFromDOM=function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t},t.prototype.domFromPos=function(e){return{node:this.textDOM,offset:e}},t.prototype.ignoreMutation=function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue},Object.defineProperties(t.prototype,n),t}(Jr),eo=function(e){function t(t,n,i,r){e.call(this,t,[],i,r),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,i,r){var o=r.nodeViews[n.type.name],s=o&&o(n,r,i);return s&&s.dom||(s=ce.renderSpec(document,n.type.spec.toDOM(n,i))),new t(e,n,s.dom,s.contentDOM||s.dom)},t.prototype.parseRule=function(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},t.prototype.matchesMark=function(e){return 3!=this.dirty&&this.mark.eq(e)},t.prototype.markDirty=function(t,n){if(e.prototype.markDirty.call(this,t,n),0!=this.dirty){for(var i=this.parent;!i.node;)i=i.parent;i.dirty<this.dirty&&(i.dirty=this.dirty),this.dirty=0}},t.prototype.slice=function(e,n,i){var r=t.create(this.parent,this.mark,!0,i),o=this.children,s=this.size;n<s&&(o=go(o,n,s,i)),e>0&&(o=go(o,0,e,i));for(var a=0;a<o.length;a++)o[a].parent=r;return r.children=o,r},t}(Jr),to=function(e){function t(t,n,i,r,o,s,a,l,u){e.call(this,t,n.isLeaf?Yr:[],o,s),this.nodeDOM=a,this.node=n,this.outerDeco=i,this.innerDeco=r,s&&this.updateChildren(l,u)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0},border:{configurable:!0},domAtom:{configurable:!0}};return t.create=function(e,n,i,r,o,s){var a,l,u=o.nodeViews[n.type.name],d=u&&u(n,o,(function(){return l?l.parent?l.parent.posBeforeChild(l):void 0:s}),i,r),c=d&&d.dom,p=d&&d.contentDOM;if(n.isText)if(c){if(3!=c.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else c=document.createTextNode(n.text);else c||(c=(a=ce.renderSpec(document,n.type.spec.toDOM(n))).dom,p=a.contentDOM);p||n.isText||"BR"==c.nodeName||(c.hasAttribute("contenteditable")||(c.contentEditable=!1),n.type.spec.draggable&&(c.draggable=!0));var h=c;return c=po(c,i,n),d?l=new oo(e,n,i,r,c,p,h,d,o,s+1):n.isText?new io(e,n,i,r,c,h,o):new t(e,n,i,r,c,p,h,o,s+1)},t.prototype.parseRule=function(){var e=this;if(this.node.type.spec.reparseInView)return null;var t={node:this.node.type.name,attrs:this.node.attrs};return"pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?t.contentElement=this.contentDOM:t.getContent=function(){return e.contentDOM?o.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&ho(t,this.outerDeco)&&n.eq(this.innerDeco)},n.size.get=function(){return this.node.nodeSize},n.border.get=function(){return this.node.isLeaf?0:1},t.prototype.updateChildren=function(e,t){var n=this,i=this.node.inlineContent,r=t,o=e.composing&&this.localCompositionInfo(e,t),s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new vo(this,s&&s.node);!function(e,t,n,i){var r=t.locals(e),o=0;if(0==r.length){for(var s=0;s<e.childCount;s++){var a=e.child(s);i(a,r,t.forChild(o,a),s),o+=a.nodeSize}return}for(var l=0,u=[],d=null,c=0;;){if(l<r.length&&r[l].to==o){for(var p=r[l++],h=void 0;l<r.length&&r[l].to==o;)(h||(h=[p])).push(r[l++]);if(h){h.sort(mo);for(var f=0;f<h.length;f++)n(h[f],c,!!d)}else n(p,c,!!d)}var v=void 0,m=void 0;if(d)m=-1,v=d,d=null;else{if(!(c<e.childCount))break;m=c,v=e.child(c++)}for(var g=0;g<u.length;g++)u[g].to<=o&&u.splice(g--,1);for(;l<r.length&&r[l].from<=o&&r[l].to>o;)u.push(r[l++]);var b=o+v.nodeSize;if(v.isText){var y=b;l<r.length&&r[l].from<y&&(y=r[l].from);for(var k=0;k<u.length;k++)u[k].to<y&&(y=u[k].to);y<b&&(d=v.cut(y-o),v=v.cut(0,y-o),b=y,m=-1)}var w=u.length?v.isInline&&!v.isLeaf?u.filter((function(e){return!e.inline})):u.slice():Yr;i(v,w,t.forChild(o,v),m),o=b}}(this.node,this.innerDeco,(function(t,o,s){t.spec.marks?l.syncToMarks(t.spec.marks,i,e):t.type.side>=0&&!s&&l.syncToMarks(o==n.node.childCount?d.none:n.node.child(o).marks,i,e),l.placeWidget(t,e,r)}),(function(t,n,s,u){var d;l.syncToMarks(t.marks,i,e),l.findNodeMatch(t,n,s,u)||a&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(d=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(t,n,s,d,e)||l.updateNextNode(t,n,s,e,u)||l.addNode(t,n,s,e,r),r+=t.nodeSize})),l.syncToMarks(Yr,i,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),function e(t,n,i){for(var r=t.firstChild,o=!1,s=0;s<n.length;s++){var a=n[s],l=a.dom;if(l.parentNode==t){for(;l!=r;)r=fo(r),o=!0;r=r.nextSibling}else o=!0,t.insertBefore(l,r);if(a instanceof eo){var u=r?r.previousSibling:t.lastChild;e(a.contentDOM,a.children,i),r=u?u.nextSibling:t.firstChild}}for(;r;)r=fo(r),o=!0;o&&i.trackWrites==t&&(i.trackWrites=null)}(this.contentDOM,this.children,e),cr.ios&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))},t.prototype.localCompositionInfo=function(e,t){var n=e.state.selection,i=n.from,r=n.to;if(!(!(e.state.selection instanceof it)||i<t||r>t+this.node.content.size)){var o=e.root.getSelection(),s=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=xr(e)}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(o.focusNode,o.focusOffset);if(s&&this.dom.contains(s.parentNode)){if(this.node.inlineContent){var a=s.nodeValue,l=function(e,t,n,i){for(var r=0,o=0;r<e.childCount&&o<=i;){var s=e.child(r++),a=o;if(o+=s.nodeSize,s.isText){for(var l=s.text;r<e.childCount;){var u=e.child(r++);if(o+=u.nodeSize,!u.isText)break;l+=u.text}if(o>=n&&a<i){var d=l.lastIndexOf(t,i-a-1);if(d>=0&&d+t.length+a>=n)return a+d}}}return-1}(this.node.content,a,i-t,r-t);return l<0?null:{node:s,pos:l,text:a}}return{node:s,pos:-1}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,i=t.pos,r=t.text;if(!this.getDesc(n)){for(var o=n;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=null)}var s=new Qr(this,o,n,r);e.compositionNodes.push(s),this.children=go(this.children,i,i+r.length,e,s)}},t.prototype.update=function(e,t,n,i){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,i),!0)},t.prototype.updateInner=function(e,t,n,i){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=0},t.prototype.updateOuterDeco=function(e){if(!ho(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=uo(this.dom,this.nodeDOM,lo(this.outerDeco,this.node,t),lo(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}},t.prototype.selectNode=function(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)},t.prototype.deselectNode=function(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")},n.domAtom.get=function(){return this.node.isAtom},Object.defineProperties(t.prototype,n),t}(Jr);function no(e,t,n,i,r){return po(i,t,e),new to(null,e,t,n,i,i,i,r,0)}var io=function(e){function t(t,n,i,r,o,s,a){e.call(this,t,n,i,r,o,null,s,a)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.parseRule=function(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}},t.prototype.update=function(e,t,n,i){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=0,!0)},t.prototype.inParent=function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1},t.prototype.domFromPos=function(e){return{node:this.nodeDOM,offset:e}},t.prototype.localPosFromDOM=function(t,n,i){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,i)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,i){var r=this.node.cut(e,n),o=document.createTextNode(r.text);return new t(this.parent,r,this.outerDeco,this.innerDeco,o,o,i)},t.prototype.markDirty=function(t,n){e.prototype.markDirty.call(this,t,n),this.dom==this.nodeDOM||0!=t&&n!=this.nodeDOM.nodeValue.length||(this.dirty=3)},n.domAtom.get=function(){return!1},Object.defineProperties(t.prototype,n),t}(to),ro=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};return t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.matchesHack=function(e){return 0==this.dirty&&this.dom.nodeName==e},n.domAtom.get=function(){return!0},n.ignoreForCoords.get=function(){return"IMG"==this.dom.nodeName},Object.defineProperties(t.prototype,n),t}(Jr),oo=function(e){function t(t,n,i,r,o,s,a,l,u,d){e.call(this,t,n,i,r,o,s,a,u,d),this.spec=l}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.update=function(t,n,i,r){if(3==this.dirty)return!1;if(this.spec.update){var o=this.spec.update(t,n,i);return o&&this.updateInner(t,n,i,r),o}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,i,r)},t.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():e.prototype.selectNode.call(this)},t.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():e.prototype.deselectNode.call(this)},t.prototype.setSelection=function(t,n,i,r){this.spec.setSelection?this.spec.setSelection(t,n,i):e.prototype.setSelection.call(this,t,n,i,r)},t.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),e.prototype.destroy.call(this)},t.prototype.stopEvent=function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)},t.prototype.ignoreMutation=function(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):e.prototype.ignoreMutation.call(this,t)},t}(to);function so(e){e&&(this.nodeName=e)}so.prototype=Object.create(null);var ao=[new so];function lo(e,t,n){if(0==e.length)return ao;for(var i=n?ao[0]:new so,r=[i],o=0;o<e.length;o++){var s=e[o].type.attrs;if(s)for(var a in s.nodeName&&r.push(i=new so(s.nodeName)),s){var l=s[a];null!=l&&(n&&1==r.length&&r.push(i=new so(t.isInline?"span":"div")),"class"==a?i.class=(i.class?i.class+" ":"")+l:"style"==a?i.style=(i.style?i.style+";":"")+l:"nodeName"!=a&&(i[a]=l))}}return r}function uo(e,t,n,i){if(n==ao&&i==ao)return t;for(var r=t,o=0;o<i.length;o++){var s=i[o],a=n[o];if(o){var l=void 0;a&&a.nodeName==s.nodeName&&r!=e&&(l=r.parentNode)&&l.tagName.toLowerCase()==s.nodeName||((l=document.createElement(s.nodeName)).pmIsDeco=!0,l.appendChild(r),a=ao[0]),r=l}co(r,a||ao[0],s)}return r}function co(e,t,n){for(var i in t)"class"==i||"style"==i||"nodeName"==i||i in n||e.removeAttribute(i);for(var r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){for(var o=t.class?t.class.split(" ").filter(Boolean):Yr,s=n.class?n.class.split(" ").filter(Boolean):Yr,a=0;a<o.length;a++)-1==s.indexOf(o[a])&&e.classList.remove(o[a]);for(var l=0;l<s.length;l++)-1==o.indexOf(s[l])&&e.classList.add(s[l]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style)for(var u,d=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;u=d.exec(t.style);)e.style.removeProperty(u[1]);n.style&&(e.style.cssText+=n.style)}}function po(e,t,n){return uo(e,e,ao,lo(t,n,1!=e.nodeType))}function ho(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function fo(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var vo=function(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1,this.preMatch=function(e,t){var n=t,i=n.children.length,r=e.childCount,o=new Map,s=[];e:for(;r>0;){for(var a=void 0;;)if(i){var l=n.children[i-1];if(!(l instanceof eo)){a=l,i--;break}n=l,i=l.children.length}else{if(n==t)break e;i=n.parent.children.indexOf(n),n=n.parent}var u=a.node;if(u){if(u!=e.child(r-1))break;--r,o.set(a,r),s.push(a)}}return{index:r,matched:o,matches:s.reverse()}}(e.node.content,e)};function mo(e,t){return e.type.side-t.type.side}function go(e,t,n,i,r){for(var o=[],s=0,a=0;s<e.length;s++){var l=e[s],u=a,d=a+=l.size;u>=n||d<=t?o.push(l):(u<t&&o.push(l.slice(0,t-u,i)),r&&(o.push(r),r=null),d>n&&o.push(l.slice(n-u,l.size,i)))}return o}function bo(e,t){var n=e.root.getSelection(),i=e.state.doc;if(!n.focusNode)return null;var r=e.docView.nearestDesc(n.focusNode),o=r&&0==r.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(s<0)return null;var a,l,u=i.resolve(s);if($r(n)){for(a=u;r&&!r.node;)r=r.parent;if(r&&r.node.isAtom&&ot.isSelectable(r.node)&&r.parent&&(!r.node.isInline||!function(e,t,n){for(var i=0==t,r=t==xr(e);i||r;){if(e==n)return!0;var o=gr(e);if(!(e=e.parentNode))return!1;i=i&&0==o,r=r&&o==xr(e)}}(n.focusNode,n.focusOffset,r.dom))){var d=r.posBefore;l=new ot(s==d?u:i.resolve(d))}}else{var c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(c<0)return null;a=i.resolve(c)}l||(l=Io(e,a,u,"pointer"==t||e.state.selection.head<u.pos&&!o?1:-1));return l}function yo(e){return e.editable?e.hasFocus():To(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function ko(e,t){var n=e.state.selection;if(Oo(e,n),yo(e)){if(!t&&e.mouseDown&&e.mouseDown.allowDefault&&cr.chrome){var i=e.root.getSelection(),r=e.domObserver.currentSelection;if(i.anchorNode&&wr(i.anchorNode,i.anchorOffset,r.anchorNode,r.anchorOffset))return e.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.root.getSelection(),n=document.createRange(),i=e.cursorWrapper.dom,r="IMG"==i.nodeName;r?n.setEnd(i.parentNode,gr(i)+1):n.setEnd(i,0);n.collapse(!1),t.removeAllRanges(),t.addRange(n),!r&&!e.state.selection.visible&&cr.ie&&cr.ie_version<=11&&(i.disabled=!0,i.disabled=!1)}(e);else{var o,s,a=n.anchor,l=n.head;!wo||n instanceof it||(n.$from.parent.inlineContent||(o=So(e,n.from)),n.empty||n.$from.parent.inlineContent||(s=So(e,n.to))),e.docView.setSelection(a,l,e.root,t),wo&&(o&&xo(o),s&&xo(s)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);var n=e.root.getSelection(),i=n.anchorNode,r=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==i&&n.anchorOffset==r||(t.removeEventListener("selectionchange",e.hideSelectionGuard),setTimeout((function(){yo(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}vo.prototype.destroyBetween=function(e,t){if(e!=t){for(var n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}},vo.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},vo.prototype.syncToMarks=function(e,t,n){for(var i=0,r=this.stack.length>>1,o=Math.min(r,e.length);i<o&&(i==r-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&!1!==e[i].type.spec.spanning;)i++;for(;i<r;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),r--;for(;r<e.length;){this.stack.push(this.top,this.index+1);for(var s=-1,a=this.index;a<Math.min(this.index+3,this.top.children.length);a++)if(this.top.children[a].matchesMark(e[r])){s=a;break}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{var l=eo.create(this.top,e[r],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,r++}},vo.prototype.findNodeMatch=function(e,t,n,i){var r,o=-1;if(i>=this.preMatch.index&&(r=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&r.matchesNode(e,t,n))o=this.top.children.indexOf(r,this.index);else for(var s=this.index,a=Math.min(this.top.children.length,s+5);s<a;s++){var l=this.top.children[s];if(l.matchesNode(e,t,n)&&!this.preMatch.matched.has(l)){o=s;break}}return!(o<0)&&(this.destroyBetween(this.index,o),this.index++,!0)},vo.prototype.updateNodeAt=function(e,t,n,i,r){return!!this.top.children[i].update(e,t,n,r)&&(this.destroyBetween(this.index,i),this.index=i+1,!0)},vo.prototype.findIndexWithChild=function(e){for(;;){var t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){var n=e.pmViewDesc;if(n)for(var i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==n)return i;return-1}e=t}},vo.prototype.updateNextNode=function(e,t,n,i,r){for(var o=this.index;o<this.top.children.length;o++){var s=this.top.children[o];if(s instanceof to){var a=this.preMatch.matched.get(s);if(null!=a&&a!=r)return!1;var l=s.dom;if(!(this.lock&&(l==this.lock||1==l.nodeType&&l.contains(this.lock.parentNode))&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&ho(t,s.outerDeco)))&&s.update(e,t,n,i))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},vo.prototype.addNode=function(e,t,n,i,r){this.top.children.splice(this.index++,0,to.create(this.top,e,t,n,i,r)),this.changed=!0},vo.prototype.placeWidget=function(e,t,n){var i=this.index<this.top.children.length?this.top.children[this.index]:null;if(!i||!i.matchesWidget(e)||e!=i.widget&&i.widget.type.toDOM.parentNode){var r=new Zr(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++},vo.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof eo;)e=e.children[e.children.length-1];e&&e instanceof io&&!/\n$/.test(e.node.text)||((cr.safari||cr.chrome)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG"),this.addHackNode("BR"))},vo.prototype.addHackNode=function(e){if(this.index<this.top.children.length&&this.top.children[this.index].matchesHack(e))this.index++;else{var t=document.createElement(e);"IMG"==e&&(t.className="ProseMirror-separator"),"BR"==e&&(t.className="ProseMirror-trailingBreak"),this.top.children.splice(this.index++,0,new ro(this.top,Yr,t,null)),this.changed=!0}};var wo=cr.safari||cr.chrome&&cr.chrome_version<63;function So(e,t){var n=e.docView.domFromPos(t,0),i=n.node,r=n.offset,o=r<i.childNodes.length?i.childNodes[r]:null,s=r?i.childNodes[r-1]:null;if(cr.safari&&o&&"false"==o.contentEditable)return Co(o);if(!(o&&"false"!=o.contentEditable||s&&"false"!=s.contentEditable)){if(o)return Co(o);if(s)return Co(s)}}function Co(e){return e.contentEditable="true",cr.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function xo(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Oo(e,t){if(t instanceof ot){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&($o(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else $o(e)}function $o(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Io(e,t,n,i){return e.someProp("createSelectionBetween",(function(i){return i(e,t,n)}))||it.between(t,n,i)}function To(e){var t=e.root.getSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function Do(e,t){var n=e.selection,i=n.$anchor,r=n.$head,o=t>0?i.max(r):i.min(r),s=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return s&&et.findFrom(s,t)}function Vo(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Mo(e,t,n){var i=e.state.selection;if(!(i instanceof it)){if(i instanceof ot&&i.node.isInline)return Vo(e,new it(t>0?i.$to:i.$from));var r=Do(e.state,t);return!!r&&Vo(e,r)}if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var o=Do(e.state,t);return!!(o&&o instanceof ot)&&Vo(e,o)}if(!(cr.mac&&n.indexOf("m")>-1)){var s,a=i.$head,l=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!l||l.isText)return!1;var u=t<0?a.pos-l.nodeSize:a.pos;return!!(l.isAtom||(s=e.docView.descAt(u))&&!s.contentDOM)&&(ot.isSelectable(l)?Vo(e,new ot(t<0?e.state.doc.resolve(a.pos-l.nodeSize):a)):!!cr.webkit&&Vo(e,new it(e.state.doc.resolve(t<0?u:u+l.nodeSize))))}}function Ro(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Bo(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function No(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){var r,o,s=!1;for(cr.gecko&&1==n.nodeType&&i<Ro(n)&&Bo(n.childNodes[i])&&(s=!0);;)if(i>0){if(1!=n.nodeType)break;var a=n.childNodes[i-1];if(Bo(a))r=n,o=--i;else{if(3!=a.nodeType)break;i=(n=a).nodeValue.length}}else{if(jo(n))break;for(var l=n.previousSibling;l&&Bo(l);)r=n.parentNode,o=gr(l),l=l.previousSibling;if(l)i=Ro(n=l);else{if((n=n.parentNode)==e.dom)break;i=0}}s?Eo(e,t,n,i):r&&Eo(e,t,r,o)}}function Po(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){for(var r,o,s=Ro(n);;)if(i<s){if(1!=n.nodeType)break;if(!Bo(n.childNodes[i]))break;r=n,o=++i}else{if(jo(n))break;for(var a=n.nextSibling;a&&Bo(a);)r=a.parentNode,o=gr(a)+1,a=a.nextSibling;if(a)i=0,s=Ro(n=a);else{if((n=n.parentNode)==e.dom)break;i=s=0}}r&&Eo(e,t,r,o)}}function jo(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Eo(e,t,n,i){if($r(t)){var r=document.createRange();r.setEnd(n,i),r.setStart(n,i),t.removeAllRanges(),t.addRange(r)}else t.extend&&t.extend(n,i);e.domObserver.setCurSelection();var o=e.state;setTimeout((function(){e.state==o&&ko(e)}),50)}function Ao(e,t,n){var i=e.state.selection;if(i instanceof it&&!i.empty||n.indexOf("s")>-1)return!1;if(cr.mac&&n.indexOf("m")>-1)return!1;var r=i.$from,o=i.$to;if(!r.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var s=Do(e.state,t);if(s&&s instanceof ot)return Vo(e,s)}if(!r.parent.inlineContent){var a=t<0?r:o,l=i instanceof at?et.near(a,t):et.findFrom(a,t);return!!l&&Vo(e,l)}return!1}function Lo(e,t){if(!(e.state.selection instanceof it))return!0;var n=e.state.selection,i=n.$head,r=n.$anchor,o=n.empty;if(!i.sameParent(r))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var s=!i.textOffset&&(t<0?i.nodeBefore:i.nodeAfter);if(s&&!s.isText){var a=e.state.tr;return t<0?a.delete(i.pos-s.nodeSize,i.pos):a.delete(i.pos,i.pos+s.nodeSize),e.dispatch(a),!0}return!1}function Fo(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function zo(e,t){var n=t.keyCode,i=function(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);return 8==n||cr.mac&&72==n&&"c"==i?Lo(e,-1)||No(e):46==n||cr.mac&&68==n&&"c"==i?Lo(e,1)||Po(e):13==n||27==n||(37==n?Mo(e,-1,i)||No(e):39==n?Mo(e,1,i)||Po(e):38==n?Ao(e,-1,i)||No(e):40==n?function(e){if(cr.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n&&1==n.nodeType&&0==i&&n.firstChild&&"false"==n.firstChild.contentEditable){var r=n.firstChild;Fo(e,r,!0),setTimeout((function(){return Fo(e,r,!1)}),20)}}}(e)||Ao(e,1,i)||Po(e):i==(cr.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}function Ko(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(cr.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(e.parentNode.lastChild==e||cr.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function _o(e,t,n,i,r){if(t<0){var s=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,a=bo(e,s);if(a&&!e.state.selection.eq(a)){var l=e.state.tr.setSelection(a);"pointer"==s?l.setMeta("pointer",!0):"key"==s&&l.scrollIntoView(),e.dispatch(l)}}else{var u=e.state.doc.resolve(t),d=u.sharedDepth(n);t=u.before(d+1),n=e.state.doc.resolve(n).after(d+1);var c=e.state.selection,p=function(e,t,n){var i=e.docView.parseRange(t,n),r=i.node,o=i.fromOffset,s=i.toOffset,a=i.from,l=i.to,u=e.root.getSelection(),d=null,c=u.anchorNode;if(c&&e.dom.contains(1==c.nodeType?c:c.parentNode)&&(d=[{node:c,offset:u.anchorOffset}],$r(u)||d.push({node:u.focusNode,offset:u.focusOffset})),cr.chrome&&8===e.lastKeyCode)for(var p=s;p>o;p--){var h=r.childNodes[p-1],f=h.pmViewDesc;if("BR"==h.nodeName&&!f){s=p;break}if(!f||f.size)break}var v=e.state.doc,m=e.someProp("domParser")||ee.fromSchema(e.state.schema),g=v.resolve(a),b=null,y=m.parse(r,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:o,to:s,preserveWhitespace:"pre"!=g.parent.type.whitespace||"full",editableContent:!0,findPositions:d,ruleFromNode:Ko,context:g});if(d&&null!=d[0].pos){var k=d[0].pos,w=d[1]&&d[1].pos;null==w&&(w=k),b={anchor:k+a,head:w+a}}return{doc:y,sel:b,from:a,to:l}}(e,t,n);if(cr.chrome&&e.cursorWrapper&&p.sel&&p.sel.anchor==e.cursorWrapper.deco.from){var h=e.cursorWrapper.deco.type.toDOM.nextSibling,f=h&&h.nodeValue?h.nodeValue.length:1;p.sel={anchor:p.sel.anchor+f,head:p.sel.anchor+f}}var v,m,g=e.state.doc,b=g.slice(p.from,p.to);8===e.lastKeyCode&&Date.now()-100<e.lastKeyCodeTime?(v=e.state.selection.to,m="end"):(v=e.state.selection.from,m="start"),e.lastKeyCode=null;var y=function(e,t,n,i,r){var o=e.findDiffStart(t,n);if(null==o)return null;var s=e.findDiffEnd(t,n+e.size,n+t.size),a=s.a,l=s.b;if("end"==r){var u=Math.max(0,o-Math.min(a,l));i-=a+u-o}if(a<o&&e.size<t.size){l=(o-=i<=o&&i>=a?o-i:0)+(l-a),a=o}else if(l<o){a=(o-=i<=o&&i>=l?o-i:0)+(a-l),l=o}return{start:o,endA:a,endB:l}}(b.content,p.doc.content,p.from,v,m);if(!y){if(!(i&&c instanceof it&&!c.empty&&c.$head.sameParent(c.$anchor))||e.composing||p.sel&&p.sel.anchor!=p.sel.head){if((cr.ios&&e.lastIOSEnter>Date.now()-225||cr.android)&&r.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName}))&&e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))})))return void(e.lastIOSEnter=0);if(p.sel){var k=Ho(e,e.state.doc,p.sel);k&&!k.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(k))}return}y={start:c.from,endA:c.to,endB:c.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof it&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),cr.ie&&cr.ie_version<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>p.from&&"  "==p.doc.textBetween(y.start-p.from-1,y.start-p.from+1)&&(y.start--,y.endA--,y.endB--);var w,S=p.doc.resolveNoCache(y.start-p.from),C=p.doc.resolveNoCache(y.endB-p.from),x=S.sameParent(C)&&S.parent.inlineContent;if((cr.ios&&e.lastIOSEnter>Date.now()-225&&(!x||r.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!x&&S.pos<p.doc.content.size&&(w=et.findFrom(p.doc.resolve(S.pos+1),1,!0))&&w.head==C.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>y.start&&function(e,t,n,i,r){if(!i.parent.isTextblock||n-t<=r.pos-i.pos||Wo(i,!0,!1)<r.pos)return!1;var o=e.resolve(t);if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;var s=e.resolve(Wo(o,!0,!0));if(!s.parent.isTextblock||s.pos>n||Wo(s,!0,!1)<n)return!1;return i.parent.content.cut(i.parentOffset).eq(s.parent.content)}(g,y.start,y.endA,S,C)&&e.someProp("handleKeyDown",(function(t){return t(e,Ir(8,"Backspace"))})))cr.android&&cr.chrome&&e.domObserver.suppressSelectionUpdates();else{cr.chrome&&cr.android&&y.toB==y.from&&(e.lastAndroidDelete=Date.now()),cr.android&&!x&&S.start()!=C.start()&&0==C.parentOffset&&S.depth==C.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==y.endA&&(y.endB-=2,C=p.doc.resolveNoCache(y.endB-p.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))}))}),20));var O,$,I,T,D=y.start,V=y.endA;if(x)if(S.pos==C.pos)cr.ie&&cr.ie_version<=11&&0==S.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return ko(e)}),20)),O=e.state.tr.delete(D,V),$=g.resolve(y.start).marksAcross(g.resolve(y.endA));else if(y.endA==y.endB&&(T=g.resolve(y.start))&&(I=function(e,t){for(var n,i,r,s=e.firstChild.marks,a=t.firstChild.marks,l=s,u=a,d=0;d<a.length;d++)l=a[d].removeFromSet(l);for(var c=0;c<s.length;c++)u=s[c].removeFromSet(u);if(1==l.length&&0==u.length)i=l[0],n="add",r=function(e){return e.mark(i.addToSet(e.marks))};else{if(0!=l.length||1!=u.length)return null;i=u[0],n="remove",r=function(e){return e.mark(i.removeFromSet(e.marks))}}for(var p=[],h=0;h<t.childCount;h++)p.push(r(t.child(h)));if(o.from(p).eq(e))return{mark:i,type:n}}(S.parent.content.cut(S.parentOffset,C.parentOffset),T.parent.content.cut(T.parentOffset,y.endA-T.start()))))O=e.state.tr,"add"==I.type?O.addMark(D,V,I.mark):O.removeMark(D,V,I.mark);else if(S.parent.child(S.index()).isText&&S.index()==C.index()-(C.textOffset?0:1)){var M=S.parent.textBetween(S.parentOffset,C.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,D,V,M)})))return;O=e.state.tr.insertText(M,D,V)}if(O||(O=e.state.tr.replace(D,V,p.doc.slice(y.start-p.from,y.endB-p.from))),p.sel){var R=Ho(e,O.doc,p.sel);R&&!(cr.chrome&&cr.android&&e.composing&&R.empty&&(y.start!=y.endB||e.lastAndroidDelete<Date.now()-100)&&(R.head==D||R.head==O.mapping.map(V)-1)||cr.ie&&R.empty&&R.head==D)&&O.setSelection(R)}$&&O.ensureMarks($),e.dispatch(O.scrollIntoView())}}}function Ho(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Io(e,t.resolve(n.anchor),t.resolve(n.head))}function Wo(e,t,n){for(var i=e.depth,r=t?e.end():e.pos;i>0&&(t||e.indexAfter(i)==e.node(i).childCount);)i--,r++,t=!1;if(n)for(var o=e.node(i).maybeChild(e.indexAfter(i));o&&!o.isLeaf;)o=o.firstChild,r++;return r}function Uo(e,t){for(var n=[],i=t.content,r=t.openStart,o=t.openEnd;r>1&&o>1&&1==i.childCount&&1==i.firstChild.childCount;){r--,o--;var s=i.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),i=s.content}var a=e.someProp("clipboardSerializer")||ce.fromSchema(e.state.schema),l=es(),u=l.createElement("div");u.appendChild(a.serializeFragment(i,{document:l}));for(var d,c=u.firstChild;c&&1==c.nodeType&&(d=Zo[c.nodeName.toLowerCase()]);){for(var p=d.length-1;p>=0;p--){for(var h=l.createElement(d[p]);u.firstChild;)h.appendChild(u.firstChild);u.appendChild(h),"tbody"!=d[p]&&(r++,o++)}c=u.firstChild}return c&&1==c.nodeType&&c.setAttribute("data-pm-slice",r+" "+o+" "+JSON.stringify(n)),{dom:u,text:e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n")}}function qo(e,t,n,i,r){var s,a,l=r.parent.type.spec.code;if(!n&&!t)return null;var u=t&&(i||l||!n);if(u){if(e.someProp("transformPastedText",(function(e){t=e(t,l||i)})),l)return t?new p(o.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):p.empty;var d=e.someProp("clipboardTextParser",(function(e){return e(t,r,i)}));if(d)a=d;else{var c=r.marks(),h=e.state.schema,f=ce.fromSchema(h);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((function(e){var t=s.appendChild(document.createElement("p"));e&&t.appendChild(f.serializeNode(h.text(e,c)))}))}}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),s=function(e){var t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,i=es().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(e);(n=r&&Zo[r[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join(""));if(i.innerHTML=e,n)for(var o=0;o<n.length;o++)i=i.querySelector(n[o])||i;return i}(n),cr.webkit&&function(e){for(var t=e.querySelectorAll(cr.chrome?"span:not([class]):not([style])":"span.Apple-converted-space"),n=0;n<t.length;n++){var i=t[n];1==i.childNodes.length&&" "==i.textContent&&i.parentNode&&i.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),i)}}(s);var v=s&&s.querySelector("[data-pm-slice]"),m=v&&/^(\d+) (\d+) (.*)/.exec(v.getAttribute("data-pm-slice"));if(!a){var g=e.someProp("clipboardParser")||e.someProp("domParser")||ee.fromSchema(e.state.schema);a=g.parseSlice(s,{preserveWhitespace:!(!u&&!m),context:r,ruleFromNode:function(e){if("BR"==e.nodeName&&!e.nextSibling&&e.parentNode&&!Go.test(e.parentNode.nodeName))return{ignore:!0}}})}if(m)a=function(e,t){if(!e.size)return e;var n,i=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}for(var r=e.content,s=e.openStart,a=e.openEnd,l=n.length-2;l>=0;l-=2){var u=i.nodes[n[l]];if(!u||u.hasRequiredAttrs())break;r=o.from(u.create(n[l+1],r)),s++,a++}return new p(r,s,a)}(Yo(a,+m[1],+m[2]),m[3]);else if((a=p.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var i=t.node(n).contentMatchAt(t.index(n)),r=void 0,s=[];if(e.forEach((function(e){if(s){var t,n=i.findWrapping(e.type);if(!n)return s=null;if(t=s.length&&r.length&&function e(t,n,i,r,s){if(s<t.length&&s<n.length&&t[s]==n[s]){var a=e(t,n,i,r.lastChild,s+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(s==t.length-1?i.type:t[s+1]))return r.copy(r.content.append(o.from(Jo(i,t,s+1))))}}(n,r,e,s[s.length-1],0))s[s.length-1]=t;else{s.length&&(s[s.length-1]=function e(t,n){if(0==n)return t;var i=t.content.replaceChild(t.childCount-1,e(t.lastChild,n-1)),r=t.contentMatchAt(t.childCount).fillBefore(o.empty,!0);return t.copy(i.append(r))}(s[s.length-1],r.length));var a=Jo(e,n);s.push(a),i=i.matchType(a.type,a.attrs),r=n}}})),s)return{v:o.from(s)}},i=t.depth;i>=0;i--){var r=n(i);if(r)return r.v}return e}(a.content,r),!0)).openStart||a.openEnd){for(var b=0,y=0,k=a.content.firstChild;b<a.openStart&&!k.type.spec.isolating;b++,k=k.firstChild);for(var w=a.content.lastChild;y<a.openEnd&&!w.type.spec.isolating;y++,w=w.lastChild);a=Yo(a,b,y)}return e.someProp("transformPasted",(function(e){a=e(a)})),a}var Go=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Jo(e,t,n){void 0===n&&(n=0);for(var i=t.length-1;i>=n;i--)e=t[i].create(null,o.from(e));return e}function Xo(e,t,n,i,r,s){var a=t<0?e.firstChild:e.lastChild,l=a.content;return r<i-1&&(l=Xo(l,t,n,i,r+1,s)),r>=n&&(l=t<0?a.contentMatchAt(0).fillBefore(l,e.childCount>1||s<=r).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(o.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(l))}function Yo(e,t,n){return t<e.openStart&&(e=new p(Xo(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new p(Xo(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var Zo={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},Qo=null;function es(){return Qo||(Qo=document.implementation.createHTMLDocument("title"))}var ts={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ns=cr.ie&&cr.ie_version<=11,is=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};is.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},is.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var rs=function(e,t){var n=this;this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver((function(e){for(var t=0;t<e.length;t++)n.queue.push(e[t]);cr.ie&&cr.ie_version<=11&&e.some((function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length}))?n.flushSoon():n.flush()})),this.currentSelection=new is,ns&&(this.onCharData=function(e){n.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1};rs.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},rs.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},rs.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,ts),ns&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},rs.prototype.stop=function(){var e=this;if(this.observer){var t=this.observer.takeRecords();if(t.length){for(var n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout((function(){return e.flush()}),20)}this.observer.disconnect()}ns&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},rs.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},rs.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},rs.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},rs.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&To(e)){var e;if(this.suppressingSelectionUpdates)return ko(this.view);if(cr.ie&&cr.ie_version<=11&&!this.view.state.selection.empty){var t=this.view.root.getSelection();if(t.focusNode&&wr(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}},rs.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},rs.prototype.ignoreSelectionChange=function(e){if(0==e.rangeCount)return!0;var t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0},rs.prototype.flush=function(){if(this.view.docView&&!(this.flushingSoon>-1)){var e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);var t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&To(this.view)&&!this.ignoreSelectionChange(t),i=-1,r=-1,o=!1,s=[];if(this.view.editable)for(var a=0;a<e.length;a++){var l=this.registerMutation(e[a],s);l&&(i=i<0?l.from:Math.min(l.from,i),r=r<0?l.to:Math.max(l.to,r),l.typeOver&&(o=!0))}if(cr.gecko&&s.length>1){var u=s.filter((function(e){return"BR"==e.nodeName}));if(2==u.length){var d=u[0],c=u[1];d.parentNode&&d.parentNode.parentNode==c.parentNode?c.remove():d.remove()}}(i>-1||n)&&(i>-1&&(this.view.docView.markDirty(i,r),function(e){if(ss)return;ss=!0,"normal"==getComputedStyle(e.dom).whiteSpace&&console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.")}(this.view)),this.handleDOMChange(i,r,o,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||ko(this.view),this.currentSelection.set(t))}},rs.prototype.registerMutation=function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(var i=0;i<e.addedNodes.length;i++)t.push(e.addedNodes[i]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};var r=e.previousSibling,o=e.nextSibling;if(cr.ie&&cr.ie_version<=11&&e.addedNodes.length)for(var s=0;s<e.addedNodes.length;s++){var a=e.addedNodes[s],l=a.previousSibling,u=a.nextSibling;(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(r=l),(!u||Array.prototype.indexOf.call(e.addedNodes,u)<0)&&(o=u)}var d=r&&r.parentNode==e.target?gr(r)+1:0,c=n.localPosFromDOM(e.target,d,-1),p=o&&o.parentNode==e.target?gr(o):e.target.childNodes.length;return{from:c,to:n.localPosFromDOM(e.target,p,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}};var ss=!1;var as={},ls={};function us(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function ds(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return cs(e,t)})}))}function cs(e,t){return e.someProp("handleDOMEvents",(function(n){var i=n[t.type];return!!i&&(i(e,t)||t.defaultPrevented)}))}function ps(e){return{left:e.clientX,top:e.clientY}}function hs(e,t,n,i,r){if(-1==i)return!1;for(var o=e.state.doc.resolve(i),s=function(i){if(e.someProp(t,(function(t){return i>o.depth?t(e,n,o.nodeAfter,o.before(i),r,!0):t(e,n,o.node(i),o.before(i),r,!1)})))return{v:!0}},a=o.depth+1;a>0;a--){var l=s(a);if(l)return l.v}return!1}function fs(e,t,n){e.focused||e.focus();var i=e.state.tr.setSelection(t);"pointer"==n&&i.setMeta("pointer",!0),e.dispatch(i)}function vs(e,t,n,i,r){return hs(e,"handleClickOn",t,n,i)||e.someProp("handleClick",(function(n){return n(e,t,i)}))||(r?function(e,t){if(-1==t)return!1;var n,i,r=e.state.selection;r instanceof ot&&(n=r.node);for(var o=e.state.doc.resolve(t),s=o.depth+1;s>0;s--){var a=s>o.depth?o.nodeAfter:o.node(s);if(ot.isSelectable(a)){i=n&&r.$from.depth>0&&s>=r.$from.depth&&o.before(r.$from.depth+1)==r.$from.pos?o.before(r.$from.depth):o.before(s);break}}return null!=i&&(fs(e,ot.create(e.state.doc,i),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&ot.isSelectable(i))&&(fs(e,new ot(n),"pointer"),!0)}(e,n))}function ms(e,t,n,i){return hs(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",(function(n){return n(e,t,i)}))}function gs(e,t,n,i){return hs(e,"handleTripleClickOn",t,n,i)||e.someProp("handleTripleClick",(function(n){return n(e,t,i)}))||function(e,t,n){if(0!=n.button)return!1;var i=e.state.doc;if(-1==t)return!!i.inlineContent&&(fs(e,it.create(i,0,i.content.size),"pointer"),!0);for(var r=i.resolve(t),o=r.depth+1;o>0;o--){var s=o>r.depth?r.nodeAfter:r.node(o),a=r.before(o);if(s.inlineContent)fs(e,it.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ot.isSelectable(s))continue;fs(e,ot.create(i,a),"pointer")}return!0}}(e,n,i)}function bs(e){return Os(e)}ls.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!ws(e,t)&&(e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!cr.android||!cr.chrome||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!cr.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||zo(e,t)?t.preventDefault():us(e,"key");else{var n=Date.now();e.lastIOSEnter=n,e.lastIOSEnterFallbackTimeout=setTimeout((function(){e.lastIOSEnter==n&&(e.someProp("handleKeyDown",(function(t){return t(e,Ir(13,"Enter"))})),e.lastIOSEnter=0)}),200)}},ls.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},ls.keypress=function(e,t){if(!(ws(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||cr.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof it&&n.$from.sameParent(n.$to))){var i=String.fromCharCode(t.charCode);e.someProp("handleTextInput",(function(t){return t(e,n.$from.pos,n.$to.pos,i)}))||e.dispatch(e.state.tr.insertText(i).scrollIntoView()),t.preventDefault()}}};var ys=cr.mac?"metaKey":"ctrlKey";as.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=bs(e),i=Date.now(),r="singleClick";i-e.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,i=t.y-e.clientY;return n*n+i*i<100}(t,e.lastClick)&&!t[ys]&&("singleClick"==e.lastClick.type?r="doubleClick":"doubleClick"==e.lastClick.type&&(r="tripleClick")),e.lastClick={time:i,x:t.clientX,y:t.clientY,type:r};var o=e.posAtCoords(ps(t));o&&("singleClick"==r?(e.mouseDown&&e.mouseDown.done(),e.mouseDown=new ks(e,o,t,n)):("doubleClick"==r?ms:gs)(e,o.pos,o.inside,t)?t.preventDefault():us(e,"pointer"))};var ks=function(e,t,n,i){var r,o,s=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=i,this.selectNode=n[ys],this.allowDefault=n.shiftKey,this.delayedSelectionSync=!1,t.inside>-1)r=e.state.doc.nodeAt(t.inside),o=t.inside;else{var a=e.state.doc.resolve(t.pos);r=a.parent,o=a.depth?a.before():0}this.mightDrag=null;var l=i?null:n.target,u=l?e.docView.nearestDesc(l,!0):null;this.target=u?u.dom:null;var d=e.state.selection;(0==n.button&&r.type.spec.draggable&&!1!==r.type.spec.selectable||d instanceof ot&&d.from<=o&&d.to>o)&&(this.mightDrag={node:r,pos:o,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&cr.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((function(){s.view.mouseDown==s&&s.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),us(e,"pointer")};function ws(e,t){return!!e.composing||!!(cr.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}ks.prototype.done=function(){var e=this;this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((function(){return ko(e.view)})),this.view.mouseDown=null},ks.prototype.up=function(e){if(this.done(),this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target)){var t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(ps(e))),this.allowDefault||!t?us(this.view,"pointer"):vs(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||cr.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||cr.chrome&&!(this.view.state.selection instanceof it)&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(fs(this.view,et.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):us(this.view,"pointer")}},ks.prototype.move=function(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),us(this.view,"pointer"),0==e.buttons&&this.done()},as.touchdown=function(e){bs(e),us(e,"pointer")},as.contextmenu=function(e){return bs(e)};var Ss=cr.android?5e3:-1;function Cs(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return Os(e)}),t))}function xs(e){var t;for(e.composing&&(e.composing=!1,e.compositionEndedAt=((t=document.createEvent("Event")).initEvent("event",!0,!0),t.timeStamp));e.compositionNodes.length>0;)e.compositionNodes.pop().markParentsDirty()}function Os(e,t){if(!(cr.android&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),xs(e),t||e.docView.dirty){var n=bo(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}ls.compositionstart=ls.compositionupdate=function(e){if(!e.composing){e.domObserver.flush();var t=e.state,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((function(e){return!1===e.type.spec.inclusive}))))e.markCursor=e.state.storedMarks||n.marks(),Os(e,!0),e.markCursor=null;else if(Os(e),cr.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var i=e.root.getSelection(),r=i.focusNode,o=i.focusOffset;r&&1==r.nodeType&&0!=o;){var s=o<0?r.lastChild:r.childNodes[o-1];if(!s)break;if(3==s.nodeType){i.collapse(s,s.nodeValue.length);break}r=s,o=-1}e.composing=!0}Cs(e,Ss)},ls.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,Cs(e,20))};var $s=cr.ie&&cr.ie_version<15||cr.ios&&cr.webkit_version<604;function Is(e,t,n,i){var r=qo(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",(function(t){return t(e,i,r||p.empty)})))return!0;if(!r)return!1;var o=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(r),s=o?e.state.tr.replaceSelectionWith(o,e.shiftKey):e.state.tr.replaceSelection(r);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}as.copy=ls.cut=function(e,t){var n=e.state.selection,i="cut"==t.type;if(!n.empty){var r=$s?null:t.clipboardData,o=Uo(e,n.content()),s=o.dom,a=o.text;r?(t.preventDefault(),r.clearData(),r.setData("text/html",s.innerHTML),r.setData("text/plain",a)):function(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var i=getSelection(),r=document.createRange();r.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},ls.paste=function(e,t){if(!e.composing||cr.android){var n=$s?null:t.clipboardData;n&&Is(e,n.getData("text/plain"),n.getData("text/html"),t)?t.preventDefault():function(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout((function(){e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?Is(e,i.value,null,t):Is(e,i.textContent,i.innerHTML,t)}),50)}}(e,t)}};var Ts=function(e,t){this.slice=e,this.move=t},Ds=cr.mac?"altKey":"ctrlKey";for(var Vs in as.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var i=e.state.selection,r=i.empty?null:e.posAtCoords(ps(t));if(r&&r.pos>=i.from&&r.pos<=(i instanceof ot?i.to-1:i.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(ot.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var o=e.docView.nearestDesc(t.target,!0);o&&o.node.type.spec.draggable&&o!=e.docView&&e.dispatch(e.state.tr.setSelection(ot.create(e.state.doc,o.posBefore)))}var s=e.state.selection.content(),a=Uo(e,s),l=a.dom,u=a.text;t.dataTransfer.clearData(),t.dataTransfer.setData($s?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",$s||t.dataTransfer.setData("text/plain",u),e.dragging=new Ts(s,!t[Ds])}},as.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},ls.dragover=ls.dragenter=function(e,t){return t.preventDefault()},ls.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var i=e.posAtCoords(ps(t));if(i){var r=e.state.doc.resolve(i.pos);if(r){var o=n&&n.slice;o?e.someProp("transformPasted",(function(e){o=e(o)})):o=qo(e,t.dataTransfer.getData($s?"Text":"text/plain"),$s?null:t.dataTransfer.getData("text/html"),!1,r);var s=n&&!t[Ds];if(e.someProp("handleDrop",(function(n){return n(e,t,o||p.empty,s)})))t.preventDefault();else if(o){t.preventDefault();var a=o?Ae(e.state.doc,r.pos,o):r.pos;null==a&&(a=r.pos);var l=e.state.tr;s&&l.deleteSelection();var u=l.mapping.map(a),d=0==o.openStart&&0==o.openEnd&&1==o.content.childCount,c=l.doc;if(d?l.replaceRangeWith(u,u,o.content.firstChild):l.replaceRange(u,u,o),!l.doc.eq(c)){var h=l.doc.resolve(u);if(d&&ot.isSelectable(o.content.firstChild)&&h.nodeAfter&&h.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new ot(h));else{var f=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((function(e,t,n,i){return f=i})),l.setSelection(Io(e,h,l.doc.resolve(f)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}}}}}},as.focus=function(e){e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((function(){e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&ko(e)}),20))},as.blur=function(e,t){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.set({}),e.focused=!1)},as.beforeinput=function(e,t){if(cr.chrome&&cr.android&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();var n=e.domChangeCount;setTimeout((function(){if(e.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",(function(t){return t(e,Ir(8,"Backspace"))})))){var t=e.state.selection.$cursor;t&&t.pos>0&&e.dispatch(e.state.tr.delete(t.pos-1,t.pos).scrollIntoView())}}),50)}},ls)as[Vs]=ls[Vs];function Ms(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var i in t)if(!(i in e))return!1;return!0}var Rs=function(e,t){this.spec=t||As,this.side=this.spec.side||0,this.toDOM=e};Rs.prototype.map=function(e,t,n,i){var r=e.mapResult(t.from+i,this.side<0?-1:1),o=r.pos;return r.deleted?null:new Ps(o-n,o-n,this)},Rs.prototype.valid=function(){return!0},Rs.prototype.eq=function(e){return this==e||e instanceof Rs&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ms(this.spec,e.spec))},Rs.prototype.destroy=function(e){this.spec.destroy&&this.spec.destroy(e)};var Bs=function(e,t){this.spec=t||As,this.attrs=e};Bs.prototype.map=function(e,t,n,i){var r=e.map(t.from+i,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+i,this.spec.inclusiveEnd?1:-1)-n;return r>=o?null:new Ps(r,o,this)},Bs.prototype.valid=function(e,t){return t.from<t.to},Bs.prototype.eq=function(e){return this==e||e instanceof Bs&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)},Bs.is=function(e){return e.type instanceof Bs};var Ns=function(e,t){this.spec=t||As,this.attrs=e};Ns.prototype.map=function(e,t,n,i){var r=e.mapResult(t.from+i,1);if(r.deleted)return null;var o=e.mapResult(t.to+i,-1);return o.deleted||o.pos<=r.pos?null:new Ps(r.pos-n,o.pos-n,this)},Ns.prototype.valid=function(e,t){var n,i=e.content.findIndex(t.from),r=i.index,o=i.offset;return o==t.from&&!(n=e.child(r)).isText&&o+n.nodeSize==t.to},Ns.prototype.eq=function(e){return this==e||e instanceof Ns&&Ms(this.attrs,e.attrs)&&Ms(this.spec,e.spec)};var Ps=function(e,t,n){this.from=e,this.to=t,this.type=n},js={spec:{configurable:!0},inline:{configurable:!0}};Ps.prototype.copy=function(e,t){return new Ps(e,t,this.type)},Ps.prototype.eq=function(e,t){return void 0===t&&(t=0),this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to},Ps.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},Ps.widget=function(e,t,n){return new Ps(e,e,new Rs(t,n))},Ps.inline=function(e,t,n,i){return new Ps(e,t,new Bs(n,i))},Ps.node=function(e,t,n,i){return new Ps(e,t,new Ns(n,i))},js.spec.get=function(){return this.type.spec},js.inline.get=function(){return this.type instanceof Bs},Object.defineProperties(Ps.prototype,js);var Es=[],As={},Ls=function(e,t){this.local=e&&e.length?e:Es,this.children=t&&t.length?t:Es};Ls.create=function(e,t){return t.length?Ws(t,e,0,As):Fs},Ls.prototype.find=function(e,t,n){var i=[];return this.findInner(null==e?0:e,null==t?1e9:t,i,0,n),i},Ls.prototype.findInner=function(e,t,n,i,r){for(var o=0;o<this.local.length;o++){var s=this.local[o];s.from<=t&&s.to>=e&&(!r||r(s.spec))&&n.push(s.copy(s.from+i,s.to+i))}for(var a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){var l=this.children[a]+1;this.children[a+2].findInner(e-l,t-l,n,i+l,r)}},Ls.prototype.map=function(e,t,n){return this==Fs||0==e.maps.length?this:this.mapInner(e,t,0,0,n||As)},Ls.prototype.mapInner=function(e,t,n,i,r){for(var o,s=0;s<this.local.length;s++){var a=this.local[s].map(e,n,i);a&&a.type.valid(t,a)?(o||(o=[])).push(a):r.onRemove&&r.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,i,r,o,s){for(var a=e.slice(),l=function(e,t,n,i){for(var s=0;s<a.length;s+=3){var l=a[s+1],u=void 0;-1==l||e>l+o||(t>=a[s]+o?a[s+1]=-1:n>=r&&(u=i-n-(t-e))&&(a[s]+=u,a[s+1]+=u))}},u=0;u<n.maps.length;u++)n.maps[u].forEach(l);for(var d=!1,c=0;c<a.length;c+=3)if(-1==a[c+1]){var p=n.map(e[c]+o),h=p-r;if(h<0||h>=i.content.size){d=!0;continue}var f=n.map(e[c+1]+o,-1)-r,v=i.content.findIndex(h),m=v.index,g=v.offset,b=i.maybeChild(m);if(b&&g==h&&g+b.nodeSize==f){var y=a[c+2].mapInner(n,b,p+1,e[c]+o+1,s);y!=Fs?(a[c]=h,a[c+1]=f,a[c+2]=y):(a[c+1]=-2,d=!0)}else d=!0}if(d){var k=Ws(function(e,t,n,i,r,o,s){function a(e,t){for(var o=0;o<e.local.length;o++){var l=e.local[o].map(i,r,t);l?n.push(l):s.onRemove&&s.onRemove(e.local[o].spec)}for(var u=0;u<e.children.length;u+=3)a(e.children[u+2],e.children[u]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&a(e[l+2],t[l]+o+1);return n}(a,e,t||[],n,r,o,s),i,0,s);t=k.local;for(var w=0;w<a.length;w+=3)a[w+1]<0&&(a.splice(w,3),w-=3);for(var S=0,C=0;S<k.children.length;S+=3){for(var x=k.children[S];C<a.length&&a[C]<x;)C+=3;a.splice(C,0,k.children[S],k.children[S+1],k.children[S+2])}}return new Ls(t&&t.sort(Us),a)}(this.children,o,e,t,n,i,r):o?new Ls(o.sort(Us)):Fs},Ls.prototype.add=function(e,t){return t.length?this==Fs?Ls.create(e,t):this.addInner(e,t,0):this},Ls.prototype.addInner=function(e,t,n){var i,r=this,o=0;e.forEach((function(e,s){var a,l=s+n;if(a=_s(t,e,l)){for(i||(i=r.children.slice());o<i.length&&i[o]<s;)o+=3;i[o]==s?i[o+2]=i[o+2].addInner(e,a,l+1):i.splice(o,0,s,s+e.nodeSize,Ws(a,e,l+1,As)),o+=3}}));for(var s=Ks(o?Hs(t):t,-n),a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new Ls(s.length?this.local.concat(s).sort(Us):this.local,i||this.children)},Ls.prototype.remove=function(e){return 0==e.length||this==Fs?this:this.removeInner(e,0)},Ls.prototype.removeInner=function(e,t){for(var n=this.children,i=this.local,r=0;r<n.length;r+=3){for(var o=void 0,s=n[r]+t,a=n[r+1]+t,l=0,u=void 0;l<e.length;l++)(u=e[l])&&u.from>s&&u.to<a&&(e[l]=null,(o||(o=[])).push(u));if(o){n==this.children&&(n=this.children.slice());var d=n[r+2].removeInner(o,s+1);d!=Fs?n[r+2]=d:(n.splice(r,3),r-=3)}}if(i.length)for(var c=0,p=void 0;c<e.length;c++)if(p=e[c])for(var h=0;h<i.length;h++)i[h].eq(p,t)&&(i==this.local&&(i=this.local.slice()),i.splice(h--,1));return n==this.children&&i==this.local?this:i.length||n.length?new Ls(i,n):Fs},Ls.prototype.forChild=function(e,t){if(this==Fs)return this;if(t.isLeaf)return Ls.empty;for(var n,i,r=0;r<this.children.length;r+=3)if(this.children[r]>=e){this.children[r]==e&&(n=this.children[r+2]);break}for(var o=e+1,s=o+t.content.size,a=0;a<this.local.length;a++){var l=this.local[a];if(l.from<s&&l.to>o&&l.type instanceof Bs){var u=Math.max(o,l.from)-o,d=Math.min(s,l.to)-o;u<d&&(i||(i=[])).push(l.copy(u,d))}}if(i){var c=new Ls(i.sort(Us));return n?new zs([c,n]):c}return n||Fs},Ls.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof Ls)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(var t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(var n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0},Ls.prototype.locals=function(e){return qs(this.localsInner(e))},Ls.prototype.localsInner=function(e){if(this==Fs)return Es;if(e.inlineContent||!this.local.some(Bs.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof Bs||t.push(this.local[n]);return t};var Fs=new Ls;Ls.empty=Fs,Ls.removeOverlap=qs;var zs=function(e){this.members=e};function Ks(e,t){if(!t||!e.length)return e;for(var n=[],i=0;i<e.length;i++){var r=e[i];n.push(new Ps(r.from+t,r.to+t,r.type))}return n}function _s(e,t,n){if(t.isLeaf)return null;for(var i=n+t.nodeSize,r=null,o=0,s=void 0;o<e.length;o++)(s=e[o])&&s.from>n&&s.to<i&&((r||(r=[])).push(s),e[o]=null);return r}function Hs(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Ws(e,t,n,i){var r=[],o=!1;t.forEach((function(t,s){var a=_s(e,t,s+n);if(a){o=!0;var l=Ws(a,t,n+s+1,i);l!=Fs&&r.push(s,s+t.nodeSize,l)}}));for(var s=Ks(o?Hs(e):e,-n).sort(Us),a=0;a<s.length;a++)s[a].type.valid(t,s[a])||(i.onRemove&&i.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new Ls(s,r):Fs}function Us(e,t){return e.from-t.from||e.to-t.to}function qs(e){for(var t=e,n=0;n<t.length-1;n++){var i=t[n];if(i.from!=i.to)for(var r=n+1;r<t.length;r++){var o=t[r];if(o.from!=i.from){o.from<i.to&&(t==e&&(t=e.slice()),t[n]=i.copy(i.from,o.from),Gs(t,r,i.copy(o.from,i.to)));break}o.to!=i.to&&(t==e&&(t=e.slice()),t[r]=o.copy(o.from,i.to),Gs(t,r+1,o.copy(i.to,o.to)))}}return t}function Gs(e,t,n){for(;t<e.length&&Us(n,e[t])>0;)t++;e.splice(t,0,n)}function Js(e){var t=[];return e.someProp("decorations",(function(n){var i=n(e.state);i&&i!=Fs&&t.push(i)})),e.cursorWrapper&&t.push(Ls.create(e.state.doc,[e.cursorWrapper.deco])),zs.from(t)}zs.prototype.map=function(e,t){var n=this.members.map((function(n){return n.map(e,t,As)}));return zs.from(n)},zs.prototype.forChild=function(e,t){if(t.isLeaf)return Ls.empty;for(var n=[],i=0;i<this.members.length;i++){var r=this.members[i].forChild(e,t);r!=Fs&&(r instanceof zs?n=n.concat(r.members):n.push(r))}return zs.from(n)},zs.prototype.eq=function(e){if(!(e instanceof zs)||e.members.length!=this.members.length)return!1;for(var t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0},zs.prototype.locals=function(e){for(var t,n=!0,i=0;i<this.members.length;i++){var r=this.members[i].localsInner(e);if(r.length)if(t){n&&(t=t.slice(),n=!1);for(var o=0;o<r.length;o++)t.push(r[o])}else t=r}return t?qs(n?t:t.sort(Us)):Es},zs.from=function(e){switch(e.length){case 0:return Fs;case 1:return e[0];default:return new zs(e)}};var Xs,Ys,Zs=function(e,t){this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(ra),this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.trackWrites=null,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=na(this),this.markCursor=null,this.cursorWrapper=null,ta(this),this.nodeViews=ia(this),this.docView=no(this.state.doc,ea(this),Js(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,function(e){e.shiftKey=!1,e.mouseDown=null,e.lastKeyCode=null,e.lastKeyCodeTime=0,e.lastClick={time:0,x:0,y:0,type:""},e.lastSelectionOrigin=null,e.lastSelectionTime=0,e.lastIOSEnter=0,e.lastIOSEnterFallbackTimeout=null,e.lastAndroidDelete=0,e.composing=!1,e.composingTimeout=null,e.compositionNodes=[],e.compositionEndedAt=-2e8,e.domObserver=new rs(e,(function(t,n,i,r){return _o(e,t,n,i,r)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=as[t];e.dom.addEventListener(t,e.eventHandlers[t]=function(t){!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}(e,t)||cs(e,t)||!e.editable&&t.type in ls||n(e,t)})};for(var n in as)t(n);cr.safari&&e.dom.addEventListener("input",(function(){return null})),ds(e)}(this),this.prevDirectPlugins=[],this.pluginViews=[],this.updatePluginViews()},Qs={props:{configurable:!0},root:{configurable:!0},isDestroyed:{configurable:!0}};function ea(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),t.translate="no",e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var i in n)"class"==i&&(t.class+=" "+n[i]),"style"==i?t.style=(t.style?t.style+";":"")+n[i]:t[i]||"contenteditable"==i||"nodeName"==i||(t[i]=String(n[i]))})),[Ps.node(0,e.state.doc.content.size,t)]}function ta(e){if(e.markCursor){var t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:Ps.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function na(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function ia(e){var t={};return e.someProp("nodeViews",(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])})),t}function ra(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}if(Qs.props.get=function(){if(this._props.state!=this.state){var e=this._props;for(var t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props},Zs.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ds(this),this._props=e,e.plugins&&(e.plugins.forEach(ra),this.directPlugins=e.plugins),this.updateStateInner(e.state,!0)},Zs.prototype.setProps=function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var i in t.state=this.state,e)t[i]=e[i];this.update(t)},Zs.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},Zs.prototype.updateStateInner=function(e,t){var n=this,i=this.state,r=!1,o=!1;if(e.storedMarks&&this.composing&&(xs(this),o=!0),this.state=e,t){var s=ia(this);(function(e,t){var n=0,i=0;for(var r in e){if(e[r]!=t[r])return!0;n++}for(var o in t)i++;return n!=i})(s,this.nodeViews)&&(this.nodeViews=s,r=!0),ds(this)}this.editable=na(this),ta(this);var a=Js(this),l=ea(this),u=t?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=r||!this.docView.matchesNode(e.doc,l,a);!d&&e.selection.eq(i.selection)||(o=!0);var c,p,h,f,v,m,g,b,y,k,w,S="preserve"==u&&o&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,i=e.dom.getBoundingClientRect(),r=Math.max(0,i.top),o=(i.left+i.right)/2,s=r+1;s<Math.min(innerHeight,i.bottom);s+=5){var a=e.root.elementFromPoint(o,s);if(a!=e.dom&&e.dom.contains(a)){var l=a.getBoundingClientRect();if(l.top>=r-20){t=a,n=l.top;break}}}return{refDOM:t,refTop:n,stack:Rr(e.dom)}}(this);if(o){this.domObserver.stop();var C=d&&(cr.ie||cr.chrome)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&(f=i.selection,v=e.selection,m=Math.min(f.$anchor.sharedDepth(f.head),v.$anchor.sharedDepth(v.head)),f.$anchor.start(m)!=v.$anchor.start(m));if(d){var x=cr.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!r&&this.docView.update(e.doc,l,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=no(e.doc,l,a,this.dom,this)),x&&!this.trackWrites&&(C=!0)}C||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&(c=this,p=c.docView.domFromPos(c.state.selection.anchor,0),h=c.root.getSelection(),wr(p.node,p.offset,h.anchorNode,h.anchorOffset)))?ko(this,C):(Oo(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(i),"reset"==u)this.dom.scrollTop=0;else if("to selection"==u){var O=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof ot?Mr(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),O):Mr(this,this.coordsAtPos(e.selection.head,1),O))}else S&&(b=(g=S).refDOM,y=g.refTop,k=g.stack,w=b?b.getBoundingClientRect().top:0,Br(k,0==w?0:w-y))},Zs.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},Zs.prototype.updatePluginViews=function(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(var i=0;i<this.directPlugins.length;i++){var r=this.directPlugins[i];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(var o=0;o<this.state.plugins.length;o++){var s=this.state.plugins[o];s.spec.view&&this.pluginViews.push(s.spec.view(this))}}},Zs.prototype.someProp=function(e,t){var n,i=this._props&&this._props[e];if(null!=i&&(n=t?t(i):i))return n;for(var r=0;r<this.directPlugins.length;r++){var o=this.directPlugins[r].props[e];if(null!=o&&(n=t?t(o):o))return n}var s=this.state.plugins;if(s)for(var a=0;a<s.length;a++){var l=s[a].props[e];if(null!=l&&(n=t?t(l):l))return n}},Zs.prototype.hasFocus=function(){return this.root.activeElement==this.dom},Zs.prototype.focus=function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(Nr)return e.focus(Nr);var t=Rr(e);e.focus(null==Nr?{get preventScroll(){return Nr={preventScroll:!0},!0}}:void 0),Nr||(Nr=!1,Br(t,0))}(this.dom),ko(this),this.domObserver.start()},Qs.root.get=function(){var e=this._root;if(null==e)for(var t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=function(){return document.getSelection()}),this._root=t;return e||document},Zs.prototype.posAtCoords=function(e){return Er(this,e)},Zs.prototype.coordsAtPos=function(e,t){return void 0===t&&(t=1),Fr(this,e,t)},Zs.prototype.domAtPos=function(e,t){return void 0===t&&(t=0),this.docView.domFromPos(e,t)},Zs.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},Zs.prototype.posAtDOM=function(e,t,n){void 0===n&&(n=-1);var i=this.docView.posFromDOM(e,t,n);if(null==i)throw new RangeError("DOM position not inside the editor");return i},Zs.prototype.endOfTextblock=function(e,t){return Gr(this,t||this.state,e)},Zs.prototype.destroy=function(){this.docView&&(!function(e){for(var t in e.domObserver.stop(),e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout),clearTimeout(e.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Js(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},Qs.isDestroyed.get=function(){return null==this.docView},Zs.prototype.dispatchEvent=function(e){return function(e,t){cs(e,t)||!as[t.type]||!e.editable&&t.type in ls||as[t.type](e,t)}(this,e)},Zs.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(Zs.prototype,Qs),"undefined"!=typeof WeakMap){var oa=new WeakMap;Xs=function(e){return oa.get(e)},Ys=function(e,t){return oa.set(e,t),t}}else{var sa=[],aa=0;Xs=function(e){for(var t=0;t<sa.length;t+=2)if(sa[t]==e)return sa[t+1]},Ys=function(e,t){return 10==aa&&(aa=0),sa[aa++]=e,sa[aa++]=t}}var la=function(e,t,n,i){this.left=e,this.top=t,this.right=n,this.bottom=i},ua=function(e,t,n,i){this.width=e,this.height=t,this.map=n,this.problems=i};function da(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],n=0;n<e.colspan;n++)t.push(0);return t}function ca(e,t){var n=e.getAttribute("data-colwidth"),i=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map((function(e){return Number(e)})):null,r=Number(e.getAttribute("colspan")||1),o={colspan:r,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:i&&i.length==r?i:null};for(var s in t){var a=t[s].getFromDOM,l=a&&a(e);null!=l&&(o[s]=l)}return o}function pa(e,t){var n={};for(var i in 1!=e.attrs.colspan&&(n.colspan=e.attrs.colspan),1!=e.attrs.rowspan&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(",")),t){var r=t[i].setDOMAttr;r&&r(e.attrs[i],n)}return n}function ha(e){var t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(var i in t)n[i]={default:t[i].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM:function(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM:function(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:function(e){return ca(e,t)}}],toDOM:function(e){return["td",pa(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:function(e){return ca(e,t)}}],toDOM:function(e){return["th",pa(e,t),0]}}}}function fa(e){var t=e.cached.tableNodeTypes;if(!t)for(var n in t=e.cached.tableNodeTypes={},e.nodes){var i=e.nodes[n],r=i.spec.tableRole;r&&(t[r]=i)}return t}ua.prototype.findCell=function(e){for(var t=0;t<this.map.length;t++){var n=this.map[t];if(n==e){for(var i=t%this.width,r=t/this.width|0,o=i+1,s=r+1,a=1;o<this.width&&this.map[t+a]==n;a++)o++;for(var l=1;s<this.height&&this.map[t+this.width*l]==n;l++)s++;return new la(i,r,o,s)}}throw new RangeError("No cell with offset "+e+" found")},ua.prototype.colCount=function(e){for(var t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError("No cell with offset "+e+" found")},ua.prototype.nextCell=function(e,t,n){var i=this.findCell(e),r=i.left,o=i.right,s=i.top,a=i.bottom;return"horiz"==t?(n<0?0==r:o==this.width)?null:this.map[s*this.width+(n<0?r-1:o)]:(n<0?0==s:a==this.height)?null:this.map[r+this.width*(n<0?s-1:a)]},ua.prototype.rectBetween=function(e,t){var n=this.findCell(e),i=n.left,r=n.right,o=n.top,s=n.bottom,a=this.findCell(t),l=a.left,u=a.right,d=a.top,c=a.bottom;return new la(Math.min(i,l),Math.min(o,d),Math.max(r,u),Math.max(s,c))},ua.prototype.cellsInRect=function(e){for(var t=[],n={},i=e.top;i<e.bottom;i++)for(var r=e.left;r<e.right;r++){var o=i*this.width+r,s=this.map[o];n[s]||(n[s]=!0,r==e.left&&r&&this.map[o-1]==s||i==e.top&&i&&this.map[o-this.width]==s||t.push(s))}return t},ua.prototype.positionAt=function(e,t,n){for(var i=0,r=0;;i++){var o=r+n.child(i).nodeSize;if(i==e){for(var s=t+e*this.width,a=(e+1)*this.width;s<a&&this.map[s]<r;)s++;return s==a?o-1:this.map[s]}r=o}},ua.get=function(e){return Xs(e)||Ys(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);for(var t=function(e){for(var t=-1,n=!1,i=0;i<e.childCount;i++){var r=e.child(i),o=0;if(n)for(var s=0;s<i;s++)for(var a=e.child(s),l=0;l<a.childCount;l++){var u=a.child(l);s+u.attrs.rowspan>i&&(o+=u.attrs.colspan)}for(var d=0;d<r.childCount;d++){var c=r.child(d);o+=c.attrs.colspan,c.attrs.rowspan>1&&(n=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(e),n=e.childCount,i=[],r=0,o=null,s=[],a=0,l=t*n;a<l;a++)i[a]=0;for(var u=0,d=0;u<n;u++){var c=e.child(u);d++;for(var p=0;;p++){for(;r<i.length&&0!=i[r];)r++;if(p==c.childCount)break;for(var h=c.child(p),f=h.attrs,v=f.colspan,m=f.rowspan,g=f.colwidth,b=0;b<m;b++){if(b+u>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:d,n:m-b});break}for(var y=r+b*t,k=0;k<v;k++){0==i[y+k]?i[y+k]=d:(o||(o=[])).push({type:"collision",row:u,pos:d,n:v-k});var w=g&&g[k];if(w){var S=(y+k)%t*2,C=s[S];null==C||C!=w&&1==s[S+1]?(s[S]=w,s[S+1]=1):C==w&&s[S+1]++}}}r+=v,d+=h.nodeSize}for(var x=(u+1)*t,O=0;r<x;)0==i[r++]&&O++;O&&(o||(o=[])).push({type:"missing",row:u,n:O}),d++}for(var $=new ua(t,n,i,o),I=!1,T=0;!I&&T<s.length;T+=2)null!=s[T]&&s[T+1]<n&&(I=!0);I&&function(e,t,n){e.problems||(e.problems=[]);for(var i=0,r={};i<e.map.length;i++){var o=e.map[i];if(!r[o]){r[o]=!0;for(var s=n.nodeAt(o),a=null,l=0;l<s.attrs.colspan;l++){var u=(i+l)%e.width,d=t[2*u];null==d||s.attrs.colwidth&&s.attrs.colwidth[l]==d||((a||(a=da(s.attrs)))[l]=d)}a&&e.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}}($,s,e);return $}(e))};var va=new St("selectingCells");function ma(e){for(var t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function ga(e){for(var t=e.selection.$head,n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function ba(e){var t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:ma(t.$head)||function(e){for(var t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){var i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return e.doc.resolve(n)}for(var r=e.nodeBefore,o=e.pos;r;r=r.lastChild,o--){var s=r.type.spec.tableRole;if("cell"==s||"header_cell"==s)return e.doc.resolve(o-r.nodeSize)}}(t.$head)}function ya(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function ka(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function wa(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function Sa(e){return ua.get(e.node(-1)).findCell(e.pos-e.start(-1))}function Ca(e){return ua.get(e.node(-1)).colCount(e.pos-e.start(-1))}function xa(e,t,n){var i=e.start(-1),r=ua.get(e.node(-1)).nextCell(e.pos-i,t,n);return null==r?null:e.node(0).resolve(i+r)}function Oa(e,t,n){var i={};for(var r in e)i[r]=e[r];return i[t]=n,i}function $a(e,t,n){void 0===n&&(n=1);var i=Oa(e,"colspan",e.colspan-n);return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(t,n),i.colwidth.some((function(e){return e>0}))||(i.colwidth=null)),i}function Ia(e,t,n){void 0===n&&(n=1);var i=Oa(e,"colspan",e.colspan+n);if(i.colwidth){i.colwidth=i.colwidth.slice();for(var r=0;r<n;r++)i.colwidth.splice(t,0,0)}return i}function Ta(e,t,n){for(var i=fa(t.type.schema).header_cell,r=0;r<e.height;r++)if(t.nodeAt(e.map[n+r*e.width]).type!=i)return!1;return!0}var Da=function(e){function t(t,n){void 0===n&&(n=t);var i=t.node(-1),r=ua.get(i),o=t.start(-1),s=r.rectBetween(t.pos-o,n.pos-o),a=t.node(0),l=r.cellsInRect(s).filter((function(e){return e!=n.pos-o}));l.unshift(n.pos-o);var u=l.map((function(e){var t=i.nodeAt(e),n=e+o+1;return new nt(a.resolve(n),a.resolve(n+t.content.size))}));e.call(this,u[0].$from,u[0].$to,u),this.$anchorCell=t,this.$headCell=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(e,n){var i=e.resolve(n.map(this.$anchorCell.pos)),r=e.resolve(n.map(this.$headCell.pos));if(ya(i)&&ya(r)&&wa(i,r)){var o=this.$anchorCell.node(-1)!=i.node(-1);return o&&this.isRowSelection()?t.rowSelection(i,r):o&&this.isColSelection()?t.colSelection(i,r):new t(i,r)}return it.between(i,r)},t.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=ua.get(e),n=this.$anchorCell.start(-1),i=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),r={},s=[],a=i.top;a<i.bottom;a++){for(var l=[],u=a*t.width+i.left,d=i.left;d<i.right;d++,u++){var c=t.map[u];if(!r[c]){r[c]=!0;var h=t.findCell(c),f=e.nodeAt(c),v=i.left-h.left,m=h.right-i.right;if(v>0||m>0){var g=f.attrs;v>0&&(g=$a(g,0,v)),m>0&&(g=$a(g,g.colspan-m,m)),f=h.left<i.left?f.type.createAndFill(g):f.type.create(g,f.content)}if(h.top<i.top||h.bottom>i.bottom){var b=Oa(f.attrs,"rowspan",Math.min(h.bottom,i.bottom)-Math.max(h.top,i.top));f=h.top<i.top?f.type.createAndFill(b):f.type.create(b,f.content)}l.push(f)}}s.push(e.child(a).copy(o.from(l)))}var y=this.isColSelection()&&this.isRowSelection()?e:s;return new p(o.from(y),1,1)},t.prototype.replace=function(t,n){void 0===n&&(n=p.empty);for(var i=t.steps.length,r=this.ranges,o=0;o<r.length;o++){var s=r[o],a=s.$from,l=s.$to,u=t.mapping.slice(i);t.replace(u.map(a.pos),u.map(l.pos),o?p.empty:n)}var d=e.findFrom(t.doc.resolve(t.mapping.slice(i).map(this.to)),-1);d&&t.setSelection(d)},t.prototype.replaceWith=function(e,t){this.replace(e,new p(o.from(t),0,0))},t.prototype.forEachCell=function(e){for(var t=this.$anchorCell.node(-1),n=ua.get(t),i=this.$anchorCell.start(-1),r=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i)),o=0;o<r.length;o++)e(t.nodeAt(r[o]),i+r[o])},t.prototype.isColSelection=function(){var e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;var n=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,i)==this.$headCell.node(-1).childCount},t.colSelection=function(e,n){void 0===n&&(n=e);var i=ua.get(e.node(-1)),r=e.start(-1),o=i.findCell(e.pos-r),s=i.findCell(n.pos-r),a=e.node(0);return o.top<=s.top?(o.top>0&&(e=a.resolve(r+i.map[o.left])),s.bottom<i.height&&(n=a.resolve(r+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=a.resolve(r+i.map[s.left])),o.bottom<i.height&&(e=a.resolve(r+i.map[i.width*(i.height-1)+o.right-1]))),new t(e,n)},t.prototype.isRowSelection=function(){var e=ua.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),n=e.colCount(this.$anchorCell.pos-t),i=e.colCount(this.$headCell.pos-t);if(Math.min(n,i)>0)return!1;var r=n+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(r,o)==e.width},t.prototype.eq=function(e){return e instanceof t&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos},t.rowSelection=function(e,n){void 0===n&&(n=e);var i=ua.get(e.node(-1)),r=e.start(-1),o=i.findCell(e.pos-r),s=i.findCell(n.pos-r),a=e.node(0);return o.left<=s.left?(o.left>0&&(e=a.resolve(r+i.map[o.top*i.width])),s.right<i.width&&(n=a.resolve(r+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=a.resolve(r+i.map[s.top*i.width])),o.right<i.width&&(e=a.resolve(r+i.map[i.width*(o.top+1)-1]))),new t(e,n)},t.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},t.fromJSON=function(e,n){return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,n,i){return void 0===i&&(i=n),new t(e.resolve(n),e.resolve(i))},t.prototype.getBookmark=function(){return new Va(this.$anchorCell.pos,this.$headCell.pos)},t}(et);Da.prototype.visible=!1,et.jsonID("cell",Da);var Va=function(e,t){this.anchor=e,this.head=t};function Ma(e){if(!(e.selection instanceof Da))return null;var t=[];return e.selection.forEachCell((function(e,n){t.push(Ps.node(n,n+e.nodeSize,{class:"selectedCell"}))})),Ls.create(e.doc,t)}function Ra(e){if(!e.size)return null;for(var t=e.content,n=e.openStart,i=e.openEnd;1==t.childCount&&(n>0&&i>0||"table"==t.firstChild.type.spec.tableRole);)n--,i--,t=t.firstChild.content;var r=t.firstChild,s=r.type.spec.tableRole,a=r.type.schema,l=[];if("row"==s)for(var u=0;u<t.childCount;u++){var d=t.child(u).content,c=u?0:Math.max(0,n-1),h=u<t.childCount-1?0:Math.max(0,i-1);(c||h)&&(d=Ba(fa(a).row,new p(d,c,h)).content),l.push(d)}else{if("cell"!=s&&"header_cell"!=s)return null;l.push(n||i?Ba(fa(a).row,new p(t,n,i)).content:t)}return function(e,t){for(var n=[],i=0;i<t.length;i++)for(var r=t[i],s=r.childCount-1;s>=0;s--)for(var a=r.child(s).attrs,l=a.rowspan,u=a.colspan,d=i;d<i+l;d++)n[d]=(n[d]||0)+u;for(var c=0,p=0;p<n.length;p++)c=Math.max(c,n[p]);for(var h=0;h<n.length;h++)if(h>=t.length&&t.push(o.empty),n[h]<c){for(var f=fa(e).cell.createAndFill(),v=[],m=n[h];m<c;m++)v.push(f);t[h]=t[h].append(o.from(v))}return{height:t.length,width:c,rows:t}}(a,l)}function Ba(e,t){var n=e.createAndFill();return new ke(n).replace(0,n.content.size,t).doc}function Na(e,t,n){var i=e.width,r=e.height,s=e.rows;if(i!=t){for(var a=[],l=[],u=0;u<s.length;u++){for(var d=s[u],c=[],p=a[u]||0,h=0;p<t;h++){var f=d.child(h%d.childCount);p+f.attrs.colspan>t&&(f=f.type.create($a(f.attrs,f.attrs.colspan,p+f.attrs.colspan-t),f.content)),c.push(f),p+=f.attrs.colspan;for(var v=1;v<f.attrs.rowspan;v++)a[u+v]=(a[u+v]||0)+f.attrs.colspan}l.push(o.from(c))}s=l,i=t}if(r!=n){for(var m=[],g=0,b=0;g<n;g++,b++){for(var y=[],k=s[b%r],w=0;w<k.childCount;w++){var S=k.child(w);g+S.attrs.rowspan>n&&(S=S.type.create(Oa(S.attrs,"rowspan",Math.max(1,n-S.attrs.rowspan)),S.content)),y.push(S)}m.push(o.from(y))}s=m,r=n}return{width:i,height:r,rows:s}}function Pa(e,t,n,i,r,o,s,a){if(0==s||s==t.height)return!1;for(var l=!1,u=r;u<o;u++){var d=s*t.width+u,c=t.map[d];if(t.map[d-t.width]==c){l=!0;var p=n.nodeAt(c),h=t.findCell(c),f=h.top,v=h.left;e.setNodeMarkup(e.mapping.slice(a).map(c+i),null,Oa(p.attrs,"rowspan",s-f)),e.insert(e.mapping.slice(a).map(t.positionAt(s,v,n)),p.type.createAndFill(Oa(p.attrs,"rowspan",f+p.attrs.rowspan-s))),u+=p.attrs.colspan-1}}return l}function ja(e,t,n,i,r,o,s,a){if(0==s||s==t.width)return!1;for(var l=!1,u=r;u<o;u++){var d=u*t.width+s,c=t.map[d];if(t.map[d-1]==c){l=!0;var p=n.nodeAt(c),h=t.colCount(c),f=e.mapping.slice(a).map(c+i);e.setNodeMarkup(f,null,$a(p.attrs,s-h,p.attrs.colspan-(s-h))),e.insert(f+p.nodeSize,p.type.createAndFill($a(p.attrs,0,s-h))),u+=p.attrs.rowspan-1}}return l}function Ea(e,t,n,i,r){var s=n?e.doc.nodeAt(n-1):e.doc,a=ua.get(s),l=i.top,u=i.left,d=u+r.width,c=l+r.height,h=e.tr,f=0;function v(){s=n?h.doc.nodeAt(n-1):h.doc,a=ua.get(s),f=h.mapping.maps.length}(function(e,t,n,i,r,s,a){var l,u,d=fa(e.doc.type.schema);if(r>t.width)for(var c=0,p=0;c<t.height;c++){var h=n.child(c);p+=h.nodeSize;var f=[],v=void 0;v=null==h.lastChild||h.lastChild.type==d.cell?l||(l=d.cell.createAndFill()):u||(u=d.header_cell.createAndFill());for(var m=t.width;m<r;m++)f.push(v);e.insert(e.mapping.slice(a).map(p-1+i),f)}if(s>t.height){for(var g=[],b=0,y=(t.height-1)*t.width;b<Math.max(t.width,r);b++){var k=!(b>=t.width)&&n.nodeAt(t.map[y+b]).type==d.header_cell;g.push(k?u||(u=d.header_cell.createAndFill()):l||(l=d.cell.createAndFill()))}for(var w=d.row.create(null,o.from(g)),S=[],C=t.height;C<s;C++)S.push(w);e.insert(e.mapping.slice(a).map(i+n.nodeSize-2),S)}return!(!l&&!u)})(h,a,s,n,d,c,f)&&v(),Pa(h,a,s,n,u,d,l,f)&&v(),Pa(h,a,s,n,u,d,c,f)&&v(),ja(h,a,s,n,l,c,u,f)&&v(),ja(h,a,s,n,l,c,d,f)&&v();for(var m=l;m<c;m++){var g=a.positionAt(m,u,s),b=a.positionAt(m,d,s);h.replace(h.mapping.slice(f).map(g+n),h.mapping.slice(f).map(b+n),new p(r.rows[m-l],0,0))}v(),h.setSelection(new Da(h.doc.resolve(n+a.positionAt(l,u,s)),h.doc.resolve(n+a.positionAt(c-1,d-1,s)))),t(h)}Va.prototype.map=function(e){return new Va(e.map(this.anchor),e.map(this.head))},Va.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&wa(t,n)?new Da(t,n):et.near(n,1)};var Aa=dr({ArrowLeft:Fa("horiz",-1),ArrowRight:Fa("horiz",1),ArrowUp:Fa("vert",-1),ArrowDown:Fa("vert",1),"Shift-ArrowLeft":za("horiz",-1),"Shift-ArrowRight":za("horiz",1),"Shift-ArrowUp":za("vert",-1),"Shift-ArrowDown":za("vert",1),Backspace:Ka,"Mod-Backspace":Ka,Delete:Ka,"Mod-Delete":Ka});function La(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Fa(e,t){return function(n,i,r){var o=n.selection;if(o instanceof Da)return La(n,i,et.near(o.$headCell,t));if("horiz"!=e&&!o.empty)return!1;var s=Ua(r,e,t);if(null==s)return!1;if("horiz"==e)return La(n,i,et.near(n.doc.resolve(o.head+t),t));var a,l=n.doc.resolve(s),u=xa(l,e,t);return a=u?et.near(u,1):t<0?et.near(n.doc.resolve(l.before(-1)),-1):et.near(n.doc.resolve(l.after(-1)),1),La(n,i,a)}}function za(e,t){return function(n,i,r){var o=n.selection;if(!(o instanceof Da)){var s=Ua(r,e,t);if(null==s)return!1;o=new Da(n.doc.resolve(s))}var a=xa(o.$headCell,e,t);return!!a&&La(n,i,new Da(o.$anchorCell,a))}}function Ka(e,t){var n=e.selection;if(!(n instanceof Da))return!1;if(t){var i=e.tr,r=fa(e.schema).cell.createAndFill().content;n.forEachCell((function(e,t){e.content.eq(r)||i.replace(i.mapping.map(t+1),i.mapping.map(t+e.nodeSize-1),new p(r,0,0))})),i.docChanged&&t(i)}return!0}function _a(e,t){var n=ma(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new Da(n))),!0)}function Ha(e,t,n){if(!ga(e.state))return!1;var i=Ra(n),r=e.state.selection;if(r instanceof Da){i||(i={width:1,height:1,rows:[o.from(Ba(fa(e.state.schema).cell,n))]});var s=r.$anchorCell.node(-1),a=r.$anchorCell.start(-1),l=ua.get(s).rectBetween(r.$anchorCell.pos-a,r.$headCell.pos-a);return i=Na(i,l.right-l.left,l.bottom-l.top),Ea(e.state,e.dispatch,a,l,i),!0}if(i){var u=ba(e.state),d=u.start(-1);return Ea(e.state,e.dispatch,d,ua.get(u.node(-1)).findCell(u.pos-d),i),!0}return!1}function Wa(e,t){if(!t.ctrlKey&&!t.metaKey){var n,i=qa(e,t.target);if(t.shiftKey&&e.state.selection instanceof Da)r(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=ma(e.state.selection.$anchor))&&Ga(e,t).pos!=n.pos)r(n,t),t.preventDefault();else if(!i)return;e.root.addEventListener("mouseup",o),e.root.addEventListener("dragstart",o),e.root.addEventListener("mousemove",s)}function r(t,n){var i=Ga(e,n),r=null==va.getState(e.state);if(!i||!wa(t,i)){if(!r)return;i=t}var o=new Da(t,i);if(r||!e.state.selection.eq(o)){var s=e.state.tr.setSelection(o);r&&s.setMeta(va,t.pos),e.dispatch(s)}}function o(){e.root.removeEventListener("mouseup",o),e.root.removeEventListener("dragstart",o),e.root.removeEventListener("mousemove",s),null!=va.getState(e.state)&&e.dispatch(e.state.tr.setMeta(va,-1))}function s(n){var s,a=va.getState(e.state);if(null!=a)s=e.state.doc.resolve(a);else if(qa(e,n.target)!=i&&!(s=Ga(e,t)))return o();s&&r(s,n)}}function Ua(e,t,n){if(!(e.state.selection instanceof it))return null;for(var i=e.state.selection.$head,r=i.depth-1;r>=0;r--){var o=i.node(r);if((n<0?i.index(r):i.indexAfter(r))!=(n<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){var s=i.before(r),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?s:null}}return null}function qa(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function Ga(e,t){var n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?ma(e.state.doc.resolve(n.pos)):null}var Ja=new St("fix-tables");function Xa(e,t){var n,i=function(t,i){"table"==t.type.spec.tableRole&&(n=function(e,t,n,i){var r=ua.get(t);if(!r.problems)return i;i||(i=e.tr);for(var o,s,a=[],l=0;l<r.height;l++)a.push(0);for(var u=0;u<r.problems.length;u++){var d=r.problems[u];if("collision"==d.type){for(var c=t.nodeAt(d.pos),p=0;p<c.attrs.rowspan;p++)a[d.row+p]+=d.n;i.setNodeMarkup(i.mapping.map(n+1+d.pos),null,$a(c.attrs,c.attrs.colspan-d.n,d.n))}else if("missing"==d.type)a[d.row]+=d.n;else if("overlong_rowspan"==d.type){var h=t.nodeAt(d.pos);i.setNodeMarkup(i.mapping.map(n+1+d.pos),null,Oa(h.attrs,"rowspan",h.attrs.rowspan-d.n))}else if("colwidth mismatch"==d.type){var f=t.nodeAt(d.pos);i.setNodeMarkup(i.mapping.map(n+1+d.pos),null,Oa(f.attrs,"colwidth",d.colwidth))}}for(var v=0;v<a.length;v++)a[v]&&(null==o&&(o=v),s=v);for(var m=0,g=n+1;m<r.height;m++){var b=t.child(m),y=g+b.nodeSize,k=a[m];if(k>0){var w="cell";b.firstChild&&(w=b.firstChild.type.spec.tableRole);for(var S=[],C=0;C<k;C++)S.push(fa(e.schema)[w].createAndFill());var x=0!=m&&o!=m-1||s!=m?y-1:g+1;i.insert(i.mapping.map(x),S)}g=y}return i.setMeta(Ja,{fixTables:!0})}(e,t,i,n))};return t?t.doc!=e.doc&&function e(t,n,i,r){var o=t.childCount,s=n.childCount;e:for(var a=0,l=0;a<s;a++){for(var u=n.child(a),d=l,c=Math.min(o,a+3);d<c;d++)if(t.child(d)==u){l=d+1,i+=u.nodeSize;continue e}r(u,i),l<o&&t.child(l).sameMarkup(u)?e(t.child(l),u,i+1,r):u.nodesBetween(0,u.content.size,r,i+1),i+=u.nodeSize}}(t.doc,e.doc,0,i):e.doc.descendants(i),n}function Ya(e){var t,n=e.selection,i=ba(e),r=i.node(-1),o=i.start(-1),s=ua.get(r);return(t=n instanceof Da?s.rectBetween(n.$anchorCell.pos-o,n.$headCell.pos-o):s.findCell(i.pos-o)).tableStart=o,t.map=s,t.table=r,t}function Za(e,t,n){var i=t.map,r=t.tableStart,o=t.table,s=n>0?-1:0;Ta(i,o,n+s)&&(s=0==n||n==i.width?null:0);for(var a=0;a<i.height;a++){var l=a*i.width+n;if(n>0&&n<i.width&&i.map[l-1]==i.map[l]){var u=i.map[l],d=o.nodeAt(u);e.setNodeMarkup(e.mapping.map(r+u),null,Ia(d.attrs,n-i.colCount(u))),a+=d.attrs.rowspan-1}else{var c=null==s?fa(o.type.schema).cell:o.nodeAt(i.map[l+s]).type,p=i.positionAt(a,n,o);e.insert(e.mapping.map(r+p),c.createAndFill())}}return e}function Qa(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(Za(e.tr,n,n.left))}return!0}function el(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(Za(e.tr,n,n.right))}return!0}function tl(e,t,n){for(var i=t.map,r=t.table,o=t.tableStart,s=e.mapping.maps.length,a=0;a<i.height;){var l=a*i.width+n,u=i.map[l],d=r.nodeAt(u);if(n>0&&i.map[l-1]==u||n<i.width-1&&i.map[l+1]==u)e.setNodeMarkup(e.mapping.slice(s).map(o+u),null,$a(d.attrs,n-i.colCount(u)));else{var c=e.mapping.slice(s).map(o+u);e.delete(c,c+d.nodeSize)}a+=d.attrs.rowspan}}function nl(e,t){if(!ga(e))return!1;if(t){var n=Ya(e),i=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(var r=n.right-1;tl(i,n,r),r!=n.left;r--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=ua.get(n.table);t(i)}return!0}function il(e,t,n){for(var i=fa(t.type.schema).header_cell,r=0;r<e.width;r++)if(t.nodeAt(e.map[r+n*e.width]).type!=i)return!1;return!0}function rl(e,t,n){for(var i=t.map,r=t.tableStart,o=t.table,s=r,a=0;a<n;a++)s+=o.child(a).nodeSize;var l=[],u=n>0?-1:0;il(i,o,n+u)&&(u=0==n||n==i.height?null:0);for(var d=0,c=i.width*n;d<i.width;d++,c++)if(n>0&&n<i.height&&i.map[c]==i.map[c-i.width]){var p=i.map[c],h=o.nodeAt(p).attrs;e.setNodeMarkup(r+p,null,Oa(h,"rowspan",h.rowspan+1)),d+=h.colspan-1}else{var f=null==u?fa(o.type.schema).cell:o.nodeAt(i.map[c+u*i.width]).type;l.push(f.createAndFill())}return e.insert(s,fa(o.type.schema).row.create(null,l)),e}function ol(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(rl(e.tr,n,n.top))}return!0}function sl(e,t){if(!ga(e))return!1;if(t){var n=Ya(e);t(rl(e.tr,n,n.bottom))}return!0}function al(e,t,n){for(var i=t.map,r=t.table,o=t.tableStart,s=0,a=0;a<n;a++)s+=r.child(a).nodeSize;var l=s+r.child(n).nodeSize,u=e.mapping.maps.length;e.delete(s+o,l+o);for(var d=0,c=n*i.width;d<i.width;d++,c++){var p=i.map[c];if(n>0&&p==i.map[c-i.width]){var h=r.nodeAt(p).attrs;e.setNodeMarkup(e.mapping.slice(u).map(p+o),null,Oa(h,"rowspan",h.rowspan-1)),d+=h.colspan-1}else if(n<i.width&&p==i.map[c+i.width]){var f=r.nodeAt(p),v=f.type.create(Oa(f.attrs,"rowspan",f.attrs.rowspan-1),f.content),m=i.positionAt(n+1,d,r);e.insert(e.mapping.slice(u).map(o+m),v),d+=f.attrs.colspan-1}}}function ll(e,t){if(!ga(e))return!1;if(t){var n=Ya(e),i=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(var r=n.bottom-1;al(i,n,r),r!=n.top;r--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=ua.get(n.table);t(i)}return!0}function ul(e){var t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function dl(e,t){var n=e.selection;if(!(n instanceof Da)||n.$anchorCell.pos==n.$headCell.pos)return!1;var i=Ya(e),r=i.map;if(function(e,t){for(var n=e.width,i=e.height,r=e.map,o=t.top*n+t.left,s=o,a=(t.bottom-1)*n+t.left,l=o+(t.right-t.left-1),u=t.top;u<t.bottom;u++){if(t.left>0&&r[s]==r[s-1]||t.right<n&&r[l]==r[l+1])return!0;s+=n,l+=n}for(var d=t.left;d<t.right;d++){if(t.top>0&&r[o]==r[o-n]||t.bottom<i&&r[a]==r[a+n])return!0;o++,a++}return!1}(r,i))return!1;if(t){for(var s,a,l=e.tr,u={},d=o.empty,c=i.top;c<i.bottom;c++)for(var p=i.left;p<i.right;p++){var h=r.map[c*r.width+p],f=i.table.nodeAt(h);if(!u[h])if(u[h]=!0,null==s)s=h,a=f;else{ul(f)||(d=d.append(f.content));var v=l.mapping.map(h+i.tableStart);l.delete(v,v+f.nodeSize)}}if(l.setNodeMarkup(s+i.tableStart,null,Oa(Ia(a.attrs,a.attrs.colspan,i.right-i.left-a.attrs.colspan),"rowspan",i.bottom-i.top)),d.size){var m=s+1+a.content.size,g=ul(a)?s+1:m;l.replaceWith(g+i.tableStart,m+i.tableStart,d)}l.setSelection(new Da(l.doc.resolve(s+i.tableStart))),t(l)}return!0}function cl(e,t){var n=fa(e.schema);return pl((function(e){var t=e.node;return n[t.type.spec.tableRole]}))(e,t)}function pl(e){return function(t,n){var i,r,o=t.selection;if(o instanceof Da){if(o.$anchorCell.pos!=o.$headCell.pos)return!1;i=o.$anchorCell.nodeAfter,r=o.$anchorCell.pos}else{if(!(i=function(e){for(var t=e.depth;t>0;t--){var n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(o.$from)))return!1;r=ma(o.$from).pos}if(1==i.attrs.colspan&&1==i.attrs.rowspan)return!1;if(n){var s=i.attrs,a=[],l=s.colwidth;s.rowspan>1&&(s=Oa(s,"rowspan",1)),s.colspan>1&&(s=Oa(s,"colspan",1));for(var u,d=Ya(t),c=t.tr,p=0;p<d.right-d.left;p++)a.push(l?Oa(s,"colwidth",l&&l[p]?[l[p]]:null):s);for(var h=d.top;h<d.bottom;h++){var f=d.map.positionAt(h,d.left,d.table);h==d.top&&(f+=i.nodeSize);for(var v=d.left,m=0;v<d.right;v++,m++)v==d.left&&h==d.top||c.insert(u=c.mapping.map(f+d.tableStart,1),e({node:i,row:h,col:v}).createAndFill(a[m]))}c.setNodeMarkup(r,e({node:i,row:d.top,col:d.left}),a[0]),o instanceof Da&&c.setSelection(new Da(c.doc.resolve(o.$anchorCell.pos),u&&c.doc.resolve(u))),n(c)}return!0}}function hl(e,t){return function(n,i){if(!ga(n))return!1;var r=ba(n);if(r.nodeAfter.attrs[e]===t)return!1;if(i){var o=n.tr;n.selection instanceof Da?n.selection.forEachCell((function(n,i){n.attrs[e]!==t&&o.setNodeMarkup(i,null,Oa(n.attrs,e,t))})):o.setNodeMarkup(r.pos,null,Oa(r.nodeAfter.attrs,e,t)),i(o)}return!0}}function fl(e,t,n){for(var i=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1}),r=0;r<i.length;r++){var o=t.table.nodeAt(i[r]);if(o&&o.type!==n.header_cell)return!1}return!0}function vl(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!ga(t))return!1;if(n){for(var i=fa(t.schema),r=Ya(t),o=t.tr,s=r.map.cellsInRect("column"==e?new la(r.left,0,r.right,r.map.height):"row"==e?new la(0,r.top,r.map.width,r.bottom):r),a=s.map((function(e){return r.table.nodeAt(e)})),l=0;l<s.length;l++)a[l].type==i.header_cell&&o.setNodeMarkup(r.tableStart+s[l],i.cell,a[l].attrs);if(0==o.steps.length)for(var u=0;u<s.length;u++)o.setNodeMarkup(r.tableStart+s[u],i.header_cell,a[u].attrs);n(o)}return!0}}(e):function(t,n){if(!ga(t))return!1;if(n){var i=fa(t.schema),r=Ya(t),o=t.tr,s=fl("row",r,i),a=fl("column",r,i),l=("column"===e?s:"row"===e&&a)?1:0,u="column"==e?new la(0,l,1,r.map.height):"row"==e?new la(l,0,r.map.width,1):r,d="column"==e?a?i.cell:i.header_cell:"row"==e?s?i.cell:i.header_cell:i.cell;r.map.cellsInRect(u).forEach((function(e){var t=e+r.tableStart,n=o.doc.nodeAt(t);n&&o.setNodeMarkup(t,d,n.attrs)})),n(o)}return!0}}var ml=vl("row",{useDeprecatedLogic:!0}),gl=vl("column",{useDeprecatedLogic:!0}),bl=vl("cell",{useDeprecatedLogic:!0});function yl(e){return function(t,n){if(!ga(t))return!1;var i=function(e,t){if(t<0){var n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(var i=e.index(-1)-1,r=e.before();i>=0;i--){var o=e.node(-1).child(i);if(o.childCount)return r-1-o.lastChild.nodeSize;r-=o.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;for(var s=e.node(-1),a=e.indexAfter(-1),l=e.after();a<s.childCount;a++){var u=s.child(a);if(u.childCount)return l+1;l+=u.nodeSize}}}(ba(t),e);if(null!=i){if(n){var r=t.doc.resolve(i);n(t.tr.setSelection(it.between(r,ka(r))).scrollIntoView())}return!0}}}function kl(e,t){for(var n=e.selection.$anchor,i=n.depth;i>0;i--){if("table"==n.node(i).type.spec.tableRole)return t&&t(e.tr.delete(n.before(i),n.after(i)).scrollIntoView()),!0}return!1}var wl=function(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Sl(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))};function Sl(e,t,n,i,r,o){for(var s=0,a=!0,l=t.firstChild,u=e.firstChild,d=0,c=0;d<u.childCount;d++)for(var p=u.child(d).attrs,h=p.colspan,f=p.colwidth,v=0;v<h;v++,c++){var m=r==c?o:f&&f[v],g=m?m+"px":"";s+=m||i,m||(a=!1),l?(l.style.width!=g&&(l.style.width=g),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=g}for(;l;){var b=l.nextSibling;l.parentNode.removeChild(l),l=b}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}wl.prototype.update=function(e){return e.type==this.node.type&&(this.node=e,Sl(e,this.colgroup,this.table,this.cellMinWidth),!0)},wl.prototype.ignoreMutation=function(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))};var Cl=new St("tableColumnResizing");function xl(e){void 0===e&&(e={});var t=e.handleWidth;void 0===t&&(t=5);var n=e.cellMinWidth;void 0===n&&(n=25);var i=e.View;void 0===i&&(i=wl);var r=e.lastColumnResizable;return void 0===r&&(r=!0),new yt({key:Cl,state:{init:function(e,t){return this.spec.props.nodeViews[fa(t.schema).table.name]=function(e,t){return new i(e,n,t)},new Ol(-1,!1)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return Cl.getState(e).activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,n){!function(e,t,n,i,r){var o=Cl.getState(e.state);if(!o.dragging){var s=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),a=-1;if(s){var l=s.getBoundingClientRect(),u=l.left,d=l.right;t.clientX-u<=n?a=$l(e,t,"left"):d-t.clientX<=n&&(a=$l(e,t,"right"))}if(a!=o.activeHandle){if(!r&&-1!==a){var c=e.state.doc.resolve(a),p=c.node(-1),h=ua.get(p),f=c.start(-1);if(h.colCount(c.pos-f)+c.nodeAfter.attrs.colspan-1==h.width-1)return}Tl(e,a)}}}(e,n,t,0,r)},mouseleave:function(e){!function(e){var t=Cl.getState(e.state);t.activeHandle>-1&&!t.dragging&&Tl(e,-1)}(e)},mousedown:function(e,t){!function(e,t,n){var i=Cl.getState(e.state);if(-1==i.activeHandle||i.dragging)return!1;var r=e.state.doc.nodeAt(i.activeHandle),o=function(e,t,n){var i=n.colspan,r=n.colwidth,o=r&&r[r.length-1];if(o)return o;var s=e.domAtPos(t),a=s.node.childNodes[s.offset].offsetWidth,l=i;if(r)for(var u=0;u<i;u++)r[u]&&(a-=r[u],l--);return a/l}(e,i.activeHandle,r.attrs);function s(t){window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",a);var i=Cl.getState(e.state);i.dragging&&(!function(e,t,n){for(var i=e.state.doc.resolve(t),r=i.node(-1),o=ua.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,l=e.state.tr,u=0;u<o.height;u++){var d=u*o.width+a;if(!u||o.map[d]!=o.map[d-o.width]){var c=o.map[d],p=r.nodeAt(c).attrs,h=1==p.colspan?0:a-o.colCount(c);if(!p.colwidth||p.colwidth[h]!=n){var f=p.colwidth?p.colwidth.slice():Dl(p.colspan);f[h]=n,l.setNodeMarkup(s+c,null,Oa(p,"colwidth",f))}}}l.docChanged&&e.dispatch(l)}(e,i.activeHandle,Il(i.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Cl,{setDragging:null})))}function a(t){if(!t.which)return s(t);var i=Cl.getState(e.state),r=Il(i.dragging,t,n);!function(e,t,n,i){var r=e.state.doc.resolve(t),o=r.node(-1),s=r.start(-1),a=ua.get(o).colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=e.domAtPos(r.start(-1)).node;for(;"TABLE"!=l.nodeName;)l=l.parentNode;Sl(o,l.firstChild,l,i,a,n)}(e,i.activeHandle,r,n)}e.dispatch(e.state.tr.setMeta(Cl,{setDragging:{startX:t.clientX,startWidth:o}})),window.addEventListener("mouseup",s),window.addEventListener("mousemove",a),t.preventDefault()}(e,t,n)}},decorations:function(e){var t=Cl.getState(e);if(t.activeHandle>-1)return function(e,t){for(var n=[],i=e.doc.resolve(t),r=i.node(-1),o=ua.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan,l=0;l<o.height;l++){var u=a+l*o.width-1;if(!(a!=o.width&&o.map[u]==o.map[u+1]||0!=l&&o.map[u-1]==o.map[u-1-o.width])){var d=o.map[u],c=s+d+r.nodeAt(d).nodeSize-1,p=document.createElement("div");p.className="column-resize-handle",n.push(Ps.widget(c,p))}}return Ls.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}})}var Ol=function(e,t){this.activeHandle=e,this.dragging=t};function $l(e,t,n){var i=e.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return-1;var r=i.pos,o=ma(e.state.doc.resolve(r));if(!o)return-1;if("right"==n)return o.pos;var s=ua.get(o.node(-1)),a=o.start(-1),l=s.map.indexOf(o.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function Il(e,t,n){var i=t.clientX-e.startX;return Math.max(n,e.startWidth+i)}function Tl(e,t){e.dispatch(e.state.tr.setMeta(Cl,{setHandle:t}))}function Dl(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function Vl(e){void 0===e&&(e={});var t=e.allowTableNodeSelection;return void 0===t&&(t=!1),new yt({key:va,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(va);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;var i=e.mapping.mapResult(t),r=i.deleted,o=i.pos;return r?null:o}},props:{decorations:Ma,handleDOMEvents:{mousedown:Wa},createSelectionBetween:function(e){if(null!=va.getState(e.state))return e.state.selection},handleTripleClick:_a,handleKeyDown:Aa,handlePaste:Ha},appendTransaction:function(e,n,i){return function(e,t,n){var i,r,o=(t||e).selection,s=(t||e).doc;if(o instanceof ot&&(r=o.node.type.spec.tableRole)){if("cell"==r||"header_cell"==r)i=Da.create(s,o.from);else if("row"==r){var a=s.resolve(o.from+1);i=Da.rowSelection(a,a)}else if(!n){var l=ua.get(o.node),u=o.from+1,d=u+l.map[l.width*l.height-1];i=Da.create(s,u+1,d)}}else o instanceof it&&function(e){var t=e.$from,n=e.$to;if(t.pos==n.pos||t.pos<t.pos-6)return!1;for(var i=t.pos,r=n.pos,o=t.depth;o>=0&&!(t.after(o+1)<t.end(o));o--,i++);for(var s=n.depth;s>=0&&!(n.before(s+1)>n.start(s));s--,r--);return i==r&&/row|table/.test(t.node(o).type.spec.tableRole)}(o)?i=it.create(s,o.from):o instanceof it&&function(e){for(var t,n,i=e.$from,r=e.$to,o=i.depth;o>0;o--){var s=i.node(o);if("cell"===s.type.spec.tableRole||"header_cell"===s.type.spec.tableRole){t=s;break}}for(var a=r.depth;a>0;a--){var l=r.node(a);if("cell"===l.type.spec.tableRole||"header_cell"===l.type.spec.tableRole){n=l;break}}return t!==n&&0===r.parentOffset}(o)&&(i=it.create(s,o.$from.start(),o.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}(i,Xa(i,n),t)}})}Ol.prototype.apply=function(e){var t=this,n=e.getMeta(Cl);if(n&&null!=n.setHandle)return new Ol(n.setHandle,null);if(n&&void 0!==n.setDragging)return new Ol(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){var i=e.mapping.map(t.activeHandle,-1);ya(e.doc.resolve(i))||(i=null),t=new Ol(i,t.dragging)}return t};var Ml=["blockquote",0],Rl=["hr"],Bl=["pre",["code",0]],Nl=["ol",0],Pl=["ul",0],jl=["li",0],El=function(e){for(var t,n={},i=e.attributes,r=0;r<i.length;r++)n[(t=i[r]).name]=t.value;return n},Al=function(e){var t={};return e.forEach((function(e){t[e]={default:null}})),t},Ll=function(){return Al(["style","class","id"])},Fl=function(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return!0;return!1},zl=function(e,t){var n={};for(var i in e)i&&null!==e[i]&&i!==t&&(n[i]=e[i]);return n},Kl=function(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t},_l=Nt({link:{attrs:Nt({},Ll(),{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:El}],toDOM:function(e){return["a",zl(e.attrs),0]}}},Kl("strong"),Kl("b"),Kl("em"),Kl("i"),Kl("u"),Kl("del"),Kl("sub"),Kl("sup"),Kl("code"),{style:{attrs:Nt({},Ll()),parseDOM:[{tag:"span",getAttrs:El}],toDOM:function(e){return Fl(e.attrs)?["span",zl(e.attrs),0]:["span",0]}}}),Hl=function(e){var t;return(t={})[e]={default:null,getFromDOM:function(t){return t.getAttribute(e)},setDOMAttr:function(t,n){n[e]=t}},t},Wl=Nt({},Hl("style"),Hl("class"),Hl("id"),Hl("headers")),Ul={doc:{content:"colgroup*"},col:{attrs:Al(["id","class","style","span"]),parseDOM:[{getAttrs:El,tag:"col"}],toDOM:function(e){return["col",e.attrs]}},colgroup:{attrs:Al(["id","class","style","span"]),content:"col*",parseDOM:[{getAttrs:El,tag:"colgroup"}],toDOM:function(e){return["colgroup",e.attrs,0]}},text:{inline:!0,group:"inline"}},ql=new Z({nodes:Ul,marks:{}}),Gl=ha({tableGroup:"block",cellContent:"block+",cellAttributes:Wl});Gl.table_row.attrs=Nt({},Gl.table_row.attrs,Al([Ct,"style","class","id"])),Gl.table_row.toDOM=function(e){return["tr",zl(e.attrs),0]},Gl.table_row.parseDOM=[{tag:"tr",getAttrs:El}],Gl.table.attrs=Nt({},Gl.table.attrs,Al(["style","class","id","k-colgroup-data"])),Gl.table.toDOM=function(e){var t=Fl(e.attrs)?zl(e.attrs,"k-colgroup-data"):{},n=null;if(e.attrs["k-colgroup-data"]&&!function(e){for(var t=!1,n=e.child(0),i=0;i<n.childCount;i++){if(n.child(i).attrs.colwidth){t=!0;break}}return t}(e)){var i=Vt(Tt(e.attrs["k-colgroup-data"]),ql,{preserveWhitespace:!1}),r=Dt(i).firstChild;if(r){var o=Array.from(r.children).map((function(e){return["col",El(e)]}));n=["colgroup",El(r)].concat(o)}}return n?["table",t,n,["tbody",0]]:["table",t,["tbody",0]]},Gl.table.parseDOM=[{tag:"table",getAttrs:function(e){var t=El(e),n=Array.from(e.childNodes).find((function(e){return"COLGROUP"===e.nodeName}));return n&&(t["k-colgroup-data"]=n.outerHTML),t}}];var Jl=Nt({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:Nt({},Ll()),parseDOM:[{tag:"p",getAttrs:El}],toDOM:function(e){return Fl(e.attrs)?["p",zl(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:Nt({},Ll()),parseDOM:[{tag:"div",getAttrs:El}],toDOM:function(e){return Fl(e.attrs)?["div",zl(e.attrs),0]:["div",0]}},blockquote:{attrs:Nt({},Ll()),content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote",getAttrs:El}],toDOM:function(e){return Fl(e.attrs)?["blockquote",zl(e.attrs),0]:Ml}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return Rl}},heading:{attrs:Nt({},Ll(),{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return Nt({},El(e),{level:1})}},{tag:"h2",getAttrs:function(e){return Nt({},El(e),{level:2})}},{tag:"h3",getAttrs:function(e){return Nt({},El(e),{level:3})}},{tag:"h4",getAttrs:function(e){return Nt({},El(e),{level:4})}},{tag:"h5",getAttrs:function(e){return Nt({},El(e),{level:5})}},{tag:"h6",getAttrs:function(e){return Nt({},El(e),{level:6})}}],toDOM:function(e){return Fl(e.attrs,"level")?["h"+e.attrs.level,zl(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 Bl}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:Nt({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},Ll()),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:El}],toDOM:function(e){return Fl(e.attrs)?["img",zl(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:Nt({},Ll()),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:El}],toDOM:function(e){return Fl(e.attrs)?["br",zl(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:Nt({},Ll(),{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return Nt({},El(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?Fl(e.attrs,"order")?["ol",zl(e.attrs,"order"),0]:Nl:["ol",Nt({},zl(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:Nt({},Ll()),parseDOM:[{tag:"ul",getAttrs:El}],toDOM:function(e){return Fl(e.attrs)?["ul",zl(e.attrs),0]:Pl}},list_item:{content:"(paragraph | heading) block*",attrs:Nt({},Ll()),parseDOM:[{tag:"li",getAttrs:El}],toDOM:function(e){return Fl(e.attrs)?["li",zl(e.attrs),0]:jl},defining:!0}},Gl),Xl=function(){};Xl.prototype.append=function(e){return e.length?(e=Xl.from(e),!this.length&&e||e.length<200&&this.leafAppend(e)||this.length<200&&e.leafPrepend(this)||this.appendInner(e)):this},Xl.prototype.prepend=function(e){return e.length?Xl.from(e).append(this):this},Xl.prototype.appendInner=function(e){return new Zl(this,e)},Xl.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?Xl.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},Xl.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},Xl.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},Xl.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var i=[];return this.forEach((function(t,n){return i.push(e(t,n))}),t,n),i},Xl.from=function(e){return e instanceof Xl?e:e&&e.length?new Yl(e):Xl.empty};var Yl=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,i){for(var r=t;r<n;r++)if(!1===e(this.values[r],i+r))return!1},t.prototype.forEachInvertedInner=function(e,t,n,i){for(var r=t-1;r>=n;r--)if(!1===e(this.values[r],i+r))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=200)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=200)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(Xl);Xl.empty=new Yl([]);var Zl=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,i){var r=this.left.length;return!(t<r&&!1===this.left.forEachInner(e,t,Math.min(n,r),i))&&(!(n>r&&!1===this.right.forEachInner(e,Math.max(t-r,0),Math.min(this.length,n)-r,i+r))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,i){var r=this.left.length;return!(t>r&&!1===this.right.forEachInvertedInner(e,t-r,Math.max(n,r)-r,i+r))&&(!(n<r&&!1===this.left.forEachInvertedInner(e,Math.min(t,r),n,i))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(Xl),Ql=Xl,eu=function(e,t){this.items=e,this.eventCount=t};eu.prototype.popEvent=function(e,t){var n=this;if(0==this.eventCount)return null;for(var i,r,o=this.items.length;;o--){if(this.items.get(o-1).selection){--o;break}}t&&(i=this.remapping(o,this.items.length),r=i.maps.length);var s,a,l=e.tr,u=[],d=[];return this.items.forEach((function(e,t){if(!e.step)return i||(i=n.remapping(o,t+1),r=i.maps.length),r--,void d.push(e);if(i){d.push(new tu(e.map));var c,p=e.step.map(i.slice(r));p&&l.maybeStep(p).doc&&(c=l.mapping.maps[l.mapping.maps.length-1],u.push(new tu(c,null,null,u.length+d.length))),r--,c&&i.appendMap(c,r)}else l.maybeStep(e.step);return e.selection?(s=i?e.selection.map(i.slice(r)):e.selection,a=new eu(n.items.slice(0,o).append(d.reverse().concat(u)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:a,transform:l,selection:s}},eu.prototype.addTransform=function(e,t,n,i){for(var r=[],o=this.eventCount,s=this.items,a=!i&&s.length?s.get(s.length-1):null,l=0;l<e.steps.length;l++){var u,d=e.steps[l].invert(e.docs[l]),c=new tu(e.mapping.maps[l],d,t);(u=a&&a.merge(c))&&(c=u,l?r.pop():s=s.slice(0,s.length-1)),r.push(c),t&&(o++,t=null),i||(a=c)}var p,h,f,v=o-n.depth;return v>iu&&(h=v,(p=s).forEach((function(e,t){if(e.selection&&0==h--)return f=t,!1})),s=p.slice(f),o-=v),new eu(s.append(r),o)},eu.prototype.remapping=function(e,t){var n=new be;return this.items.forEach((function(t,i){var r=null!=t.mirrorOffset&&i-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,r)}),e,t),n},eu.prototype.addMaps=function(e){return 0==this.eventCount?this:new eu(this.items.append(e.map((function(e){return new tu(e)}))),this.eventCount)},eu.prototype.rebased=function(e,t){if(!this.eventCount)return this;var n=[],i=Math.max(0,this.items.length-t),r=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach((function(e){e.selection&&s--}),i);var a=t;this.items.forEach((function(t){var i=r.getMirror(--a);if(null!=i){o=Math.min(o,i);var l=r.maps[i];if(t.step){var u=e.steps[i].invert(e.docs[i]),d=t.selection&&t.selection.map(r.slice(a+1,i));d&&s++,n.push(new tu(l,u,d))}else n.push(new tu(l))}}),i);for(var l=[],u=t;u<o;u++)l.push(new tu(r.maps[u]));var d=this.items.slice(0,i).append(l).append(n),c=new eu(d,s);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c},eu.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},eu.prototype.compress=function(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,i=[],r=0;return this.items.forEach((function(o,s){if(s>=e)i.push(o),o.selection&&r++;else if(o.step){var a=o.step.map(t.slice(n)),l=a&&a.getMap();if(n--,l&&t.appendMap(l,n),a){var u=o.selection&&o.selection.map(t.slice(n));u&&r++;var d,c=new tu(l.invert(),a,u),p=i.length-1;(d=i.length&&i[p].merge(c))?i[p]=d:i.push(c)}}else o.map&&n--}),this.items.length,0),new eu(Ql.from(i.reverse()),r)},eu.empty=new eu(Ql.empty,0);var tu=function(e,t,n,i){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=i};tu.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new tu(t.getMap().invert(),t,this.selection)}};var nu=function(e,t,n,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=i},iu=20;function ru(e){var t=[];return e.forEach((function(e,n,i,r){return t.push(i,r)})),t}function ou(e,t){if(!e)return null;for(var n=[],i=0;i<e.length;i+=2){var r=t.map(e[i],1),o=t.map(e[i+1],-1);r<=o&&n.push(r,o)}return n}function su(e,t,n,i){var r=uu(t),o=cu.get(t).spec.config,s=(i?e.undone:e.done).popEvent(t,r);if(s){var a=s.selection.resolve(s.transform.doc),l=(i?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),o,r),u=new nu(i?l:s.remaining,i?s.remaining:l,null,0);n(s.transform.setSelection(a).setMeta(cu,{redo:i,historyState:u}).scrollIntoView())}}var au=!1,lu=null;function uu(e){var t=e.plugins;if(lu!=t){au=!1,lu=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){au=!0;break}}return au}function du(e){return e.setMeta(pu,!0)}var cu=new St("history"),pu=new St("closeHistory");function hu(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new yt({key:cu,state:{init:function(){return new nu(eu.empty,eu.empty,null,0)},apply:function(t,n,i){return function(e,t,n,i){var r,o=n.getMeta(cu);if(o)return o.historyState;n.getMeta(pu)&&(e=new nu(e.done,e.undone,null,0));var s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(cu))return s.getMeta(cu).redo?new nu(e.done.addTransform(n,null,i,uu(t)),e.undone,ru(n.mapping.maps[n.steps.length-1]),e.prevTime):new nu(e.done,e.undone.addTransform(n,null,i,uu(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(r=n.getMeta("rebased"))?new nu(e.done.rebased(n,r),e.undone.rebased(n,r),ou(e.prevRanges,n.mapping),e.prevTime):new nu(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),ou(e.prevRanges,n.mapping),e.prevTime);var a=0==e.prevTime||!s&&(e.prevTime<(n.time||0)-i.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach((function(e,i){for(var r=0;r<t.length;r+=2)e<=t[r+1]&&i>=t[r]&&(n=!0)})),n}(n,e.prevRanges)),l=s?ou(e.prevRanges,n.mapping):ru(n.mapping.maps[n.steps.length-1]);return new nu(e.done.addTransform(n,a?t.selection.getBookmark():null,i,uu(t)),eu.empty,l,n.time)}(n,i,t,e)}},config:e,props:{handleDOMEvents:{beforeinput:function(e,t){var n="historyUndo"==t.inputType?fu(e.state,e.dispatch):"historyRedo"==t.inputType&&vu(e.state,e.dispatch);return n&&t.preventDefault(),n}}}})}function fu(e,t){var n=cu.getState(e);return!(!n||0==n.done.eventCount)&&(t&&su(n,e,t,!1),!0)}function vu(e,t){var n=cu.getState(e);return!(!n||0==n.undone.eventCount)&&(t&&su(n,e,t,!0),!0)}function mu(e){var t=cu.getState(e);return t?t.done.eventCount:0}function gu(e){var t=cu.getState(e);return t?t.undone.eventCount:0}var bu=function(e,t){var n;this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,i,r){var o=n;if(t[1]){var s=t[0].lastIndexOf(t[1]);o+=t[0].slice(s+t[1].length);var a=(i+=s)-r;a>0&&(o=t[0].slice(s-a,s)+o,i=r)}return e.tr.insertText(o,i,r)}):t};function yu(e){var t=e.rules,n=new yt({state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,i,r,o){return ku(e,i,r,o,t,n)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var i=e.state.selection.$cursor;i&&ku(e,i.pos,i.pos,"",t,n)}))}}},isInputRules:!0});return n}function ku(e,t,n,i,r,o){if(e.composing)return!1;var s=e.state,a=s.doc.resolve(t);if(a.parent.type.spec.code)return!1;for(var l=a.parent.textBetween(Math.max(0,a.parentOffset-500),a.parentOffset,null,"")+i,u=0;u<r.length;u++){var d=r[u].match.exec(l),c=d&&r[u].handler(s,d,t-(d[0].length-i.length),n);if(c)return e.dispatch(c.setMeta(o,{transform:c,from:t,to:n,text:i})),!0}return!1}function wu(e,t){for(var n=e.plugins,i=0;i<n.length;i++){var r=n[i],o=void 0;if(r.spec.isInputRules&&(o=r.getState(e))){if(t){for(var s=e.tr,a=o.transform,l=a.steps.length-1;l>=0;l--)s.step(a.steps[l].invert(a.docs[l]));if(o.text){var u=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,e.schema.text(o.text,u))}else s.delete(o.from,o.to);t(s)}return!0}}return!1}var Su=new bu(/--$/,"—"),Cu=new bu(/\.\.\.$/,"…"),xu=new bu(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),Ou=new bu(/"$/,"”"),$u=new bu(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),Iu=new bu(/'$/,"’"),Tu=[xu,Ou,$u,Iu];function Du(e,t,n,i){return new bu(e,(function(e,r,o,s){var a=n instanceof Function?n(r):n,l=e.tr.delete(o,s),u=l.doc.resolve(o).blockRange(),d=u&&Me(u,t,a);if(!d)return null;l.wrap(u,d);var c=l.doc.resolve(o-1).nodeBefore;return c&&c.type==t&&Ne(l.doc,o-1)&&(!i||i(r,c))&&l.join(o-1),l}))}function Vu(e,t,n){return new bu(e,(function(e,i,r,o){var s=e.doc.resolve(r),a=n instanceof Function?n(i):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),t)?e.tr.delete(r,o).setBlockType(r,r,t,a):null}))}var Mu={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},Ru={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},Bu={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},Nu={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},Pu={mark:"sub"},ju={mark:"sup"},Eu={mark:"link"},Au="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Lu=function(e,t){var n={},i=t&&t.applyToWord||!1;if(n["Mod-z"]=fu,n["Shift-Mod-z"]=vu,n.Backspace=yi(wu,Wn,Un,Gn),n.Enter=yi(ni,oi,si,li),Au||(n["Mod-y"]=vu),e.marks.strong&&(n["Mod-b"]=Gt(dn,Nt({},Mu,{applyToWord:i}))),e.marks.em&&(n["Mod-i"]=Gt(dn,Nt({},Ru,{applyToWord:i}))),e.marks.u&&(n["Mod-u"]=Gt(dn,Nt({},Bu,{applyToWord:i}))),e.nodes.hard_break){var r=e.nodes.hard_break,o=yi(ri,(function(e,t){return t(e.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0}));n["Shift-Enter"]=o}return n},Fu=function(e){var t,n={};return e.nodes.list_item&&(n.Enter=(t=e.nodes.list_item,function(e,n){return En(t)(e,(function(t){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&t.ensureMarks(i),n(t)}))})),n},zu=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,Ku=function(e){return/^MsoListParagraph/.test(e.className)},_u=function(e){var t=e.innerHTML;return t=(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},Hu=function(e,t){var n=document.createElement(e);return n.style.listStyleType=t,n},Wu=function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},Uu=function(e,t){var n=[];Array.from(e).forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE){var i=e;i.getAttribute("datalist")?(n.push(e),t.add(n)):Ku(i)&&n.length?n.push(e):(n=[],"DIV"===i.nodeName?Uu(i.children,t):"TABLE"===i.nodeName&&Array.from(i.querySelectorAll("td,th")).forEach((function(e){Uu(e.children,t)})))}}))},qu=function(e){var t,n=e.innerHTML,i=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=i(_u(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(t)?null:/^o/.test(t)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(n)?{tag:"ol",style:Wu(i(_u(e)))}:void 0},Gu=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?_u(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 i=document.createElement("li");return i.innerHTML=t,i},Ju=function(e){var t=document.createElement("div");t.innerHTML=function(e){return e=e.replace(zu,(function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e}))}(e);var n=new Set;return Uu(t.children,n),n.forEach((function(e){return function(e){var t,n,i,r,o,s,a,l,u,d,c,p,h,f=-1,v={};for(l=0;l<e.length;l++){var m=(h={datalist:(u=e[l]).getAttribute("datalist"),datalevel:u.getAttribute("datalevel")}).datalist,g=qu(u);if(d=g&&g.tag){if(c=h.datalevel||parseFloat(u.style.marginLeft||0),h.datalevel||u.style.marginLeft){var b=d+m;v[c]||(v[c]={}),(!n||n<0)&&(n=c,i=m,r=(a=e.filter((function(e){return e.getAttribute("datalist")===String(i)})))[a.length-1],s=Hu(d,g&&g.style),u.parentNode.insertBefore(s,u),f=c,v[c][b]=s),o=r===u,p=v[c][b],(c>f||!p)&&(p=Hu(d,g&&g.style),v[c][b]=p,t.appendChild(p)),t=Gu(u),p.appendChild(t),o?n=f=-1:f=c}}else!t||o&&!Ku(u)||(u.style.marginLeft&&(u.style.marginLeft=""),u.style.marginLeft&&(u.style.margin=""),t.appendChild(u))}}(e)})),t.innerHTML},Xu=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,"")},Yu=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},Zu=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},Qu=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},ed=function(e){/^Mso/.test(e.value)&&Qu(e)},td=/\s*;\s*/,nd=/\s*:\s*/,id=function(e){var t,n,i=e.value.split(td).filter((function(e){return Boolean(e)})),r=e.ownerElement.style,o="";i.forEach((function(e){var i;i=e.split(nd),t=i[0],n=i[1],void 0!==r[t]&&(o+=t+": "+n+"; ")})),(o=o.trim())?e.value=o:Qu(e)},rd=function(e,t){var n=e;if(t.convertMsLists&&(n=Ju(n)),t.stripTags&&(n=Zu(n,t.stripTags)),t.attributes){var i=document.createElement("div");i.innerHTML=n,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 i=e.attributes[n];t[i.name]?t[i.name](i):t["*"]&&t["*"](i)}"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=i.innerHTML}return n};function od(e){for(var t=e.length,n=new Array(t/2),i=0;i<t;i+=2)n[i]=String.fromCharCode(parseInt(e.substring(i,i+2),16));return btoa(n.join(""))}var sd=/<img\s[^>]*?src=(?:'|")file:\/[^'"]+(?:'|")[^>]*>/gi,ad=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,ld=new RegExp("(?:("+ad.source+"))([\\da-fA-F\\s]+)\\}","g"),ud=/[^\da-fA-F]/g,dd=/file:\/[^'"]+\.(jpg|png|gif)/i,cd=/\\(png|jpeg)blip\\/,pd=function(e,t){var n=e.match(sd);if(!n||-1===t.types.indexOf("text/rtf"))return e;var i=t.getData("text/rtf"),r=[],o=i.match(ld);if(!i||!o)return e;for(var s=0,a=o;s<a.length;s++){var l=a[s],u=cd.exec(l);if(u){var d=l.replace(ad,"").replace(ud,"");r.push("data:image/"+u[1]+";base64,"+od(d))}}return n.length!==r.length?e:e.replace(sd,(function(e){var t=r.shift()||"";return e.replace(dd,t)}))},hd=function(e,t,n,i,r){var o,s,a,l,u,d,c=[],p=[],h=t.matchCase,f=t.matchWord,v=t.useRegExp,m=t.text;if(v&&(/^\\$/.test(m)||/[^\\]\\$/.test(m))&&(m=m.substring(0,m.length-1)),!m)return c;var g=h?"g":"gi",b=v?new RegExp(m,g):kd(m,g);return e.nodesBetween(n,i,(function(t,h,v){if(r(c))return!1;t.inlineContent&&h+t.content.size>=n&&(p.length=0,t.nodesBetween(0,t.content.size,(function(t,v,m,g){if(r(c))return!1;var y=1+h+v;if(t.isText&&y+t.nodeSize>=n){if(u=t.text||"",d=m.childCount-1>=g+1&&m.child(g+1),p.push(n<=y?{text:u,start:y}:{text:u.slice(n-y),start:n}),d&&d.isText)return;for(s=p.map((function(e){return e.text})).join(""),o=b.exec(s);null!==o&&(a=p[0].start+o.index,l=a+o[0].length,n<=a&&i>=l&&yd(o,f)&&c.push(it.create(e,a,l)),!r(c));)o=b.exec(s)}else p.length=0})))})),c},fd=function(e,t){var n=t.backward,i=t.matchCyclic,r=Pt(t,["backward","matchCyclic"]),o=n?function(){return!1}:function(e){return e.length>0},s=e.doc,a=e.selection,l=[];return n?!(l=hd(s,r,0,a.from,o)).length&&i&&(l=hd(s,r,a.from,s.content.size,o)):!(l=hd(s,r,a.to,s.content.size,o)).length&&i&&(l=hd(s,r,0,a.to,o)),l.length?l[l.length-1]:null},vd=function(e,t){return hd(e,t,0,e.content.size,(function(){return!1}))},md=function(e,t,n){var i=e.from,r=e.to;return n.insertText(t,i,r).setSelection(it.create(n.doc,i,i+t.length)),n},gd=function(e,t,n){var i=vd(e.doc,n);if(0===i.length)return null;for(var r=e.tr,o=i.length-1;o>=0;o--)r.insertText(t,i[o].from,i[o].to);return r},bd=/^[\s0-9~`!@#$%\^&*\(\)_\-=+\\|\[\]{};:'"\?/.,<>]?$/,yd=function(e,t){if(t){if(!0===t){var n=e.input,i=n.charAt(e.index-1),r=n.charAt(e.index+e[0].length);return bd.test(i)&&bd.test(r)}return t(e)}return!0},kd=function(e,t){var n=e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(/\s/g,"\\s");return new RegExp(n,t)};function wd(e){var t={class:"k-placeholder","data-placeholder":e};return new yt({key:new St("placeholder"),props:{decorations:function(e){var n=e.doc,i=n.content.firstChild;if(!(0===n.childCount||1===n.childCount&&i.inlineContent&&0===i.childCount))return Ls.empty;var r=[];return n.descendants((function(e,n){r.push(Ps.node(n,n+e.nodeSize,t))})),Ls.create(n,r)}}})}var Sd=/\s+/g,Cd=/text-align/,xd=function(){return new yt({key:new St("spaces-fix"),props:{decorations:function(e){var t,n,i,r,o=[],s=e.doc;return s.nodesBetween(0,s.content.size,(function(e,s,a){if(e.type.isText&&function(e){return Cd.test(e&&e.attrs&&e.attrs.style||"")}(a))for(n=Sd.exec(e.text||"");null!==n;){if(t=s+n.index,i=n[0].length,n.index+i<n.input.length)for(r=0;r<=i-1;r+=2)o.push(Ps.inline(t+r,t+r+1,{style:"white-space: normal"}));n=Sd.exec(e.text||"")}})),Ls.create(s,o)}}})},Od=new St("highlight");function $d(e){return void 0===e&&(e=Od),new yt({key:e,state:{init:function(){return null},apply:function(e){return e.getMeta(this.spec.key)}},props:{decorations:function(e){var t=(this.spec.key.getState(e)||[]).map((function(e){return Ps.inline(e.from,e.to,e.attrs)}));return Ls.create(e.doc,t)}}})}var Id=new St("image-resize"),Td={southeast:{x:1,y:1},east:{x:1,y:0},south:{x:0,y:1},north:{x:0,y:-1},west:{x:-1,y:0},southwest:{x:-1,y:1},northwest:{x:-1,y:-1},northeast:{x:1,y:-1}},Dd=Object.keys(Td),Vd=function(e,t,n){e.style[t]=n+"px"},Md=/[^\-]width:|[^\-]height:/,Rd=/^.+$/,Bd=function(){function e(e,t,n,i){this.activeHandle=e,this.dragging=t,this.rect=n,this.nodePosition=i}return e.prototype.apply=function(t){var n=t.getMeta(Id);return n?new e(n.activeHandle,n.setDragging,n.rect,n.nodePosition):this},e}(),Nd=function(e,t,n){var i=t.target.getAttribute("data-direction");if(!i)return!1;var r=Id.getState(e.state);t.preventDefault();var o=e.state.tr;function s(t){!function(e,t,n){var i=Id.getState(e.state),r=i.rect,o=i.dragging,s=i.nodePosition,a=i.activeHandle;if(o&&r){var l=e.nodeDOM(s),u=Td[a],d=(t.clientX-o.startX)*u.x,c=(t.clientY-o.startY)*u.y,p=u.x?d+l.width:r.width,h=u.y?c+l.height:r.height;if(n.lockRatio&&u.x&&u.y){var f=Math.min(p/l.width,h/l.height),v=l.width*f,m=l.height*f;o.startX=t.clientX-(p-v)*u.x,o.startY=t.clientY-(h-m)*u.y,p=v,h=m}else o.startX=u.x?t.clientX:o.startX,o.startY=u.y?t.clientY:o.startY;Vd(l,"width",p),Vd(l,"height",h),r.top=l.offsetTop,r.left=l.offsetLeft,r.width=l.offsetWidth,r.height=l.offsetHeight;var g=l.nextElementSibling;g.style.width=r.width+"px",g.style.height=r.height+"px",g.style.top=r.top+"px",g.style.left=r.left+"px"}}(e,t,n)}return o.setMeta(Id,{setDragging:{startX:t.clientX,startY:t.clientY},activeHandle:i,rect:r.rect,nodePosition:r.nodePosition}),o.setMeta("addToHistory",!1),e.dispatch(o),t.view.addEventListener("mouseup",(function t(n){n.view.removeEventListener("mouseup",t),n.view.removeEventListener("mousemove",s),function(e){var t=Id.getState(e.state),n=t.rect,i=t.dragging,r=t.nodePosition;if(i&&n){var o=e.state.selection;if(o instanceof ot){var s=o.node.attrs,a=n.width,l=n.height,u=void 0;if(Md.test(s.style||"")){var d=jt(s.style,{style:"width",value:Rd,newValue:a+"px"}),c=jt(d.style||"",{style:"height",value:Rd,newValue:l+"px"}).style;u=Nt({},s,{style:c})}else u=Nt({},s,{width:a,height:l});var p=o.node.type.createAndFill(u);if(p){var h=e.state.tr;h.replaceWith(r,r+1,p),h.setSelection(ot.create(h.doc,r)),h.setMeta("commandName","image-resize"),h.setMeta("args",u),h.setMeta(Id,{setDragging:null,activeHandle:null,rect:n,nodePosition:r}),e.dispatch(h)}}}}(e)})),t.view.addEventListener("mousemove",s),!0},Pd=function(e){return void 0===e&&(e={node:"image",lockRatio:!0}),new yt({key:Id,view:function(t){return{resize:function(){Id.getState(t.state).rect&&t.dispatch(t.state.tr.setMeta("resize",!0))},get window(){return t.dom.ownerDocument&&t.dom.ownerDocument.defaultView},attachResize:function(){var e=this.window;e&&(e.removeEventListener("resize",this.resize),e.addEventListener("resize",this.resize))},removeResize:function(){var e=this.window;e&&e.removeEventListener("resize",this.resize)},update:function(t,n){var i=t.state,r=i.selection,o=i.schema.nodes[e.node],s=Id.getState(i),a=s.rect;if(r instanceof ot&&o===r.node.type){var l=t.nodeDOM(r.from),u={top:l.offsetTop,left:l.offsetLeft,width:l.offsetWidth,height:l.offsetHeight};if(!n.selection.eq(r)||a&&(a.width!==u.width||a.height!==u.height||a.top!==u.top||a.left!==u.left)){var d=i.tr;d.setMeta(Id,{rect:u,nodePosition:r.from}),t.dispatch(d),this.attachResize()}}else a&&(s.rect=null,s.nodePosition=-1)},destroy:function(){this.removeResize()}}},state:{init:function(){return new Bd("",null,null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:function(t,n){return Nd(t,n,e)}},decorations:function(t){var n=t.selection,i=t.schema.nodes[e.node],r=Id.getState(t).rect;if(r&&n instanceof ot&&i===n.node.type){var o=document.createElement("div");o.className="k-editor-resize-handles-wrapper",o.style.width=r.width+"px",o.style.height=r.height+"px",o.style.top=r.top+"px",o.style.left=r.left+"px";for(var s=0;s<Dd.length;s++){var a=document.createElement("div");a.className="k-editor-resize-handle "+Dd[s],a.setAttribute("data-direction",Dd[s]),o.appendChild(a)}return Ls.create(t.doc,[Ps.widget(t.selection.from+1,o)])}return Ls.empty}}})},jd=new St("caret-color");function Ed(){return new yt({key:jd,props:{decorations:function(e){var t=e.doc,n=e.selection,i=e.storedMarks;if(!n.empty||!i)return Ls.empty;var r=tn((i||[]).find((function(e){return"style"===e.type.name})),{name:"color",value:/^.+$/});if(!r)return Ls.empty;var o=n.$anchor.parent,s=[];return t.descendants((function(e,t){e.eq(o)&&s.push(Ps.node(t,t+e.nodeSize,{style:"caret-color: "+r}))})),Ls.create(t,s)}}})}function Ad(e){return void 0===e&&(e={}),new yt({view:function(t){return new Ld(t,e)}})}var Ld=function(e,t){var n=this;this.editorView=e,this.width=t.width||1,this.color=t.color||"black",this.class=t.class,this.cursorPos=null,this.element=null,this.timeout=null,this.handlers=["dragover","dragend","drop","dragleave"].map((function(t){var i=function(e){return n[t](e)};return e.dom.addEventListener(t,i),{name:t,handler:i}}))};Ld.prototype.destroy=function(){var e=this;this.handlers.forEach((function(t){var n=t.name,i=t.handler;return e.editorView.dom.removeEventListener(n,i)}))},Ld.prototype.update=function(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())},Ld.prototype.setCursor=function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())},Ld.prototype.updateOverlay=function(){var e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){var n=t.nodeBefore,i=t.nodeAfter;if(n||i){var r=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),o=n?r.bottom:r.top;n&&i&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:r.left,right:r.right,top:o-this.width/2,bottom:o+this.width/2}}}if(!e){var s=this.editorView.coordsAtPos(this.cursorPos);e={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}var a,l,u=this.editorView.dom.offsetParent;if(this.element||(this.element=u.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),!u||u==document.body&&"static"==getComputedStyle(u).position)a=-pageXOffset,l=-pageYOffset;else{var d=u.getBoundingClientRect();a=d.left-u.scrollLeft,l=d.top-u.scrollTop}this.element.style.left=e.left-a+"px",this.element.style.top=e.top-l+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"},Ld.prototype.scheduleRemoval=function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setCursor(null)}),e)},Ld.prototype.dragover=function(e){if(this.editorView.editable){var t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),i=n&&n.type.spec.disableDropCursor,r="function"==typeof i?i(this.editorView,t):i;if(t&&!r){var o=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&null==(o=Ae(this.editorView.state.doc,o,this.editorView.dragging.slice)))return this.setCursor(null);this.setCursor(o),this.scheduleRemoval(5e3)}}},Ld.prototype.dragend=function(){this.scheduleRemoval(20)},Ld.prototype.drop=function(){this.scheduleRemoval(20)},Ld.prototype.dragleave=function(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)};var Fd=function(e){function t(t){e.call(this,t,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,i){var r=n.resolve(i.map(this.head));return t.valid(r)?new t(r):e.near(r)},t.prototype.content=function(){return p.empty},t.prototype.eq=function(e){return e instanceof t&&e.head==this.head},t.prototype.toJSON=function(){return{type:"gapcursor",pos:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new t(e.resolve(n.pos))},t.prototype.getBookmark=function(){return new zd(this.anchor)},t.valid=function(e){var t=e.parent;if(t.isTextblock||!function(e){for(var t=e.depth;t>=0;t--){var n=e.index(t),i=e.node(t);if(0!=n)for(var r=i.child(n-1);;r=r.lastChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e)||!function(e){for(var t=e.depth;t>=0;t--){var n=e.indexAfter(t),i=e.node(t);if(n!=i.childCount)for(var r=i.child(n);;r=r.firstChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e))return!1;var n=t.type.spec.allowGapCursor;if(null!=n)return n;var i=t.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock},t.findFrom=function(e,n,i){e:for(;;){if(!i&&t.valid(e))return e;for(var r=e.pos,o=null,s=e.depth;;s--){var a=e.node(s);if(n>0?e.indexAfter(s)<a.childCount:e.index(s)>0){o=a.child(n>0?e.indexAfter(s):e.index(s)-1);break}if(0==s)return null;r+=n;var l=e.doc.resolve(r);if(t.valid(l))return l}for(;;){var u=n>0?o.firstChild:o.lastChild;if(!u){if(o.isAtom&&!o.isText&&!ot.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*n),i=!1;continue e}break}o=u,r+=n;var d=e.doc.resolve(r);if(t.valid(d))return d}return null}},t}(et);Fd.prototype.visible=!1,et.jsonID("gapcursor",Fd);var zd=function(e){this.pos=e};zd.prototype.map=function(e){return new zd(e.map(this.pos))},zd.prototype.resolve=function(e){var t=e.resolve(this.pos);return Fd.valid(t)?new Fd(t):et.near(t)};var Kd=function(){return new yt({props:{decorations:Ud,createSelectionBetween:function(e,t,n){if(t.pos==n.pos&&Fd.valid(n))return new Fd(n)},handleClick:Wd,handleKeyDown:_d}})},_d=dr({ArrowLeft:Hd("horiz",-1),ArrowRight:Hd("horiz",1),ArrowUp:Hd("vert",-1),ArrowDown:Hd("vert",1)});function Hd(e,t){var n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,i,r){var o=e.selection,s=t>0?o.$to:o.$from,a=o.empty;if(o instanceof it){if(!r.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=e.doc.resolve(t>0?s.after():s.before())}var l=Fd.findFrom(s,t,a);return!!l&&(i&&i(e.tr.setSelection(new Fd(l))),!0)}}function Wd(e,t,n){if(!e.editable)return!1;var i=e.state.doc.resolve(t);if(!Fd.valid(i))return!1;var r=e.posAtCoords({left:n.clientX,top:n.clientY}).inside;return!(r>-1&&ot.isSelectable(e.state.doc.nodeAt(r)))&&(e.dispatch(e.state.tr.setSelection(new Fd(i))),!0)}function Ud(e){if(!(e.selection instanceof Fd))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",Ls.create(e.doc,[Ps.widget(e.selection.head,t,{key:"gapcursor"})])}var qd=function(e,t,n){for(var i,r=e.table,o=e.table_row,s=e.table_cell,a=[],l=0;l<t+1;l++){i=[];for(var u=0;u<n+1;u++)i.push(s.createAndFill());a.push(o.createAndFill(void 0,i))}return r.createAndFill(void 0,a)},Gd=function(e,t){for(var n=e.$head,i=n.depth;i>0;i--){var r=n.node(i);if(r.type.name===t)return{pos:n.before(i),node:r}}return null},Jd=function(e,t){return ol(e,t&&function(e){var n,i=Gd(e.selection,"table_row"),r=Gd(e.selection,"table");if(i&&r&&i.node.attrs[Ct]){for(var o=0,s=0;s<r.node.nodeSize;s++)if(r.node.child(s).eq(i.node)){o=s;break}var a=r.node.child(o-1),l=i.pos-a.nodeSize;e.setNodeMarkup(l,void 0,((n={})[Ct]=i.node.attrs[Ct],n))}return t(e)})},Xd=function(e,t){return sl(e,t&&function(e){var n,i=Gd(e.selection,"table_row");if(i&&i.node.attrs[Ct]){var r=i.pos+i.node.nodeSize;e.setNodeMarkup(r,void 0,((n={})[Ct]=i.node.attrs[Ct],n))}return t(e)})}},function(e,t,n){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.messages=void 0;var r="editor.pdf";t.messages=((i={})["editor.bold"]="Bold",i["editor.italic"]="Italic",i["editor.underline"]="Underline",i["editor.strikethrough"]="Strikethrough",i["editor.subscript"]="Subscript",i["editor.superscript"]="Superscript",i["editor.unlink"]="Remove hyperlink",i["editor.undo"]="Undo",i["editor.redo"]="Redo",i["editor.fontSize"]="Font Size",i["editor.fontName"]="Font Name",i["editor.format"]="Format",i["editor.alignLeft"]="Align text left",i["editor.alignRight"]="Align text right",i["editor.alignCenter"]="Center text",i["editor.alignJustify"]="Justify",i["editor.indent"]="Indent",i["editor.outdent"]="Outdent",i["editor.orderedList"]="Insert ordered list",i["editor.bulletList"]="Insert unordered list",i["editor.print"]="Print",i["editor.selectAll"]="Select All",i["editor.cleanFormatting"]="Clean formatting",i[r]="Export as PDF",i["editor.foregroundColor"]="Color",i["editor.backgroundColor"]="Background color",i["editor.createTable"]="Create a table",i["editor.insertTableHint"]="Create a {0} x {1} table",i["editor.addRowBefore"]="Add row above",i["editor.addRowAfter"]="Add row below",i["editor.addColumnBefore"]="Add column on the left",i["editor.addColumnAfter"]="Add column on the right",i["editor.deleteRow"]="Delete row",i["editor.deleteColumn"]="Delete column",i["editor.deleteTable"]="Delete table",i["editor.mergeCells"]="Merge cells",i["editor.splitCell"]="Split cell",i["editor.hyperlink"]="Insert hyperlink",i["editor.hyperlink-dialog-title"]="Insert hyperlink",i["editor.hyperlink-dialog-content-address"]="Web address",i["editor.hyperlink-dialog-content-title"]="Title",i["editor.hyperlink-dialog-content-newwindow"]="Open link in new window",i["editor.hyperlink-dialog-cancel"]="Cancel",i["editor.hyperlink-dialog-insert"]="Insert",i["editor.insertFile"]="Insert file",i["editor.insertfile-dialog-title"]="Insert file",i["editor.insertfile-dialog-content-address"]="Web address",i["editor.insertfile-dialog-content-title"]="Title",i["editor.insertfile-dialog-cancel"]="Cancel",i["editor.insertfile-dialog-insert"]="Insert",i["editor.image"]="Insert image",i["editor.image-dialog-title"]="Insert image",i["editor.image-address"]="Web address",i["editor.image-title"]="Title",i["editor.image-altText"]="Alternate text",i["editor.image-width"]="Width (px)",i["editor.image-height"]="Height (px)",i["editor.image-cancel"]="Cancel",i["editor.image-insert"]="Insert",i["editor.viewHtml"]="View HTML",i["editor.viewHtml-dialog-title"]="View HTML",i["editor.viewHtml-cancel"]="Cancel",i["editor.viewHtml-update"]="Update",i["editor.findReplace-tool-title"]="Find and Replace",i["editor.findReplace-dialog-title"]="Find and Replace",i["editor.findReplace-tab-find"]="Find",i["editor.findReplace-tab-replace"]="Replace",i["editor.findReplace-findWhat"]="Find What:",i["editor.findReplace-replaceWith"]="Replace With",i["editor.findReplace-replace"]="Replace",i["editor.findReplace-replaceAll"]="Replace All",i["editor.findReplace-matchCase"]="Match Case",i["editor.findReplace-matchWord"]="Match whole word only",i["editor.findReplace-matchCyclic"]="Match cyclic (Wrap around)",i["editor.findReplace-useRegExp"]="Regular Expression",i["editor.findReplace-prevMatch"]="Prev",i["editor.findReplace-nextMatch"]="Next",i["editor.findReplace-matches"]="{0} of {1} matches",i),t.keys={bold:"editor.bold",italic:"editor.italic",underline:"editor.underline",strikethrough:"editor.strikethrough",subscript:"editor.subscript",superscript:"editor.superscript",unlink:"editor.unlink",undo:"editor.undo",redo:"editor.redo",fontSize:"editor.fontSize",fontName:"editor.fontName",format:"editor.format",alignLeft:"editor.alignLeft",alignRight:"editor.alignRight",alignCenter:"editor.alignCenter",alignJustify:"editor.alignJustify",indent:"editor.indent",outdent:"editor.outdent",orderedList:"editor.orderedList",bulletList:"editor.bulletList",print:"editor.print",selectAll:"editor.selectAll",cleanFormatting:"editor.cleanFormatting",pdf:r,foregroundColor:"editor.foregroundColor",backgroundColor:"editor.backgroundColor",createTable:"editor.createTable",createTableHint:"editor.insertTableHint",addRowBefore:"editor.addRowBefore",addRowAfter:"editor.addRowAfter",addColumnBefore:"editor.addColumnBefore",addColumnAfter:"editor.addColumnAfter",deleteRow:"editor.deleteRow",deleteColumn:"editor.deleteColumn",deleteTable:"editor.deleteTable",mergeCells:"editor.mergeCells",splitCell:"editor.splitCell",insertHyperlink:"editor.hyperlink",insertHyperlinkDialogTitle:"editor.hyperlink-dialog-title",insertHyperlinkAddress:"editor.hyperlink-dialog-content-address",insertHyperlinkTitle:"editor.hyperlink-dialog-content-title",insertHyperlinkNewWindow:"editor.hyperlink-dialog-content-newwindow",insertHyperlinkCancel:"editor.hyperlink-dialog-cancel",insertHyperlinkInsert:"editor.hyperlink-dialog-insert",insertFile:"editor.insertFile",insertFileDialogTitle:"editor.insertfile-dialog-title",insertFileAddress:"editor.insertfile-dialog-content-address",insertFileTitle:"editor.insertfile-dialog-content-title",insertFileCancel:"editor.insertfile-dialog-cancel",insertFileInsert:"editor.insertfile-dialog-insert",insertImage:"editor.image",insertImageDialogTitle:"editor.image-dialog-title",insertImageAddress:"editor.image-address",insertImageTitle:"editor.image-title",insertImageAltText:"editor.image-altText",insertImageWidth:"editor.image-width",insertImageHeight:"editor.image-height",insertImageCancel:"editor.image-cancel",insertImageInsert:"editor.image-insert",viewHtml:"editor.viewHtml",viewHtmlDialogTitle:"editor.viewHtml-dialog-title",viewHtmlCancel:"editor.viewHtml-cancel",viewHtmlUpdate:"editor.viewHtml-update",findReplaceToolTitle:"editor.findReplace-tool-title",findReplaceDialogTitle:"editor.findReplace-dialog-title",findReplaceTabFind:"editor.findReplace-tab-find",findReplaceTabReplace:"editor.findReplace-tab-replace",findReplaceFindWhat:"editor.findReplace-findWhat",findReplaceReplaceWith:"editor.findReplace-replaceWith",findReplaceReplace:"editor.findReplace-replace",findReplaceReplaceAll:"editor.findReplace-replaceAll",findReplaceMatchCase:"editor.findReplace-matchCase",findReplaceMatchWord:"editor.findReplace-matchWord",findReplaceMatchCyclic:"editor.findReplace-matchCyclic",findReplaceUseRegExp:"editor.findReplace-useRegExp",findReplacePrevMatch:"editor.findReplace-prevMatch",findReplaceNextMatch:"editor.findReplace-nextMatch",findReplaceMatches:"editor.findReplace-matches"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i={name:"@progress/kendo-vue-buttons",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428804,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i={name:"@progress/kendo-vue-layout",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428942,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t){e.exports=n},function(e,t,n){"use strict";n.r(t),n.d(t,"Popup",(function(){return le})),n.d(t,"PopupVue2",(function(){return ae}));var i=n(1),r=n(17),o="bottom",s="center",a="middle",l="left",u="right",d="top",c=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,r=e.elementAlign,l=e.margin;void 0===l&&(l={});var d=n.horizontal,c=n.vertical,p=r.horizontal,h=r.vertical,f=l.horizontal||0,v=l.vertical||0,m=t.top,g=t.left;return c===o&&(m+=t.height),c!==s&&c!==a||(m+=Math.round(t.height/2)),h===o&&(m-=i.height,v*=-1),h!==s&&h!==a||(m-=Math.round(i.height/2),v*=-1),d===u&&(g+=t.width),d!==s&&d!==a||(g+=Math.round(t.width/2)),p===u&&(g-=i.width,f*=-1),p!==s&&p!==a||(g-=Math.round(i.width/2),f*=-1),{top:m+v,left:g+f}};function p(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}function h(e){return e.ownerDocument||e.document||e}var f=function(e){return h(e).defaultView},v=function(e){return h(e).documentElement},m=0;function g(){if(!m&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),m=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return m}function b(e){var t=f(e),n=v(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=g()),i}var y=function(e){if(!e.getBoundingClientRect){var t=b(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}},k=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||v(e)},w=function(e){return k(e)===e.ownerDocument.body},S=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,r=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var o=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=r,o}(e)),{top:i,left:n,height:t.height,width:t.width}},C=function(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n};function x(e){var t=v(e),n=f(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}var O=function(e){return e===(e.ownerDocument||{}).body?x(e):{x:e.scrollLeft,y:e.scrollTop}};var $=function(e,t){var n=f(e),i=n.getComputedStyle(e),r=S(e),o=t||k(e),s=e.ownerDocument,a=o!==s.body&&o!==s.documentElement,l={top:0,left:0};if("fixed"!==i.position&&a){var u=n.getComputedStyle(o);(l=S(o)).top+=parseInt(u.borderTopWidth,10),l.left+=parseInt(u.borderLeftWidth,10)}return{top:r.top-l.top,left:r.left-l.left,height:r.height,width:r.width}},I=function(e,t){return e?O(e):function(e){var t=k(e);return t?O(t):{x:0,y:0}}(t)},T=function(e,t,n){void 0===n&&(n=1);var i=t?k(t):null,r=$(e,i),o=r.top,s=r.left,a=r.height,l=r.width,u=I(i,e),d=u.x,c=u.y,p=e.ownerDocument,h=i===p.body||i===p.documentElement?1:n;return{top:o+c*h,left:s+d*h,height:a,width:l}};function D(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}var V="fit",M="flip",R=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},B=function(e){var t=e.offset,n=e.size,i=e.anchorSize,r=e.viewPortSize,o=e.anchorAlignPoint,u=e.elementAlignPoint,c=0,p=2*e.margin;if(u!==o&&!(u===s||u===a)&&!(o===s||o===a)){var h=o===d||o===l;t<0&&h?t+(c=n+i+p)+n>r&&(c=0):t>=0&&!h&&(t+n>r&&(c+=-(i+n+p)),t+c<0&&(c=0))}return c},N=function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,r=e.elementAlign,o=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var l=i.top,u=i.left,d=i.height,c=i.width,p=s.height,h=s.width,f=a.horizontal||0,v=a.vertical||0,m=0,g=0,b=o.vertical===V,y=o.horizontal===V,k=o.vertical===M,w=o.horizontal===M;b&&(g+=R(l,d,p)),y&&(m+=R(u,c,h)),k&&(g+=B({margin:v,offset:l,size:d,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:r.vertical})),w&&(m+=B({margin:f,offset:u,size:c,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:r.horizontal}));var S=k&&0!==g,C=w&&0!==m,x=b&&0!==g,O=y&&0!==m;return{flipped:C||S,fitted:x||O,flip:{horizontal:C,vertical:S},fit:{horizontal:O,vertical:x},offset:{left:m,top:g}}},P=function(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t},j=function(e,t){for(var n,i,r=C(e),o=t;o&&(n=P(o),!(i=r.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)o=o.parentElement;return i};E=function(e){if(!F())return!1;var t=e?e.ownerDocument:document;if(!t||!t.body)return!1;var n=t.createElement("div");n.style.transform="matrix(10, 0, 0, 10, 0, 0)",n.innerHTML='<div style="position: fixed; top: 10px;">child</div>',t.body.appendChild(n);var i=10!==n.children[0].getBoundingClientRect().top;return t.body.removeChild(n),i},L=!1;var E,A,L,F=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},z=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},K=function(){return"undefined"!=typeof document&&!!document.body},_=function(){return"undefined"!=typeof window},H=/auto|scroll/,W=function(e){var t=window.getComputedStyle(e);return""+t.overflow+t.overflowX+t.overflowY},U=function(){if(!K())return!1;var e=document.createElement("div");if(e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML="<div>child</div>",document.body.appendChild(e),e&&e.firstChild){var t=e.firstChild;t.style.position="fixed",t.style.top="10px"}var n=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),n}(),q="fit",G="flip",J="left",X="bottom",Y="top",Z=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,r=e.elementAlign,o=e.offset,s=!this._dom.hasOffsetParent(n)?this.absoluteRect(t,n,o):this.relativeRect(t,n,o);return this._dom.align({anchorAlign:i,anchorRect:s,elementAlign:r,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var i=this._dom,r=function(e,t){return t?{height:e.height,left:e.left-t.left,top:e.top-t.top,width:e.width}:e}(z(i.offset(e),n),i.stackingElementOffset(t)),o=i.stackingElementScroll(t),s=i.addScroll(r,o),a=this.elementScrollPosition(e,t),l=i.removeScroll(s,a);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return z(this._dom.position(e,t),n)},e}(),Q=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return c(e)},e.prototype.boundingOffset=function(e){return y(e)},e.prototype.getWindow=function(){return _()?window:null},e.prototype.isBodyOffset=function(e){return w(e)},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?S(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,i=t.top;e.style.left="0px",e.style.top="0px";var r=S(e);return e.style.left=n,e.style.top=i,r},e.prototype.position=function(e,t){if(!e||!t)return null;var n=j(e,t);return T(e,n)},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),i=t,r=this.isBodyOffset(e),o=n.top,s=n.left,r&&(s=0,o=0),{top:o+i.top,left:s+i.left,height:n.height,width:n.width};var n,i,r,o,s},e.prototype.addScroll=function(e,t){return p(e,t)},e.prototype.removeScroll=function(e,t){return D(e,t)},e.prototype.restrictToView=function(e){return N(e)},e.prototype.scrollPosition=function(e){return x(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!K()||!_())return t;for(var n=e.parentElement;n;)H.test(W(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?S(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!U)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return b(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!K()||!_())return null;var n=j(e,t);if(!n)return null;var i=[e].concat(C(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(e,t)},e.prototype.zoomLevel=function(){return K()&&_()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),ee=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,i=e.anchor,r=e.currentLocation,o=e.element,s=e.anchorAlign,a=e.elementAlign,l=e.collisions,u=this._dom,d=e.viewPort||u.stackingElementViewPort(o)||u.windowViewPort(o),c=z(u.offset(i),r),p=(t=u.staticOffset(o),(n=r)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),h=this.elementRect(o,p),f=u.restrictToView({anchorAlign:s,anchorRect:c,collisions:l,elementAlign:a,elementRect:h,viewPort:d});return{flipped:f.flipped,offset:u.addOffset(p,f.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),te=n(0),ne={name:"@progress/kendo-vue-popup",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428726,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},ie=i,re=ie.h,oe=ie.version&&"3"===ie.version[0],se={left:-1e3,top:0},ae={name:"Popup",props:{appendTo:{type:String,default:""},anchor:{type:String,default:""},className:String,id:String,popupClass:String,collision:{type:Object,default:function(){return{horizontal:q,vertical:G}}},anchorAlign:{type:Object,default:function(){return{horizontal:J,vertical:X}}},popupAlign:{type:Object,default:function(){return{horizontal:J,vertical:Y}}},offset:{type:Object,default:function(){return se}},show:{type:Boolean,default:!1},animate:{type:[Boolean,Object],default:function(){return!0}},direction:{type:String,default:"down"},transition:{type:String,default:"expand"}},inject:{kCurrentZIndex:{default:null}},data:function(){return{hasMounted:!1}},created:function(){Object(te.validatePackage)(ne),this.mountedAppendTo=void 0,this.mountedAnchor=void 0,this._initiallyMountedContent=void 0,this._flipped=!1,this._offsetTop=0,this._offsetLeft=-1e3,this._exitingAnimation=!1,this._prevShow=!1,this._prevShow=this.$props.show,this._domService=new Q,this._alignService=new Z(this._domService),this._positionService=new ee(this._domService),this.reposition=function(e,t,n){var i,r,o,s;void 0===n&&(n={});var a=0;n=n||{};var l=function(){a=!1===n.leading?0:(new Date).getTime(),i=null,s=e.apply(r,o),i||(r=o=null)};return function(){var u=(new Date).getTime();a||!1!==n.leading||(a=u);var d=t-(u-a);return r=this,o=arguments,d<=0||d>t?(i&&(clearTimeout(i),i=null),a=u,s=e.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(l,d)),s}}(this.reposition.bind(this),1e3/60)},setup:oe?function(){return{v3:!!oe}}:void 0,mounted:function(){te.canUseDOM&&(this.mountedAppendTo=this.$props.appendTo?this.getParentRef(this.$props.appendTo):document.body,this.mountedAnchor=this.$props.anchor?this.getParentRef(this.$props.anchor):document.body),this._parentElement=this.$el.parentElement,this._initiallyMountedContent=this.$el.cloneNode(!0),this.hasMounted=!0,this.mountedAppendTo.appendChild(this.$el)},updated:function(){this._prevShow=this.$props.show},destroyed:oe?void 0:function(){this.detachRepositionHandlers()},beforeDestroy:oe?void 0:function(){this._parentElement&&this._parentElement.appendChild(this.$el)},unmounted:function(){this.detachRepositionHandlers()},beforeUnmount:function(){this._parentElement&&this._parentElement.appendChild(this.$el)},methods:{onOpened:function(){var e=this.$el;this.$props.show&&e.classList.add("k-animation-container-shown"),this.attachRepositionHandlers(e),this.$emit("open",{target:this})},onClosing:function(){this.$props.show||this.$el.classList.remove("k-animation-container-shown");this.detachRepositionHandlers()},onClosed:function(){this._exitingAnimation&&(this._exitingAnimation=!1,this.$forceUpdate()),this.$emit("close",{target:this})},transitionDuration:function(){var e=this.$props.animate,t=0,n=0;return e&&(!0===e?t=n=void 0:(t=e.openDuration,n=e.closeDuration)),{transitionEnterDuration:t,transitionExitDuration:n}},getParentRef:function(e){for(var t=this.$parent;!t.$refs[e];){if(t&&t.kendoAnchorRef)return t.kendoAnchorRef;if(!(t=t.$parent)&&te.canUseDOM)return document.body}return t.$refs[e].$el||t.$refs[e]},position:function(e,t,n){var i=e.anchorAlign,r=e.popupAlign,o=e.collision,s=e.offset,a=n?this.v3?this.mountedAnchor:this.getParentRef(n):document.body,l=this._alignService.alignElement({anchor:n?a:void 0,element:t,elementAlign:r,anchorAlign:i,offset:s});return this._positionService.positionElement({anchor:a,anchorAlign:i,collisions:o,element:t,currentLocation:l,elementAlign:r})},calculatePosition:function(e,t){if(!t||!_()||!te.canUseDOM)return{flipped:!1,offset:e.offset};var n=Object(te.getDefaultSlots)(this),i=document.createElement("div"),r=this.$el&&this.$el.firstChild&&this.$el.firstChild.firstChild?this.$el.firstChild.firstChild.cloneNode(!0):null,o=r&&r.getBoundingClientRect?r:this._initiallyMountedContent;if(o)i.appendChild(o);else{var s=this.v3?n&&n[0].props?n[0].props.class:"":n&&n[0].data?n[0].data.staticClass:"",a=this.v3?this.$props.popupClass?this.$props.popupClass:"":n&&n[0].data?n[0].data.class:"";i.innerHTML='<div class="k-animation-container k-animation-container-relative">\t\n <div class="k-popup k-animation-container k-animation-container-relative">\n <div class="'+s+" "+a+'" >\n </div>\t\n </div>\t\n </div>'}if(t.appendChild(i),i&&i.firstChild){var l=i.firstChild;l.style.position="absolute",l.style.visibility="hidden",l.style.display="block",l.style.left="-1000",l.style.top="0";var u=this.v3?n&&n[0].props?n[0].props.style:{}:n[0].data?n[0].data.style:{};if(u)for(var d=0,c=Object.entries(u);d<c.length;d++){var p=c[d],h=p[0],f=p[1];l.style[h]=f}}var v=this.position(e,i.firstChild,this.$props.anchor);return i.parentNode.removeChild(i),v},attachRepositionHandlers:function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.$props.anchor?this.mountedAnchor:e),this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},detachRepositionHandlers:function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},reposition:function(){this.$forceUpdate()},getCurrentZIndex:function(){return this.kCurrentZIndex?this.kCurrentZIndex+1:100}},render:function(e){var t=re||e,n=this.$props,i=n.className,o=n.popupClass,s=n.show,a=n.id,l=Object(te.getDefaultSlots)(this),u=this.v3||s?l:null,d=_()?this.$props.appendTo?this.mountedAppendTo||this.getParentRef(this.$props.appendTo):document.body:void 0;if(this.$props.show){var c=this.calculatePosition(this.$props,d);this._offsetLeft=c.offset.left,this._offsetTop=c.offset.top,this._flipped=!!c.flipped}var p=this._flipped?"up":"down",h=this.transitionDuration(),f=h.transitionEnterDuration,v=h.transitionExitDuration,m=this.getCurrentZIndex();return this._exitingAnimation=this._exitingAnimation||this._prevShow&&!s,this.hasMounted?s||this._exitingAnimation&&d?t(r.c,{id:a,attrs:this.v3?void 0:{id:a,role:this.appendTo?"":"region",componentChildClassName:[o,"k-popup"],className:i,direction:p,transitionEnterDuration:f,transitionExitDuration:v,appear:s},role:this.appendTo?"":"region",componentChildClassName:[o,"k-popup"],className:i,onEntered:this.onOpened,on:this.v3?void 0:{entered:this.onOpened,exiting:this.onClosing,exited:this.onClosed},onExiting:this.onClosing,onExited:this.onClosed,direction:p,style:{zIndex:m,position:"absolute",top:this._offsetTop+"px",left:this._offsetLeft+"px"},transitionEnterDuration:f,transitionExitDuration:v,appear:s},this.v3?function(){return[u]}:[u]):null:t("div",{style:{display:"none"},class:i},[t("div",{class:[o,"k-popup"]},[l])])}},le=ae},function(e,t,n){"use strict";var i,r,o,s,a;n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return a})),function(e){e.CIRCLE="circle",e.SQUARE="square",e.ROUNDED="rounded",e.RECTANGLE="rectangle"}(i||(i={})),function(e){e.TEXT="text",e.IMAGE="image",e.ICON="icon"}(r||(r={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(o||(o={})),function(e){e.DEFAULT="default",e.primary="primary",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(s||(s={})),function(e){e.START="start",e.CENTER="center",e.END="end",e.STRETCHED="stretched"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return h}));var i={vertical:"top",horizontal:"left"},r={vertical:"top",horizontal:"right"},o={vertical:"flip",horizontal:"fit"},s={vertical:"fit",horizontal:"flip"},a={downward:{anchorAlign:{vertical:"bottom",horizontal:"right"},popupAlign:r,collision:o},leftward:{anchorAlign:{vertical:"top",horizontal:"left"},popupAlign:r,collision:s}},l={downward:{anchorAlign:{vertical:"bottom",horizontal:"left"},popupAlign:i,collision:o},rightward:{anchorAlign:{vertical:"top",horizontal:"right"},popupAlign:i,collision:s}},u=n(3);function d(e,t,n){var i=c(e,t,n);return n?"downward"===i?a.downward:a.leftward:"downward"===i?l.downward:l.rightward}function c(e,t,n){return Object(u.m)(e)?t?n?"leftward":"rightward":"downward":n?"leftward":"rightward"}function p(e){return e?"rtl":"ltr"}function h(e,t){return e+"_"+t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return I})),n.d(t,"c",(function(){return F})),n.d(t,"b",(function(){return X})),n.d(t,"d",(function(){return Y})),n.d(t,"e",(function(){return Z}));var i=n(1),r=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),i=parseFloat(t.marginBottom);return e.offsetHeight+n+i},o=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),i=parseFloat(t.marginRight);return e.offsetWidth+n+i},s={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"},a=n(0),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},d=i,c=d.h,p=d.version&&"3"===d.version[0],h=d.ref,f=d.Transition,v=s,m={props:{in:Boolean,transitionName:{type:String,required:!0},transitionStyle:Object,componentChildClassName:[Array],className:String,appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:Number,transitionExitDuration:Number,mountOnEnter:Boolean,unmountOnExit:Boolean,animationEnteringStyle:Object,animationEnteredStyle:Object,animationExitingStyle:Object,animationExitedStyle:Object},created:function(){this.animationStep=""},setup:p?function(){return{v3:!!p,elementRef:h(null)}}:void 0,mounted:function(){this._element=this.v3?this.elementRef||null:this.$refs.element||null},computed:{element:{get:function(){return this._element}}},methods:{onBeforeEnter:function(e){this.$emit("beforeenter",{animatedElement:e,target:this})},onEnter:function(e){this.animationStep="entering",this.$emit("entering",{animatedElement:e,target:this})},onAfterEnter:function(e){this.animationStep="entered",this.$emit("entered",{animatedElement:e,target:this})},onBeforeLeave:function(e){this.$emit("exit",{animatedElement:e,target:this})},onLeave:function(e){this.animationStep="exiting",this.$emit("exiting",{animatedElement:e,target:this})},onAfterLeave:function(e){this.animationStep="exited",this.$emit("exited",{animatedElement:e,target:this})}},render:function(e){var t=this,n=c||e,i=this.$props,r=i.appear,o=i.enter,s=i.exit,d=i.transitionName,p=i.transitionEnterDuration,h=i.transitionExitDuration,m=(i.className,i.componentChildClassName),g=(i.mountOnEnter,i.unmountOnExit,i.animationEnteringStyle),b=i.animationEnteredStyle,y=i.animationExitingStyle,k=i.animationExitedStyle,w=(u(i,["appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","componentChildClassName","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),Object(a.getDefaultSlots)(this)),S=this.v3?r:!!w,C=this.v3?f:"transition",x=[m,v["child-animation-container"]],O=o?p:0,$=s?h:0,I=[l({transitionDelay:"0ms",transitionDuration:S?O+"ms":$+"ms"},this.$props.transitionStyle),{entering:l({transitionDuration:O+"ms"},g),entered:l({},b),exiting:l({transitionDuration:$+"ms"},y),exited:l({},k)}[this.animationStep]],T={enter:O,leave:$},D=[S?n("div",{style:I,class:x,ref:this.v3?function(e){t.elementRef=e}:"element"},[w]):null];return n(C,{duration:T,attrs:this.v3?null:{duration:T,name:d,appear:r,appearClass:v[d+"-appear"]||d+"-appear",appearToClass:v[d+"-appear-active"]||d+"-appear-active",enterClass:v[d+"-enter"]||d+"-enter",enterToClass:v[d+"-enter-active"]||d+"-enter-active",leaveClass:v[d+"-exit"]||d+"-exit",leaveToClass:v[d+"-exit-active"]||d+"-exit-active"},name:d,appear:r,appearFromClass:v[d+"-appear"]||d+"-appear",enterFromClass:v[d+"-enter"]||d+"-enter",leaveFromClass:v[d+"-exit"]||d+"-exit",appearToClass:v[d+"-appear-active"]||d+"-appear-active",enterToClass:v[d+"-enter-active"]||d+"-enter-active",leaveToClass:v[d+"-exit-active"]||d+"-exit-active",onBeforeEnter:this.onBeforeEnter,on:this.v3?null:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave},onEnter:this.onEnter,onAfterEnter:this.onAfterEnter,onBeforeLeave:this.onBeforeLeave,onLeave:this.onLeave,onAfterLeave:this.onAfterLeave},this.v3?function(){return D}:D)}},g={name:"@progress/kendo-vue-animation",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428708,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},b=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},y=i,k=y.h,w=y.version&&"3"===y.version[0],S=s,C={props:{childFactory:Object,className:String,tag:String,id:String,animationEnteringStyle:Object,animationExitingStyle:Object,componentChildClassName:[Array],transitionName:{type:String,required:!0},appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number},transitionExitDuration:{type:Number}},methods:{onEntering:function(e){this.$emit("entering",e)},onEnter:function(e){this.$emit("enter",e)},onEntered:function(e){this.$emit("entered",e)},onExit:function(e){this.$emit("exit",e)},onExiting:function(e){this.$emit("exiting",e)},onExited:function(e){this.$emit("exited",e)}},setup:w?function(){return{v3:!!w}}:void 0,created:function(){Object(a.validatePackage)(g)},render:function(e){var t=k||e,n=Object(a.getDefaultSlots)(this),i=this.$props,r=(i.id,i.tag,i.role),o=i.className,s=(i.childFactory,i.stackChildren,i.componentChildStyle,i.componentChildClassName,b(i,["id","tag","role","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),[S["animation-container"],S["animation-container-relative"],o]);return t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:r},class:s,role:r},[t(m,{key:"some",appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,onBeforeenter:this.onEnter,on:this.v3?void 0:{beforeenter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])])}},x=i,O=x.h,$=x.version&&"3"===x.version[0],I={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!1},transitionEnterDuration:{type:Number,default:500},transitionExitDuration:{type:Number,default:500},childFactory:Object,className:String,tag:String,id:String},setup:$?function(){return{v3:!!$}}:void 0,render:function(e){var t=O||e,n=Object(a.getDefaultSlots)(this);return t(C,{transitionName:"fade",attrs:this.v3?void 0:{transitionName:"fade",appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},T=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},D=i,V=D.h,M=D.version&&"3"===D.version[0],R=(Boolean,Boolean,Boolean,i),B=R.h,N=R.version&&"3"===R.version[0],P={position:"absolute",top:"0",left:"0"},j=(Boolean,Boolean,Boolean,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}),E=i,A=E.h,L=E.version&&"3"===E.version[0],F={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},componentChildClassName:[Array],childFactory:Object,className:String,direction:{type:String,default:"down"},tag:String,id:String,role:String},methods:{onEntering:function(e){this.$emit("entering",e)},onEnter:function(e){this.$emit("enter",e)},onEntered:function(e){this.$emit("entered",e)},onExit:function(e){this.$emit("exit",e)},onExiting:function(e){this.$emit("exiting",e)},onExited:function(e){this.$emit("exited",e)}},setup:L?function(){return{v3:!!L}}:void 0,render:function(e){var t=A||e,n=Object(a.getDefaultSlots)(this),i=this.$props,r=(i.direction,i.id),o=(j(i,["direction","id"]),"slide-"+this.$props.direction);return t(C,{id:r,attrs:this.v3?void 0:{id:r,transitionName:o,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},transitionName:o,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,onEnter:this.onEnter,on:this.v3?void 0:{enter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},z=i,K=z.h,_=z.version&&"3"===z.version[0],H={position:"absolute",top:"0",left:"0"},W=(Boolean,Boolean,Boolean,Boolean,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}),U=i,q=U.h,G=U.version&&"3"===U.version[0],J=function(){},X={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"vertical"},tag:String,id:String},data:function(){return{maxHeight:"",maxWidth:""}},methods:{componentWillEnter:function(e){var t=this.$props.onEnter;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},componentIsEntering:function(e){var t=this.$props.onEntering;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},componentWillExit:function(e){var t=this.$props.onExit;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},updateContainerDimensions:function(e,t){void 0===t&&(t=J);var n=e?e.firstElementChild:null;if(n){var i=r(n),s=o(n);this.$data.maxHeight=i,this.$data.maxWidth=s,t()}}},computed:{animationEnteringStyle:{get:function(){var e;return{maxHeight:(e="vertical"===this.$props.direction?{maxHeight:this.maxHeight?this.maxHeight+"px":null}:{maxWidth:this.maxWidth?this.maxWidth+"px":null}).maxHeight,maxWidth:e.maxWidth}}}},setup:G?function(){return{v3:!!G}}:void 0,render:function(e){var t=q||e,n=Object(a.getDefaultSlots)(this),i=this.$props,r=(i.direction,i.childFactory,W(i,["direction","childFactory"]),"reveal-"+this.$props.direction);return t(C,{appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationEnteringStyle:this.animationEnteringStyle,transitionName:r},enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,onEnter:this.componentWillEnter,on:this.v3?void 0:{enter:this.componentWillEnter,entering:this.componentIsEntering,exit:this.componentWillExit},onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:this.animationEnteringStyle,transitionName:r},this.v3?function(){return[n]}:[n])}},Y=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i,r=e.duration,o=t&&1-t;e.onStart&&e.onStart();return n=window.requestAnimationFrame((function s(a){i||(i=a);var l=(a-i+1)/r+o;l<=1?(e.onUpdate&&e.onUpdate(l),n=window.requestAnimationFrame(s),t=l):(e.onEnd&&e.onEnd(1),t=0)}))},Z=function(e){e&&window.cancelAnimationFrame(e)}},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorToolsSettings=void 0;var o=n(10),s=n(9),a=i({},s.indentRules.listsTypes);!function(e){var t={type:"button"};e.bold=i(i({},s.bold),{props:i({icon:"bold"},t),messages:{title:o.keys.bold},commandName:"Bold"}),e.italic=i(i({},s.italic),{props:i({icon:"italic"},t),messages:{title:o.keys.italic},commandName:"Italic"}),e.underline=i(i({},s.underline),{props:i({icon:"underline"},t),messages:{title:o.keys.underline},commandName:"Underline"}),e.strikethrough=i(i({},s.strikethrough),{props:i({icon:"strikethrough"},t),messages:{title:o.keys.strikethrough},commandName:"Strikethrough"}),e.subscript=i(i({},s.subscript),{props:i({icon:"subscript"},t),messages:{title:o.keys.subscript},commandName:"Subscript"}),e.superscript=i(i({},s.superscript),{props:i({icon:"superscript"},t),messages:{title:o.keys.superscript},commandName:"Superscript"}),e.link=i(i({},s.link),{props:i({icon:"link-horizontal"},t),messages:{insertHyperlink:o.keys.insertHyperlink,insertHyperlinkDialogTitle:o.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:o.keys.insertHyperlinkAddress,insertHyperlinkTitle:o.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:o.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:o.keys.insertHyperlinkCancel,insertHyperlinkInsert:o.keys.insertHyperlinkInsert},commandName:"Link"}),e.insertFile=i(i({},s.link),{props:i({icon:"file-add"},t),messages:{insertHyperlink:o.keys.insertFile,insertHyperlinkDialogTitle:o.keys.insertFileDialogTitle,insertHyperlinkAddress:o.keys.insertFileAddress,insertHyperlinkTitle:o.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:o.keys.insertFileCancel,insertHyperlinkInsert:o.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1}),e.insertTable={props:i({icon:"table-insert"},t),messages:{createTable:o.keys.createTable,createTableHint:o.keys.createTableHint},commandName:"InsertTable"},e.addRowBefore={command:s.addRowBefore,props:i({icon:"table-row-insert-above"},t),messages:{title:o.keys.addRowBefore},commandName:"AddRowBefore"},e.addRowAfter={command:s.addRowAfter,props:i({icon:"table-row-insert-below"},t),messages:{title:o.keys.addRowAfter},commandName:"AddRowAfter"},e.addColumnBefore={command:s.addColumnBefore,props:i({icon:"table-column-insert-left"},t),messages:{title:o.keys.addColumnBefore},commandName:"AddColumnBefore"},e.addColumnAfter={command:s.addColumnAfter,props:i({icon:"table-column-insert-right"},t),messages:{title:o.keys.addColumnAfter},commandName:"AddColumnAfter"},e.deleteRow={command:s.deleteRow,props:i({icon:"table-row-delete"},t),messages:{title:o.keys.deleteRow},commandName:"DeleteRow"},e.deleteColumn={command:s.deleteColumn,props:i({icon:"table-column-delete"},t),messages:{title:o.keys.deleteColumn},commandName:"DeleteColumn"},e.deleteTable={command:s.deleteTable,props:i({icon:"table-delete"},t),messages:{title:o.keys.deleteTable},commandName:"DeleteTable"},e.mergeCells={command:s.mergeCells,props:i({icon:"cells-merge"},t),messages:{title:o.keys.mergeCells},commandName:"MergeCells"},e.splitCell={command:s.splitCell,props:i({icon:"cell-split-horizontally"},t),messages:{title:o.keys.splitCell},commandName:"SplitCell"},e.print={props:i({icon:"print"},t),messages:{title:o.keys.print}},e.selectAll={props:i({icon:"select-all"},t),messages:{title:o.keys.selectAll}},e.pdf={props:i({icon:"pdf"},t),messages:{title:o.keys.pdf}},e.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},e.cleanFormatting={props:i({icon:"clear-css"},t),messages:{title:o.keys.cleanFormatting},commandName:"CleanFormatting"},e.image={node:"image",props:i({icon:"image"},t),messages:{insertImage:o.keys.insertImage,insertImageDialogTitle:o.keys.insertImageDialogTitle,insertImageAddress:o.keys.insertImageAddress,insertImageTitle:o.keys.insertImageTitle,insertImageAltText:o.keys.insertImageAltText,insertImageWidth:o.keys.insertImageWidth,insertImageHeight:o.keys.insertImageHeight,insertImageCancel:o.keys.insertImageCancel,insertImageInsert:o.keys.insertImageInsert},commandName:"InsertImage"},e.viewHtml={props:i({icon:"html"},t),messages:{viewHtml:o.keys.viewHtml,viewHtmlDialogTitle:o.keys.viewHtmlDialogTitle,viewHtmlCancel:o.keys.viewHtmlCancel,viewHtmlUpdate:o.keys.viewHtmlUpdate},commandName:"SetContent"},e.findAndReplace={props:i({icon:"find"},t),messages:{findReplaceToolTitle:o.keys.findReplaceToolTitle,findReplaceDialogTitle:o.keys.findReplaceDialogTitle,findReplaceTabFind:o.keys.findReplaceTabFind,findReplaceTabReplace:o.keys.findReplaceTabReplace,findReplaceFindWhat:o.keys.findReplaceFindWhat,findReplaceReplaceWith:o.keys.findReplaceReplaceWith,findReplaceReplace:o.keys.findReplaceReplace,findReplaceReplaceAll:o.keys.findReplaceReplaceAll,findReplaceMatchCase:o.keys.findReplaceMatchCase,findReplaceMatchWord:o.keys.findReplaceMatchWord,findReplaceMatchCyclic:o.keys.findReplaceMatchCyclic,findReplaceUseRegExp:o.keys.findReplaceUseRegExp,findReplacePrevMatch:o.keys.findReplacePrevMatch,findReplaceNextMatch:o.keys.findReplaceNextMatch,findReplaceMatches:o.keys.findReplaceMatches}},e.unlink=i(i({},s.link),{props:i({icon:"unlink-horizontal"},t),messages:{title:o.keys.unlink},commandName:"Unlink"}),e.undo={command:s.undo,props:i({icon:"undo"},t),messages:{title:o.keys.undo},commandName:"Undo"},e.redo={command:s.redo,props:i({icon:"redo"},t),messages:{title:o.keys.redo},commandName:"Redo"},e.fontSize={style:"font-size",defaultItem:{text:o.messages[o.keys.fontSize],value:"",localizationKey:o.keys.fontSize},items:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],commandName:"FontSize"},e.fontName={style:"font-family",defaultItem:{text:o.messages[o.keys.fontName],value:"",localizationKey:o.keys.fontName},items:[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],commandName:"FontName"},e.formatBlock={defaultItem:{text:o.messages[o.keys.format],value:"",localizationKey:o.keys.format},items:[{text:"Paragraph",value:"p",style:{display:"block",marginLeft:0}},{text:"Heading 1",value:"h1",style:{display:"block",fontSize:"2em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 2",value:"h2",style:{display:"block",fontSize:"1.5em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 3",value:"h3",style:{display:"block",fontSize:"1.17em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 4",value:"h4",style:{display:"block",fontSize:"1em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 5",value:"h5",style:{display:"block",fontSize:"0.83em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 6",value:"h6",style:{display:"block",fontSize:"0.67em",marginLeft:0,fontWeight:"bold"}}],commandName:"FormatBlock"},e.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",view:"palette",title:o.keys.foregroundColor},commandName:"ForeColor"},e.backColor={color:"background-color",colorPickerProps:{icon:"background",view:"palette",title:o.keys.backgroundColor},commandName:"BackColor"},e.alignLeft={actions:r(s.alignLeftRules),props:i({icon:"align-left"},t),messages:{title:o.keys.alignLeft},commandName:"AlignLeft"},e.alignRight={actions:r(s.alignRightRules),props:i({icon:"align-right"},t),messages:{title:o.keys.alignRight},commandName:"AlignRight"},e.alignCenter={actions:r(s.alignCenterRules),props:i({icon:"align-center"},t),messages:{title:o.keys.alignCenter},commandName:"AlignCenter"},e.alignJustify={actions:r(s.alignJustifyRules),props:i({icon:"align-justify"},t),messages:{title:o.keys.alignJustify},commandName:"AlignJustify"},e.alignRemove={actions:r(s.alignRemoveRules),props:i({icon:"align-remove"},t),messages:{},commandName:"AlignRemove"},e.indent={actions:s.indentRules.nodes,listsTypes:a,props:i({icon:"indent-increase"},t),messages:{title:o.keys.indent},commandName:"Indent"},e.outdent={actions:s.outdentRules.nodes,listsTypes:a,props:i({icon:"indent-decrease"},t),messages:{title:o.keys.outdent},commandName:"Outdent"},e.orderedList={listType:a.orderedList,props:i({icon:"list-ordered"},t),messages:{title:o.keys.orderedList},commandName:"OrderedList",types:i({},a)},e.bulletList={listType:a.bulletList,props:i({icon:"list-unordered"},t),messages:{title:o.keys.bulletList},commandName:"UnorderedList",types:i({},a)}}(t.EditorToolsSettings||(t.EditorToolsSettings={}))},function(e,t,n){"use strict";function i(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function r(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"h",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"f",(function(){return f}));var i=n(0),r=function(){return(r=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},s=function e(t,n){var s=n.animation,a=void 0===s||s,l=n.keepItemsMounted,d=void 0!==l&&l,c=n.state,p=n.expanded,h=n.handleSelect,f=n.parentExpanded,v=void 0===f||f,m=n.level,g=void 0===m?0:m,b=n.parentPrivateKey,y=void 0===b?[]:b;return t.map((function(t,n){var s,l=u(t,y,n),f=i.templateRendering.call(this,t.content,i.getListeners.call(this)),m=i.templateRendering.call(this,t.header,i.getListeners.call(this));if(t.items){var b={animation:a,keepItemsMounted:d,state:c,expanded:p,handleSelect:h,parentExpanded:(p||[]).indexOf(l)>-1,level:g+1,parentPrivateKey:o(y,[l])};s=e.call(this,t.items,b)}return r(r({},t),{animation:void 0!==t.animation?t.animation:a,keepItemsMounted:d,id:t.id||"k-panelbar-item-default-"+l,uniquePrivateKey:l,parentUniquePrivateKey:y,parentExpanded:v,level:g,expanded:(p||[]).indexOf(l)>-1,focused:c.currentFocused===l&&c.wrapperFocused,selected:c.currentSelected===l,items:s,content:f,header:m})}),this)},a=function(e){var t=e.items[0];return t?u(t,[],0):""},l=function e(t,n,i,r,s){return void 0===i&&(i={currentExpanded:t.expanded||[],currentSelected:t.selected||"",currentFocused:t.focused||"",wrapperFocused:!1}),void 0===r&&(r=!0),void 0===s&&(s=[]),t.items.forEach((function(t,a){var l=u(t,s,a);!t.disabled&&r&&(t.selected&&(i.currentSelected=l),t.focused&&(i.currentFocused=l),t.expanded&&("multiple"===n?i.currentExpanded.push(l):"single"===n&&(i.currentExpanded=[l])),t.items&&(i=e(t,n,i,!!t.expanded,o(s,[l]))))})),i},u=function(e,t,n){return e&&e&&e.id?e.id:t.length?t[t.length-1]+"."+n:"."+n};function d(e,t){return void 0===t&&(t=[]),(e||[]).forEach((function(e){e.disabled||(t.push(e),e.expanded&&e.children&&d(e.children,t))})),t}function c(e,t){return void 0===t&&(t=[]),e.forEach((function(e){e&&e&&!e.disabled&&(t.push(e),e.items&&c(e.items,t))})),t}function p(e,t){return void 0===t&&(t=[]),e.forEach((function(e){e&&(e.expanded||e.parentExpanded)&&(t.push(e),e.items&&p(e.items,t))})),t}var h=function(e){return null!=e},f=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))}},function(e,t,n){"use strict";n.r(t);var i=n(48);n.d(t,"ColorGradient",(function(){return i.a}));var r=n(25);n.d(t,"ColorPalette",(function(){return r.a}));var o=n(156);n.d(t,"ColorPicker",(function(){return o.a})),n.d(t,"ColorPickerVue2",(function(){return o.b}));var s=n(126);for(var a in s)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return s[e]}))}(a);var l=n(127);for(var a in l)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(a);var u=n(128);for(var a in u)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(a);var d=n(129);for(var a in d)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return d[e]}))}(a);var c=n(130);for(var a in c)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return c[e]}))}(a);var p=n(131);for(var a in p)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return p[e]}))}(a);var h=n(132);for(var a in h)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return h[e]}))}(a);var f=n(133);for(var a in f)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return f[e]}))}(a);var v=n(45);n.d(t,"FlatColorPicker",(function(){return v.a})),n.d(t,"FlatColorPickerVue2",(function(){return v.b}));var m=n(62);n.d(t,"Switch",(function(){return m.a})),n.d(t,"SwitchVue2",(function(){return m.b}));var g=n(134);n.d(t,"InputSeparator",(function(){return g.a})),n.d(t,"InputSeparatorVue2",(function(){return g.b}));var b=n(44);n.d(t,"Input",(function(){return b.a})),n.d(t,"InputVue2",(function(){return b.b}));var y=n(157);n.d(t,"NumericTextBox",(function(){return y.a})),n.d(t,"NumericTextBoxVue2",(function(){return y.b}));var k=n(154);n.d(t,"MaskedTextBox",(function(){return k.a})),n.d(t,"MaskedTextBoxVue2",(function(){return k.b}));var w=n(135);for(var a in w)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return w[e]}))}(a);var S=n(136);n.d(t,"Slider",(function(){return S.a})),n.d(t,"SliderVue2",(function(){return S.b}));var C=n(46);n.d(t,"SLIDER_LABEL_ATTRIBUTE",(function(){return C.a})),n.d(t,"SliderLabel",(function(){return C.b})),n.d(t,"SliderLabelVue2",(function(){return C.c}));var x=n(158);n.d(t,"RangeSlider",(function(){return x.a})),n.d(t,"RangeSliderVue2",(function(){return x.b}));var O=n(137);for(var a in O)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return O[e]}))}(a);var $=n(138);for(var a in $)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return $[e]}))}(a);var I=n(139);for(var a in I)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return I[e]}))}(a);var T=n(140);n.d(t,"Checkbox",(function(){return T.a})),n.d(t,"CheckboxVue2",(function(){return T.b}));var D=n(141);n.d(t,"RadioGroup",(function(){return D.a})),n.d(t,"RadioGroupVue2",(function(){return D.b}));var V=n(142);for(var a in V)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return V[e]}))}(a);var M=n(143);for(var a in M)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return M[e]}))}(a);var R=n(144);for(var a in R)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return R[e]}))}(a);var B=n(47);n.d(t,"RadioButton",(function(){return B.a})),n.d(t,"RadioButtonVue2",(function(){return B.b}));var N=n(145);for(var a in N)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return N[e]}))}(a);var P=n(146);for(var a in P)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return P[e]}))}(a);var j=n(147);for(var a in j)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return j[e]}))}(a);var E=n(148);n.d(t,"TextArea",(function(){return E.a})),n.d(t,"TextAreaVue2",(function(){return E.b}));var A=n(149);for(var a in A)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2","TextArea","TextAreaVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return A[e]}))}(a);var L=n(150);for(var a in L)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2","TextArea","TextAreaVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return L[e]}))}(a);var F=n(151);for(var a in F)["default","ColorGradient","ColorPalette","Switch","SwitchVue2","ColorPicker","ColorPickerVue2","FlatColorPicker","FlatColorPickerVue2","InputSeparator","InputSeparatorVue2","Input","InputVue2","NumericTextBox","NumericTextBoxVue2","MaskedTextBox","MaskedTextBoxVue2","Slider","SliderVue2","SLIDER_LABEL_ATTRIBUTE","SliderLabel","SliderLabelVue2","RangeSlider","RangeSliderVue2","Checkbox","CheckboxVue2","RadioGroup","RadioGroupVue2","RadioButton","RadioButtonVue2","TextArea","TextAreaVue2"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return F[e]}))}(a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(0),o=n(11),s=n(26),a=i,l=a.h,u=a.version&&"3"===a.version[0],d=s.a.styles,c={name:"KendoButton",emits:{click:null,mousedown:null,mouseup:null,pointerdown:null,pointerup:null,focus:null,blur:null,keypress:null,keydown:null},props:{ariaLabel:String,dir:String,selected:{type:Boolean,default:void 0},togglable:{type:Boolean,default:!1},icon:{type:String,default:function(){}},iconClass:{type:String,default:function(){}},imageUrl:{type:String,default:function(){}},imageAlt:String,disabled:{type:Boolean,default:void 0},size:{type:String,default:"medium"},shape:{type:String,default:"rectangle",validator:function(e){return[null,"rectangle","square"].includes(e)}},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid"},themeColor:{type:String,default:"base"}},created:function(){Object(r.validatePackage)(o.a),this.currentActive=!0===this.$props.togglable&&!0===this.$props.selected,this._activeTemp=void 0},data:function(){return{currentActive:null}},computed:{computedSelected:function(){return void 0!==this._activeTemp?this._activeTemp:void 0!==this.$props.selected?this.$props.selected:this.currentActive},buttonClasses:function(){var e,t=this.$props,n=t.disabled,i=t.icon,o=t.iconClass,s=t.imageUrl,a=t.dir,l=t.size,u=t.shape,c=t.rounded,p=t.fillMode,h=t.themeColor,f=void 0!==i||void 0!==o||void 0!==s,v=Object(r.getDefaultSlots)(this);return(e={})[d.button]=!0,e["k-button-"+(r.kendoThemeMaps.sizeMap[l]||l)]=l,e["k-button-"+u]=u&&"rectangle"!==u,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[c]||c)]=c,e["k-icon-button"]=!v&&f,e["k-disabled"]=n,e["k-selected"]=this.computedSelected,e["k-rtl"]="rtl"===a,e["k-button-"+p]=p,e["k-button-"+p+"-"+h]=p&&h,e}},updated:function(){this.$props.togglable&&void 0!==this.$props.selected&&this.$props.selected!==this.currentActive&&(this.currentActive=this.$props.selected)},methods:{focus:function(e){this.$el.focus(e)},toggleIfApplicable:function(){if(!this.disabled&&this.$props.togglable&&void 0===this.$props.selected){var e=!this.currentActive;this._activeTemp=e,this.currentActive=e,this._activeTemp=void 0}},handleClick:function(e){this.toggleIfApplicable(),this.disabled||this.$emit("click",e)},handleMouseDown:function(e){this.disabled||this.$emit("mousedown",e)},handlePointerDown:function(e){this.disabled||this.$emit("pointerdown",e)},handleMouseUp:function(e){this.disabled||this.$emit("mouseup",e)},handlePointerUp:function(e){this.disabled||this.$emit("pointerup",e)},handleFocus:function(e){this.disabled||this.$emit("focus",e)},handleBlur:function(e){this.disabled||this.$emit("blur",e)},handleKeypress:function(e){this.disabled||this.$emit("keypress",e)},handleKeydown:function(e){this.disabled||this.$emit("keydown",e)}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=l||e,n=this.$props,i=n.togglable,o=n.icon,s=n.iconClass,a=n.imageUrl,u=n.imageAlt,d=Object(r.getDefaultSlots)(this);return t("button",{class:this.buttonClasses,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.handleMouseDown,mouseup:this.handleMouseUp,pointerdown:this.handlePointerDown,pointerup:this.handlePointerUp,focus:this.handleFocus,blur:this.handleBlur,keypress:this.handleKeypress,keydown:this.handleKeydown},onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onPointerdown:this.handlePointerDown,onPointerup:this.handlePointerUp,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeypress:this.handleKeypress,onKeydown:this.handleKeydown,role:i?"checkbox":void 0,attrs:this.v3?void 0:{role:i?"checkbox":void 0,"aria-label":this.ariaLabel,"aria-disabled":this.$props.disabled||void 0,"aria-pressed":i&&!!this.currentActive||void 0},"aria-label":this.ariaLabel,"aria-disabled":this.$props.disabled||void 0,"aria-pressed":i&&!!this.currentActive||void 0},[function(){if(a)return t("img",{role:"presentation",attrs:this.v3?void 0:{role:"presentation",alt:u,src:a},class:"k-image",alt:u,src:a});if(o){var e=Object(r.classNames)("k-icon","k-button-icon","k-i-"+o);return t("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:e})}return s?t("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:s}):null}.call(this),d])}},p=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var i=n(25),r={},o={opacity:!0},s={palette:i.b,tileSize:i.c};function a(e){delete r[e]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return h}));var i,r=n(1),o=n(0),s=((i={})["labels.optional"]="(Optional)",i),a=n(4),l={name:"@progress/kendo-vue-labels",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428877,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},u=r,d=u.h,c=u.version&&"3"===u.version[0],p=u.inject,h={name:"KendoLabel",props:{id:String,editorId:String,editorRef:String,editorValid:{type:Boolean,default:void 0},editorDisabled:Boolean,optional:Boolean},inject:{kendoLocalizationService:{default:null}},created:function(){Object(o.validatePackage)(l)},computed:{labelClassName:function(){return{"k-label":!0,"k-label-empty":!this.defaultSlots,"k-text-error":!1===this.$props.editorValid,"k-text-disabled":!0===this.$props.editorDisabled}}},methods:{onLabelClick:function(e){if(this.$props.editorRef&&this.$props.editorRef.current&&!this.$props.editorDisabled){this.$props.editorRef.current.focus&&(e.preventDefault(),this.$props.editorRef.current.focus());var t=this.$props.editorRef.current.actionElement;t&&(e.preventDefault(),t.click())}}},setup:c?function(){return{v3:!!c,kendoLocalizationService:p("kendoLocalizationService",{})}}:void 0,render:function(e){var t=d||e;this.defaultSlots=Object(o.getDefaultSlots)(this);var n=Object(a.provideLocalizationService)(this),i=this.$props,r=i.id,l=i.editorId,u=i.optional?n.toLanguageString("labels.optional",s["labels.optional"]):"",c=u&&t("span",{class:"k-label-optional"},[u]);return t("label",{id:r,attrs:this.v3?void 0:{id:r,for:l},for:l,onClick:this.onLabelClick,on:this.v3?void 0:{click:this.onLabelClick},class:this.labelClassName},[this.defaultSlots,c])}},f=r,v=(f.h,f.version&&f.version[0],r),m=(v.h,v.version&&v.version[0],r),g=m.h,b=m.version&&"3"===m.version[0],y=m.inject,k={name:"KendoFloatingLabel",props:{label:String,editorId:String,editorValue:[String,Boolean,Number],editorPlaceholder:String,editorValid:{type:Boolean,default:void 0},editorDisabled:Boolean,id:String,optional:Boolean},data:function(){return{focused:!1}},inject:{kendoLocalizationService:{default:null}},created:function(){Object(o.validatePackage)(l)},computed:{spanClassNames:function(){return{"k-floating-label-container":!0,"k-focus":this.focused,"k-empty":!this.$props.editorPlaceholder&&!this.$props.editorValue&&0!==this.$props.editorValue,"k-text-disabled":this.$props.editorDisabled,"k-rtl":"rtl"===this.$props.dir}},labelClassNames:function(){return{"k-label":!0,"k-text-error":!1===this.$props.editorValid,"k-text-disabled":this.$props.editorDisabled}}},methods:{handleFocus:function(){this.focused=!0},handleBlur:function(){this.focused=!1}},setup:b?function(){return{v3:!!b,kendoLocalizationService:y("kendoLocalizationService",{})}}:void 0,render:function(e){var t=g||e,n=Object(o.getDefaultSlots)(this),i=this.$props,r=i.label,l=i.editorId,u=i.id,d=i.optional,c=Object(a.provideLocalizationService)(this),p=d?c.toLanguageString("labels.optional",s["labels.optional"]):"",h=p&&t("span",{class:"k-label-optional"},[p]);return t("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[n,r?l?t("label",{id:u,attrs:this.v3?void 0:{id:u,for:l},for:l,class:this.labelClassNames},[r,h]):t("span",{id:u,attrs:this.v3?void 0:{id:u},class:this.labelClassNames},[r,h]):null])}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return m}));var i=n(1),r=n(6),o=n(13),s=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],Object(r.b)(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.isInColors=function(e,t){return e.some((function(e){return e===t}))},e.prototype.getCellCoordsFor=function(e){if(Object(r.b)(e)){var t=e?Object(o.parseColor)(e,!0):e,n=[e];Object(r.b)(t)&&n.push(t.toCss(),t.toCssRgba());for(var i=0;i<this.colorRows.length;i++)for(var s=0;s<this.colorRows[i].length;s++)if(this.isInColors(n,this.colorRows[i][s]))return{row:i,col:s}}},e.prototype.getColorAt=function(e){if(Object(r.b)(e)&&Object(r.b)(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(Object(r.b)(e)&&Object(r.b)(e.row)&&Object(r.b)(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}(),a=n(0),l=n(8),u={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4"," ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}},d=n(7),c=i,p=c.h,h=c.version&&"3"===c.version[0],f=24,v="office",m={name:"KendoColorPalette",model:{event:"changemodel"},emits:{keydown:null,focus:null,blur:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,change:null},props:{palette:{type:[String,Array],default:v},columns:Number,tileSize:{type:[Number,Object],default:f},modelValue:String,modelRgbaValue:String,defaultValue:String,value:String,disabled:Boolean,tabIndex:Number,id:String,ariaLabelledBy:String,ariaDescribedBy:String},created:function(){Object(a.validatePackage)(l.a),this.guid=Object(a.guid)()},mounted:function(){this.wrapper=Object(a.getRef)(this,"wrapper")},updated:function(){this.wrapper=Object(a.getRef)(this,"wrapper")},computed:{focusedColorCooridanates:function(){return this.focusedColor?this.paletteService.getCellCoordsFor(this.focusedColor):void 0},isUncontrolled:function(){return void 0===this.$props.value},selectedColor:function(){return void 0!==this.$props.value?this.$props.value:void 0!==this.modelValue?this.modelValue:void 0!==this.modelRgbaValue?this.modelRgbaValue:void 0!==this.currentValue?this.currentValue:this.$props.defaultValue}},data:function(){return{focusedColor:this.$props.value,currentValue:void 0}},setup:h?function(){return{v3:!!h}}:void 0,render:function(e){var t=p||e,n=this.getPaletteInfo(),i=this.paletteService=new s;i.setColorMatrix(n.colors,n.columns);var r=i.getCellCoordsFor(this.selectedColor),o=i.getCellCoordsFor(this.focusedColor),l=Object(a.classNames)("k-colorpalette",{"k-disabled":this.$props.disabled}),u=function(e,n,i,r){var o=void 0!==i&&i.row===n,s=i&&i.col,l=void 0!==r&&r.row===n,u=r&&r.col,d="number"!=typeof this.$props.tileSize?this.$props.tileSize:{width:this.$props.tileSize,height:this.$props.tileSize},c=d.width+"px",p=d.height+"px";return e.map((function(e,i){var r=this,d=o&&s===i,h=Object(a.classNames)("k-colorpalette-tile",{"k-selected":d,"k-focus":l&&u===i});return t("td",{class:h,"aria-label":e,attrs:this.v3?void 0:{"aria-label":e,"aria-selected":!!d||!!this.$props.disabled&&void 0,id:this.createCellId({row:n,col:i}),role:"gridcell"},"aria-selected":!!d||!!this.$props.disabled&&void 0,style:{backgroundColor:e,width:c,height:p,minWidth:c},onClick:function(t){return r.onColorClick(e,t)},on:this.v3?void 0:{click:function(t){return r.onColorClick(e,t)}},id:this.createCellId({row:n,col:i}),key:i,role:"gridcell"})}),this)};return n.colors.length?t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,"aria-disabled":this.$props.disabled?"true":void 0,"aria-activedescendant":o&&this.createCellId(o),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,role:"grid",tabindex:Object(a.getTabIndex)(this.$props.tabIndex,this.$props.disabled)},class:l,onFocusin:this.onFocus,on:this.v3?void 0:{focusin:this.onFocus,focusout:this.onBlur,keydown:this.onKeyDown},onFocusout:this.onBlur,onKeydown:this.onKeyDown,"aria-disabled":this.$props.disabled?"true":void 0,"aria-activedescendant":o&&this.createCellId(o),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,role:"grid",tabindex:Object(a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),ref:Object(a.setRef)(this,"wrapper")},[t("div",{class:"k-colorpalette-table-wrap"},[t("table",{class:"k-colorpalette-table k-palette",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[t("tbody",[function(e,n,i){return e.map((function(e,r){return t("tr",{role:"row",attrs:this.v3?void 0:{role:"row"},key:r},[u.call(this,e,r,n,i)])}),this)}.call(this,i.colorRows,r,o)])])])]):""},methods:{focus:function(){this.wrapper&&this.wrapper.focus()},onKeyDown:function(e){switch(e.keyCode){case a.Keys.down:this.handleCellNavigation(e,0,1);break;case a.Keys.up:this.handleCellNavigation(e,0,-1);break;case a.Keys.right:this.handleCellNavigation(e,1,0);break;case a.Keys.left:this.handleCellNavigation(e,-1,0);break;case a.Keys.enter:this.handleEnter(e);break;default:return void this.$emit("keydown",e)}this.$emit("keydown",e)},onColorClick:function(e,t){this.isUncontrolled?(this.currentValue=e,this.focusedColor=e):this.focusedColor=e,this.dispatchChangeEvent(e,t)},onFocus:function(e){this.focusedColor=this.selectedColor||this.paletteService.colorRows[0][0],this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.focusedColor=void 0,this.$emit("blur",{event:e,target:this})},handleCellNavigation:function(e,t,n){if(e.preventDefault(),this.focusedColorCooridanates){var i=this.paletteService.getNextCell(this.focusedColorCooridanates,t,n);this.focusedColor=this.paletteService.getColorAt(i)}else this.focusedColor=this.paletteService.colorRows[0][0]},handleEnter:function(e){this.isUncontrolled&&(this.currentValue=this.focusedColor),this.dispatchChangeEvent(this.focusedColor,e)},dispatchChangeEvent:function(e,t){var n=Object(d.g)(e,"rgba");this.$emit("changemodel",e),this.$emit("update:modelValue",e),this.$emit("update:modelRgbaValue",n),this.$emit("change",{event:t,component:this,value:e,rgbaValue:n})},getPaletteInfo:function(){if("string"==typeof this.$props.palette){var e=u[this.$props.palette];return Object(r.b)(e)?{colors:e.colors,columns:this.$props.columns||e.columns||10}:{colors:[],columns:0}}return{colors:this.$props.palette||[],columns:this.$props.columns||10}},createCellId:function(e){return this.guid+"_"+e.row+"_"+e.col}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r}));var i=".k-dropdownlist > .k-button,.k-colorpicker > .k-button",r=["button:not(.k-dropdownlist > .k-button):not(.k-colorpicker > .k-button)",".k-button-group > button",".k-dropdownlist",".k-colorpicker"];t.a={styles:{button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"}}},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(i||(i={}));var r=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case i.next:return n===t.items.length-1?e:t.items[n+1];case i.prev:return 0===n?e:t.items[n-1];case i.current:return t.payload;case i.reset:return null;default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoButtonItem",emits:{click:null,down:null},props:{focused:Boolean,index:Number,item:Object,render:[String,Object,Function],dataItem:[String,Object],id:String,textField:String},computed:{wrapperClass:function(){return{"k-item":!0,"k-focus":this.$props.focused}},innerClass:function(){var e=this.$props.dataItem;return{"k-link k-menu-link":!0,"k-selected":e.selected,"k-disabled":e.disabled}}},methods:{onClick:function(e){this.$emit("click",e,this.$props.index)},onDown:function(e){this.$emit("down",e,this.$props.index)}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=s||e,n=this.$props,i=n.dataItem,o=n.id,a=n.render;return t("li",{id:o,attrs:this.v3?void 0:{id:o,role:"menuitem","aria-disabled":i.disabled||void 0},class:this.wrapperClass,onClick:this.onClick,on:this.v3?void 0:{click:this.onClick,mousedown:this.onDown,pointerdown:this.onDown},onMousedown:this.onDown,onPointerdown:this.onDown,role:"menuitem","aria-disabled":i.disabled||void 0},[function(){var e=this.$props,n=e.textField,o=e.index,s=void 0!==i.text?i.text:n?i[n]:i,l=i.icon?"k-icon k-i-"+i.icon:i.iconClass,u=t("span",{tabindex:-1,attrs:this.v3?void 0:{tabindex:-1},class:this.innerClass,key:"icon"},[l&&t("span",{class:l,role:"presentation",attrs:this.v3?void 0:{role:"presentation"}}),i.imageUrl&&t("img",{class:"k-icon",alt:"",attrs:this.v3?void 0:{alt:"",src:i.imageUrl,role:"presentation"},src:i.imageUrl,role:"presentation",key:"image"}),s&&t("span",{class:"k-menu-link-text"},[s])]);return r.getTemplate.call(this,{h:t,template:this.$props.dataItem.render||a,defaultRendering:u,additionalProps:{item:i,itemIndex:o,innerClass:this.innerClass,focused:this.focused}})}.call(this)])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return s}));var i,r,o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};!function(e){e.single="single",e.multiple="multiple",e.none="none"}(i||(i={})),function(e){e.toggle="toggle",e.remove="remove"}(r||(r={}));var s=function(e,t){switch(t.selection){case i.single:switch(t.type){case r.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case r.remove:return t.payload===e?null:e;default:return e}case i.multiple:switch(t.type){case r.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):o(e,[t.payload]);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case r.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):o(e,[t.payload]):e;default:return e}case i.none:return null;default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i=400,r=0},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h}));var i=n(1),r=n(0),o=n(27),s=n(52),a=n(29),l=n(11),u=i,d=u.h,c=u.version&&"3"===u.version[0],p=u.ref,h={name:"KendoVueChip",props:{id:String,text:String,value:[String,Object],type:String,dir:{type:String,default:function(){return"ltr"}},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:function(){return"k-i-close-circle"}},disabled:{type:Boolean,default:!1},icon:String,selectedIcon:{type:String,default:function(){return"k-i-check"}},look:{type:String,default:function(){return"solid"}},size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","error","info","success","warning"].includes(e)}},dataItem:Object,selected:Boolean,ariaDescribedBy:String},emits:{click:null,keydown:null,blur:null,focus:null,remove:null},inject:{kendoSelection:{default:{value:null}},kendoFocused:{default:{value:null}},kendoDataItems:{default:null},handleDispatchDataItems:{default:r.noop},handleDispatchSelection:{default:r.noop},handleDispatchFocus:{default:r.noop}},created:function(){this.currentDir=void 0,Object(r.validatePackage)(l.a)},mounted:function(){this.chip=Object(r.getRef)(this,"chip"),this.currentDir=void 0!==this.$props.dir?"rtl"===this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1},updated:function(){this.kendoFocused.value===this.$props.value&&this.$el&&this.$el.focus()},computed:{currentSelected:function(){var e=this;return this.$props.selected||(Array.isArray(this.kendoSelection.value)?this.kendoSelection.value.some((function(t){return t===e.$props.value})):this.kendoSelection.value===this.$props.value)}},methods:{computedFocused:function(){return this.kendoFocused.value===this.$props.value},handleClick:function(e){this.handleDispatchSelection&&this.handleDispatchSelection({type:a.a.toggle,payload:this.$props.value,event:e}),this.$emit("click",{target:this.target,event:e})},handleRemove:function(e){e.stopPropagation(),this.$props.removable&&(this.handleDispatchFocus&&(this.handleDispatchDataItems({type:s.a.remove,payload:this.$props.value,event:e}),this.handleDispatchFocus({type:o.a.reset,payload:this.$props.value,event:e}),this.handleDispatchSelection({type:a.a.remove,payload:this.$props.value,event:e})),this.$emit("remove",{target:this.target,event:e}))},handleKeyDown:function(e){switch(e.keyCode){case r.Keys.left:this.handleDispatchFocus&&this.handleDispatchFocus({type:o.a.prev,payload:this.$props.value,event:e});break;case r.Keys.right:this.handleDispatchFocus&&this.handleDispatchFocus({type:o.a.next,payload:this.$props.value,event:e});break;case r.Keys.enter:this.handleDispatchFocus&&this.handleDispatchSelection({type:a.a.toggle,payload:this.$props.value,event:e});break;case r.Keys.delete:this.handleRemove(e)}this.$emit("keydown",{target:this.target,event:e})},handleFocus:function(e){this.handleDispatchFocus&&this.handleDispatchFocus({payload:this.$props.value,type:o.a.current,event:e}),this.$emit("focus",{target:this.target,event:e})},handleBlur:function(e){this.$emit("blur",{target:this.target,event:e})}},setup:c?function(){return{v3:!!c,chipRef:p(null)}}:void 0,render:function(e){var t,n=d||e,i=this.$props,o=i.size,s=i.rounded,a=i.themeColor,l=i.fillMode,u=i.look,c=i.type;return n("div",{role:this.$props.role,attrs:this.v3?void 0:{role:this.$props.role,id:this.$props.value,dir:this.currentDir,tabindex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),"aria-checked":this.currentSelected,"aria-disabled":this.$props.disabled,"aria-describedby":this.$props.ariaDescribedBy},id:this.$props.value,ref:Object(r.setRef)(this,"chip"),dir:this.currentDir,tabindex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:Object(r.classNames)("k-chip",(t={"k-rtl":"rtl"===this.currentDir,"k-disabled":this.$props.disabled,"k-selected":this.currentSelected,"k-focus":this.computedFocused()},t["k-chip-"+(r.kendoThemeMaps.sizeMap[o]||o)]=o,t["k-rounded-"+(r.kendoThemeMaps.roundedMap[s]||s)]=s,t["k-chip-"+l]=l,t["k-chip-"+l+"-"+a]=Boolean(l&&a),t["k-chip-success"]="success"===c,t["k-chip-warning"]="warning"===c,t["k-chip-error"]="error"===c,t["k-chip-info"]="info"===c,t["k-chip-outline"]="outline"===u||"outlined"===u,t["k-chip-solid"]="solid"===u||"filled"===u,t)),"aria-checked":this.currentSelected,"aria-disabled":this.$props.disabled,"aria-describedby":this.$props.ariaDescribedBy,onFocus:this.handleFocus,on:this.v3?void 0:{focus:this.handleFocus,blur:this.handleBlur,click:this.handleClick,keydown:this.handleKeyDown},onBlur:this.handleBlur,onClick:this.handleClick,onKeydown:this.handleKeyDown},[this.currentSelected&&this.$props.selectedIcon&&n("span",{class:Object(r.classNames)("k-chip-icon","k-icon",this.$props.selectedIcon)}),this.$props.icon&&n("span",{class:Object(r.classNames)("k-chip-icon","k-icon",this.$props.icon)}),n("span",{class:"k-chip-content"},[this.$props.text&&n("span",{"aria-label":this.$props.text,attrs:this.v3?void 0:{"aria-label":this.$props.text},class:"k-chip-label"},[this.$props.text])]),this.$props.removable&&n("span",{class:"k-chip-actions"},[n("span",{class:"k-chip-action k-chip-remove-action"},[n("span",{class:Object(r.classNames)("k-chip-icon","k-icon",this.$props.removeIcon),onClick:this.handleRemove,on:this.v3?void 0:{click:this.handleRemove}})])])])}},f=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l=o.ref,u={name:"KendoVueFloatingActionButtonItem",props:{disabled:Boolean,focused:Boolean,index:Number,icon:String,item:[String,Function,Object],dataItem:Object,text:String,tabIndex:Number,customProp:[String,Function,Object]},emits:{click:null,down:null},mounted:function(){this.element=Object(r.getRef)(this,"element")},computed:{itemClassNames:function(){return Object(r.classNames)("k-fab-item",{"k-focus":this.focused,"k-disabled":this.disabled})}},methods:{handleClick:function(e){void 0===this.$props.index||this.$props.disabled||this.$emit("click",e,this.$props.index)},focusElement:function(){this.$el&&this.$el.focus()},onDown:function(e){this.$emit("down",e)}},setup:a?function(){return{v3:!!a,elementRef:l(null)}}:void 0,render:function(e){var t=s||e,n=this.$props,i=n.disabled,o=n.id,a=n.tabIndex,l=n.dataItem,u=(n.customProp,l.text),d=l.icon,c=t("li",{ref:Object(r.setRef)(this,"element"),id:o,attrs:this.v3?void 0:{id:o,role:"menuitem",tabindex:Object(r.getTabIndex)(a,i),"aria-disabled":i,"aria-label":(u||"")+" floatingactionbutton item"},class:this.itemClassNames,role:"menuitem",tabindex:Object(r.getTabIndex)(a,i),"aria-disabled":i,"aria-label":(u||"")+" floatingactionbutton item",onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.onDown,pointerdown:this.onDown},onMousedown:this.onDown,onPointerdown:this.onDown},[u&&t("span",{class:"k-fab-item-text"},[u]),d&&t("span",{class:Object(r.classNames)("k-fab-item-icon k-icon k-i-"+d)})]);return r.getTemplate.call(this,{h:t,template:this.$props.item,defaultRendering:c,additionalProps:this.$props,additionalListeners:{click:this.handleClick}})}},d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoToolbarItem",methods:{element:function(){return this.$el}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){return(s||e)("span",[Object(r.getDefaultSlots)(this)])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(38),o=i,s=o.h,a=o.version&&"3"===o.version[0],l=(o.ref,o.inject,{name:"KendoTabStripNavigation",emits:{select:null,keydown:null},props:{tabs:Array,selected:Number,tabIndex:Number,tabPosition:String},computed:{wrapperNavClasses:{get:function(){return{"k-tabstrip-items-wrapper":!0,"k-hstack":"top"===this.$props.tabPosition||"bottom"===this.$props.tabPosition,"k-vstack":"left"===this.$props.tabPosition||"right"===this.$props.tabPosition}}},navClasses:{get:function(){return{"k-tabstrip-items":!0,"k-reset":!0}}}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=s||e,n=this.$props,i=n.tabs,o=n.selected,a=i.length;return t("div",{class:this.wrapperNavClasses},[t("ul",{class:this.navClasses,role:"tablist",attrs:this.v3?void 0:{role:"tablist",tabindex:this.$props.tabIndex},tabindex:this.$props.tabIndex,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown}},[function(){return(e=a,Array.apply(null,Array(e))).map((function(e,n,s){return t(r.a,{key:n,active:o===n,attrs:this.v3?void 0:{active:o===n,disabled:i[n].disabled,index:n,title:i[n].title,titleRender:i[n].titleRender,first:0===n,last:n===s.length-1},disabled:i[n].disabled,index:n,title:i[n].title,titleRender:i[n].titleRender,first:0===n,last:n===s.length-1,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect}})}),this);var e}.call(this)])])},methods:{onKeyDown:function(e){this.$emit("keydown",e)},onSelect:function(e){this.$emit("select",e)}}}),u=l},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.userSelectNone=t.formatString=t.onDownPreventDefault=void 0;t.onDownPreventDefault={onMouseDown:function(e){return e.preventDefault()},onPointerDown:function(e){return e.preventDefault()}};t.userSelectNone={userSelect:"none"};t.formatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t,n){e=e.replace("{"+n+"}",String(t))})),e}},function(e,t,n){"use strict";n.r(t),n.d(t,"Dialog",(function(){return m})),n.d(t,"DialogVue2",(function(){return v})),n.d(t,"DialogActionsBar",(function(){return w})),n.d(t,"DialogActionsBarVue2",(function(){return k})),n.d(t,"Window",(function(){return j})),n.d(t,"WindowVue2",(function(){return P}));var i,r=n(1),o=n(0),s=n(5),a=r,l=a.h,u=a.version&&"3"===a.version[0],d={props:{id:String,closeIcon:{type:Boolean,default:!0},title:String,titleRender:[String,Function,Object]},setup:u?function(){return{v3:!!u}}:void 0,methods:{onCloseButtonClick:function(e){this.$emit("closebuttonclick",e)}},render:function(e){var t,n=l||e,i=this.$props,r=i.id,a=i.closeIcon,u=i.titleRender,d=i.title;return t=o.getTemplate.call(this,{h:n,template:u,defaultRendering:d}),n("div",{class:"k-window-titlebar k-dialog-titlebar k-header",id:r,attrs:this.v3?void 0:{id:r}},[n("div",{class:"k-window-title k-dialog-title"},[t]),n("div",{class:"k-window-actions k-dialog-actions"},[a&&n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",fillMode:"flat","aria-label":"Close",icon:"x"},fillMode:"flat","aria-label":"Close",icon:"x",onClick:this.onCloseButtonClick,on:this.v3?void 0:{click:this.onCloseButtonClick}})])])}},c={name:"@progress/kendo-vue-dialogs",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428826,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},p=r,h=p.h,f=p.version&&"3"===p.version[0],v={name:"KendoDialog",props:{appendTo:String,title:String,titleRender:o.templateDefinition,id:String,wrapperId:String,dir:String,closeIcon:{type:Boolean,default:!0},width:[String,Number],height:[String,Number],minWidth:[String,Number]},provide:function(){return{kCurrentZIndex:10002}},created:function(){Object(o.validatePackage)(c),this.titleId=this.generateTitleId()},setup:f?function(){return{v3:!!f}}:void 0,mounted:function(){if(this.$props.appendTo){var e=document.querySelector(this.$props.appendTo);this.windowElement=this.$refs.wrapper,e.append(this.windowElement)}},beforeDestroy:f?void 0:function(){this.$props.appendTo&&this.windowElement.remove()},beforeUnmount:function(){this.$props.appendTo&&this.windowElement.remove()},methods:{handleCloseDialog:function(e){e.preventDefault(),this.$emit("close",{event:e,target:this})},handleKeyDown:function(e){e.keyCode===o.Keys.esc&&o.hasListener.call(this,"close")&&(e.preventDefault(),this.handleCloseDialog(e))},transformDimesion:function(e){return"string"==typeof e&&(e.endsWith("px")||e.endsWith("%"))?e:e+"px"},getActionBarIndex:function(e){return e.findIndex((function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("dialogactionsbar")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("actions-bar")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("dialogactionsbar")}))},generateTitleId:function(){return"dialog-title"+Object(o.guid)()}},render:function(e){var t=h||e,n=void 0!==this.$props.id?this.$props.id:this.titleId,i=this.$props,r=i.title,s=i.width,a=i.height,l=i.minWidth,u=i.dir,c=i.contentStyle,p=i.wrapperId,f=this.$props.titleRender?o.templateRendering.call(this,this.$props.titleRender,o.getListeners.call(this)):null,v=Object(o.getDefaultSlots)(this)||[];s=this.transformDimesion(s),a=this.transformDimesion(a),l=this.transformDimesion(l);var m,g=this.getActionBarIndex(v);-1!==g&&(m=v[g],v.splice(g,1));var b=void 0===this.$props.closeIcon||this.$props.closeIcon,y=t("div",{ref:"wrapper",class:"k-dialog-wrapper",onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown},tabindex:0,attrs:this.v3?void 0:{tabindex:0,id:p,dir:u},id:p,dir:u},[t("div",{class:"k-overlay"}),t("div",{"aria-labelledby":r||f?n:void 0,attrs:this.v3?void 0:{"aria-labelledby":r||f?n:void 0,role:"dialog"},class:"k-widget k-window k-dialog",role:"dialog",style:{width:s,height:a,minWidth:l}},[(r||f)&&t(d,{closeIcon:b,attrs:this.v3?void 0:{closeIcon:b,id:n,title:r,titleRender:f},onClosebuttonclick:this.handleCloseDialog,on:this.v3?void 0:{closebuttonclick:this.handleCloseDialog},id:n,title:r,titleRender:f}),t("div",{class:"k-content k-window-content k-dialog-content",style:c},[v]),m])]);return this.$props.appendTo?t("div",[y]):y}},m=v,g=r,b=g.h,y=g.version&&"3"===g.version[0],k={name:"DialogActionsBar",props:{layout:{type:String,default:"stretched"},buttonGroupClass:{type:Boolean,default:!0}},setup:y?function(){return{v3:!!y}}:void 0,computed:{wrapperClasses:function(){var e=this.$props.layout;return{"k-dialog-buttongroup":this.buttonGroupClass,"k-actions":!0,"k-hstack":!0,"k-justify-content-start":"start"===e,"k-justify-content-center":"center"===e,"k-justify-content-end":"end"===e,"k-justify-content-stretch":"stretched"===e}}},render:function(e){var t=b||e,n=Object(o.getDefaultSlots)(this);return t("div",{class:this.wrapperClasses},[n])}},w=k;!function(e){e.DEFAULT="DEFAULT",e.FULLSCREEN="FULLSCREEN",e.MINIMIZED="MINIMIZED"}(i||(i={}));var S=r,C=S.h,x=S.version&&"3"===S.version[0],O={props:{id:String,stage:String,closeButton:[String,Function,Object,Boolean],minimizeButton:[String,Function,Object,Boolean],maximizeButton:[String,Function,Object,Boolean],restoreButton:[String,Function,Object,Boolean],title:String,titleRender:[String,Function,Object,Boolean]},setup:x?function(){return{v3:!!x}}:void 0,methods:{onDoubleClick:function(e){this.$emit("doubleclick",e)},onMinimizeClick:function(e){this.$emit("minimizeclick",e)},onFullScreenClick:function(e){this.$emit("fullscreenclick",e)},onRestoreClick:function(e){this.$emit("restoreclick",e)},onCloseClick:function(e){this.$emit("closeclick",e)}},render:function(e){var t=C||e,n=this.$props,r=n.stage,a=n.title,l=n.titleRender,u=n.minimizeButton,d=n.maximizeButton,c=n.restoreButton,p=n.closeButton,h=o.getTemplate.call(this,{h:t,template:l,defaultRendering:a}),f=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-minimize",fillMode:"flat"},icon:"window-minimize",fillMode:"flat",onClick:this.onMinimizeClick,on:this.v3?void 0:{click:this.onMinimizeClick}}),v=o.getTemplate.call(this,{h:t,template:u,defaultRendering:f}),m=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-maximize",fillMode:"flat"},icon:"window-maximize",fillMode:"flat",onClick:this.onFullScreenClick,on:this.v3?void 0:{click:this.onFullScreenClick}}),g=o.getTemplate.call(this,{h:t,template:d,defaultRendering:m}),b=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-restore",fillMode:"flat"},icon:"window-restore",fillMode:"flat",onClick:this.onRestoreClick,on:this.v3?void 0:{click:this.onRestoreClick}}),y=o.getTemplate.call(this,{h:t,template:c,defaultRendering:b}),k=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"x",fillMode:"flat"},icon:"x",fillMode:"flat",onClick:this.onCloseClick,on:this.v3?void 0:{click:this.onCloseClick}}),w=o.getTemplate.call(this,{h:t,template:p,defaultRendering:k});return t("div",{class:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},onDblclick:this.onDoubleClick,on:this.v3?void 0:{dblclick:this.onDoubleClick}},[t("div",{class:"k-window-title"},[h]),t("div",{class:"k-window-actions"},[r===i.DEFAULT&&v,r===i.DEFAULT&&g,r!==i.DEFAULT&&y]),w])}},$=r,I=$.h,T=$.version&&"3"===$.version[0],D=["n","e","s","w","se","sw","ne","nw"],V={name:"ResizeHandlers",emits:{resize:null},setup:T?function(){return{v3:!!T}}:void 0,methods:{onDrag:function(e,t){e.originalEvent.preventDefault(),this.$emit("resize",e,{end:!1,direction:t})},onRelease:function(e,t){e.originalEvent.preventDefault(),this.$emit("resize",e,{end:!0,direction:t})}},render:function(e){var t=I||e;return t("div",[D.map((function(e,n){var i=this;return t(o.Draggable,{key:n,onDrag:function(t){return i.onDrag(t,e)},on:this.v3?void 0:{drag:function(t){return i.onDrag(t,e)},release:function(t){return i.onRelease(t,e)}},onRelease:function(t){return i.onRelease(t,e)}},this.v3?function(){return[t("div",{class:"k-resize-handle k-resize-"+e,style:{display:"block",touchAction:"none"}})]}:[t("div",{class:"k-resize-handle k-resize-"+e,style:{display:"block",touchAction:"none"}})])}),this)])}},M=function(){return(M=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},R=r,B=R.h,N=R.version&&"3"===R.version[0],P={name:"KendoWindow",emits:{resize:null,move:null,close:null,stagechange:null},provide:function(){return{kCurrentZIndex:10002}},props:{id:String,appendTo:String,width:{type:[Number],default:void 0},height:{type:[Number],default:void 0},left:{type:[Number],default:void 0},windowStyle:Object,windowClass:String,top:{type:[Number],default:void 0},initialWidth:[Number],initialHeight:[Number],initialLeft:[Number],initialTop:[Number],minWidth:{type:[Number],default:120},minHeight:{type:[Number],default:100},resizable:{type:Boolean,default:!0},draggable:{type:Boolean,default:!0},modal:{type:Boolean,default:!1},doubleClickStageChange:{type:Boolean,default:!0},title:String,titleRender:o.templateDefinition,closeButton:o.templateDefinition,minimizeButton:o.templateDefinition,maximizeButton:o.templateDefinition,restoreButton:o.templateDefinition,shouldUpdateOnDrag:Boolean,stage:{type:String,validator:function(e){return-1!==["DEFAULT","MINIMIZED","FULLSCREEN"].indexOf(e)}}},setup:N?function(){return{v3:!!N}}:void 0,created:function(){Object(o.validatePackage)(c),this.windowCoordinatesState={leftBeforeAction:this.getInitialLeft(),topBeforeAction:this.getInitialTop(),widthBeforeAction:this.getInitialWidth(),heightBeforeAction:this.getInitialHeight()}},beforeDestroy:N?void 0:function(){this.$props.appendTo&&this.windowWrapper.remove()},beforeUnmount:function(){this.$props.appendTo&&this.windowWrapper.remove()},data:function(){return{currentStage:this.$props.stage||i.DEFAULT,isDragging:!1,currentTop:this.getInitialTop(),currentLeft:this.getInitialLeft(),currentWidth:this.getInitialWidth(),currentHeight:this.getInitialHeight()}},mounted:function(){if(window&&(window.addEventListener("resize",this.handleBrowserWindowResize),this.$props.appendTo)){var e=document.querySelector(this.$props.appendTo);this.windowWrapper=this.$refs.wrapper,e.append(this.windowWrapper)}this.$el&&(this.windowElement=this.$refs.windowElement)},destroyed:N?void 0:function(){window&&window.removeEventListener("resize",this.handleBrowserWindowResize)},unmounted:function(){window&&window.removeEventListener("resize",this.handleBrowserWindowResize)},computed:{computedTop:function(){return this.windowStage!==i.FULLSCREEN?Math.max(this.$props.top||this.currentTop,0):0},computedLeft:function(){return this.windowStage!==i.FULLSCREEN?Math.max(this.$props.left||this.currentLeft,0):0},computedWidth:function(){var e=this.$props.width||this.currentWidth;return this.windowStage===i.FULLSCREEN&&(e=window.innerWidth),e},computedHeight:function(){var e=this.$props.height||this.currentHeight;return this.windowStage===i.FULLSCREEN?e=window.innerHeight:this.windowStage===i.MINIMIZED&&(e=0),e},windowStage:function(){return this.$props.stage||this.currentStage}},methods:{onPress:function(e){var t=e;this.windowCoordinatesState.differenceLeft=t.pageX-this.computedLeft,this.windowCoordinatesState.differenceTop=t.pageY-this.computedTop},onDrag:function(e){var t=e;t.originalEvent.preventDefault(),this.windowStage!==i.FULLSCREEN&&this.$props.draggable&&(this.currentTop=Math.max(t.pageY-this.windowCoordinatesState.differenceTop,0),this.currentLeft=t.pageX-this.windowCoordinatesState.differenceLeft,this.isDragging=!0,this.dispatchMoveEvent("move",t,!0,!1))},onRelease:function(e){var t=e;this.windowStage!==i.FULLSCREEN&&this.$props.draggable&&this.dispatchMoveEvent("move",t,!0,!0),this.isDragging=!1},handleKeyDown:function(e){if(e.target===e.currentTarget){var t=this.$props.minWidth||120,n=this.$props.minHeight||100;if(e.ctrlKey&&this.$props.resizable){switch(e.keyCode){case o.Keys.up:e.preventDefault(),n<=this.computedHeight-5&&(this.currentHeight=this.currentHeight-5);break;case o.Keys.down:e.preventDefault(),this.currentHeight=this.currentHeight+5;break;case o.Keys.left:t<=this.computedWidth-5&&(this.currentWidth=this.currentWidth-5);break;case o.Keys.right:this.currentWidth=this.currentWidth+5;break;default:return}this.dispatchMoveEvent("resize",e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case o.Keys.up:this.windowStage===i.MINIMIZED?(this.handleRestore(e),this.$emit("stagechange",e,this,{state:i.DEFAULT})):this.windowStage===i.DEFAULT&&(this.handleFullscreen(e),this.$emit("stagechange",e,this,{state:i.FULLSCREEN}));break;case o.Keys.down:this.windowStage===i.FULLSCREEN?(this.handleRestore(e),this.$emit("stagechange",e,this,{state:i.DEFAULT})):this.windowStage===i.DEFAULT&&(this.handleMinimize(e),this.$emit("stagechange",e,this,{state:i.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case o.Keys.esc:return void this.handleCloseWindow(e);case o.Keys.up:e.preventDefault(),this.currentTop=this.currentTop-5;break;case o.Keys.down:e.preventDefault(),this.currentTop=this.currentTop+5;break;case o.Keys.left:e.preventDefault(),this.currentLeft=this.currentLeft-5;break;case o.Keys.right:e.preventDefault(),this.currentLeft=this.currentLeft+5;break;default:return}this.dispatchMoveEvent("move",e,!1,void 0)}}},getInitialTop:function(){if(void 0!==this.$props.top)return this.$props.top;if(void 0!==this.$props.initialTop)return this.$props.initialTop;var e=300;return void 0!==this.$props.height?e=this.$props.height:void 0!==this.$props.initialHeight&&(e=this.$props.initialHeight),window.innerHeight/2-e/2},getInitialLeft:function(){if(void 0!==this.$props.left)return this.$props.left;if(void 0!==this.$props.initialLeft)return this.$props.initialLeft;var e=300;return void 0!==this.$props.width?e=this.$props.width:void 0!==this.$props.initialWidth&&(e=this.$props.initialWidth),window.innerWidth/2-e/2},getInitialWidth:function(){var e=300;return void 0!==this.$props.width?e=this.$props.width:void 0!==this.$props.initialWidth&&(e=this.$props.initialWidth),e},getInitialHeight:function(){var e=300;return void 0!==this.$props.height?e=this.$props.height:void 0!==this.$props.initialHeight&&(e=this.$props.initialHeight),e},handleMinimize:function(e){e.preventDefault(),this.windowCoordinatesState.leftBeforeAction=this.computedLeft,this.windowCoordinatesState.topBeforeAction=this.computedTop,this.windowCoordinatesState.widthBeforeAction=this.computedWidth,this.windowCoordinatesState.heightBeforeAction=this.computedHeight,this.currentStage=i.MINIMIZED,this.currentHeight=0,this.$emit("stagechange",e,this,{state:i.MINIMIZED})},handleFullscreen:function(e){e.preventDefault(),this.windowCoordinatesState.leftBeforeAction=this.computedLeft,this.windowCoordinatesState.topBeforeAction=this.computedTop,this.windowCoordinatesState.widthBeforeAction=this.computedWidth,this.windowCoordinatesState.heightBeforeAction=this.computedHeight,this.currentLeft=0,this.currentTop=0,this.currentWidth=window.innerWidth,this.currentHeight=window.innerHeight,this.currentStage=i.FULLSCREEN,this.$emit("stagechange",e,this,{state:i.FULLSCREEN})},handleRestore:function(e){e.preventDefault(),this.windowStage===i.FULLSCREEN?(this.currentStage=i.DEFAULT,this.currentLeft=this.windowCoordinatesState.leftBeforeAction,this.currentTop=this.windowCoordinatesState.topBeforeAction,this.currentWidth=this.windowCoordinatesState.widthBeforeAction,this.currentHeight=this.windowCoordinatesState.heightBeforeAction):this.windowStage===i.MINIMIZED&&(this.currentStage=i.DEFAULT,this.currentHeight=this.windowCoordinatesState.heightBeforeAction),this.$emit("stagechange",e,this,{state:i.DEFAULT})},handleCloseWindow:function(e){e.preventDefault(),this.$emit("close",e,this,{state:void 0})},handleDoubleClick:function(e){this.$props.doubleClickStageChange&&(this.windowStage===i.FULLSCREEN||this.windowStage===i.MINIMIZED?this.handleRestore(e):this.handleFullscreen(e))},handleResize:function(e,t){var n=this.computedWidth,i=this.computedHeight,r=this.$props.minWidth||120,o=this.$props.minHeight||100,s=this.computedTop-e.pageY,a=this.computedLeft-e.pageX,l=e.pageX-this.computedLeft,u=e.pageY-this.computedTop;this.isDragging=!t.end,t.direction.indexOf("n")>=0&&o-(i+s)<0&&(this.currentTop=e.pageY,this.currentHeight=i+s),t.direction.indexOf("s")>=0&&o-u<0&&(this.currentHeight=u),t.direction.indexOf("w")>=0&&r-(n+a)<0&&(this.currentLeft=e.pageX,this.currentWidth=n+a),t.direction.indexOf("e")>=0&&r-l<0&&(this.currentWidth=l),this.dispatchMoveEvent("resize",e,!0,t.end)},dispatchMoveEvent:function(e,t,n,i){this.$emit(e,{event:t.event,drag:n,end:i,target:this,left:this.currentLeft,top:this.currentTop,width:this.currentWidth,height:this.currentHeight})},handleBrowserWindowResize:function(){this.windowStage===i.FULLSCREEN&&(this.currentWidth=window.innerWidth,this.currentHeight=window.innerHeight)}},render:function(e){var t=this,n=B||e,r=Object(o.classNames)("k-widget","k-window",this.$props.windowClass,{"k-window-minimized":"MINIMIZED"===this.currentStage}),s=o.templateRendering.call(this,this.$props.titleRender,o.getListeners.call(this)),a=o.templateRendering.call(this,this.$props.closeButton,o.getListeners.call(this)),l=o.templateRendering.call(this,this.$props.minimizeButton,o.getListeners.call(this)),u=o.templateRendering.call(this,this.$props.maximizeButton,o.getListeners.call(this)),d=o.templateRendering.call(this,this.$props.restoreButton,o.getListeners.call(this)),c=Object(o.getDefaultSlots)(this),p=n("div",{ref:"wrapper"},[this.$props.modal&&n("div",{class:"k-overlay"}),n("div",{tabindex:0,attrs:this.v3?void 0:{tabindex:0},onFocus:function(e){return e.target.classList.add("k-focus")},on:this.v3?void 0:{focus:function(e){return e.target.classList.add("k-focus")},blur:function(e){return e.target.classList.remove("k-focus")},keydown:this.handleKeyDown},onBlur:function(e){return e.target.classList.remove("k-focus")},onKeydown:this.handleKeyDown,ref:"windowElement",class:r,style:M({top:this.computedTop+"px",left:this.computedLeft+"px",width:this.computedWidth+"px",height:this.computedHeight+"px"||!1},this.$props.windowStyle)},[n(o.Draggable,{onPress:this.onPress,on:this.v3?void 0:{press:this.onPress,drag:this.onDrag,release:this.onRelease},onDrag:this.onDrag,onRelease:this.onRelease,ref:"draggable"},this.v3?function(){return[n(O,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d},title:t.$props.title,titleRender:s,onDoubleclick:t.handleDoubleClick,on:t.v3?void 0:{doubleclick:t.handleDoubleClick,minimizeclick:t.handleMinimize,fullscreenclick:t.handleFullscreen,restoreclick:t.handleRestore,closeclick:t.handleCloseWindow},onMinimizeclick:t.handleMinimize,onFullscreenclick:t.handleFullscreen,onRestoreclick:t.handleRestore,onCloseclick:t.handleCloseWindow,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d})]}:[n(O,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d},title:t.$props.title,titleRender:s,onDoubleclick:t.handleDoubleClick,on:t.v3?void 0:{doubleclick:t.handleDoubleClick,minimizeclick:t.handleMinimize,fullscreenclick:t.handleFullscreen,restoreclick:t.handleRestore,closeclick:t.handleCloseWindow},onMinimizeclick:t.handleMinimize,onFullscreenclick:t.handleFullscreen,onRestoreclick:t.handleRestore,onCloseclick:t.handleCloseWindow,closeButton:a,minimizeButton:l,maximizeButton:u,restoreButton:d})]),this.windowStage!==i.MINIMIZED?n("div",{class:"k-content k-window-content"},[c]):null,this.windowStage===i.DEFAULT&&this.$props.resizable?n(V,{onResize:this.handleResize,on:this.v3?void 0:{resize:this.handleResize}}):null])]);return this.$props.appendTo?n("div",[p]):p}},j=P},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(0),r=n(1),o=r,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoTabStripNavigationItem",emits:{select:null},props:{active:Boolean,disabled:Boolean,index:Number,title:{type:String,default:"Untitled"},titleRender:[String,Function,Object],first:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0}},computed:{itemClasses:{get:function(){var e,t=this.$props,n=t.active,i=t.disabled,r=t.first,o=t.last;return(e={})["k-first"]=r,e["k-last"]=o,e["k-item"]=!0,e["k-disabled"]=i,e["k-active"]=n,e}}},methods:{onClick:function(){this.$props.disabled||this.$emit("select",this.$props.index)}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=s||e,n=this.$props,r=n.active,o=n.title,a=void 0===o?"Untitled":o,l=this.$props.titleRender,u=i.getTemplate.call(this,{h:t,template:l,defaultRendering:a,additionalProps:this.$props,additionalListeners:{select:this.onClick}});return t("li",{"aria-selected":r,attrs:this.v3?void 0:{"aria-selected":r,role:"tab"},role:"tab",onClick:this.onClick,on:this.v3?void 0:{click:this.onClick},class:this.itemClasses},[t("span",{class:"k-link"},[u])])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i=n(1),r=n(40),o=n(0),s=function(){return(s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=i,l=a.h,u=a.version&&"3"===a.version[0],d={type:"slide",duration:200},c={type:"slide",duration:0},p={name:"KendoDrawerNavigation",props:{item:[Object],tabIndex:Number},inject:{kendoDrawer:{default:null}},computed:{navigationClassNames:function(){var e=this.kendoDrawer.position;return{"k-widget k-drawer":!0,"k-drawer-start":"start"===e,"k-drawer-end":"end"===e}}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=l||e,n=Object(o.getDefaultSlots)(this),i=this.kendoDrawer,a=i.animation,u=i.expanded,p=i.mode,h=i.position,f=i.mini,v=i.dir,m=i.width,g=i.miniWidth,b=i.items,y="boolean"!=typeof a?a:!1===a?c:d,k=m||240,w=g||50,S={opacity:1,flexBasis:k+"px",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},C={opacity:1,transform:"translateX(0px)",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},x={opacity:f?1:0,flexBasis:f?w+"px":0,WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},O={opacity:0,transform:"translateX(-100%)",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},$={opacity:0,transform:"translateX(100%)",WebkitTransition:"all "+(y&&y.duration)+"ms",transition:"all "+(y&&y.duration)+"ms"},I={transform:"translateX(0%)",WebkitTransitionDuration:(y&&y.duration)+"ms",transitionDuration:(y&&y.duration)+"ms"},T=u?"push"===p?S:C:"push"===p?x:"ltr"===v&&"start"===h||"rtl"===v&&"end"===h?f?I:O:f?I:$,D=b&&t("ul",{class:"k-drawer-items",role:"listbox",attrs:this.v3?void 0:{role:"listbox",title:"drawer-list","aria-expanded":u},title:"drawer-list","aria-expanded":u},[b.map((function(e,n){var i=this.$props.item;!i||i.type||i.render||(i=o.templateRendering.call(this,this.$props.item,o.getListeners.call(this)));var a=t(r.a,{key:n,index:n,attrs:this.v3?void 0:{index:n,text:e.text,icon:e.icon,separator:e.separator,selected:e.selected,targetItem:e.targetItem},onClick:this.onSelect,on:this.v3?void 0:{click:this.onSelect},text:e.text,icon:e.icon,separator:e.separator,selected:e.selected,targetItem:e.targetItem});return o.getTemplate.call(this,{h:t,template:i,defaultRendering:a,additionalProps:s(s({},e),{index:n}),additionalListeners:{click:this.onSelect}})}),this)]);return t("div",{style:T,class:this.navigationClassNames},[t("div",{class:"k-drawer-wrapper",style:!u&&f&&"overlay"===p?{width:w+"px"}:{width:k+"px"}},[D||n])])},methods:{focus:function(e){this.$el&&this.$el.focus(e)},onSelect:function(e,t){this.$emit("select",e,t)}}},h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(0),o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},s=i,a=s.h,l=s.version&&"3"===s.version[0],u={name:"KendoDrawerItem",emits:{click:null},props:{index:Number,text:String,icon:String,separator:Boolean,selected:Boolean,disabled:Boolean,targetItem:[Object,Array]},inject:{kendoDrawer:{default:null}},computed:{itemClassNames:function(){var e=this.$props,t=e.disabled;return{"k-drawer-item":!0,"k-selected":e.selected,"k-disabled":t}}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=Object(r.getDefaultSlots)(this),i=this.$props,o=i.text,s=i.icon,l=i.separator,u=i.disabled,d=i.selected,c=i.tabIndex,p=this.kendoDrawer,h=p.expanded,f=p.mini,v=p.item;return l?t("li",{class:"k-drawer-item k-drawer-separator",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}}):t("li",{class:this.itemClassNames,role:"option",attrs:this.v3?void 0:{role:"option","aria-selected":d,"aria-disabled":u,tabindex:Object(r.getTabIndex)(c,u)},"aria-selected":d,"aria-disabled":u,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},tabindex:Object(r.getTabIndex)(c,u)},[v?n:[s&&t("span",{class:"k-icon "+s}),!h&&f?null:t("span",{class:"k-item-text"},[o])]])},methods:{focus:function(e){this.$el&&this.$el.focus(e)},handleClick:function(){if(!this.disabled){var e={element:this.$el,focus:this.focus,props:o(o({},this.$props),this.$attrs)};this.$emit("click",e,this.$props.index)}}}},d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoMenuItemLink",props:{opened:Boolean,focused:Boolean,url:String},computed:{menuItemClassName:function(){return{"k-link":!0,"k-menu-link":!0,"k-active":this.$props.opened,"k-focus":this.$props.focused}}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=s||e,n=Object(r.getDefaultSlots)(this);return this.$props.url?t("a",{class:this.menuItemClassName,role:"presentation",attrs:this.v3?void 0:{role:"presentation",href:this.$props.url,tabindex:-1},href:this.$props.url,tabindex:-1},[n]):t("span",{class:this.menuItemClassName,role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[n])}},u=l},function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(16),o=i,s=o.h,a=o.version&&"3"===o.version[0],l="k-i-arrow-60-down",u="k-i-arrow-60-right",d="k-i-arrow-60-left",c={name:"KendoMenuItemArrow",props:{itemId:String,dir:String,verticalMenu:Boolean},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=s||e;return t("span",{class:"k-menu-expand-arrow"},[t("span",{class:this.getArrowClassName(),role:"presentation",attrs:this.v3?void 0:{role:"presentation"}})])},methods:{getArrowClassName:function(){var e,t=Object(r.b)(this.$props.itemId,!0===this.$props.verticalMenu,"rtl"===this.$props.dir);return(e={"k-icon":!0})[l]="downward"===t,e[u]="rightward"===t,e[d]="leftward"===t,e}}},p=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoSplitterPane",props:{orientation:{type:String,default:function(){},validator:function(e){return["vertical","horizontal"].includes(e)}},overlay:Boolean,containsSplitter:Boolean,size:String,min:String,max:String,resizable:Boolean,collapsible:Boolean,collapsed:Boolean,scrollable:Boolean,keepMounted:Boolean,content:[Object,Function,String]},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t,n=s||e,i=this.$props,o=i.size,a=i.collapsed,l=i.overlay,u=i.containsSplitter,d=i.collapsible,c=i.resizable,p=i.scrollable,h=i.keepMounted,f=o&&o.length>0,v={flexBasis:o},m=Object(r.classNames)("k-pane",((t={})["k-hidden"]=a,t.hidden=a,t["k-pane-flex"]=u,t["k-pane-static"]=!c&&!d||f,t["k-scrollable"]=p,t)),g=r.getTemplate.call(this,{h:n,template:this.$props.content,defaultRendering:null});return n("div",{style:v,class:m},[!a||h?g:void 0,l?n("div",{class:"k-splitter-overlay k-overlay"}):void 0])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i=n(1),r=n(0),o=n(8),s=n(24),a=function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=i,u=l.h,d=l.version&&"3"===l.version[0],c=l.ref,p={model:{event:"changemodel"},emits:{input:null,change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null,keyup:null,keydown:null,keypress:null},props:{modelValue:{type:[String,Number],default:void 0},disabled:Boolean,defaultValue:{type:[String,Number],default:""},value:{type:[String,Number]},label:{type:String},placeholder:{type:String},required:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},dir:{type:String},id:String,valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String},validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:r.templateDefinition,inputSuffix:r.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String,tabIndex:Number},data:function(){return{hasMounted:!1,autofill:!1,currentValue:"",valueDuringOnChange:"",focused:!1}},created:function(){Object(r.validatePackage)(o.a),this._input=void 0,this._inputId=Object(r.guid)(),this.$data.valueDuringOnChange=void 0,this.$data.currentValue=this.$props.defaultValue},mounted:function(){this._input=this.v3?this.inputRef:this.$refs.input,this.$data.hasMounted=!0,this.setValidity()},updated:function(){this.setValidity()},setup:d?function(){return{v3:!!d,inputRef:c(null)}}:void 0,render:function(e){var t=this,n=u||e,i=!this.$props.validityStyles||this.validity().valid,o=this.$props,l=o.label,d=o.id,c=o.required,p=o.iconName,h=o.showValidationIcon,f=o.showLoadingIcon,v=o.showClearButton,m=o.tabIndex,g=d||this._inputId,b=n("input",a(a({domProps:this.v3?null:a(a({},this.$attrs),{placeholder:this.$props.placeholder,id:g,required:c,value:this.computedValue}),attrs:this.v3?void 0:a(a({},this.$attrs),{tabindex:m})},this.$attrs),{placeholder:this.$props.placeholder,id:g,tabindex:m,required:c,value:this.computedValue,class:this.inputInnerClass,ref:this.v3?function(e){t.inputRef=e}:"input",on:this.v3?null:{change:this.handleChange,focus:this.emitFocus,blur:this.emitBlur,keydown:this.handleKeydown,keyup:this.handleKeyup,keypress:this.handleKeypress,input:this.handleInput,animationstart:this.handleAutoFill,animationend:this.handleAutoFillEnd},onKeydown:this.handleKeydown,onKeyup:this.handleKeyup,onKeypress:this.handleKeypress,onChange:this.handleChange,onFocus:this.emitFocus,onBlur:this.emitBlur,onInput:this.handleInput,onAnimationstart:this.handleAutoFill,onAnimationend:this.handleAutoFillEnd})),y=r.templateRendering.call(this,this.$props.inputPrefix,r.getListeners.call(this)),k=r.templateRendering.call(this,this.$props.inputSuffix,r.getListeners.call(this)),w=r.getTemplate.call(this,{h:n,template:y,additionalProps:{value:this.computedValue,valid:i}}),S=r.getTemplate.call(this,{h:n,template:k,additionalProps:{value:this.computedValue,valid:i}}),C=n("span",{class:this.inputWrapperClass()},[p&&n("span",{class:"k-input-icon k-icon k-i-"+p}),this.$props.inputPrefix&&n("span",{class:"k-input-prefix"},[w]),b,this.$props.inputSuffix&&n("span",{class:"k-input-suffix"},[S]),h&&i&&n("span",{class:"k-input-validation-icon k-icon k-i-check"}),h&&!i&&n("span",{class:"k-input-validation-icon k-icon k-i-warning"}),f&&n("span",{class:"k-input-loading-icon k-icon k-i-loading"}),v&&this.computedValue&&n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})])]);return l?n(s.a,{label:l,attrs:this.v3?void 0:{label:l,editorId:g,editorValue:this.computedValue,editorValid:i,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},editorId:g,editorValue:this.computedValue,editorValid:i,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},this.v3?function(){return[C]}:[C]):C},methods:{emitFocus:function(e){this.$emit("focus",e),this.$data.focused=!0},emitBlur:function(e){this.$emit("blur",e),this.$data.focused=!1},handleKeydown:function(e){this.$emit("keydown",e)},handleKeyup:function(e){this.$emit("keyup",e)},handleKeypress:function(e){this.$emit("keypress",e)},clearClick:function(e){this.emitUpdate(e,"change","")},focus:function(){this._input&&this._input.focus()},validity:function(){var e={badInput:!!this._input&&this._input.validity.badInput,patternMismatch:!!this._input&&this._input.validity.patternMismatch,rangeOverflow:!!this._input&&this._input.validity.rangeOverflow,rangeUnderflow:!!this._input&&this._input.validity.rangeUnderflow,stepMismatch:!!this._input&&this._input.validity.stepMismatch,tooLong:!!this._input&&this._input.validity.tooLong,tooShort:!!this._input&&this._input.validity.tooShort,typeMismatch:!!this._input&&this._input.validity.typeMismatch,valueMissing:!!this._input&&this._input.validity.valueMissing};return a(a({},e),{customError:void 0!==this.$props.validationMessage,valid:void 0!==this.$props.valid?this.$props.valid:!this._input||!this.isInvalid(e)})},isInvalid:function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=t||e[n]);return t},setValidity:function(){this._input&&this._input.setCustomValidity&&this._input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"")},handleInput:function(e){this.emitUpdate(e,"input",e.target.value)},handleChange:function(e){this.emitUpdate(e,"change",e.target.value)},emitUpdate:function(e,t,n){var i=this;this.disabled||(this.$data.currentValue=n,this.$data.valueDuringOnChange=n,this.$nextTick((function(){i.$emit("changemodel",n),i.$emit("update:modelValue",n),i.$emit(t,{event:e,value:n,component:i,target:e.target,validity:i.validity()}),i.$data.valueDuringOnChange=void 0})))},handleAutoFill:function(e){if("autoFillStart"===e.animationName){var t=e.target.parentNode;t&&t.classList.contains("k-empty")&&(this.$data.autofill=!0,t.classList.remove("k-empty"))}},handleAutoFillEnd:function(e){"autoFillEnd"===e.animationName&&(e.target.parentNode&&(this.$data.autofill=!1))},name:function(){return this.$props.name},inputWrapperClass:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,s=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return(e={"k-textbox":!0,"k-input":!0})["k-input-"+(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!s,e["k-required"]=this.required,e["k-disabled"]=this.$props.disabled,e[this.wrapperClass]=this.wrapperClass,e}},computed:{spanClassNames:{get:function(){var e=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.$data.focused,"k-empty":!(0===this.computedValue||this.computedValue||this.$props.placeholder||this.$data.autofill),"k-autofill":this.$data.autofill,"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e},computedValue:{get:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentValue}}}},h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return g}));var i=n(1),r=n(0),o=n(5),s=n(25),a=n(48),l=n(8),u=n(2),d=n(7),c=n(23),p=n(4),h=function(){return(h=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},f=i,v=f.h,m=f.version&&"3"===f.version[0],g={name:"KendoFlatColorPicker",emits:{viewchange:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,focus:null,blur:null,focusout:null,keydown:null,change:null},props:{modelValue:String,modelRgbaValue:String,value:String,prevValue:String,tabIndex:Number,disabled:Boolean,view:{type:String,default:"combo",validator:function(e){return["gradient","palette","combo"].includes(e)}},selectedView:{type:Number,default:void 0},header:[String,Function,Object],footer:[String,Function,Object],showClearButton:{type:Boolean,default:!0},showPreview:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0},gradientSettings:{type:Object,default:function(){return c.a}},paletteSettings:{type:Object,default:function(){return c.b}}},inject:{kendoLocalizationService:{default:null}},created:function(){Object(r.validatePackage)(l.a)},computed:{isColorGradient:function(){return"combo"!==this.view?"gradient"===this.view:void 0!==this.selectedView?0===this.selectedView:"gradient"===this.currentView},computedColor:function(){return void 0!==this.value?this.value:void 0!==this.modelValue?this.modelValue:void 0!==this.modelRgbaValue?this.modelRgbaValue:this.colorValue},computedPrevColor:function(){return void 0!==this.prevValue?this.prevValue:this.currentPrevColor},previewClass:function(){return{"k-coloreditor-preview-color":!0,"k-color-preview":!0,"k-no-color":!this.colorValue}},currentClass:function(){return{"k-coloreditor-current-color":!0,"k-color-preview":!0,"k-no-color":!this.computedPrevColor}},computedTabIndex:function(){return this.focused?0:-1}},data:function(){var e=this.value||this.defaultValue||this.modelValue||this.modelRgbaValue;return{currentView:"gradient",colorValue:e,currentPrevColor:e,focused:!1}},setup:m?function(){return{v3:!!m}}:void 0,render:function(e){var t=this,n=this,i=v||e,l=Object(p.provideLocalizationService)(this),d=l.toLanguageString(u.v,u.x[u.v]),c=l.toLanguageString(u.w,u.x[u.w]),f=l.toLanguageString(u.u,u.x[u.u]),m=l.toLanguageString(u.t,u.x[u.t]),g=l.toLanguageString(u.s,u.x[u.s]),b=r.templateRendering.call(this,this.$props.header,r.getListeners.call(this)),y=r.templateRendering.call(this,this.$props.footer,r.getListeners.call(this)),k=r.getTemplate.call(this,{h:i,template:b}),w=r.getTemplate.call(this,{h:i,template:y});return i("div",{tabindex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled),attrs:this.v3?void 0:{tabindex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-disabled":this.$props.disabled},onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,focusout:this.onFocusout,keydown:this.onKeyDownHandler},onBlur:this.onBlur,onFocusout:this.onFocusout,onKeydown:this.onKeyDownHandler,class:Object(r.classNames)("k-flatcolorpicker k-coloreditor",{"k-disabled":this.$props.disabled}),"aria-disabled":this.$props.disabled},[k,this.$props.showClearButton&&this.$props.showPreview&&i("div",{class:"k-coloreditor-header k-hstack"},["combo"===this.$props.view&&i("div",{class:"k-coloreditor-header-actions k-hstack"},[i(o.ButtonGroup,this.v3?function(){return[i(o.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,ariaLabel:d},type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"gradient")}},ariaLabel:d,onClick:function(e){return n.handleViewChange(e,"gradient")}},t.v3?function(){return[i("span",{class:"k-icon k-i-color-canvas"})]}:[i("span",{class:"k-icon k-i-color-canvas"})]),i(o.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,ariaLabel:c},type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"palette")}},ariaLabel:c,onClick:function(e){return n.handleViewChange(e,"palette")}},t.v3?function(){return[i("span",{class:"k-icon k-i-palette"})]}:[i("span",{class:"k-icon k-i-palette"})])]}:[i(o.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,ariaLabel:d},type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"gradient")}},ariaLabel:d,onClick:function(e){return n.handleViewChange(e,"gradient")}},t.v3?function(){return[i("span",{class:"k-icon k-i-color-canvas"})]}:[i("span",{class:"k-icon k-i-color-canvas"})]),i(o.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,ariaLabel:c},type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"palette")}},ariaLabel:c,onClick:function(e){return n.handleViewChange(e,"palette")}},t.v3?function(){return[i("span",{class:"k-icon k-i-palette"})]}:[i("span",{class:"k-icon k-i-palette"})])])]),i("div",{class:"k-spacer"}),i("div",{class:"k-coloreditor-header-actions k-hstack"},[this.$props.showClearButton&&i(o.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button",fillMode:"flat",ariaLabel:f},type:"button",fillMode:"flat",ariaLabel:f,onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleResetColor},onClick:this.handleResetColor},this.v3?function(){return[i("span",{class:"k-icon k-i-reset-color"})]}:[i("span",{class:"k-icon k-i-reset-color"})]),this.$props.showPreview&&i("div",{class:"k-coloreditor-preview k-vstack"},[i("span",{class:this.previewClass,style:{background:this.colorValue}},[!this.colorValue&&i("span",{class:"k-color-preview-mask"})]),i("span",{class:this.currentClass,style:{background:this.computedPrevColor},onClick:this.handlePrevColorClick,on:this.v3?void 0:{click:this.handlePrevColorClick}},[!this.computedPrevColor&&i("span",{class:"k-color-preview-mask"})])])])]),i("div",{class:"k-coloreditor-views k-vstack"},[this.isColorGradient?function(){return i(a.a,h({attrs:this.v3?void 0:h({tabIndex:-1,value:this.colorValue,innerTabIndex:this.computedTabIndex},this.gradientSettings),ref:Object(r.setRef)(this,"gradient"),tabIndex:-1,value:this.colorValue,innerTabIndex:this.computedTabIndex,onChange:this.handleColorChange,onKeydown:this.innerKeyDown,on:this.v3?void 0:{change:this.handleColorChange,keydown:this.innerKeyDown}},this.gradientSettings))}.call(this):function(){return i(s.a,h({on:this.v3?void 0:{change:this.handlePaletteColorChange,keydown:this.gradientKeyDown},ref:Object(r.setRef)(this,"palette"),tabIndex:this.computedTabIndex,value:this.colorValue,attrs:this.v3?void 0:h({tabIndex:this.computedTabIndex,value:this.colorValue},this.paletteSettings),onChange:this.handlePaletteColorChange,onKeydown:this.gradientKeyDown},this.paletteSettings))}.call(this)]),this.$props.showButtons&&i("div",{class:"k-coloreditor-footer k-actions k-actions-end"},[i(o.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button"},type:"button",class:"k-coloreditor-cancel",onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleCancelBtnClick},onClick:this.handleCancelBtnClick},this.v3?function(){return[m]}:[m]),i(o.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button"},type:"button",class:"k-coloreditor-apply k-primary",onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleApplyBtnClick},onClick:this.handleApplyBtnClick},this.v3?function(){return[g]}:[g])]),w])},methods:{focus:function(){var e=this;this.focused=!0,setTimeout((function(){Object(r.focusFirstFocusableChild)(e.$el)}),1)},onKeyDownHandler:function(e){var t=this.$el;this.focused=Object(r.focusContainer)(e,t),this.$emit("keydown",e)},handleViewChange:function(e,t){this.currentView=t,this.$emit("viewchange",{event:e,viewType:t})},handleResetColor:function(){this.colorValue=null},handleColorChange:function(e){this.colorValue=e.value},handlePaletteColorChange:function(e){this.colorValue=e.value},handleApplyBtnClick:function(e){var t=Object(d.g)(this.colorValue,"rgba");this.currentPrevColor=this.colorValue,this.$emit("changemodel",this.colorValue),this.$emit("update:modelValue",this.colorValue),this.$emit("update:modelRgbaValue",t),this.$emit("change",{event:e,value:this.colorValue,rgbaValue:t})},innerKeyDown:function(e){e.keyCode===r.Keys.enter&&this.handleApplyBtnClick(e)},gradientKeyDown:function(e){e.stopPropagation(),this.showButtons||e.keyCode!==r.Keys.enter||this.handleApplyBtnClick(e)},handleButtonKeydown:function(e){e.keyCode===r.Keys.enter&&e.stopPropagation()},handleCancelBtnClick:function(){this.colorValue=this.computedPrevColor},handlePrevColorClick:function(){this.colorValue=this.computedPrevColor},onFocus:function(e){this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.$emit("blur",{event:e,target:this})},onFocusout:function(e){this.$emit("focusout",{event:e,target:this})}}},b=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d}));var i=n(1),r=n(0),o=function(){return(o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},s=i,a=s.h,l=s.version&&"3"===s.version[0],u=(s.ref,"data-slider-label"),d={name:"KendoSliderLabel",emits:{click:null},props:{position:Number,title:String,vertical:Boolean},data:function(){return{currentDir:"ltr"}},inject:["kendoMax","kendoMin","kendoVertical"],mounted:function(){if(this.sliderLabelRef=this.$refs.sliderLabelRef,!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t,n=a||e,i=this.currentDir,s=Object(r.getDefaultSlots)(this),l=100*(this.$props.position-this.kendoMin)/(this.kendoMax-this.kendoMin),u=this.kendoVertical?{bottom:l+"%",height:"1px",width:"100%"}:((t={})["rtl"===i?"right":"left"]=l+"%",t.width="1px",t.height="100%",t);return n("li",{ref:"sliderLabelRef",role:"presentation",attrs:this.v3?void 0:{role:"presentation",title:this.$props.title},class:"k-tick k-tick-large",title:this.$props.title,style:o({zIndex:1,position:"absolute"},u)},[n("span",{"data-slider-label":!0,attrs:this.v3?void 0:{"data-slider-label":!0},class:"k-label",onClick:this.onClick,on:this.v3?void 0:{click:this.onClick}},[s])])},methods:{onClick:function(e){this.$emit("click",e)}}},c=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(1),r=n(0),o=n(8),s=i,a=s.h,l=s.version&&"3"===s.version[0],u=s.ref,d=(s.inject,{name:"KendoRadioButton",props:{ariaDescribedBy:String,checked:Boolean,disabled:Boolean,className:String,content:[String,Number,Boolean,Object],id:String,label:String,labelRender:[String,Number,Boolean,Object],item:[String,Number,Boolean,Object],labelPlacement:String,name:String,tag:{type:String,default:"div"},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},tabIndex:Number,value:[String,Number,Object],valid:{type:Boolean,default:void 0}},emits:{change:null,focus:null,blur:null},created:function(){this.calculatedId=Object(r.guid)(),Object(r.validatePackage)(o.a)},mounted:function(){this.input=Object(r.getRef)(this,"input")},computed:{inputClassName:function(){var e;return(e={"k-radio":!0})["k-radio-"+r.kendoThemeMaps.sizeMap[this.$props.size]]=this.$props.size,e["k-invalid"]=!1===this.$props.valid,e[this.$props.className]=this.$props.className,e}},methods:{focusElement:function(){this.input&&this.input.focus()},handleChange:function(e){this.$emit("change",{event:e,value:this.$props.value})},handleFocus:function(e){this.$props.disabled||this.$emit("focus",e,void 0)},handleBlur:function(e){this.$props.disabled||this.$emit("blur",e,void 0)}},setup:l?function(){return{v3:!!l,inputRef:u(null)}}:void 0,render:function(e){var t=a||e,n=Object(r.getDefaultSlots)(this),i=this.$props,o=i.ariaDescribedBy,s=i.checked,l=i.disabled,u=i.id,d=i.label,c=i.labelRender,p=i.labelPlacement,h=i.name,f=i.tabIndex,v=i.value,m=i.tag,g=d;if(c){var b=c?r.templateRendering.call(this,c,r.getListeners.call(this)):null;g=r.getTemplate.call(this,{h:t,template:b})}var y=r.getTemplate.call(this,{h:t,template:this.$props.content}),k=void 0!==g?t("label",{class:"k-radio-label",for:u||this.calculatedId,attrs:this.v3?void 0:{for:u||this.calculatedId,"aria-label":d},style:{userSelect:"none"},"aria-label":d},[g]):null,w=t("input",{type:"radio",attrs:this.v3?void 0:{type:"radio",id:u||this.calculatedId,name:h,disabled:l,tabindex:Object(r.getTabIndex)(f,l),"aria-describedby":o},id:u||this.calculatedId,name:h,class:this.inputClassName,ref:Object(r.setRef)(this,"input"),disabled:l,tabindex:Object(r.getTabIndex)(f,l),checked:this.v3?s:null,domProps:this.v3?void 0:{checked:s,value:v},style:this.$attrs.style,"aria-describedby":o,value:this.v3?v:null,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},onFocus:this.handleFocus,onBlur:this.handleBlur}),S=t(m,"before"===p?[k,w,y,n]:[w,k,y,n]);return r.getTemplate.call(this,{h:t,template:this.$props.item,defaultRendering:S,defaultSlots:n,additionalListeners:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},additionalProps:{}})}}),c=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var i=n(1),r=n(0),o=n(8),s=n(21),a=n(6),l=n(7),u=n(23),d=n(44),c=i,p=c.h,h=c.version&&"3"===c.version[0],f={name:"KendoHexInput",emits:{hexchange:null,blur:null,focus:null},props:{tabIndex:Number,hex:String,disabled:Boolean},computed:{isHexValid:function(){return!!Object(l.g)(this.currentHex,"rgba")}},data:function(){return{currentHex:this.$props.hex,originalHex:this.$props.hex}},mounted:function(){this._input=this.$refs.input._input},setup:h?function(){return{v3:!!h}}:void 0,watch:{hex:function(e){this.currentHex=e}},render:function(e){return(p||e)(d.a,{value:this.currentHex,attrs:this.v3?void 0:{value:this.currentHex,valid:this.isHexValid,disabled:this.$props.disabled,tabIndex:this.tabIndex},onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,change:this.onChange,focus:this.onFocus,blur:this.onBlur},onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,valid:this.isHexValid,disabled:this.$props.disabled,tabIndex:this.tabIndex,ref:"input"})},methods:{onChange:function(e){var t=e.target.value,n=Object(l.g)(t,"rgba");this.currentHex=t,Object(a.b)(n)&&this.$emit("hexchange",{hex:t,value:n,event:e})},onBlur:function(e){Object(a.b)(Object(l.g)(this.hex,"rgba"))||(this.currentHex=this.originalHex),this.$emit("blur",e)},onFocus:function(e){this.$emit("focus",e)}}},v=n(5),m=n(24),g=n(4),b=n(2),y=function(){return(y=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},k=i,w=k.h,S=k.version&&"3"===k.version[0],C=["rgba","rgb","hex"],x={name:"KendoColorInput",emits:{hexchange:null,rgbachange:null},props:{tabIndex:Number,rgba:{type:Object,default:function(){return{}}},hex:String,opacity:Boolean,disabled:Boolean},inject:{kendoLocalizationService:{default:null}},created:function(){this.hexInputId=Object(r.guid)()},data:function(){return{inputMode:C[1]}},mounted:function(){this.lastFocusable=this.$refs.hexinput||this.$refs.numerica||this.$refs.numericb},updated:function(){this.lastFocusable=this.$refs.hexinput||this.$refs.numerica||this.$refs.numericb},setup:S?function(){return{v3:!!S}}:void 0,render:function(e){var t=w||e,n=Object(g.provideLocalizationService)(this),i=n.toLanguageString(b.n,b.x[b.n]),r=n.toLanguageString(b.o,b.x[b.o]),o=n.toLanguageString(b.q,b.x[b.q]),a=n.toLanguageString(b.l,b.x[b.l]),l=n.toLanguageString(b.g,b.x[b.g]),u=n.toLanguageString(b.c,b.x[b.c]),d=n.toLanguageString(b.r,b.x[b.r]),c=n.toLanguageString(b.m,b.x[b.m]),p=n.toLanguageString(b.h,b.x[b.h]),h=n.toLanguageString(b.f,b.x[b.f]);return t("div",{class:"k-colorgradient-inputs k-hstack"},[t("div",{class:"k-vstack"},[t(v.Button,{ariaLabel:r,attrs:this.v3?void 0:{ariaLabel:r,tabIndex:this.tabIndex,type:"button",fillMode:"flat",icon:"arrows-kpi"},tabIndex:this.tabIndex,type:"button",fillMode:"flat",icon:"arrows-kpi",class:"k-colorgradient-toggle-mode k-icon-button",onClick:this.onToggleModeChange,on:this.v3?void 0:{click:this.onToggleModeChange,keydown:this.onKeyDown},onKeydown:this.onKeyDown})]),"hex"===this.inputMode&&t("div",{class:"k-vstack k-flex-1"},[t("span",{class:"k-hex-value"},[t(f,{id:this.hexInputId,attrs:this.v3?void 0:{id:this.hexInputId,tabIndex:this.tabIndex,hex:this.$props.hex,disabled:this.$props.disabled},tabIndex:this.tabIndex,hex:this.$props.hex,onHexchange:this.onHexChange,on:this.v3?void 0:{hexchange:this.onHexChange},disabled:this.$props.disabled,ref:"hexinput"})]),t(m.b,{class:"k-colorgradient-input-label",for:this.hexInputId,attrs:this.v3?void 0:{for:this.hexInputId}},this.v3?function(){return[i]}:[i])]),("rgb"===this.inputMode||"rgba"===this.inputMode)&&[t("div",{class:"k-vstack"},[t(s.NumericTextBox,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.r,min:0,max:255,spinners:!1,format:"n",ariaLabel:d,disabled:this.$props.disabled},value:this.$props.rgba.r,min:0,max:255,spinners:!1,format:"n",ariaLabel:d,onChange:this.onRgbaRChange,on:this.v3?void 0:{change:this.onRgbaRChange},disabled:this.$props.disabled}),t(m.b,{class:"k-colorgradient-input-label"},this.v3?function(){return[o]}:[o])]),t("div",{class:"k-vstack"},[t(s.NumericTextBox,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.g,min:0,max:255,spinners:!1,format:"n",ariaLabel:c,disabled:this.$props.disabled},value:this.$props.rgba.g,min:0,max:255,spinners:!1,format:"n",ariaLabel:c,onChange:this.onRgbaGChange,on:this.v3?void 0:{change:this.onRgbaGChange},disabled:this.$props.disabled}),t(m.b,{class:"k-colorgradient-input-label"},this.v3?function(){return[a]}:[a])]),t("div",{class:"k-vstack"},[t(s.NumericTextBox,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.b,min:0,max:255,spinners:!1,format:"n",ariaLabel:p,disabled:this.$props.disabled},value:this.$props.rgba.b,min:0,max:255,spinners:!1,format:"n",ariaLabel:p,onChange:this.onRgbaBChange,on:this.v3?void 0:{change:this.onRgbaBChange},disabled:this.$props.disabled,ref:"numericb"}),t(m.b,{class:"k-colorgradient-input-label"},this.v3?function(){return[l]}:[l])])],"rgba"===this.inputMode&&t("div",{class:"k-vstack"},[this.$props.opacity&&t(s.NumericTextBox,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",ariaLabel:h,disabled:this.$props.disabled},value:this.$props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",ariaLabel:h,onChange:this.onRgbaAChange,on:this.v3?void 0:{change:this.onRgbaAChange},disabled:this.$props.disabled,ref:"numerica"}),this.$props.opacity&&t(m.b,{class:"k-colorgradient-input-label"},this.v3?function(){return[u]}:[u])])])},methods:{onHexChange:function(e){this.$emit("hexchange",e.hex,e.value,e)},onRgbaRChange:function(e){this.dispatchRgbaChange({r:e.value},e)},onRgbaGChange:function(e){this.dispatchRgbaChange({g:e.value},e)},onRgbaBChange:function(e){this.dispatchRgbaChange({b:e.value},e)},onRgbaAChange:function(e){this.dispatchRgbaChange({a:e.value},e)},dispatchRgbaChange:function(e,t){var n=y({},this.$props.rgba);void 0!==e.r&&(n.r=e.r),void 0!==e.g&&(n.g=e.g),void 0!==e.b&&(n.b=e.b),void 0!==e.a&&(n.a=e.a),this.$emit("rgbachange",n,t)},onToggleModeChange:function(){var e=C.length-1===C.indexOf(this.inputMode)?0:C.indexOf(this.inputMode)+1;if(this.$props.opacity)this.inputMode=C[e];else{var t="rgba"===C[e]?e+1:e;this.inputMode=C[t]}},onKeyDown:function(e){e.keyCode===r.Keys.enter&&e.stopPropagation()}}},O=i,$=O.h,I=O.version&&"3"===O.version[0],T={name:"KendoColorContrastLabels",props:{bgColor:Object,rgba:Object},inject:{kendoLocalizationService:{default:null}},setup:I?function(){return{v3:!!I}}:void 0,render:function(e){var t=$||e,n=Object(g.provideLocalizationService)(this),i=n.toLanguageString(b.i,b.x[b.i]),r=n.toLanguageString(b.e,b.x[b.e]),o=n.toLanguageString(b.d,b.x[b.d]),s=n.toLanguageString(b.p,b.x[b.p]),a=n.toLanguageString(b.k,b.x[b.k]),u=Object(l.d)(this.$props.rgba,this.$props.bgColor),d=4.5.toFixed(1),c=7..toFixed(1),p=i+": "+u.toFixed(2),h=r+": "+d,f=o+": "+c,v=u>=4.5,m=u>=7,y=t("span",{key:1,class:"k-contrast-validation k-text-success"},[s," ",t("span",{class:"k-icon k-i-check"})]),k=t("span",{key:2,class:"k-contrast-validation k-text-error"},[a," ",t("span",{class:"k-icon k-i-close"})]);return t("div",{class:"k-vbox k-colorgradient-color-contrast"},[t("div",{class:"k-contrast-ratio"},[t("span",{class:"k-contrast-ratio-text"},[p]),v?t("span",{class:"k-contrast-validation k-text-success"},[t("span",{class:"k-icon k-i-check"}),m&&t("span",{class:"k-icon k-i-check"})]):t("span",{class:"k-contrast-validation k-text-error"},[t("span",{class:"k-icon k-i-close"})])]),t("div",[t("span",[h]),v?y:k]),t("div",[t("span",[f]),m?y:k])])}},D=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}},V=i,M=V.h,R=V.version&&"3"===V.version[0],B={name:"KendoColorContrastSvg",props:{metrics:Object,backgroundColor:String,hsva:Object},setup:R?function(){return{v3:!!R}}:void 0,render:function(e){var t,n,i=this,r=M||e,o=function(e,t){if(0===e.length)return"";var n=e.reduce((function(e,n,i,r){return 0===i?"M "+n[0]+","+n[1]:e+" "+t(n,i,r)}),"");return r("path",{d:n,attrs:this.v3?void 0:{d:n,fill:"none",stroke:"white","stroke-width":"1"},fill:"none",stroke:"white","stroke-width":"1"})},s=this.$props.metrics,a=function e(t,n,r,o,a){var u=(r+o)/2,d=Object.assign({},i.$props.hsva,{s:n/s.width,v:1-u/s.height}),c=Object(l.d)(Object(l.f)(Object(l.a)(d)),Object(l.f)(i.$props.backgroundColor||""));return r+.5>o?c<t+1&&c>t-1?u:null:a(c,t)?e(t,n,r,o-(o-r)/2,a):e(t,n,r+(o-r)/2,o,a)},u=function(e,t,n){void 0===n&&(n=!1);for(var i=[],r=0;r<=s.width;r+=s.width/t){var o=a(e,r,0,s.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==o&&i.push([r,o])}return i},d=(n=D,t=function(e,t,i,r){var o=n(t||e,i||e),s=o.angle+(r?Math.PI:0),a=.1*o.length;return[e[0]+Math.cos(s)*a,e[1]+Math.sin(s)*a]},function(e,n,i){var r=t(i[n-1],i[n-2],e),o=r[0],s=r[1],a=t(e,i[n-1],i[n+1],!0);return"C "+o+","+s+" "+a[0]+","+a[1]+" "+e[0]+","+e[1]});return r("svg",{xmlns:"http://www.w3.org/2000/svg",attrs:this.v3?void 0:{xmlns:"http://www.w3.org/2000/svg"},class:"k-color-contrast-svg",style:{position:"absolute",overflow:"visible",pointerEvents:"none",left:0,top:0,zIndex:3}},[o.call(this,u(4.5,16),d),o.call(this,u(4.5,16,!0),d),o.call(this,u(7,16),d),o.call(this,u(7,16,!0),d)])}},N=i,P=N.h,j=N.version&&"3"===N.version[0],E={name:"KendoColorGradient",model:{event:"changemodel"},emits:{change:null,focus:null,blur:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,keydown:null},inject:{kendoLocalizationService:{default:null}},props:{modelValue:String,modelRgbaValue:String,defaultValue:String,value:String,opacity:{type:Boolean,default:!0},backgroundColor:String,disabled:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String,tabIndex:Number,innerTabIndex:{type:Number,default:void 0}},created:function(){Object(r.validatePackage)(o.a),this.guid=Object(r.guid)()},computed:{valueSet:function(){return this.value||this.modelValue||this.modelRgbaValue},computedValue:function(){var e=this.valueSet||this.currentValue||this.defaultValue||Object(l.g)("rgba(255, 255, 255, 1)","rgba");return Object(a.b)(Object(l.g)(e,"hex",this.opacity))||(e="rgba(255, 255, 255, 1)"),e},hsva:function(){return this.valueSet?Object(l.e)(this.computedValue):this.currentHsva||Object(l.e)(this.computedValue)},rgba:function(){return this.valueSet?Object(l.f)(this.computedValue):this.currentRgba},hex:function(){return this.valueSet?Object(l.g)(this.computedValue,"hex",this.opacity):this.currentHex},computedBgColor:function(){return this.currentBgColor||Object(l.b)(this.hsva.h)},computedTabIndex:function(){return void 0!==this.innerTabIndex?this.innerTabIndex:this.focused?0:-1}},data:function(){return{currentValue:void 0,currentBgColor:void 0,isFirstRender:!0,currentHsva:void 0,currentRgba:void 0,currentHex:void 0,focused:!1}},mounted:function(){this.setAlphaSliderBackground(this.computedBgColor),this.$el&&(this.draggable=this.$refs.draggable,this.gradientWrapper=this.draggable&&this.draggable.element),this.alphaSlider=this.v3?this.alphaSliderRef:this.$refs.alphaSlider,this.isFirstRender&&(this.isFirstRender=!1)},destroyed:function(){Object(u.c)(this.guid)},updated:function(){this.setAlphaSliderBackground(this.computedBgColor)},setup:j?function(){return{v3:!!j}}:void 0,render:function(e){var t=this,n=this,i=P||e,o=Object(r.classNames)("k-colorgradient",{"k-disabled":this.$props.disabled}),u=Object(g.provideLocalizationService)(this).toLanguageString(b.j,b.x[b.j]),d=function(){var e={};if(!this.isFirstRender){var t=this.getGradientRectMetrics(),n=(1-this.hsva.v)*t.height,o=this.hsva.s*t.width;e.top=n+"px",e.left=o+"px"}return i("div",{class:"k-hsv-draghandle k-draghandle",role:"slider",attrs:this.v3?void 0:{role:"slider","aria-label":u+""+(this.value||"none"),"aria-valuenow":Math.round(100*this.hsva.s),"aria-valuetext":"\n saturation: "+Math.round(100*this.hsva.s)+"%,\n value: "+Math.round(100*this.hsva.v)+"%",tabindex:this.computedTabIndex},"aria-label":u+""+(this.value||"none"),"aria-valuenow":Math.round(100*this.hsva.s),"aria-valuetext":"\n saturation: "+Math.round(100*this.hsva.s)+"%,\n value: "+Math.round(100*this.hsva.v)+"%",tabindex:this.computedTabIndex,onKeydown:this.dragKeyDown,on:this.v3?void 0:{keydown:this.dragKeyDown},style:e,ref:Object(r.setRef)(this,"draghandle")})};return i("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:-1!==this.$props.tabIndex?"textbox":void 0,"aria-disabled":this.$props.disabled,tabindex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},class:o,role:-1!==this.$props.tabIndex?"textbox":void 0,"aria-disabled":this.$props.disabled,tabindex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDownHandler},onBlur:this.onBlur,onKeydown:this.onKeyDownHandler},[i("div",{class:"k-colorgradient-canvas k-hstack"},[i("div",{class:"k-hsv-rectangle",style:{background:this.computedBgColor}},[i(r.Draggable,{onDrag:this.onDrag,on:this.v3?void 0:{drag:this.onDrag,release:this.onRelease},onRelease:this.onRelease,ref:"draggable"},this.v3?function(){return[i("div",{class:"k-hsv-gradient",style:{touchAction:"none"},tabindex:-1,attrs:t.v3?void 0:{tabindex:-1},onClick:t.onGradientWrapperClick,on:t.v3?void 0:{click:t.onGradientWrapperClick}},[d.call(t)])]}:[i("div",{class:"k-hsv-gradient",style:{touchAction:"none"},tabindex:-1,attrs:t.v3?void 0:{tabindex:-1},onClick:t.onGradientWrapperClick,on:t.v3?void 0:{click:t.onGradientWrapperClick}},[d.call(t)])]),this.backgroundColor&&!this.isFirstRender&&i(B,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,attrs:this.v3?void 0:{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.hsva,backgroundColor:this.backgroundColor},hsva:this.hsva,backgroundColor:this.backgroundColor})]),i("div",{class:"k-hsv-controls k-hstack"},[i(s.Slider,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,value:this.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,disabled:this.$props.disabled},value:this.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,onChange:this.onHueSliderChange,on:this.v3?void 0:{change:this.onHueSliderChange},class:"k-hue-slider k-colorgradient-slider",disabled:this.$props.disabled}),this.$props.opacity&&i(s.Slider,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,value:Object(a.b)(this.hsva.a)?100*this.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,disabled:this.$props.disabled},value:Object(a.b)(this.hsva.a)?100*this.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,onChange:this.onAlphaSliderChange,on:this.v3?void 0:{change:this.onAlphaSliderChange},class:"k-alpha-slider k-colorgradient-slider",disabled:this.$props.disabled,ref:this.v3?function(e){n.alphaSliderRef=e}:"alphaSlider"})])]),i(x,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,rgba:this.rgba,hex:this.hex,opacity:this.$props.opacity,disabled:this.$props.disabled},rgba:this.rgba,onRgbachange:this.onRgbaChange,on:this.v3?void 0:{rgbachange:this.onRgbaChange,hexchange:this.onHexChange},hex:this.hex,onHexchange:this.onHexChange,opacity:this.$props.opacity,disabled:this.$props.disabled,ref:"colorInput"}),this.backgroundColor&&i(T,{bgColor:Object(l.f)(this.backgroundColor),attrs:this.v3?void 0:{bgColor:Object(l.f)(this.backgroundColor),rgba:this.rgba},rgba:this.rgba})])},methods:{onKeyDownHandler:function(e){var t=this.$el;void 0===this.innerTabIndex&&(this.focused=Object(r.focusContainer)(e,t)),this.$emit("keydown",e)},onHexChange:function(e,t,n){var i=Object(l.f)(t),r=Object(l.e)(t);this.currentHsva=r,this.currentBgColor=Object(l.b)(r.h),this.currentRgba=i,this.currentHex=e,this.dispatchChangeEvent(t,n.event,e,t)},onRgbaChange:function(e,t){var n=Object(l.c)(e),i=Object(l.g)(n,"hex",this.opacity),r=Object(l.e)(n);this.currentHsva=r,this.currentBgColor=Object(l.b)(r.h),this.currentRgba=e,this.currentHex=i,this.dispatchChangeEvent(n,t.event,i,n)},onAlphaSliderChange:function(e){this.handleHsvaChange(Object.assign({},this.hsva,{a:e.value/100}),e.event)},onHueSliderChange:function(e){this.handleHsvaChange(Object.assign({},this.hsva,{h:e.value}),e.event)},onDrag:function(e){this.gradientWrapper.classList.add("k-dragging"),this.changePosition(e)},onRelease:function(){this.gradientWrapper.classList.remove("k-dragging")},onGradientWrapperClick:function(e){this.firstFocusable=Object(r.getRef)(this,"draghandle"),this.firstFocusable.focus(),this.changePosition(e)},move:function(e,t,n){var i=this.hsva;i[t]+=n*(e.shiftKey?.01:.05),i[t]<0&&(i[t]=0),i[t]>1&&(i[t]=1),e.preventDefault(),this.handleHsvaChange(i,e)},dragKeyDown:function(e){switch(e.keyCode){case r.Keys.left:this.move(e,"s",-1);break;case r.Keys.right:this.move(e,"s",1);break;case r.Keys.up:this.move(e,"v",1);break;case r.Keys.down:this.move(e,"v",-1);break;case r.Keys.enter:case r.Keys.esc:}},changePosition:function(e){var t=this.getGradientRectMetrics(),n=e.clientX-t.left,i=e.clientY-t.top,r=Object(a.a)(n,0,t.width),o=Object(a.a)(i,0,t.height),s=Object.assign({},this.hsva,{s:r/t.width,v:1-o/t.height});this.handleHsvaChange(s,e,e.event)},handleHsvaChange:function(e,t){var n=Object(l.a)(e),i=Object(l.g)(n,"hex",this.opacity),r=Object(l.g)(n,"rgba");this.currentHsva=e,this.currentBgColor=Object(l.b)(e.h),this.currentRgba=Object(l.f)(n),this.currentHex=i,this.dispatchChangeEvent(n,t,i,r)},dispatchChangeEvent:function(e,t,n,i){this.currentValue=e,this.$emit("changemodel",n),this.$emit("update:modelRgbaValue",i),this.$emit("update:modelValue",n),this.$emit("change",{event:t,target:this,value:n,rgbaValue:i})},onFocus:function(e){this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.$emit("blur",{event:e,target:this})},setAlphaSliderBackground:function(e){this.$props.opacity&&this.alphaSlider&&this.alphaSlider.sliderTrack&&(this.alphaSlider.sliderTrack.style.background="linear-gradient(to top, transparent, "+e+")")},getGradientRectMetrics:function(){var e=this.gradientWrapper.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}},focus:function(){var e=this;this.focused=!0,setTimeout((function(){Object(r.focusFirstFocusableChild)(e.$el)}),1)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(1),r=n(17),o=n(0),s=function(e,t){var n=this,i=[];return t.forEach((function(t){n.v3&&t.children&&t.children.length&&(i=s.call(n,e,t.children)),(t&&t.tag&&-1!==t.tag.toLowerCase().indexOf("tab")||t.type&&t.type.name&&-1!==t.type.name.toLowerCase().indexOf("kendotabstriptab"))&&i.push(t)})),i},a=i,l=a.h,u=a.version&&"3"===a.version[0],d=(a.ref,a.inject,{name:"KendoTabStripContent",props:{showAll:Boolean,animation:Boolean,tabs:Array,selected:Number,hasTabs:Boolean},created:function(){this.contentId=Object(o.guid)()},setup:u?function(){return{v3:!!u}}:void 0,data:function(){return{midAnimation:!1}},computed:{animationClass:function(){var e=this;return this.tabs.map((function(t,n){var i=n===e.$props.selected;return{"k-fade-appear":e.animation&&!i,"k-fade-enter-active":e.animation&&i}}))}},render:function(e){var t=l||e,n=this.$props,i=n.tabs,a=n.selected,u=(n.showAll,n.hasTabs),d=i&&"number"==typeof a&&i[a],c=Object(o.getDefaultSlots)(this),p=u?i:s.call(this,[],c||[]),h=a<p.length&&a>-1,f=Object(o.classNames)({"k-content":h},{"k-active":h},d&&d.contentClassName),v=function(e,n){var i=this,s=n===this.$props.selected,a={position:"initial",height:s?void 0:"0px",width:s?void 0:"0px"},l=u?o.getTemplate.call(this,{h:t,template:e.content,defaultRendering:null}):e;return t(r.a,{appear:!!this.v3||s,attrs:this.v3?void 0:{appear:!!this.v3||s,enter:this.$props.animation,exit:this.$props.keepTabsMounted},key:n,class:this.animationClass[n],enter:this.$props.animation,exit:this.$props.keepTabsMounted,style:a},this.v3?function(){return[t("div",{role:"tabpanel",attrs:i.v3?void 0:{role:"tabpanel","aria-expanded":!0,id:String(i.contentId+n)},"aria-expanded":!0,id:String(i.contentId+n),key:n},[l])]}:[t("div",{role:"tabpanel",attrs:i.v3?void 0:{role:"tabpanel","aria-expanded":!0,id:String(i.contentId+n)},"aria-expanded":!0,id:String(i.contentId+n),key:n},[l])])};return t("div",{class:f,style:this.$props.style},[function(){return p.map((function(e,t){return v.call(this,e,t)}),this)}.call(this)])}}),c=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h}));var i,r=n(1),o=n(0),s=n(4),a=n(30),l=((i={})["stepper.optionalText"]="(Optional)",i),u=r,d=u.h,c=u.version&&"3"===u.version[0],p=u.inject,h={name:"KendoStep",props:{current:Boolean,disabled:Boolean,icon:String,index:Number,isValid:Boolean,focused:Boolean,label:String,optional:Boolean,tabIndex:{type:Number,default:0},text:String,animationDuration:[Boolean,Number],isVertical:Boolean,item:[String,Object,Boolean,Function],linear:Boolean,mode:String,numOfSteps:Number,value:Number,successIcon:String,errorIcon:String},inject:{kendoLocalizationService:{default:null}},computed:{itemClassNames:function(){var e=this.$props,t=e.current,n=e.disabled,i=e.focused,r=e.index,o=e.isValid,s=e.optional;return{"k-step":!0,"k-step-first":0===r,"k-step-last":this.numOfSteps&&r===this.numOfSteps-1,"k-step-done":r<this.value,"k-step-current":t,"k-step-optional":s,"k-step-disabled":n,"k-step-focus":i,"k-step-error":void 0!==o&&!o,"k-step-success":o}},itemStyles:function(){var e=this.$props.index,t=!this.linear||e===this.value-1||e===this.value||e===this.value+1;return{maxWidth:this.isVertical?void 0:"calc(100% / "+this.numOfSteps+")",pointerEvents:t?void 0:"none"}}},watch:{focused:function(e){this.aElement=this.$refs.aElement,this.aElement&&e&&this.aElement.focus()}},setup:c?function(){return{v3:!!c,kendoLocalizationService:p("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=d||e,i=Object(o.getDefaultSlots)(this),r=this.$props,u=r.current,c=r.disabled,p=r.focused,h=r.icon,f=r.index,v=r.isValid,m=r.label,g=r.optional,b=r.tabIndex,y=r.text,k=r.animationDuration,w=r.item,S=r.linear,C=r.mode,x=r.value,O=r.successIcon,$=r.errorIcon,I=!S||f===x-1||f===x||f===x+1,T="labels"===C||Boolean(h)&&Boolean(m),D=Object(s.provideLocalizationService)(this),V=(t="stepper.optionalText",D.toLanguageString(t,l[t])),M="number"==typeof k?k:!1!==k?a.a:a.b,R=n("span",{class:"k-step-indicator-icon "+(v?O?""+O:"k-icon k-i-check":$?""+$:"k-icon k-i-warning"),"aria-hidden":"true",attrs:this.v3?void 0:{"aria-hidden":"true"}});return n("li",{class:this.itemClassNames,style:this.itemStyles},[n("a",{ref:"aElement",class:"k-step-link",title:m||void 0,attrs:this.v3?void 0:{title:m||void 0,tabindex:p?b:-1,"aria-current":u?"step":void 0,"aria-disabled":c||!I||void 0,"aria-invalid":void 0!==v&&!v||void 0},onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,focusin:this.handleFocus},onFocusin:this.handleFocus,tabindex:p?b:-1,"aria-current":u?"step":void 0,"aria-disabled":c||!I||void 0,"aria-invalid":void 0!==v&&!v||void 0},[w?i:[function(){return"labels"!==C?n("span",{class:"k-step-indicator","aria-hidden":!0,attrs:this.v3?void 0:{"aria-hidden":!0},style:{transitionDuration:M+"ms"}},[h?T||void 0===v?n("span",{class:"k-step-indicator-icon k-icon "+h}):R:void 0!==v?R:n("span",{class:"k-step-indicator-text"},[y||f+1])]):null}.call(this),function(){return n("span",{class:"k-step-label"},[m&&n("span",{class:"k-step-text"},[m]),T&&void 0!==v&&R,g&&n("span",{class:"k-step-label-optional"},[V])])}.call(this)]])])},methods:{focus:function(){this.$el&&Object(o.focusFirstFocusableChild)(this.$el)},handleClick:function(e){this.disabled||this.$emit("change",{event:e,value:this.index,component:this})},handleFocus:function(e){this.disabled||this.$emit("focus",e)}}},f=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v}));var i=n(1),r=n(0),o=n(17),s=function(){return(s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=i,l=a.h,u=a.version&&"3"===a.version[0],d={name:"KendoPanelBarGroup",props:{item:Object,items:Array,animation:Boolean,expanded:Boolean,disabled:Boolean,keepItemsMounted:Boolean,uniquePrivateKey:[String,Number],content:Object},data:function(){return{show:this.$props.expanded}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=l||e,n=this.$props,i=n.item,a=n.items,u=n.uniquePrivateKey,d=n.disabled,c=n.expanded,p=n.animation,h=n.keepItemsMounted,f=r.getTemplate.call(this,{h:t,template:this.$props.content,defaultRendering:null,additionalProps:s(s({},this.$props),{show:this.show})}),v=!d&&c,g=v||h?a?t("ul",{role:"group",attrs:this.v3?void 0:{role:"group"},class:"k-panelbar-group k-panel k-group",style:{display:h?this.$data.show?"block":"none":"block"}},[a.map((function(e){return t(m,s(s({props:this.v3?void 0:s(s({},e),{item:i})},e),{item:i}))}),this)]):this.$props.content?t("div",{class:"k-panelbar-content k-content"},[f]):null:null;return void 0!==p&&!p||d?g:t(o.b,{appear:v,attrs:this.v3?void 0:{appear:v,transitionEnterDuration:200,transitionExitDuration:200,unmountOnExit:!h},transitionEnterDuration:200,transitionExitDuration:200,key:u+"_animation",style:{display:"block"},unmountOnExit:!h,onEntering:this.handleEntering,on:this.v3?void 0:{entering:this.handleEntering,exited:this.handleExited},onExited:this.handleExited},this.v3?function(){return[g]}:[g])},methods:{handleEntering:function(){this.keepItemsMounted&&(this.show=!0)},handleExited:function(){this.keepItemsMounted&&(this.show=!1)}}},c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},p=i,h=p.h,f=p.version&&"3"===p.version[0],v={name:"KendoPanelBarItem",props:{item:Object,items:Array,animation:Boolean,expanded:Boolean,disabled:Boolean,selected:Boolean,level:Number,title:{type:[String,Object,Function],default:function(){return"Untitled"}},id:[String,Number],focused:Boolean,keepItemsMounted:Boolean,uniquePrivateKey:[String,Number],parentUniquePrivateKey:Array,parentExpanded:Boolean,headerClassName:String,iconClass:String,imageUrl:String,icon:String,content:Object,header:Object},inject:{dispatchItemSelect:{default:null}},setup:f?function(){return{v3:!!f}}:void 0,render:function(e){var t,n=h||e,i=this.$props,o=i.id,s=i.item,a=i.icon,l=i.items,u=i.content,p=i.title,f=i.uniquePrivateKey,v=i.disabled,m=i.selected,g=i.focused,b=i.expanded,y=i.className,k=i.level,w=i.headerClassName,S=i.animation,C=i.keepItemsMounted,x=!!l||u,O=Object(r.classNames)("k-item",{"k-panelbar-header":0===k,"k-panelbar-item":0!==k,"k-expanded":b&&x},"k-level-"+k,y),$=Object(r.classNames)("k-link",{"k-selected":!v&&m,"k-focus":g,"k-disabled":v},w),I=Object(r.classNames)("k-panelbar-toggle","k-icon",((t={})["k-i-arrow-chevron-up"]=b&&x,t["k-panelbar-collapse"]=b&&x,t["k-i-arrow-chevron-down"]=!b&&x,t["k-panelbar-expand"]=!b&&x,t)),T=function(){if(this.imageUrl)return n("img",{role:"presentation",attrs:this.v3?void 0:{role:"presentation",src:this.imageUrl},class:"k-panelbar-item-icon k-image",src:this.imageUrl});if(a){var e=Object(r.classNames)("k-panelbar-item-icon","k-icon","k-i-"+a);return n("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:e})}return this.iconClass?n("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:"k-panelbar-item-icon "+this.iconClass}):null}.call(this),D=v||!l&&!u?null:n("span",{class:I}),V=l||u?n(d,{items:l,attrs:this.v3?void 0:{items:l,item:s,content:u,uniquePrivateKey:f,disabled:v,expanded:b,animation:S,keepItemsMounted:C},item:s,content:u,uniquePrivateKey:f,disabled:v,expanded:b,animation:S,keepItemsMounted:C}):null,M=r.getTemplate.call(this,{h:n,template:this.$props.header,defaultRendering:null,additionalProps:c({},this.$props)});return n("li",{id:o,attrs:this.v3?void 0:{id:o,role:"treeitem","aria-disabled":v,"aria-hidden":!v&&!b,"aria-selected":!v&&m,"aria-expanded":!v&&b&&x},class:O,role:"treeitem","aria-disabled":v,"aria-hidden":!v&&!b,"aria-selected":!v&&m,"aria-expanded":!v&&b&&x},[n("span",{class:$,onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick}},[T,this.$props.header?M:n("span",{class:"k-panelbar-item-text"},[p]),D]),V])},methods:{handleItemClick:function(){var e=this.$props,t=e.disabled,n=e.id;t||this.dispatchItemSelect({uniquePrivateKey:this.$props.uniquePrivateKey,id:n,target:this})},childFactory:function(e){return e}}},m=v},function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r})),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(i||(i={}));var r=function(e,t){switch(t.type){case i.add:break;case i.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case i.reorder:break;default:return e}}},function(e,t,n){"use strict";var i=n(0);t.a=function(e,t,n,r){if(n)return e;switch(t){case i.Keys.enter:case i.Keys.space:case i.Keys.esc:return-1;case i.Keys.up:case i.Keys.left:return Math.max(0,e-1);case i.Keys.down:case i.Keys.right:return Math.min(r-1,e+1);default:return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v}));var i=n(1),r=n(0),o=n(29),s=n(27),a=n(52),l=n(31),u=n(11),d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=i,p=c.h,h=c.version&&"3"===c.version[0],f=c.ref,v={name:"KendoVueChipList",props:{id:String,tabIndex:Number,dataItems:Array,defaultDataItems:{type:Array,default:function(){return[]}},value:[Object,Array,String,Number],defaultValue:{type:[Object,Array,String,Number],default:function(){return null}},size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","outline","solid"].includes(e)}},selection:{type:String,default:function(){return"none"}},textField:{type:String,default:function(){return"text"}},valueField:{type:String,default:function(){return"value"}},disabled:{type:Boolean,default:!1},dir:{type:String,default:function(){return"ltr"}},chip:[String,Function,Object],ariaLabelledBy:String,ariaDescribedBy:String},provide:function(){return{kendoSelection:this.currentValue,kendoFocused:this.currentFocused,kendoDataItems:this.computedDataItems,handleDispatchDataItems:this.handleDispatchDataItems,handleDispatchSelection:this.handleDispatchSelection,handleDispatchFocus:this.handleDispatchFocus}},created:function(){Object(r.validatePackage)(u.a),this.currentDataItems=this.$props.dataItems||this.$props.defaultDataItems,this.currentValue.value=this.$props.value||this.$props.defaultValue},data:function(){return{currentDataItems:[],currentDir:"ltr",isRtl:!1,currentFocused:{value:!1},currentValue:{value:null}}},mounted:function(){this.chipList=this.v3?this.chipListRef:this.$refs.chipList,this.currentDir=void 0!==this.$props.dir?this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1,this.isRtl="rtl"===this.currentDir},computed:{computedDataItems:function(){return this.$props.dataItems||this.currentDataItems},computedValue:function(){return this.$props.value||this.currentValue.value},items:function(){return this.computedDataItems.reduce(this.itemsReducer,[])}},methods:{handleDispatchSelection:function(e){var t=Object(o.b)(this.computedValue,d(d({},e),{selection:this.$props.selection,state:this.computedValue}));this.handleChange(t,e.event),this.currentValue.value=t},handleDispatchFocus:function(e){var t=Object(s.b)(e.payload,d(d({},e),{items:this.items}));this.currentFocused.value=t},handleDispatchDataItems:function(e){var t=Object(a.b)(this.computedDataItems,d(d({},e),{state:this.computedDataItems,valueField:this.$props.valueField}));this.handleDataChange(t,e.event),this.currentDataItems=t},handleChange:function(e,t){this.$el&&this.$emit("change",{value:e,target:this.$el,event:t})},handleDataChange:function(e,t){this.$el&&this.$emit("datachange",{value:e,target:this.$el,event:t})},itemsReducer:function(e,t){return e.push(t[this.$props.valueField||this.$props.valueField]),e}},setup:h?function(){return{v3:!!h,chipListRef:f(null)}}:void 0,render:function(e){var t,n=p||e,i=this.$props.size;return n("div",{ref:Object(r.setRef)(this,"chipList"),role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:this.$props.id,dir:this.currentDir,tabindex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},id:this.$props.id,dir:this.currentDir,style:this.$props.style,tabindex:Object(r.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:Object(r.classNames)("k-chip-list",(t={},t["k-chip-list-"+(r.kendoThemeMaps.sizeMap[i]||i)]=i,t["k-rtl"]="rtl"===this.currentDir,t["k-selection-single"]="single"===this.$props.selection,t["k-selection-multiple"]="multiple"===this.$props.selection,t["k-disabled"]=this.$props.disabled,t)),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},[this.computedDataItems.map((function(e){var t=r.templateRendering.call(this,this.$props.chip,r.getListeners.call(this)),i=n(l.a,{role:"option",attrs:this.v3?void 0:{role:"option",dataItem:e,text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode},dataItem:e,key:e[this.$props.valueField],text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode});return r.getTemplate.call(this,{h:n,template:t,defaultRendering:i,additionalProps:{dataItem:e,key:e[this.$props.valueField],text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size}})}),this)])}},m=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));var i=n(1),r=n(22),o=n(0),s=n(28),a=n(53),l=n(14),u=n(19),d=n(11),c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},p=i,h=p.h,f=p.version&&"3"===p.version[0],v=p.ref,m={name:"KendoSplitButton",emits:{focus:null,blur:null,buttonclick:null,itemclick:null,open:null,close:null},props:{accessKey:String,text:String,items:{type:Array,default:function(){return[]}},textField:String,tabIndex:Number,disabled:Boolean,icon:String,size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","dark","error","info","inverse","inverse","light","primary","secondary","success","tertiary","warning"].includes(e)}},opened:{type:Boolean,default:void 0},iconClass:String,imageUrl:String,popupSettings:Object,itemRender:[String,Function,Object],item:[String,Function,Object],look:String,className:String,buttonClass:String,dir:String},data:function(){return{focused:!1,focusedIndex:-1,currentOpened:!1}},created:function(){this._blurTimeout=null,this._anchor=Object(o.guid)(),this.mainButton=null,this.guid=Object(o.guid)(),this.buttonsData=[],Object(o.validatePackage)(d.a)},mounted:function(){this.mainButton=this.$refs[this._anchor],(void 0===this.$props.dir&&this.isRtl()||this.computedOpened)&&this.$forceUpdate()},updated:function(){this.focused&&this.element()&&(this.mainButton=this.$refs[this._anchor],this.mainButton.focus())},computed:{computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},wrapperClass:function(){return{"k-split-button":!0,"k-button-group":!0,"k-focus":this.focused}}},setup:f?function(){return{v3:!!f,kendoAnchorRef:v(null)}}:void 0,render:function(e){var t=this,n=this,i=h||e;this.buttonsData=this.$props.items;var a=this.isRtl(),d=a?"rtl":void 0,p=this.$props,f=p.tabIndex,v=p.disabled,m=Object(o.getDefaultSlots)(this),g=function(){var e=this.$props,t=e.item,n=e.itemRender,r=e.textField;return this.buttonsData.length>0?this.buttonsData.map((function(e,a){var l="string"!=typeof e?c(c({},e),{render:o.templateRendering.call(this,e.render,o.getListeners.call(this))}):e;return i(s.a,{class:"k-menu-item",dataItem:l,attrs:this.v3?void 0:{dataItem:l,textField:r,focused:this.focusedIndex===a,render:o.templateRendering.call(this,n,o.getListeners.call(this)),item:t,index:a,id:this.guid+"-"+a},textField:r,focused:this.focusedIndex===a,onClick:this.onItemClick,on:this.v3?void 0:{click:this.onItemClick,down:this.onItemDown},onDown:this.onItemDown,render:o.templateRendering.call(this,n,o.getListeners.call(this)),item:t,key:a,index:a,id:this.guid+"-"+a})}),this):null};return i("div",{class:this.wrapperClass,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown,focusin:this.onFocus,focusout:this.onBlur},onFocusin:this.onFocus,onFocusout:this.onBlur,dir:d,attrs:this.v3?void 0:{dir:d}},[i(r.a,{size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,disabled:v||void 0,tabIndex:f,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,dir:d,type:"button","aria-disabled":v,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,onClick:function(e){return n.onItemClick(e,-1)},on:this.v3?void 0:{click:function(e){return n.onItemClick(e,-1)}},disabled:v||void 0,tabIndex:f,accessKey:this.$props.accessKey,class:this.$props.buttonClass,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,dir:d,ref:this._anchor,type:"button","aria-disabled":v,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" splitbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},this.v3?function(){return[t.$props.text,m]}:[t.$props.text,m]),i(r.a,{class:"k-split-button-arrow",size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,icon:"arrow-s",disabled:v||void 0,tabIndex:-1,look:this.$props.look,dir:d,"aria-label":"menu toggling button"},rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,icon:"arrow-s",disabled:v||void 0,tabIndex:-1,look:this.$props.look,onClick:this.onSplitPartClick,on:this.v3?void 0:{click:this.onSplitPartClick,mousedown:this.onDownSplitPart,pointerdown:this.onDownSplitPart},onMousedown:this.onDownSplitPart,onPointerdown:this.onDownSplitPart,dir:d,"aria-label":"menu toggling button"}),function(){var e=this,t=this.$props,n=t.popupSettings,r=void 0===n?{}:n,s=t.size;return i(l.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:r.animate,popupClass:Object(o.classNames)("k-menu-popup",r.popupClass),anchorAlign:r.anchorAlign||Object(u.a)(a),popupAlign:r.popupAlign||Object(u.b)(a)},show:this.computedOpened,animate:r.animate,popupClass:Object(o.classNames)("k-menu-popup",r.popupClass),anchorAlign:r.anchorAlign||Object(u.a)(a),popupAlign:r.popupAlign||Object(u.b)(a),style:a?{direction:"rtl"}:void 0},this.v3?function(){return[i("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[s]||s),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[g.call(e)])]}:[i("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[s]||s),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[g.call(e)])])}.call(this)])},methods:{element:function(){return this.mainButton},onKeyDown:function(e){if(e.altKey)this.computedOpened||e.keyCode!==o.Keys.down?this.computedOpened&&e.keyCode===o.Keys.up&&(this.dispatchPopupEvent(e,!1),this.focusedIndex=-1,this.currentOpened=!1):(this.dispatchPopupEvent(e,!0),this.focusedIndex=0,this.currentOpened=!0);else{var t=void 0;if(e.keyCode===o.Keys.enter||e.keyCode===o.Keys.space?(e.preventDefault(),this.dispatchClickEvent(e,this.focusedIndex),void 0!==this.focusedIndex&&this.focusedIndex>=0&&(t={focusedIndex:this.computedOpened?-1:0,currentOpened:!this.computedOpened},this.dispatchPopupEvent(e,t.currentOpened))):this.computedOpened&&e.keyCode===o.Keys.esc&&(t={focusedIndex:-1,currentOpened:!1},this.dispatchPopupEvent(e,t.currentOpened)),this.computedOpened){var n=Object(a.a)(this.focusedIndex,e.keyCode,e.altKey,this.buttonsData.length);n!==this.focusedIndex&&((t=t||{}).focusedIndex=n);var i=e.keyCode===o.Keys.up||e.keyCode===o.Keys.down||e.keyCode===o.Keys.left||e.keyCode===o.Keys.right;!e.altKey&&i&&e.preventDefault()}t&&(this.focusedIndex=t.focusedIndex,this.focused=t.focused,void 0!==t.currentOpened&&(this.currentOpened=t.currentOpened))}},onFocus:function(e){this.focused||(this.$emit("focus",e,this,void 0),this.focused=!0),this.focusedIndex=-1,clearTimeout(this._blurTimeout)},onItemClick:function(e,t){var n=this.computedOpened;n&&(this.focusedIndex=0,this.currentOpened=!1),this.dispatchClickEvent(e,t),n&&this.dispatchPopupEvent(e,!1)},onBlur:function(e){clearTimeout(this._blurTimeout),this.createBlurTimeout(e)},createBlurTimeout:function(e){var t=this,n=this;this._blurTimeout=setTimeout((function(){o.canUseDOM&&document.activeElement!==n.mainButton&&(n.focused=!1,n.focusedIndex=-1,n.$emit("blur",e,t,void 0),n.computedOpened&&(n.currentOpened=!1,n.dispatchPopupEvent(e,!1)))}),200)},dispatchClickEvent:function(e,t){this.isItemDisabled(t)||(-1===t?this.$emit("buttonclick",e,this,void 0):this.$emit("itemclick",{event:e,component:this,item:this.buttonsData[t],itemIndex:t}))},onSplitPartClick:function(e){if(this.buttonsData.length){var t=!this.computedOpened;this.dispatchPopupEvent(e,t),this.focusedIndex=t?0:-1,this.currentOpened=t,this.focused=!0}},onDownSplitPart:function(e){e.preventDefault(),this.element()&&document.activeElement!==this.element()&&this.element().focus()},onItemDown:function(e){document.activeElement===this.element()&&e.preventDefault()},dispatchPopupEvent:function(e,t){this.$emit(t?"open":"close",e,this,void 0)},isItemDisabled:function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.$props.disabled},isRtl:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:!!this.$el&&"rtl"===getComputedStyle(this.$el).direction}}},g=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));var i=n(1),r=n(22),o=n(0),s=n(53),a=n(28),l=n(14),u=n(19),d=n(11),c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},p=i,h=p.h,f=p.version&&"3"===p.version[0],v=p.ref,m={name:"KendoDropDownButton",emits:{focus:null,blur:null,itemclick:null,open:null,close:null},props:{accessKey:String,primary:Boolean,items:{type:Array,default:function(){return[]}},text:String,textField:String,tabIndex:Number,disabled:Boolean,icon:String,iconClass:String,imageUrl:String,popupSettings:Object,itemRender:[String,Object,Function],item:Function,size:{type:String,default:"medium"},shape:{type:String,default:"rectangle",validator:function(e){return[null,"rectangle","square"].includes(e)}},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","dark","error","info","inverse","inverse","light","primary","secondary","success","tertiary","warning"].includes(e)}},opened:{type:Boolean,default:void 0},look:{type:String,validator:function(e){return["default","flat","outline"].includes(e)}},buttonClass:String,dir:String},created:function(){this._blurTimeout=null,this._anchor=Object(o.guid)(),this.wrapper=null,this.mainButton=null,this.guid=Object(o.guid)(),this.buttonsData=[],Object(o.validatePackage)(d.a)},mounted:function(){this.mainButton=this.$refs[this._anchor],(void 0===this.$props.dir&&this.isRtl()||this.computedOpened)&&this.$forceUpdate()},updated:function(){this.focused&&this.element()&&(this.mainButton=this.$refs[this._anchor],this.mainButton.focus())},data:function(){return{currentOpened:!1,focused:!1,focusedIndex:-1}},computed:{computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},wrapperClass:function(){return{"k-dropdown-button":!0,"k-focus":this.focused}}},setup:f?function(){return{v3:!!f,kendoAnchorRef:v(null)}}:void 0,render:function(e){var t=this,n=h||e,i=this.isRtl(),s=i?"rtl":void 0,d=this.$props,p=d.tabIndex,f=d.disabled,v=Object(o.getDefaultSlots)(this);this.buttonsData=this.$props.items;var m=function(){var e=this.$props,t=e.item,i=e.itemRender,r=e.textField;return this.buttonsData.length>0?this.buttonsData.map((function(e,s){var l="string"!=typeof e?c(c({},e),{render:o.templateRendering.call(this,e.render,o.getListeners.call(this))}):e;return n(a.a,{class:"k-menu-item",dataItem:l,attrs:this.v3?void 0:{dataItem:l,textField:r,focused:this.focusedIndex===s,render:o.templateRendering.call(this,i,o.getListeners.call(this)),item:t,index:s,id:this.guid+"-"+s},textField:r,focused:this.focusedIndex===s,onClick:this.onItemClick,on:this.v3?void 0:{click:this.onItemClick,down:this.onItemDown},onDown:this.onItemDown,render:o.templateRendering.call(this,i,o.getListeners.call(this)),item:t,index:s,key:s,id:this.guid+"-"+s})}),this):null};return n("div",{class:this.wrapperClass,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown,focusin:this.onFocus,focusout:this.onBlur},onFocusin:this.onFocus,onFocusout:this.onBlur,dir:s,attrs:this.v3?void 0:{dir:s}},[n(r.a,{size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,shape:this.$props.shape,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,disabled:f||void 0,tabIndex:p,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,primary:this.$props.primary,dir:s,type:"button","aria-disabled":f,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},shape:this.$props.shape,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,onClick:this.onClickMainButton,on:this.v3?void 0:{click:this.onClickMainButton,mousedown:this.mouseDown},onMousedown:this.mouseDown,disabled:f||void 0,tabIndex:p,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,class:this.$props.buttonClass,imageUrl:this.$props.imageUrl,look:this.$props.look,primary:this.$props.primary,dir:s,ref:this._anchor,type:"button","aria-disabled":f,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":this.$props.text+" dropdownbutton","aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?this.guid+"-"+this.focusedIndex:void 0},this.v3?function(){return[t.$props.text,v]}:[t.$props.text,v]),function(){var e=this,t=this.$props,r=t.popupSettings,s=void 0===r?{}:r,a=t.size;return n(l.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:s.animate,popupClass:Object(o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||Object(u.a)(i),popupAlign:s.popupAlign||Object(u.b)(i)},show:this.computedOpened,animate:s.animate,popupClass:Object(o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||Object(u.a)(i),popupAlign:s.popupAlign||Object(u.b)(i),style:i?{direction:"rtl"}:void 0},this.v3?function(){return[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[m.call(e)])]}:[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-"+(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[m.call(e)])])}.call(this)])},methods:{element:function(){return this.mainButton},onKeyDown:function(e){if(e.altKey)this.computedOpened||e.keyCode!==o.Keys.down?this.computedOpened&&e.keyCode===o.Keys.up&&(this.dispatchPopupEvent(e,!1),this.focusedIndex=-1,this.currentOpened=!1):(this.dispatchPopupEvent(e,!0),this.focusedIndex=0,this.currentOpened=!0);else if(e.keyCode===o.Keys.enter||e.keyCode===o.Keys.space?(void 0!==this.focusedIndex&&this.focusedIndex>=0&&this.dispatchClickEvent(e,this.focusedIndex),e.preventDefault(),this.focusedIndex=this.computedOpened?-1:0,this.currentOpened=!this.computedOpened,this.dispatchPopupEvent(e,this.currentOpened)):this.computedOpened&&e.keyCode===o.Keys.esc&&(this.focusedIndex=-1,this.currentOpened=!1,this.dispatchPopupEvent(e,this.currentOpened)),this.computedOpened){var t=Object(s.a)(this.focusedIndex,e.keyCode,e.altKey,this.buttonsData.length);this.focusedIndex=t;var n=e.keyCode===o.Keys.up||e.keyCode===o.Keys.down||e.keyCode===o.Keys.left||e.keyCode===o.Keys.right;!e.altKey&&n&&e.preventDefault()}},onFocus:function(e){this.focused||(this.focused=!0,this.$emit("focus",e,this,void 0)),this.focusedIndex=this.computedOpened?0:-1,clearTimeout(this._blurTimeout)},onBlur:function(e){clearTimeout(this._blurTimeout),this.createBlurTimeout(e)},createBlurTimeout:function(e){var t=this;this._blurTimeout=setTimeout((function(){o.canUseDOM&&document.activeElement!==t.$el&&(t.focused=!1,t.focusedIndex=-1,t.$emit("blur",e,t,void 0),t.computedOpened&&(t.currentOpened=!1,t.dispatchPopupEvent(e,!1)))}),200)},onItemClick:function(e,t){this.focusedIndex=-1,this.currentOpened=!1,this.dispatchClickEvent(e,t),this.dispatchPopupEvent(e,!1)},onItemDown:function(e){document.activeElement===this.element()&&e.preventDefault()},mouseDown:function(e){e.preventDefault()},dispatchClickEvent:function(e,t){this.isItemDisabled(t)||this.$emit("itemclick",{event:e,item:this.buttonsData[t],itemIndex:t})},onClickMainButton:function(e){if(this.buttonsData.length){var t=!this.computedOpened;this.currentOpened=t,this.focused=!0,this.focusedIndex=t?0:-1,this.dispatchPopupEvent(e,t)}},dispatchPopupEvent:function(e,t){this.$emit(t?"open":"close",e,this,void 0)},isItemDisabled:function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.$props.disabled},isRtl:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:!!this.$el&&"rtl"===getComputedStyle(this.$el).direction}}},g=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(0),o=n(26),s=n(11),a=function(){return(a=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l=i,u=l.h,d=l.version&&"3"===l.version[0],c={name:"KendoToolbar",props:{tabIndex:{type:Number,default:0},dir:String,keyboardNavigation:{type:Boolean,default:!0},buttons:{type:Array,default:function(){}}},created:function(){this.offsetHeight=0,this.offsetWidth=0,this.currentButtons=[],this.focusedSelector=this.selectors.map((function(e){return e+":focus"})).join(","),Object(r.validatePackage)(s.a)},computed:{selectors:function(){return this.$props.buttons||o.c}},mounted:function(){window.addEventListener("resize",this.onWindowResize);var e=this.$el;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.$props.keyboardNavigation&&(this.currentButtons=this.getCurrentButtons(),this.setTabIndex(0)))},updated:function(){this.$el&&!1!==this.$props.keyboardNavigation&&(this.currentButtons=this.getCurrentButtons(),this.setTabIndex(this.focusedIndex()))},destroyed:d?void 0:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},unmounted:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=Object(r.getDefaultSlots)(this);return t("div",{class:"k-widget k-toolbar",role:"toolbar",attrs:this.v3?void 0:{role:"toolbar",dir:this.$props.dir},dir:this.$props.dir,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown}},[n])},methods:{getCurrentButtons:function(){return this.$el?Array.from(this.$el.querySelectorAll(this.selectors.join(","))):[]},getInternalButtons:function(){return this.$el?Array.from(this.$el.querySelectorAll(o.b)):[]},focusedIndex:function(){var e=this.$el&&this.$el.querySelector(this.focusedSelector);return Math.max(0,this.currentButtons.findIndex((function(t){return t===e})))},setTabIndex:function(e){var t=this.$props.tabIndex;this.currentButtons.forEach((function(n,i){n.tabIndex=i===e?t:-1})),this.getInternalButtons().forEach((function(e){e.tabIndex=-1}))},onKeyDown:function(e){if(!1!==this.$props.keyboardNavigation){var t=e.target;if((e.keyCode===r.Keys.left||e.keyCode===r.Keys.right)&&!e.defaultPrevented&&-1!==this.currentButtons.findIndex((function(e){return e===t}))){var n=this.focusedIndex();e.keyCode===r.Keys.left?this.focusButton(n,n-1):this.focusButton(n,n+1)}}},focusButton:function(e,t){var n=this.$props.tabIndex,i=this.currentButtons[t];if(i){i.tabIndex=n,i.focus();var r=this.currentButtons[e];r&&(r.tabIndex=-1)}},onWindowResize:function(e){var t=this.$el;if(t){var n=t.offsetWidth,i=t.offsetHeight;if(this.offsetWidth!==n||this.offsetHeight!==i){this.offsetWidth=n,this.offsetHeight=i;var r={offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight};this.$emit("resize",a(a({target:this},r),{nativeEvent:e}))}}}}},p=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(33),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoToolbarItem",setup:a?function(){return{v3:!!a}}:void 0,render:function(e){return(s||e)(r.a,{class:"k-separator"})}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return a}));var i=n(1),r=i,o=r.h,s=r.version&&"3"===r.version[0],a={name:"KendoToolbarItem",setup:s?function(){return{v3:!!s}}:void 0,render:function(e){return(o||e)("span",{class:"k-spacer"})}},l=a},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=void 0;var a=s(n(165)),l=n(66),u=n(9),d=n(61);!function(e){e.alignBlocks=function(e,t,n){return Boolean(u.alignBlocks(t,n)(e.state,e.dispatch))},e.applyInlineStyle=function(e,t,n){return u.applyInlineStyle(t,n)(e.state,e.dispatch)},e.applyLink=function(e,t,n){return u.applyLink(t,n)(e.state,e.dispatch)},e.canIndentList=function(e,t){return u.canIndentAsListItem(e,t)},e.canInsert=function(e,t){return u.canInsert(e,t)},e.canOutdentList=function(e,t){return u.canOutdentAsListItem(e,{listsTypes:t,nodes:[]})},e.convertMsLists=function(e){return u.convertMsLists(e)},e.createDocument=function(e,t,n){return u.parseContent(u.trimWhitespace(t),e,void 0!==n?n:{preserveWhitespace:"full"})},e.createTable=function(e,t,n){return u.createTable(e,t,n)},e.formatBlockElements=function(e,t,n){return u.formatBlockElements(t,n)(e.state,e.dispatch)},e.getBlockFormats=function(e){return u.getBlockFormats(e)},e.getHtml=function(e){return u.getHtml(e)},e.getInlineStyles=function(e,t){return u.getInlineStyles(e,t)},e.getMark=function(e,t){return u.getMark(e,t)},e.hasMark=function(e,t){return u.hasMark(e,t)},e.hasNode=function(e,t){return u.hasNode(e,t)},e.indentBlocks=function(e,t,n,i){return Boolean(u.indentBlocks(t,n,i)(e.state,e.dispatch))},e.indentHtml=function(e){return u.indentHtml(e)},e.insertNode=function(e,t,n){u.insertNode(t,n)(e.state,e.dispatch)},e.isAligned=function(e,t){return u.isAligned(e,t)},e.isIndented=function(e,t,n){return u.isIndented(e,t,n)},e.removeComments=function(e){return u.removeComments(e)},e.removeTag=function(e,t){return u.removeTag(e,t)},e.pasteCleanup=function(e,t){return u.pasteCleanup(e,t)},e.sanitizeClassAttr=function(e){u.sanitizeClassAttr(e)},e.sanitizeStyleAttr=function(e){u.sanitizeStyleAttr(e)},e.removeAttribute=function(e){u.removeAttribute(e)},e.sanitize=function(e){return u.sanitize(e)},e.replaceImageSourcesFromRtf=function(e,t){return u.replaceImageSourcesFromRtf(e,t)},e.textHighlight=function(e){return u.textHighlight(e)},e.imageResizing=function(e){return u.imageResizing(e)},e.setHtml=function(e,t,n,i){var r=u.trimWhitespace(t);u.setHtml(r,n,i)(e.state,e.dispatch)},e.toggleInlineFormat=function(e,t,n,i){return u.toggleInlineFormat(t,n,i)(e.state,e.dispatch)},e.toggleList=function(e,t,n){return u.toggleList(e.state,e.dispatch,e,t,n)},e.getShortcuts=function(e){return a.getShortcuts(e)},e.propsKey=d.editorPropsKey,e.imageResizeKey=u.imageResizeKey,e.marks=i({},l.marks),e.nodes=i({},l.nodes)}(t.EditorUtils||(t.EditorUtils={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editorPropsKey=void 0;var i=n(9);t.editorPropsKey=new i.PluginKey("editor-props")},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(0),o=n(4),s=n(2),a=n(8),l=i,u=l.h,d=l.version&&"3"===l.version[0],c={name:"KendoSwitch",model:{event:"changemodel"},emits:{change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{name:String,accessKey:String,checked:{type:Boolean,default:void 0},className:String,disabled:{type:Boolean,default:!1},defaultChecked:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},trackRounded:{type:String,default:"full",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},thumbRounded:{type:String,default:"full",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,offLabel:{type:String,default:"OFF"},onLabel:{type:String,default:"ON"},required:{type:Boolean,default:!1},tabIndex:Number,valid:Boolean,validityStyles:{type:Boolean,default:!1},validationMessage:String,value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:void 0}},created:function(){Object(r.validatePackage)(a.a),this._id=Object(r.guid)(),this.defaultValidationMessage=Object(o.provideLocalizationService)(this)},data:function(){return{currentChecked:this.$props.defaultChecked,valueDuringOnChange:void 0,focused:!1,currentDir:void 0}},computed:{computedValue:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.$props.checked?this.$props.checked:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.currentChecked},switchClassName:function(){var e,t=!this.validityStyles||this.validity().valid,n=this.$props.trackRounded;return(e={"k-switch":!0})["k-switch-"+r.kendoThemeMaps.sizeMap[this.$props.size]]=this.$props.size,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[n]||n)]=n,e["k-switch-on"]=this.computedValue,e["k-switch-off"]=!this.computedValue,e["k-focus"]=this.focused,e["k-disabled"]=this.$props.disabled,e["k-invalid"]=!t,e},switchTrackClass:function(){var e,t=this.$props.trackRounded;return(e={"k-switch-track":!0})["k-rounded-"+(r.kendoThemeMaps.roundedMap[t]||t)]=t,e},switchThumbClass:function(){var e,t=this.$props.thumbRounded;return(e={"k-switch-thumb":!0})["k-rounded-"+(r.kendoThemeMaps.roundedMap[t]||t)]=t,e}},mounted:function(){this._element=Object(r.getRef)(this,"element"),this.input=Object(r.getRef)(this,"input"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(r.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.setValidity()},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,i=n.disabled,o=n.id,s=n.offLabel,a=n.onLabel,l=n.tabIndex,d=n.required;return t("span",{class:this.switchClassName,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir},onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown,click:this.handleClick,focusout:this.handleWrapperBlur,focusin:this.handleWrapperFocus},onClick:this.handleClick,onFocusout:this.handleWrapperBlur,onFocusin:this.handleWrapperFocus},[t("span",{class:this.switchTrackClass,id:o||this._id,attrs:this.v3?void 0:{id:o||this._id,role:"switch","aria-checked":this.computedValue,"aria-disabled":i||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabindex:Object(r.getTabIndex)(l,i,void 0),accesskey:this.$props.accessKey},role:"switch","aria-checked":this.computedValue,"aria-disabled":i||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:Object(r.setRef)(this,"element"),tabindex:Object(r.getTabIndex)(l,i,void 0),accesskey:this.$props.accessKey},[t("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",tabindex:-1,name:this.$props.name,required:void 0!==d&&d,"aria-hidden":!0},checked:this.v3?this.$props.checked:null,domProps:this.v3?void 0:{checked:this.$props.checked,value:this.computedValue},ref:Object(r.setRef)(this,"input"),tabindex:-1,name:this.$props.name,required:void 0!==d&&d,"aria-hidden":!0,value:this.v3?this.computedValue:null,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:r.noop,on:this.v3?void 0:{change:r.noop}}),t("span",{class:"k-switch-label-on"},[a]),t("span",{class:"k-switch-label-off"},[s]),t("span",{class:"k-switch-thumb-wrap"},[t("span",{class:this.switchThumbClass})])])])},methods:{focus:function(){this._element&&this._element.focus()},element:function(){return this._element},validity:function(){var e=void 0!==this.$props.validationMessage,t=void 0!==this.$props.valid?this.$props.valid:!this.$props.required||!!this.computedValue;return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue}},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||this.defaultValidationMessage.toLanguageString(s.D,s.x[s.D]))},limit:function(e,t,n){var i=n.offsetWidth,r=t.offsetWidth;return e<0?0:e>i-r?i-r:e},toggle:function(e,t){this.currentChecked=e,this.valueDuringOnChange=e,this.$emit("changemodel",e),this.$emit("update:modelValue",e),this.$emit("change",{event:t,component:this,target:{value:e},name:this.$props.name,value:e,validity:this.validity()}),this.valueDuringOnChange=void 0},handleClick:function(e){this.eventTimeStamp!==e.timeStamp&&(this.eventTimeStamp=e.timeStamp,this.toggle(!this.computedValue,e))},handleKeyDown:function(e){if(!this.$props.disabled){var t=e.keyCode;t!==r.Keys.space&&t!==r.Keys.enter||this.toggle(!this.computedValue,e)}},handleWrapperFocus:function(e){this.$props.disabled||(this.focused=!0,this.$emit("focus",e))},handleWrapperBlur:function(e){this.$props.disabled||(this.focused=!1,this.$emit("blur",e))}}},p=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return f}));var i=n(1),r=n(0),o=i,s=(o.h,o.version&&"3"===o.version[0]),a={name:"KendoButtonWrap",props:{},setup:s?function(){return{v3:!!s}}:void 0,render:function(e){return Object(r.getDefaultSlots)(this)[0]}},l=n(11),u=n(26),d=i,c=d.h,p=d.version&&"3"===d.version[0],h=u.a.styles,f={name:"KendoButtonGroup",props:{disabled:{type:Boolean,default:void 0},width:String,dir:{type:String,default:function(){}}},created:function(){Object(r.validatePackage)(l.a)},setup:p?function(){return{v3:!!p}}:void 0,render:function(e){var t,n=c||e,i=Object(r.getDefaultSlots)(this),o=function(e,t,i,o){var s,l=Object(r.classNames)(((s={})[h["state-disabled"]]=this.$props.disabled,s[h["group-start"]]=o?i:0===t,s[h["group-end"]]=o?0===t:i,s));return n(a,{class:l,attrs:this.v3?void 0:{"aria-disabled":this.$props.disabled},"aria-disabled":this.$props.disabled},this.v3?function(){return[e]}:[e])},s=Object(r.classNames)([h["button-group"]],((t={})["k-disabled"]=this.$props.disabled,t[h["button-group-stretched"]]=!!this.$props.width,t));return n("div",{style:{width:this.width},dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0},role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0,class:s},[function(e){var t=this,n=e.length,i=void 0!==this.$props.dir?"rtl"===this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1;return e.map((function(e,r){return t.isValidButton(e)?o.call(t,e,r,r===n-1,i):e}))}.call(this,i)])},methods:{isValidButton:function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("button")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("button")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("kendobutton")}}},v=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b}));var i=n(1),r=n(0),o=n(32),s=n(11),a=function(e){return"number"==typeof e?e+"px":e},l=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},u=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},d=function(e,t,n,i){var r=t.horizontal,o=t.vertical;if(e){var s=n&&void 0!==n.x?a(n.x):"16px",l=n&&void 0!==n.x?"calc(50% + "+a(n.x)+")":"50%",u=n&&void 0!==n.y?a(n.y):"16px",d=n&&void 0!==n.y?"calc(50% + "+a(n.y)+")":"50%";e.style.setProperty(c(t,i),"center"===r?l:s),e.style.setProperty(p(t),"middle"===o?d:u),i&&("top"!==o&&"bottom"!==o||"start"!==r||e.style.setProperty("left","unset"),"middle"===o&&"end"===r&&e.style.setProperty("right","unset"),"middle"===o&&"start"===r&&e.style.setProperty("left","unset"))}},c=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},p=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},h=n(14),f=i,v=f.h,m=f.version&&"3"===f.version[0],g=f.ref,b={name:"KendoVueFloatingActionButton",props:{id:String,dir:String,tabIndex:Number,accessKey:String,disabled:Boolean,icon:String,iconClass:String,items:[Object,Array],item:[String,Function,Object],text:String,alignOffset:Object,opened:{type:Boolean,default:void 0},align:{type:Object,default:function(){return{vertical:"bottom",horizontal:"end"}}},positionMode:{type:String,default:function(){return"fixed"}},popupSettings:{type:Object,default:function(){return{}}},shape:{type:String,default:function(){return"rectangle"}},rounded:{type:String,default:"full"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},size:{type:String,default:function(){return"medium"}},themeColor:{type:String,default:function(){return"primary"}}},emits:{click:null,mousedown:null,mouseup:null,open:null,close:null,itemclick:null,focus:null,blur:null,keydown:null},data:function(){return{currentOpened:!1,currentFocused:!1,focusedIndex:-1,currentDir:"ltr",isRtl:!1}},created:function(){Object(r.validatePackage)(s.a),this.element=void 0,this._anchor=Object(r.guid)(),this.listId=Object(r.guid)(),this.buttonId=Object(r.guid)()},mounted:function(){this.element=this.v3?this.kendoAnchorRef:this.$refs[this._anchor],this.list=Object(r.getRef)(this,"list"),this.popup=Object(r.getRef)(this,"popup"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1,this.isRtl="rtl"===this.currentDir,void 0!==this.opened&&d(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl)},updated:function(){d(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl),this.currentFocused&&this.element&&this.element.focus()},computed:{buttonClassNames:function(){var e,t=this.$props,n=t.size,i=(t.icon,t.shape),o=t.themeColor,s=t.fillMode,a=t.rounded;return(e={"k-fab":!0})["k-fab-"+(i||"rectangle")]=null!==i,e["k-fab-"+(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[a]||a)]=a,e["k-fab-"+s]=s,e["k-fab-"+s+"-"+o]=s&&o,e["k-disabled"]=this.$props.disabled,e["k-focus"]=this.currentFocused,e["k-"+this.$props.align.vertical+"-"+this.$props.align.horizontal]=!0,e},computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},rootClassNames:function(){return Object(r.classNames)({"k-pos-absolute":"absolute"===this.$props.positionMode,"k-pos-fixed":"fixed"===this.$props.positionMode})}},methods:{dispatchPopupEvent:function(e,t){this.$props.items&&this.$emit(t?"open":"close",{event:e,isOpened:!t})},handleClick:function(e){if(e.target&&!this.$props.disabled)if(this.$props.items){var t=!this.computedOpened;this.currentOpened=t,this.currentFocused=!0,this.focusedIndex=t?0:-1,this.dispatchPopupEvent(e,!this.computedOpened)}else this.$emit("click",e,void 0)},handleFocus:function(e){this.currentFocused=!0,this.focusedIndex=this.computedOpened?0:-1,this.$emit("focus",e,void 0)},handleBlur:function(e){this.currentFocused=!1,this.currentOpened=!1,this.focusedIndex=-1,this.$emit("blur",e,void 0),this.computedOpened&&this.dispatchPopupEvent(e,!1)},handleMouseDown:function(e){e.preventDefault(),this.$emit("mousedown",e)},handleMouseUp:function(e){this.$emit("mouseup",e)},dispatchItemClickEvent:function(e,t){this.$props.items&&(this.$props.items[t].disabled||this.$emit("itemclick",e,{itemProps:this.$props.items[t],itemIndex:t}))},handleItemClick:function(e,t){e.target&&this.$props.items&&(this.focusedIndex=t,this.currentOpened=!1,this.dispatchItemClickEvent(e,t),this.dispatchPopupEvent(e,!1))},handleItemDown:function(e){r.canUseDOM&&document.activeElement===this.element&&e.preventDefault()},handleKeyDown:function(e){var t=this.focusedIndex,n=this.$props.items?this.$props.items.length-1:-1,i="bottom"===this.$props.align.vertical;switch(e.keyCode){case r.Keys.enter:case r.Keys.space:t>=0&&this.dispatchItemClickEvent(e,t),e.preventDefault(),this.currentOpened=!this.currentOpened,this.focusedIndex=this.currentOpened?-1:0;break;case r.Keys.esc:e.preventDefault(),this.currentOpened=!1,this.focusedIndex=-1;break;case r.Keys.home:e.preventDefault(),this.focusedIndex=0;break;case r.Keys.end:e.preventDefault(),this.focusedIndex=n;break;case r.Keys.down:case r.Keys.right:e.preventDefault(),t<n&&!i&&(this.focusedIndex=t+1),t>0&&i&&(this.focusedIndex=t-1);break;case r.Keys.up:case r.Keys.left:e.preventDefault(),t>0&&!i&&(this.focusedIndex=t-1),t<n&&i&&(this.focusedIndex=t+1)}this.$emit("keydown",e,void 0)}},setup:m?function(){return{v3:!!m,chipRef:g(null),kendoAnchorRef:g(null)}}:void 0,render:function(e){var t=this,n=this,i=v||e,s=this.$props,a=s.align,d=s.disabled,c=s.icon,p=s.iconClass,f=s.id,m=s.items,g=s.text,b=s.tabIndex,y=s.accessKey,k=s.popupSettings,w=r.templateRendering.call(this,this.$props.item,r.getListeners.call(this)),S=function(){return m&&m.map((function(e,t){return i(o.a,{key:t,index:t,attrs:this.v3?void 0:{index:t,id:this.listId+"-"+t,disabled:d||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:w},id:this.listId+"-"+t,disabled:d||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:w,class:Object(r.classNames)(e.className,(n=this.currentDir||"ltr",s=a.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===s?"end":"start"])),onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick,down:this.handleItemDown},onDown:this.handleItemDown});var n,s}),this)},C=c&&!g,x=(this.element?this.element.offsetWidth:0)/2-16;return i("div",{class:this.rootClassNames},[i("button",{ref:this.v3?function(e){n.kendoAnchorRef=e}:this._anchor,id:f||this.buttonId,attrs:this.v3?void 0:{id:f||this.buttonId,role:m?"menubutton":"button",type:"button","aria-disabled":d,"aria-expanded":m?this.computedOpened:void 0,"aria-haspopup":!!m,"aria-label":(g||"")+" floatingactionbutton","aria-owns":m?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&m?this.listId+"-"+this.focusedIndex:void 0,tabindex:Object(r.getTabIndex)(b,d),accesskey:y,dir:this.currentDir,disabled:d},role:m?"menubutton":"button",type:"button","aria-disabled":d,"aria-expanded":m?this.computedOpened:void 0,"aria-haspopup":!!m,"aria-label":(g||"")+" floatingactionbutton","aria-owns":m?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&m?this.listId+"-"+this.focusedIndex:void 0,tabindex:Object(r.getTabIndex)(b,d),accesskey:y,dir:this.currentDir,disabled:d,class:this.buttonClassNames,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.handleMouseDown,mouseup:this.handleMouseUp,focusin:this.handleFocus,blur:this.handleBlur,keydown:this.handleKeyDown},onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onFocusin:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown},[c?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:Object(r.classNames)("k-fab-icon k-icon k-i-"+c)}):p?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:p}):null,g&&i("span",{class:"k-fab-text"},[g])]),i(h.Popup,{ref:Object(r.setRef)(this,"popup"),show:this.computedOpened,attrs:this.v3?void 0:{show:this.computedOpened,anchor:this._anchor,animate:k.animate,popupClass:Object(r.classNames)("k-popup-transparent k-fab-popup",k.popupClass),anchorAlign:k.anchorAlign||l(a,this.isRtl),popupAlign:k.popupAlign||u(a,this.isRtl)},anchor:this._anchor,animate:k.animate,popupClass:Object(r.classNames)("k-popup-transparent k-fab-popup",k.popupClass),anchorAlign:k.anchorAlign||l(a,this.isRtl),popupAlign:k.popupAlign||u(a,this.isRtl),style:{boxShadow:"none"}},this.v3?function(){return[i("ul",{ref:Object(r.setRef)(t,"list"),role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":f,id:t.listId},"aria-labelledby":f,id:t.listId,class:Object(r.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==a.vertical,"k-fab-items-top":"bottom"===a.vertical}),style:{paddingLeft:C?x+"px":void 0,paddingRight:C?x+"px":void 0}},[S.call(t)])]}:[i("ul",{ref:Object(r.setRef)(t,"list"),role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":f,id:t.listId},"aria-labelledby":f,id:t.listId,class:Object(r.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==a.vertical,"k-fab-items-top":"bottom"===a.vertical}),style:{paddingLeft:C?x+"px":void 0,paddingRight:C?x+"px":void 0}},[S.call(t)])])])}},y=b},function(e,t){},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=t.marks=void 0;var r=n(9);Object.defineProperty(t,"marks",{enumerable:!0,get:function(){return r.marks}});var o=function(e){var t;return(t={})[e]={default:null,getFromDOM:function(t){return t.getAttribute(e)},setDOMAttr:function(t,n){n[e]=t}},t},s=function(e){var t={};return Array.from(e.attributes).forEach((function(e){t[e.nodeName]=e.nodeValue})),t},a=i(i(i({},o("style")),o("class")),o("id")),l=r.tableNodes({tableGroup:"block",cellContent:"block+",cellAttributes:a});l.table_row.attrs=l.table_row.attrs||{},l.table_row.attrs.style={default:null},l.table_row.attrs.class={default:null},l.table_row.attrs.id={default:null},l.table_row.toDOM=function(e){return["tr",e.attrs,0]},l.table_row.parseDOM=[{tag:"tr",getAttrs:s}],l.table.attrs=l.table.attrs||{},l.table.attrs.style={default:null},l.table.attrs.class={default:null},l.table.attrs.id={default:null},l.table.toDOM=function(e){return["table",e.attrs,["tbody",0]]},l.table.parseDOM=[{tag:"table",getAttrs:s}];var u=i(i({},r.nodes),l);t.nodes=u},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertLinkDialogVue2=t.InsertLinkDialog=void 0;var s=o(n(1)),a=s.h,l=s.version&&"3"===s.version[0],u=n(37),d=n(5),c=n(9),p=n(4),h=n(10),f=n(0),v={name:"KendoInsertLinkDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,mounted:function(){this.href=f.getRef(this,"href"),this.title=f.getRef(this,"title"),this.target=f.getRef(this,"target"),this.href&&this.href.focus()},render:function(e){var t=this,n=a||e,i=this.$props,r=i.view,o=i.settings,s=i.dir,l=p.provideLocalizationService(this),v=o.messages,m=v.insertHyperlinkDialogTitle,g=v.insertHyperlinkAddress,b=v.insertHyperlinkTitle,y=v.insertHyperlinkNewWindow,k=v.insertHyperlinkCancel,w=v.insertHyperlinkInsert,S=!!r&&c.getMark(r.state,r.state.schema.marks[o.mark]),C=n("div",{class:"k-edit-form-container"},[n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-link-url",attrs:this.v3?void 0:{for:"k-editor-link-url"}},[l.toLanguageString(g,h.messages[g])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-link-url"},class:"k-input-inner",ref:f.setRef(this,"href"),id:"k-editor-link-url",value:this.v3?S&&S.attrs.href||void 0:null,domProps:this.v3?void 0:{value:S&&S.attrs.href||void 0}})])]),n("div",{class:"k-edit-label k-editor-link-text-row"},[n("label",{for:"k-editor-link-text",attrs:this.v3?void 0:{for:"k-editor-link-text"}},[l.toLanguageString(b,h.messages[b])])]),n("div",{class:"k-edit-field k-editor-link-text-row"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-link-text"},class:"k-input-inner",id:"k-editor-link-text",ref:f.setRef(this,"title"),value:this.v3?S&&S.attrs.title||void 0:null,domProps:this.v3?void 0:{value:S&&S.attrs.title||void 0}})])]),!1!==o.linkTarget&&n("div",{class:"k-edit-field"},[n("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"k-editor-link-target"},class:"k-checkbox k-checkbox-md k-rounded-md",id:"k-editor-link-target",ref:f.setRef(this,"target"),checked:this.v3?S&&!!S.attrs.target||void 0:null,domProps:this.v3?void 0:{checked:S&&!!S.attrs.target||void 0}}),n("label",{for:"k-editor-link-target",attrs:this.v3?void 0:{for:"k-editor-link-target"},class:"k-checkbox-label"},[l.toLanguageString(y,h.messages[y])])])]);return n(u.Dialog,{title:l.toLanguageString(m,h.messages[m]),attrs:this.v3?void 0:{title:l.toLanguageString(m,h.messages[m]),closeIcon:!0,dir:s},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},closeIcon:!0,dir:s,style:"rtl"===s?{textAlign:"right"}:void 0},this.v3?function(){return[C,n(u.DialogActionsBar,t.v3?function(){return[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:s},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:s,key:"cancel"},t.v3?function(){return[l.toLanguageString(k,h.messages[k])]}:[l.toLanguageString(k,h.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:s},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:s,key:"insert"},t.v3?function(){return[l.toLanguageString(w,h.messages[w])]}:[l.toLanguageString(w,h.messages[w])])]}:[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:s},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:s,key:"cancel"},t.v3?function(){return[l.toLanguageString(k,h.messages[k])]}:[l.toLanguageString(k,h.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:s},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:s,key:"insert"},t.v3?function(){return[l.toLanguageString(w,h.messages[w])]}:[l.toLanguageString(w,h.messages[w])])])]}:[C,n(u.DialogActionsBar,t.v3?function(){return[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:s},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:s,key:"cancel"},t.v3?function(){return[l.toLanguageString(k,h.messages[k])]}:[l.toLanguageString(k,h.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:s},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:s,key:"insert"},t.v3?function(){return[l.toLanguageString(w,h.messages[w])]}:[l.toLanguageString(w,h.messages[w])])]}:[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:s},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:s,key:"cancel"},t.v3?function(){return[l.toLanguageString(k,h.messages[k])]}:[l.toLanguageString(k,h.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:s},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:s,key:"insert"},t.v3?function(){return[l.toLanguageString(w,h.messages[w])]}:[l.toLanguageString(w,h.messages[w])])])])},methods:{onClose:function(){this.$props.view.focus(),this.$emit("close")},onInsert:function(){var e=this.$props.view,t=this.$props.settings.mark,n={href:this.href?this.href.value:void 0,title:this.title?this.title.value:void 0,target:this.target&&this.target.checked?"_blank":void 0};c.applyLink({mark:t,attrs:n},this.$props.settings.commandName)(e.state,e.dispatch),this.onClose()}}};t.InsertLinkDialogVue2=v;var m=v;t.InsertLinkDialog=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.AlignVue2=t.Align=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(18),h=n(9),f=n(4),v=n(10),m=p.EditorToolsSettings.alignRemove,g={name:"KendoAlign",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.Button.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),l=r&&r.state,d=!!l&&h.isAligned(l,o.actions),p=f.provideLocalizationService(this),m=o.messages.title,g=i(i(i({},s),{selected:d,togglable:!0,title:p.toLanguageString(m,v.messages[m])}),o.props);return t(c.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:g},g))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i=t&&t.state,r=!!i&&h.isAligned(i,n.actions),o=r?m.actions:n.actions,s=r?m.commandName:n.commandName;return t&&h.alignBlocks(o,s)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.AlignVue2=g;var b=g;t.Align=b},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.IndentVue2=t.Indent=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(9),h=n(4),f=n(10),v={name:"KendoIndent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.Button.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),l=r&&r.state,d=l&&l.schema.nodes,v=d&&d[o.listsTypes.listItem],m=o.actions,g=!!l&&(p.isIndented(l,m,s.dir)||m.some((function(e){return d[e.node]&&p.hasNode(l,d[e.node])})))&&!p.hasNode(l,v),b=!!l&&p.canIndentAsListItem(l,v),y=g||b,k=h.provideLocalizationService(this),w=o.messages.title,S=i(i(i({},s),{disabled:!y,title:k.toLanguageString(w,f.messages[w])}),o.props);return t(c.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:S},S))},methods:{handleClick:function(){var e=this.view&&this.view.state,t=e&&e.schema.nodes,n=t&&t[this.settings.listsTypes.listItem],i=this.settings.actions,r=!!e&&(p.isIndented(e,i,this.dir)||i.some((function(n){return t[n.node]&&p.hasNode(e,t[n.node])})))&&!p.hasNode(e,n),o=!!e&&p.canIndentAsListItem(e,n);this.view&&o?p.sinkListItem(n)(this.view.state,this.view.dispatch):this.view&&r&&p.indentBlocks(i,this.settings.commandName,this.dir)(this.view.state,this.view.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.IndentVue2=v;var m=v;t.Indent=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ListVue2=t.List=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(9),h=n(4),f=n(10),v={name:"KendoList",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.Button.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),l=!1,d=h.provideLocalizationService(this),v=o.messages.title,m=o.types,g=o.listType;if(r){var b=r.state,y=b.schema.nodes,k=p.hasNode(b,y[m.orderedList]),w=p.hasNode(b,y[m.bulletList]);l=g===m.orderedList?k&&!w:!k&&w}var S=i(i(i({},s),{selected:l,togglable:!0,title:d.toLanguageString(v,f.messages[v])}),o.props);return t(c.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:S},S))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,r=n.types,o=n.listType;this.view&&p.toggleList(t.state,t.dispatch,t,i({listType:o},r),n.commandName)},preventDefault:function(e){e.preventDefault()}}};t.ListVue2=v;var m=v;t.List=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.OutdentVue2=t.Outdent=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(9),h=n(4),f=n(10),v={name:"KendoOutdent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.Button.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),l=r&&r.state,d=!!l&&p.isIndented(l,o.actions,s.dir),v=(l&&l.schema.nodes[o.listsTypes.listItem],!!l&&p.canOutdentAsListItem(l,{nodes:o.actions,listsTypes:o.listsTypes})),m=d||v,g=h.provideLocalizationService(this),b=o.messages.title,y=i(i(i({},s),{disabled:!m,title:g.toLanguageString(b,f.messages[b])}),o.props);return t(c.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i=e.dir,r=t&&t.state,o=!!r&&p.isIndented(r,n.actions,i),s=r&&r.schema.nodes[n.listsTypes.listItem],a=!!r&&p.canOutdentAsListItem(r,{nodes:n.actions,listsTypes:n.listsTypes});t&&a?p.liftListItem(s)(t.state,t.dispatch):t&&o&&p.indentBlocks(n.actions,n.commandName,i)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.OutdentVue2=v;var m=v;t.Outdent=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.InlineFormatVue2=t.InlineFormat=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(9),h=n(4),f=n(10),v={name:"KendoInlineFormat",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.Button.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),l=r&&r.state,d={mark:o.mark,altMarks:o.altMarks,altStyle:o.altStyle},v=h.provideLocalizationService(this),m=o.messages.title,g=i(i(i({},s),{selected:!!l&&p.hasMark(l,d),togglable:!0,title:v.toLanguageString(m,f.messages[m])}),o.props);return t(c.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:g},g))},methods:{handleClick:function(){var e=this.view&&this.view.state,t=this.settings,n={mark:t.mark,altMarks:t.altMarks,altStyle:t.altStyle};return this.view&&p.toggleInlineFormat(n,e&&e.tr.setMeta("commandName",this.settings.commandName))(this.view.state,this.view.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.InlineFormatVue2=v;var m=v;t.InlineFormat=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},l=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.FontNameVue2=t.FontName=void 0;var u=s(n(1)),d=u.h,c=u.version&&"3"===u.version[0],p=n(152),h=n(9),f=n(36),v=n(4),m=n(10),g={name:"KendoFontName",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},p.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:c?function(){return{v3:!!c}}:void 0,render:function(e){var t=d||e,n=this.$props,r=n.view,o=(n.render,n.dataItems),s=n.settings,l=n.defaultItem,u=a(n,["view","render","dataItems","settings","defaultItem"]),c=s.style,g=r?h.getInlineStyles(r.state,{name:c,value:/^.+$/}):[],b=1===new Set(g).size?g[0]:null,y=o||s.items,k=l||s.defaultItem,w=v.provideLocalizationService(this);k&&k.localizationKey&&((k=i({},k)).text=k.localizationKey?w.toLanguageString(k.localizationKey,m.messages[k.localizationKey]):k.text);var S=i(i(i({},u),{value:b?y.find((function(e){return e.value===b})):b,dataItems:y,defaultItem:k,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1}),s.props);return t(p.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:f.userSelectNone,attrs:this.v3?void 0:S},S))},methods:{customItemRender:function(e,t,n){return n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick,on:{click:n.onClick}},[e("span",{style:n.dataItem.style},l(t.children))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,r=i.style,o=e.target.value;if(n){h.applyInlineStyle({style:r,value:o.value},i.commandName)(n.state,n.dispatch);var s=e.event;s&&"click"===s.type&&n.focus()}}}};t.FontNameVue2=g;var b=g;t.FontName=b},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n},l=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.FormatBlockVue2=t.FormatBlock=void 0;var u=s(n(1)),d=u.h,c=u.version&&"3"===u.version[0],p=n(152),h=n(9),f=n(36),v=n(4),m=n(10),g={name:"KendoFormatBlock",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},p.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:c?function(){return{v3:!!c}}:void 0,render:function(e){var t=d||e,n=this.$props,r=n.view,o=(n.render,n.dataItems),s=n.settings,l=n.defaultItem,u=a(n,["view","render","dataItems","settings","defaultItem"]),c=o||s.items,g=r&&r.state,b=g?h.getBlockFormats(g):[],y=1===new Set(b).size?b[0]:null,k=l||s.defaultItem,w=v.provideLocalizationService(this);k&&k.localizationKey&&((k=i({},k)).text=k.localizationKey?w.toLanguageString(k.localizationKey,m.messages[k.localizationKey]):k.text);var S=i(i(i({},u),{value:y?c.find((function(e){return e.value===y})):y,dataItems:c,defaultItem:k,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,popupSettings:{width:"170px"}}),s.props);return t(p.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:f.userSelectNone,attrs:this.v3?void 0:S},S))},methods:{customItemRender:function(e,t,n){return n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick,on:{click:n.onClick}},[e("span",{style:n.dataItem.style},l(t.children))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,r=e.target.value;if(n&&h.formatBlockElements(r.value,i.commandName)(n.state,n.dispatch)){var o=e.event;o&&"click"===o.type&&n.focus()}}}};t.FormatBlockVue2=g;var b=g;t.FormatBlock=b},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ProseMirrorVue2=t.ProseMirror=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(0),h=n(4),f=n(10),v={name:"KendoProseMirror",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.Button.props),inject:{kendoLocalizationService:{default:null}},computed:{command:function(){return this.settings.command||p.noop}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),l=h.provideLocalizationService(this),d=o.messages.title,p=r&&r.state,v=!!p&&!this.command(p),m=i(i(i({},s),{disabled:v,title:l.toLanguageString(d,f.messages[d])}),o.props);return t(c.Button,i({onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},attrs:this.v3?void 0:m},m))},methods:{handleClick:function(){var e=this;this.view&&this.command(this.view.state,(function(t){return e.view.dispatch(t.setMeta("commandName",e.settings.commandName))}))}}};t.ProseMirrorVue2=v;var m=v;t.ProseMirror=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkToolVue2=t.LinkTool=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(9),h=n(67),f=n(4),v=n(10),m={name:"KendoLinkTool",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),l=r&&r.state,d=!l||l.selection.empty,m=l&&p.getMark(l,l.schema.marks[o.mark]),g=f.provideLocalizationService(this),b=o.messages.insertHyperlink,y=i(i(i({},s),{key:"link",disabled:d&&!m,title:g.toLanguageString(b,v.messages[b])}),o.props),k=[t(c.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y)),this.openedDialog&&r&&t(h.InsertLinkDialog,{key:"insertLinkDialog",settings:o,attrs:this.v3?void 0:{settings:o,dir:this.dir,view:r},dir:this.dir,view:r,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[k])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.LinkToolVue2=m;var g=m;t.LinkTool=g},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.UnlinkVue2=t.Unlink=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(9),h=n(4),f=n(10),v={name:"KendoUnlink",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.Button.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),l={mark:o.mark},d=!!r&&p.hasMark(r.state,l),v=h.provideLocalizationService(this),m=o.messages.title,g=i(i(i({},s),{disabled:!d,title:v.toLanguageString(m,f.messages[m])}),o.props);return t(c.Button,i({onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},attrs:this.v3?void 0:g},g))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i={mark:n.mark};t&&p.removeLink(i,t.state.tr.setMeta("commandName",n.commandName))(t.state,t.dispatch)}}};t.UnlinkVue2=v;var m=v;t.Unlink=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.CleanFormattingVue2=t.CleanFormatting=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(4),h=n(10),f=n(9),v=n(18).EditorToolsSettings.cleanFormatting,m=f.cleanFormatting(),g={name:"KendoCleanFormatting",props:i({view:Object,settings:{type:Object,default:function(){return v}}},c.Button.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=a(n,["view","render","settings"]),l=o.messages.title,d=p.provideLocalizationService(this),f=i(i(i({},s),{disabled:!r||!m(r.state),title:d.toLanguageString(l,h.messages[l])}),o.props);return t(c.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:f},f))},methods:{handleClick:function(){var e=this;this.view&&m(this.view.state,(function(t){t.setMeta("commandName",e.settings.commandName),e.view.dispatch(t)}))},preventDefault:function(e){e.preventDefault()}}};t.CleanFormattingVue2=g;var b=g;t.CleanFormatting=b},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectAllVue2=t.SelectAll=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(4),h=n(10),f=n(9),v=n(18).EditorToolsSettings.selectAll,m={name:"KendoSelectAll",props:i({view:Object,settings:Object},c.Button.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=(n.view,n.settings),o=void 0===r?v:r,s=a(n,["view","settings"]),l=o.messages.title,d=p.provideLocalizationService(this),f=i(i(i({},s),{title:d.toLanguageString(l,h.messages[l])}),o.props);return t(c.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:f},f))},methods:{handleClick:function(){this.view&&(f.selectAll(this.view.state,this.view.dispatch),this.view.focus())},preventDefault:function(e){e.preventDefault()}}};t.SelectAllVue2=m;var g=m;t.SelectAll=g},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageVue2=t.InsertImage=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(9),p=n(5),h=n(169),f=n(4),v=n(10),m={name:"KendoInsertImage",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},p.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),l=r&&r.state,d=l?l.schema.nodes[o.node]:void 0,m=f.provideLocalizationService(this),g=o.messages.insertImage,b=i(i(i({},s),{key:"insertImage",disabled:!d||!l||!c.canInsert(l,d),title:m.toLanguageString(g,v.messages[g])}),o.props),y=[t(p.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:b},b)),this.openedDialog&&r&&t(h.InsertImageDialog,{key:"insertImageDialog",view:r,attrs:this.v3?void 0:{view:r,settings:o,dir:b.dir},settings:o,dir:b.dir,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[y])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.InsertImageVue2=m;var g=m;t.InsertImage=g},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTableVue2=t.InsertTable=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(0),h=n(170),f=n(4),v=n(10),m=n(9),g={name:"KendoInsertTable",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},c.Button.props),inject:{kendoLocalizationService:{default:null}},created:function(){this.buttonRef=p.guid()},data:function(){return{openedPopup:!1}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),l=r&&r.state,d=f.provideLocalizationService(this),p=o.messages,g=p.createTable,b=p.createTableHint,y=d.toLanguageString(g,v.messages[g]),k=d.toLanguageString(b,v.messages[b]),w=i(i(i({},s),{disabled:!l||!m.canInsert(l,l.schema.nodes.table),key:"InsertTable",title:y}),o.props),S=[t(c.Button,i({ref:this.buttonRef,onClick:this.togglePopup,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.togglePopup,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:w},w)),r&&t(h.InsertTablePopup,{key:"insertTablePopup",createTableMessage:y,attrs:this.v3?void 0:{createTableMessage:y,createTableHintMessage:k,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup},createTableHintMessage:k,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup,onClose:this.closePopup,on:this.v3?void 0:{close:this.closePopup,tableinsert:this.onTableInsert},onTableinsert:this.onTableInsert})||null];return t("span",[S])},methods:{togglePopup:function(){this.openedPopup=!this.openedPopup},closePopup:function(){this.openedPopup&&this.togglePopup()},onTableInsert:function(e,t){var n=this.$props.view;if(n){var i=m.createTable(n.state.schema.nodes,e,t);i&&m.insertNode(i,!0)(n.state,n.dispatch),n.focus(),this.closePopup()}},preventDefault:function(e){e.preventDefault()}}};t.InsertTableVue2=g;var b=g;t.InsertTable=b},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlVue2=t.ViewHtml=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(172),h=n(4),f=n(10),v={name:"KendoViewHtml",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=n.settings,s=a(n,["view","settings"]),l=h.provideLocalizationService(this),d=o.messages.viewHtml,v=i(i(i({},s),{key:"viewHtml",title:l.toLanguageString(d,f.messages[d])}),o.props),m=[t(c.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:v},v)),this.openedDialog&&r&&t(p.ViewHtmlDialog,{key:"viewHtmlDialog",view:r,attrs:this.v3?void 0:{view:r,settings:o,dir:v.dir},settings:o,dir:v.dir,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[m])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.ViewHtmlVue2=v;var m=v;t.ViewHtml=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.PdfVue2=t.Pdf=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(4),h=n(175),f=n(10),v=n(18),m=v.EditorToolsSettings.pdf,g=v.EditorToolsSettings.savePdfOptions,b={name:"KendoPdf",props:i({view:Object,settings:Object},c.Button.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=(n.view,n.render,n.settings),o=void 0===r?m:r,s=(n.savePdfOptions,n.savePdfCallback,a(n,["view","render","settings","savePdfOptions","savePdfCallback"])),l=o.messages.title,d=p.provideLocalizationService(this),h=i(i(i({},s),{title:d.toLanguageString(l,f.messages[l])}),o.props);return t(c.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:h},h))},methods:{handleClick:function(){this.view&&h.savePDF(this.view.dom,i(i({},g),this.savePdfOptions||{}),this.savePdfCallback)},preventDefault:function(e){e.preventDefault()}}};t.PdfVue2=b;var y=b;t.Pdf=y},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.PrintVue2=t.Print=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(4),h=n(10),f=n(18).EditorToolsSettings.print,v={name:"KendoPrint",props:i({view:Object,settings:Object},c.Button.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=(n.render,n.settings),s=void 0===o?f:o,l=a(n,["view","render","settings"]),d=r&&r.dom,v=d&&d.ownerDocument,m=v&&v.defaultView,g=s.messages.title,b=p.provideLocalizationService(this),y=i(i(i({},l),{disabled:!m||m===window,title:b.toLanguageString(g,h.messages[g])}),s.props);return t(c.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y))},methods:{handleClick:function(){var e=this.view&&this.view.dom,t=e&&e.ownerDocument,n=t&&t.defaultView;n&&n.print()},preventDefault:function(e){e.preventDefault()}}};t.PrintVue2=v;var m=v;t.Print=m},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceVue2=t.FindAndReplace=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=n(5),p=n(173),h=n(10),f=n(18),v=n(4),m=f.EditorToolsSettings.findAndReplace,g={name:"KendoFindAndReplace",props:i({view:Object},c.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{showDialog:!1}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=this.$props,r=n.view,o=a(n,["view"]),s=v.provideLocalizationService(this),l=m.messages.findReplaceToolTitle,d=i(i(i({},o),{key:"tool",disabled:!r,title:s.toLanguageString(l,h.messages[l])}),m.props),f=t(c.Button,i({onClick:this.onOpen,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.onOpen,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:d},d));return t("span",[f,this.showDialog&&r&&t(p.FindAndReplaceDialog,{view:r,attrs:this.v3?void 0:{view:r,dir:this.$props.dir},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},dir:this.$props.dir,key:"dialog"})])},methods:{onClose:function(){this.showDialog=!1},onOpen:function(){this.showDialog=!0},preventDefault:function(e){e.preventDefault()}}};t.FindAndReplaceVue2=g;var b=g;t.FindAndReplace=b},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var i=n(1),r=n(34),o=n(49),s=n(0),a=n(12),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=i,d=u.h,c=u.version&&"3"===u.version[0],p=(u.ref,u.inject,{name:"KendoTabStrip",emits:{select:null},props:{animation:{type:Boolean,default:!0},selected:Number,tabContentStyle:Object,tabPosition:{type:String,default:"top"},tabs:{type:Array,default:void 0},tabIndex:Number,dir:String},data:function(){return{currentShowAll:!0,currentTabs:[]}},computed:{compTabs:function(){return void 0!==this.tabs?this.tabs.map((function(e){var t=s.templateRendering.call(this,e.content,s.getListeners.call(this));return l(l({},e),{content:t})}),this):this.currentTabs}},provide:function(){return{addRenderTitle:this.addRenderTitle,addTab:this.addTab,removeTab:this.removeTab}},created:function(){var e,t=this;this.keyBinding=((e={})[s.Keys.left]=function(){return t.prevNavigatableTab()},e[s.Keys.right]=function(){return t.nextNavigatableTab()},e[s.Keys.down]=function(){return t.nextNavigatableTab()},e[s.Keys.up]=function(){return t.prevNavigatableTab()},e[s.Keys.home]=function(){return 0},e[s.Keys.end]=function(){return t.compTabs.length-1},e),Object(s.validatePackage)(a.a)},watch:{selected:function(e,t){this.$props.animation&&(this.currentShowAll=!1,this.$nextTick((function(){this.currentShowAll=!0})))}},methods:{addRenderTitle:function(e,t){var n=this.compTabs.findIndex((function(t){return t.id===e}));this.v3?this.compTabs[n].titleRender=t:this.compTabs[n]=l(l({},this.compTabs[n]),{titleRender:t})},addTab:function(e){this.currentTabs.push(e)},removeTab:function(e){var t=this.currentTabs.findIndex((function(t){return t.id===e}));this.currentTabs.splice(t,1)},onSelect:function(e){this.$props.selected!==e&&this.$emit("select",{selected:e})},onKeyDown:function(e){var t;switch(e.keyCode){case s.Keys.left:t=this.keyBinding[this.invertKeys(s.Keys.left,s.Keys.right)];break;case s.Keys.right:t=this.keyBinding[this.invertKeys(s.Keys.right,s.Keys.left)];break;case s.Keys.up:t=this.keyBinding[s.Keys.up];break;case s.Keys.down:t=this.keyBinding[s.Keys.down];break;case s.Keys.home:t=this.keyBinding[s.Keys.home];break;case s.Keys.end:t=this.keyBinding[s.Keys.end]}t&&(e.preventDefault(),this.onSelect(t()))},invertKeys:function(e,t){return this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1?t:e},firstNavigatableTab:function(){var e=this.compTabs.length;if(e)for(var t=0;t<e;t++)if(!this.compTabs[t].disabled)return t},lastNavigatableTab:function(){var e=this.compTabs.length;if(e)for(var t=e-1;t>0;t--)if(!this.compTabs[t].disabled)return t},prevNavigatableTab:function(){var e=this.compTabs.length,t=this.$props.selected,n=t?t-1:-1;if(n<0)return this.lastNavigatableTab();if(e)for(var i=n;i>-1;i--){if(!this.compTabs[i].disabled)return i;if(0===i)return this.lastNavigatableTab()}},nextNavigatableTab:function(){var e=this.compTabs.length,t=this.$props.selected,n=t?t+1:1;if(n>=e)return this.firstNavigatableTab();if(e)for(var i=n;i<e;i++){if(!this.compTabs[i].disabled)return i;if(i+1===e)return this.firstNavigatableTab()}}},setup:c?function(){return{v3:!!c}}:void 0,render:function(e){var t,n=d||e,i=this.$props,a=i.tabPosition,u=i.tabIndex,c=void 0===u?0:u,p="bottom"===a,h=Object(s.classNames)("k-widget","k-header","k-floatwrap","k-tabstrip",((t={})["k-tabstrip-left"]="left"===a,t["k-tabstrip-right"]="right"===a,t["k-tabstrip-bottom"]="bottom"===a,t["k-tabstrip-top"]="top"===a,t));return n("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:h},[!p&&n(r.a,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:c},selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect,keydown:this.onKeyDown},onKeydown:this.onKeyDown,tabIndex:c}),function(e){var t=e.selected,i=e.tabContentStyle,r=Object(s.getDefaultSlots)(this),a={index:t,animation:this.$props.animation,tabs:this.compTabs,hasTabs:void 0!==this.tabs,selected:t,tabContentStyle:i,showAll:this.currentShowAll};return n(o.a,l(l({},a),{attrs:this.v3?void 0:l({},a)}),this.v3?function(){return r}:[r])}.call(this,this.$props),p&&n(r.a,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:c},selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect,keydown:this.onKeyDown},onKeydown:this.onKeyDown,tabIndex:c})])}}),h=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l=(o.ref,o.inject,{name:"KendoTabStripTab",props:{disabled:Boolean,contentClassName:String,title:String,titleRender:[String,Function,Object]},inject:{addRenderTitle:{default:null},addTab:{default:null},removeTab:{default:null}},created:function(){this.tabId=Object(r.guid)(),this.addTab({title:this.$props.title,id:this.tabId,disabled:this.$props.disabled,contentClassName:this.$props.contentClassName})},destroyed:a?void 0:function(){this.removeTab(this.tabId)},unmounted:function(){this.removeTab(this.tabId)},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=s||e,n=this.$props.titleRender?r.templateRendering.call(this,this.$props.titleRender,r.getListeners.call(this)):null;return n&&this.addRenderTitle(this.tabId,n),t("div",[Object(r.getDefaultSlots)(this)])}}),u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(1),r=n(15),o=n(12),s=n(0),a=i,l=a.h,u=a.version&&"3"===a.version[0],d={name:"KendoCard",props:{dir:String,type:{type:String,default:r.d.DEFAULT,validator:function(e){return["default","primary","info","success","warning","error"].includes(e)}},orientation:{type:String,default:r.c.VERTICAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},created:function(){Object(s.validatePackage)(o.a)},setup:u?function(){return{v3:!!u}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props.orientation!==r.c.HORIZONTAL?"vertical":"horizontal";return(e={"k-card":!0})["k-card-"+this.$props.type]=this.$props.type!==r.d.DEFAULT,e["k-card-"+t]=!0,e}},render:function(e){var t=l||e,n=Object(s.getDefaultSlots)(this);return t("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:this.wrapperClass},[n])}},c=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoCardHeader",setup:a?function(){return{v3:!!a}}:void 0,render:function(e){return(s||e)("div",{class:"k-card-header"},[Object(r.getDefaultSlots)(this)])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoCardTitle",setup:a?function(){return{v3:!!a}}:void 0,render:function(e){return(s||e)("div",{class:"k-card-title"},[Object(r.getDefaultSlots)(this)])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoCardBody",setup:a?function(){return{v3:!!a}}:void 0,render:function(e){return(s||e)("div",{class:"k-card-body"},[Object(r.getDefaultSlots)(this)])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(1),r=n(0),o=n(15),s=i,a=s.h,l=s.version&&"3"===s.version[0],u={name:"KendoCardActions",props:{layout:{type:String,default:o.b.START,validator:function(e){return["stretched","start","center","end"].includes(e)}},orientation:{type:String,default:o.c.HORIZONTAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},setup:l?function(){return{v3:!!l}}:void 0,computed:{wrapperClass:function(){var e;return(e={"k-card-actions":!0})["k-card-actions-"+this.$props.layout]=!0,e["k-card-actions-"+(this.$props.orientation!==o.c.HORIZONTAL?"vertical":"horizontal")]=!0,e}},render:function(e){var t=a||e,n=Object(r.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[n])}},d=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoCardImage",props:{src:String},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=s||e;Object(r.getDefaultSlots)(this);return t("img",{class:"k-card-image",src:this.$props.src,attrs:this.v3?void 0:{src:this.$props.src}})}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoCardSubtitle",setup:a?function(){return{v3:!!a}}:void 0,render:function(e){return(s||e)("div",{class:"k-card-subtitle"},[Object(r.getDefaultSlots)(this)])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoCardFooter",setup:a?function(){return{v3:!!a}}:void 0,render:function(e){return(s||e)("div",{class:"k-card-footer"},[Object(r.getDefaultSlots)(this)])}},u=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(1),r=n(15),o=n(12),s=n(0),a=i,l=a.h,u=a.version&&"3"===a.version[0],d={name:"KendoAvatar",props:{type:{type:String,default:r.a.TEXT,validator:function(e){return["text","image","icon"].includes(e)}},border:Boolean,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}},themeColor:{type:String,default:"primary",validator:function(e){return["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse","inherit"].includes(e)}}},created:function(){Object(s.validatePackage)(o.a)},setup:u?function(){return{v3:!!u}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props,n=t.border,i=(t.type,t.size),r=t.rounded,o=t.fillMode,a=t.themeColor;return(e={"k-avatar-bordered":n,"k-avatar":!0})["k-avatar-"+(s.kendoThemeMaps.sizeMap[i]||i)]=i,e["k-rounded-"+(s.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-avatar-"+o]=o,e["k-avatar-"+o+"-"+a]=Boolean(o&&a),e},innerClass:function(){var e;return(e={})["k-avatar-"+this.$props.type]=this.$props.type,e}},render:function(e){var t=l||e,n=Object(s.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[t("span",{class:this.innerClass},[n])])}},c=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(1),r=n(39),o=n(0),s=n(12),a=i,l=a.h,u=a.version&&"3"===a.version[0],d={name:"KendoDrawer",props:{animation:{type:[Object,Boolean],default:!0},expanded:{type:Boolean,default:!1},dir:{type:String,default:"ltr"},item:[String,Object,Function],mode:{type:String,default:"overlay",validator:function(e){return["overlay","push"].includes(e)}},position:{type:String,default:"start",validator:function(e){return["start","end"].includes(e)}},items:Array,mini:{type:Boolean,default:!1},tabIndex:Number,width:{type:Number,default:240},miniWidth:{type:Number,default:50}},created:function(){Object(o.validatePackage)(s.a)},data:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,r=e.animation,s=e.mini,a=e.width,l=e.miniWidth,u=e.items,d=e.item,c=d?o.templateRendering.call(this,d,o.getListeners.call(this)):void 0;return{currentDir:"ltr",drawer:{expanded:t,mode:n,dir:this.currentDir,position:i,animation:r,mini:s,width:a,miniWidth:l,items:u,item:c}}},mounted:function(){this.currentDir=Object(o.getDir)(this.$el,this.$props.dir)},updated:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,r=e.animation,s=e.mini,a=e.width,l=e.miniWidth,u=e.items,d=e.item,c=d?o.templateRendering.call(this,d,o.getListeners.call(this)):void 0;this.drawer.expanded=t,this.drawer.mode=n,this.drawer.dir=this.currentDir,this.drawer.position=i,this.drawer.animation=r,this.drawer.mini=s,this.drawer.width=a,this.drawer.miniWidth=l,this.drawer.items=u,this.drawer.item=c},provide:function(){return{kendoDrawer:this.drawer}},computed:{drawerClassNames:function(){var e=this.$props,t=e.expanded,n=e.mode;return{"k-drawer-container":!0,"k-drawer-expanded":t,"k-drawer-overlay":"overlay"===n,"k-drawer-push":"push"===n,"k-drawer-mini":e.mini}}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=l||e,n=Object(o.getDefaultSlots)(this),i=this.$props,s=i.items,a=i.tabIndex,u=i.mode,d=i.expanded,c=i.item,p=c?o.templateRendering.call(this,c,o.getListeners.call(this)):void 0;return t("div",{class:this.drawerClassNames,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:a},tabindex:a},["overlay"===u&&d&&t("div",{class:"k-overlay",onClick:this.onOverlayClick,on:this.v3?void 0:{click:this.onOverlayClick}}),s&&t(r.a,{onSelect:this.handleSelect,on:this.v3?void 0:{select:this.handleSelect},item:p,attrs:this.v3?void 0:{item:p}}),n])},methods:{focus:function(){this.$el&&this.$el.focus()},handleSelect:function(e,t){this.$props.items&&this.$emit("select",{itemTarget:e,itemIndex:t,component:this})},onOverlayClick:function(e){this.$emit("overlayclick",e)}}},c=d},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var i=n(1),r=n(0),o=i,s=o.h,a=o.version&&"3"===o.version[0],l={name:"KendoDrawerContent",setup:a?function(){return{v3:!!a}}:void 0,render:function(e){return(s||e)("div",{class:"k-drawer-content"},[Object(r.getDefaultSlots)(this)])}},u=l},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h}));var i=n(1),r=n(0),o=n(50),s=n(161),a=n(30),l=n(12),u=function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=i,c=d.h,p=d.version&&"3"===d.version[0],h={name:"KendoStepper",model:{event:"changemodel"},props:{animationDuration:{type:[Boolean,Number],default:400},dir:String,disabled:Boolean,item:{type:[String,Object,Function,Boolean],default:void 0},items:Array,linear:Boolean,mode:{type:String,default:"steps",validator:function(e){return["steps","labels"].includes(e)}},orientation:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},value:{type:Number,default:0},modelValue:Number,successIcon:String,errorIcon:String},created:function(){Object(r.validatePackage)(l.a),this.focusedIdx=void 0!==this.computedValue?this.computedValue:0},mounted:function(){this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(r.isRtl)(this.$el)?"rtl":"ltr"},data:function(){return{currentDir:"ltr",focusedIdx:0,stepper:{},currentFocused:!1}},watch:{value:function(e){this.focusedIdx=e}},computed:{computedValue:function(){return void 0!==this.$props.modelValue?this.$props.modelValue:this.$props.value},isVertical:function(){return"vertical"===this.$props.orientation},numOfSteps:function(){var e=this.$props.items;return e?e.length:0},stepperClasses:function(){return{"k-stepper":!0,"k-stepper-linear":this.$props.linear}},stepperStyles:function(){return{display:"grid",gridTemplateColumns:this.isVertical?void 0:"repeat("+2*this.numOfSteps+", 1fr)",gridTemplateRows:this.isVertical?"repeat("+4*this.numOfSteps+", 1fr)":void 0}},listClasses:function(){return{"k-step-list":!0,"k-step-list-horizontal":!this.isVertical,"k-step-list-vertical":this.isVertical}},listStyles:function(){return{gridColumnStart:this.isVertical?"":1,gridColumnEnd:this.isVertical?"":-1,gridRowStart:this.isVertical?1:"",gridRowEnd:this.isVertical?-1:""}},progressbarStyles:function(){return{gridColumnStart:this.isVertical?"":2,gridColumnEnd:this.isVertical?"":2*this.numOfSteps,gridRowStart:this.isVertical?2:"",gridRowEnd:this.isVertical?4*this.numOfSteps-2:""}}},setup:p?function(){return{v3:!!p}}:void 0,render:function(e){var t=c||e,n=Object(r.getDefaultSlots)(this),i=this.$props,l=i.animationDuration,d=i.disabled,p=i.items,h=i.orientation,f=this.computedValue,v="number"==typeof l?l:!1!==l?a.a:a.b,m=p&&p.map((function(e,n){var i=this.$props.item?r.templateRendering.call(this,this.$props.item,r.getListeners.call(this)):void 0,s=t(o.a,{key:n,index:n,attrs:this.v3?void 0:{index:n,disabled:d||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===f,icon:e.icon,label:e.label,optional:e.optional,text:e.text,isValid:e.isValid,tabIndex:e.tabIndex,animationDuration:this.animationDuration,isVertical:this.isVertical,item:this.item,linear:this.linear,mode:this.mode,numOfSteps:this.numOfSteps,value:f,successIcon:this.successIcon,errorIcon:this.errorIcon},disabled:d||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===f,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus},onFocus:this.handleFocus,class:e.class,style:e.style,icon:e.icon,label:e.label,optional:e.optional,text:e.text,isValid:e.isValid,tabIndex:e.tabIndex,animationDuration:this.animationDuration,isVertical:this.isVertical,item:this.item,linear:this.linear,mode:this.mode,numOfSteps:this.numOfSteps,value:f,successIcon:this.successIcon,errorIcon:this.errorIcon});return r.getTemplate.call(this,{h:t,template:i,defaultRendering:s,additionalProps:u(u({},e),{disabled:d||e.disabled,focused:n===this.focusedIdx,current:n===f,value:f}),additionalListeners:{change:this.handleChange,focus:this.handleFocus}})}),this);return t("nav",{tabindex:this.currentFocused?-1:0,attrs:this.v3?void 0:{tabindex:this.currentFocused?-1:0,dir:this.currentDir},class:this.stepperClasses,style:this.stepperStyles,dir:this.currentDir,onFocusin:this.handleFocusin,on:this.v3?void 0:{focusin:this.handleFocusin,focusout:this.handleFocusout,keydown:this.handleKeyDown},onFocusout:this.handleFocusout,onKeydown:this.handleKeyDown},[t("ol",{class:this.listClasses,style:this.listStyles},[m||n]),t(s.ProgressBar,{style:this.progressbarStyles,animation:{duration:v},attrs:this.v3?void 0:{animation:{duration:v},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:h,reverse:"vertical"===h,value:f,disabled:d,tabIndex:-1},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:h,reverse:"vertical"===h,value:f,disabled:d,tabIndex:-1})])},methods:{focus:function(){this.$el&&Object(r.focusFirstFocusableChild)(this.$el)},dispatchChangeEvent:function(e,t){var n=t===this.computedValue-1,i=t===this.computedValue,r=t===this.computedValue+1,o=!this.linear||n||i||r;this.computedValue!==t&&!this.disabled&&o&&(this.focusedIdx=t,this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{component:this,event:e,value:t}))},handleChange:function(e){var t=e.value;this.dispatchChangeEvent(e,t)},handleFocus:function(e){this.disabled||this.$emit("focus",e,void 0)},handleEnter:function(e){var t={component:this,event:e,value:this.focusedIdx};this.dispatchChangeEvent(t,this.focusedIdx)},handleFocusin:function(){this.currentFocused=!0},handleFocusout:function(){this.currentFocused=!1},handleKeyDown:function(e){var t="rtl"===this.currentDir,n=this.focusedIdx,i=this.items.length-1;switch(e.keyCode){case r.Keys.left:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n<i&&(this.focusedIdx=n+1);break;case r.Keys.right:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n>0&&(this.focusedIdx=n-1);break;case r.Keys.up:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n>0&&(this.focusedIdx=n-1);break;case r.Keys.down:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n<i&&(this.focusedIdx=n+1);break;case r.Keys.home:e.preventDefault(),this.focusedIdx=0;break;case r.Keys.end:e.preventDefault(),this.focusedIdx=i;break;case r.Keys.space:case r.Keys.enter:e.preventDefault(),this.items[n].disabled||this.handleEnter(e)}}}},f=h},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyColorVue2=t.ApplyColor=void 0;var a=s(n(1)),l=a.h,u=a.version&&"3"===a.version[0],d=n(21),c=n(9),p=n(4),h=n(10),f={name:"KendoApplyColor",props:{view:Object,color:String,colorPickerProps:Object,commandName:String,dir:String},inject:{kendoLocalizationService:{default:null}},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=l||e,n=this.$props,r=n.colorPickerProps,o=n.dir,s=r.title,a=p.provideLocalizationService(this),u=i(i({},r),{dir:o,showButtons:!1,showClearButton:!1,showPreview:!1,title:s?a.toLanguageString(s,h.messages[s]):s});return t(d.ColorPicker,i({onChange:this.onChange,onActivecolorclick:this.onChange,on:this.v3?void 0:{change:this.onChange,activecolorclick:this.onChange},attrs:this.v3?void 0:u},u))},methods:{onChange:function(e){var t=this.$props,n=t.view,i=t.color,r=t.colorPickerProps,o=t.commandName;if(n){c.applyInlineStyle({style:i,value:e.value},o)(n.state,n.dispatch);var s=r.view;"palette"===(void 0===s?"palette":s)&&n.focus()}}}};t.ApplyColorVue2=f;var v=f;t.ApplyColor=v},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var i=n(35),r=n(1),o=n(8),s=r,a=s.h,l=s.version&&"3"===s.version[0],u=(s.ref,{created:function(){Object(i.validatePackage)(o.a)},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){return(a||e)("span",{class:"k-input-separator"})}}),d=u},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return v}));var i=n(1),r=n(5),o=n(0),s=n(4),a=n(2),l=n(46),u=n(8),d=i,c=d.h,p=d.version&&"3"===d.version[0],h=d.ref,f=d.inject,v={name:"KendoSlider",model:{event:"changemodel"},emits:{changemodel:null,"update:modelValue":null,change:null,blur:null,focus:null},props:{modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:void 0},name:String,buttons:Boolean,tabIndex:Number,disabled:Boolean,dir:String,step:Number,min:{type:Number,required:!0},max:{type:Number,required:!0},value:Number,vertical:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String},provide:function(){return{kendoMin:this.$props.min,kendoMax:this.$props.max,kendoVertical:this.$props.vertical}},inject:{kendoLocalizationService:{default:null}},data:function(){return{currentValue:void 0,currentFocused:!1,currentDir:"ltr"}},computed:{computedValue:function(){var e=void 0!==this.$props.value?this.$props.value:this.currentValue,t=this.$props,n=t.min,i=t.max;return void 0===e?e:Math.min(Math.max(e,n),i)},sliderTrack:function(){return this._sliderTrack}},created:function(){Object(o.validatePackage)(u.a),void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:void 0!==this.$props.defaultValue?this.$data.currentValue=this.$props.defaultValue:this.$data.currentValue=this.$props.min,this.currentFocused=!1,this.currentDir=this.$props.dir},mounted:function(){if(this._sliderTrack=this.$refs.sliderTrack,this.$el&&(this.draggable=this.$refs.draggable),!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},updated:function(){this.$el&&(this.draggable=this.$refs.draggable)},setup:p?function(){return{v3:!!p,inputRef:h(null),kendoLocalizationService:f("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=this,i=c||e,l=Object(s.provideLocalizationService)(this),u=(this.computedValue-this.$props.min)/(this.$props.max-this.$props.min)*100,d=Object(o.getDefaultSlots)(this);return i("div",{"aria-valuemin":this.$props.min,attrs:this.v3?void 0:{"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,"aria-valuenow":this.computedValue,"aria-disabled":this.$props.disabled?"true":void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,dir:this.currentDir,role:"slider",id:this.$props.id,tabindex:Object(o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0)},"aria-valuemax":this.$props.max,"aria-valuenow":this.computedValue,"aria-disabled":this.$props.disabled?"true":void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,dir:this.currentDir,role:"slider",id:this.$props.id,style:this.$props.style,tabindex:Object(o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDown},onBlur:this.onBlur,onKeydown:this.onKeyDown,class:Object(o.classNames)("k-slider k-widget",{"k-focus":this.currentFocused,"k-disabled":this.$props.disabled,"k-slider-horizontal":!this.$props.vertical,"k-slider-vertical":this.$props.vertical},this.$props.className)},[i("div",{class:Object(o.classNames)("k-slider-wrap")},[this.$props.buttons&&i(r.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",rounded:"full",title:l.toLanguageString(a.A,a.x[a.A])},tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",style:{position:"relative"},rounded:"full",class:"k-button-decrease",title:l.toLanguageString(a.A,a.x[a.A]),onClick:this.decrement,on:this.v3?void 0:{click:this.decrement}}),i(o.Draggable,{onDrag:this.dragOver,on:this.v3?void 0:{drag:this.dragOver,press:this.dragStart},onPress:this.dragStart,ref:"draggable"},this.v3?function(){return[i("div",{class:"k-slider-track-wrap",style:{touchAction:"none"}},[d&&i("ul",{class:"k-reset k-slider-items"},[d]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:u+"%"}:{width:u+"%"}}),i("a",{class:"k-draghandle",title:l.toLanguageString(a.B,a.x[a.B]),attrs:n.v3?void 0:{title:l.toLanguageString(a.B,a.x[a.B])},style:n.$props.vertical?{bottom:u+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=u+"%",t.zIndex=1,t)})])])]}:[i("div",{class:"k-slider-track-wrap",style:{touchAction:"none"}},[d&&i("ul",{class:"k-reset k-slider-items"},[d]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:u+"%"}:{width:u+"%"}}),i("a",{class:"k-draghandle",title:l.toLanguageString(a.B,a.x[a.B]),attrs:n.v3?void 0:{title:l.toLanguageString(a.B,a.x[a.B])},style:n.$props.vertical?{bottom:u+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=u+"%",t.zIndex=1,t)})])])]),this.$props.buttons&&i(r.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",title:l.toLanguageString(a.C,a.x[a.C])},tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",style:{position:"relative"},class:"k-button-increase",title:l.toLanguageString(a.C,a.x[a.C]),onClick:this.increment,on:this.v3?void 0:{click:this.increment}})])])},methods:{focus:function(){this.$el&&this.$el.focus()},isLabel:function(e){for(var t=e;t;){if(Boolean(t.getAttribute(l.a)))return!0;t=t.parentElement}return!1},onFocus:function(e){this.currentFocused=!0,this.$emit("focus",e)},onBlur:function(e){this.currentFocused=!1,this.$emit("blur",e)},onKeyDown:function(e){var t=void 0;e.keyCode===o.Keys.left||e.keyCode===o.Keys.down?t=this.currentValue-(this.$props.step||0):e.keyCode===o.Keys.right||e.keyCode===o.Keys.up?t=this.currentValue+(this.$props.step||0):e.keyCode===o.Keys.home?t=this.$props.min:e.keyCode===o.Keys.end&&(t=this.$props.max),void 0!==t&&(e.preventDefault(),this.change(e,t))},decrement:function(e){e.preventDefault(),this.change(e,this.currentValue-(this.$props.step||0))},increment:function(e){e.preventDefault(),this.change(e,this.currentValue+(this.$props.step||0))},dragStart:function(e){this.isLabel(e.originalEvent.target)||(e.isTouch&&e.originalEvent.preventDefault(),this.drag(e))},dragOver:function(e){e.originalEvent.preventDefault(),this.drag(e)},drag:function(e){var t=this.draggable.element.getBoundingClientRect(),n=(this.$props.vertical?t.bottom-e.clientY:"rtl"===this.currentDir?t.right-e.clientX:e.clientX-t.left)/(this.$props.vertical?t.height:t.width);this.change(e,this.$props.min+n*(this.$props.max-this.$props.min))},change:function(e,t){t=Math.min(Math.max(t,this.$props.min),this.$props.max),this.currentValue=t,this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{event:e,value:t,component:this,target:{name:this.$props.name,value:t}})}}},m=v},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return h}));var i=n(1),r=n(0),o=n(8),s=n(4),a=n(2),l=i,u=l.h,d=l.version&&"3"===l.version[0],c=l.ref,p=l.inject,h={name:"KendoCheckbox",emits:{changemodel:null,"update:modelValue":null,change:null,focus:null,blur:null},model:{event:"changemodel"},inject:{kendoLocalizationService:{default:null}},props:{checked:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,default:void 0},defaultValue:{type:[String,Boolean],default:void 0},modelValue:{type:[String,Boolean],default:void 0},dir:String,disabled:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String,label:String,labelRender:[String,Number,Boolean,Object],labelPlacement:String,labelOptional:Boolean,name:String,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},tabIndex:Number,value:{type:[String,Boolean],default:void 0},validationMessage:String,required:Boolean,valid:{type:Boolean,default:void 0},validityStyles:{type:Boolean,default:!0}},data:function(){return{valueDuringOnChange:void 0,currentDir:"ltr",currentChecked:void 0,currentValue:void 0}},created:function(){Object(r.validatePackage)(o.a),this.calculatedId=Object(r.guid)(),void 0!==this.$props.defaultChecked&&(this.currentChecked=this.$props.defaultChecked),void 0!==this.$props.defaultValue&&(this.currentValue=this.$props.defaultValue),this.currentDir=this.$props.dir},computed:{valueIsBooleanOrNull:function(){var e=this.$props.value;return"boolean"==typeof e||null===e},isCheckedControlled:function(){return void 0!==this.$props.checked},isValueControlled:function(){return void 0!==this.$props.value&&this.valueIsBooleanOrNull},computedValue:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentValue},computedChecked:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.checked?this.$props.checked:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentChecked},useValueAsChecked:function(){return void 0===this.computedChecked&&this.computedValue},checkedProp:function(){return this.useValueAsChecked?this.computedValue:this.computedChecked},valueProp:function(){var e=this.$props.value;return this.useValueAsChecked||this.isValueControlled?null===e?e:void 0:e||this.computedValue},indeterminateProp:function(){return null===this.checkedProp||null===this.valueProp},isValid:function(){var e=this.$props.valid;return void 0!==e?e:!this.$props.required||!!this.computedChecked}},mounted:function(){if(this.input=Object(r.getRef)(this,"input"),!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}this.setValidity()},updated:function(){this.input||(this.input=Object(r.getRef)(this,"input")),this.setValidity()},setup:d?function(){return{v3:!!d,inputRef:c(null),kendoLocalizationService:p("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=u||e,i=this.$props,o=i.ariaDescribedBy,l=i.ariaLabelledBy,d=i.disabled,c=i.id,p=i.label,h=i.labelRender,f=i.labelPlacement,v=i.name,m=i.labelOptional,g=i.tabIndex,b=i.required,y=i.validityStyles,k=i.size,w=i.rounded,S=Object(r.getDefaultSlots)(this),C=p;this.localizationService=Object(s.provideLocalizationService)(this),this.defaultValidationMessage=this.localizeMessage(a.b),this.optionalMessage=this.localizeMessage(a.a);var x=Object(r.classNames)({"k-disabled":d}),O=Object(r.classNames)(((t={"k-checkbox":!0})["k-checkbox-"+r.kendoThemeMaps.sizeMap[k]]=k,t["k-rounded-"+r.kendoThemeMaps.roundedMap[w]]=w,t["k-indeterminate"]=this.indeterminateProp,t["k-invalid k-invalid"]=!(this.isValid||void 0!==y||!0===y),t)),$=function(){return n("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",name:v,id:c||this.calculatedId,"aria-labelledby":l,"aria-describedby":o,disabled:d,tabindex:Object(r.getTabIndex)(g,d),role:"checkbox",required:void 0!==b&&b,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":d||void 0},class:O,name:v,id:c||this.calculatedId,ref:Object(r.setRef)(this,"input"),"aria-labelledby":l,"aria-describedby":o,checked:this.v3?Boolean(this.checkedProp):null,domProps:this.v3?void 0:{checked:Boolean(this.checkedProp)},disabled:d,tabindex:Object(r.getTabIndex)(g,d),role:"checkbox",required:void 0!==b&&b,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":d||void 0,onChange:this.onChangeHandler,on:this.v3?void 0:{change:this.onChangeHandler,keydown:this.onKeyDownHandler,focus:this.onFocusHandler,blur:this.onBlurHandler},onKeydown:this.onKeyDownHandler,onFocus:this.onFocusHandler,onBlur:this.onBlurHandler})};if(h){var I=h?r.templateRendering.call(this,h,r.getListeners.call(this)):null;C=r.getTemplate.call(this,{h:n,template:I})}var T=function(){return void 0!==C?n("label",{class:"k-checkbox-label",for:c||this.calculatedId,attrs:this.v3?void 0:{for:c||this.calculatedId},style:{userSelect:"none"}},[C,m&&n("span",{class:"k-label-optional"},[this.optionalMessage])]):null};return n("span","before"===f?{class:x,dir:"rtl",attrs:this.v3?void 0:{dir:"rtl"}}:{class:x,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir}},[$.call(this),T.call(this),S])},methods:{setValidity:function(){var e=void 0!==this.$props.valid?this.$props.valid:!this.$props.required||!!this.computedChecked;this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(e?"":this.$props.validationMessage||this.defaultValidationMessage)},localizeMessage:function(e){return this.localizationService.toLanguageString(e,a.x[e])},focusElement:function(){this.input&&this.input.focus()},setValue:function(e,t){this.$data.valueDuringOnChange=t;var n=this;this.$nextTick((function(){if(n.isCheckedControlled||n.isValueControlled||n.$props.disabled||(n.currentValue=t,n.currentChecked=t),!n.$props.disabled){var i={element:n.$el,focus:null};n.$emit("changemodel",t),n.$emit("update:modelValue",t),n.$emit("change",{e:e,handle:i,value:t})}this.$data.valueDuringOnChange=void 0}))},onChangeHandler:function(e){var t=e.target.checked;this.setValue(e,t)},onKeyDownHandler:function(e){if(!this.$props.disabled){var t=e.keyCode,n=e.currentTarget.checked;t===r.Keys.space&&(e.preventDefault(),e.stopPropagation(),this.setValue(e,!n))}},onBlurHandler:function(e){this.$props.disabled||this.$emit("blur",e)},onFocusHandler:function(e){this.$props.disabled||this.$emit("focus",e)}}},f=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return c}));var i=n(1),r=n(47),o=n(0),s=n(8),a=i,l=a.h,u=a.version&&"3"===a.version[0],d=a.ref,c=(a.inject,{name:"KendoRadioGroup",props:{ariaLabelledBy:String,ariaDescribedBy:String,dataItems:Array,defaultValue:[String,Number,Object],dir:String,disabled:Boolean,labelPlacement:String,item:{type:String,default:void 0},layout:{type:String,default:"vertical",validator:function(e){return["horizontal","vertical"].includes(e)}},name:String,modelValue:[String,Number,Object],value:[String,Number,Object],valid:{type:Boolean,default:void 0}},emits:{changemodel:null,"update:modelValue":null,change:null,focus:null,blur:null},model:{event:"changemodel"},created:function(){this.radioGroupName=Object(o.guid)(),Object(o.validatePackage)(s.a),this.stateChecked=this.$props.defaultValue},watch:{value:function(e){void 0===e&&(this.stateChecked=this.$props.defaultValue)}},mounted:function(){this.rtl=Object(o.isRtl)(this.$el)},computed:{radioGroupClasses:function(){var e=this.$props.layout;return{"k-radio-list":!0,"k-list-horizontal":"horizontal"===e,"k-list-vertical":"vertical"===e||void 0===e}},checkedRadioValue:function(){var e=this.$props.value;return void 0!==e?e:void 0!==this.$props.modelValue?this.$props.modelValue:this.stateChecked},currentDir:function(){var e=this.$props.dir;return e||(this.rtl?"rtl":void 0)}},data:function(){return{rtl:!1,stateChecked:void 0}},methods:{focusElement:function(){this.$el&&Object(o.focusFirstFocusableChild)(this.$el)},handleChange:function(e){var t=e.value;void 0!==this.$props.value||this.$props.disabled||(this.stateChecked=t),this.$props.disabled||(this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{event:e,value:t}))},handleFocus:function(e){this.$props.disabled||this.$emit("focus",e)},handleBlur:function(e){this.$props.disabled||this.$emit("blur",e)}},setup:u?function(){return{v3:!!u,inputRef:d(null)}}:void 0,render:function(e){var t=l||e,n=this.$props,i=n.ariaLabelledBy,s=n.ariaDescribedBy,a=n.dataItems,u=n.disabled,d=n.name,c=n.labelPlacement,p=n.valid,h=a&&a.map((function(e,n){var i=this.checkedRadioValue===e.value,s=null===this.checkedRadioValue||void 0===this.checkedRadioValue,a=o.templateRendering.call(this,this.$props.item||e.item,o.getListeners.call(this));return t(r.a,{class:Object(o.classNames)("k-radio-item",{"k-disabled":e.disabled||u}),style:e.style,key:n,item:a,attrs:this.v3?void 0:{item:a,role:"radio",tag:"li",valid:p,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!u),labelPlacement:e.labelPlacement?e.labelPlacement:c,tabIndex:e.tabIndex?e.tabIndex:s&&0===n||i?0:-1,index:n,name:d||e.name||this.radioGroupName},role:"radio",tag:"li",valid:p,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!u),labelPlacement:e.labelPlacement?e.labelPlacement:c,tabIndex:e.tabIndex?e.tabIndex:s&&0===n||i?0:-1,index:n,name:d||e.name||this.radioGroupName,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},onFocus:this.handleFocus,onBlur:this.handleBlur},this.v3?function(){return[e.content]}:[e.content])}),this);return t("ul",{role:"radiogroup",attrs:this.v3?void 0:{role:"radiogroup",dir:this.currentDir,"aria-labelledby":i,"aria-describedby":s},class:this.radioGroupClasses,dir:this.currentDir,"aria-labelledby":i,"aria-describedby":s},[h])}}),p=c},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return d}));var i=n(1),r=n(0),o=n(8),s=function(){return(s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},a=i,l=a.h,u=a.version&&"3"===a.version[0],d={name:"KendoTextArea",model:{event:"changemodel"},emits:{input:null,change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{ariaDescribedBy:String,ariaLabelledBy:String,autoSize:Boolean,modelValue:{type:[String,Array,Number],default:void 0},defaultValue:[String,Number],dir:String,disabled:Boolean,readOnly:Boolean,rows:Number,id:String,name:String,validationMessage:String,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},required:Boolean,placeholder:String,tabIndex:Number,valid:{type:Boolean,default:void 0},value:[String,Array,Number],validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:r.templateDefinition,inputSuffix:r.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String,flow:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},resizable:{type:String,default:"vertical",validator:function(e){return["both","horizontal","vertical","none"].includes(e)}}},created:function(){Object(r.validatePackage)(o.a),this.calculatedId=Object(r.guid)()},computed:{rootClassName:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,s=t.required,a=t.showLoadingIcon,l=t.resizable,u=t.autoSize,d=!0===this.validityStyles&&!this.isValid;return(e={"k-input":!0,"k-textarea":!0})["k-input-"+(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-disabled"]=this.$props.disabled,e["k-invalid"]=d,e["k-required"]=s,e["k-loading"]=a,e["k-resize-"+l]=u?"none":l,e["!k-flex-col"]="vertical"===this.flow,e["!k-flex-row"]="horizontal"===this.flow,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0,"!k-resize-none":!0,"k-flex":!0})[this.inputClass]=this.inputClass,e},prefixRenderClass:function(){return{"k-input-prefix":!0,"!k-flex-col":"horizontal"===this.flow,"!k-flex-row":"vertical"===this.flow,"!k-align-items-start":"horizontal"===this.flow}},suffixRenderClass:function(){return{"k-input-suffix":!0,"!k-flex-col":"horizontal"===this.flow,"!k-flex-row":"vertical"===this.flow,"!k-align-items-start":"horizontal"===this.flow}},suffixIconWrapClass:function(){return{"k-flex-wrap":!0,"!k-align-items-start":!0}},computedValue:function(){return void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.currentValue},isValid:function(){return void 0!==this.valid?this.valid:!this.required||!!this.computedValue}},data:function(){return{currentValue:this.$props.defaultValue,textAreaHeight:"auto",currentDir:"ltr"}},watch:{size:function(){this.textAreaHeight="auto"}},mounted:function(){this.element=this.v3?this.elementRef:this.$refs.element,this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(r.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.element=this.v3?this.elementRef:this.$refs.element,this.setValidity()},setup:u?function(){return{v3:!!u}}:void 0,render:function(e){var t=this,n=l||e,i=this.$props,o=i.ariaDescribedBy,a=i.ariaLabelledBy,u=i.autoSize,d=i.disabled,c=i.readOnly,p=i.required,h=i.rows,f=i.id,v=i.name,m=i.placeholder,g=i.tabIndex,b=i.iconName,y=i.showValidationIcon,k=i.showLoadingIcon,w=i.showClearButton,S=s({id:f||this.calculatedId,name:v,disabled:d,rows:h,placeholder:m,readOnly:c,required:p,tabIndex:Object(r.getTabIndex)(g,d),"aria-labelledby":a,"aria-describedby":o,"aria-multiline":!0,"aria-disabled":d||void 0},this.$attrs),C=r.templateRendering.call(this,this.$props.inputPrefix,r.getListeners.call(this)),x=r.templateRendering.call(this,this.$props.inputSuffix,r.getListeners.call(this)),O=r.getTemplate.call(this,{h:n,template:C,additionalProps:{value:this.computedValue,valid:this.isValid}}),$=r.getTemplate.call(this,{h:n,template:x,additionalProps:{value:this.computedValue,valid:this.isValid}}),I=n("textarea",s(s({},S),{attrs:this.v3?void 0:S,class:this.inputInnerClass,ref:this.v3?function(e){t.elementRef=e}:"element",style:u?{overflow:"hidden",height:this.textAreaHeight}:{},value:this.v3?this.computedValue:null,domProps:this.v3?void 0:{value:this.computedValue},onChange:this.handleChange,onInput:this.handleInput,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur,input:this.handleInput},onFocus:this.handleFocus,onBlur:this.handleBlur}));return n("span",{class:this.rootClassName,dir:"rtl"===this.currentDir?this.currentDir:"",attrs:this.v3?void 0:{dir:"rtl"===this.currentDir?this.currentDir:""},style:this.$attrs.style},[this.$props.inputPrefix&&n("span",{class:this.prefixRenderClass},[O]),n("span",{class:"k-hstack k-flex"},[b&&n("span",{class:"k-flex-wrap"},[n("span",{class:"k-input-icon k-icon k-i-"+b})]),I,y&&this.isValid&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-validation-icon k-icon k-i-check"})]),y&&!this.isValid&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-validation-icon k-icon k-i-warning"})]),k&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-loading-icon k-icon k-i-loading"})]),w&&this.computedValue&&n("span",{class:this.suffixIconWrapClass},[n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})])])]),this.$props.inputSuffix&&n("span",{class:this.suffixRenderClass},[$])])},methods:{setValidity:function(){this.element&&this.element.setCustomValidity&&this.element.setCustomValidity(this.isValid?"":this.validationMessage||""),this.element&&(this.textAreaHeight=this.element.scrollHeight+"px")},clearClick:function(e){this.emitUpdate(e,"change","")},focus:function(){this.element&&this.element.focus()},emitUpdate:function(e,t,n){var i=n;this.$props.disabled||(this.textAreaHeight="auto",this.currentValue=i),this.$props.disabled||(this.$emit("changemodel",i),this.$emit("update:modelValue",i),this.$emit(t,{event:e,component:this,name:this.element.name,value:i}))},handleChange:function(e){this.emitUpdate(e,"change",e.target.value)},handleInput:function(e){this.emitUpdate(e,"input",e.target.value)},handleFocus:function(e){this.$props.disabled||this.$emit("focus",{event:e,component:this,name:this.element.name})},handleBlur:function(e){this.$props.disabled||this.$emit("blur",{event:e,component:this,name:this.element.name})}}},c=d},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t),n.d(t,"AutoComplete",(function(){return je})),n.d(t,"AutoCompleteVue2",(function(){return Pe})),n.d(t,"DropDownList",(function(){return ae})),n.d(t,"DropDownListVue2",(function(){return se})),n.d(t,"ComboBox",(function(){return Ie})),n.d(t,"ComboBoxVue2",(function(){return $e})),n.d(t,"MultiSelect",(function(){return it})),n.d(t,"MultiSelectVue2",(function(){return nt}));var i,r,o=n(1),s=n(0),a=n(5),l=n(14),u=o,d=u.h,c=u.version&&"3"===u.version[0],p={name:"list-container",emits:{mousedown:null,blur:null,open:null,close:null},props:{width:[String,Number],dir:String,itemsCount:Number,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}}},created:function(){this.kendoAnchorRef=void 0},setup:c?function(){return{v3:!!c}}:void 0,methods:{onMouseDown:function(e){this.$emit("mousedown",e)},onBlur:function(e){this.$emit("blur",e)},onOpen:function(e){this.$emit("open",e)},onClose:function(e){this.$emit("close",e)}},render:function(e){var t=this,n=d||e,i=Object(s.getDefaultSlots)(this),r=this.$props,o=(r.onMouseDown,r.onBlur,r.width),a=r.dir,u=r.popupSettings,c=u.popupClass,p=u.className,h=u.animate,f=u.anchor,v=u.show,m=(u.open,u.close,u.itemsCount);return n(l.Popup,{style:{width:o,direction:a},className:p,attrs:this.v3?void 0:{className:p,animate:h,anchor:f,show:v,contentKey:m},animate:h,anchor:f,show:v,contentKey:m,onOpen:this.onOpen,on:this.v3?void 0:{open:this.onOpen,close:this.onClose},onClose:this.onClose},this.v3?function(){return[n("div",{class:c,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])]}:[n("div",{class:c,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])])}},h=o,f=h.h,v=h.version&&"3"===h.version[0],m=h.ref,g=s.kendoThemeMaps.sizeMap,b=s.kendoThemeMaps.roundedMap,y={name:"list-filter",emits:{keydown:null,change:null},props:{value:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},computed:{spanClass:function(){var e,t=this.$props,n=t.size,i=t.rounded,r=t.fillMode;return(e={"k-searchbox k-input":!0})["k-input-"+(g[n]||n)]=n,e["k-rounded-"+(b[i]||i)]=i,e["k-input-"+r]=r,e}},setup:v?function(){return{v3:!!v,inputRef:m(null)}}:void 0,methods:{onKeyDown:function(e){this.$emit("keydown",e)},onChange:function(e){this.$emit("change",e)}},mounted:function(){this.input=Object(s.getRef)(this,"input")},render:function(e){var t=f||e;return t("span",{class:"k-list-filter"},[t("span",{class:this.spanClass},[t("span",{class:"k-input-icon k-icon k-i-search"}),t("input",{ref:Object(s.setRef)(this,"input"),type:"text",attrs:this.v3?void 0:{type:"text"},value:this.v3?this.$props.value||"":null,domProps:this.v3?void 0:{value:this.$props.value||""},class:"k-input-inner",onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,keydown:this.onKeyDown},onKeydown:this.onKeyDown})])])}},k=function(e){return null!=e},w=function(e,t,n){if(!k(e))return!1;var i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)},S=function(e,t,n){var i=-1;if(t){t=t.toLowerCase();for(var r=0;r<e.length;r++){var o=(x(e[r],n)||"")+"";if(o&&o.toLowerCase().startsWith(t)){i=r;break}}}return i},C=function(e,t,n,i){void 0===i&&(i=!1);var r=function(e){return i?e:e.toLowerCase()};return e.findIndex((function(e){return n?r(x(e,n))===r(t):r(t)===r(e.toString())}))},x=function(e,t){if(t&&k(e)){var n=t.split("."),i=e;return n.forEach((function(e){i=i?i[e]:void 0})),i}return e},O=function(e,t,n){t.forEach((function(t){var i=e.findIndex((function(e){return $(e,t,n)}));-1!==i&&e.splice(i,1)}))},$=function(e,t,n){return e===t||k(e)===k(t)&&x(e,n)===x(t,n)},I=function(e,t,n){if(t){var i=C(e,t,n,!0);return-1!==i?e[i]:e[S(e,t,n)]}return e[0]},T=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},D=o,V=D.h,M=D.version&&"3"===D.version[0],R={name:"list-default-item",props:{defaultItem:[Object,String],textField:String,selected:Boolean},setup:M?function(){return{v3:!!M}}:void 0,methods:{onMouseDown:function(e){e.preventDefault()},onClick:function(e){this.$emit("defaultitemclick",e)}},render:function(e){var t=V||e,n=this.$props,i=n.selected,r=n.defaultItem,o=n.textField;return t("div",{onClick:this.onClick,on:this.v3?void 0:{click:this.onClick,mousedown:this.onMouseDown},onMousedown:this.onMouseDown,style:{position:"unset"},class:Object(s.classNames)("k-list-optionlabel",{"k-selected":i})},[x(r,o)||""])}},B=function(){return(B=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},N=o,P=N.h,j=N.version&&"3"===N.version[0],E={name:"list-item",props:{id:String,index:Number,dataItem:[Object,String,Number],textField:String,focused:Boolean,selected:Boolean,render:Object},setup:j?function(){return{v3:!!j}}:void 0,computed:{itemClass:function(){return{"k-list-item":!0,"k-selected":this.$props.selected,"k-focus":this.$props.focused}}},methods:{handleClick:function(e){this.$emit("itemclick",this.$props.index,e)}},render:function(e){var t=P||e,n=this.$props.selected,i=t("li",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:"option","aria-selected":n},role:"option","aria-selected":n,class:Object(s.classNames)("k-list-item",{"k-selected":n,"k-focus":this.$props.focused}),onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},style:{position:"unset"}},[t("span",{class:"k-list-item-text"},[x(this.$props.dataItem,this.$props.textField).toString()])]);return s.getTemplate.call(this,{h:t,template:this.$props.render,defaultRendering:i,additionalProps:B(B({},this.$props),{itemClass:this.itemClass}),additionalListeners:{click:this.handleClick}})}},A=n(4),L="dropdowns.nodata",F="dropdowns.clear",z=((i={})[F]="clear",i["dropdowns.expandbutton"]="expand button",i[L]="NO DATA FOUND.",i),K=o,_=K.h,H=K.version&&"3"===K.version[0],W=K.ref,U=K.inject,q={name:"list",emits:{listclick:null,scroll:null},props:{id:String,show:Boolean,dataItems:Array,value:[Object,String,Number,Boolean,Array],textField:String,valueField:String,optionsGuid:String,wrapperCssClass:String,wrapperStyle:Object,listStyle:Object,skip:Number,focusedIndex:Number,highlightSelected:{type:Boolean,default:!0},itemRender:[String,Function,Object],noDataRender:[String,Function,Object],scroller:Boolean},inject:{kendoLocalizationService:{default:null}},setup:H?function(){return{v3:!!H,listRef:W(null),kendoLocalizationService:U("kendoLocalizationService",{})}}:void 0,mounted:function(){this.list=Object(s.getRef)(this,"list")},methods:{handleClick:function(e,t){this.$emit("listclick",e,t)},handleScroll:function(e){this.$emit("scroll",e)}},render:function(e){var t=_||e,n=Object(s.getDefaultSlots)(this),i=Object(A.provideLocalizationService)(this),r=this.$props,o=r.id,a=r.show,l=r.wrapperCssClass,u=r.wrapperStyle,d=r.listStyle,c=(r.listRef,function(){var e=this.$props,n=e.textField,i=e.valueField,r=e.optionsGuid,o=e.skip,s=void 0===o?0:o,a=e.focusedIndex,l=e.highlightSelected,u=e.value,d=e.itemRender,c=Array.isArray(u);return this.$props.dataItems.map((function(e,o){var p=s+o,h=l&&(!c&&$(e,u,i)||c&&-1!==u.findIndex((function(t){return $(t,e,i)})));return t(E,{id:"option-"+r+"-"+p,attrs:this.v3?void 0:{id:"option-"+r+"-"+p,dataItem:e,selected:h,focused:a===o,index:p,textField:n,render:d},dataItem:e,selected:h,focused:a===o,index:p,key:p,onItemclick:this.handleClick,on:this.v3?void 0:{itemclick:this.handleClick},textField:n,render:d})}),this)}.call(this));return c.length?t("div",{class:l,style:u,unselectable:"on",attrs:this.v3?void 0:{unselectable:"on"},onScroll:this.handleScroll,on:this.v3?void 0:{scroll:this.handleScroll}},[t("ul",{id:o,attrs:this.v3?void 0:{id:o,role:"listbox","aria-live":"polite","aria-hidden":!a||void 0},role:"listbox","aria-live":"polite","aria-hidden":!a||void 0,class:"k-list-ul",ref:Object(s.setRef)(this,"list"),style:d},[c]),n]):function(){var e=this.$props.noDataRender,n=t("div",{class:"k-nodata"},[t("div",[i.toLanguageString(L,z[L])])]);return s.getTemplate.call(this,{h:t,template:e,defaultRendering:n})}.call(this)}},G=function(){function e(){var e=this;this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(t){var n=e;n.container=t,t&&(t.setAttribute("unselectable","on"),setTimeout(n.calcScrollElementHeight.bind(n),0))},this.calcScrollElementHeight=function(){e.scrollSyncing=!0;var t=!1;e.itemHeight=e.list?e.list.children[0].offsetHeight:e.itemHeight,e.containerHeight=Math.min(1533915,e.itemHeight*e.total);var n=e.containerHeight;return e.scrollElement&&(t=e.scrollElement.style.height!==n+"px")&&(e.scrollElement.style.height=n+"px"),e.scrollSyncing=!1,t},this.scrollHandler=this.scrollHandler.bind(this)}return Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!1,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.container&&(this.calcScrollElementHeight(),this.container.scrollTop=0,this.translateTo(0))},e.prototype.scrollToEnd=function(){this.container&&this.list&&(this.calcScrollElementHeight(),this.container.scrollTop=this.container.scrollHeight-this.container.offsetHeight,this.translateTo(this.container.scrollHeight))},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,i=this.container.scrollTop,r=this.listTranslate,o=i-r;if(!(o>n)){for(t=0;t<this.skip&&!(r+n+o<=i);t++)r-=n;if(r=this.validateTranslate(r),this.skip-t<=0&&r>=i)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);r!==this.listTranslate&&(this.translateTo(r),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,i=this.container.scrollTop,r=this.listTranslate,o=this.list.children.length;for(t=0;t<o&&!(r+n>=i);t++)r+=n;r=this.validateTranslate(r),t>=o&&this.skip+t>=this.total?(this.translateTo(r),this.changePage(this.total-1,e)):r!==this.listTranslate&&(this.translateTo(r),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),i=this.containerHeight*t/this.total;i=this.validateTranslate(i),this.translateTo(i),this.changePage(n,e)},e.prototype.scrollHandler=function(e){var t=this.container?this.container.scrollTop:0,n=this.prevScrollPos;this.prevScrollPos=t,this.ScrollChange(e),this.enabled&&this.list&&this.container&&!this.scrollSyncing&&(t-n<=0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):t-n>0&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e))},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),e=Math.min(this.containerHeight,e)},e}(),J=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===s.Keys.up||t===s.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===s.Keys.down||t===s.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===s.Keys.home?0:t===s.Keys.end?e.max:void 0},e.prototype.next=function(e){return k(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),X={name:"@progress/kendo-vue-dropdowns",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428851,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},Y=function(){return(Y=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Z=function(){function e(e){var t=this;this.vs=new G,this.navigation=new J,this.handleItemClick=function(e,n){var i=t.initState();i.event=n,t.component.handleItemSelect(e,i),t.togglePopup(i),t.applyState(i)},this.handleFocus=function(e){if(!t.component.currentFocused){var n=t.initState();n.data.currentFocused=!0,n.events.push({type:"focus"}),n.event=e,t.applyState(n)}},this.filterChanged=function(e,n){var i=t.component.$props,r=i.textField;i.filterable&&n.events.push({type:"filterchange",filter:{field:r,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.$props,i=void 0!==n.opened?n.opened:t.component.currentOpened;void 0===n.opened&&(e.data.currentOpened=!i),i?e.events.push({type:"close"}):(e.events.push({type:"open"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var i=t.initState();i.event=n,t.triggerOnPageChange(i,e.skip,e.take),t.applyState(i)},this.scrollChange=function(e){t.component.$emit("scroll",e)},this.scrollToVirtualItem=function(e,n){var i=t.vs;if(i.enabled=!1,0===e.skip)i.reset();else if(e.skip+e.pageSize===e.total)i.scrollToEnd();else{var r=i.translate;0===r&&(i.calcScrollElementHeight(),r=i.itemHeight*e.skip,i.translateTo(r-i.itemHeight)),i.container&&(i.container.scrollTop=r),t.scrollToItem(n,!0)}setTimeout((function(){return i.enabled=!0}),10)},Object(s.validatePackage)(X),this.listBoxId=Object(s.guid)(),this.guid=Object(s.guid)(),this.component=e,this.vs.PageChange=this.pageChange,this.vs.ScrollChange=this.scrollChange}return e.prototype.didMount=function(){var e=this.component.$props,t=e.popupSettings||{},n=e.style||{},i=t.width,r=!0===e.opened;void 0===i&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),r=!0),r&&this.component.$forceUpdate()},e.prototype.calculateDir=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).direction||void 0)},e.prototype.calculatePopupWidth=function(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")},e.prototype.scrollToItem=function(e,t){var n=this.list||this.vs.list,i=n?n.children[0]:void 0;if(i&&e>=0){var r=this.vs,o=r.container||n.parentNode;if(o){var s=void 0!==t?t:r.enabled;!function(e,t,n,i,r){var o=e.offsetHeight,s=t*n+(r?i-e.scrollTop:0);if(r){var a=0;s+t>o?a=s+t-o:s<0&&(a=s),0!==a?e.scrollTop+=a:0===e.scrollTop&&0!==i&&(e.scrollTop=i)}else s+t>o+e.scrollTop?e.scrollTop=s+t-o:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)}(o,i.offsetHeight,e,r.translate,s)}}},e.prototype.initState=function(){return{data:{},events:[],event:void 0}},e.prototype.applyState=function(e){var t=this;Object.keys(e.data).length>0&&Object.keys(e.data).forEach((function(n){t.component[n]=e.data[n]}));var n=this.component.primitiveValue(),i={event:e.event,component:this.component,target:{name:this.component.$props.name,value:n},value:n};e.events.forEach((function(e){var r=e.type;delete e.type,r&&("change"===r&&(t.component.$emit("changemodel",n),t.component.$emit("update:modelValue",n)),t.component.$emit(r,Y(Y({},i),e)))}))},e.prototype.triggerOnPageChange=function(e,t,n){var i=this.component.$props.virtual;if(i){var r=Math.min(Math.max(0,t),Math.max(0,i.total-n));r!==i.skip&&e.events.push({type:"pagechange",page:{skip:r,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.dataItemKey,s=n.virtual,a=void 0!==n.opened?n.opened:this.component.currentOpened;e&&s&&this.vs.enabled&&(s.skip>0&&$(e,r[0],o)?this.triggerOnPageChange(t,s.skip-1,s.pageSize):!a&&s.skip+s.pageSize<s.total&&$(e,r[r.length-1],o)&&this.triggerOnPageChange(t,s.skip+1,s.pageSize))},e.defaultProps={popupSettings:{animate:!0,height:"200px"},required:!1,validityStyles:!0},e}(),Q=function(){return(Q=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},ee=o,te=ee.h,ne=ee.version&&"3"===ee.version[0],ie=ee.ref,re=s.kendoThemeMaps.sizeMap,oe=s.kendoThemeMaps.roundedMap,se={name:"KendoDropDownList",model:{event:"changemodel"},props:{id:String,title:String,dataItemKey:{type:[Object,String]},defaultValue:{type:[String,Object,Number,Boolean],default:void 0},name:String,modelValue:{type:[String,Object,Number,Boolean],default:void 0},value:{type:[String,Object,Number,Boolean],default:void 0},label:{type:String},required:{type:Boolean,default:!1},leftRightKeysNavigation:{type:Boolean,default:!0},valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},delay:{type:Number,default:500},ignoreCase:{type:Boolean,default:!0},iconClassName:String,defaultItem:[Object,String],valueRender:[String,Function,Object],valueMap:Function,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,valueField:String,valuePrimitive:Boolean,className:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},virtual:{type:Object,default:void 0},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,searchState:{word:"",last:""},_skipFocusEvent:!1,valueDuringOnChange:{},_navigated:!1}},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0),this.virtualHasChanged=!0}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.prevCurrentValue=this.computedValue(),this.currentFocused=void 0,this.currentOpened=void 0,this.base=new Z(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},setup:ne?function(){return{v3:!!ne,selectRef:ie(null),baseWrapperRef:ie(null),kendoAnchorRef:ie(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.select=Object(s.getRef)(this,"select"),this.base.wrapper=Object(s.getRef)(this,"kendoAnchor",this.anchor),this.base.didMount(),this.setValidity()},updated:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=e.virtual,o=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,a=!s&&o,l=this.$refs.list,u=this.$refs.filterInput,d=this.$refs.scrollElement;this.$refs.scroller;if(l&&(this.base.vs.list=l.list,this.base.list=l.list),d&&(this.base.vs.scrollElement=d),u&&(this.filterInput=u),l&&n.length&&this.base.vs.scrollerRef(l.$el),this.$props.popupSettings.animate||a&&this.onPopupOpened(),r&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var c=this.computedValue(),p=this.prevCurrentValue,h=n.findIndex((function(e){return $(e,c,i)})),f=!$(p,c,i);a&&r?(this.base.scrollToVirtualItem(r,h),this.prevCurrentOpened=!0):a&&!r?(this.base.scrollToItem(h),this.prevCurrentOpened=!0):o&&s&&c&&f&&!this._navigated?this.base.scrollToItem(h):o&&s&&this._navigated&&(this._navigated&&r&&0===r.skip?this.base.vs.reset():this._navigated&&r&&r.skip===r.total-r.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.prevCurrentValue=this.computedValue(),this.setValidity()},computed:{index:{get:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=this.computedValue();return n.findIndex((function(e){return $(e,r,i)}))}},spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.base.wrapper&&this.base.wrapper.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),k(e)||void 0===this.$props.defaultItem||(e=this.$props.defaultItem),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this.dataItems.findIndex((function(n){return x(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?x(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.virtual,s=n.dataItemKey,a=n.defaultItem,l=o?o.skip:0,u=-1===e&&void 0!==a?a:r[e-l],d=!$(u,this.computedValue(),s);this.triggerOnChange(u,t),d&&this.base.triggerPageChangeCornerItems(u,t)},onNavigate:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.defaultItem,s=n.dataItemKey,a=n.virtual,l=void 0===a?{skip:0,total:0,pageSize:0}:a,u=this.base.vs,d=this.computedValue(),c=r.findIndex((function(e){return $(e,d,s)})),p=this.base.navigation.navigate({current:l.skip+c,max:(u.enabled?l.total:r.length)-1,min:void 0!==o?-1:0,keyCode:t});void 0!==p&&this.handleItemSelect(p,e),this.applyState(e)},search:function(e){var t=this;clearTimeout(this.typingTimeout),this.$props.filterable||(this.typingTimeout=setTimeout((function(){return t.searchState.word=""}),this.$props.delay),this.selectNext(e))},selectNext:function(e){var t,n=this,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.dataItemKey,a=o.map((function(e,t){return{item:e,itemIndex:t}})),l=this.searchState.word,u=this.searchState.last,d=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(l,u),c=a.length,p=Math.max(0,o.findIndex((function(e){return $(e,n.computedValue(),s)})));this.$props.defaultItem&&(t={item:this.$props.defaultItem,itemIndex:-1},c+=1,p+=1),a=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))}(a,p+=d?1:0,t);for(var h,f,v,m=0,g=this.$props,b=g.textField,y=g.ignoreCase;m<c;m++)if(h=x(a[m].item,b),f=d&&w(h,u,y),v=w(h,l,y),f||v){m=a[m].itemIndex;break}if(m!==c){var k=this.base.initState();k.event=e,this.handleItemSelect(m,k),this.applyState(k),this.valueDuringOnChange=void 0}},handleKeyDown:function(e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.leftRightKeysNavigation,o=t.filterable,a=t.disabled,l=t.virtual,u=void 0===l?{skip:0,total:0,pageSize:0}:l,d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,c=e.keyCode,p=c===s.Keys.home||c===s.Keys.end,h=c===s.Keys.up||c===s.Keys.down,f=!d&&(e.altKey&&c===s.Keys.down||c===s.Keys.enter||c===s.Keys.space),v=d&&(e.altKey&&c===s.Keys.up||c===s.Keys.esc),m=r&&(c===s.Keys.left||c===s.Keys.right),g=h||!o&&(m||p),b=this.base.initState();if(b.event=e,!a){if(p&&this.base.vs.enabled)c===s.Keys.home?0!==u.skip?(this.base.triggerOnPageChange(b,0,u.pageSize),this._navigated=!0):this.triggerOnChange(i[0],b):u.skip<u.total-u.pageSize?(this.base.triggerOnPageChange(b,u.total-u.pageSize,u.pageSize),this._navigated=!0):this.triggerOnChange(i[i.length-1],b);else if(d&&c===s.Keys.enter){var y=this.focusedIndex();void 0!==y&&this.handleItemSelect(y,b),this.base.togglePopup(b),e.preventDefault()}else f||v?(this.base.togglePopup(b),e.preventDefault()):g&&(this.onNavigate(b,c),e.preventDefault());this.applyState(b)}},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},handleFocus:function(e){this._skipFocusEvent||this.base.handleFocus(e)},handleBlur:function(e){if(!this._skipFocusEvent&&this.currentFocused){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState();n.event=e,n.data.currentFocused=!1,n.events.push({type:"blur"}),t&&this.base.togglePopup(n),this.applyState(n)}},handleDefaultItemClick:function(e){var t=this.base.initState();t.event=e,this.base.togglePopup(t),this.triggerOnChange(this.$props.defaultItem,t),this.applyState(t)},handleWrapperClick:function(e){var t=this.base.initState();t.event=e,this.currentFocused||(t.data.currentFocused=!0),this.base.togglePopup(t),this.applyState(t)},handleKeyPress:function(e){if(!this.$props.filterable&&e.keyCode!==s.Keys.enter){var t=String.fromCharCode(e.charCode||e.keyCode);this.$props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),this.searchState={word:this.searchState.word+t,last:this.searchState.last+t},this.search(e)}},handleListFilterChange:function(e){var t=this.base.initState();t.event=e,void 0===this.$props.filter&&(t.data.currentText=e.target.value),this.base.filterChanged(e.target.value,t),this.applyState(t)},onPopupOpened:function(){this.filterInput&&this.focusElement(this.filterInput.input)},onPopupClosed:function(){var e=this;this.currentFocused&&setTimeout((function(){e.currentFocused&&e.base.wrapper&&e.focusElement(e.base.wrapper)}))},focusedIndex:function(){var e=k(this.$props.filter)?this.$props.filter:this.currentText,t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.virtual,o=void 0===r?{skip:0}:r,s=t.dataItemKey,a=t.textField,l=t.focusedItemIndex,u=this.computedValue(),d=!(i.findIndex((function(e){return $(e,u,s)}))<0&&!this.$props.defaultItem);return!d&&e&&0===o.skip?l?l(i,e,a):i.indexOf(I(i,e,a)):d||0!==o.skip?void 0:0},focusElement:function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout((function(){return t._skipFocusEvent=!1}),30)},setValidity:function(){this.select&&this.select.setCustomValidity&&this.select.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please select a value from the list!")},triggerOnChange:function(e,t){$(this.computedValue(),e,this.$props.dataItemKey)||(void 0===this.$props.value&&(this.currentValue=e),this.valueDuringOnChange=e,t.events.push({type:"change"}))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0}},render:function(e){var t,n=te||e,i=this.$props,r=i.style,o=i.className,l=i.label,u=i.dir,d=i.virtual,c=void 0===d?{skip:0}:d,h=i.size,f=i.rounded,v=i.fillMode,m=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,g=x(this.computedValue(),this.$props.textField),b=!this.$props.validityStyles||this.validity().valid,k=this.base,w=k.vs,S=this.$props.id||this.inputId;w.enabled=void 0!==this.$props.virtual;var C=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),O=this.$props,I=O.dataItemKey,D=O.dataItems,V=void 0===D?[]:D,M=O.disabled,B=O.tabIndex,N=O.loading,P=O.iconClassName,j=s.templateRendering.call(this,this.$props.valueRender,s.getListeners.call(this)),E=this.currentFocused,A=this.primitiveValue(),L=V.findIndex((function(e){return $(e,A,I)})),F=n("span",{class:"k-input-inner"},[n("span",{class:"k-input-value-text"},[g])]),z=s.getTemplate.call(this,{h:n,template:j,defaultRendering:F,additionalProps:Q({value:this.computedValue()},this.$data)}),K=function(){var e=this.$props,t=e.textField,i=e.defaultItem;return void 0!==i&&n(R,{defaultItem:i,attrs:this.v3?void 0:{defaultItem:i,textField:t,selected:$(this.computedValue(),i,I)},textField:t,selected:$(this.computedValue(),i,I),key:"defaultitemkey",onDefaultitemclick:this.handleDefaultItemClick,on:this.v3?void 0:{defaultitemclick:this.handleDefaultItemClick}})},_=function(){var e=this,t=this.$props.textField,i=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),r=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this)),o=c.skip,a="translateY("+w.translate+"px)";return n(q,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:m,dataItems:V.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:I,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:C.height},wrapperCssClass:"k-list-content",listStyle:w.enabled?{transform:a}:void 0,skip:o,itemRender:i,noDataRender:r},show:m,dataItems:V.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:I,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:C.height},wrapperCssClass:"k-list-content",listStyle:w.enabled?{transform:a}:void 0,key:"listkey",skip:o,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:w.scrollHandler},itemRender:i,noDataRender:r,onScroll:w.scrollHandler},this.v3?function(){return[W.call(e)]}:[W.call(e)])},H=function(){var e=void 0!==this.$props.filter?this.$props.filter:this.currentText;return this.$props.filterable&&n(y,{value:e,attrs:this.v3?void 0:{value:e,size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode},ref:"filterInput",onChange:this.handleListFilterChange,on:this.v3?void 0:{change:this.handleListFilterChange,keydown:this.handleKeyDown},onKeydown:this.handleKeyDown,size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode})},W=function(){return w.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})};void 0!==this.$props.virtual&&(k.vs.skip=c.skip,k.vs.total=c.total,k.vs.pageSize=c.pageSize);var U=n("span",{ref:Object(s.setRef)(this,"kendoAnchor",this.anchor),class:Object(s.classNames)("k-dropdownlist k-picker",o,(t={},t["k-picker-"+(re[h]||h)]=h,t["k-rounded-"+(oe[f]||f)]=f,t["k-picker-"+v]=v,t["k-focus"]=E,t["k-disabled"]=M,t["k-invalid"]=!b,t["k-loading"]=N,t["k-required"]=this.required,t)),style:l?Q(Q({},r),{width:void 0}):r,dir:u,attrs:this.v3?void 0:{dir:u,tabindex:Object(s.getTabIndex)(B,M),accesskey:this.$props.accessKey,role:"listbox","aria-disabled":M||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":m?"option-"+this.base.guid+"-"+(L+(c?c.skip:0)):void 0,"aria-label":this.$props.label,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,id:this.$props.id,title:this.$props.title},onMousedown:m?T:s.noop,on:this.v3?void 0:{mousedown:m?T:s.noop,focusin:this.handleFocus,focusout:this.handleBlur,keydown:this.handleKeyDown,keypress:this.handleKeyPress,click:M?s.noop:this.handleWrapperClick},onFocusin:this.handleFocus,onFocusout:this.handleBlur,tabindex:Object(s.getTabIndex)(B,M),accesskey:this.$props.accessKey,onKeydown:this.handleKeyDown,onKeypress:this.handleKeyPress,role:"listbox",onClick:M?s.noop:this.handleWrapperClick,"aria-disabled":M||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":m?"option-"+this.base.guid+"-"+(L+(c?c.skip:0)):void 0,"aria-label":this.$props.label,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,id:this.$props.id,title:this.$props.title},[z,N&&n("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),n(a.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,size:h,fillMode:v,rounded:null,iconClass:Object(s.classNames)("k-icon k-i-arrow-s",P)},tabIndex:-1,size:h,fillMode:v,rounded:null,class:"k-input-button",iconClass:Object(s.classNames)("k-icon k-i-arrow-s",P),onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}}}),function(e){return n("select",{name:this.$props.name,attrs:this.v3?void 0:{name:this.$props.name,id:S,tabindex:-1,"aria-hidden":!0,title:this.$props.label},id:S,ref:Object(s.setRef)(this,"select"),tabindex:-1,"aria-hidden":!0,title:this.$props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},[n("option",{value:this.v3?this.$props.valueMap?this.$props.valueMap.call(void 0,e):e:null,domProps:this.v3?void 0:{value:this.$props.valueMap?this.$props.valueMap.call(void 0,e):e}})])}.call(this,A),function(){var e,t=this,i=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),r=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),o=s.getTemplate.call(this,{h:n,template:i}),a=s.getTemplate.call(this,{h:n,template:r}),l=void 0!==C.width?C.width:k.popupWidth;return n(p,{onMousedown:T,on:this.v3?void 0:{mousedown:T,open:this.onPopupOpened,close:this.onPopupClosed,blur:this.handleBlur},dir:void 0!==u?u:k.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==u?u:k.dirCalculated,width:l,popupSettings:{popupClass:Object(s.classNames)(C.popupClass,"k-list",(e={},e["k-list-"+(re[h]||h)]=h,e["k-virtual-list"]=this.base.vs.enabled,e)),className:C.className,animate:C.animate,anchor:this.anchor,show:m}},width:l,popupSettings:{popupClass:Object(s.classNames)(C.popupClass,"k-list",(e={},e["k-list-"+(re[h]||h)]=h,e["k-virtual-list"]=this.base.vs.enabled,e)),className:C.className,animate:C.animate,anchor:this.anchor,show:m},onOpen:this.onPopupOpened,onClose:this.onPopupClosed,onBlur:this.handleBlur},this.v3?function(){return[H.call(t),K.call(t),o&&n("div",{class:"k-list-header"},[o]),_.call(t),a&&n("div",{class:"k-list-footer"},[a])]}:[H.call(t),K.call(t),o&&n("div",{class:"k-list-header"},[o]),_.call(t),a&&n("div",{class:"k-list-footer"},[a])])}.call(this)]);return l?n("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[U,this.$props.label?S?n("label",{for:S,attrs:this.v3?void 0:{for:S},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):U}},ae=se,le=o,ue=le.h,de=le.version&&"3"===le.version[0],ce=le.ref,pe={name:"search-bar",emits:{change:null,keydown:null,focus:null,blur:null},props:{value:String,id:String,placeholder:String,tabIndex:Number,size:{type:Number,default:void 0},suggestedText:String,focused:Boolean,disabled:Boolean,readOnly:Boolean,expanded:Boolean,owns:String,name:String,activedescendant:String,describedby:String,clearButton:Boolean,accessKey:String,ariaLabelledBy:String},data:function(){return{prevValue:void 0,prevSuggestedText:void 0}},watch:{suggestedText:function(e,t){this.prevSuggestedText=t},value:function(e,t){this.prevValue=t}},updated:function(){var e=this.$props,t=e.value,n=e.suggestedText,i=e.focused;this.input||(this.input=this.$refs.input);var r=this.input,o=this.$data.prevValue!==t||n!==this.prevSuggestedText,a=o&&this.$data.prevValue&&this.$data.prevValue.startsWith(t)&&!(this.$data.prevSuggestedText&&n&&this.$data.prevSuggestedText.endsWith(n));i&&r&&s.canUseDOM&&document.activeElement!==r&&r.focus(),n&&o&&!a&&r&&r.setSelectionRange(t.length-n.length,t.length)},setup:de?function(){return{v3:!!de,inputRef:ce(null)}}:void 0,mounted:function(){this.input=Object(s.getRef)(this,"input")},methods:{onChange:function(e){this.$emit("change",e)},onBlur:function(e){this.$emit("blur",e)},onFocus:function(e){this.$emit("focus",e)},onKeyDown:function(e){this.$emit("keydown",e)},clearButtonClick:function(e){this.$emit("clearbuttonclick",e)}},render:function(e){return(ue||e)("input",{autocomplete:"off",attrs:this.v3?void 0:{autocomplete:"off",id:this.$props.id,type:"text",placeholder:this.$props.placeholder,tabindex:this.$props.tabIndex,accesskey:this.$props.accessKey,role:"combobox",name:this.$props.name,size:this.$props.size?this.$props.size:20,"aria-disabled":this.$props.disabled||void 0,disabled:this.$props.disabled||void 0,readonly:this.$props.readOnly||void 0,"aria-autocomplete":this.$props.suggestedText?"both":"list","aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-controls":this.$props.owns,"aria-activedescendant":this.$props.activedescendant,"aria-describedby":this.$props.describedby,"aria-labelledby":this.$props.ariaLabelledBy},id:this.$props.id,type:"text",key:"searchbar",placeholder:this.$props.placeholder,class:"k-input-inner",tabindex:this.$props.tabIndex,accesskey:this.$props.accessKey,role:"combobox",name:this.$props.name,value:this.v3?this.$props.value:null,domProps:this.v3?void 0:{value:this.$props.value},size:this.$props.size?this.$props.size:20,onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,keydown:this.onKeyDown,focusin:this.onFocus,blur:this.onBlur},ref:Object(s.setRef)(this,"input"),onKeydown:this.onKeyDown,onFocusin:this.onFocus,onBlur:this.onBlur,"aria-disabled":this.$props.disabled||void 0,disabled:this.$props.disabled||void 0,readonly:this.$props.readOnly||void 0,"aria-autocomplete":this.$props.suggestedText?"both":"list","aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-controls":this.$props.owns,"aria-activedescendant":this.$props.activedescendant,"aria-describedby":this.$props.describedby,"aria-labelledby":this.$props.ariaLabelledBy})}},he=o,fe=he.h,ve=he.version&&"3"===he.version[0],me=he.inject,ge={name:"clear-button",inject:{kendoLocalizationService:{default:null}},setup:ve?function(){return{v3:!!ve,kendoLocalizationService:me("kendoLocalizationService",{})}}:void 0,methods:{onMouseDown:function(e){e.preventDefault()},onClickHandler:function(e){this.$emit("clearclick",e)}},render:function(e){var t=fe||e,n=Object(A.provideLocalizationService)(this).toLanguageString(F,z[F]);return t("span",{class:"k-clear-value",role:"button",attrs:this.v3?void 0:{role:"button",tabindex:-1,title:n},onClick:this.onClickHandler,on:this.v3?void 0:{click:this.onClickHandler,mousedown:this.onMouseDown},onMousedown:this.onMouseDown,tabindex:-1,title:n,key:"clearbutton"},[t("span",{class:"k-icon k-i-x"})])}},be=function(){return(be=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},ye=o,ke=ye.h,we=ye.version&&"3"===ye.version[0],Se=ye.ref,Ce=ye.inject,xe=s.kendoThemeMaps.sizeMap,Oe=s.kendoThemeMaps.roundedMap,$e={name:"KendoComboBox",model:{event:"changemodel"},emits:{changemodel:null,"update:modelValue":null,filterchange:null,change:null,focus:null,blur:null,open:null,close:null,scroll:null},props:{id:String,dataItemKey:{type:[Object,String]},defaultValue:{type:[String,Object,Number,Boolean],default:void 0},name:String,modelValue:{type:[String,Object,Number,Boolean],default:void 0},value:{type:[String,Object,Number,Boolean],default:void 0},label:{type:String},placeholder:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},iconClassName:String,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,className:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},virtual:{type:Object,default:void 0},suggest:{type:Boolean,default:!1},allowCustom:{type:Boolean,default:!1},clearButton:{type:Boolean,default:!0},ariaLabelledBy:String,ariaDescribedBy:String,valueField:String,valuePrimitive:Boolean,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},inject:{kendoLocalizationService:{default:null}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,searchState:{word:"",last:""},_skipFocusEvent:!1,valueDuringOnChange:{},_navigated:!1,suggested:""}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.currentFocused=void 0,this.currentOpened=void 0,this.prevCurrentValue=this.computedValue(),this.base=new Z(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},setup:we?function(){return{v3:!!we,inputRef:Se(null),elementRef:Se(null),kendoAnchorRef:Se(null),kendoLocalizationService:Ce("kendoLocalizationService",{})}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=Object(s.getRef)(this,"kendoAnchor",this.anchor),this.element=Object(s.getRef)(this,"kendoAnchor",this.anchor),this.base.didMount(),this.setValidity()},updated:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=e.virtual,o=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,a=!s&&o,l=this.$refs.list,u=this.$refs.scrollElement,d=this.computedValue();if(this.valueOnDidUpdate=d,l&&(this.base.vs.list=l.list,this.base.list=l.list),u&&(this.base.vs.scrollElement=u),l&&n.length&&this.base.vs.scrollerRef(l.$el),r&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var c=this.prevCurrentValue,p=n.findIndex((function(e){return $(e,d,i)})),h=!$(c,d,i);a&&r?(this.base.scrollToVirtualItem(r,p),this.prevCurrentOpened=!0):a&&!r?(this.base.scrollToItem(p),this.prevCurrentOpened=!0):o&&s&&d&&h&&this.base.scrollToItem(p)}a&&this.input&&this.input.focus(),this.prevCurrentValue=this.computedValue(),this.setValidity()},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0),this.virtualHasChanged=!0}},computed:{index:{get:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,r=this.computedValue();return n.findIndex((function(e){return $(e,r,i)}))}},spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this.dataItems.findIndex((function(n){return x(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?x(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.virtual,s=n.dataItemKey,a=r[e-(o?o.skip:0)],l=!$(a,this.computedValue(),s);this.triggerOnChange(a,t),void 0!==this.currentText&&(t.data.currentText=void 0),l&&this.base.triggerPageChangeCornerItems(a,t)},onNavigate:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.virtual,s=void 0===o?{skip:0}:o,a=this.$props.filter?this.$props.filter:this.currentText,l=this.getFocusedIndex(),u=this.base.vs,d=this.computedValue();if(this.suggested="",-1===l||k(d))if(""===a)this.handleItemSelect(0,e);else{var c=s.skip+l,p=this.base.navigation.navigate({keyCode:t,current:c,max:(u.enabled?u.total:r.length)-1,min:0});void 0!==p&&this.handleItemSelect(p,e)}else this.handleItemSelect(l,e)},toggleBtnClick:function(e){var t=this.base.initState();t.event=e,this.base.togglePopup(t),this.applyState(t)},applyValueOnEnter:function(e,t){var n,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.textField,a=i.allowCustom,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=x(this.computedValue(),s)===e?this.index:C(o,e,s),d=-1!==u,c=void 0;if(this.suggested="",d)c=o[u];else{if(!a)return this.selectFocusedItem(e,t);c=void 0!==s?((n={})[s]=e,n):e}this.triggerOnChange(c,t),l&&this.base.togglePopup(t),void 0===this.$props.filter&&void 0!==this.currentText&&(t.data.currentText=void 0),this.applyState(t)},applyValueOnRejectSuggestions:function(e,t){var n,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.textField,a=i.allowCustom,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=x(this.computedValue(),s);if(this.suggested="",e===u||""===e&&!k(u))return l&&this.base.togglePopup(t),this.applyState(t);var d=C(o,e,s,!0),c=null;-1!==d?c=o[d]:a&&(c=e?s?((n={})[s]=e,n):e:null),this.triggerOnChange(c,t),void 0!==this.currentText&&(t.data.currentText=void 0,this.base.filterChanged("",t)),l&&this.base.togglePopup(t),this.applyState(t)},selectFocusedItem:function(e,t){var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.$props,r=i.dataItems,o=void 0===r?[]:r,s=i.textField,a=i.virtual,l=void 0===a?{skip:0}:a,u=i.focusedItemIndex,d=void 0===u?S:u,c=l.skip,p=""===e&&0===c?0:d(o,e,s);return-1!==p?this.handleItemSelect(p+c,t):(this.triggerOnChange(null,t),void 0!==this.currentText&&(t.data.currentText=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){if(this.currentFocused){var t=this.base.initState();t.data.currentFocused=!1,t.events.push({type:"blur"}),t.event=e,this.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},onInputKeyDown:function(e){var t=this,n=e.keyCode,i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,r=this.base.initState();if(r.event=e,!e.altKey&&(n===s.Keys.up||n===s.Keys.down))return e.preventDefault(),this.onNavigate(r,n),void this.applyState(r);var o=function(){e.preventDefault(),t.base.togglePopup(r),t.applyState(r)};i?e.altKey&&n===s.Keys.up?o():n===s.Keys.enter?(e.preventDefault(),this.applyValueOnEnter(e.currentTarget.value,r)):n===s.Keys.esc&&o():e.altKey&&n===s.Keys.down?o():n===s.Keys.esc&&this.applyValueOnRejectSuggestions(e.currentTarget.value,r)},inputOnChange:function(e){var t=this.base.initState();t.event=e;var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=e.currentTarget,r=i.value;if(this.$props.suggest){var o=i.selectionEnd===r.length,s=void 0!==this.$props.filter?this.$props.filter:this.currentText;k(s)||(s=x(this.computedValue(),this.$props.textField)||"");var a=s&&s===r,l=s&&s.length>r.length;a||l||!o?this.suggested="":this.suggestValue(r)}void 0===this.$props.filter&&(t.data.currentText=r),void 0!==this.currentFocusedItem&&(t.data.focusedItem=void 0),n||this.base.togglePopup(t),this.base.filterChanged(r,t),this.applyState(t)},clearButtonClick:function(e){var t=this.base.initState();t.event=e,e.stopPropagation(),this.suggested="",this.base.filterChanged("",t),void 0===this.$props.filter&&void 0!==this.currentText&&(t.data.currentText=void 0),this.triggerOnChange(null,t),(void 0!==this.$props.opened?this.$props.opened:this.currentOpened)&&this.base.togglePopup(t),this.applyState(t)},getFocusedIndex:function(){var e=this.computedValue(),t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.textField,o=t.dataItemKey,s=t.virtual,a=void 0===s?{skip:0}:s,l=t.focusedItemIndex,u=void 0===l?S:l,d=this.$props.filter?this.$props.filter:this.currentText;return k(e)&&void 0===d?i.findIndex((function(t){return $(t,e,o)})):d?u(i,d,r):0===a.skip?0:-1},suggestValue:function(e){var t=this.$props,n=t.dataItems,i=t.textField;this.suggested=function(e,t,n){void 0===t&&(t=[]);var i="";if(e){var r=t[S(t,e,n)];if(r){var o=x(r,n);e.toLowerCase()!==o.toLowerCase()&&(i=o.substring(e.length))}}return i}(e,n,i)},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},triggerOnChange:function(e,t){var n=this.computedValue();!k(n)&&!k(e)||$(n,e,this.$props.dataItemKey)||(void 0===this.$props.value&&(this.currentValue=e),this.valueDuringOnChange=e,t.events.push({type:"change"}))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0}},render:function(e){var t,n=ke||e,i=this.$props,r=i.dir,o=i.disabled,l=i.clearButton,u=i.label,d=i.textField,c=i.className,h=i.style,f=i.loading,v=i.iconClassName,m=i.virtual,g=i.size,b=i.fillMode,y=i.rounded,w=this.currentFocused,S=!this.$props.validityStyles||this.validity().valid,C=void 0!==this.$props.filter?this.$props.filter:this.currentText,O=x(this.computedValue(),d),I=k(C)?C:O,T=l&&(!!I||k(this.computedValue())),D=this.base,V=D.vs,M=this.$props.id||this.inputId,R=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),B=Object(A.provideLocalizationService)(this).toLanguageString("dropdowns.expandbutton",z["dropdowns.expandbutton"]);V.enabled=void 0!==m,void 0!==m&&(V.skip=m.skip,V.total=m.total,V.pageSize=m.pageSize);var N=function(){var e=this,t=this.$props,i=t.dataItemKey,r=t.dataItems,o=void 0===r?[]:r,a=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),l=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this));m||(m={skip:0});var u=m.skip,c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,p="translateY("+V.translate+"px)",h=c?this.getFocusedIndex():void 0,f=k(C)&&C!==O?null:this.computedValue();return n(q,{id:D.listBoxId,attrs:this.v3?void 0:{id:D.listBoxId,show:c,dataItems:o,focusedIndex:h,value:f,textField:d,valueField:i,optionsGuid:D.guid,wrapperStyle:{maxHeight:R.height},wrapperCssClass:"k-list-content",listStyle:V.enabled?{transform:p}:void 0,skip:u,itemRender:a,noDataRender:l},show:c,dataItems:o,focusedIndex:h,value:f,textField:d,valueField:i,optionsGuid:D.guid,ref:"list",wrapperStyle:{maxHeight:R.height},wrapperCssClass:"k-list-content",listStyle:V.enabled?{transform:p}:void 0,key:"listkey",skip:u,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:V.scrollHandler},itemRender:a,noDataRender:l,onScroll:V.scrollHandler},this.v3?function(){return[P.call(e)]}:[P.call(e)])},P=function(){return V.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})},j=n("span",{class:Object(s.classNames)("k-combobox k-input",(t={},t["k-input-"+(xe[g]||g)]=g,t["k-rounded-"+(Oe[y]||y)]=y,t["k-input-"+b]=b,t["k-invalid"]=!S,t["k-loading"]=f,t["k-required"]=this.required,t["k-disabled"]=o,t["k-focus"]=w&&!o,t),c),ref:Object(s.setRef)(this,"kendoAnchor",this.anchor),style:u?be(be({},h),{width:void 0}):h,dir:r,attrs:this.v3?void 0:{dir:r}},[function(e,t){var i=this,r=this.$props,s=r.placeholder,a=r.tabIndex,l=r.dataItems,u=void 0===l?[]:l,d=r.dataItemKey;m||(m={skip:0});var c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,p=this.computedValue(),h=Math.max(0,u.findIndex((function(e){return $(e,p,d)})));return this.suggested&&!$(this.valueOnDidUpdate,p,d)&&(this.suggested=""),n(pe,{id:t,attrs:this.v3?void 0:{id:t,placeholder:s,tabIndex:a||void 0,accessKey:this.$props.accessKey,value:e+this.suggested,suggestedText:this.suggested,disabled:o,expanded:c,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+m.skip),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy},placeholder:s,tabIndex:a||void 0,accessKey:this.$props.accessKey,value:e+this.suggested,suggestedText:this.suggested,ref:this.v3?function(e){i.inputRef=e}:"input",onKeydown:this.onInputKeyDown,on:this.v3?void 0:{keydown:this.onInputKeyDown,change:this.inputOnChange,focus:this.base.handleFocus,blur:this.handleBlur},onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:o,expanded:c,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+m.skip),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,I||"",M),T&&!f&&n(ge,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}),f&&n("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),n(a.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,"aria-label":B,size:g,fillMode:b,rounded:null,iconClass:Object(s.classNames)("k-icon k-i-arrow-s",v)},tabIndex:-1,"aria-label":B,size:g,fillMode:b,rounded:null,class:"k-input-button",iconClass:Object(s.classNames)("k-icon k-i-arrow-s",v),onClick:this.toggleBtnClick,on:this.v3?void 0:{click:this.toggleBtnClick,mousedown:function(e){return e.preventDefault()}},onMousedown:function(e){return e.preventDefault()}}),function(){var e,t=this,i=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),o=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),a=s.getTemplate.call(this,{h:n,template:i}),l=s.getTemplate.call(this,{h:n,template:o}),u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,d=void 0!==R.width?R.width:D.popupWidth;return n(p,{onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}},width:d,attrs:this.v3?void 0:{width:d,popupSettings:{animate:R.animate,anchor:this.anchor,show:u,popupClass:Object(s.classNames)(R.popupClass,"k-list",(e={},e["k-list-"+(xe[g]||g)]=g,e["k-virtual-list"]=this.base.vs.enabled,e)),className:R.className,appendTo:R.appendTo},dir:void 0!==r?r:this.base.dirCalculated},popupSettings:{animate:R.animate,anchor:this.anchor,show:u,popupClass:Object(s.classNames)(R.popupClass,"k-list",(e={},e["k-list-"+(xe[g]||g)]=g,e["k-virtual-list"]=this.base.vs.enabled,e)),className:R.className,appendTo:R.appendTo},dir:void 0!==r?r:this.base.dirCalculated},this.v3?function(){return[a&&n("div",{class:"k-list-header"},[a]),N.call(t),l&&n("div",{class:"k-list-footer"},[l])]}:[a&&n("div",{class:"k-list-header"},[a]),N.call(t),l&&n("div",{class:"k-list-footer"},[l])])}.call(this)]);return u?n("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus},dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[j,this.$props.label?M?n("label",{for:M,attrs:this.v3?void 0:{for:M},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):j}},Ie=$e,Te=function(){return(Te=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},De=o,Ve=De.h,Me=De.version&&"3"===De.version[0],Re=De.ref,Be=s.kendoThemeMaps.sizeMap,Ne=s.kendoThemeMaps.roundedMap,Pe={name:"KendoAutoComplete",model:{event:"changemodel"},props:{id:String,defaultValue:{type:[String],default:void 0},name:String,modelValue:{type:[String],default:void 0},value:{type:[String],default:void 0},label:{type:String},placeholder:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},readonly:Boolean,accessKey:String,dataItems:Array,textField:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],suggest:{type:[Boolean,String],default:!1},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,focusedItem:void 0,searchState:{word:"",last:""},valueDuringOnChange:{},suggested:""}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.currentFocused=void 0,this.currentOpened=void 0,this.base=new Z(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},setup:Me?function(){return{v3:!!Me,inputRef:Re(null),kendoAnchorRef:Re(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=Object(s.getRef)(this,"kendoAnchor",this.anchor),this.element=Object(s.getRef)(this,"kendoAnchor",this.anchor),this.base.didMount(),this.setValidity()},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},dataItems:function(e,t){this.prevData=t},focusedItem:function(e,t){this.prevFocusedItem=t}},updated:function(){var e=this.$props.dataItems,t=void 0===e?[]:e,n=this.focusedIndex(),i=t[n],r=this.prevData!==t,o=void 0!==i&&this.prevFocusedItem!==i,s=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,a=!(void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened)&&s,l=this.$refs.list;l&&(this.base.vs.list=l.list,this.base.list=l.list),t.length&&(s&&(o||r)||a)&&this.base.scrollToItem(n),this.setValidity()},computed:{spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),e},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?x(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props.dataItems,i=x((void 0===n?[]:n)[e],this.$props.textField);this.triggerOnChange(i,t)},itemFocus:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.textField,s=r[e];$(this.$data.focusedItem,s,o)||(t.data.focusedItem=s)},togglePopup:function(e){this.base.togglePopup(e)},onNavigate:function(e,t){var n=this,i=this.computedValue(),r=this.$props,o=r.dataItems,s=void 0===o?[]:o,a=r.textField,l=r.focusedItemIndex,u=void 0!==this.$data.focusedItem?s.findIndex((function(e){return $(e,n.$data.focusedItem,a)})):l?l(s,i,a):s.indexOf(I(s,i,a)),d=this.base.navigation.navigate({keyCode:t,current:u,max:s.length-1,min:0});void 0!==d&&this.itemFocus(d,e),this.applyState(e)},applyInputValue:function(e,t,n){var i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,r=this.$props,o=r.dataItems,a=void 0===o?[]:o,l=r.textField;if(this.suggested="",i&&n===s.Keys.enter){var u=x(a[this.focusedIndex(e)],l);this.triggerOnChange(u,t)}i&&this.togglePopup(t),this.applyState(t)},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},onChangeHandler:function(e){var t=this.base.initState(),n=e.target,i=n.value,r=n.selectionEnd===i.length;t.event=e;var o=this.suggested,s=this.computedValue(),a=s&&o&&s.substring(0,s.length-o.length),l=a&&a===i,u=a&&a.length>i.length,d=this.$props.suggest,c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;if(void 0!==d&&!1!==d){l||u||!r?this.suggested="":this.suggestValue(i);var p=i+this.suggested,h={userInput:i,value:this.suggested};this.triggerOnChange(p,t,{suggestion:h})}else this.suggested="",this.triggerOnChange(i,t);(!c&&i||c&&!i)&&this.togglePopup(t),t.data.focusedItem=void 0,this.applyState(t)},clearButtonClick:function(e){var t=this.base.initState(),n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;t.event=e;this.suggested="",this.triggerOnChange("",t),void 0!==this.$data.focusedItem&&(t.data.focusedItem=void 0),n&&this.togglePopup(t),this.applyState(t)},onInputKeyDown:function(e){var t=e.keyCode,n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.base.initState(),r=this.computedValue();i.event=e;var o=function(){n&&e.preventDefault()};t===s.Keys.enter||n&&t===s.Keys.esc||e.altKey&&t===s.Keys.up?(o(),this.applyInputValue(e.currentTarget.value,i,e.keyCode)):e.altKey||t!==s.Keys.up&&t!==s.Keys.down?n||t!==s.Keys.esc?!n&&r&&e.altKey&&t===s.Keys.down&&(this.togglePopup(i),this.applyState(i)):this.clearButtonClick(e):(o(),this.onNavigate(i,t))},handleBlur:function(e){if(this.currentFocused){var t=this.base.initState();t.data.focused=!1,t.events.push({type:"blur"}),t.event=e,this.applyInputValue(e.currentTarget.value,t),this.currentFocused=!1}},triggerOnChange:function(e,t,n){(this.computedValue()!==e||n)&&(t.data.currentValue=e,this.valueDuringOnChange=e,t.events.push(Te({type:"change"},n||{})))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0},suggestValue:function(e){if(this.suggested="",e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.textField,o=i[S(i,e,r)];if(o){var s=x(o,r);e.toLowerCase()!==s.toLowerCase()&&(this.suggested=s.substring(e.length))}}},focusedIndex:function(e){var t=this,n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.textField,s=n.focusedItemIndex,a=void 0!==e?e:this.computedValue();return void 0!==this.$data.focusedItem?r.findIndex((function(e){return $(e,t.$data.focusedItem,o)})):s?s(r,a,o):Math.max(0,r.indexOf(I(r,a,o)))}},render:function(e){var t,n=Ve||e,i=this.$props,r=i.dir,o=i.disabled,a=i.label,l=i.size,u=i.rounded,d=i.fillMode,c=i.style,h=i.loading,f=i.suggest,v=!this.$props.validityStyles||this.validity().valid,m=this.currentFocused,g=this.base,b=this.computedValue(),y=!h&&!!b,k=this.$props.id||this.inputId,w=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings);"string"==typeof f&&(this.suggested=f);var S=function(){var e=this.$props,t=e.textField,i=e.dataItems,r=void 0===i?[]:i,o=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),a=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this)),l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return n(q,{id:g.listBoxId,attrs:this.v3?void 0:{id:g.listBoxId,show:l,dataItems:r.slice(),focusedIndex:this.focusedIndex(),value:b,textField:t,valueField:t,highlightSelected:!1,optionsGuid:g.guid,wrapperStyle:{maxHeight:w.height},wrapperCssClass:"k-list-content",itemRender:o,noDataRender:a},show:l,dataItems:r.slice(),focusedIndex:this.focusedIndex(),value:b,textField:t,valueField:t,highlightSelected:!1,optionsGuid:g.guid,ref:"list",wrapperStyle:{maxHeight:w.height},wrapperCssClass:"k-list-content",onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick},itemRender:o,noDataRender:a})},C=n("span",{class:Object(s.classNames)("k-autocomplete k-input",(t={},t["k-input-"+(Be[l]||l)]=l,t["k-rounded-"+(Ne[u]||u)]=u,t["k-input-"+d]=d,t["k-invalid"]=!v,t["k-focus"]=m&&!o,t["k-loading"]=h,t["k-required"]=this.required,t["k-disabled"]=o,t)),ref:Object(s.setRef)(this,"kendoAnchor",this.anchor),style:a?Te(Te({},c),{width:void 0}):c,dir:r,attrs:this.v3?void 0:{dir:r}},[function(e,t){var i=this,r=this.$props,s=r.placeholder,a=r.tabIndex,l=r.readonly,u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return n(pe,{id:t,attrs:this.v3?void 0:{id:t,placeholder:s,tabIndex:a||void 0,accessKey:this.$props.accessKey,value:e,suggestedText:this.suggested,focused:m,name:this.$props.name,disabled:o,readOnly:l,expanded:u,owns:g.listBoxId,activedescendant:"option-"+g.guid+"-"+this.focusedIndex(),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy},placeholder:s,tabIndex:a||void 0,accessKey:this.$props.accessKey,value:e,suggestedText:this.suggested,focused:m,name:this.$props.name,ref:this.v3?function(e){i.inputRef=e}:"input",onKeydown:this.onInputKeyDown,on:this.v3?void 0:{keydown:this.onInputKeyDown,change:this.onChangeHandler,focus:g.handleFocus,blur:this.handleBlur,clearbuttonclick:this.clearButtonClick},onChange:this.onChangeHandler,onFocus:g.handleFocus,onBlur:this.handleBlur,disabled:o,readOnly:l,expanded:u,owns:g.listBoxId,activedescendant:"option-"+g.guid+"-"+this.focusedIndex(),onClearbuttonclick:this.clearButtonClick,ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,b||"",k),function(e){return e?n(ge,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):n("span")}.call(this,y),function(e){return e?n("span",{class:"k-icon k-input-loading-icon k-i-loading"}):n("span")}.call(this,h),function(){var e,t=this,i=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),o=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),a=s.getTemplate.call(this,{h:n,template:i}),u=s.getTemplate.call(this,{h:n,template:o}),d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,c=void 0!==w.width?w.width:g.popupWidth;return n(p,{onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}},width:c,attrs:this.v3?void 0:{width:c,popupSettings:{animate:w.animate,anchor:this.anchor,show:d,popupClass:Object(s.classNames)(w.popupClass,"k-list",(e={},e["k-list-"+(Be[l]||l)]=l,e)),className:w.className,appendTo:w.appendTo},dir:void 0!==r?r:this.base.dirCalculated},ref:"container",popupSettings:{animate:w.animate,anchor:this.anchor,show:d,popupClass:Object(s.classNames)(w.popupClass,"k-list",(e={},e["k-list-"+(Be[l]||l)]=l,e)),className:w.className,appendTo:w.appendTo},dir:void 0!==r?r:this.base.dirCalculated},this.v3?function(){return[a&&n("div",{class:"k-list-header"},[a]),S.call(t),u&&n("div",{class:"k-list-footer"},[u])]}:[a&&n("div",{class:"k-list-header"},[a]),S.call(t),u&&n("div",{class:"k-list-footer"},[u])])}.call(this)]);return a?n("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[C,this.$props.label?k?n("label",{for:k,attrs:this.v3?void 0:{for:k},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):C}},je=Pe,Ee=function(){return(Ee=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ae=o,Le=Ae.h,Fe=Ae.version&&"3"===Ae.version[0],ze=(Ae.ref,function(e){return e.preventDefault()}),Ke=function(e){return e.stopPropagation()},_e={name:"TagList",props:{dataItems:Array,guid:String,focused:Object,tagRender:[String,Function,Object],tagsRounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},computed:{wrapperClass:function(){var e,t=this.$props,n=t.size,i=t.disabled;return(e={"k-chip-list":!0})["k-chip-list-"+(s.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-selection-single"]=!0,e["k-disabled"]=i,e},chipClass:function(){var e,t=this.$props,n=t.size,i=t.disabled,r=t.tagsRounded,o=t.fillMode;return(e={"k-chip":!0,"k-disabled":i})["k-chip-"+(s.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-"+(s.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-chip-"+o]=o,e["k-chip-"+o+"-base"]=Boolean(o),e}},setup:Fe?function(){return{v3:!!Fe}}:void 0,methods:{onTagDelete:function(e,t){this.$emit("tagdelete",e,t)}},render:function(e){var t=Le||e,n=this.$props,i=n.dataItems,r=n.guid;return t("div",{class:this.wrapperClass,role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:"tagslist-"+r},id:"tagslist-"+r},[i.map((function(e,n){var o=this,a="tag-"+r+"-"+e.text.toString().replace(/\s+/g,"-"),l=t("div",{class:Ee(Ee({},this.chipClass),{"k-focus":e===this.$props.focused}),key:a,id:a,attrs:this.v3?void 0:{id:a,"aria-selected":!0,role:"option","aria-setsize":i.length},onMousedown:ze,on:this.v3?void 0:{mousedown:ze,click:Ke},onClick:Ke,"aria-selected":!0,role:"option","aria-setsize":i.length},[t("span",{class:"k-chip-content"},[e.text]),t("span",{"aria-label":"delete",attrs:this.v3?void 0:{"aria-label":"delete"},class:"k-select",onClick:function(t){return o.onTagDelete(e.data,t)},on:this.v3?void 0:{click:function(t){return o.onTagDelete(e.data,t)}}},[t("span",{class:"k-icon k-i-close"})])]);return s.getTemplate.call(this,{h:t,template:this.$props.tagRender,defaultRendering:l,additionalProps:Ee(Ee({},this.$props),{tagData:e,index:n}),additionalListeners:{tagdelete:this.onTagDelete}})}),this)])}};!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(r||(r={}));var He,We=function(){return(We=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},Ue=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},qe=o,Ge=qe.h,Je=qe.version&&"3"===qe.version[0],Xe=qe.ref,Ye=s.kendoThemeMaps.sizeMap,Ze=s.kendoThemeMaps.roundedMap,Qe=function(e){return e.preventDefault()},et=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||function(e,t,n){if(void 0===e&&(e=[]),void 0===t&&(t=[]),e===t)return!0;if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!$(e[i],t[i],n))return!1;return!0}(e.data,t.data,n))},tt=function(e){return e===He.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(He||(He={}));var nt={name:"KendoMultiSelect",emits:{changemodel:null,"update:modelValue":null,filterchange:null,change:null,focus:null,blur:null,open:null,close:null,scroll:null},model:{event:"changemodel"},props:{autoClose:{type:Boolean,default:!0},allowCustom:Boolean,modelValue:Array,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:String,tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,label:String,loading:Boolean,name:String,value:Array,defaultValue:Array,valueField:String,valuePrimitive:Boolean,dataItemKey:String,placeholder:String,tags:Array,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},tagRender:[String,Function,Object],id:String,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,virtual:{type:Object,default:void 0},header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},tagsRounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},setup:Je?function(){return{v3:!!Je,inputRef:Xe(null),kendoAnchorRef:Xe(null)}}:void 0,computed:{spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid,t=this.currentText||x(this.computedValue()[0],this.$props.textField);return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!(t&&0!==t),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},created:function(){this.valuesItemsDuringOnChange=null,this._tags=[],this._skipFocusEvent=!1,this.scrollToFocused=!1,this.base=new Z(this),this.anchor=Object(s.guid)(),this.inputId=Object(s.guid)()},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,currentFocusedIndex:void 0,currentFocusedTag:void 0,searchState:{word:"",last:""},suggested:"",activedescendant:r.PopupList}},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0)}},updated:function(){var e=this.$props.virtual,t=e?e.skip:0,n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,r=!i&&n,o=i&&!n,s=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),a=this.$refs.list,l=this.$refs.scrollElement;if(a&&(this.base.vs.list=a.list,this.base.list=a.list),l&&(this.base.vs.scrollElement=l),a&&this.dataItems.length&&this.base.vs.scrollerRef(a.$el),!s.animate&&o&&this.onPopupClosed(),e&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var u=this.getFocusedState(),d=u.focusedItem,c=u.focusedIndex;r&&e?(this.base.scrollToVirtualItem(e,c-t),this.prevCurrentOpened=!0):r&&!e?(this.base.scrollToItem(c),this.prevCurrentOpened=!0):n&&i&&d&&this.scrollToFocused&&this.base.scrollToItem(c-t)}this.scrollToFocused=!1,this.searchBarRef(),this.setValidity()},mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=Object(s.getRef)(this,"kendoAnchor",this.anchor),this.element=Object(s.getRef)(this,"kendoAnchor",this.anchor),this.base.didMount(),this.searchBarRef(),this.setValidity()},methods:{computedValue:function(){var e=[];return this.valuesItemsDuringOnChange?e.push.apply(e,this.valuesItemsDuringOnChange):this.$props.value?e.push.apply(e,this.$props.value):void 0!==this.$props.modelValue?e.push.apply(e,this.$props.modelValue):this.currentValue?e.push.apply(e,this.currentValue):this.$props.defaultValue&&e.push.apply(e,this.$props.defaultValue),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this;return t.map((function(t){var i=n.dataItems.findIndex((function(n){return x(n,e)===t}));return n.dataItems[i]||t}))},primitiveValue:function(){var e=this,t=this.computedValue(),n=t.map((function(t){return x(t,e.valueField)}));return this.valuePrimitive?n:t},validity:function(){var e=void 0!==this.$props.validationMessage,t=this.computedValue(),n=!this.$props.required||null!==t&&t.length>0&&void 0!==t;return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:n,valueMissing:null===t}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,r=void 0===i?[]:i,o=n.dataItemKey,s=n.virtual,a=this.computedValue(),l=r[e-(s?s.skip:0)],u=a.findIndex((function(e){return $(e,l,o)})),d=[];-1!==u?(d=a).splice(u,1):d=Ue(a,[l]),(void 0!==this.$props.filter?this.$props.filter:this.currentText)&&(this.currentText&&(t.data.currentText=""),this.base.filterChanged("",t)),void 0!==this.currentFocusedIndex&&(t.data.currentFocusedIndex=void 0),this.triggerOnChange(d,t),this.base.triggerPageChangeCornerItems(l,t)},onTagDelete:function(e,t){var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.base.initState();i.event=t,n&&this.base.togglePopup(i),this.currentFocused||(i.data.currentFocused=!0);var r=this.computedValue();O(r,e,this.$props.dataItemKey),this.triggerOnChange(r,i),this.applyState(i)},onNavigate:function(e,t){var n=this.$props,i=n.allowCustom,r=n.dataItems,o=void 0===r?[]:r,a=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,l=void 0!==this.$props.filter?this.$props.filter:this.currentText,u=this.getFocusedState(),d=u.focusedType,c=u.focusedIndex,p=i&&l,h=tt(d),f=this.base,v=f.vs;if(a&&t===s.Keys.up&&h)void 0!==this.currentFocusedIndex&&(e.data.currentFocusedIndex=void 0);else{var m=f.navigation.navigate({keyCode:t,current:c,max:(v.enabled?v.total:o.length)-1,min:p?-1:0});void 0!==m&&(this.itemFocus(m,e),this.scrollToFocused=!0)}this.applyState(e)},itemFocus:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,s=n.allowCustom,a=n.virtual,l=a?a.skip:0,u=void 0!==this.$props.filter?this.$props.filter:this.currentText,d=this.getFocusedState().focusedIndex,c=s&&u,p=o[e-l];p&&d!==e?this.currentFocusedIndex!==e&&(t.data.currentFocusedIndex=e,t.data.activedescendant=r.PopupList):c&&-1===e&&void 0!==this.currentFocusedIndex&&(t.data.currentFocusedIndex=void 0),this.base.triggerPageChangeCornerItems(p,t)},searchBarRef:function(){var e=this;this.input&&this.currentFocused&&setTimeout((function(){return e.input.focus()}),0)},onChangeHandler:function(e){var t=this.base.initState(),n=e.currentTarget.value,i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;t.event=e,void 0===this.$props.filter&&(t.data.currentText=n),t.data.currentFocusedIndex=void 0,i||this.base.togglePopup(t),this.base.filterChanged(n,t),this.applyState(t)},clearButtonClick:function(e){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState();n.event=e,e.stopPropagation(),this.computedValue().length>0&&this.triggerOnChange([],n),void 0!==this.currentFocusedIndex&&(n.data.currentFocusedIndex=void 0),t&&this.base.togglePopup(n);var i=void 0!==this.$props.filter?this.$props.filter:this.currentText;k(i)&&""!==i&&this.base.filterChanged("",n),this.currentText&&(n.data.currentText=""),this.applyState(n)},onInputKeyDown:function(e){var t=this,n=e.keyCode,i=void 0!==this.$props.filter?this.$props.filter:this.currentText,r=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,o=this.getFocusedState().focusedItem,a=this.base.initState();if(a.event=e,!i&&this.computedValue().length>0&&(n===s.Keys.left||n===s.Keys.right||n===s.Keys.home||n===s.Keys.end||n===s.Keys.delete||n===s.Keys.backspace))return this.onTagsNavigate(e,a);var l=function(){e.preventDefault(),t.base.togglePopup(a),t.applyState(a)};r?e.altKey&&n===s.Keys.up?l():n===s.Keys.up||n===s.Keys.down?(e.preventDefault(),this.onNavigate(a,n)):n===s.Keys.enter?(e.preventDefault(),this.$props.allowCustom&&i&&null===o?this.customItemSelect(e):this.selectFocusedItem(e)):n===s.Keys.esc&&l():e.altKey&&n===s.Keys.down&&l()},onTagsNavigate:function(e,t){var n=e.keyCode,i=this.currentFocusedTag,o=this._tags,a=this.$props.dataItemKey,l=i?o.findIndex((function(e){return et(e,i,a)})):-1,u=void 0,d=-1!==l;if(n===s.Keys.left)u=o[l=d?Math.max(0,l-1):o.length-1];else if(n===s.Keys.right)l===o.length-1?u=void 0:d&&(u=o[l=Math.min(o.length-1,l+1)]);else if(n===s.Keys.home)u=o[0];else if(n===s.Keys.end)u=o[o.length-1];else if(n===s.Keys.delete){if(d){var c=this.computedValue();O(c,o[l].data,a),this.triggerOnChange(c,t)}}else if(n===s.Keys.backspace){c=this.computedValue();if(d)O(c,o[l].data,a),this.triggerOnChange(c,t);else if(!d&&o.length){var p=o.pop();O(c,p.data,a),this.triggerOnChange(c,t)}}u!==i&&(t.data.currentFocusedTag=u,t.data.activedescendant=r.TagsList),this.applyState(t)},triggerOnChange:function(e,t){void 0===this.$props.value&&(t.data.currentValue=Ue(e)),this.valuesItemsDuringOnChange=[],this.setItems(e,this.valuesItemsDuringOnChange),t.events.push({type:"change"})},selectFocusedItem:function(e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,r=t.virtual,o=this.getFocusedState().focusedIndex;void 0!==i[o-(r?r.skip:0)]&&this.handleItemClick(o,e)},setItems:function(e,t){t.length=0,t.push.apply(t,e)},getFocusedState:function(){var e,t=this.currentFocusedIndex,n=void 0!==this.$props.filter?this.$props.filter:this.currentText,i=this.$props,r=i.allowCustom,o=i.dataItems,s=void 0===o?[]:o,a=i.dataItemKey,l=i.virtual,u=i.textField,d=i.focusedItemIndex,c=void 0===d?S:d,p=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:s[t-p],focusedType:He.ListItem};var h=this.computedValue();if(r&&n)return{focusedItem:null,focusedIndex:-1,focusedType:He.CustomItem};if(n)return{focusedItem:s[e=c(s,n,u)],focusedIndex:e+p,focusedType:He.ListItem};if(h.length){var f=h[h.length-1];return e=s.findIndex((function(e){return $(e,f,a)})),void 0!==s[e]?{focusedIndex:e+p,focusedItem:s[e],focusedType:He.ListItem}:{focusedType:He.None,focusedIndex:-1}}return 0===p?{focusedItem:s[0],focusedIndex:0,focusedType:He.ListItem}:{focusedType:He.None,focusedIndex:-1}},customItemSelect:function(e){var t,n=void 0!==this.$props.filter?this.$props.filter:this.currentText,i=this.$props.textField;if(n){var r=this.base.initState();r.event=e;var o=i?((t={})[i]=n,t):n;void 0!==this.currentText&&(r.data.currentText=""),r.data.currentFocusedIndex=void 0,this.base.filterChanged("",r);var s=Ue(this.computedValue(),[o]);this.triggerOnChange(s,r),this.base.togglePopup(r),this.applyState(r)}},handleWrapperClick:function(e){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.input;!t&&n&&this.focusElement(n);var i=this.base.initState();i.event=e,this.currentFocused||(i.events.push({type:"focus"}),i.data.currentFocused=!0),this.base.togglePopup(i),this.applyState(i)},handleItemClick:function(e,t){var n=this.base.initState();n.event=t,this.handleItemSelect(e,n),this.$props.autoClose&&this.base.togglePopup(n),this.applyState(n)},handleBlur:function(e){if(this.currentFocused&&!this._skipFocusEvent){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState(),i=this.$props,r=i.allowCustom,o=i.filterable;n.event=e,n.data.currentFocused=!1,n.events.push({type:"blur"}),t&&(this.currentOpened&&(n.data.currentOpened=!1),n.events.push({type:"close"})),r||o||!this.currentText||(n.data.currentText=""),this.applyState(n)}},handleFocus:function(e){this._skipFocusEvent||this.base.handleFocus(e)},onPopupOpened:function(){this.input&&this.currentFocused&&this.focusElement(this.input)},onPopupClosed:function(){var e=this;this.currentFocused&&setTimeout((function(){e.currentFocused&&e.focusElement(e.input)}),0)},focusElement:function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout((function(){return t._skipFocusEvent=!1}),30)},applyState:function(e){this.base.applyState(e),this.valuesItemsDuringOnChange=null},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},focus:function(){this.input&&this.input.focus()}},render:function(e){var t,n=Ge||e,i=this.$props,o=i.style,a=i.label,l=i.dir,u=i.disabled,d=i.tags,c=i.textField,h=i.dataItemKey,f=i.virtual,v=i.loading,m=i.size,g=i.fillMode,b=i.rounded,y=i.tagsRounded,k=this.currentFocused,w=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),S=this.currentFocusedTag,C=this.computedValue(),O=(void 0!==this.$props.filter?this.$props.filter:this.currentText)||"",$=!v&&(!!O||C.length>0),I=this.base.vs,D=this.$props.id||this.inputId,V=s.templateRendering.call(this,this.$props.tagRender,s.getListeners.call(this));I.enabled=void 0!==f,void 0!==f&&(I.skip=f.skip,I.total=f.total,I.pageSize=f.pageSize);var M=[];void 0===d?this.computedValue().forEach((function(e){M.push({text:x(e,c),data:[e]})})):M.push.apply(M,d),this.setItems(M,this._tags);var R=!this.$props.validityStyles||this.validity().valid,B=function(){var e=this,t=this.$props.dataItems,i=void 0===t?[]:t,r=s.templateRendering.call(this,this.$props.itemRender,s.getListeners.call(this)),o=s.templateRendering.call(this,this.$props.listNoDataRender,s.getListeners.call(this)),a=f?f.skip:0,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=this.getFocusedState().focusedIndex,d="translateY("+I.translate+"px)";return n(q,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:l,dataItems:i.slice(),focusedIndex:u-a,value:this.computedValue(),textField:c,valueField:h,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:w.height},wrapperCssClass:"k-list-content",listStyle:I.enabled?{transform:d}:void 0,skip:a,itemRender:r,noDataRender:o},show:l,dataItems:i.slice(),focusedIndex:u-a,value:this.computedValue(),textField:c,valueField:h,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:w.height},wrapperCssClass:"k-list-content",listStyle:I.enabled?{transform:d}:void 0,key:"listKey",skip:a,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:I.scrollHandler},itemRender:r,noDataRender:o,onScroll:I.scrollHandler},this.v3?function(){return[N.call(e)]}:[N.call(e)])},N=function(){return I.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})},P=n("span",{ref:Object(s.setRef)(this,"kendoAnchor",this.anchor),class:Object(s.classNames)("k-multiselect","k-input",(t={},t["k-input-"+(Ye[m]||m)]=m,t["k-rounded-"+(Ze[b]||b)]=b,t["k-input-"+g]=g,t["k-focus"]=k&&!u,t["k-disabled"]=u,t["k-invalid"]=!R,t["k-loading"]=v,t["k-required"]=this.required,t)),style:a?We(We({},o),{width:void 0}):o,dir:l,attrs:this.v3?void 0:{dir:l},onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,click:this.handleWrapperClick,mousedown:T},onClick:this.handleWrapperClick,onMousedown:T},[M.length>0&&n(_e,{tagsRounded:y,attrs:this.v3?void 0:{tagsRounded:y,size:m,fillMode:g,tagRender:V,dataItems:M,guid:this.base.guid,focused:S?M.find((function(e){return et(e,S,h)})):void 0},size:m,fillMode:g,tagRender:V,onTagdelete:this.onTagDelete,on:this.v3?void 0:{tagdelete:this.onTagDelete},dataItems:M,guid:this.base.guid,focused:S?M.find((function(e){return et(e,S,h)})):void 0}),function(e){var t=this,i=this.activedescendant,o=this.$props.placeholder,s=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,a=this.getFocusedState().focusedIndex,l=0!==C.length||O?void 0:o,d=i===r.TagsList&&void 0!==S?"tag-"+this.base.guid+"-"+S.text.replace(/\s+/g,"-"):"option-"+this.base.guid+"-"+a;return n(pe,{id:e,attrs:this.v3?void 0:{id:e,size:Math.max((l||"").length,O.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:l,value:O,disabled:u,expanded:s,owns:this.base.listBoxId,activedescendant:d,"aria-describedBy":"tagslist-"+this.base.guid+" "+(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy},size:Math.max((l||"").length,O.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:l,value:O,onChange:this.onChangeHandler,on:this.v3?void 0:{change:this.onChangeHandler,blur:this.handleBlur,keydown:this.onInputKeyDown},onBlur:this.handleBlur,onKeydown:this.onInputKeyDown,ref:this.v3?function(e){t.inputRef=e}:"input",disabled:u,expanded:s,owns:this.base.listBoxId,activedescendant:d,"aria-describedBy":"tagslist-"+this.base.guid+" "+(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy})}.call(this,D),function(e){return e?n(ge,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):n("span")}.call(this,$),function(e){return e?n("span",{class:"k-icon k-input-loading-icon k-i-loading"}):n("span")}.call(this,v),function(){var e,t=this,i=this.base,r=this.$props,o=r.allowCustom,a=r.dataItems,u=void 0===a?[]:a,d=s.templateRendering.call(this,this.$props.header,s.getListeners.call(this)),c=s.templateRendering.call(this,this.$props.footer,s.getListeners.call(this)),h=s.getTemplate.call(this,{h:n,template:d}),v=s.getTemplate.call(this,{h:n,template:c}),g=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,b=void 0!==this.$props.filter?this.$props.filter:this.currentText,y=void 0!==w.width?w.width:i.popupWidth,k=this.getFocusedState().focusedType,S=o&&b&&n("div",{class:"k-list",key:"customitem",onClick:this.customItemSelect,on:this.v3?void 0:{click:this.customItemSelect}},[n("div",{class:Object(s.classNames)("k-item k-custom-item",{"k-focus":tt(k)})},[b,n("span",{class:"k-icon k-i-plus",style:{float:"right"}})])]);return n(p,{ref:"container",onMousedown:Qe,on:this.v3?void 0:{mousedown:Qe,blur:this.handleBlur},dir:void 0!==l?l:i.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==l?l:i.dirCalculated,width:y,popupSettings:{animate:w.animate,anchor:this.anchor,show:g,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:Object(s.classNames)(w.popupClass,"k-list",(e={},e["k-list-"+(Ye[m]||m)]=m,e["k-virtual-list"]=this.base.vs.enabled,e)),className:w.className,appendTo:w.appendTo},itemsCount:u.length},onBlur:this.handleBlur,width:y,popupSettings:{animate:w.animate,anchor:this.anchor,show:g,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:Object(s.classNames)(w.popupClass,"k-list",(e={},e["k-list-"+(Ye[m]||m)]=m,e["k-virtual-list"]=this.base.vs.enabled,e)),className:w.className,appendTo:w.appendTo},itemsCount:u.length},this.v3?function(){return[h&&n("div",{class:"k-list-header"},[h]),S,B.call(t),v&&n("div",{class:"k-list-footer"},[v]),f&&h]}:[h&&n("div",{class:"k-list-header"},[h]),S,B.call(t),v&&n("div",{class:"k-list-footer"},[v]),f&&h])}.call(this)]);return a?n("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[P,this.$props.label?D?n("label",{for:D,attrs:this.v3?void 0:{for:D},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):P}},it=nt},function(e,t,n){"use strict";n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return R}));var i=n(1),r=n(0),o=n(3);function s(e){return e&&e.length>0?{items:l.call(this,e),inputItems:e}:{items:[],inputItems:[]}}function a(e){var t={},n=e.text,i=e.url,o=e.icon,s=e.disabled,a=e.cssClass,l=e.cssStyle,u=e.render,d=e.linkRender,c=e.contentRender,p=e.data;return void 0!==n&&(t.text=n),void 0!==i&&(t.url=i),void 0!==o&&(t.icon=o),void 0!==s&&(t.disabled=s),void 0!==a&&(t.cssClass=a),void 0!==l&&(t.cssStyle=l),void 0!==u&&(t.render=r.templateRendering.call(this,u,r.getListeners.call(this))),void 0!==d&&(t.linkRender=r.templateRendering.call(this,d,r.getListeners.call(this))),void 0!==c&&(t.contentRender=r.templateRendering.call(this,c,r.getListeners.call(this))),void 0!==p&&(t.data=p),t}function l(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i],s=a.call(this,r);s.id=Object(o.c)(i.toString(),t),s.isLastFromSiblings=i===e.length-1,s.items=u.call(this,r,s),n.push(s)}return n}function u(e,t){return e.contentRender?[{contentParentItemId:t.id,id:Object(o.c)(o.b,t.id),isLastFromSiblings:!0,contentRender:r.templateRendering.call(this,e.contentRender,r.getListeners.call(this)),items:[]}]:e.items?l.call(this,e.items,t.id):[]}var d=/\S/;function c(e,t,n,i,s,a){var l,u=g();switch(n){case r.Keys.left:return s?a?f():p():a?h():c();case r.Keys.right:return s?a?p():f():a?c():h();case r.Keys.up:return s?y():Object(o.m)(t)?m():y();case r.Keys.down:return s?k():Object(o.m)(t)?v():k();case r.Keys.enter:case r.Keys.space:return u.disabled?t:b()?Object(o.f)(t):Object(o.h)(t);case r.Keys.home:return w()[0].id;case r.Keys.end:return(l=w())[l.length-1].id;case r.Keys.esc:return Object(o.m)(t)?t:Object(o.d)(t);default:return 1===i.length&&d.test(i)?function(){var e=i.toLowerCase(),n=w(),r=Number(Object(o.i)(t)),s=n.slice(r+1).concat(n.slice(0,r+1)).find((function(t){return(t.text||"").toLowerCase().startsWith(e)}));return s?s.id:t}():t}function c(){return Object(o.m)(t)?y():Object(o.l)(t)?v(y(Object(o.h)(t))):Object(o.d)(t)}function p(){return Object(o.m)(t)?m():Object(o.d)(t)}function h(){return Object(o.m)(t)?k():v(b()?t:k(Object(o.h)(t)))}function f(){return v(Object(o.m)(t)||b()?t:k(Object(o.h)(t)))}function v(e){return S(!0,e)}function m(e){return S(!1,e)}function g(n,i){return void 0===n&&(n=t),void 0===i&&(i=e),Object(o.g)(n,i)}function b(e){return g(e).items.length>0}function y(e){return C(!1,e)}function k(e){return C(!0,e)}function w(){return Object(o.m)(t)?e:g(Object(o.d)(t),e).items}function S(e,n){void 0===n&&(n=t);var i=g(n);return b(n)&&!i.disabled?e?Object(o.f)(n):function(e){var t=g(e).items;return t[t.length-1].id}(n):n}function C(n,i){if(void 0===i&&(i=t),Object(o.m)(i))return Object(o.e)(n,i,e.length);var r=Object(o.d)(i),s=Object(o.i)(i),a=g(r).items.length;return Object(o.c)(Object(o.e)(n,s,a),r)}}var p=n(14),h=n(16),f=n(41),v=n(42),m=i,g=m.h,b=m.version&&"3"===m.version[0],y=m.ref,k={name:"KendoMenuItemInternal",emits:{keydown:null,mouseover:null,mouseleave:null,blur:null,focus:null,click:null,mousedown:null},props:{item:Object,focusedItemId:String,lastItemIdToBeOpened:String,tabbableItemId:String,itemRender:[String,Object,Function],linkRender:[String,Object,Function],isMenuVertical:Boolean,isDirectionRightToLeft:Boolean,menuGuid:String,originalItemNeeded:Function},created:function(){this.itemElement=null,this.prevFocusedItemId=this.$props.focusedItemId,this.isFirstRender=!0,this._anchor=Object(r.guid)()},data:function(){return{opened:!1}},mounted:function(){this.itemElement=Object(r.getRef)(this,"kendoAnchor",this._anchor);var e=this.$props.focusedItemId,t=this.$props.item.id;e&&e===t&&this.itemElement&&this.itemElement.focus(),this.isFirstRender=!1},watch:{focusedItemId:function(e,t){this.prevFocusedItemId=t}},updated:function(){var e=this.$props.focusedItemId,t=this.$props.item.id;e?this.prevFocusedItemId===e||e!==t||this.itemElement.contains(document.activeElement)||this.itemElement.focus():document.activeElement===this.itemElement&&this.itemElement.blur()},computed:{currentItemRender:function(){return this.$props.item.render||this.$props.itemRender},currentLinkRender:function(){return this.$props.item.linkRender||this.$props.linkRender},contentRender:function(){return this.$props.item.contentParentItemId?this.$props.item.contentRender:null},currentOpened:function(){var e=this.$props;return e.item.items.length>0&&Object(o.n)(e.item.id,e.lastItemIdToBeOpened)&&!this.isFirstRender},currentFocused:function(){return this.$props.focusedItemId===this.$props.item.id},popupClassName:function(){return Object(r.classNames)({"k-menu-popup":!0,"k-rtl":this.$props.isDirectionRightToLeft})},menuItemClassName:function(){var e,t=this.$props.item;return(e={"k-item":!0,"k-menu-item":!0,"k-first":Object(o.j)(t.id),"k-last":t.isLastFromSiblings,"k-disabled":t.disabled})[t.cssClass?t.cssClass:""]=t.cssClass,e}},setup:b?function(){return{v3:!!b,kendoAnchorRef:y(null)}}:void 0,render:function(e){var t=this,n=g||e,i=this.$props.item,o=i.id,s=function(){return this.$props.item.icon?n("span",{class:"k-icon k-i-"+this.$props.item.icon,role:"presentation",attrs:this.v3?void 0:{role:"presentation"},key:"0"}):null},a=function(){return this.$props.item.items.length>0?n(v.a,{itemId:this.$props.item.id,attrs:this.v3?void 0:{itemId:this.$props.item.id,verticalMenu:this.$props.isMenuVertical,dir:Object(h.a)(this.$props.isDirectionRightToLeft)},verticalMenu:this.$props.isMenuVertical,dir:Object(h.a)(this.$props.isDirectionRightToLeft),key:"2"}):null},l=this.$props.originalItemNeeded(i.id);return n("li",{class:this.menuItemClassName,style:i.cssStyle,tabindex:o===this.$props.tabbableItemId?0:-1,attrs:this.v3?void 0:{tabindex:o===this.$props.tabbableItemId?0:-1,role:"menuitem","aria-disabled":!!i.disabled||void 0,"aria-haspopup":i.items.length>0||void 0,"aria-expanded":i.items.length>0?this.currentOpened:void 0,"aria-label":i.text,"aria-owns":this.currentOpened?Object(h.c)(this.$props.menuGuid,o):void 0},onMouseover:this.onMouseOver,on:this.v3?void 0:{mouseover:this.onMouseOver,mouseleave:this.onMouseLeave,mousedown:function(e){return t.handleMouseDown(e)},focusout:function(){return t.handleBlur(o)},focusin:function(){return t.handleFocus(o)},click:function(e){return t.handleClick(e,o)},keydown:this.handleKeyDown},onMouseleave:this.onMouseLeave,onMousedown:function(e){return t.handleMouseDown(e)},onFocusout:function(){return t.handleBlur(o)},onFocusin:function(){return t.handleFocus(o)},onClick:function(e){return t.handleClick(e,o)},onKeydown:this.handleKeyDown,role:"menuitem","aria-disabled":!!i.disabled||void 0,"aria-haspopup":i.items.length>0||void 0,"aria-expanded":i.items.length>0?this.currentOpened:void 0,"aria-label":i.text,"aria-owns":this.currentOpened?Object(h.c)(this.$props.menuGuid,o):void 0,ref:Object(r.setRef)(this,"kendoAnchor",this._anchor),key:"0"},[this.contentRender?function(){var e=this.$props.item.contentParentItemId;return n("div",{class:"k-content",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[function(e){return r.getTemplate.call(this,{h:n,template:this.contentRender,additionalProps:e})}.call(this,{item:this.handleOriginalItemNeeded(e),itemId:e})])}.call(this):function(){var e=this,t=n("span",{class:"k-menu-link-text"},[i.text]),o=r.getTemplate.call(this,{h:n,template:this.currentItemRender,defaultRendering:t,additionalProps:{item:l,itemId:i.id,key:"1"}}),u=n(f.a,{url:i.url,attrs:this.v3?void 0:{url:i.url,opened:this.currentOpened,focused:this.currentFocused},opened:this.currentOpened,focused:this.currentFocused},this.v3?function(){return[[s.call(e),o,a.call(e)]]}:[[s.call(e),o,a.call(e)]]);return r.getTemplate.call(this,{h:n,template:this.currentLinkRender,defaultRendering:u,additionalProps:{item:l,itemId:i.id,opened:this.currentOpened,dir:Object(h.a)(this.$props.isDirectionRightToLeft)}})}.call(this),function(){var e=this,t=Object(h.d)(o,this.$props.isMenuVertical,this.$props.isDirectionRightToLeft),i=t.anchorAlign,r=t.popupAlign,s=t.collision;return n(p.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.currentOpened,popupClass:this.popupClassName,anchorAlign:i,popupAlign:r,collision:s,animate:!1},show:this.currentOpened,popupClass:this.popupClassName,anchorAlign:i,popupAlign:r,collision:s,animate:!1,key:"1"},this.v3?function(){return[n(x,{parentItemId:o,attrs:e.v3?void 0:{parentItemId:o,items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,originalItemNeeded:e.handleOriginalItemNeeded},items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,class:"k-group k-menu-group k-reset",onMouseover:e.handleItemMouseOver,on:e.v3?void 0:{mouseover:e.handleItemMouseOver,mouseleave:e.handleItemMouseLeave,mousedown:e.handleMouseDown,blur:e.handleItemMouseBlur,focus:e.handleItemMouseFocus,click:e.handleClick,keydown:e.handleKeyDown},onMouseleave:e.handleItemMouseLeave,onMousedown:e.handleMouseDown,onBlur:e.handleItemMouseBlur,onFocus:e.handleItemMouseFocus,onClick:e.handleClick,onKeydown:e.handleKeyDown,originalItemNeeded:e.handleOriginalItemNeeded})]}:[n(x,{parentItemId:o,attrs:e.v3?void 0:{parentItemId:o,items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,originalItemNeeded:e.handleOriginalItemNeeded},items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,class:"k-group k-menu-group k-reset",onMouseover:e.handleItemMouseOver,on:e.v3?void 0:{mouseover:e.handleItemMouseOver,mouseleave:e.handleItemMouseLeave,mousedown:e.handleMouseDown,blur:e.handleItemMouseBlur,focus:e.handleItemMouseFocus,click:e.handleClick,keydown:e.handleKeyDown},onMouseleave:e.handleItemMouseLeave,onMousedown:e.handleMouseDown,onBlur:e.handleItemMouseBlur,onFocus:e.handleItemMouseFocus,onClick:e.handleClick,onKeydown:e.handleKeyDown,originalItemNeeded:e.handleOriginalItemNeeded})])}.call(this)])},methods:{handleKeyDown:function(e){this.$emit("keydown",e)},handleItemMouseOver:function(e){this.$emit("mouseover",e)},handleItemMouseLeave:function(e){this.$emit("mouseleave",e)},handleItemMouseBlur:function(e){this.$emit("blur",e)},handleItemMouseFocus:function(e){this.$emit("focus",e)},handleClick:function(e,t){this.$emit("click",e,t)},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},handleMouseDown:function(e){this.$emit("mousedown",e)},handleOriginalItemNeeded:function(e){return this.$props.originalItemNeeded(e)},onMouseOver:function(e){this.$emit("mouseover",this.$props.item.id),e.stopPropagation()},onMouseLeave:function(e){this.$emit("mouseleave",this.$props.item.id),e.stopPropagation()}}},w=i,S=w.h,C=w.version&&"3"===w.version[0],x={name:"KendoMenuItemInternalsList",emits:{keydown:null,mouseover:null,mouseleave:null,blur:null,focus:null,click:null,mousedown:null},props:{items:Array,parentItemId:{type:String,default:void 0},focusedItemId:String,lastItemIdToBeOpened:String,tabbableItemId:String,itemRender:[String,Object,Function],linkRender:[String,Object,Function],isMenuVertical:Boolean,isDirectionRightToLeft:Boolean,menuGuid:String,originalItemNeeded:Function},setup:C?function(){return{v3:!!C}}:void 0,render:function(e){var t=S||e,n=this.$props.parentItemId;return t("ul",{role:void 0!==n?"menu":"menubar",attrs:this.v3?void 0:{role:void 0!==n?"menu":"menubar",id:void 0!==n?Object(h.c)(this.$props.menuGuid,n):void 0},id:void 0!==n?Object(h.c)(this.$props.menuGuid,n):void 0},[function(){return this.$props.items.length>0?this.$props.items.map((function(e,n){return t(k,{item:e,attrs:this.v3?void 0:{item:e,isMenuVertical:this.$props.isMenuVertical,isDirectionRightToLeft:this.$props.isDirectionRightToLeft,focusedItemId:this.$props.focusedItemId,lastItemIdToBeOpened:this.$props.lastItemIdToBeOpened,tabbableItemId:this.$props.tabbableItemId,itemRender:this.$props.itemRender,linkRender:this.$props.linkRender,menuGuid:this.$props.menuGuid,originalItemNeeded:this.handleOriginalItemNeeded},isMenuVertical:this.$props.isMenuVertical,isDirectionRightToLeft:this.$props.isDirectionRightToLeft,focusedItemId:this.$props.focusedItemId,lastItemIdToBeOpened:this.$props.lastItemIdToBeOpened,tabbableItemId:this.$props.tabbableItemId,itemRender:this.$props.itemRender,linkRender:this.$props.linkRender,menuGuid:this.$props.menuGuid,onMouseover:this.handleItemMouseOver,on:this.v3?void 0:{mouseover:this.handleItemMouseOver,mouseleave:this.handleItemMouseLeave,mousedown:this.handleItemMouseDown,keydown:this.handleKeyDown,blur:this.handleItemMouseBlur,focus:this.handleItemMouseFocus,click:this.handleItemMouseClick},onMouseleave:this.handleItemMouseLeave,onMousedown:this.handleItemMouseDown,onKeydown:this.handleKeyDown,onBlur:this.handleItemMouseBlur,onFocus:this.handleItemMouseFocus,onClick:this.handleItemMouseClick,originalItemNeeded:this.handleOriginalItemNeeded,key:n})}),this):null}.call(this)])},methods:{handleKeyDown:function(e){this.$emit("keydown",e)},handleOriginalItemNeeded:function(e){return this.$props.originalItemNeeded(e)},handleItemMouseOver:function(e){this.$emit("mouseover",e)},handleItemMouseLeave:function(e){this.$emit("mouseleave",e)},handleItemMouseDown:function(e){this.$emit("mousedown",e)},handleItemMouseBlur:function(e){this.$emit("blur",e)},handleItemMouseFocus:function(e){this.$emit("focus",e)},handleItemMouseClick:function(e,t){this.$emit("click",e,t)},onMouseOver:function(e){void 0!==this.$props.parentItemId&&(this.$emit("mouseover",this.$props.parentItemId),e.stopPropagation())},onMouseLeave:function(e){void 0!==this.$props.parentItemId&&(this.$emit("mouseleave",this.$props.parentItemId),e.stopPropagation())}}},O=function(){function e(){this.phase="Initialized"}return e.prototype.getIsDirectionRightToLeft=function(){return this.isDirectionRightToLeft},e.prototype.setIsDirectionRightToLeft=function(e){this.phase="NotInitialized"===this.phase?"Initialized":"NewValueReceived",this.previousIsDirectionRightToLeft=this.isDirectionRightToLeft,this.isDirectionRightToLeft=e},e.prototype.hasDirectionChanged=function(){return"NewValueReceived"===this.phase&&this.previousIsDirectionRightToLeft!==this.isDirectionRightToLeft},e}(),$=function(){function e(e,t,n){this.openOnClick=e,this.resetMenu=t,this.openItem=n,this.openOnClick=e,this.isMouseOverEnabled=!e}return Object.defineProperty(e.prototype,"OpenOnClick",{set:function(e){Boolean(e)!==Boolean(this.openOnClick)&&(this.mouseDown=!1,this.isMouseOverEnabled=!e),this.openOnClick=e},enumerable:!1,configurable:!0}),e.prototype.handleItemSelectedViaKeyboard=function(){this.openOnClick&&(this.isMouseOverEnabled=!1,this.resetMenu())},Object.defineProperty(e.prototype,"IsMouseOverEnabled",{get:function(){return this.isMouseOverEnabled},enumerable:!1,configurable:!0}),e.prototype.handleItemMouseDown=function(){this.mouseDown=!0},e.prototype.handleItemFocus=function(){this.openOnClick&&!this.mouseDown&&(this.isMouseOverEnabled=!0),this.mouseDown=!1},e.prototype.handleItemClick=function(e,t){this.openOnClick&&(this.isMouseOverEnabled?t&&(this.isMouseOverEnabled=!1,this.resetMenu()):(this.isMouseOverEnabled=!0,this.openItem(e)))},e}(),I=n(12),T=function(){return(T=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},D=i,V=D.h,M=D.version&&"3"===D.version[0],R={name:"KendoMenu",props:{vertical:{type:Boolean,default:!1},items:Array,dir:String,hoverOpenDelay:{type:Number,default:void 0},hoverCloseDelay:{type:Number,default:void 0},openOnClick:Boolean,itemRender:[String,Object,Function],linkRender:[String,Object,Function],customCloseItemIds:Array},created:function(){Object(r.validatePackage)(I.a),this.mouseOverHandler=new $(this.$props.openOnClick,this.reset,this.onItemMouseOver),this.guid=Object(r.guid)(),this.directionHolder=new O,this.inputItems=[],this.currentItems=[]},mounted:function(){this.isFirstRender=!1,this.menuWrapperEl=Object(r.getRef)(this,"menuWrapper")},updated:function(){this.mouseOverHandler.OpenOnClick=this.$props.openOnClick},destroyed:M?void 0:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},unmounted:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},data:function(){return{focusedItemId:o.a,hoveredItemId:o.a,tabbableItemId:o.b,isFirstRender:!0}},computed:{menuClassName:function(){return{"k-widget":!0,"k-reset":!0,"k-header":!0,"k-menu":!0,"k-menu-horizontal":!this.$props.vertical,"k-menu-vertical":this.$props.vertical}}},setup:M?function(){return{v3:!!M}}:void 0,render:function(e){var t=V||e;this.prepareItems(),this.isFirstRender||this.directionHolder.setIsDirectionRightToLeft(this.checkIsDirectionRightToLeft());var n=this.hoveredItemId?this.hoveredItemId:this.focusedItemId?Object(o.d)(this.focusedItemId):o.a;return t("div",{class:this.getMenuWrapperClassName(),ref:Object(r.setRef)(this,"menuWrapper")},[t(x,{class:this.menuClassName,"aria-orientation":this.$props.vertical?"vertical":void 0,attrs:this.v3?void 0:{"aria-orientation":this.$props.vertical?"vertical":void 0,items:this.currentItems,isMenuVertical:this.$props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.focusedItemId,lastItemIdToBeOpened:n,tabbableItemId:this.tabbableItemId,itemRender:r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),linkRender:r.templateRendering.call(this,this.$props.linkRender,r.getListeners.call(this)),menuGuid:this.guid,originalItemNeeded:this.getInputItem},items:this.currentItems,isMenuVertical:this.$props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.focusedItemId,lastItemIdToBeOpened:n,tabbableItemId:this.tabbableItemId,itemRender:r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),linkRender:r.templateRendering.call(this,this.$props.linkRender,r.getListeners.call(this)),menuGuid:this.guid,onMouseleave:this.onItemMouseLeave,on:this.v3?void 0:{mouseleave:this.onItemMouseLeave,mouseover:this.onItemMouseOver,mousedown:this.onItemMouseDown,keydown:this.onKeyDown,focus:this.onItemFocus,click:this.onItemClick,blur:this.onItemBlur},onMouseover:this.onItemMouseOver,onMousedown:this.onItemMouseDown,onKeydown:this.onKeyDown,onFocus:this.onItemFocus,onClick:this.onItemClick,onBlur:this.onItemBlur,originalItemNeeded:this.getInputItem})])},methods:{reset:function(){this.clearItemHoverAndLeaveRequestsIfApplicable(),this.focusedItemId=o.a,this.hoveredItemId=o.a,this.tabbableItemId=o.b},onKeyDown:function(e){if(this.focusedItemId!==o.a){var t=Object(o.g)(this.focusedItemId,this.currentItems),n=c(this.currentItems,t.id,e.keyCode,e.key,this.$props.vertical,this.directionHolder.getIsDirectionRightToLeft());t.id!==n&&(e.preventDefault(),this.setFocusedItemId(n)),e.keyCode!==r.Keys.enter&&e.keyCode!==r.Keys.space||t.disabled||(this.mouseOverHandler.handleItemSelectedViaKeyboard(),this.dispatchSelectEventIfWired(e,t.id),!e.defaultPrevented&&0===t.items.length&&t.url&&window.location.assign(t.url))}},onItemMouseOver:function(e){if(this.mouseOverHandler.IsMouseOverEnabled){this.clearItemHoverAndLeaveRequestsIfApplicable();var t=this;this.itemHoverRequest=window.setTimeout((function(){t.setHoveredItemId(e),t.itemHoverRequest=null}),void 0!==(n=T({},this.$props)).hoverOpenDelay?n.hoverOpenDelay:n.openOnClick?0:100)}var n},onItemMouseLeave:function(e){if(this.mouseOverHandler.IsMouseOverEnabled&&this.isItemWithDefaultClose(e)){this.clearItemHoverAndLeaveRequestsIfApplicable();var t=this;this.itemLeaveRequest=window.setTimeout((function(){t.setHoveredItemId(o.a),t.itemLeaveRequest=null}),void 0!==(n=T({},this.$props)).hoverCloseDelay?n.hoverCloseDelay:100)}var n},onItemMouseDown:function(){this.mouseOverHandler.handleItemMouseDown()},onItemFocus:function(e){this.setFocusedItemId(e),this.mouseOverHandler.handleItemFocus()},onItemClick:function(e,t){var n=Object(o.g)(t,this.currentItems);n.disabled||(this.setFocusedItemId(t),this.mouseOverHandler.handleItemClick(t,this.isItemWithDefaultClose(t)),this.dispatchSelectEventIfWired(e,t),!e.defaultPrevented&&n.url&&window.location.assign(n.url))},onItemBlur:function(e){this.isItemWithDefaultClose(e)&&this.setFocusedItemId(o.a)},getInputItem:function(e){return Object(o.g)(e,this.inputItems)},setFocusedItemId:function(e){var t=e===o.a?this.tabbableItemId:Object(o.h)(e),n=e===o.a||Object(o.k)(this.hoveredItemId)&&Object(o.k)(e)?this.hoveredItemId:o.a;this.hoveredItemId=n,this.focusedItemId=e,this.tabbableItemId=t},setHoveredItemId:function(e){Object(o.k)(e)&&Object(o.k)(this.focusedItemId)?this.hoveredItemId=e:(this.hoveredItemId=e,this.focusedItemId=o.a,this.tabbableItemId=o.b)},getMenuWrapperClassName:function(){return{"k-rtl":this.directionHolder.getIsDirectionRightToLeft()}},clearItemHoverAndLeaveRequestsIfApplicable:function(){this.itemHoverRequest&&(clearTimeout(this.itemHoverRequest),this.itemHoverRequest=null),this.itemLeaveRequest&&(clearTimeout(this.itemLeaveRequest),this.itemLeaveRequest=null)},isItemWithDefaultClose:function(e){return!this.$props.customCloseItemIds||-1===this.$props.customCloseItemIds.indexOf(e)},checkIsDirectionRightToLeft:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:this.menuWrapperEl&&"rtl"===getComputedStyle(this.menuWrapperEl).direction},prepareItems:function(){var e=s.call(this,this.$props.items),t=e.items,n=e.inputItems;this.currentItems=t,this.inputItems=n},dispatchSelectEventIfWired:function(e,t){this.$emit("select",{event:e,compontent:this,item:this.getInputItem(t),itemId:t})}}},B=R},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return x}));var i,r=n(1);!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(i||(i={}));var o=function(){function e(e,t,n){void 0===n&&(n=i.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '"+this.value+"', rest: "+this.rest+" })"},e}(),s=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),a=function(e){return(e||"").split("")},l=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof s?this.parse(e):this.parse(new s(a(e),a(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===i.Literal},e}(),u=function(e,t){return new l((function(n){var i=n.next().char,r=e[i];return"\\"===i?(i=n.next().char,new o(t.literal(i),n)):new o(r?t.mask(r):t.literal(i),n)}))},d=function(e){var t=e.prompt,n=e.promptPlaceholder;return new l((function(e){var i=e.next().char;return new o(i===t?n:i,e)}))},c=function(e){return new l((function(t){var n=t.next().char;return new o(e?n:"",t)}))},p=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new l((function(e){return new o(t,e)}))));var t},h=function(e){return new l((function(t){for(var n=new o([],t);!t.eof();)n=n.concat(e.run(t));return n}))},f=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,r=void 0===i?"":i,o=e.promptPlaceholder,s=void 0===o?" ":o,a=e.rules,l=void 0===a?{}:a,u=e.includeLiterals,d=void 0!==u&&u;this.mask=n,this.prompt=r,this.promptPlaceholder=s,this.rules=l,this.includeLiterals=d,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return p(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(p(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(p(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var r="",o=i,s=t.split("").slice(0,n),a=t.split("").slice(i);return p(this.maskTokens.slice(n,i)).run(e).fold((function(e){r=s.concat(e).concat(a).join("")})),{selection:o,value:r}},e.prototype.maskRemoved=function(e,t,n){var i=this,r="",o=n,s=e.split("").slice(n),a=e.split("").slice(0,n).join(""),l=this.maskTokens.length-(e.length-n);return p(this.maskTokens.slice(0,l)).run(a,t).fold((function(e){o=i.adjustPosition(e,o),r=e.concat(s).join("")})),{selection:o,value:r}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,r="",o=n,s=e.slice(0,n);return p(this.unmaskTokens).run(s,t).chain((function(e){o=e.join("").length;var n=t.slice(o);return p(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){r=e.join("")})),{selection:o,value:r}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new l((function(e){return e.peek().char===t?(e.eat(),new o(t,e,i.Literal)):new o(t,e,i.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new l((function(r){for(;!r.eof();){var s=r.peek(),a=s.char,l=s.control;if(a===l&&l===t)return r.eat(),new o(t,r,i.Mask);if(e.test(a))return r.eat(),new o(a,r,i.Mask);if(a===n)return r.eat(),new o(t,r,i.Mask);r.eat_input()}return r.eat(),new o(t,r,i.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new l((function(e){return e.eof()?new o("",e):(e.peek().char===t&&e.eat(),new o(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new l((function(t){for(;!t.eof();){var i=t.peek(),r=i.char,s=i.control;if(r===n&&s===n)return t.eat(),new o(r,t);if(e.test(r))return t.eat(),new o(r,t);t.eat_input()}return t.eat(),new o("",t)}))})(t);var n}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder,n=this.includeLiterals;return{literal:function(e){return c(n)},mask:function(n){return d({prompt:e,promptPlaceholder:t})}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return c(!1)},mask:function(t){return d({prompt:e,promptPlaceholder:""})}}},enumerable:!1,configurable:!0}),e.prototype.tokenize=function(){var e=this;h(u(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),h(u(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),h(u(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),h(u(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),v={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},m=function(){return!1},g=function(e,t){if(!!e!=!!t)return!1;if(e===t||!e||!t)return!0;var n=!0;for(var i in e)if(e[i]!==t[i]){n=!1;break}if(n)for(var i in t)if(!e.hasOwnProperty(i)){n=!1;break}return n},b=n(0),y=n(8),k=r,w=k.h,S=k.version&&"3"===k.version[0],C=k.ref,x={model:{event:"changemodel"},props:{type:{type:String,default:"text"},modelValue:String,modelRawValue:String,value:String,defaultValue:String,placeholder:String,title:String,dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,tabIndex:Number,accessKey:String,disabled:Boolean,readonly:Boolean,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},prompt:{type:String,default:"_"},promptPlaceholder:{type:String,default:" "},includeLiterals:{type:Boolean,default:!1},maskValidation:{type:Boolean,default:!0},mask:String,rules:{type:Object,default:function(){return v}},selection:Object,name:String,label:String,validationMessage:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:b.templateDefinition,inputSuffix:b.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String},data:function(){return{currentValue:void 0,currentFocused:!1,inputValue:void 0,currentSelection:[null,null]}},created:function(){Object(b.validatePackage)(y.a),this.hasMounted=!1,this.valueDuringOnChange=void 0,this.inputId="k-"+Object(b.guid)(),this.service=new f,this.isPasted=!1},setup:S?function(){return{v3:!!S,inputRef:C(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.element=this.input=this.v3?this.inputRef:this.$refs.input,this.updateService(),this.setValidity()},watch:{currentFocused:function(e,t){this.prevCurrentFocused=t},selection:function(e,t){this.prevSelection=t},includeLiterals:function(e,t){this.prevIncludeLiterals=t},mask:function(e,t){this.prevMask=t},prompt:function(e,t){this.prevPrompt=t},promptPlaceholder:function(e,t){this.prevPromptPlaceholder=t},rules:function(e,t){this.prevRules=t}},updated:function(){if(this.element&&this.currentFocused){var e=this.currentSelection,t=e[0],n=e[1],i=this.prevSelection,r=this.$props.selection;(!i&&r||i&&r&&(i.start!==r.start||i.end!==r.end))&&(t=r.start,n=r.end),null!==t&&null!==n&&this.element.setSelectionRange(t,n)}var o,s,a={includeLiterals:this.prevIncludeLiterals,mask:this.prevMask,prompt:this.prevPrompt,promptPlaceholder:this.prevPromptPlaceholder,rules:this.prevRules};o=a,s=this.$props,o.includeLiterals===s.includeLiterals&&o.mask===s.mask&&o.prompt===s.prompt&&o.promptPlaceholder===s.promptPlaceholder&&g(o.rules,s.rules)||this.updateService(),this.setValidity()},computed:{computedRules:{get:function(){return Object.assign({},v,this.$props.rules)}},spanClassNames:{get:function(){var e,t=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return(e={"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!t&&void 0!==t,"k-rtl":"rtl"===this.$props.dir,"k-loading":this.showLoadingIcon})[this.wrapperClass]=this.wrapperClass,e}},wrapperSpanClass:function(){var e,t=this.$props,n=t.size,i=t.fillMode,r=t.rounded,o=!this.$props.validityStyles||this.validity().valid;return(e={"k-maskedtextbox":!0,"k-input":!0})["k-input-"+(b.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(b.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-invalid"]=!o,e["k-required"]=this.required,e["k-disabled"]=this.$props.disabled,e["k-loading"]=this.showLoadingIcon,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),e||""},rawValue:function(){return this.service.rawValue(this.computedValue())},validity:function(){var e=this.computedValue(),t=this.service.validationValue(e);return{customError:void 0!==this.$props.validationMessage,valid:void 0!==this.$props.valid?this.$props.valid:!(this.$props.required&&!t||this.$props.maskValidation&&this.$props.prompt&&-1!==e.indexOf(this.$props.prompt)),valueMissing:!t}},pasteHandler:function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.currentSelection=[n||0,i||0])},clearClick:function(e){this.triggerOnChange("",e)},onChangeHandler:function(e){var t=e.currentTarget,n=this.inputValue=t.value,i=this.currentSelection[0]||0,r=this.currentSelection[1]||0;if(!this.$props.mask)return this.isPasted=!1,this.currentSelection=[null,null],void this.triggerOnChange(n,e);var o,s=this.computedValue();if(this.isPasted){this.isPasted=!1;var a=s.length-r,l=n.length-a;o=this.service.maskInRange(n.slice(i,l),s,i,r)}else o=this.service.maskInput(n,s,t.selectionStart||0);this.currentSelection=[o.selection,o.selection],this.triggerOnChange(o.value,e),this.inputValue=void 0},focusHandler:function(e){this.currentFocused||(this.currentFocused=!0,this.$emit("focus",{target:this,event:e}))},blurHandler:function(e){this.currentFocused&&(this.currentFocused=!1,this.$emit("blur",{target:this,event:e}))},triggerOnChange:function(e,t){this.currentValue=e,this.valueDuringOnChange=e,this.$emit("change",{event:t,selectionStart:this.currentSelection[0],selectionEnd:this.currentSelection[1],value:this.computedValue(),component:this,target:{name:this.$props.name,value:this.computedValue(),rawValue:this.rawValue()},validity:this.validity()}),this.$emit("update:modelValue",this.computedValue()),this.$emit("update:modelRawValue",this.rawValue()),this.$emit("changemodel",this.computedValue()),this.valueDuringOnChange=void 0},updateService:function(e){var t=Object.assign({includeLiterals:this.$props.includeLiterals,mask:this.$props.mask,prompt:this.$props.prompt,promptPlaceholder:this.$props.promptPlaceholder,rules:this.$props.rules},e);this.service.update(t)},setValidity:function(){this.element&&this.element.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"")}},render:function(e){var t=w||e,n=this.$props.id||this.inputId,i=this.$props,r=i.iconName,o=i.showValidationIcon,s=i.showLoadingIcon,a=i.showClearButton,l=!this.$props.validityStyles||this.validity().valid,u=this.computedValue(),d=(this.inputValue,b.templateRendering.call(this,this.$props.inputPrefix,b.getListeners.call(this))),c=b.templateRendering.call(this,this.$props.inputSuffix,b.getListeners.call(this)),p=b.getTemplate.call(this,{h:t,template:d,additionalProps:{value:u,valid:l}}),h=b.getTemplate.call(this,{h:t,template:c,additionalProps:{value:u,valid:l}}),f=t("span",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:this.wrapperSpanClass,style:this.$props.label?void 0:{width:this.$props.width}},[r&&t("span",{class:"k-input-icon k-icon k-i-"+r}),this.$props.inputPrefix&&t("span",{class:"k-input-prefix"},[p]),t("input",{type:this.$props.type,attrs:this.v3?void 0:{type:this.$props.type,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:!1,id:n,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabindex:Object(b.getTabIndex)(this.$props.tabIndex,this.$props.disabled,!0),accesskey:this.$props.accessKey,title:this.$props.title,disabled:this.$props.disabled||void 0,readonly:this.$props.readonly||void 0,placeholder:this.$props.placeholder,required:this.$props.required},autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:!1,class:this.inputInnerClass,value:this.v3?u:null,domProps:this.v3?void 0:{value:u},id:n,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabindex:Object(b.getTabIndex)(this.$props.tabIndex,this.$props.disabled,!0),accesskey:this.$props.accessKey,title:this.$props.title,disabled:this.$props.disabled||void 0,readonly:this.$props.readonly||void 0,placeholder:this.$props.placeholder,required:this.$props.required,ref:Object(b.setRef)(this,"input"),onInput:this.onChangeHandler,on:this.v3?void 0:{input:this.onChangeHandler,paste:this.pasteHandler,focus:this.focusHandler,blur:this.blurHandler,dragstart:m,drop:m},onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragstart:m,onDrop:m}),this.$props.inputSuffix&&t("span",{class:"k-input-suffix"},[h]),o&&l&&t("span",{class:"k-input-validation-icon k-icon k-i-check"}),o&&!l&&t("span",{class:"k-input-validation-icon k-icon k-i-warning"}),s&&t("span",{class:"k-input-loading-icon k-icon k-i-loading"}),a&&u&&t("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[t("span",{class:"k-icon k-i-x"})])]);return this.$props.label?t("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[f,this.$props.label?n?t("label",{for:n,attrs:this.v3?void 0:{for:n},class:"k-label"},[this.$props.label]):t("span",{class:"k-label"},[this.$props.label]):null]):f}},O=x},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var i=n(1),r=n(17),o=n(0),s=function(e,t,n){var i=Math.abs((t-e)/100);return Math.abs((n-e)/i)},a=function(e,t,n,i){var r=Math.max(n,.01),o=100/r*100;e&&t&&(e.style.width=i?"100%":r+"%",t.style.width=i?"100%":o+"%",e.style.height=i?r+"%":"100%",t.style.height=i?o+"%":"100%")},l={name:"@progress/kendo-vue-progressbars",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428926,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},u=i,d=u.h,c=u.version&&"3"===u.version[0],p={name:"KendoProgressBar",props:{animation:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},label:String,labelRender:[String,Object,Function],labelVisible:{type:Boolean,default:!0},labelPlacement:{type:String,default:void 0,validator:function(e){return["start","center","end"].includes(e)}},dir:{type:String,default:void 0},max:{type:Number,default:100},min:{type:Number,default:0},value:{type:Number,default:0},orientation:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},tabIndex:Number,emptyStyle:Object,emptyClassName:String,progressStyle:Object,progressClassName:String},created:function(){Object(o.validatePackage)(l),this.currentDir=this.$props.dir},mounted:function(){this._progressStatus=Object(o.getRef)(this,"progressStatus"),this._progressStatusWrap=Object(o.getRef)(this,"progressStatusWrap"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:Object(o.isRtl)(this.$el)?"rtl":"ltr",this.animationFrame=Object(r.d)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})},destroyed:c?void 0:function(){Object(r.e)(this.animationFrame)},unmounted:function(){Object(r.e)(this.animationFrame)},data:function(){return{currentDir:void 0}},watch:{value:function(e,t){this.prevValue=t,this.animationFrame=Object(r.d)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})}},computed:{wrapperClass:function(){var e=this.$props,t=e.disabled,n=e.reverse,i="vertical"===e.orientation;return{"k-widget k-progressbar":!0,"k-progressbar-horizontal":!i,"k-progressbar-vertical":i,"k-progressbar-reverse":n,"k-progressbar-indeterminate":null===e.value,"k-disabled":t}},isVertical:function(){return"vertical"===this.orientation},animationDuration:function(){var e=this.$props.animation;return"boolean"!=typeof e&&void 0!==e?e.duration:e?400:0}},setup:c?function(){return{v3:!!c}}:void 0,render:function(e){var t=d||e,n=this.$props,i=n.disabled,r=n.labelVisible,s=n.labelPlacement,a=n.max,l=n.min,u=n.tabIndex,c=n.emptyStyle,p=n.emptyClassName,h=n.progressStyle,f=n.progressClassName,v=this.$props.value||0,m=null===this.$props.value,g=function(e){var t=e.toString().split(".");return 1===t.length?""+t[0]:t[0]+"."+t[1].substr(0,3)}(v),b={value:v},y=this.$props.labelRender?o.templateRendering.call(this,this.$props.labelRender,o.getListeners.call(this)):void 0,k=t("span",{class:"k-progress-status"},g),w=o.getTemplate.call(this,{h:t,template:y,defaultRendering:k,additionalProps:b}),S=r?this.$props.label?t("span",{class:"k-progress-status"},[this.$props.label]):w:void 0,C=Object(o.classNames)("k-progress-status-wrap",{"k-progress-start":"start"===s,"k-progress-center":"center"===s,"k-progress-end":"end"===s||void 0===s});return t("div",{class:this.wrapperClass,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:Object(o.getTabIndex)(u,i),role:"progressbar","aria-valuemin":l,"aria-valuemax":a,"aria-valuenow":m?void 0:v,"aria-disabled":i},tabindex:Object(o.getTabIndex)(u,i),role:"progressbar","aria-valuemin":l,"aria-valuemax":a,"aria-valuenow":m?void 0:v,"aria-disabled":i},[t("span",{class:C+(p?" "+p:""),style:c},[S]),t("div",{class:"k-selected",style:h,ref:Object(o.setRef)(this,"progressStatus")},[t("span",{class:C+(f?" "+f:""),ref:Object(o.setRef)(this,"progressStatusWrap")},[S])])])},methods:{focus:function(){this.$el&&this.$el.focus()},progressStatusElement:function(){return this._progressStatus},progressStatusWrapElement:function(){return this._progressStatusWrap},handleStart:function(){var e=s(this.min,this.max,this.prevValue);a(this._progressStatus,this._progressStatusWrap,e,this.isVertical)},handleUpdate:function(e){var t=s(this.min,this.max,this.prevValue+(this.value-this.prevValue)*e);a(this._progressStatus,this._progressStatusWrap,t,this.isVertical)},handleEnd:function(){var e=s(this.min,this.max,this.value);a(this._progressStatus,this._progressStatusWrap,e,this.isVertical)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return b}));var i=n(1),r=n(5),o=n(0),s=n(8),a=n(14),l=i,u=l.h,d=l.version&&"3"===l.version[0],c={name:"KendoPicker",props:{popupSettings:Object,dir:String,open:Boolean,popupAnchor:String,id:String},computed:{horizontalAlign:function(){return"rtl"===this.$props.dir?"right":"left"},anchorAlign:function(){return{horizontal:this.horizontalAlign,vertical:"bottom"}},popupAlign:function(){return{horizontal:this.horizontalAlign,vertical:"top"}}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=u||e,n=Object(o.getDefaultSlots)(this),i=this.$props.popupSettings,r=i.popupClass,s=i.appendTo,l=i.animate,d=i.className;return t(a.Popup,{id:this.id,attrs:this.v3?void 0:{id:this.id,anchor:this.$props.popupAnchor,anchorAlign:this.anchorAlign,popupAlign:this.popupAlign,show:this.$props.open,appendTo:s,animate:l,popupClass:r},anchor:this.$props.popupAnchor,anchorAlign:this.anchorAlign,popupAlign:this.popupAlign,show:this.$props.open,onOpen:this.onOpen,on:this.v3?void 0:{open:this.onOpen,close:this.onClose},onClose:this.onClose,appendTo:s,animate:l,popupClass:r,class:Object(o.classNames)("k-reset",d)},this.v3?function(){return[n]}:[n])},methods:{onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}}},p=n(45),h=n(23),f=function(){return(f=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},v=i,m=v.h,g=v.version&&"3"===v.version[0],b={name:"KendoColorPicker",model:{event:"changemodel"},emits:{open:null,close:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,activecolorclick:null,focus:null,blur:null,change:null,viewchange:null},props:{modelValue:String,modelRgbaValue:String,value:{type:String,default:void 0},defaultValue:String,disabled:Boolean,dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,showClearButton:{type:Boolean,default:!0},showPreview:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0},paletteSettings:{type:Object,default:function(){return h.b}},valid:{type:Boolean,default:!0},tabIndex:{type:Number,default:0},title:String,icon:String,iconClassName:String,popupSettings:{type:Object,default:function(){return{}}},gradientSettings:{type:Object,default:function(){return h.a}},flatColorPickerSettings:{type:Object,default:function(){return{}}},open:{type:Boolean,default:void 0},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},view:{type:String,default:"combo",validator:function(e){return["gradient","palette","combo"].includes(e)}},selectedView:{type:Number,default:void 0}},data:function(){return{focused:!1,currentValue:this.$props.defaultValue,currentOpen:!1}},computed:{isValueControlled:function(){return void 0!==this.$props.value},isOpenControlled:function(){return void 0!==this.$props.open},computedValue:function(){return this.isValueControlled?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:void 0!==this.$props.modelRgbaValue?this.$props.modelRgbaValue:void 0!==this.currentValue?this.currentValue:this.defaultValue},computedOpen:function(){return this.isOpenControlled?this.$props.open:this.currentOpen},computedIconClassName:function(){var e=this.$props.icon;return this.$props.iconClassName||e&&"k-icon k-i-"+e},wrapperClassName:function(){var e,t=this.$props,n=t.size,i=t.fillMode,r=t.rounded;return(e={"k-picker":!0,"k-colorpicker":!0,"k-icon-picker":!0})["k-picker-"+(o.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-picker-"+i]=i,e["k-rounded-"+(o.kendoThemeMaps.roundedMap[r]||r)]=r,e["k-invalid"]=!this.valid,e["k-disabled"]=this.disabled,e["k-focus"]=this.focused,e}},created:function(){Object(o.validatePackage)(s.a),this._popupId="popup"+Object(o.guid)(),this.focusableElementGuid=Object(o.guid)()},mounted:function(){this.button=Object(o.getRef)(this,"button")},updated:function(){},setup:g?function(){return{v3:!!g}}:void 0,render:function(e){var t,n=this,i=this,s=m||e,a=this.$props,l=a.disabled,u=a.tabIndex,d=a.dir,h=a.view,v=a.selectedView,g=a.showClearButton,b=a.showPreview,y=a.showButtons,k=a.popupSettings,w=function(){return s(p.a,f({onKeydown:this.onKeyDownHandler,on:this.v3?void 0:{keydown:this.onKeyDownHandler,change:this.onFlatChangeHandler,focusout:this.onBlurHandler,viewchange:this.onViewChange},ref:Object(o.setRef)(this,"flatcolorpicker"),view:h,selectedView:v,showClearButton:g,showPreview:b,showButtons:y,value:this.computedValue||void 0,attrs:this.v3?void 0:f({view:h,selectedView:v,showClearButton:g,showPreview:b,showButtons:y,value:this.computedValue||void 0,paletteSettings:this.paletteSettings,gradientSettings:this.gradientSettings},this.flatColorPickerSettings),onChange:this.onFlatChangeHandler,onFocusout:this.onBlurHandler,onViewchange:this.onViewChange,paletteSettings:this.paletteSettings,gradientSettings:this.gradientSettings},this.flatColorPickerSettings))};return s("span",{class:this.wrapperClassName,dir:d,attrs:this.v3?void 0:{dir:d,id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabindex:Object(o.getTabIndex)(u,l),title:this.$props.title},id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:this.focusableElementGuid,tabindex:Object(o.getTabIndex)(u,l),title:this.$props.title,onKeydown:this.onButtonKeyDown,on:this.v3?void 0:{keydown:this.onButtonKeyDown,focusin:this.onFocusHandler,focusout:this.onButtonBlur},onFocusin:this.onFocusHandler,onFocusout:this.onButtonBlur},[s("span",{onClick:this.onActiveColorClickHandler,on:this.v3?void 0:{click:this.onActiveColorClickHandler},class:"k-input-inner"},[s("span",{class:Object(o.classNames)("k-value-icon","k-color-preview",{"k-no-color":!this.computedValue,"k-icon-color-preview":this.icon||this.iconClassName})},[(this.iconClassName||this.icon)&&s("span",{class:Object(o.classNames)("k-color-preview-icon",this.iconClassName,(t={},t["k-icon k-i-"+this.icon]=this.icon&&!this.iconClassName,t))}),s("span",{class:"k-color-preview-mask",style:{backgroundColor:this.computedValue}})])]),s(r.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabindex:-1,rounded:null,icon:"arrow-s"},tabindex:-1,ref:this.v3?function(e){i.buttonRef=e}:"button",onClick:this.onClickHandler,on:this.v3?void 0:{click:this.onClickHandler},rounded:null,class:"k-input-button",icon:"arrow-s"}),s(c,{dir:d,attrs:this.v3?void 0:{dir:d,id:this._popupId,open:this.computedOpen,popupAnchor:this.focusableElementGuid,popupSettings:f({},k)},id:this._popupId,open:this.computedOpen,onOpen:this.onOpenHandler,on:this.v3?void 0:{open:this.onOpenHandler},popupAnchor:this.focusableElementGuid,popupSettings:f({},k)},this.v3?function(){return[w.call(n)]}:[w.call(n)])])},methods:{focusElement:function(){this.$el&&this.$el.focus()},setOpen:function(e,t){e||t||!this.$el||this.$el.focus(),this.currentOpen=e,this.$emit(e?"open":"close")},onButtonKeyDown:function(e){var t=e.altKey,n=e.keyCode;return n===o.Keys.esc?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!1)):n===o.Keys.enter?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!this.computedOpen)):void(t&&n===o.Keys.down&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!0)))},onKeyDownHandler:function(e){var t=e.altKey,n=e.keyCode;return n===o.Keys.esc?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!1)):n===o.Keys.enter?(e.preventDefault(),e.stopPropagation(),void this.focusElement()):void(t&&n===o.Keys.up&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!1),this.focusElement()))},onOpenHandler:function(){var e=Object(o.getRef)(this,"flatcolorpicker");e&&e.focus()},onClickHandler:function(){this.setOpen(!this.computedOpen,!0)},onActiveColorClickHandler:function(e){this.$emit("activecolorclick",{event:e,value:this.computedValue})},isViewFocused:function(){return!(!document.activeElement||!document.activeElement.closest("#"+this._popupId))},onButtonBlur:function(e){this.focused=this.isViewFocused(),this.$emit("blur",{event:e})},onFocusHandler:function(e){this.blurTimeoutRef?(clearTimeout(this.blurTimeoutRef),this.blurTimeoutRef=void 0,e.target===this.$el&&this.setOpen(!1)):this.focused=!0,this.$emit("focus",{event:e})},onBlurTimeout:function(){var e=this.isViewFocused();e||this.setOpen(!1,!0),this.focused=e,this.blurTimeoutRef=void 0},onBlurHandler:function(){clearTimeout(this.blurTimeoutRef),this.palette=Object(o.getRef)(this,"palette"),this.gradient=Object(o.getRef)(this,"gradient"),this.blurTimeoutRef=setTimeout(this.onBlurTimeout,200)},onViewChange:function(e){this.$emit("viewchange",e)},onChangeHandler:function(e,t){var n=e.value;this.isValueControlled||(this.currentValue=n),t&&this.setOpen(!1),this.$emit("changemodel",n),this.$emit("update:modelRgbaValue",e.rgbaValue),this.$emit("update:modelValue",n),this.$emit("change",{value:n,rgbaValue:e.rgbaValue,event:e})},onFlatChangeHandler:function(e){this.onChangeHandler(e,!0)}}},y=b},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return j}));var i=n(1),r=n(0),o=n(4),s=n(5),a=n(2),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},u=/\d/,d=function(e,t){return void 0!==e?e:t},c=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},p=function(e){return(String(e).split(".")[1]||"").length},h=function(e,t){return Math.max(p(e),p(t))},f=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},v=function(e,t,n,i,r,o,s){var a=h(e||0,n||0),l=g(f((e||0)+(n||0),a),i,r);t.eventValue=l,t.currentLooseValue=c(l,o,s),t.selectionStart=t.selectionEnd=C(t.currentLooseValue,u)},m=function(e,t,n,i,r,o,s){var a=h(e||0,n||0),l=g(f((e||0)-(n||0),a),i,r);t.eventValue=l,t.currentLooseValue=c(l,o,s),t.selectionStart=t.selectionEnd=C(t.currentLooseValue,u)},g=function(e,t,n){return null==e?e:e>1||e<1||1===e?void 0!==n&&void 0!==t&&n<t?null:(void 0!==n&&e>n&&(e=n),void 0!==t&&e<t&&(e=t),e):null},b=function(e,t,n){var i=function(e,t){var n=t.findIndex((function(t){t[0];var n=t[1];return Boolean(n)&&e.indexOf(n)===e.length-n.length}));if(-1===n)return-1;var i=t[n][1];return e.length-i.length}(e,t);if(-1!==i&&n.selectionStart>i)n.selectionStart=n.selectionEnd=i;else{n.selectionStart>e.length&&(n.selectionStart=n.selectionEnd=e.length);var r=function(e,t){var n=t.findIndex((function(t){var n=t[0];t[1];return Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length}(e,t);-1!==r&&n.selectionStart<r&&(n.selectionStart=n.selectionEnd=r),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)}},y=function(e,t,n,i){e.selectionStart=e.selectionEnd=t,b(n,i,e)},k=function(e,t,n,i){e.eventValue=i.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,y(e,e.selectionStart,e.currentLooseValue,n)},w=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:C(e,u)},S=function(e){return e.split("").reverse().join("")},C=function(e,t){return e.length-S(e).search(t)},x=function(e){return e.split(e[e.search(u)])[0]},O=function(e){var t=S(e);return S(t.split(t[t.search(u)])[0])},$=function(e,t){return e.search(t)},I=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},T=function(e,t,n,i,r){var o="0"===e.replace(r,"")[0],s="0"===t.replace(r,"")[0];if(o&&!s)return n-1;if(s&&i)return n+1;for(var a=0,l=0;l<n;l++)u.test(e.charAt(l))&&a++;for(var d=0;a>0&&t.length>d;)u.test(t.charAt(d))&&a--,d++;return d},D=function(e,t,n){var i=l({},e),r=i.prevLooseValue,o=n.numberSymbols(),s=function(e,t){var n=t.formatNumber(1111111.1111111,e),i=t.formatNumber(-1111111.1111111,e),r=t.formatNumber(0,e),o=t.formatNumber(1,e),s=t.numberSymbols(),a=new RegExp("[\\d\\"+s.decimal+s.group+"]","g");return[n,i,r,o].map((function(e){return e.replace(a,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")}(t,n),a=String(i.currentLooseValue),d=String(r),p=new RegExp("[^\\d\\"+o.decimal+"]","g"),h=new RegExp("[^\\d\\"+o.decimal+"\\"+o.group+"]","g"),f=new RegExp("[\\d\\"+o.decimal+"\\"+o.group+"]"),v=a.replace(p,""),m=$(a,u),g=-1===m?-1:C(a,u),b=a.indexOf(o.decimal),S=(a.substring(0,m)+a.substring(m,g).replace(h,"")+a.substring(g,a.length)).split("").filter((function(e){return-1!==s.indexOf(e)||-1!==e.search(f)})).join(""),D=n.formatNumber(.31111111111111117,t).replace(p,""),V=D.indexOf(o.decimal),M=V>-1?D.length-V-1:0,R=n.formatNumber(1,t).replace(p,""),B=R.indexOf(o.decimal),N=B>-1?R.length-B-1:0,P=function(e,t){var n=t.formatNumber(1111111.1111111,e),i=t.formatNumber(-1111111.1111111,e),r=t.formatNumber(0,e),o=t.formatNumber(1,e),s=x(n),a=x(i),l=x(r),u=x(o);return{positiveInfo:[s,O(n)],negativeInfo:[a,O(i)],zeroInfo:[l,O(r)],oneInfo:[u,O(o)]}}(t,n),j=[P.positiveInfo,P.negativeInfo,P.zeroInfo,P.oneInfo],E=1!==j.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),A=a.length>0&&a.length<d.length,L=t&&"p"===t[0]&&a&&-1===a.indexOf(o.percentSign);if(!i.isPaste){if(""===a)return i.eventValue=null,i.currentLooseValue="",i;if(i.currentLooseValue===o.minusSign&&n.formatNumber(-0,t)!==d)return i.eventValue=-0,i.currentLooseValue=c(i.eventValue,t,n),y(i,w(i.currentLooseValue,o),i.currentLooseValue,j),i;if(function(e,t){var n=String(e.currentLooseValue),i=String(e.prevLooseValue);return n.split(t.minusSign).length!==i.split(t.minusSign).length&&n.length===i.length+t.minusSign.length}(i,o)){var F=n.parseNumber(r,t);i.eventValue=-(null!==F?F:0),i.currentLooseValue=c(i.eventValue,t,n);var z=$(i.currentLooseValue,u),K=$(d,u);return y(i,i.selectionEnd-1+(z-K),i.currentLooseValue,j),i}if(function(e,t){var n=String(e.currentLooseValue),i=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==i.indexOf(t.minusSign)}(i,o))return i.eventValue=n.parseNumber(i.currentLooseValue,t),y(i,i.selectionStart,i.currentLooseValue,j),i;if(i.currentLooseValue===o.decimal){i.eventValue=0;var _=c(i.eventValue,t,n);if(0===N&&M>0){var H=C(_,u);i.currentLooseValue=_.substring(0,H)+o.decimal+_.substring(H)}else i.currentLooseValue=_;return y(i,w(i.currentLooseValue,o)+1,i.currentLooseValue,j),i}if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(i,o))return k(i,t,j,n),i;if(L)return i.eventValue=n.parseNumber(a,t)/100,i.currentLooseValue=c(i.eventValue,t,n),i;if(String(i.currentLooseValue).replace(/[^\d]/g,"").length>15)return k(i,t,j,n),i;if(v!==a&&a&&E)if(-1===j.findIndex((function(e){var t=e[0],n=e[1],i=a.indexOf(t),r=a.indexOf(n),s=0===i,l=r===a.length-n.length,u=i+t.length!==m&&-1!==m&&a[i+t.length]!==o.decimal,d=r!==g&&-1!==g&&a[r-1]!==o.decimal;return t&&n?!u&&!d&&(s&&l):t?!u&&s:!!n&&(!d&&l)})))return k(i,t,j,n),i;if(v[v.length-1]===o.decimal&&M>0)return i.eventValue=n.parseNumber(a,t),i.currentLooseValue=S,i;if(i.currentLooseValue&&r)if((s+o.decimal+o.group).split("").findIndex((function(e){return a.split("").filter((function(t){return t===e})).length<d.split("").filter((function(t){return t===e})).length&&a.length+1===d.length&&(e!==o.decimal||0!==I(d.replace(p,""),o.decimal))}))>-1)return i.eventValue=n.parseNumber(e.prevLooseValue,t),i.currentLooseValue=e.prevLooseValue,i;var W=I(v,o.decimal),U="0"===v[v.length-1];if(A&&U&&W<N)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=c(i.eventValue,t,n),i;if(W>0){var q=a.substring(0,b);if(U&&(!q||0!==d.indexOf(q))){i.eventValue=n.parseNumber(i.currentLooseValue,t);var G=c(i.eventValue,t,n);return y(i,T(a,G,i.selectionEnd,A,p),G,j),i.currentLooseValue=G,i}if(W>M){var J=a.indexOf(o.decimal),X=a.substring(0,J)+a.substring(J,J+1+M)+a.substring(g,String(i.currentLooseValue).length);return i.eventValue=n.parseNumber(X,t),i.currentLooseValue=X,y(i,i.selectionStart,X,j),i}if(N!==M&&W<=M&&U)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=S,i;if(W<N)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=c(i.eventValue,t,n),i}}if(i.eventValue=n.parseNumber(i.currentLooseValue,t),L&&(i.eventValue=i.eventValue/100),"number"==typeof i.eventValue){G=c(i.eventValue,t,n);1===a.length?y(i,w(G,o),G,j):y(i,T(a,G,i.selectionEnd,A,p),G,j),i.currentLooseValue=G}else i.currentLooseValue=c(n.parseNumber(v),t,n);return i},V=n(8),M=i,R=M.h,B=M.version&&"3"===M.version[0],N=M.ref,P=M.inject,j={model:{event:"changemodel"},emits:{change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{modelValue:Number,value:Number,defaultValue:Number,step:{type:Number,default:1},format:[String,Object],tabIndex:Number,accessKey:String,title:String,placeholder:String,min:Number,max:Number,spinners:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},dir:String,name:String,label:String,validationMessage:String,validityStyles:{type:Boolean,default:!0},valid:{type:Boolean,default:void 0},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},required:{type:Boolean,default:!1},id:String,ariaLabel:String,iconName:String,inputPrefix:r.templateDefinition,inputSuffix:r.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String},inject:{kendoIntlService:{default:null},kendoLocalizationService:{default:null}},data:function(){return{hasMounted:!1,isInvalid:!1,isEmpty:!1,currentValue:0,valueDuringOnChange:0,currentLooseValue:"",selectionStart:0,selectionEnd:0,decimalSelect:!1,focused:!1,forceUpdate:!1}},created:function(){Object(r.validatePackage)(V.a),this._textBeforeInput="",this._inputId=Object(r.guid)(),this.$data.currentLooseValue=null,this.$data.valueDuringOnChange=void 0,this._intl=Object(o.provideIntlService)(this),this._symbols=this._intl.numberSymbols(),void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:void 0!==this.$props.defaultValue?this.$data.currentValue=this.$props.defaultValue:this.$data.currentValue=null},mounted:function(){this._input=Object(r.getRef)(this,"input"),this._elementWrapper=this.v3?this.elementWrapperRef:this.$refs.elementWrapper,this.$data.hasMounted=!0,this._input&&(this._textBeforeInput=this._input.value),this.setValidity()},updated:function(){r.canUseDOM&&document.activeElement!==this._input||!this._input||null===this.$data.currentLooseValue||this.$data.forceUpdate&&(this._input.selectionStart=this.$data.selectionStart,this._input.selectionEnd=this.$data.selectionEnd,this.$data.forceUpdate=!1),this._input&&(this._textBeforeInput=this._input.value),this.setValidity()},computed:{computedValue:{get:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:this.$data.currentValue}},looseValue:{get:function(){return c(this.$data.focused?this.$data.currentLooseValue:d(this.$props.value,this.$data.currentValue),this.$props.format,this._intl)}},spanClassNames:{get:function(){var e,t=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid,n=this.computedValue;return(e={"k-floating-label-container":!0,"k-focus":this.$data.focused,"k-empty":!(0===n||(n||this.$props.placeholder)),"k-invalid":!t&&void 0!==t,"k-rtl":"rtl"===this.$props.dir})[this.inputClass]=this.inputClass,e}},wrapperClassNames:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,s=t.required,a=t.disabled,l=!this.$props.validityStyles||this.validity().valid;return(e={"k-input":!0,"k-numerictextbox":!0})["k-input-"+(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-"+i]=i,e["k-rounded-"+(r.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!l,e["k-required"]=s,e["k-disabled"]=a,e["k-loading"]=this.showLoadingIcon,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e}},methods:{validity:function(){var e=void 0!==this.$props.validationMessage,t=!(this.$data.valueIsOutOfRange||this.$props.required&&null===this.computedValue);return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue}},clearClick:function(e){void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:this.$data.currentValue=null,this.$emit("changemodel",null),this.$emit("update:modelValue",null),this.$emit("change",{event:e,value:null,component:this,target:{name:this.$props.name,value:null},validity:this.validity()})},focus:function(){this._input&&this._input.focus()},emitFocus:function(e){this.$data.currentLooseValue=this._prevLooseValue,this.$data.focused=!0,this.$emit("focus",e),this.$data.forceUpdate=!0},emitBlur:function(e){this.$data.eventValue=null,this.$data.prevLooseValue="",this.$data.currentLooseValue="",this.$data.focused=!1,this.$data.selectionStart=void 0,this.$data.selectionEnd=void 0,this.$data.decimalSelect=!1,this.$data.valueIsCorrected=!1,this.$data.valueIsOutOfRange=!1,this.$emit("blur",e),this.$data.forceUpdate=!0},handleFocus:function(e){this.$data.focused=!0},handleBlur:function(e){this.$data.focused=!1},setValidity:function(){this._input&&this._input.setCustomValidity&&this._input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},getCurrentState:function(){return{eventValue:d(this.$props.value,this.$data.currentValue),prevLooseValue:this._prevLooseValue,currentLooseValue:this._input.value,selectionStart:this._input.selectionStart,selectionEnd:this._input.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:this._isPaste,focused:this.$data.focused}},parseNumber:function(e){return this._intl.parseNumber(e,this.$props.format)},elementChange:function(e){var t=this.getCurrentState();this._isPaste=!1,this.triggerChange(e,D(t,this.$props.format,this._intl))},triggerChange:function(e,t){var n=this;if(!this.$props.disabled){this.$data.valueDuringOnChange=t.eventValue,this.$data.currentValue=t.eventValue;var i=c(g(t.eventValue,this.$props.min,this.$props.max),this.$props.format,this._intl),r=g(this.parseNumber(i),this.$props.min,this.$props.max);if(r!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=r,this.$data.valueDuringOnChange=r,this.$data.currentValue=r),t.valueIsCorrected){var o=this._elementWrapper;o&&-1===o.className.indexOf("k-invalid")&&(this.$data.isInvalid=!0,setTimeout((function(){n.$data.isInvalid=!1}),50))}var s=this.$props.value!==t.eventValue;void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:this.$data.currentValue=this.$data.valueDuringOnChange,this.$data.prevLooseValue=t.prevLooseValue,this.$data.currentLooseValue=t.currentLooseValue,this.$data.selectionStart=t.selectionStart,this.$data.selectionEnd=t.selectionEnd,this.$data.decimalSelect=t.decimalSelect,this.$data.valueIsCorrected=t.valueIsCorrected,this.$data.valueIsOutOfRange=t.valueIsOutOfRange,this.$data.focused=t.focused,this.$data.isPaste=t.isPaste,this.$data.forceUpdate=!this.$data.forceUpdate,s&&(this.$emit("changemodel",this.$data.valueDuringOnChange),this.$emit("update:modelValue",this.$data.valueDuringOnChange),this.$emit("change",{event:e,value:this.$data.valueDuringOnChange,component:this,target:{name:this.$props.name,value:this.$data.valueDuringOnChange},validity:this.validity()})),this.$data.valueDuringOnChange=void 0}},onPasteHandler:function(e){this._isPaste=!0},increase:function(e){var t=this.getCurrentState();v(this.parseNumber(String(t.currentLooseValue)),t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl),this.triggerChange(e,t)},decrease:function(e){var t=this.getCurrentState();m(this.parseNumber(String(t.currentLooseValue)),t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl),this.triggerChange(e,t)},wheel:function(e){r.canUseDOM&&document.activeElement===this._input&&this._input&&(e.deltaY<0&&(e.preventDefault(),this.increase(e)),e.deltaY>0&&(e.preventDefault(),this.decrease(e)))},keyDown:function(e){var t=this.getCurrentState(),n=this.parseNumber(String(t.currentLooseValue));if(!(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length)){switch(e.keyCode){case 38:v(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 40:m(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 13:var i=c(g(n,this.$props.min,this.$props.max),this.$props.format,this._intl),r=g(this.parseNumber(i),this.$props.min,this.$props.max);t.eventValue=r,t.currentLooseValue=c(r,this.$props.format,this._intl),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var o=this._input,s=this._intl.numberSymbols();o&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+s.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=D(t,this.$props.format,this._intl));break;default:return}e.preventDefault(),this.triggerChange(e,t)}},spinnersWrapperMouseDown:function(e){r.canUseDOM&&this._input&&(e.preventDefault(),document.activeElement!==this._input&&this._input.focus())}},setup:B?function(){return{v3:!!B,inputRef:N(null),elementWrapperRef:N(null),kendoLocalizationService:P("kendoLocalizationService",{}),kendoIntlService:P("kendoIntlService",{})}}:void 0,render:function(e){var t=R||e,n=this.$props,i=n.iconName,l=n.showValidationIcon,u=n.showLoadingIcon,d=n.showClearButton,c=this.$props.id||this._inputId,p=Object(r.getDefaultSlots)(this),h=Object(o.provideLocalizationService)(this),f=this.validity().valid;void 0!==this.$props.value&&this.$props.value!==this.$data.currentValue?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue&&this.$props.modelValue!==this.$data.currentValue&&(this.$data.currentValue=this.$props.modelValue),this._prevLooseValue=this.looseValue;var v=r.templateRendering.call(this,this.$props.inputPrefix,r.getListeners.call(this)),m=r.templateRendering.call(this,this.$props.inputSuffix,r.getListeners.call(this)),g=r.getTemplate.call(this,{h:t,template:v,additionalProps:{value:this.computedValue,valid:f}}),b=r.getTemplate.call(this,{h:t,template:m,additionalProps:{value:this.computedValue,valid:f}}),y=t("span",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,"aria-disabled":this.$props.disabled?"true":void 0},class:this.wrapperClassNames,"aria-disabled":this.$props.disabled?"true":void 0,style:this.$attrs.style},[i&&t("span",{class:"k-input-icon k-icon k-i-"+i}),this.$props.inputPrefix&&t("span",{class:"k-input-prefix"},[g]),t("input",{tabindex:this.$props.tabIndex,attrs:this.v3?void 0:{tabindex:this.$props.tabIndex,accesskey:this.$props.accessKey,disabled:this.$props.disabled,title:this.$props.title,"aria-label":this.$props.ariaLabel,"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,placeholder:this.$props.placeholder,type:this.$props.inputType||"tel",spellcheck:!1,autocomplete:"off",autocorrect:"off",id:c,"aria-valuenow":null!==this.$data.currentValue?this.$data.currentValue:void 0,name:this.$props.name},accesskey:this.$props.accessKey,disabled:this.$props.disabled,title:this.$props.title,"aria-label":this.$props.ariaLabel,"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,placeholder:this.$props.placeholder,type:this.$props.inputType||"tel",spellcheck:!1,autocomplete:"off",autocorrect:"off",class:this.inputInnerClass,id:c,value:this.v3?this.looseValue:null,domProps:this.v3?void 0:{value:this.looseValue},"aria-valuenow":null!==this.$data.currentValue?this.$data.currentValue:void 0,name:this.$props.name,onWheel:this.wheel,on:this.v3?void 0:{wheel:this.wheel,keydown:this.keyDown,input:this.elementChange,focus:this.emitFocus,blur:this.emitBlur,paste:this.onPasteHandler},onKeydown:this.keyDown,onInput:this.elementChange,onFocus:this.emitFocus,onBlur:this.emitBlur,onPaste:this.onPasteHandler,ref:Object(r.setRef)(this,"input")}),this.$props.inputSuffix&&t("span",{class:"k-input-suffix"},[b]),l&&f&&t("span",{class:"k-input-validation-icon k-icon k-i-check"}),l&&!f&&t("span",{class:"k-input-validation-icon k-icon k-i-warning"}),u&&t("span",{class:"k-input-loading-icon k-icon k-i-loading"}),d&&void 0!==this.computedValue&&null!==this.computedValue&&t("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[t("span",{class:"k-icon k-i-x"})]),p,this.$props.spinners&&t("span",{class:"k-input-spinner k-spin-button",onMousedown:this.spinnersWrapperMouseDown,on:this.v3?void 0:{mousedown:this.spinnersWrapperMouseDown}},[t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-n","aria-label":h.toLanguageString(a.z,a.x[a.z]),title:h.toLanguageString(a.z,a.x[a.z])},tabIndex:-1,icon:"arrow-n",class:"k-spinner-increase","aria-label":h.toLanguageString(a.z,a.x[a.z]),title:h.toLanguageString(a.z,a.x[a.z]),onClick:this.increase,on:this.v3?void 0:{click:this.increase}}),t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-s","aria-label":h.toLanguageString(a.y,a.x[a.y]),title:h.toLanguageString(a.y,a.x[a.y])},tabIndex:-1,class:"k-spinner-decrease",icon:"arrow-s","aria-label":h.toLanguageString(a.y,a.x[a.y]),title:h.toLanguageString(a.y,a.x[a.y]),onClick:this.decrease,on:this.v3?void 0:{click:this.decrease}})])]);return this.$props.label?t("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[y,this.$props.label?c?t("label",{for:c,attrs:this.v3?void 0:{for:c},class:"k-label"},[this.$props.label]):t("span",{class:"k-label"},[this.$props.label]):null]):y}},E=j},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));var i,r=n(1),o=n(0),s=n(2),a=n(4),l=function(){return(l=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};!function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(i||(i={}));var u=n(8),d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},c=r,p=c.h,h=c.version&&"3"===c.version[0],f=c.ref,v=c.inject,m={name:"KendoRangeSlider",model:{event:"changemodel"},props:{id:String,value:{type:Object,validator:function(e){return e.start<=e.end}},defaultValue:{type:Object,default:function(){return{start:0,end:0}},validator:function(e){return e.start<=e.end}},step:{type:Number,default:1},min:{type:Number,required:!0},max:{type:Number,required:!0},vertical:Boolean,disabled:Boolean,dir:{type:String,default:"ltr",validator:function(e){return[null,"ltr","rtl"].includes(e)}},startTabIndex:Number,endTabIndex:Number},provide:function(){return{kendoMin:this.$props.min,kendoMax:this.$props.max,kendoVertical:this.$props.vertical}},inject:{kendoLocalizationService:{default:null}},created:function(){Object(o.validatePackage)(u.a)},data:function(){return{currentValue:this.defaultValue,currentDrag:"",currentDir:"ltr"}},computed:{computedValue:function(){return void 0!==this.$props.value?this.$props.value:this.currentValue},percentStart:function(){return(this.computedValue.start-this.min)/(this.max-this.min)*100},percentEnd:function(){return(this.computedValue.end-this.min)/(this.max-this.min)*100},sliderItemsStyle:function(){return this.vertical?{paddingTop:0,height:"100%"}:{}},trackStyles:function(){return this.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}},mounted:function(){if(this.sliderRef=this.$refs.sliderRef,this.sliderSelectionRef=this.$refs.sliderSelectionRef,this.startHandle=this.$refs.startHandle,this.endHandle=this.$refs.endHandle,this.sliderTrackRef=this.$refs.sliderTrackRef,this.sliderTrackWrapRef=this.$refs.sliderTrackWrapRef,!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},setup:h?function(){return{v3:!!h,inputRef:f(null),kendoLocalizationService:v("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n,i=this,r=p||e,l=Object(a.provideLocalizationService)(this),u=Object(o.getDefaultSlots)(this),c=this.$props,h=c.id;c.dir;return r("div",{role:"slider",attrs:this.v3?void 0:{role:"slider",id:h,dir:this.currentDir,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},id:h,dir:this.currentDir,class:Object(o.classNames)("k-widget k-slider",{"k-rtl":"rtl"===this.currentDir,"k-disabled":this.$props.disabled,"k-slider-vertical":this.$props.vertical,"k-slider-horizontal":!this.$props.vertical},this.$props.class),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},[r(o.Draggable,{onDrag:this.handleTrackDrag,on:this.v3?void 0:{drag:this.handleTrackDrag,press:this.handleTrackPress,release:this.handleTrackRelease},onPress:this.handleTrackPress,onRelease:this.handleTrackRelease,ref:"draggable"},this.v3?function(){return[r("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:d({flexGrow:1,position:"relative",touchAction:"none"},i.trackStyles)},[u&&r("ul",{class:"k-reset k-slider-items",style:d({},i.sliderItemsStyle)},[u]),r("div",{ref:"sliderTrackRef",class:"k-slider-track",style:i.$props.vertical?{bottom:0,height:"100%"}:(t={},t["rtl"===i.currentDir?"right":"left"]=0,t.width="100%",t)},[null!==i.percentStart&&null!==i.percentEnd&&r("div",{"data-selection":!0,attrs:i.v3?void 0:{"data-selection":!0,title:i.computedValue.start+" - "+i.computedValue.end},ref:"sliderSelectionRef",title:i.computedValue.start+" - "+i.computedValue.end,class:"k-slider-selection",style:i.vertical?{height:i.percentEnd-i.percentStart+"%",bottom:i.percentStart+"%"}:(n={},n["rtl"===i.currentDir?"right":"left"]=i.percentStart+"%",n.width=i.percentEnd-i.percentStart+"%",n)}),r("a",{ref:"startHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.B,s.x[s.B])},tabindex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.B,s.x[s.B]),style:i.vertical?{bottom:"calc("+i.percentStart+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentStart+"% - 13px)",zIndex:1}:{left:"calc("+i.percentStart+"%)",zIndex:1},onKeydown:i.handleStartKeyDown,on:i.v3?void 0:{keydown:i.handleStartKeyDown}}),r("a",{ref:"endHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.B,s.x[s.B])},tabindex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.B,s.x[s.B]),style:i.vertical?{bottom:"calc("+i.percentEnd+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentEnd+"% - 13px)",zIndex:1}:{left:"calc("+i.percentEnd+"%)",zIndex:1},onKeydown:i.handleEndKeyDown,on:i.v3?void 0:{keydown:i.handleEndKeyDown}})])])]}:[r("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:d({flexGrow:1,position:"relative",touchAction:"none"},i.trackStyles)},[u&&r("ul",{class:"k-reset k-slider-items",style:d({},i.sliderItemsStyle)},[u]),r("div",{ref:"sliderTrackRef",class:"k-slider-track",style:i.$props.vertical?{bottom:0,height:"100%"}:(t={},t["rtl"===i.currentDir?"right":"left"]=0,t.width="100%",t)},[null!==i.percentStart&&null!==i.percentEnd&&r("div",{"data-selection":!0,attrs:i.v3?void 0:{"data-selection":!0,title:i.computedValue.start+" - "+i.computedValue.end},ref:"sliderSelectionRef",title:i.computedValue.start+" - "+i.computedValue.end,class:"k-slider-selection",style:i.vertical?{height:i.percentEnd-i.percentStart+"%",bottom:i.percentStart+"%"}:(n={},n["rtl"===i.currentDir?"right":"left"]=i.percentStart+"%",n.width=i.percentEnd-i.percentStart+"%",n)}),r("a",{ref:"startHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.B,s.x[s.B])},tabindex:Object(o.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.B,s.x[s.B]),style:i.vertical?{bottom:"calc("+i.percentStart+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentStart+"% - 13px)",zIndex:1}:{left:"calc("+i.percentStart+"%)",zIndex:1},onKeydown:i.handleStartKeyDown,on:i.v3?void 0:{keydown:i.handleStartKeyDown}}),r("a",{ref:"endHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,title:l.toLanguageString(s.B,s.x[s.B])},tabindex:Object(o.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:l.toLanguageString(s.B,s.x[s.B]),style:i.vertical?{bottom:"calc("+i.percentEnd+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentEnd+"% - 13px)",zIndex:1}:{left:"calc("+i.percentEnd+"%)",zIndex:1},onKeydown:i.handleEndKeyDown,on:i.v3?void 0:{keydown:i.handleEndKeyDown}})])])])])},methods:{dispatchStateValue:function(e){var t=function(e,t){var n,r;switch(t.type){case i.start:if(void 0===t.payload)return e;n={start:t.payload>e.end?e.end:Math.max(t.payload,t.min),end:e.end};break;case i.end:if(void 0===t.payload)return e;n={start:e.start,end:t.payload<e.start?e.start:Math.min(t.payload,t.max)};break;case i.min:n="start"===t.key?l(l({},e),{start:t.min}):l(l({},e),{end:Math.max(t.min,e.start)});break;case i.max:n="start"===t.key?l(l({},e),{start:Math.min(t.max,e.end)}):l(l({},e),{end:t.max});break;case i.increase:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]+t.step,n="start"===t.key?r<t.min?l(l({},e),{start:t.min}):l(l({},e),{start:Math.min(r,e.end)}):r>t.max?l(l({},e),{end:t.max}):l(l({},e),{end:Math.max(r,e.start)});break;case i.decrease:if(void 0===t.step||void 0===t.key)return e;r=e[t.key]-t.step,n="start"===t.key?r<t.min?l(l({},e),{start:t.min}):l(l({},e),{start:Math.min(r,e.end)}):r>t.max?l(l({},e),{end:t.max}):l(l({},e),{end:Math.max(r,e.start)});break;default:n=e}return n}({start:this.computedValue.start,end:this.computedValue.end},d(d({},e),{min:this.min,max:this.max,step:this.step}));this.currentValue.start=t.start,this.currentValue.end=t.end,this.$emit("change",{min:this.min,max:this.max,step:this.step,value:{start:t.start,end:t.end}})},focus:function(){this.startHandle&&this.startHandle.focus()},handleChange:function(e,t){this.$emit("change",{value:e,event:t})},calcNewDistance:function(e){if(this.sliderTrackWrapRef){e.originalEvent.preventDefault();var t=this.sliderTrackWrapRef.getBoundingClientRect(),n=(this.$props.vertical?t.bottom-e.clientY:"rtl"===this.currentDir?t.right-e.clientX:e.clientX-t.left)/(this.$props.vertical?t.height:t.width);return this.min+n*(this.max-this.min)}},calcKey:function(e){return e<=this.computedValue.start?"start":e>=this.computedValue.end?"end":2*e<this.computedValue.end+this.computedValue.start?"start":"end"},handleStartKeyDown:function(e){switch(e.keyCode){case o.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.decrease:i.increase,key:"start",event:e});break;case o.Keys.up:e.preventDefault(),this.dispatchStateValue({type:i.increase,key:"start",event:e});break;case o.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.increase:i.decrease,key:"start",event:e});break;case o.Keys.down:e.preventDefault(),this.dispatchStateValue({type:i.decrease,key:"start",event:e});break;case o.Keys.home:e.preventDefault(),this.dispatchStateValue({type:i.min,key:"start",event:e});break;case o.Keys.end:e.preventDefault(),this.dispatchStateValue({type:i.max,key:"start",event:e})}},handleEndKeyDown:function(e){switch(e.keyCode){case o.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.decrease:i.increase,key:"end",event:e});break;case o.Keys.up:e.preventDefault(),this.dispatchStateValue({type:i.increase,key:"end",event:e});break;case o.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?i.increase:i.decrease,key:"end",event:e});break;case o.Keys.down:e.preventDefault(),this.dispatchStateValue({type:i.decrease,key:"end",event:e});break;case o.Keys.home:e.preventDefault(),this.dispatchStateValue({type:i.min,key:"end",event:e});break;case o.Keys.end:e.preventDefault(),this.dispatchStateValue({type:i.max,key:"end",event:e})}},handleTrackPress:function(e){var t=this.calcNewDistance(e),n=this.calcKey(t);this.currentDrag=n,"end"===n?this.endHandle.focus():this.startHandle.focus();var r="end"===n?i.end:i.start;this.dispatchStateValue({type:r,payload:t,event:e})},handleTrackDrag:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?i.end:i.start;this.dispatchStateValue({type:n,payload:t,event:e})},handleTrackRelease:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?i.end:i.start;this.dispatchStateValue({type:n,payload:t,event:e}),this.currentDrag=""}}},g=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return m}));var i=n(1),r=n(43),o=n(0),s=i,a=s.h,l=s.version&&"3"===s.version[0],u={name:"KendoSplitterBar",emits:{drag:null,toggle:null,keyboardresize:null},props:{orientation:{type:String,default:"vertical",validator:function(e){return["vertical","horizontal"].includes(e)}},index:Number,prev:Object,next:Object},created:function(){this.draggable=null},computed:{isStatic:function(){var e=this.$props,t=e.prev,n=e.next,i=t.resizable&&n.resizable,r=t.collapsible||n.collapsible;return!i&&!r},isDraggable:function(){var e=this.$props,t=e.prev,n=e.next,i=t.resizable&&n.resizable,r=t.collapsed||n.collapsed;return!!i&&!r},isHorizontal:function(){return"horizontal"===this.$props.orientation}},data:function(){return{focused:!1}},mounted:function(){this.$el&&(this.draggable=this.$refs.draggable)},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t,n=this,i=this,r=a||e,s=this.isDraggable,l=this.isStatic,u=this.isHorizontal,d=Object(o.classNames)("k-splitbar",((t={})["k-focus"]=this.focused,t["k-splitbar-horizontal"]=u,t["k-splitbar-vertical"]=!u,t["k-splitbar-draggable-horizontal"]=u&&s,t["k-splitbar-draggable-vertical"]=!u&&s,t["k-splitbar-static-horizontal"]=u&&l,t["k-splitbar-static-vertical"]=!u&&l,t)),c=this.previousArrowClass(u),p=this.nextArrowClass(u);return r(o.Draggable,{onPress:function(e){return i.onDrag(e,!0,!1)},on:this.v3?void 0:{press:function(e){return i.onDrag(e,!0,!1)},drag:function(e){return i.onDrag(e,!1,!1)},release:function(e){return i.onDrag(e,!1,!0)}},onDrag:function(e){return i.onDrag(e,!1,!1)},onRelease:function(e){return i.onDrag(e,!1,!0)},ref:"draggable"},this.v3?function(){return[r("div",{tabindex:l?-1:0,attrs:n.v3?void 0:{tabindex:l?-1:0,role:"separator"},role:"separator",class:d,style:{touchAction:"none"},onFocusin:n.onFocus,on:n.v3?void 0:{focusin:n.onFocus,focusout:n.onBlur,dblclick:n.onToggle,keydown:n.onKeyDown},onFocusout:n.onBlur,onDblclick:n.onToggle,onKeydown:n.onKeyDown},[r("div",{class:c,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),r("div",{class:"k-resize-handle"}),r("div",{class:p,onClick:n.onNextToggle,on:n.v3?void 0:{click:n.onNextToggle}})])]}:[r("div",{tabindex:l?-1:0,attrs:n.v3?void 0:{tabindex:l?-1:0,role:"separator"},role:"separator",class:d,style:{touchAction:"none"},onFocusin:n.onFocus,on:n.v3?void 0:{focusin:n.onFocus,focusout:n.onBlur,dblclick:n.onToggle,keydown:n.onKeyDown},onFocusout:n.onBlur,onDblclick:n.onToggle,onKeydown:n.onKeyDown},[r("div",{class:c,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),r("div",{class:"k-resize-handle"}),r("div",{class:p,onClick:n.onNextToggle,on:n.v3?void 0:{click:n.onNextToggle}})])])},methods:{onDrag:function(e,t,n){var i=e,r=this.$props.index,o=this.draggable&&this.draggable.element;!n&&i&&i.originalEvent.preventDefault(),o&&!this.isStatic&&this.isDraggable&&this.$emit("drag",i,o,r,t,n)},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},onToggle:function(e){var t=this.$props,n=t.index,i=t.prev,r=t.next;(i.collapsible||r.collapsible)&&this.$emit("toggle",i.collapsible?n:n+1,e)},onPrevToggle:function(e){var t=this.$props,n=t.index;t.prev.collapsible&&this.$emit("toggle",n,e)},onNextToggle:function(e){var t=this.$props,n=t.index;t.next.collapsible&&this.$emit("toggle",n+1,e)},onKeyDown:function(e){var t=this,n=e&&e.keyCode,i=this.isHorizontal,r=this.$props.index,s=this.draggable&&this.draggable.element,a=function(n,i,r){e.preventDefault(),t.$emit("keyboardresize",n,i,r,e)};s&&(n===o.Keys.enter?(e.preventDefault(),this.onToggle(e)):this.isDraggable&&(i&&n===o.Keys.left?a(s,r,-10):i&&n===o.Keys.right?a(s,r,10):i||n!==o.Keys.up?i||n!==o.Keys.down||a(s,r,10):a(s,r,-10)))},previousArrowClass:function(e){var t,n=this.$props.prev,i=n.collapsible,r=n.collapsed;return Object(o.classNames)("k-icon",((t={})["k-hidden"]=!i,t["k-collapse-prev"]=i,t["k-i-arrow-60-left"]=i&&e&&!r,t["k-i-arrow-60-right"]=i&&e&&r,t["k-i-arrow-60-up"]=i&&!e&&!r,t["k-i-arrow-60-down"]=i&&!e&&r,t))},nextArrowClass:function(e){var t,n=this.$props.next,i=n.collapsible,r=n.collapsed;return Object(o.classNames)("k-icon",((t={})["k-hidden"]=!i,t["k-collapse-next"]=i,t["k-i-arrow-60-right"]=i&&e&&!r,t["k-i-arrow-60-left"]=i&&e&&r,t["k-i-arrow-60-down"]=i&&!e&&!r,t["k-i-arrow-60-up"]=i&&!e&&r,t))}}},d=n(12),c=function(){return(c=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},p=i,h=p.h,f=p.version&&"3"===p.version[0],v={collapsible:!1,collapsed:!1,resizable:!0,scrollable:!0},m={name:"KendoSplitter",props:{orientation:{type:String,default:"horizontal",validator:function(e){return["vertical","horizontal"].includes(e)}},panes:Array,defaultPanes:Array},computed:{isControlledState:function(){return void 0!==this.$props.panes},computedPanes:function(){return this.isControlledState?this.$props.panes:this.currentPanes},isRtl:function(){return this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1}},created:function(){Object(o.validatePackage)(d.a)},data:function(){return{isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0,currentPanes:this.$props.defaultPanes||[]}},setup:f?function(){return{v3:!!f}}:void 0,render:function(e){var t=h||e,n=this.panesOptions(),i=Object(o.classNames)("k-widget","k-splitter","k-splitter-flex","k-splitter-"+this.orientation);this.validatePanes(n);return t("div",{class:i},[function(e){return e.map((function(n,i){var s,a=o.templateRendering.call(this,n.content,o.getListeners.call(this)),l=2*i,d=l+1;if(i+1<e.length){var c=e[i+1];s=t(u,{key:d,index:i,attrs:this.v3?void 0:{index:i,orientation:this.orientation,prev:n,next:c},orientation:this.orientation,prev:n,next:c,onDrag:this.onBarDragResize,on:this.v3?void 0:{drag:this.onBarDragResize,toggle:this.onBarToggle,keyboardresize:this.onBarKeyboardResize},onToggle:this.onBarToggle,onKeyboardresize:this.onBarKeyboardResize})}return[t(r.a,{key:l,containsSplitter:n.containsSplitter,attrs:this.v3?void 0:{containsSplitter:n.containsSplitter,size:n.size,min:n.min,max:n.max,resizable:n.resizable,collapsible:n.collapsible,collapsed:n.collapsed,scrollable:n.scrollable,keepMounted:n.keepMounted,content:a},size:n.size,min:n.min,max:n.max,resizable:n.resizable,collapsible:n.collapsible,collapsed:n.collapsed,scrollable:n.scrollable,keepMounted:n.keepMounted,content:a}),s]}),this)}.call(this,n)])},methods:{validatePanes:function(e){if(!e.filter((function(e){return void 0===e.size})).length)throw new Error("The Splitter should have at least one pane without a set size.")},mapPaneOptions:function(e){for(var t=this.orientation,n=[],i=0;i<e.length;i++){var r=!1;this.isDragging&&void 0!==this.dragIndex&&(r=this.dragIndex===i||this.dragIndex+1===i),n.push(c(c(c({},v),{orientation:t,overlay:r}),e[i]))}return n},onBarToggle:function(e,t){var n=this.panesOptions().map((function(t,n){var i=t;return n===e?c(c({},i),{collapsed:!t.collapsed}):c({},i)}));this.$emit("change",{newState:n,isLast:!0,nativeEvent:t})},onBarDragResize:function(e,t,n,i,r){var o=(new Date).getTime(),s=e.pageX,a=e.pageY,l=this.surroudingPanes(t),u=l.prevElement,d=l.nextElement;if(u&&d){if(i)return this.isDragging=!0,this.dragIndex=n,this.startTime=o,this.originalX=s,this.originalY=a,this.originalPrevSize=this.elementSize(u),void(this.originalNextSize=this.elementSize(d));var c,p=this.$data,h=p.originalPrevSize,f=p.originalNextSize,v=p.startTime,m=p.originalX,g=p.originalY;if(!i&&o-v<150)r&&this.resetDragState();else c="vertical"===this.orientation?a-g:this.isRtl?m-s:s-m,this.resize(n,n+1,h,f,c,r,e),r&&this.resetDragState()}},onBarKeyboardResize:function(e,t,n,i){var r=this.surroudingPanes(e),o=r.prevElement,s=r.nextElement,a=this.elementSize(o),l=this.elementSize(s);this.resize(t,t+1,a,l,n,!0,i)},surroudingPanes:function(e){return{prevElement:e.previousElementSibling,nextElement:e.nextElementSibling}},containerSize:function(){return this.$el?this.elementSize(this.$el,!0):0},isPercent:function(e){return/%$/.test(e)},toPixels:function(e,t){var n=parseInt(e,10);return this.isPercent(e)&&(n=t*n/100),n},panesOptions:function(){return this.mapPaneOptions(this.computedPanes)},resetDragState:function(){this.isDragging=!1,this.dragIndex=void 0,this.startTime=0,this.originalX=0,this.originalY=0,this.originalPrevSize=0,this.originalNextSize=0},elementSize:function(e,t){var n=t?"client":"offset";return"vertical"===this.orientation?e[n+"Height"]:e[n+"Width"]},clamp:function(e,t,n){return Math.min(t,Math.max(e,n))},fixedSize:function(e){return e&&e.length>0},resize:function(e,t,n,i,r,o,s){var a,l,u=this,d=this.panesOptions(),p=d[e],h=d[t],f=n+i,v=this.containerSize(),m=function(e){return u.toPixels(e,v)},g={index:e,initialSize:n,min:m(p.min)||f-m(h.max)||0,max:m(p.max)||f-m(h.min)||f},b={index:t,initialSize:i,min:m(h.min)||f-m(p.max)||0,max:m(h.max)||f-m(p.min)||f},y=function(e,t){var n=d[e.index],i=u.clamp(e.min,e.max,e.initialSize+t);return u.isPercent(n.size||"")?100*i/v+"%":i+"px"};this.fixedSize(p.size)&&this.fixedSize(h.size)?(a=y(g,r),l=y(b,-r)):h.collapsible||this.fixedSize(h.size)?l=y(b,-r):a=y(g,r);var k=d.map((function(n,i){var r=n;return i===e?c(c({},r),{size:a}):i===t?c(c({},r),{size:l}):c({},r)}));this.panesDuringOnChange=k,this.isControlledState||(this.currentPanes=k),this.$emit("change",{newState:k,isLast:o,nativeEvent:s}),this.panesDuringOnChange=void 0}}},g=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return f}));var i,r=n(1),o=n(51),s=n(20),a=n(0),l=n(12);!function(e){e[e.Toggle=0]="Toggle",e[e.Next=1]="Next",e[e.Previous=2]="Previous"}(i||(i={}));var u=function(){return(u=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},d=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i},c=r,p=c.h,h=c.version&&"3"===c.version[0],f={name:"KendoPanelBar",emits:{select:null,keydown:null},props:{animation:{type:Boolean,default:!0},items:Array,dir:String,selected:String,expanded:{type:Array,default:void 0},focused:String,expandMode:{type:String,default:"multiple",validator:function(e){return["single","multiple"].includes(e)}},className:String,keepItemsMounted:Boolean},created:function(){this.activeDescendant=null,Object(a.validatePackage)(l.a)},data:function(){var e=Object(s.e)(this.$props,this.expandMode);return e.currentFocused||(e.currentFocused=Object(s.d)(this.$props)),e},computed:{selectedItem:function(){var e=this.$props.selected;return void 0===e?this.currentSelected:e},expandedItems:function(){return void 0!==this.$props.expanded?this.$props.expanded||[]:this.currentExpanded},computedItems:function(){var e=u(u({currentExpanded:[]},this.$data),{selected:this.selectedItem}),t={animation:this.$props.animation,keepItemsMounted:this.$props.keepItemsMounted,state:e,expanded:this.expandedItems,handleSelect:this.handleSelect};return s.h.call(this,this.items,t)}},provide:function(){return{dispatchItemSelect:this.handleSelect}},setup:h?function(){return{v3:!!h}}:void 0,render:function(e){var t=p||e,n=Object(a.classNames)("k-panelbar",this.$props.className);return t("ul",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,role:"tree",tabindex:0,"aria-activedescendant":this.activeDescendant},role:"tree",tabindex:0,onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown,focus:this.handleWrapperFocus,blur:this.handleWrapperBlur},onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,class:n,"aria-activedescendant":this.activeDescendant},[this.computedItems.map((function(e){return t(o.a,u(u({props:this.v3?void 0:u(u({},e),{item:e})},e),{item:e}))}),this)])},methods:{handleSelect:function(e){this.onSelect(e),this.onFocus(e)},onSelect:function(e){var t,n,i=this;if(Object(s.a)(this.computedItems).forEach((function(n){n.uniquePrivateKey===(e.uniquePrivateKey||i.currentFocused)&&(t=n)})),t){switch(this.expandMode){case"single":n=d(t.parentUniquePrivateKey,[t.uniquePrivateKey]),Object(s.f)(this.expandedItems,n)&&(n=t.parentUniquePrivateKey?d(t.parentUniquePrivateKey):[]);break;case"multiple":var r=(n=this.expandedItems.slice()).indexOf(t.uniquePrivateKey);-1===r?n.push(t.uniquePrivateKey):n.splice(r,1);break;default:n=this.expandedItems.slice()}this.currentSelected=t.uniquePrivateKey,this.currentExpanded=n,this.$emit("select",{target:t,expandedItems:n})}},onFocus:function(e,t){var n=this;void 0===t&&(t=0);var i,r=Object(s.b)(this.computedItems);r.forEach((function(o,s){if(o.uniquePrivateKey===(e.uniquePrivateKey||n.currentFocused)){var a=s+t<0?0:s+t>r.length?r.length-1:s+t;i=r[a]}})),i&&(this.activeDescendant=i.id,this.currentFocused=i.uniquePrivateKey)},onNavigate:function(e,t){var n;switch(t){case i.Previous:n=-1,this.onFocus(e,n);break;case i.Next:n=1,this.onFocus(e,n);break;case i.Toggle:this.onSelect(e)}},nextTick:function(e){this.nextTickId=window.setTimeout((function(){return e()}))},handleWrapperFocus:function(){clearTimeout(this.nextTickId),this.wrapperFocused||(this.wrapperFocused=!0)},handleWrapperBlur:function(){this.wrapperFocused=!1},handleKeyDown:function(e){var t=this._element&&"rtl"===getComputedStyle(this._element).direction||!1;if(e.target===e.currentTarget){var n=void 0;switch(e.keyCode){case a.Keys.left:n=t?i.Next:i.Previous;break;case a.Keys.up:n=i.Previous;break;case a.Keys.right:n=t?i.Previous:i.Next;break;case a.Keys.down:n=i.Next;break;case a.Keys.space:case a.Keys.enter:n=i.Toggle;break;default:n=null}null!==n&&(e.preventDefault(),this.onNavigate(e,n))}this.$emit("keydown",e)}}},v=f},function(e,t,n){"use strict";var i=n(155);n.d(t,"ProgressBar",(function(){return i.a}));n(107),n(108),n(109),n(110)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=t.EditorToolsSettings=t.Editor=t.ProseMirror=void 0;var i=n(163);Object.defineProperty(t,"Editor",{enumerable:!0,get:function(){return i.Editor}});var r=n(18);Object.defineProperty(t,"EditorToolsSettings",{enumerable:!0,get:function(){return r.EditorToolsSettings}});var o=n(60);Object.defineProperty(t,"EditorUtils",{enumerable:!0,get:function(){return o.EditorUtils}});var s=n(9);t.ProseMirror={Selection:s.Selection,SelectionRange:s.SelectionRange,TextSelection:s.TextSelection,NodeSelection:s.NodeSelection,AllSelection:s.AllSelection,EditorState:s.EditorState,Plugin:s.Plugin,PluginKey:s.PluginKey,Transaction:s.Transaction,Decoration:s.Decoration,DecorationSet:s.DecorationSet,EditorView:s.EditorView,Node:s.Node,ResolvedPos:s.ResolvedPos,NodeRange:s.NodeRange,Fragment:s.Fragment,Slice:s.Slice,ReplaceError:s.ReplaceError,Mark:s.Mark,Schema:s.Schema,NodeType:s.NodeType,MarkType:s.MarkType,ContentMatch:s.ContentMatch,DOMParser:s.DOMParser,DOMSerializer:s.DOMSerializer,Transform:s.Transform,Step:s.Step,StepResult:s.StepResult,joinPoint:s.joinPoint,canJoin:s.canJoin,canSplit:s.canSplit,insertPoint:s.insertPoint,dropPoint:s.dropPoint,liftTarget:s.liftTarget,findWrapping:s.findWrapping,StepMap:s.StepMap,MapResult:s.MapResult,Mapping:s.Mapping,AddMarkStep:s.AddMarkStep,RemoveMarkStep:s.RemoveMarkStep,ReplaceStep:s.ReplaceStep,ReplaceAroundStep:s.ReplaceAroundStep,replaceStep:s.replaceStep,deleteSelection:s.deleteSelection,joinBackward:s.joinBackward,selectNodeBackward:s.selectNodeBackward,joinForward:s.joinForward,selectNodeForward:s.selectNodeForward,joinUp:s.joinUp,joinDown:s.joinDown,lift:s.lift,newlineInCode:s.newlineInCode,exitCode:s.exitCode,createParagraphNear:s.createParagraphNear,liftEmptyBlock:s.liftEmptyBlock,splitBlock:s.splitBlock,splitBlockKeepMarks:s.splitBlockKeepMarks,selectParentNode:s.selectParentNode,selectAll:s.selectAll,wrapIn:s.wrapIn,setBlockType:s.setBlockType,toggleMark:s.toggleMark,autoJoin:s.autoJoin,chainCommands:s.chainCommands,pcBaseKeymap:s.pcBaseKeymap,macBaseKeymap:s.macBaseKeymap,baseKeymap:s.baseKeymap,history:s.history,undo:s.undo,redo:s.redo,undoDepth:s.undoDepth,redoDepth:s.redoDepth,InputRule:s.InputRule,inputRules:s.inputRules,undoInputRule:s.undoInputRule,emDash:s.emDash,ellipsis:s.ellipsis,openDoubleQuote:s.openDoubleQuote,closeDoubleQuote:s.closeDoubleQuote,openSingleQuote:s.openSingleQuote,closeSingleQuote:s.closeSingleQuote,smartQuotes:s.smartQuotes,wrappingInputRule:s.wrappingInputRule,textblockTypeInputRule:s.textblockTypeInputRule,keymap:s.keymap,keydownHandler:s.keydownHandler,orderedList:s.orderedList,bulletList:s.bulletList,listItem:s.listItem,addListNodes:s.addListNodes,wrapInList:s.wrapInList,splitListItem:s.splitListItem,liftListItem:s.liftListItem,sinkListItem:s.sinkListItem,dropCursor:s.dropCursor,gapCursor:s.gapCursor,tableEditing:s.tableEditing,fixTables:s.fixTables,fixTablesKey:s.fixTablesKey,cellAround:s.cellAround,isInTable:s.isInTable,selectionCell:s.selectionCell,moveCellForward:s.moveCellForward,inSameTable:s.inSameTable,findCell:s.findCell,colCount:s.colCount,nextCell:s.nextCell,removeColSpan:s.removeColSpan,addColSpan:s.addColSpan,columnIsHeader:s.columnIsHeader,tableNodes:s.tableNodes,tableNodeTypes:s.tableNodeTypes,CellSelection:s.CellSelection,TableMap:s.TableMap,tableEditingKey:s.tableEditingKey,columnResizing:s.columnResizing,columnResizingPluginKey:s.columnResizingPluginKey,updateColumnsOnResize:s.updateColumnsOnResize,selectedRect:s.selectedRect,addColumn:s.addColumn,addColumnBefore:s.addColumnBefore,addColumnAfter:s.addColumnAfter,deleteColumn:s.deleteColumn,rowIsHeader:s.rowIsHeader,addRow:s.addRow,addRowBefore:s.addRowBefore,addRowAfter:s.addRowAfter,deleteRow:s.deleteRow,mergeCells:s.mergeCells,splitCell:s.splitCell,splitCellWithType:s.splitCellWithType,setCellAttr:s.setCellAttr,toggleHeader:s.toggleHeader,toggleHeaderRow:s.toggleHeaderRow,toggleHeaderColumn:s.toggleHeaderColumn,toggleHeaderCell:s.toggleHeaderCell,goToNextCell:s.goToNextCell,deleteTable:s.deleteTable};var a=n(68);Object.defineProperty(t,"Align",{enumerable:!0,get:function(){return a.Align}});var l=n(69);Object.defineProperty(t,"Indent",{enumerable:!0,get:function(){return l.Indent}});var u=n(70);Object.defineProperty(t,"List",{enumerable:!0,get:function(){return u.List}});var d=n(71);Object.defineProperty(t,"Outdent",{enumerable:!0,get:function(){return d.Outdent}});var c=n(72);Object.defineProperty(t,"InlineFormat",{enumerable:!0,get:function(){return c.InlineFormat}});var p=n(73);Object.defineProperty(t,"FontName",{enumerable:!0,get:function(){return p.FontName}});var h=n(74);Object.defineProperty(t,"FormatBlock",{enumerable:!0,get:function(){return h.FormatBlock}});var f=n(75);Object.defineProperty(t,"ProseMirrorTool",{enumerable:!0,get:function(){return f.ProseMirror}});var v=n(76);Object.defineProperty(t,"LinkTool",{enumerable:!0,get:function(){return v.LinkTool}});var m=n(77);Object.defineProperty(t,"Unlink",{enumerable:!0,get:function(){return m.Unlink}});var g=n(78);Object.defineProperty(t,"CleanFormatting",{enumerable:!0,get:function(){return g.CleanFormatting}});var b=n(79);Object.defineProperty(t,"SelectAll",{enumerable:!0,get:function(){return b.SelectAll}});var y=n(80);Object.defineProperty(t,"InsertImage",{enumerable:!0,get:function(){return y.InsertImage}});var k=n(81);Object.defineProperty(t,"InsertTable",{enumerable:!0,get:function(){return k.InsertTable}});var w=n(82);Object.defineProperty(t,"ViewHtml",{enumerable:!0,get:function(){return w.ViewHtml}});var S=n(83);Object.defineProperty(t,"Pdf",{enumerable:!0,get:function(){return S.Pdf}});var C=n(84);Object.defineProperty(t,"Print",{enumerable:!0,get:function(){return C.Print}});var x=n(85);Object.defineProperty(t,"FindAndReplace",{enumerable:!0,get:function(){return x.FindAndReplace}});var O=n(125);Object.defineProperty(t,"ApplyColor",{enumerable:!0,get:function(){return O.ApplyColor}})},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],s=0,a=o.length;s<a;s++,r++)i[r]=o[s];return i};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorVue2=t.Editor=t.allTools=void 0;var l=s(n(1)),u=l.h,d=l.version&&"3"===l.version[0],c=l.markRaw,p=n(5),h=n(0),f=n(9),v=n(66),m=n(164),g=n(18),b=n(67),y=n(60),k=n(61),w=n(166),S=g.EditorToolsSettings.link,C=g.EditorToolsSettings.bold,x=g.EditorToolsSettings.italic,O=g.EditorToolsSettings.underline,$=n(167),I=n(168),T=n(68),D=n(69),V=n(70),M=n(71),R=n(72),B=n(73),N=n(74),P=n(75),j=n(76),E=n(77),A=n(78),L=n(79),F=n(80),z=n(81),K=n(82),_=n(83),H=n(84),W=n(85),U=n(125);t.allTools={Bold:{comp:R.InlineFormat,props:g.EditorToolsSettings.bold},Italic:{comp:R.InlineFormat,props:g.EditorToolsSettings.italic},Underline:{comp:R.InlineFormat,props:g.EditorToolsSettings.underline},Strikethrough:{comp:R.InlineFormat,props:g.EditorToolsSettings.strikethrough},Subscript:{comp:R.InlineFormat,props:g.EditorToolsSettings.subscript},Superscript:{comp:R.InlineFormat,props:g.EditorToolsSettings.superscript},AlignLeft:{comp:T.Align,props:g.EditorToolsSettings.alignLeft},AlignCenter:{comp:T.Align,props:g.EditorToolsSettings.alignCenter},AlignRight:{comp:T.Align,props:g.EditorToolsSettings.alignRight},AlignJustify:{comp:T.Align,props:g.EditorToolsSettings.alignJustify},Indent:{comp:D.Indent,props:g.EditorToolsSettings.indent},Outdent:{comp:M.Outdent,props:g.EditorToolsSettings.outdent},OrderedList:{comp:V.List,props:g.EditorToolsSettings.orderedList},UnorderedList:{comp:V.List,props:g.EditorToolsSettings.bulletList},FontSize:{comp:B.FontName,props:g.EditorToolsSettings.fontSize},FontName:{comp:B.FontName,props:g.EditorToolsSettings.fontName},FormatBlock:{comp:N.FormatBlock,props:g.EditorToolsSettings.formatBlock},Undo:{comp:P.ProseMirror,props:g.EditorToolsSettings.undo},Redo:{comp:P.ProseMirror,props:g.EditorToolsSettings.redo},Link:{comp:j.LinkTool,props:g.EditorToolsSettings.link},Unlink:{comp:E.Unlink,props:g.EditorToolsSettings.unlink},InsertImage:{comp:F.InsertImage,props:g.EditorToolsSettings.image},ViewHtml:{comp:K.ViewHtml,props:g.EditorToolsSettings.viewHtml},CleanFormatting:{comp:A.CleanFormatting,props:g.EditorToolsSettings.cleanFormatting},SelectAll:{comp:L.SelectAll,props:g.EditorToolsSettings.selectAll},InsertTable:{comp:z.InsertTable,props:g.EditorToolsSettings.insertTable},MergeCells:{comp:P.ProseMirror,props:g.EditorToolsSettings.mergeCells},SplitCell:{comp:P.ProseMirror,props:g.EditorToolsSettings.splitCell},AddRowBefore:{comp:P.ProseMirror,props:g.EditorToolsSettings.addRowBefore},AddRowAfter:{comp:P.ProseMirror,props:g.EditorToolsSettings.addRowAfter},AddColumnBefore:{comp:P.ProseMirror,props:g.EditorToolsSettings.addColumnBefore},AddColumnAfter:{comp:P.ProseMirror,props:g.EditorToolsSettings.addColumnAfter},DeleteRow:{comp:P.ProseMirror,props:g.EditorToolsSettings.deleteRow},DeleteColumn:{comp:P.ProseMirror,props:g.EditorToolsSettings.deleteColumn},DeleteTable:{comp:P.ProseMirror,props:g.EditorToolsSettings.deleteTable},Print:{comp:H.Print,props:g.EditorToolsSettings.print},Pdf:{comp:_.Pdf,props:g.EditorToolsSettings.pdf},InsertFile:{comp:j.LinkTool,props:g.EditorToolsSettings.insertFile},FindAndReplace:{comp:W.FindAndReplace,props:g.EditorToolsSettings.findAndReplace},ForeColor:{comp:U.ApplyColor,props:g.EditorToolsSettings.foreColor},BackColor:{comp:U.ApplyColor,props:g.EditorToolsSettings.backColor}};var q={name:"KendoEditor",emits:{focus:null,blur:null,change:null,loaded:null,execute:null},props:{defaultContent:String,value:[Object,String],defaultEditMode:{type:String,default:"iframe",validator:function(e){return["iframe","div"].includes(e)}},contentStyle:Object,dir:String,tools:Array,keyboardNavigation:{type:Boolean,default:!0},resizable:Boolean,preserveWhitespace:{type:[String,Boolean],default:"full",validator:function(e){return[!0,!1,"full"].includes(e)}},pasteHtml:Function,extendView:Function},data:function(){return{updateGuid:h.guid(),view:void 0,linkDialog:!1}},created:function(){this._view=void 0,h.validatePackage(I.packageMetadata)},mounted:function(){this.iframe=h.getRef(this,"iframe"),this.contentElement=h.getRef(this,"contentElement"),this.iframe&&$.firefox||this.initialize()},watch:{value:function(e,t){this._prevValue=t}},updated:function(){var e=this.$props.value,t=this.getView();void 0!==e&&t&&(w.updateEditorValue(t,e,this._prevValue,this.trOnChange,this.htmlOnChange),this.trOnChange=null,this.htmlOnChange=null)},destroyed:d?void 0:function(){this.getView()&&this.getView().destroy(),this.view=void 0,this._view=void 0},unmounted:function(){this.getView()&&this.getView().destroy(),this.view=void 0,this._view=void 0},computed:{computedValue:function(){return null!==this.trOnChange?this.trOnChange.doc:void 0!==this.$props.value?this.$props.value:this.getView()?this.getView().state.doc:this.$props.defaultContent||""}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var n=u||e,r=100,o=this.$props,s=o.tools,a=void 0===s?[]:s,l=o.defaultEditMode,d=void 0===l?"iframe":l,f=o.preserveWhitespace,v=void 0===f?"full":f,m=o.style,g=this.getView();this.view&&(k.editorPropsKey.getState(this.view.state).preserveWhitespace=v);var y=this.$props.contentStyle;void 0===y&&void 0===(m||{}).height&&(y={height:"300px"});var w=function(e,o){var s=t.allTools[e]||e;if(t.allTools[e]){r++;var a=i({view:g,dir:this.$props.dir,key:r,updateGuid:this.updateGuid,settings:t.allTools[e].props},t.allTools[e].props);return n(this.v3?c(t.allTools[e].comp):t.allTools[e].comp,this.v3?a:{props:a})}if("Separator"===s)return n(p.ToolbarSeparator,{key:r});var l=h.templateRendering.call(this,s.render,h.getListeners.call(this));return h.getTemplate.call(this,{h:n,template:l,defaultRendering:null,additionalListeners:{},additionalProps:{view:g,dir:this.$props.dir,updateGuid:this.updateGuid,key:r,settings:s.props}})},C=function(e,t){return e.map((function(e){return w.call(this,e,t)}),this)},x=a.map((function(e,t){var i=this;return Array.isArray(e)?n(p.ButtonGroup,{key:t},this.v3?function(){return[C.call(i,e,t)]}:[C.call(i,e,t)]):w.call(this,e,t)}),this);return n("div",{class:h.classNames("k-widget k-editor",{"k-editor-resizable":this.$props.resizable}),dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[x.length>0&&n(p.Toolbar,{keyboardNavigation:this.$props.keyboardNavigation,attrs:this.v3?void 0:{keyboardNavigation:this.$props.keyboardNavigation}},this.v3?function(){return[x]}:[x]),"iframe"===d?n("div",{class:"k-editor-content"},[n("iframe",{onLoad:this.iframeLoad,on:this.v3?void 0:{load:this.iframeLoad},ref:h.setRef(this,"iframe"),frameborder:"0",attrs:this.v3?void 0:{frameborder:"0"},style:y,class:"k-iframe"})]):n("div",{style:y,class:"k-editor-content"},[n("div",{ref:h.setRef(this,"contentElement")})]),function(){return this.linkDialog&&n(b.InsertLinkDialog,{view:g,attrs:this.v3?void 0:{view:g,settings:S,dir:this.$props.dir},settings:S,dir:this.$props.dir,onClose:this.handleClose,on:this.v3?void 0:{close:this.handleClose}})}.call(this)])},methods:{getView:function(){return this.v3?this.view:this._view},getHTML:function(){var e=this.getView();return e?y.EditorUtils.getHtml(e.state):""},setHTML:function(e){var t=this.getView();t&&y.EditorUtils.setHtml(t,e)},focus:function(){this.getView()&&this.getView().focus()},updateTools:function(e){this.v3?this.view=e:this._view=e,this.v3&&(this.updateGuid=h.guid())},iframeLoad:function(){$.firefox&&this.initialize()},initialize:function(){var e=this,t=this.iframe&&this.iframe.contentWindow;if(t){var n=t.document;[m.defaultStyle,m.tablesStyles,"rtl"===this.$props.dir?m.rtlStyles:void 0].forEach((function(e){if(e){var t=n.createElement("style");t.appendChild(n.createTextNode(e)),n.head.appendChild(t)}}));var r=n.createElement("meta");r.setAttribute("charset","utf-8"),n.head.appendChild(r),this.contentElement=n.createElement("div"),n.body.appendChild(this.contentElement),this.contentElement.classList.add("k-content")}var o=this.contentElement;if(o){var s=this.$props.preserveWhitespace,l=void 0===s?"full":s,u=[new f.Plugin({view:function(){return{update:e.updateTools}},key:new f.PluginKey("toolbar-tools-update-plugin")}),new f.Plugin({filterTransaction:this.filterTransaction,key:new f.PluginKey("onExecute-event-plugin")}),new f.Plugin({key:k.editorPropsKey,state:{init:function(){return{preserveWhitespace:l}},apply:function(e,t){return t}}}),f.spacesFix(),f.history(),f.dropCursor(),f.gapCursor(),f.tableEditing()],d=i(i({},y.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:C,italic:x,underline:O}})),{"Mod-k":function(){var t=e.$data.linkDialog,n=e.getView();if(n){var i=n.state,r=i.selection.empty,o=f.getMark(i,i.schema.marks[S.mark]);t||r&&!o||(e.linkDialog=!0)}return!t}}),p=this.$props,h=p.defaultContent,g=void 0===h?"":h,b=p.value,w=b&&"string"!=typeof b?b:y.EditorUtils.createDocument(new f.Schema({nodes:v.nodes,marks:v.marks}),b||g,{preserveWhitespace:l}),$={state:f.EditorState.create({plugins:a(u,[f.keymap(d),f.keymap(f.baseKeymap)]),doc:w}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},I={plugins:u,shortcuts:d,target:this,viewProps:$,dom:o};this.$emit("loaded",I);var T=this.$props.extendView&&this.$props.extendView(I)||new f.EditorView({mount:o},$);this.v3?this.view=c(T):this._view=T}},filterTransaction:function(e,t){var n={target:this,transaction:e,state:t};return this.$emit("execute",n),!0},onPasteHtml:function(e){if(this.$props.pasteHtml&&this.pasteEvent){var t={target:this,pastedHtml:e,event:this.pasteEvent},n=this.$props.pasteHtml(t);if(this.pasteEvent=void 0,"string"==typeof n)return n}return e},dispatchTransaction:function(e){var t=e.docChanged;if(t){this.trOnChange=e;var n=e.doc,i=e.doc.type.schema,r=this,o={target:r,value:n,get html(){return r.htmlOnChange=y.EditorUtils.getHtml({doc:n,schema:i}),r.htmlOnChange},transaction:e,schema:i};this.$emit("change",o)}!this.getView()||void 0!==this.$props.value&&t||this.getView().updateState(this.getView().state.apply(e))},onFocus:function(e,t){var n={target:this,event:t};return this.$emit("focus",n),!1},onBlur:function(e,t){var n={target:this,event:t};return this.$emit("blur",n),!1},onPaste:function(e,t){return this.$props.pasteHtml&&(this.pasteEvent=t),!1},handleClose:function(){this.linkDialog=!1}}};t.EditorVue2=q;var G=q;t.Editor=G},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rtlStyles=t.tablesStyles=t.defaultStyle=void 0,t.defaultStyle='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected, .k-content::selection {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n',t.tablesStyles='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',t.rtlStyles="body { direction: rtl }"},function(e,t,n){"use strict";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getShortcuts=void 0;var r=n(9),o=n(18),s=o.EditorToolsSettings.bold,a=o.EditorToolsSettings.underline,l=o.EditorToolsSettings.italic,u="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.getShortcuts=function(e){var t=r.chainCommands(r.exitCode,(function(t,n){var i=e&&e.types&&e.types.hardBreak||"hard_break",r=t.schema.nodes[i];return n&&n(t.tr.replaceSelectionWith(r.create()).scrollIntoView()),!0})),n=e&&e.types&&e.types.listItem||"list_item",o=e&&e.toolsSettings||{};return i(i(i(i({"Mod-b":function(e,t){return r.toggleInlineFormat(o.bold||s)(e,t)},"Mod-i":function(e,t){return r.toggleInlineFormat(o.italic||l)(e,t)},"Mod-u":function(e,t){return r.toggleInlineFormat(o.underline||a)(e,t)},"Mod-z":r.undo,"Shift-Mod-z":r.redo},i({},u?{}:{"Mod-y":r.redo})),{Backspace:r.undoInputRule,"Mod-Enter":t,"Shift-Enter":t}),i({},u?{"Ctrl-Enter":t}:{})),{Enter:function(e,t){return r.splitListItem(e.schema.nodes[n])(e,t)},Tab:r.goToNextCell(1),"Shift-Tab":r.goToNextCell(-1)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateEditorValue=void 0;var i=n(9),r=n(60),o=function(e,t){var n=t.tr||e.state.tr.setSelection(new i.AllSelection(e.state.doc)).replaceSelectionWith(t.doc||r.EditorUtils.createDocument(e.state.schema,t.html||"")).setMeta("commandName","setHTML");e.updateState(e.state.apply(n))};t.updateEditorValue=function(e,t,n,i,r){"string"==typeof t?i&&t===r?o(e,{tr:i}):t!==n&&o(e,{html:t}):i&&t.eq(i.doc)?o(e,{tr:i}):e.state.doc.eq(t)||o(e,{doc:t})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.firefox=void 0,t.firefox="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-editor",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428986,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageDialogVue2=t.InsertImageDialog=void 0;var s=o(n(1)),a=s.h,l=s.version&&"3"===s.version[0],u=n(37),d=n(5),c=n(9),p=n(4),h=n(10),f=n(0),v={name:"KendoInsertImageDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.src=f.getRef(this,"src"),this.altText=f.getRef(this,"altText"),this.title=f.getRef(this,"title"),this.width=f.getRef(this,"width"),this.height=f.getRef(this,"height"),this.src&&this.src.focus()},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=this,n=a||e,i=this.$props,r=i.view,o=i.settings,s=i.dir,l=o.messages,v=l.insertImageDialogTitle,m=l.insertImageAddress,g=l.insertImageTitle,b=l.insertImageAltText,y=l.insertImageWidth,k=l.insertImageHeight,w=l.insertImageCancel,S=l.insertImageInsert,C=p.provideLocalizationService(this),x=r&&r.state,O={};x&&x.selection instanceof c.NodeSelection&&x.selection.node.type===x.schema.nodes[o.node]&&(O=x.selection.node.attrs);var $=n("div",{class:"k-edit-form-container"},[n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-url",attrs:this.v3?void 0:{for:"k-editor-image-url"}},[C.toLanguageString(m,h.messages[m])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-url"},class:"k-input-inner",id:"k-editor-image-url",value:this.v3?O.src:null,domProps:this.v3?void 0:{value:O.src},ref:f.setRef(this,"src")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-alt",attrs:this.v3?void 0:{for:"k-editor-image-alt"}},[C.toLanguageString(b,h.messages[b])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-alt"},class:"k-input-inner",id:"k-editor-image-alt",value:this.v3?O.alt:null,domProps:this.v3?void 0:{value:O.alt},ref:f.setRef(this,"altText")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-title",attrs:this.v3?void 0:{for:"k-editor-image-title"}},[C.toLanguageString(g,h.messages[g])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-title"},class:"k-input-inner",id:"k-editor-image-title",value:this.v3?O.title:null,domProps:this.v3?void 0:{value:O.title},ref:f.setRef(this,"title")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-width",attrs:this.v3?void 0:{for:"k-editor-image-width"}},[C.toLanguageString(y,h.messages[y])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-width"},class:"k-input-inner",id:"k-editor-image-width",value:this.v3?O.width:null,domProps:this.v3?void 0:{value:O.width},ref:f.setRef(this,"width")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-height",attrs:this.v3?void 0:{for:"k-editor-image-height"}},[C.toLanguageString(k,h.messages[k])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-height"},class:"k-input-inner",id:"k-editor-image-height",value:this.v3?O.height:null,domProps:this.v3?void 0:{value:O.height},ref:f.setRef(this,"height")})])])]),I=[n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:s},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:s,key:"cancel"},this.v3?function(){return[C.toLanguageString(w,h.messages[w])]}:[C.toLanguageString(w,h.messages[w])]),n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:s},onClick:this.onInsert,on:this.v3?void 0:{click:this.onInsert},themeColor:"primary",dir:s,key:"insert"},this.v3?function(){return[C.toLanguageString(S,h.messages[S])]}:[C.toLanguageString(S,h.messages[S])])];return n(u.Dialog,{title:C.toLanguageString(v,h.messages[v]),attrs:this.v3?void 0:{title:C.toLanguageString(v,h.messages[v]),closeIcon:!0,dir:s},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:s,style:"rtl"===s?{textAlign:"right"}:void 0},this.v3?function(){return[$,n(u.DialogActionsBar,t.v3?function(){return[I]}:[I])]}:[$,n(u.DialogActionsBar,t.v3?function(){return[I]}:[I])])},methods:{onClose:function(){this.$props.view.focus(),this.$emit("close")},onInsert:function(){var e=this.$props,t=e.view,n=e.settings,i=t.state.schema.nodes[n.node],r={src:this.src?this.src.value:null,title:this.title?this.title.value:null,alt:this.altText?this.altText.value:null,width:this.width?this.width.value:null,height:this.height?this.height.value:null},o=Object.keys(r).filter((function(e){return null!==r[e]&&""!==r[e]})).reduce((function(e,t){var n;return Object.assign(e,((n={})[t]=r[t],n))}),{}),s=i.createAndFill(o);c.insertNode(s,!0)(t.state,(function(e){return t.dispatch(e.setMeta("commandName",n.commandName).setMeta("args",o))})),this.onClose()}}};t.InsertImageDialogVue2=v;var m=v;t.InsertImageDialog=m},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupVue2=t.InsertTablePopup=void 0;var s=o(n(1)),a=s.h,l=s.version&&"3"===s.version[0],u=n(14),d=n(171),c={name:"KendoInsertTablePopup",props:{show:{type:Boolean,required:!0},createTableMessage:{type:String,required:!0},createTableHintMessage:{type:String,required:!0},anchor:String,rows:{type:Number,default:6},columns:{type:Number,default:8},dir:String},data:function(){return{pointerdown:!1}},updated:function(){},mounted:function(){window.addEventListener("mousedown",this.onWindowDown),window.addEventListener("pointerdown",this.onWindowDown)},destroyed:l?void 0:function(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},unmounted:function(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=this,n=a||e,i=this.$props,r=i.show,o=i.anchor,s=i.dir,l=i.rows,c=i.columns,p="rtl"===s?"right":"left";return n(u.Popup,{anchor:o,attrs:this.v3?void 0:{anchor:o,anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-border-up",show:r},anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-border-up",show:r,style:"rtl"===s?{direction:"rtl"}:void 0},this.v3?function(){return[n(d.PopupGrid,{rows:l,attrs:t.v3?void 0:{rows:l,columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage,onCellclick:t.onTableInsert,on:t.v3?void 0:{cellclick:t.onTableInsert,down:t.onPointerDown},onDown:t.onPointerDown})]}:[n(d.PopupGrid,{rows:l,attrs:t.v3?void 0:{rows:l,columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:c,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage,onCellclick:t.onTableInsert,on:t.v3?void 0:{cellclick:t.onTableInsert,down:t.onPointerDown},onDown:t.onPointerDown})])},methods:{onTableInsert:function(e,t){this.$emit("tableinsert",e,t)},onWindowDown:function(e){var t=this.$props.anchor;(!t||t!==e.target&&t.firstElementChild!==e.target)&&(this.$props.show&&!this.pointerdown&&this.$props.onClose(),this.pointerdown=!1)},onPointerDown:function(){this.pointerdown=!0}}};t.InsertTablePopupVue2=c;var p=c;t.InsertTablePopup=p},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupGridVue2=t.PopupGrid=void 0;var s=o(n(1)),a=s.h,l=s.version&&"3"===s.version[0],u=n(36),d={name:"KendoPopupGrid",props:{rows:Number,columns:Number,createTableMessage:String,createTableHintMessage:String},data:function(){return{row:-1,col:-1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=this,n=a||e,i=[],r=this.$props.columns*this.$props.rows,o=this.$data,s=o.row,l=o.col,d=this.$props.createTableMessage;l>-1&&(d=u.formatString(this.$props.createTableHintMessage,s+1,l+1));for(var c=function(e,t,i){var r=this,o=Math.floor(e/this.$props.columns),s=e%this.$props.columns;return n("span",{class:"k-ct-cell k-disabled"+(s<=i&&o<=t?" k-selected":""),onMouseenter:function(){return r.cellMouseEnter({row:o,col:s})},on:this.v3?void 0:{mouseenter:function(){return r.cellMouseEnter({row:o,col:s})},click:function(){return r.onCellClick(o,s)}},onClick:function(){return r.onCellClick(o,s)},key:e})},p=0;p<r;p++)i.push(c.call(this,p,s,l));var h=[n("div",{onMouseleave:function(){return t.handleMouseLeave()},on:this.v3?void 0:{mouseleave:function(){return t.handleMouseLeave()},pointerdown:this.onDown,mousedown:this.onDown},key:"cells",style:{borderColor:"inherit"},onPointerdown:this.onDown,onMousedown:this.onDown},[i]),n("div",{class:"k-status",key:"status",onPointerdown:this.onDown,on:this.v3?void 0:{pointerdown:this.onDown,mousedown:this.onDown},onMousedown:this.onDown},[d])];return n("span",[h])},methods:{cellMouseEnter:function(e){var t=e.row,n=e.col;this.row=t,this.col=n},handleMouseLeave:function(){this.row=-1,this.col=-1},onCellClick:function(e,t){this.$emit("cellclick",e,t)},onDown:function(e){this.$emit("down",e)}}};t.PopupGridVue2=d;var c=d;t.PopupGrid=c},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlDialogVue2=t.ViewHtmlDialog=void 0;var s=o(n(1)),a=s.h,l=s.version&&"3"===s.version[0],u=n(37),d=n(5),c=n(9),p=n(4),h=n(10),f=n(61),v=n(0),m={name:"KendoViewHtmlDialog",props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.htmlArea=v.getRef(this,"htmlArea")},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=this,n=a||e,i=this.$props,r=i.view,o=i.settings,s=i.dir,l=p.provideLocalizationService(this),f=o.messages,m=f.viewHtmlDialogTitle,g=f.viewHtmlCancel,b=f.viewHtmlUpdate,y=n("textarea",{class:"k-textarea k-editor-textarea",style:{height:"280px",width:"490px"},ref:v.setRef(this,"htmlArea"),value:this.v3?c.indentHtml(c.getHtml(r.state)):null,domProps:this.v3?void 0:{value:c.indentHtml(c.getHtml(r.state))}}),k=[n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:s},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:s,key:"cancel"},this.v3?function(){return[l.toLanguageString(g,h.messages[g])]}:[l.toLanguageString(g,h.messages[g])]),n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:s},onClick:this.onUpdate,on:this.v3?void 0:{click:this.onUpdate},themeColor:"primary",dir:s,key:"update"},this.v3?function(){return[l.toLanguageString(b,h.messages[b])]}:[l.toLanguageString(b,h.messages[b])])];return n(u.Dialog,{title:l.toLanguageString(m,h.messages[m]),attrs:this.v3?void 0:{title:l.toLanguageString(m,h.messages[m]),closeIcon:!0,dir:s},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:s,style:"rtl"===s?{textAlign:"right"}:void 0},this.v3?function(){return[y,n(u.DialogActionsBar,t.v3?function(){return[k]}:[k])]}:[y,n(u.DialogActionsBar,t.v3?function(){return[k]}:[k])])},methods:{onUpdate:function(){var e=this.$props,t=e.view,n=e.settings,i=c.trimWhitespace(this.htmlArea?this.htmlArea.value:""),r=f.editorPropsKey.getState(t.state).preserveWhitespace;c.setHtml(i,n.commandName,{preserveWhitespace:r})(t.state,t.dispatch),this.onClose()},onClose:function(){this.$props.view.focus(),this.$emit("close")}}};t.ViewHtmlDialogVue2=m;var g=m;t.ViewHtmlDialog=g},function(e,t,n){"use strict";var i=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceDialogVue2=t.FindAndReplaceDialog=void 0;var s=o(n(1)),a=s.h,l=s.version&&"3"===s.version[0],u=n(5),d=n(37),c=n(174),p=n(4),h=n(10),f=n(18),v=n(36),m=n(9),g=f.EditorToolsSettings.findAndReplace,b={name:"KendoFindAndReplaceDialog",emits:{close:null},props:{view:Object,settings:{type:Object,default:function(){return g}},dir:String},inject:{kendoLocalizationService:{default:null}},created:function(){this._prevMatch=void 0,this.nextMatch=void 0},data:function(){return{selectedTab:0,searchText:m.selectedLineTextOnly(this.$props.view.state),replaceText:"",matchCase:!1,matchWord:!1,matchCyclic:!1,useRegExp:!1,matches:[],hasMounted:!1}},mounted:function(){this.$el&&document.body.append(this.$el),this.setNextState(),this.hasMounted=!0,setTimeout((function(){var e=document.getElementById("findWhatFind");e&&e.focus()}),10)},updated:function(){var e=this.matches||[],t=this.nextMatch,n=this.$props.view;if(this._prevMatch!==t){var i=n.state,r=i.tr,o=[];e.forEach((function(e){o.push({from:e.from,to:e.to,attrs:{class:t&&e.eq(t)?"k-text-selected":"k-text-highlighted"}})})),r.setMeta(m.textHighlightKey,o),r.setSelection(t||m.TextSelection.create(i.doc,i.selection.from)),n.dispatch(r)}},destroyed:l?void 0:function(){this.$el&&this.$el.remove()},unmounted:function(){this.$el&&this.$el.remove()},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=this,n=a||e,i=p.provideLocalizationService(this),r=this.settings.messages,o=r.findReplaceDialogTitle,s=r.findReplaceTabFind,l=r.findReplaceTabReplace,f=r.findReplaceFindWhat,v=r.findReplaceReplaceWith,m=r.findReplaceReplace,g=r.findReplaceReplaceAll,b=r.findReplaceMatchCase,y=r.findReplaceMatchWord,k=r.findReplaceMatchCyclic,w=r.findReplaceUseRegExp,S=r.findReplacePrevMatch,C=r.findReplaceNextMatch,x=r.findReplaceMatches,O=this,$=O.matchCase,I=O.matchWord,T=O.matchCyclic,D=O.useRegExp,V=O.searchText,M=O.replaceText,R=O.nextMatch,B=n("div",{class:"k-search-options"},[n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-case"},id:"match-case",checked:this.v3?$:null,domProps:this.v3?void 0:{checked:$},onChange:this.onMatchCaseChecked,on:this.v3?void 0:{change:this.onMatchCaseChecked}}),n("label",{for:"match-case",attrs:this.v3?void 0:{for:"match-case"},class:"k-checkbox-label"},[i.toLanguageString(b,h.messages[b])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-whole"},id:"match-whole",checked:this.v3?I:null,domProps:this.v3?void 0:{checked:I},onChange:this.onMatchWordChecked,on:this.v3?void 0:{change:this.onMatchWordChecked}}),n("label",{for:"match-whole",attrs:this.v3?void 0:{for:"match-whole"},class:"k-checkbox-label"},[i.toLanguageString(y,h.messages[y])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-cyclic"},id:"match-cyclic",checked:this.v3?T:null,domProps:this.v3?void 0:{checked:T},onChange:this.onMatchCyclicChecked,on:this.v3?void 0:{change:this.onMatchCyclicChecked}}),n("label",{for:"match-cyclic",attrs:this.v3?void 0:{for:"match-cyclic"},class:"k-checkbox-label"},[i.toLanguageString(k,h.messages[k])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"regular-expression"},id:"regular-expression",checked:this.v3?D:null,domProps:this.v3?void 0:{checked:D},onChange:this.onUseRegExpChecked,on:this.v3?void 0:{change:this.onUseRegExpChecked}}),n("label",{for:"regular-expression",attrs:this.v3?void 0:{for:"regular-expression"},class:"k-checkbox-label"},[i.toLanguageString(w,h.messages[w])])])]),N=function(e){var t="rtl"===this.$props.dir,r=n(u.Button,{fillMode:"flat",attrs:this.v3?void 0:{fillMode:"flat",themeColor:"primary"},themeColor:"primary",onClick:this.onFindPrev,on:this.v3?void 0:{click:this.onFindPrev}},this.v3?function(){return[n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"right":"left")}),i.toLanguageString(S,h.messages[S])]}:[n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"right":"left")}),i.toLanguageString(S,h.messages[S])]),o=n(u.Button,{fillMode:"flat",attrs:this.v3?void 0:{fillMode:"flat",themeColor:"primary"},themeColor:"primary",onClick:this.onFindNext,on:this.v3?void 0:{click:this.onFindNext}},this.v3?function(){return[i.toLanguageString(C,h.messages[C]),n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"left":"right")})]}:[i.toLanguageString(C,h.messages[C]),n("span",{class:"k-icon k-i-arrow-chevron-"+(t?"left":"right")})]);return n("div",{class:"k-matches-container"},[r,this.hasMounted&&n("span",{ref:e},[this.matchesMessage(i.toLanguageString(x,h.messages[x]))]),o])},P=function(e){return n("div",{class:"k-edit-label"},[n("label",{ref:e,for:e,attrs:this.v3?void 0:{for:e}},[i.toLanguageString(f,h.messages[f])])])},j=function(e){return n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{id:e,attrs:this.v3?void 0:{id:e,type:"text"},ref:e,type:"text",class:"k-input-inner",value:this.v3?V:null,domProps:this.v3?void 0:{value:V},onInput:this.onSearchChange,on:this.v3?void 0:{input:this.onSearchChange,focus:this.onSearchChange,keydown:this.onKeyDown},onFocus:this.onSearchChange,onKeydown:this.onKeyDown})])])},E=n("div",{class:"k-edit-label"},[n("label",{for:"replaceWith",attrs:this.v3?void 0:{for:"replaceWith"}},[i.toLanguageString(v,h.messages[v])])]),A=n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{id:"replaceWith",attrs:this.v3?void 0:{id:"replaceWith",type:"text"},class:"k-input-inner",type:"text",value:this.v3?M:null,domProps:this.v3?void 0:{value:M},onInput:this.onReplaceChange,on:this.v3?void 0:{input:this.onReplaceChange}})])]);return n(d.Window,{title:i.toLanguageString(o,h.messages[o]),attrs:this.v3?void 0:{title:i.toLanguageString(o,h.messages[o]),windowStyle:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:function(){return null},maximizeButton:function(){return null},dir:this.$props.dir},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},windowStyle:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:function(){return null},maximizeButton:function(){return null},dir:this.$props.dir},this.v3?function(){return[n(c.TabStrip,{dir:t.$props.dir,attrs:t.v3?void 0:{dir:t.$props.dir,selected:t.selectedTab,animation:!1},selected:t.selectedTab,class:"k-editor-find-replace",onSelect:t.onTabSelect,on:t.v3?void 0:{select:t.onTabSelect},animation:!1},t.v3?function(){return[n(c.TabStripTab,{title:i.toLanguageString(s,h.messages[s]),attrs:t.v3?void 0:{title:i.toLanguageString(s,h.messages[s])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),j.call(t,"findWhatFind")]),B,N.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),j.call(t,"findWhatFind")]),B,N.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(l,h.messages[l]),attrs:t.v3?void 0:{title:i.toLanguageString(l,h.messages[l])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),j.call(t,"findWhatReplace"),E,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,h.messages[m])]}:[i.toLanguageString(m,h.messages[m])]),n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,h.messages[g])]}:[i.toLanguageString(g,h.messages[g])])]),B,N.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),j.call(t,"findWhatReplace"),E,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,h.messages[m])]}:[i.toLanguageString(m,h.messages[m])]),n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,h.messages[g])]}:[i.toLanguageString(g,h.messages[g])])]),B,N.call(t,"findWhatReplace")])]}:[n(c.TabStripTab,{title:i.toLanguageString(s,h.messages[s]),attrs:t.v3?void 0:{title:i.toLanguageString(s,h.messages[s])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),j.call(t,"findWhatFind")]),B,N.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),j.call(t,"findWhatFind")]),B,N.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(l,h.messages[l]),attrs:t.v3?void 0:{title:i.toLanguageString(l,h.messages[l])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),j.call(t,"findWhatReplace"),E,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,h.messages[m])]}:[i.toLanguageString(m,h.messages[m])]),n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,h.messages[g])]}:[i.toLanguageString(g,h.messages[g])])]),B,N.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),j.call(t,"findWhatReplace"),E,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,h.messages[m])]}:[i.toLanguageString(m,h.messages[m])]),n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,h.messages[g])]}:[i.toLanguageString(g,h.messages[g])])]),B,N.call(t,"findWhatReplace")])])]}:[n(c.TabStrip,{dir:t.$props.dir,attrs:t.v3?void 0:{dir:t.$props.dir,selected:t.selectedTab,animation:!1},selected:t.selectedTab,class:"k-editor-find-replace",onSelect:t.onTabSelect,on:t.v3?void 0:{select:t.onTabSelect},animation:!1},t.v3?function(){return[n(c.TabStripTab,{title:i.toLanguageString(s,h.messages[s]),attrs:t.v3?void 0:{title:i.toLanguageString(s,h.messages[s])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),j.call(t,"findWhatFind")]),B,N.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),j.call(t,"findWhatFind")]),B,N.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(l,h.messages[l]),attrs:t.v3?void 0:{title:i.toLanguageString(l,h.messages[l])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),j.call(t,"findWhatReplace"),E,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,h.messages[m])]}:[i.toLanguageString(m,h.messages[m])]),n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,h.messages[g])]}:[i.toLanguageString(g,h.messages[g])])]),B,N.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),j.call(t,"findWhatReplace"),E,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,h.messages[m])]}:[i.toLanguageString(m,h.messages[m])]),n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,h.messages[g])]}:[i.toLanguageString(g,h.messages[g])])]),B,N.call(t,"findWhatReplace")])]}:[n(c.TabStripTab,{title:i.toLanguageString(s,h.messages[s]),attrs:t.v3?void 0:{title:i.toLanguageString(s,h.messages[s])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),j.call(t,"findWhatFind")]),B,N.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatFind"),j.call(t,"findWhatFind")]),B,N.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(l,h.messages[l]),attrs:t.v3?void 0:{title:i.toLanguageString(l,h.messages[l])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),j.call(t,"findWhatReplace"),E,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,h.messages[m])]}:[i.toLanguageString(m,h.messages[m])]),n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,h.messages[g])]}:[i.toLanguageString(g,h.messages[g])])]),B,N.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[P.call(t,"findWhatReplace"),j.call(t,"findWhatReplace"),E,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,h.messages[m])]}:[i.toLanguageString(m,h.messages[m])]),n(u.Button,{disabled:!Boolean(R),attrs:t.v3?void 0:{disabled:!Boolean(R)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,h.messages[g])]}:[i.toLanguageString(g,h.messages[g])])]),B,N.call(t,"findWhatReplace")])])])},methods:{onTabSelect:function(e){this.selectedTab=e.selected},onClose:function(){var e=this.$props.view,t=e.state,n=t.tr.setSelection(m.TextSelection.create(t.doc,t.selection.from,t.selection.to));e.updateState(t.apply(n)),e.focus(),this.$emit("close")},matchesMessage:function(e){var t=this.matches,n=this.nextMatch,i=0,r=0;if(t&&n){var o=t.findIndex((function(e){return e.eq(n)}));i=-1===o?t.length:o+1,r=t.length}return v.formatString(e,i,r)},onFindNext:function(){this.onFind()},onFindPrev:function(){this.onFind(!0)},onFind:function(e){void 0===e&&(e=!1);var t=this.$props.view,n=this.$data,i=n.searchText,r=n.matchCase,o=n.matchCyclic,s={text:i,matchWord:n.matchWord,matchCase:r,useRegExp:n.useRegExp,backward:e,matchCyclic:o},a=m.find(t.state,s);if(a){var l=t.state.tr.setSelection(a);l.scrollIntoView(),t.updateState(t.state.apply(l)),this._prevMatch=this.nextMatch,this.nextMatch=a,this._prevMatch!==this.nextMatch&&this.$forceUpdate()}},onReplace:function(){var e=this.$props.view,t=e.state.selection,n=this.$data.replaceText;if(!t.empty){var i=t.from,r=i+n.length,o=m.replace(t,n,e.state.tr);o.setSelection(m.TextSelection.create(o.doc,i,r)),o.scrollIntoView(),e.dispatch(o),this.setNextState({})}},onReplaceAll:function(){var e=this.$props.view,t=this.$data,n=t.searchText,i=t.replaceText,r=t.matchCase,o={text:n,matchWord:t.matchWord,matchCase:r,useRegExp:t.useRegExp};e.dispatch(m.replaceAll(e.state,i,o)),this.setNextState({})},onKeyDown:function(e){13===e.keyCode?this.onFindNext():27===e.keyCode&&this.onClose()},onMatchCaseChecked:function(e){this.matchCase=e.target.checked,this.setNextState()},onMatchWordChecked:function(e){this.matchWord=e.target.checked,this.setNextState()},onMatchCyclicChecked:function(e){this.matchCyclic=e.target.checked,this.setNextState()},onUseRegExpChecked:function(e){this.useRegExp=e.target.checked,this.setNextState()},onSearchChange:function(e){this.searchText=e.target.value,this.setNextState()},onReplaceChange:function(e){this.replaceText=e.target.value,this.setNextState()},setNextState:function(){var e=this.$props.view;if(this.searchText){var t={text:this.searchText,matchWord:this.matchWord,matchCase:this.matchCase,useRegExp:this.useRegExp},n=e.state.selection,i=m.findAll(e.state.doc,t),r=!this.searchText&&i[0]||i.find((function(e){return e.from>=n.from}))||this.matchCyclic&&i[0]||void 0;this._prevMatch=this.nextMatch,this.matches=i,this.nextMatch=r}else this._prevMatch=this.nextMatch,this.matches=[],this.nextMatch=void 0}}};t.FindAndReplaceDialogVue2=b;var y=b;t.FindAndReplaceDialog=y},function(e,t,n){"use strict";n.r(t);var i=n(86);n.d(t,"TabStrip",(function(){return i.a})),n.d(t,"TabStripVue2",(function(){return i.b}));var r=n(49);n.d(t,"TabStripContent",(function(){return r.a})),n.d(t,"TabStripContentVue2",(function(){return r.b}));var o=n(34);n.d(t,"TabStripNavigation",(function(){return o.a})),n.d(t,"TabStripNavigationVue2",(function(){return o.b}));var s=n(38);n.d(t,"TabStripNavigationItem",(function(){return s.a})),n.d(t,"TabStripNavigationItemVue2",(function(){return s.b}));var a=n(87);n.d(t,"TabStripTab",(function(){return a.a})),n.d(t,"TabStripTabVue2",(function(){return a.b}));var l=n(88);n.d(t,"Card",(function(){return l.a})),n.d(t,"CardVue2",(function(){return l.b}));var u=n(89);n.d(t,"CardHeader",(function(){return u.a})),n.d(t,"CardHeaderVue2",(function(){return u.b}));var d=n(90);n.d(t,"CardTitle",(function(){return d.a})),n.d(t,"CardTitleVue2",(function(){return d.b}));var c=n(91);n.d(t,"CardBody",(function(){return c.a})),n.d(t,"CardBodyVue2",(function(){return c.b}));var p=n(92);n.d(t,"CardActions",(function(){return p.a})),n.d(t,"CardActionsVue2",(function(){return p.b}));var h=n(93);n.d(t,"CardImage",(function(){return h.a})),n.d(t,"CardImageVue2",(function(){return h.b}));var f=n(94);n.d(t,"CardSubtitle",(function(){return f.a})),n.d(t,"CardSubtitleVue2",(function(){return f.b}));var v=n(95);n.d(t,"CardFooter",(function(){return v.a})),n.d(t,"CardFooterVue2",(function(){return v.b}));var m=n(96);n.d(t,"Avatar",(function(){return m.a})),n.d(t,"AvatarVue2",(function(){return m.b}));var g=n(97);n.d(t,"Drawer",(function(){return g.a})),n.d(t,"DrawerVue2",(function(){return g.b}));var b=n(98);for(var y in b)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return b[e]}))}(y);var k=n(39);n.d(t,"DrawerNavigation",(function(){return k.a})),n.d(t,"DrawerNavigationVue2",(function(){return k.b}));var w=n(99);for(var y in w)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return w[e]}))}(y);var S=n(100);n.d(t,"DrawerContent",(function(){return S.a})),n.d(t,"DrawerContentVue2",(function(){return S.b}));var C=n(101);for(var y in C)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return C[e]}))}(y);var x=n(40);n.d(t,"DrawerItem",(function(){return x.a})),n.d(t,"DrawerItemVue2",(function(){return x.b}));var O=n(102);for(var y in O)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return O[e]}))}(y);var $=n(103);for(var y in $)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return $[e]}))}(y);var I=n(104);for(var y in I)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return I[e]}))}(y);var T=n(105);for(var y in T)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return T[e]}))}(y);var D=n(106);n.d(t,"Stepper",(function(){return D.a})),n.d(t,"StepperVue2",(function(){return D.b}));var V=n(111);for(var y in V)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return V[e]}))}(y);var M=n(112);for(var y in M)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return M[e]}))}(y);var R=n(113);for(var y in R)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return R[e]}))}(y);var B=n(114);for(var y in B)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return B[e]}))}(y);var N=n(50);n.d(t,"Step",(function(){return N.a})),n.d(t,"StepVue2",(function(){return N.b}));var P=n(115);for(var y in P)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return P[e]}))}(y);var j=n(116);for(var y in j)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return j[e]}))}(y);var E=n(117);for(var y in E)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return E[e]}))}(y);var A=n(118);for(var y in A)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return A[e]}))}(y);var L=n(153);n.d(t,"Menu",(function(){return L.a})),n.d(t,"MenuVue2",(function(){return L.b}));var F=n(41);n.d(t,"MenuItemLink",(function(){return F.a})),n.d(t,"MenuItemLinkVue2",(function(){return F.b}));var z=n(42);n.d(t,"downArrowClass",(function(){return z.c})),n.d(t,"rightArrowClass",(function(){return z.e})),n.d(t,"leftArrowClass",(function(){return z.d})),n.d(t,"MenuItemArrow",(function(){return z.a})),n.d(t,"MenuItemArrowVue2",(function(){return z.b}));var K=n(119);for(var y in K)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return K[e]}))}(y);var _=n(120);for(var y in _)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return _[e]}))}(y);var H=n(159);n.d(t,"Splitter",(function(){return H.a})),n.d(t,"SplitterVue2",(function(){return H.b}));var W=n(43);n.d(t,"SplitterPane",(function(){return W.a})),n.d(t,"SplitterPaneVue2",(function(){return W.b}));var U=n(160);n.d(t,"PanelBar",(function(){return U.a})),n.d(t,"PanelBarVue2",(function(){return U.b}));var q=n(51);n.d(t,"PanelBarItem",(function(){return q.a})),n.d(t,"PanelBarItemVue2",(function(){return q.b}));var G=n(20);n.d(t,"renderChildren",(function(){return G.h})),n.d(t,"getFirstId",(function(){return G.d})),n.d(t,"getInitialState",(function(){return G.e})),n.d(t,"flatVisibleItems",(function(){return G.c})),n.d(t,"flatChildren",(function(){return G.a})),n.d(t,"flatVisibleChildren",(function(){return G.b})),n.d(t,"isPresent",(function(){return G.g})),n.d(t,"isArrayEqual",(function(){return G.f}));var J=n(121);for(var y in J)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return J[e]}))}(y);var X=n(122);for(var y in X)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return X[e]}))}(y);var Y=n(123);for(var y in Y)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return Y[e]}))}(y);var Z=n(124);for(var y in Z)["default","TabStrip","TabStripVue2","TabStripContent","TabStripContentVue2","TabStripNavigation","TabStripNavigationVue2","TabStripNavigationItem","TabStripNavigationItemVue2","TabStripTab","TabStripTabVue2","Card","CardVue2","CardHeader","CardHeaderVue2","CardTitle","CardTitleVue2","CardBody","CardBodyVue2","CardActions","CardActionsVue2","CardImage","CardImageVue2","CardSubtitle","CardSubtitleVue2","CardFooter","CardFooterVue2","Avatar","AvatarVue2","Drawer","DrawerVue2","DrawerNavigation","DrawerNavigationVue2","DrawerContent","DrawerContentVue2","DrawerItem","DrawerItemVue2","Stepper","StepperVue2","Step","StepVue2","Menu","MenuVue2","MenuItemLink","MenuItemLinkVue2","downArrowClass","rightArrowClass","leftArrowClass","MenuItemArrow","MenuItemArrowVue2","Splitter","SplitterVue2","SplitterPane","SplitterPaneVue2","PanelBar","PanelBarVue2","PanelBarItem","PanelBarItemVue2","renderChildren","getFirstId","getInitialState","flatVisibleItems","flatChildren","flatVisibleChildren","isPresent","isArrayEqual"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return Z[e]}))}(y)},function(e,t,n){"use strict";n.r(t),n.d(t,"PDFExport",(function(){return w})),n.d(t,"PDFExportVue2",(function(){return k})),n.d(t,"savePDF",(function(){return S})),n.d(t,"GridPdfExport",(function(){return H})),n.d(t,"GridPdfExportVue2",(function(){return _}));var i=n(1),r=n(13);function o(e,t,n){void 0===n&&(n={});var i=d;if(n.forceProxy&&!n.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");n.forceProxy||(a()&&(i=u),navigator.msSaveBlob&&(i=l)),i(e,t,n)}var s=function(){return document.createElement("a")},a=function(){return"download"in s()};function l(e,t){var n=e;if("string"==typeof e){for(var i=e.split(";base64,"),r=i[0],o=atob(i[1]),s=new Uint8Array(o.length),a=0;a<o.length;a++)s[a]=o.charCodeAt(a);n=new Blob([s.buffer],{type:r})}navigator.msSaveBlob(n,t)}function u(e,t){var n=e;window.Blob&&e instanceof Blob&&(n=URL.createObjectURL(e));var i=s();i.download=t,i.href=n;var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(r),setTimeout((function(){return URL.revokeObjectURL(n)}))}function d(e,t,n){if(n.proxyURL){var i=document.createElement("form");i.setAttribute("action",n.proxyURL),i.setAttribute("method","POST"),i.setAttribute("target",n.proxyTarget||"_self");var r=n.proxyData||{};r.fileName=t;var o=e.split(";base64,");for(var s in r.contentType=o[0].replace("data:",""),r.base64=o[1],r)if(r.hasOwnProperty(s)){var a=document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name",s),a.setAttribute("value",r[s]),i.appendChild(a)}document.body.appendChild(i),i.submit(),document.body.removeChild(i)}}String.fromCharCode;var c=n(0),p=i,h=p.h,f=p.createApp,v=function(){function e(e,t,n,i,r){var o=this;void 0===r&&(r={}),this.drawDOM=e,this.exportPDF=t,this.saveAs=n,this.domElement=i,this.options=r,this.convertPageTemplateToHtml=function(e){if(h&&f&&c.canUseDOM){var t=o,n=document.createElement("div");n.setAttribute("style","position:absolute; left: -5000px; top: 0px;");var i,r=document.createElement("div");n.appendChild(r),document.body.appendChild(n);var s={render:function(){return h(t.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages})},mounted:function(){this.$nextTick((function(){document.body.removeChild(n),i.unmount()}))}};return(i=f(s)).mount(r),r.outerHTML}var a=new(p.extend(o.options.pageTemplate))({propsData:{pageNum:e.pageNum,totalPages:e.totalPages}});return a.$mount(),a.$el.outerHTML}}return e.prototype.savePDF=function(e){var t=this,n=this.drawDOM(this.domElement,this.getDrawOptions()).then((function(e){return t.exportPDF(e,t.getPDFOptions())})).then((function(e){return t.saveAs(e,t.options.fileName||"export.pdf",t.getSaveOptions())}));e&&n.then(e,e)},e.prototype.getDrawOptions=function(){return{avoidLinks:this.options.avoidLinks,forcePageBreak:this.options.forcePageBreak,keepTogether:this.options.keepTogether,margin:this.options.margin,paperSize:this.options.paperSize,landscape:this.options.landscape,repeatHeaders:this.options.repeatHeaders,scale:this.options.scale,template:this.options.pageTemplate&&this.convertPageTemplateToHtml}},e.prototype.getPDFOptions=function(){return{author:this.options.author,creator:this.options.creator||"Kendo UI PDF Generator",date:this.options.date,imgDPI:this.options.imageResolution,keywords:this.options.keywords,landscape:this.options.landscape,margin:this.options.margin,multiPage:!0,paperSize:this.options.paperSize,producer:this.options.producer,subject:this.options.subject,title:this.options.title}},e.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},e}(),m={name:"@progress/kendo-vue-pdf",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1659428969,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},g=i,b=g.h,y=g.version&&"3"===g.version[0],k={name:"pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},methods:{save:function(e){new v(r.drawDOM,r.exportPDF,o,this.$el,this.$props).savePDF(e)}},setup:y?function(){return{v3:!!y}}:void 0,created:function(){Object(c.validatePackage)(m)},render:function(e){return(b||e)("div",[Object(c.getDefaultSlots)(this)])}},w=k;function S(e,t,n){void 0===t&&(t={}),new v(r.drawDOM,r.exportPDF,o,e,t).savePDF(n)}var C,x={},O=function(e){return String(e).trim().split(" ")},$=function(e){return function(t){return function(e,t){var n=O(t);return Boolean(O(e.className).find((function(e){return n.indexOf(e)>=0})))}(t,e)}},I=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var i=I(e,t);if(i)return i}e=e.nextSibling}}},T=(x[C="TABLE"]||(x[C]=function(e){return String(e.nodeName).toLowerCase()===C.toLowerCase()}),x[C]),D=function(e){return e?"locked":"wrap"},V=function(){function e(e){this.element=e,this.list=I(e,$("k-grid-container"))}return e.prototype.content=function(e){return I(this.list,$("k-grid-content"+(e?"-locked":"")))},e.prototype.header=function(e){return this.headerWrap=this.headerWrap||I(this.element,$("k-grid-header")),I(this.headerWrap,$("k-grid-header-"+D(e)))},e.prototype.footer=function(e){return this.footerWrap=this.footerWrap||I(this.element,$("k-grid-footer")),I(this.footerWrap,$("k-grid-footer-"+D(e)))},e.prototype.table=function(){return I(this.element,T)},e}(),M=function(e,t){for(var n=t.length,i=0;i<n;i++)e.appendChild(t[i].cloneNode(!0))},R=function(e){var t=document.createElement("div");return t.className="k-widget k-grid",t.appendChild(e),t},B=function(e){var t=e.length,n=e[0].cloneNode(!0),i=n.rows.length;if(t>1)for(var r=0;r<i;r++)for(var o=1;o<t;o++)M(n.rows[r],e[o].rows[r].cells);return n},N=function(e,t,n,i){for(var r=document.createElement("table"),o=e[0].cloneNode(!0),s=1;s<e.length;s++)M(o,e[s].querySelectorAll("col"));var a=B(t),l=B(n);if(a.className="k-grid-header",function(e,t){if(t.length>1&&e.rows.length>1)for(var n=1;n<e.rows.length;n++){var i=t[0].rows[n].cells.length,r=e.rows[n].cells[i];-1===String(r.className).indexOf("k-first")&&(r.className+=" k-first")}}(a,t),r.appendChild(o),r.appendChild(a),r.appendChild(l),i.length){var u=B(i);u.className="k-grid-footer",r.appendChild(u)}return R(r)},P=function(){return(P=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},j=i,E=j.h,A=j.createApp;function L(e){return function(t,n,i,r,o){return void 0===n&&(n={}),function(e,t,n,i,r,o){void 0===n&&(n={});var s,a,l,u;function d(){e(h.call(this),n,p)}function p(){u.unmount?u.unmount():u.$destroy(),document.body.removeChild(s),document.body.removeChild(l),s=l=void 0,i&&i()}function h(){(l=document.createElement("div")).className="k-grid-pdf-export-element";var e=function(e){var t,n=new V(e),i=n.content();if(i){var r=[i.querySelector("colgroup")],o=[n.header().querySelector("thead")],s=[i.querySelector("tbody")],a=n.footer(),l=a?[a.querySelector("tfoot")]:[];t=N(r,o,s,l)}else t=R(n.table().cloneNode(!0));return t}(this.$el);return l.appendChild(e),document.body.appendChild(l),e}!function(){if(c.canUseDOM){(s=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),a=document.createElement("div"),s.appendChild(a),document.body.appendChild(s);var e=r&&{dataItems:r,total:r.length,pageSize:r.length,skip:0};if(o){var n={render:function(){return E(t.type,P(P({},t.props),e),t.children)},store:t.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),d.call(this)}};(u=A(n)).mount(a)}else{var i=Object.getPrototypeOf(t).constructor;(u=new i({propsData:Object.assign({},t.$props,e),store:t.$store,mounted:function(){u.$el.style&&(u.$el.style.width="1000px"),d.call(u)}})).$slots=t.$slots,u.$scopedSlots=t.$scopedSlots,u.$mount(a)}}}()}(e,t,n,i,r,o)}}var F=i,z=F.h,K=F.version&&"3"===F.version[0],_={name:"grid-pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},created:function(){this.saveGridPDF=L(this.getSavePDF())},methods:{save:function(e,t){var n=Object(c.getDefaultSlots)(this).filter((function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("grid")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("grid")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("grid")}));n.length&&(this.gridComponent=this.v3?n[0]:n[0].componentInstance,this.saveGridPDF(this.gridComponent,this.$props,t,e,this.v3))},getSavePDF:function(){return S}},setup:K?function(){return{v3:!!K}}:void 0,render:function(e){return(z||e)("div",[Object(c.getDefaultSlots)(this)])}},H=_;"undefined"!=typeof window&&window.Vue&&window.Vue.component&&(window.Vue.component("kendo-pdf-export",w),window.Vue.component("kendo-grid-pdf-export",H))}])}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue"),require("@progress/kendo-licensing"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define(["vue","@progress/kendo-licensing","@progress/kendo-vue-intl","@progress/kendo-drawing"],t):"object"==typeof exports?exports.KendoVueEditor=t(require("vue"),require("@progress/kendo-licensing"),require("@progress/kendo-vue-intl"),require("@progress/kendo-drawing")):e.KendoVueEditor=t(e.Vue,e.KendoLicensing,e.KendoVueIntl,e.KendoDrawing)}(self,(function(e,t,n,i){return(()=>{"use strict";var o={6445:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorVue2=t.Editor=t.allTools=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),l=a.h,d=a.version&&"3"===a.version[0],c=a.markRaw,u=n(1536),p=n(7984),h=n(9157),f=n(1394),v=n(319),m=n(722),g=n(4361),y=n(6001),b=n(7578),k=n(709),w=m.EditorToolsSettings.link,S=m.EditorToolsSettings.bold,x=m.EditorToolsSettings.italic,C=m.EditorToolsSettings.underline,$=n(4056),I=n(169),O=n(3530),D=n(8060),M=n(3684),T=n(674),R=n(7947),B=n(1198),N=n(423),P=n(8356),E=n(1013),V=n(84),L=n(4165),A=n(9343),F=n(3976),z=n(8799),j=n(3381),K=n(8086),_=n(4312),H=n(1217),W=n(5555);t.allTools={Bold:{comp:R.InlineFormat,props:m.EditorToolsSettings.bold},Italic:{comp:R.InlineFormat,props:m.EditorToolsSettings.italic},Underline:{comp:R.InlineFormat,props:m.EditorToolsSettings.underline},Strikethrough:{comp:R.InlineFormat,props:m.EditorToolsSettings.strikethrough},Subscript:{comp:R.InlineFormat,props:m.EditorToolsSettings.subscript},Superscript:{comp:R.InlineFormat,props:m.EditorToolsSettings.superscript},AlignLeft:{comp:O.Align,props:m.EditorToolsSettings.alignLeft},AlignCenter:{comp:O.Align,props:m.EditorToolsSettings.alignCenter},AlignRight:{comp:O.Align,props:m.EditorToolsSettings.alignRight},AlignJustify:{comp:O.Align,props:m.EditorToolsSettings.alignJustify},Indent:{comp:D.Indent,props:m.EditorToolsSettings.indent},Outdent:{comp:T.Outdent,props:m.EditorToolsSettings.outdent},OrderedList:{comp:M.List,props:m.EditorToolsSettings.orderedList},UnorderedList:{comp:M.List,props:m.EditorToolsSettings.bulletList},FontSize:{comp:B.FontName,props:m.EditorToolsSettings.fontSize},FontName:{comp:B.FontName,props:m.EditorToolsSettings.fontName},FormatBlock:{comp:N.FormatBlock,props:m.EditorToolsSettings.formatBlock},Undo:{comp:P.ProseMirror,props:m.EditorToolsSettings.undo},Redo:{comp:P.ProseMirror,props:m.EditorToolsSettings.redo},Link:{comp:E.LinkTool,props:m.EditorToolsSettings.link},Unlink:{comp:V.Unlink,props:m.EditorToolsSettings.unlink},InsertImage:{comp:F.InsertImage,props:m.EditorToolsSettings.image},ViewHtml:{comp:j.ViewHtml,props:m.EditorToolsSettings.viewHtml},CleanFormatting:{comp:L.CleanFormatting,props:m.EditorToolsSettings.cleanFormatting},SelectAll:{comp:A.SelectAll,props:m.EditorToolsSettings.selectAll},InsertTable:{comp:z.InsertTable,props:m.EditorToolsSettings.insertTable},MergeCells:{comp:P.ProseMirror,props:m.EditorToolsSettings.mergeCells},SplitCell:{comp:P.ProseMirror,props:m.EditorToolsSettings.splitCell},AddRowBefore:{comp:P.ProseMirror,props:m.EditorToolsSettings.addRowBefore},AddRowAfter:{comp:P.ProseMirror,props:m.EditorToolsSettings.addRowAfter},AddColumnBefore:{comp:P.ProseMirror,props:m.EditorToolsSettings.addColumnBefore},AddColumnAfter:{comp:P.ProseMirror,props:m.EditorToolsSettings.addColumnAfter},DeleteRow:{comp:P.ProseMirror,props:m.EditorToolsSettings.deleteRow},DeleteColumn:{comp:P.ProseMirror,props:m.EditorToolsSettings.deleteColumn},DeleteTable:{comp:P.ProseMirror,props:m.EditorToolsSettings.deleteTable},Print:{comp:_.Print,props:m.EditorToolsSettings.print},Pdf:{comp:K.Pdf,props:m.EditorToolsSettings.pdf},InsertFile:{comp:E.LinkTool,props:m.EditorToolsSettings.insertFile},FindAndReplace:{comp:H.FindAndReplace,props:m.EditorToolsSettings.findAndReplace},ForeColor:{comp:W.ApplyColor,props:m.EditorToolsSettings.foreColor},BackColor:{comp:W.ApplyColor,props:m.EditorToolsSettings.backColor}};var U={name:"KendoEditor",emits:{focus:null,blur:null,change:null,loaded:null,execute:null},props:{defaultContent:String,value:[Object,String],defaultEditMode:{type:String,default:"iframe",validator:function(e){return["iframe","div"].includes(e)}},contentStyle:Object,dir:String,tools:Array,keyboardNavigation:{type:Boolean,default:!0},resizable:Boolean,preserveWhitespace:{type:[String,Boolean],default:"full",validator:function(e){return[!0,!1,"full"].includes(e)}},pasteHtml:Function,extendView:Function},data:function(){return{updateGuid:(0,p.guid)(),view:void 0,linkDialog:!1}},created:function(){this._view=void 0,(0,p.validatePackage)(I.packageMetadata)},mounted:function(){this.iframe=(0,p.getRef)(this,"iframe"),this.contentElement=(0,p.getRef)(this,"contentElement"),this.iframe&&$.firefox||this.initialize()},watch:{value:function(e,t){this._prevValue=t}},updated:function(){var e=this.$props.value,t=this.getView();void 0!==e&&t&&((0,k.updateEditorValue)(t,e,this._prevValue,this.trOnChange,this.htmlOnChange),this.trOnChange=null,this.htmlOnChange=null)},destroyed:d?void 0:function(){this.getView()&&this.getView().destroy(),this.view=void 0,this._view=void 0},unmounted:function(){this.getView()&&this.getView().destroy(),this.view=void 0,this._view=void 0},computed:{computedValue:function(){return null!==this.trOnChange?this.trOnChange.doc:void 0!==this.$props.value?this.$props.value:this.getView()?this.getView().state.doc:this.$props.defaultContent||""}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var n=l||e,o=100,r=this.$props,s=r.tools,a=void 0===s?[]:s,d=r.defaultEditMode,h=void 0===d?"iframe":d,f=r.preserveWhitespace,v=void 0===f?"full":f,m=r.style,y=this.getView();this.view&&(b.editorPropsKey.getState(this.view.state).preserveWhitespace=v);var k=this.$props.contentStyle;void 0===k&&void 0===(m||{}).height&&(k={height:"300px"});var S=function(e,r){var s=t.allTools[e]||e;if(t.allTools[e]){o++;var a=i({view:y,dir:this.$props.dir,key:o,updateGuid:this.updateGuid,settings:t.allTools[e].props},t.allTools[e].props);return n(this.v3?c(t.allTools[e].comp):t.allTools[e].comp,this.v3?a:{props:a})}if("Separator"===s)return n(u.ToolbarSeparator,{key:o});var l=p.templateRendering.call(this,s.render,p.getListeners.call(this));return p.getTemplate.call(this,{h:n,template:l,defaultRendering:null,additionalListeners:{},additionalProps:{view:y,dir:this.$props.dir,updateGuid:this.updateGuid,key:o,settings:s.props}})},x=function(e,t){return e.map((function(e){return S.call(this,e,t)}),this)},C=a.map((function(e,t){var i=this;return Array.isArray(e)?n(u.ButtonGroup,{key:t},this.v3?function(){return[x.call(i,e,t)]}:[x.call(i,e,t)]):S.call(this,e,t)}),this);return n("div",{class:(0,p.classNames)("k-widget k-editor",{"k-editor-resizable":this.$props.resizable}),dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[C.length>0&&n(u.Toolbar,{keyboardNavigation:this.$props.keyboardNavigation,attrs:this.v3?void 0:{keyboardNavigation:this.$props.keyboardNavigation}},this.v3?function(){return[C]}:[C]),"iframe"===h?n("div",{class:"k-editor-content"},[n("iframe",{onLoad:this.iframeLoad,on:this.v3?void 0:{load:this.iframeLoad},ref:(0,p.setRef)(this,"iframe"),frameborder:"0",attrs:this.v3?void 0:{frameborder:"0"},style:k,class:"k-iframe"})]):n("div",{style:k,class:"k-editor-content"},[n("div",{ref:(0,p.setRef)(this,"contentElement")})]),function(){return this.linkDialog&&n(g.InsertLinkDialog,{view:y,attrs:this.v3?void 0:{view:y,settings:w,dir:this.$props.dir},settings:w,dir:this.$props.dir,onClose:this.handleClose,on:this.v3?void 0:{close:this.handleClose}})}.call(this)])},methods:{getView:function(){return this.v3?this.view:this._view},getHTML:function(){var e=this.getView();return e?y.EditorUtils.getHtml(e.state):""},setHTML:function(e){var t=this.getView();t&&y.EditorUtils.setHtml(t,e)},focus:function(){this.getView()&&this.getView().focus()},updateTools:function(e){this.v3?this.view=e:this._view=e,this.v3&&(this.updateGuid=(0,p.guid)())},iframeLoad:function(){$.firefox&&this.initialize()},initialize:function(){var e=this,t=this.iframe&&this.iframe.contentWindow;if(t){var n=t.document;[v.defaultStyle,v.tablesStyles,"rtl"===this.$props.dir?v.rtlStyles:void 0].forEach((function(e){if(e){var t=n.createElement("style");t.appendChild(n.createTextNode(e)),n.head.appendChild(t)}}));var o=n.createElement("meta");o.setAttribute("charset","utf-8"),n.head.appendChild(o),this.contentElement=n.createElement("div"),n.body.appendChild(this.contentElement),this.contentElement.classList.add("k-content")}var r=this.contentElement;if(r){var a=this.$props.preserveWhitespace,l=void 0===a?"full":a,d=[new h.Plugin({view:function(){return{update:e.updateTools}},key:new h.PluginKey("toolbar-tools-update-plugin")}),new h.Plugin({filterTransaction:this.filterTransaction,key:new h.PluginKey("onExecute-event-plugin")}),new h.Plugin({key:b.editorPropsKey,state:{init:function(){return{preserveWhitespace:l}},apply:function(e,t){return t}}}),(0,h.spacesFix)(),(0,h.history)(),(0,h.dropCursor)(),(0,h.gapCursor)(),(0,h.tableEditing)()],u=i(i({},y.EditorUtils.getShortcuts({types:{listItem:"list_item",hardBreak:"hard_break"},toolsSettings:{bold:S,italic:x,underline:C}})),{"Mod-k":function(){var t=e.$data.linkDialog,n=e.getView();if(n){var i=n.state,o=i.selection.empty,r=(0,h.getMark)(i,i.schema.marks[w.mark]);t||o&&!r||(e.linkDialog=!0)}return!t}}),p=this.$props,m=p.defaultContent,g=void 0===m?"":m,k=p.value,$=k&&"string"!=typeof k?k:y.EditorUtils.createDocument(new h.Schema({nodes:f.nodes,marks:f.marks}),k||g,{preserveWhitespace:l}),I={state:h.EditorState.create({plugins:s(s([],d,!0),[(0,h.keymap)(u),(0,h.keymap)(h.baseKeymap)],!1),doc:$}),transformPastedHTML:this.onPasteHtml,dispatchTransaction:this.dispatchTransaction,handleDOMEvents:{focus:this.onFocus,blur:this.onBlur,paste:this.onPaste}},O={plugins:d,shortcuts:u,target:this,viewProps:I,dom:r};this.$emit("loaded",O);var D=this.$props.extendView&&this.$props.extendView(O)||new h.EditorView({mount:r},I);this.v3?this.view=c(D):this._view=D}},filterTransaction:function(e,t){var n={target:this,transaction:e,state:t};return this.$emit("execute",n),!0},onPasteHtml:function(e){if(this.$props.pasteHtml&&this.pasteEvent){var t={target:this,pastedHtml:e,event:this.pasteEvent},n=this.$props.pasteHtml(t);if(this.pasteEvent=void 0,"string"==typeof n)return n}return e},dispatchTransaction:function(e){var t=e.docChanged;if(t){this.trOnChange=e;var n=e.doc,i=e.doc.type.schema,o=this,r={target:o,value:n,get html(){return o.htmlOnChange=y.EditorUtils.getHtml({doc:n,schema:i}),o.htmlOnChange},transaction:e,schema:i};this.$emit("change",r)}!this.getView()||void 0!==this.$props.value&&t||this.getView().updateState(this.getView().state.apply(e))},onFocus:function(e,t){var n={target:this,event:t};return this.$emit("focus",n),!1},onBlur:function(e,t){var n={target:this,event:t};return this.$emit("blur",n),!1},onPaste:function(e,t){return this.$props.pasteHtml&&(this.pasteEvent=t),!1},handleClose:function(){this.linkDialog=!1}}};t.EditorVue2=U;var q=U;t.Editor=q},319:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.rtlStyles=t.tablesStyles=t.defaultStyle=void 0,t.defaultStyle='\nhtml, body {\n margin: 0;\n height: 100%;\n padding: 0;\n}\n\nhtml {\n min-height: 100%;\n}\n\nbody {\n box-sizing: border-box;\n position: relative;\n word-wrap: break-word;\n padding: 8px;\n}\n\nbody > .k-content {\n outline: 0;\n height: 100%;\n white-space: pre-wrap;\n}\n\n.k-content > p {\n margin: 0 0 1em;\n}\n\n.k-content table {\n white-space: pre-wrap;\n}\n\n.k-content .k-text-selected, .k-content::selection {\n color: HighlightText;\n background-color: Highlight;\n}\n\n.k-content .k-text-highlighted {\n background-color: #bbdefb;\n}\n\n.k-content .ProseMirror-selectednode {\n outline: 2px solid #8cf;\n}\n\n.ProseMirror-hideselection *::selection { background: transparent; }\n.ProseMirror-hideselection *::-moz-selection { background: transparent; }\n.ProseMirror-hideselection { caret-color: transparent; }\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.k-editor-resize-handles-wrapper {\n position: absolute;\n visibility: hidden;\n}\n\n.k-editor-resize-handle {\n position: absolute;\n visibility: visible;\n background-color: #fff;\n border: 1px solid #000;\n z-index: 100;\n width: 5px;\n height: 5px;\n}\n\n.k-editor-resize-handle.northwest {\n top: 0;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: nw-resize;\n}\n\n.k-editor-resize-handle.north {\n top: 0;\n left: 50%;\n transform: translate(-50%, -50%);\n cursor: n-resize;\n}\n\n.k-editor-resize-handle.northeast {\n top: 0;\n right: 0;\n transform: translate(50%, -50%);\n cursor: ne-resize;\n}\n\n.k-editor-resize-handle.southwest {\n left: 0;\n bottom: 0;\n transform: translate(-50%, 50%);\n cursor: sw-resize;\n}\n\n.k-editor-resize-handle.south {\n bottom: 0;\n left: 50%;\n transform: translate(-50%, 50%);\n cursor: s-resize;\n}\n\n.k-editor-resize-handle.southeast {\n right: 0;\n bottom: 0;\n transform: translate(50%, 50%);\n cursor: se-resize;\n}\n\n.k-editor-resize-handle.west {\n top: 50%;\n left: 0;\n transform: translate(-50%, -50%);\n cursor: w-resize;\n}\n\n.k-editor-resize-handle.east {\n top: 50%;\n right: 0;\n transform: translate(50%, -50%);\n cursor: e-resize;\n}\n',t.tablesStyles='\n .ProseMirror .tableWrapper {\n overflow-x: auto;\n margin: 1em 0;\n }\n\n .ProseMirror table {\n margin: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n overflow: hidden;\n }\n\n .ProseMirror td, .ProseMirror th {\n min-width: 1em;\n border: 1px solid #ddd;\n padding: 3px 5px;\n vertical-align: top;\n box-sizing: border-box;\n position: relative;\n }\n\n .ProseMirror th {\n font-weight: bold;\n text-align: left;\n }\n\n .ProseMirror .column-resize-handle {\n position: absolute;\n right: -2px; top: 0; bottom: 0;\n width: 4px;\n z-index: 20;\n background-color: #adf;\n pointer-events: none;\n }\n\n .ProseMirror.resize-cursor {\n cursor: ew-resize;\n cursor: col-resize;\n }\n\n /* Give selected cells a blue overlay */\n .ProseMirror .selectedCell:after {\n z-index: 2;\n position: absolute;\n content: "";\n left: 0; right: 0; top: 0; bottom: 0;\n background: rgba(200, 200, 255, 0.4);\n pointer-events: none;\n }\n',t.rtlStyles="body { direction: rtl }"},1394:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=t.marks=void 0;var o=n(9157);Object.defineProperty(t,"marks",{enumerable:!0,get:function(){return o.marks}});var r=function(e){var t;return(t={})[e]={default:null,getFromDOM:function(t){return t.getAttribute(e)},setDOMAttr:function(t,n){n[e]=t}},t},s=function(e){var t={};return Array.from(e.attributes).forEach((function(e){t[e.nodeName]=e.nodeValue})),t},a=i(i(i({},r("style")),r("class")),r("id")),l=(0,o.tableNodes)({tableGroup:"block",cellContent:"block+",cellAttributes:a});l.table_row.attrs=l.table_row.attrs||{},l.table_row.attrs.style={default:null},l.table_row.attrs.class={default:null},l.table_row.attrs.id={default:null},l.table_row.toDOM=function(e){return["tr",e.attrs,0]},l.table_row.parseDOM=[{tag:"tr",getAttrs:s}],l.table.attrs=l.table.attrs||{},l.table.attrs.style={default:null},l.table.attrs.class={default:null},l.table.attrs.id={default:null},l.table.toDOM=function(e){return["table",e.attrs,["tbody",0]]},l.table.parseDOM=[{tag:"table",getAttrs:s}];var d=i(i({},o.nodes),l);t.nodes=d},8826:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.getShortcuts=void 0;var o=n(9157),r=n(722),s=r.EditorToolsSettings.bold,a=r.EditorToolsSettings.underline,l=r.EditorToolsSettings.italic,d="undefined"!=typeof navigator&&/Mac/.test(navigator.platform);t.getShortcuts=function(e){var t=(0,o.chainCommands)(o.exitCode,(function(t,n){var i=e&&e.types&&e.types.hardBreak||"hard_break",o=t.schema.nodes[i];return n&&n(t.tr.replaceSelectionWith(o.create()).scrollIntoView()),!0})),n=e&&e.types&&e.types.listItem||"list_item",r=e&&e.toolsSettings||{};return i(i(i(i({"Mod-b":function(e,t){return(0,o.toggleInlineFormat)(r.bold||s)(e,t)},"Mod-i":function(e,t){return(0,o.toggleInlineFormat)(r.italic||l)(e,t)},"Mod-u":function(e,t){return(0,o.toggleInlineFormat)(r.underline||a)(e,t)},"Mod-z":o.undo,"Shift-Mod-z":o.redo},i({},d?{}:{"Mod-y":o.redo})),{Backspace:o.undoInputRule,"Mod-Enter":t,"Shift-Enter":t}),i({},d?{"Ctrl-Enter":t}:{})),{Enter:function(e,t){return(0,o.splitListItem)(e.schema.nodes[n])(e,t)},Tab:(0,o.goToNextCell)(1),"Shift-Tab":(0,o.goToNextCell)(-1)})}},722:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorToolsSettings=void 0;var r,s,a=n(623),l=n(9157),d=i({},l.indentRules.listsTypes);r=t.EditorToolsSettings||(t.EditorToolsSettings={}),s={type:"button"},r.bold=i(i({},l.bold),{props:i({icon:"bold"},s),messages:{title:a.keys.bold},commandName:"Bold"}),r.italic=i(i({},l.italic),{props:i({icon:"italic"},s),messages:{title:a.keys.italic},commandName:"Italic"}),r.underline=i(i({},l.underline),{props:i({icon:"underline"},s),messages:{title:a.keys.underline},commandName:"Underline"}),r.strikethrough=i(i({},l.strikethrough),{props:i({icon:"strikethrough"},s),messages:{title:a.keys.strikethrough},commandName:"Strikethrough"}),r.subscript=i(i({},l.subscript),{props:i({icon:"subscript"},s),messages:{title:a.keys.subscript},commandName:"Subscript"}),r.superscript=i(i({},l.superscript),{props:i({icon:"superscript"},s),messages:{title:a.keys.superscript},commandName:"Superscript"}),r.link=i(i({},l.link),{props:i({icon:"link-horizontal"},s),messages:{insertHyperlink:a.keys.insertHyperlink,insertHyperlinkDialogTitle:a.keys.insertHyperlinkDialogTitle,insertHyperlinkAddress:a.keys.insertHyperlinkAddress,insertHyperlinkTitle:a.keys.insertHyperlinkTitle,insertHyperlinkNewWindow:a.keys.insertHyperlinkNewWindow,insertHyperlinkCancel:a.keys.insertHyperlinkCancel,insertHyperlinkInsert:a.keys.insertHyperlinkInsert},commandName:"Link"}),r.insertFile=i(i({},l.link),{props:i({icon:"file-add"},s),messages:{insertHyperlink:a.keys.insertFile,insertHyperlinkDialogTitle:a.keys.insertFileDialogTitle,insertHyperlinkAddress:a.keys.insertFileAddress,insertHyperlinkTitle:a.keys.insertFileTitle,insertHyperlinkNewWindow:"",insertHyperlinkCancel:a.keys.insertFileCancel,insertHyperlinkInsert:a.keys.insertFileInsert},commandName:"InsertFile",linkTarget:!1}),r.insertTable={props:i({icon:"table-insert"},s),messages:{createTable:a.keys.createTable,createTableHint:a.keys.createTableHint},commandName:"InsertTable"},r.addRowBefore={command:l.addRowBefore,props:i({icon:"table-row-insert-above"},s),messages:{title:a.keys.addRowBefore},commandName:"AddRowBefore"},r.addRowAfter={command:l.addRowAfter,props:i({icon:"table-row-insert-below"},s),messages:{title:a.keys.addRowAfter},commandName:"AddRowAfter"},r.addColumnBefore={command:l.addColumnBefore,props:i({icon:"table-column-insert-left"},s),messages:{title:a.keys.addColumnBefore},commandName:"AddColumnBefore"},r.addColumnAfter={command:l.addColumnAfter,props:i({icon:"table-column-insert-right"},s),messages:{title:a.keys.addColumnAfter},commandName:"AddColumnAfter"},r.deleteRow={command:l.deleteRow,props:i({icon:"table-row-delete"},s),messages:{title:a.keys.deleteRow},commandName:"DeleteRow"},r.deleteColumn={command:l.deleteColumn,props:i({icon:"table-column-delete"},s),messages:{title:a.keys.deleteColumn},commandName:"DeleteColumn"},r.deleteTable={command:l.deleteTable,props:i({icon:"table-delete"},s),messages:{title:a.keys.deleteTable},commandName:"DeleteTable"},r.mergeCells={command:l.mergeCells,props:i({icon:"cells-merge"},s),messages:{title:a.keys.mergeCells},commandName:"MergeCells"},r.splitCell={command:l.splitCell,props:i({icon:"cell-split-horizontally"},s),messages:{title:a.keys.splitCell},commandName:"SplitCell"},r.print={props:i({icon:"print"},s),messages:{title:a.keys.print}},r.selectAll={props:i({icon:"select-all"},s),messages:{title:a.keys.selectAll}},r.pdf={props:i({icon:"pdf"},s),messages:{title:a.keys.pdf}},r.savePdfOptions={fileName:"editor.pdf",paperSize:"A4",margin:"1cm"},r.cleanFormatting={props:i({icon:"clear-css"},s),messages:{title:a.keys.cleanFormatting},commandName:"CleanFormatting"},r.image={node:"image",props:i({icon:"image"},s),messages:{insertImage:a.keys.insertImage,insertImageDialogTitle:a.keys.insertImageDialogTitle,insertImageAddress:a.keys.insertImageAddress,insertImageTitle:a.keys.insertImageTitle,insertImageAltText:a.keys.insertImageAltText,insertImageWidth:a.keys.insertImageWidth,insertImageHeight:a.keys.insertImageHeight,insertImageCancel:a.keys.insertImageCancel,insertImageInsert:a.keys.insertImageInsert},commandName:"InsertImage"},r.viewHtml={props:i({icon:"html"},s),messages:{viewHtml:a.keys.viewHtml,viewHtmlDialogTitle:a.keys.viewHtmlDialogTitle,viewHtmlCancel:a.keys.viewHtmlCancel,viewHtmlUpdate:a.keys.viewHtmlUpdate},commandName:"SetContent"},r.findAndReplace={props:i({icon:"find"},s),messages:{findReplaceToolTitle:a.keys.findReplaceToolTitle,findReplaceDialogTitle:a.keys.findReplaceDialogTitle,findReplaceTabFind:a.keys.findReplaceTabFind,findReplaceTabReplace:a.keys.findReplaceTabReplace,findReplaceFindWhat:a.keys.findReplaceFindWhat,findReplaceReplaceWith:a.keys.findReplaceReplaceWith,findReplaceReplace:a.keys.findReplaceReplace,findReplaceReplaceAll:a.keys.findReplaceReplaceAll,findReplaceMatchCase:a.keys.findReplaceMatchCase,findReplaceMatchWord:a.keys.findReplaceMatchWord,findReplaceMatchCyclic:a.keys.findReplaceMatchCyclic,findReplaceUseRegExp:a.keys.findReplaceUseRegExp,findReplacePrevMatch:a.keys.findReplacePrevMatch,findReplaceNextMatch:a.keys.findReplaceNextMatch,findReplaceMatches:a.keys.findReplaceMatches}},r.unlink=i(i({},l.link),{props:i({icon:"unlink-horizontal"},s),messages:{title:a.keys.unlink},commandName:"Unlink"}),r.undo={command:l.undo,props:i({icon:"undo"},s),messages:{title:a.keys.undo},commandName:"Undo"},r.redo={command:l.redo,props:i({icon:"redo"},s),messages:{title:a.keys.redo},commandName:"Redo"},r.fontSize={style:"font-size",defaultItem:{text:a.messages[a.keys.fontSize],value:"",localizationKey:a.keys.fontSize},items:[{text:"1 (8pt)",value:"xx-small"},{text:"2 (10pt)",value:"x-small"},{text:"3 (12pt)",value:"small"},{text:"4 (14pt)",value:"medium"},{text:"5 (18pt)",value:"large"},{text:"6 (24pt)",value:"x-large"},{text:"7 (36pt)",value:"xx-large"}],commandName:"FontSize"},r.fontName={style:"font-family",defaultItem:{text:a.messages[a.keys.fontName],value:"",localizationKey:a.keys.fontName},items:[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],commandName:"FontName"},r.formatBlock={defaultItem:{text:a.messages[a.keys.format],value:"",localizationKey:a.keys.format},items:[{text:"Paragraph",value:"p",style:{display:"block",marginLeft:0}},{text:"Heading 1",value:"h1",style:{display:"block",fontSize:"2em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 2",value:"h2",style:{display:"block",fontSize:"1.5em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 3",value:"h3",style:{display:"block",fontSize:"1.17em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 4",value:"h4",style:{display:"block",fontSize:"1em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 5",value:"h5",style:{display:"block",fontSize:"0.83em",marginLeft:0,fontWeight:"bold"}},{text:"Heading 6",value:"h6",style:{display:"block",fontSize:"0.67em",marginLeft:0,fontWeight:"bold"}}],commandName:"FormatBlock"},r.foreColor={color:"color",colorPickerProps:{icon:"foreground-color",view:"palette",title:a.keys.foregroundColor},commandName:"ForeColor"},r.backColor={color:"background-color",colorPickerProps:{icon:"background",view:"palette",title:a.keys.backgroundColor},commandName:"BackColor"},r.alignLeft={actions:o([],l.alignLeftRules,!0),props:i({icon:"align-left"},s),messages:{title:a.keys.alignLeft},commandName:"AlignLeft"},r.alignRight={actions:o([],l.alignRightRules,!0),props:i({icon:"align-right"},s),messages:{title:a.keys.alignRight},commandName:"AlignRight"},r.alignCenter={actions:o([],l.alignCenterRules,!0),props:i({icon:"align-center"},s),messages:{title:a.keys.alignCenter},commandName:"AlignCenter"},r.alignJustify={actions:o([],l.alignJustifyRules,!0),props:i({icon:"align-justify"},s),messages:{title:a.keys.alignJustify},commandName:"AlignJustify"},r.alignRemove={actions:o([],l.alignRemoveRules,!0),props:i({icon:"align-remove"},s),messages:{},commandName:"AlignRemove"},r.indent={actions:l.indentRules.nodes,listsTypes:d,props:i({icon:"indent-increase"},s),messages:{title:a.keys.indent},commandName:"Indent"},r.outdent={actions:l.outdentRules.nodes,listsTypes:d,props:i({icon:"indent-decrease"},s),messages:{title:a.keys.outdent},commandName:"Outdent"},r.orderedList={listType:d.orderedList,props:i({icon:"list-ordered"},s),messages:{title:a.keys.orderedList},commandName:"OrderedList",types:i({},d)},r.bulletList={listType:d.bulletList,props:i({icon:"list-unordered"},s),messages:{title:a.keys.bulletList},commandName:"UnorderedList",types:i({},d)}},9259:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceDialogVue2=t.FindAndReplaceDialog=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(1536),d=n(8388),c=n(4035),u=n(5725),p=n(623),h=n(722),f=n(5901),v=n(9157),m=h.EditorToolsSettings.findAndReplace,g={name:"KendoFindAndReplaceDialog",emits:{close:null},props:{view:Object,settings:{type:Object,default:function(){return m}},dir:String},inject:{kendoLocalizationService:{default:null}},created:function(){this._prevMatch=void 0,this.nextMatch=void 0},data:function(){return{selectedTab:0,searchText:(0,v.selectedLineTextOnly)(this.$props.view.state),replaceText:"",matchCase:!1,matchWord:!1,matchCyclic:!1,useRegExp:!1,matches:[],hasMounted:!1}},mounted:function(){this.$el&&document.body.append(this.$el),this.setNextState(),this.hasMounted=!0,setTimeout((function(){var e=document.getElementById("findWhatFind");e&&e.focus()}),10)},updated:function(){var e=this.matches||[],t=this.nextMatch,n=this.$props.view;if(this._prevMatch!==t){var i=n.state,o=i.tr,r=[];e.forEach((function(e){r.push({from:e.from,to:e.to,attrs:{class:t&&e.eq(t)?"k-text-selected":"k-text-highlighted"}})})),o.setMeta(v.textHighlightKey,r),o.setSelection(t||v.TextSelection.create(i.doc,i.selection.from)),n.dispatch(o)}},destroyed:a?void 0:function(){this.$el&&this.$el.remove()},unmounted:function(){this.$el&&this.$el.remove()},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=(0,u.provideLocalizationService)(this),o=this.settings.messages,r=o.findReplaceDialogTitle,a=o.findReplaceTabFind,h=o.findReplaceTabReplace,f=o.findReplaceFindWhat,v=o.findReplaceReplaceWith,m=o.findReplaceReplace,g=o.findReplaceReplaceAll,y=o.findReplaceMatchCase,b=o.findReplaceMatchWord,k=o.findReplaceMatchCyclic,w=o.findReplaceUseRegExp,S=o.findReplacePrevMatch,x=o.findReplaceNextMatch,C=o.findReplaceMatches,$=this,I=$.matchCase,O=$.matchWord,D=$.matchCyclic,M=$.useRegExp,T=$.searchText,R=$.replaceText,B=$.nextMatch,N=n("div",{class:"k-search-options"},[n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-case"},id:"match-case",checked:this.v3?I:null,domProps:this.v3?void 0:{checked:I},onChange:this.onMatchCaseChecked,on:this.v3?void 0:{change:this.onMatchCaseChecked}}),n("label",{for:"match-case",attrs:this.v3?void 0:{for:"match-case"},class:"k-checkbox-label"},[i.toLanguageString(y,p.messages[y])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-whole"},id:"match-whole",checked:this.v3?O:null,domProps:this.v3?void 0:{checked:O},onChange:this.onMatchWordChecked,on:this.v3?void 0:{change:this.onMatchWordChecked}}),n("label",{for:"match-whole",attrs:this.v3?void 0:{for:"match-whole"},class:"k-checkbox-label"},[i.toLanguageString(b,p.messages[b])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"match-cyclic"},id:"match-cyclic",checked:this.v3?D:null,domProps:this.v3?void 0:{checked:D},onChange:this.onMatchCyclicChecked,on:this.v3?void 0:{change:this.onMatchCyclicChecked}}),n("label",{for:"match-cyclic",attrs:this.v3?void 0:{for:"match-cyclic"},class:"k-checkbox-label"},[i.toLanguageString(k,p.messages[k])])]),n("span",[n("input",{class:"k-checkbox k-checkbox-md k-rounded-md",type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"regular-expression"},id:"regular-expression",checked:this.v3?M:null,domProps:this.v3?void 0:{checked:M},onChange:this.onUseRegExpChecked,on:this.v3?void 0:{change:this.onUseRegExpChecked}}),n("label",{for:"regular-expression",attrs:this.v3?void 0:{for:"regular-expression"},class:"k-checkbox-label"},[i.toLanguageString(w,p.messages[w])])])]),P=function(e){var t="rtl"===this.$props.dir,o=n(l.Button,{fillMode:"flat",attrs:this.v3?void 0:{fillMode:"flat",themeColor:"primary"},themeColor:"primary",onClick:this.onFindPrev,on:this.v3?void 0:{click:this.onFindPrev}},this.v3?function(){return[n("span",{class:"k-icon k-i-arrow-chevron-".concat(t?"right":"left")}),i.toLanguageString(S,p.messages[S])]}:[n("span",{class:"k-icon k-i-arrow-chevron-".concat(t?"right":"left")}),i.toLanguageString(S,p.messages[S])]),r=n(l.Button,{fillMode:"flat",attrs:this.v3?void 0:{fillMode:"flat",themeColor:"primary"},themeColor:"primary",onClick:this.onFindNext,on:this.v3?void 0:{click:this.onFindNext}},this.v3?function(){return[i.toLanguageString(x,p.messages[x]),n("span",{class:"k-icon k-i-arrow-chevron-".concat(t?"left":"right")})]}:[i.toLanguageString(x,p.messages[x]),n("span",{class:"k-icon k-i-arrow-chevron-".concat(t?"left":"right")})]);return n("div",{class:"k-matches-container"},[o,this.hasMounted&&n("span",{ref:e},[this.matchesMessage(i.toLanguageString(C,p.messages[C]))]),r])},E=function(e){return n("div",{class:"k-edit-label"},[n("label",{ref:e,for:e,attrs:this.v3?void 0:{for:e}},[i.toLanguageString(f,p.messages[f])])])},V=function(e){return n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{id:e,attrs:this.v3?void 0:{id:e,type:"text"},ref:e,type:"text",class:"k-input-inner",value:this.v3?T:null,domProps:this.v3?void 0:{value:T},onInput:this.onSearchChange,on:this.v3?void 0:{input:this.onSearchChange,focus:this.onSearchChange,keydown:this.onKeyDown},onFocus:this.onSearchChange,onKeydown:this.onKeyDown})])])},L=n("div",{class:"k-edit-label"},[n("label",{for:"replaceWith",attrs:this.v3?void 0:{for:"replaceWith"}},[i.toLanguageString(v,p.messages[v])])]),A=n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{id:"replaceWith",attrs:this.v3?void 0:{id:"replaceWith",type:"text"},class:"k-input-inner",type:"text",value:this.v3?R:null,domProps:this.v3?void 0:{value:R},onInput:this.onReplaceChange,on:this.v3?void 0:{input:this.onReplaceChange}})])]);return n(d.Window,{title:i.toLanguageString(r,p.messages[r]),attrs:this.v3?void 0:{title:i.toLanguageString(r,p.messages[r]),windowStyle:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:function(){return null},maximizeButton:function(){return null},dir:this.$props.dir},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},windowStyle:{width:"auto",height:"auto",userSelect:"none"},resizable:!1,minimizeButton:function(){return null},maximizeButton:function(){return null},dir:this.$props.dir},this.v3?function(){return[n(c.TabStrip,{dir:t.$props.dir,attrs:t.v3?void 0:{dir:t.$props.dir,selected:t.selectedTab,animation:!1},selected:t.selectedTab,class:"k-editor-find-replace",onSelect:t.onTabSelect,on:t.v3?void 0:{select:t.onTabSelect},animation:!1},t.v3?function(){return[n(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")])]}:[n(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")])])]}:[n(c.TabStrip,{dir:t.$props.dir,attrs:t.v3?void 0:{dir:t.$props.dir,selected:t.selectedTab,animation:!1},selected:t.selectedTab,class:"k-editor-find-replace",onSelect:t.onTabSelect,on:t.v3?void 0:{select:t.onTabSelect},animation:!1},t.v3?function(){return[n(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")])]}:[n(c.TabStripTab,{title:i.toLanguageString(a,p.messages[a]),attrs:t.v3?void 0:{title:i.toLanguageString(a,p.messages[a])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatFind"),V.call(t,"findWhatFind")]),N,P.call(t,"findWhatFind")]),n(c.TabStripTab,{title:i.toLanguageString(h,p.messages[h]),attrs:t.v3?void 0:{title:i.toLanguageString(h,p.messages[h])}},t.v3?function(){return[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")]}:[n("div",{class:"k-edit-form-container"},[E.call(t,"findWhatReplace"),V.call(t,"findWhatReplace"),L,A]),n("div",{class:"k-actions k-hstack k-justify-content-end"},[n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplace,on:t.v3?void 0:{click:t.onReplace}},t.v3?function(){return[i.toLanguageString(m,p.messages[m])]}:[i.toLanguageString(m,p.messages[m])]),n(l.Button,{disabled:!Boolean(B),attrs:t.v3?void 0:{disabled:!Boolean(B)},onClick:t.onReplaceAll,on:t.v3?void 0:{click:t.onReplaceAll}},t.v3?function(){return[i.toLanguageString(g,p.messages[g])]}:[i.toLanguageString(g,p.messages[g])])]),N,P.call(t,"findWhatReplace")])])])},methods:{onTabSelect:function(e){this.selectedTab=e.selected},onClose:function(){var e=this.$props.view,t=e.state,n=t.tr.setSelection(v.TextSelection.create(t.doc,t.selection.from,t.selection.to));e.updateState(t.apply(n)),e.focus(),this.$emit("close")},matchesMessage:function(e){var t=this.matches,n=this.nextMatch,i=0,o=0;if(t&&n){var r=t.findIndex((function(e){return e.eq(n)}));i=-1===r?t.length:r+1,o=t.length}return(0,f.formatString)(e,i,o)},onFindNext:function(){this.onFind()},onFindPrev:function(){this.onFind(!0)},onFind:function(e){void 0===e&&(e=!1);var t=this.$props.view,n=this.$data,i=n.searchText,o=n.matchCase,r=n.matchCyclic,s={text:i,matchWord:n.matchWord,matchCase:o,useRegExp:n.useRegExp,backward:e,matchCyclic:r},a=(0,v.find)(t.state,s);if(a){var l=t.state.tr.setSelection(a);l.scrollIntoView(),t.updateState(t.state.apply(l)),this._prevMatch=this.nextMatch,this.nextMatch=a,this._prevMatch!==this.nextMatch&&this.$forceUpdate()}},onReplace:function(){var e=this.$props.view,t=e.state.selection,n=this.$data.replaceText;if(!t.empty){var i=t.from,o=i+n.length,r=(0,v.replace)(t,n,e.state.tr);r.setSelection(v.TextSelection.create(r.doc,i,o)),r.scrollIntoView(),e.dispatch(r),this.setNextState({})}},onReplaceAll:function(){var e=this.$props.view,t=this.$data,n=t.searchText,i=t.replaceText,o=t.matchCase,r={text:n,matchWord:t.matchWord,matchCase:o,useRegExp:t.useRegExp};e.dispatch((0,v.replaceAll)(e.state,i,r)),this.setNextState({})},onKeyDown:function(e){13===e.keyCode?this.onFindNext():27===e.keyCode&&this.onClose()},onMatchCaseChecked:function(e){this.matchCase=e.target.checked,this.setNextState()},onMatchWordChecked:function(e){this.matchWord=e.target.checked,this.setNextState()},onMatchCyclicChecked:function(e){this.matchCyclic=e.target.checked,this.setNextState()},onUseRegExpChecked:function(e){this.useRegExp=e.target.checked,this.setNextState()},onSearchChange:function(e){this.searchText=e.target.value,this.setNextState()},onReplaceChange:function(e){this.replaceText=e.target.value,this.setNextState()},setNextState:function(){var e=this.$props.view;if(this.searchText){var t={text:this.searchText,matchWord:this.matchWord,matchCase:this.matchCase,useRegExp:this.useRegExp},n=e.state.selection,i=(0,v.findAll)(e.state.doc,t),o=!this.searchText&&i[0]||i.find((function(e){return e.from>=n.from}))||this.matchCyclic&&i[0]||void 0;this._prevMatch=this.nextMatch,this.matches=i,this.nextMatch=o}else this._prevMatch=this.nextMatch,this.matches=[],this.nextMatch=void 0}}};t.FindAndReplaceDialogVue2=g;var y=g;t.FindAndReplaceDialog=y},3270:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageDialogVue2=t.InsertImageDialog=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(8388),d=n(1536),c=n(9157),u=n(5725),p=n(623),h=n(7984),f={name:"KendoInsertImageDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.src=(0,h.getRef)(this,"src"),this.altText=(0,h.getRef)(this,"altText"),this.title=(0,h.getRef)(this,"title"),this.width=(0,h.getRef)(this,"width"),this.height=(0,h.getRef)(this,"height"),this.src&&this.src.focus()},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,o=i.view,r=i.settings,a=i.dir,f=r.messages,v=f.insertImageDialogTitle,m=f.insertImageAddress,g=f.insertImageTitle,y=f.insertImageAltText,b=f.insertImageWidth,k=f.insertImageHeight,w=f.insertImageCancel,S=f.insertImageInsert,x=(0,u.provideLocalizationService)(this),C=o&&o.state,$={};C&&C.selection instanceof c.NodeSelection&&C.selection.node.type===C.schema.nodes[r.node]&&($=C.selection.node.attrs);var I=n("div",{class:"k-edit-form-container"},[n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-url",attrs:this.v3?void 0:{for:"k-editor-image-url"}},[x.toLanguageString(m,p.messages[m])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-url"},class:"k-input-inner",id:"k-editor-image-url",value:this.v3?$.src:null,domProps:this.v3?void 0:{value:$.src},ref:(0,h.setRef)(this,"src")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-alt",attrs:this.v3?void 0:{for:"k-editor-image-alt"}},[x.toLanguageString(y,p.messages[y])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-alt"},class:"k-input-inner",id:"k-editor-image-alt",value:this.v3?$.alt:null,domProps:this.v3?void 0:{value:$.alt},ref:(0,h.setRef)(this,"altText")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-title",attrs:this.v3?void 0:{for:"k-editor-image-title"}},[x.toLanguageString(g,p.messages[g])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-title"},class:"k-input-inner",id:"k-editor-image-title",value:this.v3?$.title:null,domProps:this.v3?void 0:{value:$.title},ref:(0,h.setRef)(this,"title")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-width",attrs:this.v3?void 0:{for:"k-editor-image-width"}},[x.toLanguageString(b,p.messages[b])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-width"},class:"k-input-inner",id:"k-editor-image-width",value:this.v3?$.width:null,domProps:this.v3?void 0:{value:$.width},ref:(0,h.setRef)(this,"width")})])]),n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-image-height",attrs:this.v3?void 0:{for:"k-editor-image-height"}},[x.toLanguageString(k,p.messages[k])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-image-height"},class:"k-input-inner",id:"k-editor-image-height",value:this.v3?$.height:null,domProps:this.v3?void 0:{value:$.height},ref:(0,h.setRef)(this,"height")})])])]),O=[n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:a},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:a,key:"cancel"},this.v3?function(){return[x.toLanguageString(w,p.messages[w])]}:[x.toLanguageString(w,p.messages[w])]),n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:this.onInsert,on:this.v3?void 0:{click:this.onInsert},themeColor:"primary",dir:a,key:"insert"},this.v3?function(){return[x.toLanguageString(S,p.messages[S])]}:[x.toLanguageString(S,p.messages[S])])];return n(l.Dialog,{title:x.toLanguageString(v,p.messages[v]),attrs:this.v3?void 0:{title:x.toLanguageString(v,p.messages[v]),closeIcon:!0,dir:a},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:a,style:"rtl"===a?{textAlign:"right"}:void 0},this.v3?function(){return[I,n(l.DialogActionsBar,t.v3?function(){return[O]}:[O])]}:[I,n(l.DialogActionsBar,t.v3?function(){return[O]}:[O])])},methods:{onClose:function(){this.$props.view.focus(),this.$emit("close")},onInsert:function(){var e=this.$props,t=e.view,n=e.settings,i=t.state.schema.nodes[n.node],o={src:this.src?this.src.value:null,title:this.title?this.title.value:null,alt:this.altText?this.altText.value:null,width:this.width?this.width.value:null,height:this.height?this.height.value:null},r=Object.keys(o).filter((function(e){return null!==o[e]&&""!==o[e]})).reduce((function(e,t){var n;return Object.assign(e,((n={})[t]=o[t],n))}),{}),s=i.createAndFill(r);(0,c.insertNode)(s,!0)(t.state,(function(e){return t.dispatch(e.setMeta("commandName",n.commandName).setMeta("args",r))})),this.onClose()}}};t.InsertImageDialogVue2=f;var v=f;t.InsertImageDialog=v},4361:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertLinkDialogVue2=t.InsertLinkDialog=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(8388),d=n(1536),c=n(9157),u=n(5725),p=n(623),h=n(7984),f={name:"KendoInsertLinkDialog",emits:{close:null},props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},setup:a?function(){return{v3:!!a}}:void 0,mounted:function(){this.href=(0,h.getRef)(this,"href"),this.title=(0,h.getRef)(this,"title"),this.target=(0,h.getRef)(this,"target"),this.href&&this.href.focus()},render:function(e){var t=this,n=s||e,i=this.$props,o=i.view,r=i.settings,a=i.dir,f=(0,u.provideLocalizationService)(this),v=r.messages,m=v.insertHyperlinkDialogTitle,g=v.insertHyperlinkAddress,y=v.insertHyperlinkTitle,b=v.insertHyperlinkNewWindow,k=v.insertHyperlinkCancel,w=v.insertHyperlinkInsert,S=!!o&&(0,c.getMark)(o.state,o.state.schema.marks[r.mark]),x=n("div",{class:"k-edit-form-container"},[n("div",{class:"k-edit-label"},[n("label",{for:"k-editor-link-url",attrs:this.v3?void 0:{for:"k-editor-link-url"}},[f.toLanguageString(g,p.messages[g])])]),n("div",{class:"k-edit-field"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-link-url"},class:"k-input-inner",ref:(0,h.setRef)(this,"href"),id:"k-editor-link-url",value:this.v3?S&&S.attrs.href||void 0:null,domProps:this.v3?void 0:{value:S&&S.attrs.href||void 0}})])]),n("div",{class:"k-edit-label k-editor-link-text-row"},[n("label",{for:"k-editor-link-text",attrs:this.v3?void 0:{for:"k-editor-link-text"}},[f.toLanguageString(y,p.messages[y])])]),n("div",{class:"k-edit-field k-editor-link-text-row"},[n("span",{class:"k-textbox k-input k-input-md k-rounded-md k-input-solid"},[n("input",{type:"text",attrs:this.v3?void 0:{type:"text",id:"k-editor-link-text"},class:"k-input-inner",id:"k-editor-link-text",ref:(0,h.setRef)(this,"title"),value:this.v3?S&&S.attrs.title||void 0:null,domProps:this.v3?void 0:{value:S&&S.attrs.title||void 0}})])]),!1!==r.linkTarget&&n("div",{class:"k-edit-field"},[n("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",id:"k-editor-link-target"},class:"k-checkbox k-checkbox-md k-rounded-md",id:"k-editor-link-target",ref:(0,h.setRef)(this,"target"),checked:this.v3?S&&!!S.attrs.target||void 0:null,domProps:this.v3?void 0:{checked:S&&!!S.attrs.target||void 0}}),n("label",{for:"k-editor-link-target",attrs:this.v3?void 0:{for:"k-editor-link-target"},class:"k-checkbox-label"},[f.toLanguageString(b,p.messages[b])])])]);return n(l.Dialog,{title:f.toLanguageString(m,p.messages[m]),attrs:this.v3?void 0:{title:f.toLanguageString(m,p.messages[m]),closeIcon:!0,dir:a},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},closeIcon:!0,dir:a,style:"rtl"===a?{textAlign:"right"}:void 0},this.v3?function(){return[x,n(l.DialogActionsBar,t.v3?function(){return[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.messages[w])])]}:[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.messages[w])])])]}:[x,n(l.DialogActionsBar,t.v3?function(){return[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.messages[w])])]}:[n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",dir:a},onClick:t.onClose,on:t.v3?void 0:{click:t.onClose},dir:a,key:"cancel"},t.v3?function(){return[f.toLanguageString(k,p.messages[k])]}:[f.toLanguageString(k,p.messages[k])]),n(d.Button,{type:"button",attrs:t.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:t.onInsert,on:t.v3?void 0:{click:t.onInsert},themeColor:"primary",dir:a,key:"insert"},t.v3?function(){return[f.toLanguageString(w,p.messages[w])]}:[f.toLanguageString(w,p.messages[w])])])])},methods:{onClose:function(){this.$props.view.focus(),this.$emit("close")},onInsert:function(){var e=this.$props.view,t=this.$props.settings.mark,n={href:this.href?this.href.value:void 0,title:this.title?this.title.value:void 0,target:this.target&&this.target.checked?"_blank":void 0};(0,c.applyLink)({mark:t,attrs:n},this.$props.settings.commandName)(e.state,e.dispatch),this.onClose()}}};t.InsertLinkDialogVue2=f;var v=f;t.InsertLinkDialog=v},6607:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlDialogVue2=t.ViewHtmlDialog=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(8388),d=n(1536),c=n(9157),u=n(5725),p=n(623),h=n(7578),f=n(7984),v={name:"KendoViewHtmlDialog",props:{view:Object,settings:Object,dir:String},inject:{kendoLocalizationService:{default:null}},mounted:function(){this.htmlArea=(0,f.getRef)(this,"htmlArea")},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,o=i.view,r=i.settings,a=i.dir,h=(0,u.provideLocalizationService)(this),v=r.messages,m=v.viewHtmlDialogTitle,g=v.viewHtmlCancel,y=v.viewHtmlUpdate,b=n("textarea",{class:"k-textarea k-editor-textarea",style:{height:"280px",width:"490px"},ref:(0,f.setRef)(this,"htmlArea"),value:this.v3?(0,c.indentHtml)((0,c.getHtml)(o.state)):null,domProps:this.v3?void 0:{value:(0,c.indentHtml)((0,c.getHtml)(o.state))}}),k=[n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",dir:a},onClick:this.onClose,on:this.v3?void 0:{click:this.onClose},dir:a,key:"cancel"},this.v3?function(){return[h.toLanguageString(g,p.messages[g])]}:[h.toLanguageString(g,p.messages[g])]),n(d.Button,{type:"button",attrs:this.v3?void 0:{type:"button",themeColor:"primary",dir:a},onClick:this.onUpdate,on:this.v3?void 0:{click:this.onUpdate},themeColor:"primary",dir:a,key:"update"},this.v3?function(){return[h.toLanguageString(y,p.messages[y])]}:[h.toLanguageString(y,p.messages[y])])];return n(l.Dialog,{title:h.toLanguageString(m,p.messages[m]),attrs:this.v3?void 0:{title:h.toLanguageString(m,p.messages[m]),closeIcon:!0,dir:a},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},key:"dialog",closeIcon:!0,dir:a,style:"rtl"===a?{textAlign:"right"}:void 0},this.v3?function(){return[b,n(l.DialogActionsBar,t.v3?function(){return[k]}:[k])]}:[b,n(l.DialogActionsBar,t.v3?function(){return[k]}:[k])])},methods:{onUpdate:function(){var e=this.$props,t=e.view,n=e.settings,i=(0,c.trimWhitespace)(this.htmlArea?this.htmlArea.value:""),o=h.editorPropsKey.getState(t.state).preserveWhitespace;(0,c.setHtml)(i,n.commandName,{preserveWhitespace:o})(t.state,t.dispatch),this.onClose()},onClose:function(){this.$props.view.focus(),this.$emit("close")}}};t.ViewHtmlDialogVue2=v;var m=v;t.ViewHtmlDialog=m},623:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.keys=t.messages=void 0;var i="editor.bold",o="editor.italic",r="editor.underline",s="editor.strikethrough",a="editor.subscript",l="editor.superscript",d="editor.hyperlink",c="editor.insertFile",u="editor.print",p="editor.selectAll",h="editor.cleanFormatting",f="editor.pdf",v="editor.foregroundColor",m="editor.backgroundColor",g="editor.createTable",y="editor.insertTableHint",b="editor.addRowBefore",k="editor.addRowAfter",w="editor.addColumnBefore",S="editor.addColumnAfter",x="editor.deleteRow",C="editor.deleteColumn",$="editor.deleteTable",I="editor.mergeCells",O="editor.splitCell",D="editor.hyperlink-dialog-title",M="editor.hyperlink-dialog-content-address",T="editor.hyperlink-dialog-content-title",R="editor.hyperlink-dialog-content-newwindow",B="editor.hyperlink-dialog-cancel",N="editor.hyperlink-dialog-insert",P="editor.insertfile-dialog-title",E="editor.insertfile-dialog-content-address",V="editor.insertfile-dialog-content-title",L="editor.insertfile-dialog-cancel",A="editor.insertfile-dialog-insert",F="editor.image",z="editor.image-dialog-title",j="editor.image-address",K="editor.image-title",_="editor.image-altText",H="editor.image-width",W="editor.image-height",U="editor.image-cancel",q="editor.image-insert",G="editor.viewHtml",J="editor.viewHtml-dialog-title",X="editor.viewHtml-cancel",Y="editor.viewHtml-update",Z="editor.unlink",Q="editor.undo",ee="editor.redo",te="editor.fontSize",ne="editor.fontName",ie="editor.format",oe="editor.alignLeft",re="editor.alignRight",se="editor.alignCenter",ae="editor.alignJustify",le="editor.indent",de="editor.outdent",ce="editor.orderedList",ue="editor.bulletList",pe="editor.findReplace-tool-title",he="editor.findReplace-dialog-title",fe="editor.findReplace-tab-find",ve="editor.findReplace-tab-replace",me="editor.findReplace-findWhat",ge="editor.findReplace-replaceWith",ye="editor.findReplace-replace",be="editor.findReplace-replaceAll",ke="editor.findReplace-matchCase",we="editor.findReplace-matchWord",Se="editor.findReplace-matchCyclic",xe="editor.findReplace-useRegExp",Ce="editor.findReplace-prevMatch",$e="editor.findReplace-nextMatch",Ie="editor.findReplace-matches";t.messages=((n={})[i]="Bold",n[o]="Italic",n[r]="Underline",n[s]="Strikethrough",n[a]="Subscript",n[l]="Superscript",n[Z]="Remove hyperlink",n[Q]="Undo",n[ee]="Redo",n[te]="Font Size",n[ne]="Font Name",n[ie]="Format",n[oe]="Align text left",n[re]="Align text right",n[se]="Center text",n[ae]="Justify",n[le]="Indent",n[de]="Outdent",n[ce]="Insert ordered list",n[ue]="Insert unordered list",n[u]="Print",n[p]="Select All",n[h]="Clean formatting",n[f]="Export as PDF",n[v]="Color",n[m]="Background color",n[g]="Create a table",n[y]="Create a {0} x {1} table",n[b]="Add row above",n[k]="Add row below",n[w]="Add column on the left",n[S]="Add column on the right",n[x]="Delete row",n[C]="Delete column",n[$]="Delete table",n[I]="Merge cells",n[O]="Split cell",n[d]="Insert hyperlink",n[D]="Insert hyperlink",n[M]="Web address",n[T]="Title",n[R]="Open link in new window",n[B]="Cancel",n[N]="Insert",n[c]="Insert file",n[P]="Insert file",n[E]="Web address",n[V]="Title",n[L]="Cancel",n[A]="Insert",n[F]="Insert image",n[z]="Insert image",n[j]="Web address",n[K]="Title",n[_]="Alternate text",n[H]="Width (px)",n[W]="Height (px)",n[U]="Cancel",n[q]="Insert",n[G]="View HTML",n[J]="View HTML",n[X]="Cancel",n[Y]="Update",n[pe]="Find and Replace",n[he]="Find and Replace",n[fe]="Find",n[ve]="Replace",n[me]="Find What:",n[ge]="Replace With",n[ye]="Replace",n[be]="Replace All",n[ke]="Match Case",n[we]="Match whole word only",n[Se]="Match cyclic (Wrap around)",n[xe]="Regular Expression",n[Ce]="Prev",n[$e]="Next",n[Ie]="{0} of {1} matches",n),t.keys={bold:i,italic:o,underline:r,strikethrough:s,subscript:a,superscript:l,unlink:Z,undo:Q,redo:ee,fontSize:te,fontName:ne,format:ie,alignLeft:oe,alignRight:re,alignCenter:se,alignJustify:ae,indent:le,outdent:de,orderedList:ce,bulletList:ue,print:u,selectAll:p,cleanFormatting:h,pdf:f,foregroundColor:v,backgroundColor:m,createTable:g,createTableHint:y,addRowBefore:b,addRowAfter:k,addColumnBefore:w,addColumnAfter:S,deleteRow:x,deleteColumn:C,deleteTable:$,mergeCells:I,splitCell:O,insertHyperlink:d,insertHyperlinkDialogTitle:D,insertHyperlinkAddress:M,insertHyperlinkTitle:T,insertHyperlinkNewWindow:R,insertHyperlinkCancel:B,insertHyperlinkInsert:N,insertFile:c,insertFileDialogTitle:P,insertFileAddress:E,insertFileTitle:V,insertFileCancel:L,insertFileInsert:A,insertImage:F,insertImageDialogTitle:z,insertImageAddress:j,insertImageTitle:K,insertImageAltText:_,insertImageWidth:H,insertImageHeight:W,insertImageCancel:U,insertImageInsert:q,viewHtml:G,viewHtmlDialogTitle:J,viewHtmlCancel:X,viewHtmlUpdate:Y,findReplaceToolTitle:pe,findReplaceDialogTitle:he,findReplaceTabFind:fe,findReplaceTabReplace:ve,findReplaceFindWhat:me,findReplaceReplaceWith:ge,findReplaceReplace:ye,findReplaceReplaceAll:be,findReplaceMatchCase:ke,findReplaceMatchWord:we,findReplaceMatchCyclic:Se,findReplaceUseRegExp:xe,findReplacePrevMatch:Ce,findReplaceNextMatch:$e,findReplaceMatches:Ie}},169:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-vue-editor",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660124004,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"}},3530:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.AlignVue2=t.Align=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(722),u=n(9157),p=n(5725),h=n(623),f=c.EditorToolsSettings.alignRemove,v={name:"KendoAlign",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=o&&o.state,c=!!l&&(0,u.isAligned)(l,r.actions),f=(0,p.provideLocalizationService)(this),v=r.messages.title,m=i(i(i({},s),{selected:c,togglable:!0,title:f.toLanguageString(v,h.messages[v])}),r.props);return t(d.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:m},m))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i=t&&t.state,o=!!i&&(0,u.isAligned)(i,n.actions),r=o?f.actions:n.actions,s=o?f.commandName:n.commandName;return t&&(0,u.alignBlocks)(r,s)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.AlignVue2=v;var m=v;t.Align=m},5555:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.ApplyColorVue2=t.ApplyColor=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(961),c=n(9157),u=n(5725),p=n(623),h={name:"KendoApplyColor",props:{view:Object,color:String,colorPickerProps:Object,commandName:String,dir:String},inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.colorPickerProps,r=n.dir,s=o.title,l=(0,u.provideLocalizationService)(this),c=i(i({},o),{dir:r,showButtons:!1,showClearButton:!1,showPreview:!1,title:s?l.toLanguageString(s,p.messages[s]):s});return t(d.ColorPicker,i({onChange:this.onChange,onActivecolorclick:this.onChange,on:this.v3?void 0:{change:this.onChange,activecolorclick:this.onChange},attrs:this.v3?void 0:c},c))},methods:{onChange:function(e){var t=this.$props,n=t.view,i=t.color,o=t.colorPickerProps,r=t.commandName;if(n){(0,c.applyInlineStyle)({style:i,value:e.value},r)(n.state,n.dispatch);var s=o.view;"palette"===(void 0===s?"palette":s)&&n.focus()}}}};t.ApplyColorVue2=h;var f=h;t.ApplyColor=f},4165:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.CleanFormattingVue2=t.CleanFormatting=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(5725),u=n(623),p=n(9157),h=n(722).EditorToolsSettings.cleanFormatting,f=(0,p.cleanFormatting)(),v={name:"KendoCleanFormatting",props:i({view:Object,settings:{type:Object,default:function(){return h}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),l=r.messages.title,p=(0,c.provideLocalizationService)(this),h=i(i(i({},s),{disabled:!o||!f(o.state),title:p.toLanguageString(l,u.messages[l])}),r.props);return t(d.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:h},h))},methods:{handleClick:function(){var e=this;this.view&&f(this.view.state,(function(t){t.setMeta("commandName",e.settings.commandName),e.view.dispatch(t)}))},preventDefault:function(e){e.preventDefault()}}};t.CleanFormattingVue2=v;var m=v;t.CleanFormatting=m},1217:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.FindAndReplaceVue2=t.FindAndReplace=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9259),u=n(623),p=n(722),h=n(5725),f=p.EditorToolsSettings.findAndReplace,v={name:"KendoFindAndReplace",props:i({view:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{showDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view"]),s=(0,h.provideLocalizationService)(this),l=f.messages.findReplaceToolTitle,p=i(i(i({},r),{key:"tool",disabled:!o,title:s.toLanguageString(l,u.messages[l])}),f.props),v=t(d.Button,i({onClick:this.onOpen,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.onOpen,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:p},p));return t("span",[v,this.showDialog&&o&&t(c.FindAndReplaceDialog,{view:o,attrs:this.v3?void 0:{view:o,dir:this.$props.dir},onClose:this.onClose,on:this.v3?void 0:{close:this.onClose},dir:this.$props.dir,key:"dialog"})])},methods:{onClose:function(){this.showDialog=!1},onOpen:function(){this.showDialog=!0},preventDefault:function(e){e.preventDefault()}}};t.FindAndReplaceVue2=v;var m=v;t.FindAndReplace=m},1198:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.FontNameVue2=t.FontName=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),l=a.h,d=a.version&&"3"===a.version[0],c=n(7142),u=n(9157),p=n(5901),h=n(5725),f=n(623),v={name:"KendoFontName",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=l||e,n=this.$props,o=n.view,r=(n.render,n.dataItems),s=n.settings,a=n.defaultItem,d=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","dataItems","settings","defaultItem"]),v=s.style,m=o?(0,u.getInlineStyles)(o.state,{name:v,value:/^.+$/}):[],g=1===new Set(m).size?m[0]:null,y=r||s.items,b=a||s.defaultItem,k=(0,h.provideLocalizationService)(this);b&&b.localizationKey&&((b=i({},b)).text=b.localizationKey?k.toLanguageString(b.localizationKey,f.messages[b.localizationKey]):b.text);var w=i(i(i({},d),{value:g?y.find((function(e){return e.value===g})):g,dataItems:y,defaultItem:b,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1}),s.props);return t(c.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:p.userSelectNone,attrs:this.v3?void 0:w},w))},methods:{customItemRender:function(e,t,n){return n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick,on:{click:n.onClick}},[e("span",{style:n.dataItem.style},s([],t.children,!0))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,o=i.style,r=e.target.value;if(n){(0,u.applyInlineStyle)({style:o,value:r.value},i.commandName)(n.state,n.dispatch);var s=e.event;s&&"click"===s.type&&n.focus()}}}};t.FontNameVue2=v;var m=v;t.FontName=m},423:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},s=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.FormatBlockVue2=t.FormatBlock=void 0;var a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),l=a.h,d=a.version&&"3"===a.version[0],c=n(7142),u=n(9157),p=n(5901),h=n(5725),f=n(623),v={name:"KendoFormatBlock",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},c.DropDownList.props),inject:{kendoLocalizationService:{default:null}},setup:d?function(){return{v3:!!d}}:void 0,render:function(e){var t=l||e,n=this.$props,o=n.view,r=(n.render,n.dataItems),s=n.settings,a=n.defaultItem,d=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","dataItems","settings","defaultItem"]),v=r||s.items,m=o&&o.state,g=m?(0,u.getBlockFormats)(m):[],y=1===new Set(g).size?g[0]:null,b=a||s.defaultItem,k=(0,h.provideLocalizationService)(this);b&&b.localizationKey&&((b=i({},b)).text=b.localizationKey?k.toLanguageString(b.localizationKey,f.messages[b.localizationKey]):b.text);var w=i(i(i({},d),{value:y?v.find((function(e){return e.value===y})):y,dataItems:v,defaultItem:b,itemRender:this.customItemRender,textField:"text",dataItemKey:"value",leftRightKeysNavigation:!1,popupSettings:{width:"170px"}}),s.props);return t(c.DropDownList,i({onChange:this.onChange,on:this.v3?void 0:{change:this.onChange},style:p.userSelectNone,attrs:this.v3?void 0:w},w))},methods:{customItemRender:function(e,t,n){return n.dataItem.style?e("li",{class:n.itemClass,onClick:n.onClick,on:{click:n.onClick}},[e("span",{style:n.dataItem.style},s([],t.children,!0))]):t},onChange:function(e){var t=this.$props,n=t.view,i=t.settings,o=e.target.value;if(n&&(0,u.formatBlockElements)(o.value,i.commandName)(n.state,n.dispatch)){var r=e.event;r&&"click"===r.type&&n.focus()}}}};t.FormatBlockVue2=v;var m=v;t.FormatBlock=m},8060:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.IndentVue2=t.Indent=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(5725),p=n(623),h={name:"KendoIndent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),l=o&&o.state,h=l&&l.schema.nodes,f=h&&h[r.listsTypes.listItem],v=r.actions,m=!!l&&((0,c.isIndented)(l,v,s.dir)||v.some((function(e){return h[e.node]&&(0,c.hasNode)(l,h[e.node])})))&&!(0,c.hasNode)(l,f),g=!!l&&(0,c.canIndentAsListItem)(l,f),y=m||g,b=(0,u.provideLocalizationService)(this),k=r.messages.title,w=i(i(i({},s),{disabled:!y,title:b.toLanguageString(k,p.messages[k])}),r.props);return t(d.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:w},w))},methods:{handleClick:function(){var e=this.view&&this.view.state,t=e&&e.schema.nodes,n=t&&t[this.settings.listsTypes.listItem],i=this.settings.actions,o=!!e&&((0,c.isIndented)(e,i,this.dir)||i.some((function(n){return t[n.node]&&(0,c.hasNode)(e,t[n.node])})))&&!(0,c.hasNode)(e,n),r=!!e&&(0,c.canIndentAsListItem)(e,n);this.view&&r?(0,c.sinkListItem)(n)(this.view.state,this.view.dispatch):this.view&&o&&(0,c.indentBlocks)(i,this.settings.commandName,this.dir)(this.view.state,this.view.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.IndentVue2=h;var f=h;t.Indent=f},7947:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.InlineFormatVue2=t.InlineFormat=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(5725),p=n(623),h={name:"KendoInlineFormat",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),l=o&&o.state,h={mark:r.mark,altMarks:r.altMarks,altStyle:r.altStyle},f=(0,u.provideLocalizationService)(this),v=r.messages.title,m=i(i(i({},s),{selected:!!l&&(0,c.hasMark)(l,h),togglable:!0,title:f.toLanguageString(v,p.messages[v])}),r.props);return t(d.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:m},m))},methods:{handleClick:function(){var e=this.view&&this.view.state,t=this.settings,n={mark:t.mark,altMarks:t.altMarks,altStyle:t.altStyle};return this.view&&(0,c.toggleInlineFormat)(n,e&&e.tr.setMeta("commandName",this.settings.commandName))(this.view.state,this.view.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.InlineFormatVue2=h;var f=h;t.InlineFormat=f},3976:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertImageVue2=t.InsertImage=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(9157),c=n(1536),u=n(3270),p=n(5725),h=n(623),f={name:"KendoInsertImage",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},c.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=o&&o.state,f=l?l.schema.nodes[r.node]:void 0,v=(0,p.provideLocalizationService)(this),m=r.messages.insertImage,g=i(i(i({},s),{key:"insertImage",disabled:!f||!l||!(0,d.canInsert)(l,f),title:v.toLanguageString(m,h.messages[m])}),r.props),y=[t(c.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:g},g)),this.openedDialog&&o&&t(u.InsertImageDialog,{key:"insertImageDialog",view:o,attrs:this.v3?void 0:{view:o,settings:r,dir:g.dir},settings:r,dir:g.dir,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[y])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.InsertImageVue2=f;var v=f;t.InsertImage=v},1013:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.LinkToolVue2=t.LinkTool=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(4361),p=n(5725),h=n(623),f={name:"KendoLinkTool",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=o&&o.state,f=!l||l.selection.empty,v=l&&(0,c.getMark)(l,l.schema.marks[r.mark]),m=(0,p.provideLocalizationService)(this),g=r.messages.insertHyperlink,y=i(i(i({},s),{key:"link",disabled:f&&!v,title:m.toLanguageString(g,h.messages[g])}),r.props),b=[t(d.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y)),this.openedDialog&&o&&t(u.InsertLinkDialog,{key:"insertLinkDialog",settings:r,attrs:this.v3?void 0:{settings:r,dir:this.dir,view:o},dir:this.dir,view:o,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[b])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.LinkToolVue2=f;var v=f;t.LinkTool=v},5085:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTablePopupVue2=t.InsertTablePopup=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(3266),d=n(6764),c={name:"KendoInsertTablePopup",props:{show:{type:Boolean,required:!0},createTableMessage:{type:String,required:!0},createTableHintMessage:{type:String,required:!0},anchor:String,rows:{type:Number,default:6},columns:{type:Number,default:8},dir:String},data:function(){return{pointerdown:!1}},updated:function(){},mounted:function(){window.addEventListener("mousedown",this.onWindowDown),window.addEventListener("pointerdown",this.onWindowDown)},destroyed:a?void 0:function(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},unmounted:function(){window.removeEventListener("mousedown",this.onWindowDown),window.removeEventListener("pointerdown",this.onWindowDown)},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=this.$props,o=i.show,r=i.anchor,a=i.dir,c=i.rows,u=i.columns,p="rtl"===a?"right":"left";return n(l.Popup,{anchor:r,attrs:this.v3?void 0:{anchor:r,anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-border-up",show:o},anchorAlign:{horizontal:p,vertical:"bottom"},popupAlign:{horizontal:p,vertical:"top"},popupClass:"k-ct-popup k-group k-reset k-border-up",show:o,style:"rtl"===a?{direction:"rtl"}:void 0},this.v3?function(){return[n(d.PopupGrid,{rows:c,attrs:t.v3?void 0:{rows:c,columns:u,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:u,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage,onCellclick:t.onTableInsert,on:t.v3?void 0:{cellclick:t.onTableInsert,down:t.onPointerDown},onDown:t.onPointerDown})]}:[n(d.PopupGrid,{rows:c,attrs:t.v3?void 0:{rows:c,columns:u,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage},columns:u,createTableMessage:t.$props.createTableMessage,createTableHintMessage:t.$props.createTableHintMessage,onCellclick:t.onTableInsert,on:t.v3?void 0:{cellclick:t.onTableInsert,down:t.onPointerDown},onDown:t.onPointerDown})])},methods:{onTableInsert:function(e,t){this.$emit("tableinsert",e,t)},onWindowDown:function(e){var t=this.$props.anchor;(!t||t!==e.target&&t.firstElementChild!==e.target)&&(this.$props.show&&!this.pointerdown&&this.$props.onClose(),this.pointerdown=!1)},onPointerDown:function(){this.pointerdown=!0}}};t.InsertTablePopupVue2=c;var u=c;t.InsertTablePopup=u},6764:(e,t,n)=>{var i=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupGridVue2=t.PopupGrid=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t}(n(1895)),s=r.h,a=r.version&&"3"===r.version[0],l=n(5901),d={name:"KendoPopupGrid",props:{rows:Number,columns:Number,createTableMessage:String,createTableHintMessage:String},data:function(){return{row:-1,col:-1}},setup:a?function(){return{v3:!!a}}:void 0,render:function(e){var t=this,n=s||e,i=[],o=this.$props.columns*this.$props.rows,r=this.$data,a=r.row,d=r.col,c=this.$props.createTableMessage;d>-1&&(c=(0,l.formatString)(this.$props.createTableHintMessage,a+1,d+1));for(var u=function(e,t,i){var o=this,r=Math.floor(e/this.$props.columns),s=e%this.$props.columns;return n("span",{class:"k-ct-cell k-disabled"+(s<=i&&r<=t?" ".concat("k-selected"):""),onMouseenter:function(){return o.cellMouseEnter({row:r,col:s})},on:this.v3?void 0:{mouseenter:function(){return o.cellMouseEnter({row:r,col:s})},click:function(){return o.onCellClick(r,s)}},onClick:function(){return o.onCellClick(r,s)},key:e})},p=0;p<o;p++)i.push(u.call(this,p,a,d));var h=[n("div",{onMouseleave:function(){return t.handleMouseLeave()},on:this.v3?void 0:{mouseleave:function(){return t.handleMouseLeave()},pointerdown:this.onDown,mousedown:this.onDown},key:"cells",style:{borderColor:"inherit"},onPointerdown:this.onDown,onMousedown:this.onDown},[i]),n("div",{class:"k-status",key:"status",onPointerdown:this.onDown,on:this.v3?void 0:{pointerdown:this.onDown,mousedown:this.onDown},onMousedown:this.onDown},[c])];return n("span",[h])},methods:{cellMouseEnter:function(e){var t=e.row,n=e.col;this.row=t,this.col=n},handleMouseLeave:function(){this.row=-1,this.col=-1},onCellClick:function(e,t){this.$emit("cellclick",e,t)},onDown:function(e){this.$emit("down",e)}}};t.PopupGridVue2=d;var c=d;t.PopupGrid=c},8799:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.InsertTableVue2=t.InsertTable=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(7984),u=n(5085),p=n(5725),h=n(623),f=n(9157),v={name:"KendoInsertTable",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}},dir:String},d.Button.props),inject:{kendoLocalizationService:{default:null}},created:function(){this.buttonRef=(0,c.guid)()},data:function(){return{openedPopup:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=o&&o.state,c=(0,p.provideLocalizationService)(this),v=r.messages,m=v.createTable,g=v.createTableHint,y=c.toLanguageString(m,h.messages[m]),b=c.toLanguageString(g,h.messages[g]),k=i(i(i({},s),{disabled:!l||!(0,f.canInsert)(l,l.schema.nodes.table),key:"InsertTable",title:y}),r.props),w=[t(d.Button,i({ref:this.buttonRef,onClick:this.togglePopup,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.togglePopup,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:k},k)),o&&t(u.InsertTablePopup,{key:"insertTablePopup",createTableMessage:y,attrs:this.v3?void 0:{createTableMessage:y,createTableHintMessage:b,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup},createTableHintMessage:b,dir:this.dir,anchor:this.buttonRef,show:this.openedPopup,onClose:this.closePopup,on:this.v3?void 0:{close:this.closePopup,tableinsert:this.onTableInsert},onTableinsert:this.onTableInsert})||null];return t("span",[w])},methods:{togglePopup:function(){this.openedPopup=!this.openedPopup},closePopup:function(){this.openedPopup&&this.togglePopup()},onTableInsert:function(e,t){var n=this.$props.view;if(n){var i=(0,f.createTable)(n.state.schema.nodes,e,t);i&&(0,f.insertNode)(i,!0)(n.state,n.dispatch),n.focus(),this.closePopup()}},preventDefault:function(e){e.preventDefault()}}};t.InsertTableVue2=v;var m=v;t.InsertTable=m},3684:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.ListVue2=t.List=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(5725),p=n(623),h={name:"KendoList",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),l=!1,h=(0,u.provideLocalizationService)(this),f=r.messages.title,v=r.types,m=r.listType;if(o){var g=o.state,y=g.schema.nodes,b=(0,c.hasNode)(g,y[v.orderedList]),k=(0,c.hasNode)(g,y[v.bulletList]);l=m===v.orderedList?b&&!k:!b&&k}var w=i(i(i({},s),{selected:l,togglable:!0,title:h.toLanguageString(f,p.messages[f])}),r.props);return t(d.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:w},w))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,o=n.types,r=n.listType;this.view&&(0,c.toggleList)(t.state,t.dispatch,t,i({listType:r},o),n.commandName)},preventDefault:function(e){e.preventDefault()}}};t.ListVue2=h;var f=h;t.List=f},674:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.OutdentVue2=t.Outdent=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(5725),p=n(623),h={name:"KendoOutdent",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),l=o&&o.state,h=!!l&&(0,c.isIndented)(l,r.actions,s.dir),f=(l&&l.schema.nodes[r.listsTypes.listItem],!!l&&(0,c.canOutdentAsListItem)(l,{nodes:r.actions,listsTypes:r.listsTypes})),v=h||f,m=(0,u.provideLocalizationService)(this),g=r.messages.title,y=i(i(i({},s),{disabled:!v,title:m.toLanguageString(g,p.messages[g])}),r.props);return t(d.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i=e.dir,o=t&&t.state,r=!!o&&(0,c.isIndented)(o,n.actions,i),s=o&&o.schema.nodes[n.listsTypes.listItem],a=!!o&&(0,c.canOutdentAsListItem)(o,{nodes:n.actions,listsTypes:n.listsTypes});t&&a?(0,c.liftListItem)(s)(t.state,t.dispatch):t&&r&&(0,c.indentBlocks)(n.actions,n.commandName,i)(t.state,t.dispatch)},preventDefault:function(e){e.preventDefault()}}};t.OutdentVue2=h;var f=h;t.Outdent=f},8086:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.PdfVue2=t.Pdf=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(5725),u=n(9606),p=n(623),h=n(722),f=h.EditorToolsSettings.pdf,v=h.EditorToolsSettings.savePdfOptions,m={name:"KendoPdf",props:i({view:Object,settings:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=(n.view,n.render,n.settings),r=void 0===o?f:o,s=(n.savePdfOptions,n.savePdfCallback,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings","savePdfOptions","savePdfCallback"])),l=r.messages.title,u=(0,c.provideLocalizationService)(this),h=i(i(i({},s),{title:u.toLanguageString(l,p.messages[l])}),r.props);return t(d.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:h},h))},methods:{handleClick:function(){this.view&&(0,u.savePDF)(this.view.dom,i(i({},v),this.savePdfOptions||{}),this.savePdfCallback)},preventDefault:function(e){e.preventDefault()}}};t.PdfVue2=m;var g=m;t.Pdf=g},4312:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.PrintVue2=t.Print=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(5725),u=n(623),p=n(722).EditorToolsSettings.print,h={name:"KendoPrint",props:i({view:Object,settings:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=(n.render,n.settings),s=void 0===r?p:r,l=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","render","settings"]),h=o&&o.dom,f=h&&h.ownerDocument,v=f&&f.defaultView,m=s.messages.title,g=(0,c.provideLocalizationService)(this),y=i(i(i({},l),{disabled:!v||v===window,title:g.toLanguageString(m,u.messages[m])}),s.props);return t(d.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:y},y))},methods:{handleClick:function(){var e=this.view&&this.view.dom,t=e&&e.ownerDocument,n=t&&t.defaultView;n&&n.print()},preventDefault:function(e){e.preventDefault()}}};t.PrintVue2=h;var f=h;t.Print=f},8356:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.ProseMirrorVue2=t.ProseMirror=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(7984),u=n(5725),p=n(623),h={name:"KendoProseMirror",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},computed:{command:function(){return this.settings.command||c.noop}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=(0,u.provideLocalizationService)(this),c=r.messages.title,h=o&&o.state,f=!!h&&!this.command(h),v=i(i(i({},s),{disabled:f,title:l.toLanguageString(c,p.messages[c])}),r.props);return t(d.Button,i({onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},attrs:this.v3?void 0:v},v))},methods:{handleClick:function(){var e=this;this.view&&this.command(this.view.state,(function(t){return e.view.dispatch(t.setMeta("commandName",e.settings.commandName))}))}}};t.ProseMirrorVue2=h;var f=h;t.ProseMirror=f},9343:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectAllVue2=t.SelectAll=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(5725),u=n(623),p=n(9157),h=n(722).EditorToolsSettings.selectAll,f={name:"KendoSelectAll",props:i({view:Object,settings:Object},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=(n.view,n.settings),r=void 0===o?h:o,s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=r.messages.title,p=(0,c.provideLocalizationService)(this),f=i(i(i({},s),{title:p.toLanguageString(l,u.messages[l])}),r.props);return t(d.Button,i({onClick:this.handleClick,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.handleClick,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:f},f))},methods:{handleClick:function(){this.view&&((0,p.selectAll)(this.view.state,this.view.dispatch),this.view.focus())},preventDefault:function(e){e.preventDefault()}}};t.SelectAllVue2=f;var v=f;t.SelectAll=v},84:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.UnlinkVue2=t.Unlink=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(9157),u=n(5725),p=n(623),h={name:"KendoUnlink",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l={mark:r.mark},h=!!o&&(0,c.hasMark)(o.state,l),f=(0,u.provideLocalizationService)(this),v=r.messages.title,m=i(i(i({},s),{disabled:!h,title:f.toLanguageString(v,p.messages[v])}),r.props);return t(d.Button,i({onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},attrs:this.v3?void 0:m},m))},methods:{handleClick:function(){var e=this.$props,t=e.view,n=e.settings,i={mark:n.mark};t&&(0,c.removeLink)(i,t.state.tr.setMeta("commandName",n.commandName))(t.state,t.dispatch)}}};t.UnlinkVue2=h;var f=h;t.Unlink=f},5901:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.userSelectNone=t.formatString=t.onDownPreventDefault=void 0,t.onDownPreventDefault={onMouseDown:function(e){return e.preventDefault()},onPointerDown:function(e){return e.preventDefault()}},t.userSelectNone={userSelect:"none"},t.formatString=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t,n){e=e.replace("{"+n+"}",String(t))})),e}},3381:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.ViewHtmlVue2=t.ViewHtml=void 0;var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(1895)),a=s.h,l=s.version&&"3"===s.version[0],d=n(1536),c=n(6607),u=n(5725),p=n(623),h={name:"KendoViewHtml",props:i({view:Object,settings:{type:Object,default:function(){return{messages:{}}}}},d.Button.props),inject:{kendoLocalizationService:{default:null}},data:function(){return{openedDialog:!1}},setup:l?function(){return{v3:!!l}}:void 0,render:function(e){var t=a||e,n=this.$props,o=n.view,r=n.settings,s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(n,["view","settings"]),l=(0,u.provideLocalizationService)(this),h=r.messages.viewHtml,f=i(i(i({},s),{key:"viewHtml",title:l.toLanguageString(h,p.messages[h])}),r.props),v=[t(d.Button,i({onClick:this.toggleDialog,onMousedown:this.preventDefault,onPointerdown:this.preventDefault,on:this.v3?void 0:{click:this.toggleDialog,mousedown:this.preventDefault,pointerdown:this.preventDefault},attrs:this.v3?void 0:f},f)),this.openedDialog&&o&&t(c.ViewHtmlDialog,{key:"viewHtmlDialog",view:o,attrs:this.v3?void 0:{view:o,settings:r,dir:f.dir},settings:r,dir:f.dir,onClose:this.toggleDialog,on:this.v3?void 0:{close:this.toggleDialog}})||null];return t("span",[v])},methods:{toggleDialog:function(){this.openedDialog=!this.openedDialog},preventDefault:function(e){e.preventDefault()}}};t.ViewHtmlVue2=h;var f=h;t.ViewHtml=f},4056:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.firefox=void 0,t.firefox="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent)},709:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateEditorValue=void 0;var i=n(9157),o=n(6001),r=function(e,t){var n=t.tr||e.state.tr.setSelection(new i.AllSelection(e.state.doc)).replaceSelectionWith(t.doc||o.EditorUtils.createDocument(e.state.schema,t.html||"")).setMeta("commandName","setHTML");e.updateState(e.state.apply(n))};t.updateEditorValue=function(e,t,n,i,o){"string"==typeof t?i&&t===o?r(e,{tr:i}):t!==n&&r(e,{html:t}):i&&t.eq(i.doc)?r(e,{tr:i}):e.state.doc.eq(t)||r(e,{doc:t})}},6001:(e,t,n)=>{var i=function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},o=Object.create?function(e,t,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,o)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]},r=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};Object.defineProperty(t,"__esModule",{value:!0}),t.EditorUtils=void 0;var s,a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t}(n(8826)),l=n(1394),d=n(9157),c=n(7578);(s=t.EditorUtils||(t.EditorUtils={})).alignBlocks=function(e,t,n){return Boolean((0,d.alignBlocks)(t,n)(e.state,e.dispatch))},s.applyInlineStyle=function(e,t,n){return(0,d.applyInlineStyle)(t,n)(e.state,e.dispatch)},s.applyLink=function(e,t,n){return(0,d.applyLink)(t,n)(e.state,e.dispatch)},s.canIndentList=function(e,t){return(0,d.canIndentAsListItem)(e,t)},s.canInsert=function(e,t){return(0,d.canInsert)(e,t)},s.canOutdentList=function(e,t){return(0,d.canOutdentAsListItem)(e,{listsTypes:t,nodes:[]})},s.convertMsLists=function(e){return(0,d.convertMsLists)(e)},s.createDocument=function(e,t,n){return(0,d.parseContent)((0,d.trimWhitespace)(t),e,void 0!==n?n:{preserveWhitespace:"full"})},s.createTable=function(e,t,n){return(0,d.createTable)(e,t,n)},s.formatBlockElements=function(e,t,n){return(0,d.formatBlockElements)(t,n)(e.state,e.dispatch)},s.getBlockFormats=function(e){return(0,d.getBlockFormats)(e)},s.getHtml=function(e){return(0,d.getHtml)(e)},s.getInlineStyles=function(e,t){return(0,d.getInlineStyles)(e,t)},s.getMark=function(e,t){return(0,d.getMark)(e,t)},s.hasMark=function(e,t){return(0,d.hasMark)(e,t)},s.hasNode=function(e,t){return(0,d.hasNode)(e,t)},s.indentBlocks=function(e,t,n,i){return Boolean((0,d.indentBlocks)(t,n,i)(e.state,e.dispatch))},s.indentHtml=function(e){return(0,d.indentHtml)(e)},s.insertNode=function(e,t,n){(0,d.insertNode)(t,n)(e.state,e.dispatch)},s.isAligned=function(e,t){return(0,d.isAligned)(e,t)},s.isIndented=function(e,t,n){return(0,d.isIndented)(e,t,n)},s.removeComments=function(e){return(0,d.removeComments)(e)},s.removeTag=function(e,t){return(0,d.removeTag)(e,t)},s.pasteCleanup=function(e,t){return(0,d.pasteCleanup)(e,t)},s.sanitizeClassAttr=function(e){(0,d.sanitizeClassAttr)(e)},s.sanitizeStyleAttr=function(e){(0,d.sanitizeStyleAttr)(e)},s.removeAttribute=function(e){(0,d.removeAttribute)(e)},s.sanitize=function(e){return(0,d.sanitize)(e)},s.replaceImageSourcesFromRtf=function(e,t){return(0,d.replaceImageSourcesFromRtf)(e,t)},s.textHighlight=function(e){return(0,d.textHighlight)(e)},s.imageResizing=function(e){return(0,d.imageResizing)(e)},s.setHtml=function(e,t,n,i){var o=(0,d.trimWhitespace)(t);(0,d.setHtml)(o,n,i)(e.state,e.dispatch)},s.toggleInlineFormat=function(e,t,n,i){return(0,d.toggleInlineFormat)(t,n,i)(e.state,e.dispatch)},s.toggleList=function(e,t,n){return(0,d.toggleList)(e.state,e.dispatch,e,t,n)},s.getShortcuts=function(e){return a.getShortcuts(e)},s.propsKey=c.editorPropsKey,s.imageResizeKey=d.imageResizeKey,s.marks=i({},l.marks),s.nodes=i({},l.nodes)},7578:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.editorPropsKey=void 0;var i=n(9157);t.editorPropsKey=new i.PluginKey("editor-props")},4498:(e,t,n)=>{n.d(t,{pT:()=>x,Ue:()=>L,Mi:()=>T,jt:()=>A,RE:()=>F});var i=n(1895);const o={"animation-container":"k-animation-container","animation-container-relative":"k-animation-container-relative","animation-container-fixed":"k-animation-container-fixed","push-right-enter":"k-push-right-enter","push-right-appear":"k-push-right-appear","push-right-enter-active":"k-push-right-enter-active","push-right-appear-active":"k-push-right-appear-active","push-right-exit":"k-push-right-exit","push-right-exit-active":"k-push-right-exit-active","push-left-enter":"k-push-left-enter","push-left-appear":"k-push-left-appear","push-left-enter-active":"k-push-left-enter-active","push-left-appear-active":"k-push-left-appear-active","push-left-exit":"k-push-left-exit","push-left-exit-active":"k-push-left-exit-active","push-down-enter":"k-push-down-enter","push-down-appear":"k-push-down-appear","push-down-enter-active":"k-push-down-enter-active","push-down-appear-active":"k-push-down-appear-active","push-down-exit":"k-push-down-exit","push-down-exit-active":"k-push-down-exit-active","push-up-enter":"k-push-up-enter","push-up-appear":"k-push-up-appear","push-up-enter-active":"k-push-up-enter-active","push-up-appear-active":"k-push-up-appear-active","push-up-exit":"k-push-up-exit","push-up-exit-active":"k-push-up-exit-active",expand:"k-expand","expand-vertical-enter":"k-expand-vertical-enter","expand-vertical-appear":"k-expand-vertical-appear","expand-vertical-enter-active":"k-expand-vertical-enter-active","expand-vertical-appear-active":"k-expand-vertical-appear-active","expand-vertical-exit":"k-expand-vertical-exit","expand-vertical-exit-active":"k-expand-vertical-exit-active","expand-horizontal-enter":"k-expand-horizontal-enter","expand-horizontal-appear":"k-expand-horizontal-appear","expand-horizontal-enter-active":"k-expand-horizontal-enter-active","expand-horizontal-appear-active":"k-expand-horizontal-appear-active","expand-horizontal-exit":"k-expand-horizontal-exit","expand-horizontal-exit-active":"k-expand-horizontal-exit-active","child-animation-container":"k-child-animation-container","fade-enter":"k-fade-enter","fade-appear":"k-fade-appear","fade-enter-active":"k-fade-enter-active","fade-appear-active":"k-fade-appear-active","fade-exit":"k-fade-exit","fade-exit-active":"k-fade-exit-active","zoom-in-enter":"k-zoom-in-enter","zoom-in-appear":"k-zoom-in-appear","zoom-in-enter-active":"k-zoom-in-enter-active","zoom-in-appear-active":"k-zoom-in-appear-active","zoom-in-exit":"k-zoom-in-exit","zoom-in-exit-active":"k-zoom-in-exit-active","zoom-out-enter":"k-zoom-out-enter","zoom-out-appear":"k-zoom-out-appear","zoom-out-enter-active":"k-zoom-out-enter-active","zoom-out-appear-active":"k-zoom-out-appear-active","zoom-out-exit":"k-zoom-out-exit","zoom-out-exit-active":"k-zoom-out-exit-active","slide-in-appear":"k-slide-in-appear",centered:"k-centered","slide-in-appear-active":"k-slide-in-appear-active","slide-down-enter":"k-slide-down-enter","slide-down-appear":"k-slide-down-appear","slide-down-enter-active":"k-slide-down-enter-active","slide-down-appear-active":"k-slide-down-appear-active","slide-down-exit":"k-slide-down-exit","slide-down-exit-active":"k-slide-down-exit-active","slide-up-enter":"k-slide-up-enter","slide-up-appear":"k-slide-up-appear","slide-up-enter-active":"k-slide-up-enter-active","slide-up-appear-active":"k-slide-up-appear-active","slide-up-exit":"k-slide-up-exit","slide-up-exit-active":"k-slide-up-exit-active","slide-right-enter":"k-slide-right-enter","slide-right-appear":"k-slide-right-appear","slide-right-enter-active":"k-slide-right-enter-active","slide-right-appear-active":"k-slide-right-appear-active","slide-right-exit":"k-slide-right-exit","slide-right-exit-active":"k-slide-right-exit-active","slide-left-enter":"k-slide-left-enter","slide-left-appear":"k-slide-left-appear","slide-left-enter-active":"k-slide-left-enter-active","slide-left-appear-active":"k-slide-left-appear-active","slide-left-exit":"k-slide-left-exit","slide-left-exit-active":"k-slide-left-exit-active","reveal-vertical-enter":"k-reveal-vertical-enter","reveal-vertical-appear":"k-reveal-vertical-appear","reveal-vertical-enter-active":"k-reveal-vertical-enter-active","reveal-vertical-appear-active":"k-reveal-vertical-appear-active","reveal-vertical-exit":"k-reveal-vertical-exit","reveal-vertical-exit-active":"k-reveal-vertical-exit-active","reveal-horizontal-enter":"k-reveal-horizontal-enter","reveal-horizontal-appear":"k-reveal-horizontal-appear","reveal-horizontal-enter-active":"k-reveal-horizontal-enter-active","reveal-horizontal-appear-active":"k-reveal-horizontal-appear-active","reveal-horizontal-exit":"k-reveal-horizontal-exit","reveal-horizontal-exit-active":"k-reveal-horizontal-exit-active"};var r=n(7984),s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},s.apply(this,arguments)},a=i,l=a.h,d=a.version&&"3"===a.version[0],c=a.ref,u=a.Transition,p=o,h={props:{in:Boolean,transitionName:{type:String,required:!0},transitionStyle:Object,componentChildClassName:[Array],className:String,appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:Number,transitionExitDuration:Number,mountOnEnter:Boolean,unmountOnExit:Boolean,animationEnteringStyle:Object,animationEnteredStyle:Object,animationExitingStyle:Object,animationExitedStyle:Object},created:function(){this.animationStep=""},setup:d?function(){return{v3:!!d,elementRef:c(null)}}:void 0,mounted:function(){this._element=this.v3?this.elementRef||null:this.$refs.element||null},computed:{element:{get:function(){return this._element}}},methods:{onBeforeEnter:function(e){this.$emit("beforeenter",{animatedElement:e,target:this})},onEnter:function(e){this.animationStep="entering",this.$emit("entering",{animatedElement:e,target:this})},onAfterEnter:function(e){this.animationStep="entered",this.$emit("entered",{animatedElement:e,target:this})},onBeforeLeave:function(e){this.$emit("exit",{animatedElement:e,target:this})},onLeave:function(e){this.animationStep="exiting",this.$emit("exiting",{animatedElement:e,target:this})},onAfterLeave:function(e){this.animationStep="exited",this.$emit("exited",{animatedElement:e,target:this})}},render:function(e){var t=this,n=l||e,i=this.$props,o=i.appear,a=i.enter,d=i.exit,c=i.transitionName,h=i.transitionEnterDuration,f=i.transitionExitDuration,v=(i.className,i.componentChildClassName),m=(i.mountOnEnter,i.unmountOnExit,i.animationEnteringStyle),g=i.animationEnteredStyle,y=i.animationExitingStyle,b=i.animationExitedStyle,k=(function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}}(i,["appear","enter","exit","transitionName","transitionEnterDuration","transitionExitDuration","className","componentChildClassName","mountOnEnter","unmountOnExit","animationEnteringStyle","animationEnteredStyle","animationExitingStyle","animationExitedStyle"]),(0,r.getDefaultSlots)(this)),w=this.v3?o:!!k,S=this.v3?u:"transition",x=[v,p["child-animation-container"]],C=a?h:0,$=d?f:0,I=[s({transitionDelay:"0ms",transitionDuration:"".concat(w?C:$,"ms")},this.$props.transitionStyle),{entering:s({transitionDuration:"".concat(C,"ms")},m),entered:s({},g),exiting:s({transitionDuration:"".concat($,"ms")},y),exited:s({},b)}[this.animationStep]],O={enter:C,leave:$},D=[w?n("div",{style:I,class:x,ref:this.v3?function(e){t.elementRef=e}:"element"},[k]):null];return n(S,{duration:O,attrs:this.v3?null:{duration:O,name:c,appear:o,appearClass:p["".concat(c,"-appear")]||"".concat(c,"-appear"),appearToClass:p["".concat(c,"-appear-active")]||"".concat(c,"-appear-active"),enterClass:p["".concat(c,"-enter")]||"".concat(c,"-enter"),enterToClass:p["".concat(c,"-enter-active")]||"".concat(c,"-enter-active"),leaveClass:p["".concat(c,"-exit")]||"".concat(c,"-exit"),leaveToClass:p["".concat(c,"-exit-active")]||"".concat(c,"-exit-active")},name:c,appear:o,appearFromClass:p["".concat(c,"-appear")]||"".concat(c,"-appear"),enterFromClass:p["".concat(c,"-enter")]||"".concat(c,"-enter"),leaveFromClass:p["".concat(c,"-exit")]||"".concat(c,"-exit"),appearToClass:p["".concat(c,"-appear-active")]||"".concat(c,"-appear-active"),enterToClass:p["".concat(c,"-enter-active")]||"".concat(c,"-enter-active"),leaveToClass:p["".concat(c,"-exit-active")]||"".concat(c,"-exit-active"),onBeforeEnter:this.onBeforeEnter,on:this.v3?null:{beforeEnter:this.onBeforeEnter,enter:this.onEnter,afterEnter:this.onAfterEnter,beforeLeave:this.onBeforeLeave,leave:this.onLeave,afterLeave:this.onAfterLeave},onEnter:this.onEnter,onAfterEnter:this.onAfterEnter,onBeforeLeave:this.onBeforeLeave,onLeave:this.onLeave,onAfterLeave:this.onAfterLeave},this.v3?function(){return D}:D)}},f={name:"@progress/kendo-vue-animation",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123555,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},v=i,m=v.h,g=v.version&&"3"===v.version[0],y=o,b={props:{childFactory:Object,className:String,tag:String,id:String,animationEnteringStyle:Object,animationExitingStyle:Object,componentChildClassName:[Array],transitionName:{type:String,required:!0},appear:{type:Boolean,default:!0},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number},transitionExitDuration:{type:Number}},methods:{onEntering:function(e){this.$emit("entering",e)},onEnter:function(e){this.$emit("enter",e)},onEntered:function(e){this.$emit("entered",e)},onExit:function(e){this.$emit("exit",e)},onExiting:function(e){this.$emit("exiting",e)},onExited:function(e){this.$emit("exited",e)}},setup:g?function(){return{v3:!!g}}:void 0,created:function(){(0,r.validatePackage)(f)},render:function(e){var t=m||e,n=(0,r.getDefaultSlots)(this),i=this.$props,o=(i.id,i.tag,i.role),s=i.className,a=(i.childFactory,i.stackChildren,i.componentChildStyle,i.componentChildClassName,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}}(i,["id","tag","role","className","childFactory","stackChildren","componentChildStyle","componentChildClassName"]),[y["animation-container"],y["animation-container-relative"],s]);return t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:o},class:a,role:o},[t(h,{key:"some",appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},enter:this.$props.enter,exit:this.$props.exit,transitionName:this.$props.transitionName,componentChildClassName:this.$props.componentChildClassName,onBeforeenter:this.onEnter,on:this.v3?void 0:{beforeenter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,animationEnteringStyle:this.$props.animationEnteringStyle,animationExitingStyle:this.$props.animationExitingStyle,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])])}},k=i,w=k.h,S=k.version&&"3"===k.version[0],x={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!1},transitionEnterDuration:{type:Number,default:500},transitionExitDuration:{type:Number,default:500},childFactory:Object,className:String,tag:String,id:String},setup:S?function(){return{v3:!!S}}:void 0,render:function(e){var t=w||e,n=(0,r.getDefaultSlots)(this);return t(b,{transitionName:"fade",attrs:this.v3?void 0:{transitionName:"fade",appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},C=i,$=(C.h,C.version&&C.version[0],Boolean,Boolean,Boolean,i),I=($.h,$.version&&$.version[0],Boolean,Boolean,Boolean,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}),O=i,D=O.h,M=O.version&&"3"===O.version[0],T={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},componentChildClassName:[Array],childFactory:Object,className:String,direction:{type:String,default:"down"},tag:String,id:String,role:String},methods:{onEntering:function(e){this.$emit("entering",e)},onEnter:function(e){this.$emit("enter",e)},onEntered:function(e){this.$emit("entered",e)},onExit:function(e){this.$emit("exit",e)},onExiting:function(e){this.$emit("exiting",e)},onExited:function(e){this.$emit("exited",e)}},setup:M?function(){return{v3:!!M}}:void 0,render:function(e){var t=D||e,n=(0,r.getDefaultSlots)(this),i=this.$props,o=(i.direction,i.id),s=(I(i,["direction","id"]),"slide-".concat(this.$props.direction));return t(b,{id:o,attrs:this.v3?void 0:{id:o,transitionName:s,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},transitionName:s,componentChildClassName:this.$props.componentChildClassName,appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,onEnter:this.onEnter,on:this.v3?void 0:{enter:this.onEnter,entering:this.onEntering,entered:this.onEntered,exit:this.onExit,exiting:this.onExiting,exited:this.onExited},onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration},this.v3?function(){return[n]}:[n])}},R=i,B=(R.h,R.version&&R.version[0],Boolean,Boolean,Boolean,Boolean,function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}),N=i,P=N.h,E=N.version&&"3"===N.version[0],V=function(){},L={props:{appear:{type:Boolean,default:!1},enter:{type:Boolean,default:!0},exit:{type:Boolean,default:!0},transitionEnterDuration:{type:Number,default:300},transitionExitDuration:{type:Number,default:300},childFactory:Object,className:String,direction:{type:String,default:"vertical"},tag:String,id:String},data:function(){return{maxHeight:"",maxWidth:""}},methods:{componentWillEnter:function(e){var t=this.$props.onEnter;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},componentIsEntering:function(e){var t=this.$props.onEntering;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},componentWillExit:function(e){var t=this.$props.onExit;this.updateContainerDimensions(e.animatedElement,(function(){t&&t.call(void 0,e)}))},updateContainerDimensions:function(e,t){void 0===t&&(t=V);var n=e?e.firstElementChild:null;if(n){var i=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop),i=parseFloat(t.marginBottom);return e.offsetHeight+n+i}(n),o=function(e){if(!e)return 0;var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginLeft),i=parseFloat(t.marginRight);return e.offsetWidth+n+i}(n);this.$data.maxHeight=i,this.$data.maxWidth=o,t()}}},computed:{animationEnteringStyle:{get:function(){var e;return{maxHeight:(e="vertical"===this.$props.direction?{maxHeight:this.maxHeight?"".concat(this.maxHeight,"px"):null}:{maxWidth:this.maxWidth?"".concat(this.maxWidth,"px"):null}).maxHeight,maxWidth:e.maxWidth}}}},setup:E?function(){return{v3:!!E}}:void 0,render:function(e){var t=P||e,n=(0,r.getDefaultSlots)(this),i=this.$props,o=(i.direction,i.childFactory,B(i,["direction","childFactory"]),"reveal-".concat(this.$props.direction));return t(b,{appear:this.$props.appear,attrs:this.v3?void 0:{appear:this.$props.appear,enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,animationEnteringStyle:this.animationEnteringStyle,transitionName:o},enter:this.$props.enter,exit:this.$props.exit,transitionEnterDuration:this.$props.transitionEnterDuration,transitionExitDuration:this.$props.transitionExitDuration,onEnter:this.componentWillEnter,on:this.v3?void 0:{enter:this.componentWillEnter,entering:this.componentIsEntering,exit:this.componentWillExit},onEntering:this.componentIsEntering,onExit:this.componentWillExit,animationEnteringStyle:this.animationEnteringStyle,transitionName:o},this.v3?function(){return[n]}:[n])}},A=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var i,o=e.duration,r=t&&1-t;return e.onStart&&e.onStart(),n=window.requestAnimationFrame((function s(a){i||(i=a);var l=(a-i+1)/o+r;l<=1?(e.onUpdate&&e.onUpdate(l),n=window.requestAnimationFrame(s),t=l):(e.onEnd&&e.onEnd(1),t=0)}))},F=function(e){e&&window.cancelAnimationFrame(e)}},1536:(e,t,n)=>{n.r(t),n.d(t,{Button:()=>v,ButtonGroup:()=>C,ButtonGroupVue2:()=>x,ButtonItem:()=>ce,ButtonVue2:()=>f,Chip:()=>N,ChipList:()=>z,ChipListVue2:()=>F,ChipVue2:()=>B,DropDownButton:()=>Oe,DropDownButtonVue2:()=>Ie,FloatingActionButton:()=>se,FloatingActionButtonItem:()=>U,FloatingActionButtonItemVue2:()=>W,FloatingActionButtonVue2:()=>re,SplitButton:()=>ke,SplitButtonVue2:()=>be,Toolbar:()=>Ne,ToolbarItem:()=>Ae,ToolbarItemVue2:()=>Le,ToolbarSeparator:()=>_e,ToolbarSeparatorVue2:()=>Ke,ToolbarSpacer:()=>Ge,ToolbarSpacerVue2:()=>qe,ToolbarVue2:()=>Be});var i=n(1895),o=n(7984),r={name:"@progress/kendo-vue-buttons",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123715,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},s=["button:not(.k-dropdownlist > .k-button):not(.k-colorpicker > .k-button)",".k-button-group > button",".k-dropdownlist",".k-colorpicker"];const a={button:"k-button",flat:"k-flat",outline:"k-outline",clear:"k-button-clear",primary:"k-primary","state-selected":"k-selected","button-icon":"k-button-icon","button-icontext":"k-button-icontext","state-disabled":"k-disabled","group-start":"k-group-start","group-end":"k-group-end","button-group":"k-button-group","button-group-stretched":"k-button-group-stretched",ltr:"k-ltr",rtl:"k-rtl"};var l,d,c=i,u=c.h,p=c.version&&"3"===c.version[0],h=a,f={name:"KendoButton",emits:{click:null,mousedown:null,mouseup:null,pointerdown:null,pointerup:null,focus:null,blur:null,keypress:null,keydown:null},props:{ariaLabel:String,dir:String,selected:{type:Boolean,default:void 0},togglable:{type:Boolean,default:!1},icon:{type:String,default:function(){}},iconClass:{type:String,default:function(){}},imageUrl:{type:String,default:function(){}},imageAlt:String,disabled:{type:Boolean,default:void 0},size:{type:String,default:"medium"},shape:{type:String,default:"rectangle",validator:function(e){return[null,"rectangle","square"].includes(e)}},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid"},themeColor:{type:String,default:"base"}},created:function(){(0,o.validatePackage)(r),this.currentActive=!0===this.$props.togglable&&!0===this.$props.selected,this._activeTemp=void 0},data:function(){return{currentActive:null}},computed:{computedSelected:function(){return void 0!==this._activeTemp?this._activeTemp:void 0!==this.$props.selected?this.$props.selected:this.currentActive},buttonClasses:function(){var e,t=this.$props,n=t.disabled,i=t.icon,r=t.iconClass,s=t.imageUrl,a=t.dir,l=t.size,d=t.shape,c=t.rounded,u=t.fillMode,p=t.themeColor,f=void 0!==i||void 0!==r||void 0!==s,v=(0,o.getDefaultSlots)(this);return(e={})[h.button]=!0,e["k-button-".concat(o.kendoThemeMaps.sizeMap[l]||l)]=l,e["k-button-".concat(d)]=d&&"rectangle"!==d,e["k-rounded-".concat(o.kendoThemeMaps.roundedMap[c]||c)]=c,e["k-icon-button"]=!v&&f,e["k-disabled"]=n,e["k-selected"]=this.computedSelected,e["k-rtl"]="rtl"===a,e["k-button-".concat(u)]=u,e["k-button-".concat(u,"-").concat(p)]=u&&p,e}},updated:function(){this.$props.togglable&&void 0!==this.$props.selected&&this.$props.selected!==this.currentActive&&(this.currentActive=this.$props.selected)},methods:{focus:function(e){this.$el.focus(e)},toggleIfApplicable:function(){if(!this.disabled&&this.$props.togglable&&void 0===this.$props.selected){var e=!this.currentActive;this._activeTemp=e,this.currentActive=e,this._activeTemp=void 0}},handleClick:function(e){this.toggleIfApplicable(),this.disabled||this.$emit("click",e)},handleMouseDown:function(e){this.disabled||this.$emit("mousedown",e)},handlePointerDown:function(e){this.disabled||this.$emit("pointerdown",e)},handleMouseUp:function(e){this.disabled||this.$emit("mouseup",e)},handlePointerUp:function(e){this.disabled||this.$emit("pointerup",e)},handleFocus:function(e){this.disabled||this.$emit("focus",e)},handleBlur:function(e){this.disabled||this.$emit("blur",e)},handleKeypress:function(e){this.disabled||this.$emit("keypress",e)},handleKeydown:function(e){this.disabled||this.$emit("keydown",e)}},setup:p?function(){return{v3:!!p}}:void 0,render:function(e){var t=u||e,n=this.$props,i=n.togglable,r=n.icon,s=n.iconClass,a=n.imageUrl,l=n.imageAlt,d=(0,o.getDefaultSlots)(this);return t("button",{class:this.buttonClasses,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.handleMouseDown,mouseup:this.handleMouseUp,pointerdown:this.handlePointerDown,pointerup:this.handlePointerUp,focus:this.handleFocus,blur:this.handleBlur,keypress:this.handleKeypress,keydown:this.handleKeydown},onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onPointerdown:this.handlePointerDown,onPointerup:this.handlePointerUp,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeypress:this.handleKeypress,onKeydown:this.handleKeydown,role:i?"checkbox":void 0,attrs:this.v3?void 0:{role:i?"checkbox":void 0,"aria-label":this.ariaLabel,"aria-disabled":this.$props.disabled||void 0,"aria-pressed":i&&!!this.currentActive||void 0},"aria-label":this.ariaLabel,"aria-disabled":this.$props.disabled||void 0,"aria-pressed":i&&!!this.currentActive||void 0},[function(){if(a)return t("img",{role:"presentation",attrs:this.v3?void 0:{role:"presentation",alt:l,src:a},class:"k-image",alt:l,src:a});if(r){var e=(0,o.classNames)("k-icon","k-button-icon","k-i-"+r);return t("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:e})}return s?t("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:s}):null}.call(this),d])}},v=f,m=i,g=(m.h,m.version&&"3"===m.version[0]),y={name:"KendoButtonWrap",props:{},setup:g?function(){return{v3:!!g}}:void 0,render:function(e){return(0,o.getDefaultSlots)(this)[0]}},b=i,k=b.h,w=b.version&&"3"===b.version[0],S=a,x={name:"KendoButtonGroup",props:{disabled:{type:Boolean,default:void 0},width:String,dir:{type:String,default:function(){}}},created:function(){(0,o.validatePackage)(r)},setup:w?function(){return{v3:!!w}}:void 0,render:function(e){var t,n=k||e,i=(0,o.getDefaultSlots)(this),r=function(e,t,i,r){var s,a=(0,o.classNames)(((s={})[S["state-disabled"]]=this.$props.disabled,s[S["group-start"]]=r?i:0===t,s[S["group-end"]]=r?0===t:i,s));return n(y,{class:a,attrs:this.v3?void 0:{"aria-disabled":this.$props.disabled},"aria-disabled":this.$props.disabled},this.v3?function(){return[e]}:[e])},s=(0,o.classNames)([S["button-group"]],((t={})["k-disabled"]=this.$props.disabled,t[S["button-group-stretched"]]=!!this.$props.width,t));return n("div",{style:{width:this.width},dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0},role:"group","aria-disabled":this.$props.disabled,"aria-multiselectable":!0,class:s},[function(e){var t=this,n=e.length,i=void 0!==this.$props.dir?"rtl"===this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1;return e.map((function(e,o){return t.isValidButton(e)?r.call(t,e,o,o===n-1,i):e}))}.call(this,i)])},methods:{isValidButton:function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("button")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("button")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("kendobutton")}}},C=x;!function(e){e.next="next",e.prev="prev",e.current="current",e.reset="reset"}(l||(l={})),function(e){e.remove="remove",e.add="add",e.reorder="reorder"}(d||(d={}));var $,I,O=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))};!function(e){e.single="single",e.multiple="multiple",e.none="none"}($||($={})),function(e){e.toggle="toggle",e.remove="remove"}(I||(I={}));var D=i,M=D.h,T=D.version&&"3"===D.version[0],R=D.ref,B={name:"KendoVueChip",props:{id:String,text:String,value:[String,Object],type:String,dir:{type:String,default:function(){return"ltr"}},removable:{type:Boolean,default:!1},removeIcon:{type:String,default:function(){return"k-i-close-circle"}},disabled:{type:Boolean,default:!1},icon:String,selectedIcon:{type:String,default:function(){return"k-i-check"}},look:{type:String,default:function(){return"solid"}},size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","error","info","success","warning"].includes(e)}},dataItem:Object,selected:Boolean,ariaDescribedBy:String},emits:{click:null,keydown:null,blur:null,focus:null,remove:null},inject:{kendoSelection:{default:{value:null}},kendoFocused:{default:{value:null}},kendoDataItems:{default:null},handleDispatchDataItems:{default:o.noop},handleDispatchSelection:{default:o.noop},handleDispatchFocus:{default:o.noop}},created:function(){this.currentDir=void 0,(0,o.validatePackage)(r)},mounted:function(){this.chip=(0,o.getRef)(this,"chip"),this.currentDir=void 0!==this.$props.dir?"rtl"===this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1},updated:function(){this.kendoFocused.value===this.$props.value&&this.$el&&this.$el.focus()},computed:{currentSelected:function(){var e=this;return this.$props.selected||(Array.isArray(this.kendoSelection.value)?this.kendoSelection.value.some((function(t){return t===e.$props.value})):this.kendoSelection.value===this.$props.value)}},methods:{computedFocused:function(){return this.kendoFocused.value===this.$props.value},handleClick:function(e){this.handleDispatchSelection&&this.handleDispatchSelection({type:I.toggle,payload:this.$props.value,event:e}),this.$emit("click",{target:this.target,event:e})},handleRemove:function(e){e.stopPropagation(),this.$props.removable&&(this.handleDispatchFocus&&(this.handleDispatchDataItems({type:d.remove,payload:this.$props.value,event:e}),this.handleDispatchFocus({type:l.reset,payload:this.$props.value,event:e}),this.handleDispatchSelection({type:I.remove,payload:this.$props.value,event:e})),this.$emit("remove",{target:this.target,event:e}))},handleKeyDown:function(e){switch(e.keyCode){case o.Keys.left:this.handleDispatchFocus&&this.handleDispatchFocus({type:l.prev,payload:this.$props.value,event:e});break;case o.Keys.right:this.handleDispatchFocus&&this.handleDispatchFocus({type:l.next,payload:this.$props.value,event:e});break;case o.Keys.enter:this.handleDispatchFocus&&this.handleDispatchSelection({type:I.toggle,payload:this.$props.value,event:e});break;case o.Keys.delete:this.handleRemove(e)}this.$emit("keydown",{target:this.target,event:e})},handleFocus:function(e){this.handleDispatchFocus&&this.handleDispatchFocus({payload:this.$props.value,type:l.current,event:e}),this.$emit("focus",{target:this.target,event:e})},handleBlur:function(e){this.$emit("blur",{target:this.target,event:e})}},setup:T?function(){return{v3:!!T,chipRef:R(null)}}:void 0,render:function(e){var t,n=M||e,i=this.$props,r=i.size,s=i.rounded,a=i.themeColor,l=i.fillMode,d=i.look,c=i.type;return n("div",{role:this.$props.role,attrs:this.v3?void 0:{role:this.$props.role,id:this.$props.value,dir:this.currentDir,tabindex:(0,o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),"aria-checked":this.currentSelected,"aria-disabled":this.$props.disabled,"aria-describedby":this.$props.ariaDescribedBy},id:this.$props.value,ref:(0,o.setRef)(this,"chip"),dir:this.currentDir,tabindex:(0,o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:(0,o.classNames)("k-chip",(t={"k-rtl":"rtl"===this.currentDir,"k-disabled":this.$props.disabled,"k-selected":this.currentSelected,"k-focus":this.computedFocused()},t["k-chip-".concat(o.kendoThemeMaps.sizeMap[r]||r)]=r,t["k-rounded-".concat(o.kendoThemeMaps.roundedMap[s]||s)]=s,t["k-chip-".concat(l)]=l,t["k-chip-".concat(l,"-").concat(a)]=Boolean(l&&a),t["k-chip-success"]="success"===c,t["k-chip-warning"]="warning"===c,t["k-chip-error"]="error"===c,t["k-chip-info"]="info"===c,t["k-chip-outline"]="outline"===d||"outlined"===d,t["k-chip-solid"]="solid"===d||"filled"===d,t)),"aria-checked":this.currentSelected,"aria-disabled":this.$props.disabled,"aria-describedby":this.$props.ariaDescribedBy,onFocus:this.handleFocus,on:this.v3?void 0:{focus:this.handleFocus,blur:this.handleBlur,click:this.handleClick,keydown:this.handleKeyDown},onBlur:this.handleBlur,onClick:this.handleClick,onKeydown:this.handleKeyDown},[this.currentSelected&&this.$props.selectedIcon&&n("span",{class:(0,o.classNames)("k-chip-icon","k-icon",this.$props.selectedIcon)}),this.$props.icon&&n("span",{class:(0,o.classNames)("k-chip-icon","k-icon",this.$props.icon)}),n("span",{class:"k-chip-content"},[this.$props.text&&n("span",{"aria-label":this.$props.text,attrs:this.v3?void 0:{"aria-label":this.$props.text},class:"k-chip-label"},[this.$props.text])]),this.$props.removable&&n("span",{class:"k-chip-actions"},[n("span",{class:"k-chip-action k-chip-remove-action"},[n("span",{class:(0,o.classNames)("k-chip-icon","k-icon",this.$props.removeIcon),onClick:this.handleRemove,on:this.v3?void 0:{click:this.handleRemove}})])])])}},N=B,P=function(){return P=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},P.apply(this,arguments)},E=i,V=E.h,L=E.version&&"3"===E.version[0],A=E.ref,F={name:"KendoVueChipList",props:{id:String,tabIndex:Number,dataItems:Array,defaultDataItems:{type:Array,default:function(){return[]}},value:[Object,Array,String,Number],defaultValue:{type:[Object,Array,String,Number],default:function(){return null}},size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","outline","solid"].includes(e)}},selection:{type:String,default:function(){return"none"}},textField:{type:String,default:function(){return"text"}},valueField:{type:String,default:function(){return"value"}},disabled:{type:Boolean,default:!1},dir:{type:String,default:function(){return"ltr"}},chip:[String,Function,Object],ariaLabelledBy:String,ariaDescribedBy:String},provide:function(){return{kendoSelection:this.currentValue,kendoFocused:this.currentFocused,kendoDataItems:this.computedDataItems,handleDispatchDataItems:this.handleDispatchDataItems,handleDispatchSelection:this.handleDispatchSelection,handleDispatchFocus:this.handleDispatchFocus}},created:function(){(0,o.validatePackage)(r),this.currentDataItems=this.$props.dataItems||this.$props.defaultDataItems,this.currentValue.value=this.$props.value||this.$props.defaultValue},data:function(){return{currentDataItems:[],currentDir:"ltr",isRtl:!1,currentFocused:{value:!1},currentValue:{value:null}}},mounted:function(){this.chipList=this.v3?this.chipListRef:this.$refs.chipList,this.currentDir=void 0!==this.$props.dir?this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1,this.isRtl="rtl"===this.currentDir},computed:{computedDataItems:function(){return this.$props.dataItems||this.currentDataItems},computedValue:function(){return this.$props.value||this.currentValue.value},items:function(){return this.computedDataItems.reduce(this.itemsReducer,[])}},methods:{handleDispatchSelection:function(e){var t=function(e,t){switch(t.selection){case $.single:switch(t.type){case I.toggle:if(!Array.isArray(e)||null===e)return t.payload===e?null:t.payload;throw new Error("State cannot be an array in single selection");case I.remove:return t.payload===e?null:e;default:return e}case $.multiple:switch(t.type){case I.toggle:if(Array.isArray(e))return e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):O(O([],e,!0),[t.payload],!1);if(null===e)return[t.payload];throw new Error("State cannot be non-array in multiple selection");case I.remove:return Array.isArray(e)?e.some((function(e){return e===t.payload}))?e.filter((function(e){return e!==t.payload})):O(O([],e,!0),[t.payload],!1):e;default:return e}case $.none:return null;default:return e}}(this.computedValue,P(P({},e),{selection:this.$props.selection,state:this.computedValue}));this.handleChange(t,e.event),this.currentValue.value=t},handleDispatchFocus:function(e){var t=function(e,t){var n=t.items.findIndex((function(t){return t===e}));switch(t.type){case l.next:return n===t.items.length-1?e:t.items[n+1];case l.prev:return 0===n?e:t.items[n-1];case l.current:return t.payload;case l.reset:return null;default:return e}}(e.payload,P(P({},e),{items:this.items}));this.currentFocused.value=t},handleDispatchDataItems:function(e){var t=function(e,t){switch(t.type){case d.add:break;case d.remove:return e.filter((function(e){return e[t.valueField]!==t.payload}));case d.reorder:break;default:return e}}(this.computedDataItems,P(P({},e),{state:this.computedDataItems,valueField:this.$props.valueField}));this.handleDataChange(t,e.event),this.currentDataItems=t},handleChange:function(e,t){this.$el&&this.$emit("change",{value:e,target:this.$el,event:t})},handleDataChange:function(e,t){this.$el&&this.$emit("datachange",{value:e,target:this.$el,event:t})},itemsReducer:function(e,t){return e.push(t[this.$props.valueField||this.$props.valueField]),e}},setup:L?function(){return{v3:!!L,chipListRef:A(null)}}:void 0,render:function(e){var t,n=V||e,i=this.$props.size;return n("div",{ref:(0,o.setRef)(this,"chipList"),role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:this.$props.id,dir:this.currentDir,tabindex:(0,o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},id:this.$props.id,dir:this.currentDir,style:this.$props.style,tabindex:(0,o.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),class:(0,o.classNames)("k-chip-list",(t={},t["k-chip-list-".concat(o.kendoThemeMaps.sizeMap[i]||i)]=i,t["k-rtl"]="rtl"===this.currentDir,t["k-selection-single"]="single"===this.$props.selection,t["k-selection-multiple"]="multiple"===this.$props.selection,t["k-disabled"]=this.$props.disabled,t)),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},[this.computedDataItems.map((function(e){var t=o.templateRendering.call(this,this.$props.chip,o.getListeners.call(this)),i=n(N,{role:"option",attrs:this.v3?void 0:{role:"option",dataItem:e,text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode},dataItem:e,key:e[this.$props.valueField],text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode});return o.getTemplate.call(this,{h:n,template:t,defaultRendering:i,additionalProps:{dataItem:e,key:e[this.$props.valueField],text:e[this.$props.textField],value:e[this.$props.valueField],size:this.$props.size}})}),this)])}},z=F,j=i,K=j.h,_=j.version&&"3"===j.version[0],H=j.ref,W={name:"KendoVueFloatingActionButtonItem",props:{disabled:Boolean,focused:Boolean,index:Number,icon:String,item:[String,Function,Object],dataItem:Object,text:String,tabIndex:Number,customProp:[String,Function,Object]},emits:{click:null,down:null},mounted:function(){this.element=(0,o.getRef)(this,"element")},computed:{itemClassNames:function(){return(0,o.classNames)("k-fab-item",{"k-focus":this.focused,"k-disabled":this.disabled})}},methods:{handleClick:function(e){void 0===this.$props.index||this.$props.disabled||this.$emit("click",e,this.$props.index)},focusElement:function(){this.$el&&this.$el.focus()},onDown:function(e){this.$emit("down",e)}},setup:_?function(){return{v3:!!_,elementRef:H(null)}}:void 0,render:function(e){var t=K||e,n=this.$props,i=n.disabled,r=n.id,s=n.tabIndex,a=n.dataItem,l=(n.customProp,a.text),d=a.icon,c=t("li",{ref:(0,o.setRef)(this,"element"),id:r,attrs:this.v3?void 0:{id:r,role:"menuitem",tabindex:(0,o.getTabIndex)(s,i),"aria-disabled":i,"aria-label":"".concat(l||""," floatingactionbutton item")},class:this.itemClassNames,role:"menuitem",tabindex:(0,o.getTabIndex)(s,i),"aria-disabled":i,"aria-label":"".concat(l||""," floatingactionbutton item"),onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.onDown,pointerdown:this.onDown},onMousedown:this.onDown,onPointerdown:this.onDown},[l&&t("span",{class:"k-fab-item-text"},[l]),d&&t("span",{class:(0,o.classNames)("k-fab-item-icon k-icon k-i-".concat(d))})]);return o.getTemplate.call(this,{h:t,template:this.$props.item,defaultRendering:c,additionalProps:this.$props,additionalListeners:{click:this.handleClick}})}},U=W,q="16px",G=function(e){return"number"==typeof e?e+"px":e},J=function(e,t){var n={horizontal:t?"right":"left",vertical:"bottom"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},X=function(e,t){var n={horizontal:t?"right":"left",vertical:"top"};return"end"===e.horizontal&&(n.horizontal=t?"left":"right"),n},Y=function(e,t,n,i){var o=t.horizontal,r=t.vertical;if(e){var s=n&&void 0!==n.x?G(n.x):q,a=n&&void 0!==n.x?"calc(50% + ".concat(G(n.x),")"):"50%",l=n&&void 0!==n.y?G(n.y):q,d=n&&void 0!==n.y?"calc(50% + ".concat(G(n.y),")"):"50%";e.style.setProperty(Z(t,i),"center"===o?a:s),e.style.setProperty(Q(t),"middle"===r?d:l),i&&("top"!==r&&"bottom"!==r||"start"!==o||e.style.setProperty("left","unset"),"middle"===r&&"end"===o&&e.style.setProperty("right","unset"),"middle"===r&&"start"===o&&e.style.setProperty("left","unset"))}},Z=function(e,t){return{end:t?"left":"right",center:"left",start:t?"right":"left"}[e.horizontal||"end"]},Q=function(e){return{top:"top",middle:"top",bottom:"bottom"}[e.vertical||"bottom"]},ee=n(3266),te=i,ne=te.h,ie=te.version&&"3"===te.version[0],oe=te.ref,re={name:"KendoVueFloatingActionButton",props:{id:String,dir:String,tabIndex:Number,accessKey:String,disabled:Boolean,icon:String,iconClass:String,items:[Object,Array],item:[String,Function,Object],text:String,alignOffset:Object,opened:{type:Boolean,default:void 0},align:{type:Object,default:function(){return{vertical:"bottom",horizontal:"end"}}},positionMode:{type:String,default:function(){return"fixed"}},popupSettings:{type:Object,default:function(){return{}}},shape:{type:String,default:function(){return"rectangle"}},rounded:{type:String,default:"full"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},size:{type:String,default:function(){return"medium"}},themeColor:{type:String,default:function(){return"primary"}}},emits:{click:null,mousedown:null,mouseup:null,open:null,close:null,itemclick:null,focus:null,blur:null,keydown:null},data:function(){return{currentOpened:!1,currentFocused:!1,focusedIndex:-1,currentDir:"ltr",isRtl:!1}},created:function(){(0,o.validatePackage)(r),this.element=void 0,this._anchor=(0,o.guid)(),this.listId=(0,o.guid)(),this.buttonId=(0,o.guid)()},mounted:function(){this.element=this.v3?this.kendoAnchorRef:this.$refs[this._anchor],this.list=(0,o.getRef)(this,"list"),this.popup=(0,o.getRef)(this,"popup"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1,this.isRtl="rtl"===this.currentDir,void 0!==this.opened&&Y(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl)},updated:function(){Y(this.$el,this.$props.align,this.$props.alignOffset,this.isRtl),this.currentFocused&&this.element&&this.element.focus()},computed:{buttonClassNames:function(){var e,t=this.$props,n=t.size,i=(t.icon,t.shape),r=t.themeColor,s=t.fillMode,a=t.rounded;return(e={"k-fab":!0})["k-fab-".concat(i||"rectangle")]=null!==i,e["k-fab-".concat(o.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-".concat(o.kendoThemeMaps.roundedMap[a]||a)]=a,e["k-fab-".concat(s)]=s,e["k-fab-".concat(s,"-").concat(r)]=s&&r,e["k-disabled"]=this.$props.disabled,e["k-focus"]=this.currentFocused,e["k-".concat(this.$props.align.vertical,"-").concat(this.$props.align.horizontal)]=!0,e},computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},rootClassNames:function(){return(0,o.classNames)({"k-pos-absolute":"absolute"===this.$props.positionMode,"k-pos-fixed":"fixed"===this.$props.positionMode})}},methods:{dispatchPopupEvent:function(e,t){this.$props.items&&this.$emit(t?"open":"close",{event:e,isOpened:!t})},handleClick:function(e){if(e.target&&!this.$props.disabled)if(this.$props.items){var t=!this.computedOpened;this.currentOpened=t,this.currentFocused=!0,this.focusedIndex=t?0:-1,this.dispatchPopupEvent(e,!this.computedOpened)}else this.$emit("click",e,void 0)},handleFocus:function(e){this.currentFocused=!0,this.focusedIndex=this.computedOpened?0:-1,this.$emit("focus",e,void 0)},handleBlur:function(e){this.currentFocused=!1,this.currentOpened=!1,this.focusedIndex=-1,this.$emit("blur",e,void 0),this.computedOpened&&this.dispatchPopupEvent(e,!1)},handleMouseDown:function(e){e.preventDefault(),this.$emit("mousedown",e)},handleMouseUp:function(e){this.$emit("mouseup",e)},dispatchItemClickEvent:function(e,t){this.$props.items&&(this.$props.items[t].disabled||this.$emit("itemclick",e,{itemProps:this.$props.items[t],itemIndex:t}))},handleItemClick:function(e,t){e.target&&this.$props.items&&(this.focusedIndex=t,this.currentOpened=!1,this.dispatchItemClickEvent(e,t),this.dispatchPopupEvent(e,!1))},handleItemDown:function(e){o.canUseDOM&&document.activeElement===this.element&&e.preventDefault()},handleKeyDown:function(e){var t=this.focusedIndex,n=this.$props.items?this.$props.items.length-1:-1,i="bottom"===this.$props.align.vertical;switch(e.keyCode){case o.Keys.enter:case o.Keys.space:t>=0&&this.dispatchItemClickEvent(e,t),e.preventDefault(),this.currentOpened=!this.currentOpened,this.focusedIndex=this.currentOpened?-1:0;break;case o.Keys.esc:e.preventDefault(),this.currentOpened=!1,this.focusedIndex=-1;break;case o.Keys.home:e.preventDefault(),this.focusedIndex=0;break;case o.Keys.end:e.preventDefault(),this.focusedIndex=n;break;case o.Keys.down:case o.Keys.right:e.preventDefault(),t<n&&!i&&(this.focusedIndex=t+1),t>0&&i&&(this.focusedIndex=t-1);break;case o.Keys.up:case o.Keys.left:e.preventDefault(),t>0&&!i&&(this.focusedIndex=t-1),t<n&&i&&(this.focusedIndex=t+1)}this.$emit("keydown",e,void 0)}},setup:ie?function(){return{v3:!!ie,chipRef:oe(null),kendoAnchorRef:oe(null)}}:void 0,render:function(e){var t=this,n=this,i=ne||e,r=this.$props,s=r.align,a=r.disabled,l=r.icon,d=r.iconClass,c=r.id,u=r.items,p=r.text,h=r.tabIndex,f=r.accessKey,v=r.popupSettings,m=o.templateRendering.call(this,this.$props.item,o.getListeners.call(this)),g=function(){return u&&u.map((function(e,t){return i(U,{key:t,index:t,attrs:this.v3?void 0:{index:t,id:"".concat(this.listId,"-").concat(t),disabled:a||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:m},id:"".concat(this.listId,"-").concat(t),disabled:a||e.disabled,focused:this.focusedIndex===t,dataItem:e,item:m,class:(0,o.classNames)(e.className,(n=this.currentDir||"ltr",r=s.horizontal,{rtl:{end:"k-text-left",start:"k-text-right"},ltr:{start:"k-text-left",end:"k-text-right"}}[n]["end"===r?"end":"start"])),onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick,down:this.handleItemDown},onDown:this.handleItemDown});var n,r}),this)},y=l&&!p,b=(this.element?this.element.offsetWidth:0)/2-16;return i("div",{class:this.rootClassNames},[i("button",{ref:this.v3?function(e){n.kendoAnchorRef=e}:this._anchor,id:c||this.buttonId,attrs:this.v3?void 0:{id:c||this.buttonId,role:u?"menubutton":"button",type:"button","aria-disabled":a,"aria-expanded":u?this.computedOpened:void 0,"aria-haspopup":!!u,"aria-label":"".concat(p||""," floatingactionbutton"),"aria-owns":u?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&u?"".concat(this.listId,"-").concat(this.focusedIndex):void 0,tabindex:(0,o.getTabIndex)(h,a),accesskey:f,dir:this.currentDir,disabled:a},role:u?"menubutton":"button",type:"button","aria-disabled":a,"aria-expanded":u?this.computedOpened:void 0,"aria-haspopup":!!u,"aria-label":"".concat(p||""," floatingactionbutton"),"aria-owns":u?this.listId:void 0,"aria-activedescendant":this.focusedIndex>=0&&u?"".concat(this.listId,"-").concat(this.focusedIndex):void 0,tabindex:(0,o.getTabIndex)(h,a),accesskey:f,dir:this.currentDir,disabled:a,class:this.buttonClassNames,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,mousedown:this.handleMouseDown,mouseup:this.handleMouseUp,focusin:this.handleFocus,blur:this.handleBlur,keydown:this.handleKeyDown},onMousedown:this.handleMouseDown,onMouseup:this.handleMouseUp,onFocusin:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown},[l?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:(0,o.classNames)("k-fab-icon k-icon k-i-".concat(l))}):d?i("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:d}):null,p&&i("span",{class:"k-fab-text"},[p])]),i(ee.Popup,{ref:(0,o.setRef)(this,"popup"),show:this.computedOpened,attrs:this.v3?void 0:{show:this.computedOpened,anchor:this._anchor,animate:v.animate,popupClass:(0,o.classNames)("k-popup-transparent k-fab-popup",v.popupClass),anchorAlign:v.anchorAlign||J(s,this.isRtl),popupAlign:v.popupAlign||X(s,this.isRtl)},anchor:this._anchor,animate:v.animate,popupClass:(0,o.classNames)("k-popup-transparent k-fab-popup",v.popupClass),anchorAlign:v.anchorAlign||J(s,this.isRtl),popupAlign:v.popupAlign||X(s,this.isRtl),style:{boxShadow:"none"}},this.v3?function(){return[i("ul",{ref:(0,o.setRef)(t,"list"),role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":c,id:t.listId},"aria-labelledby":c,id:t.listId,class:(0,o.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==s.vertical,"k-fab-items-top":"bottom"===s.vertical}),style:{paddingLeft:y?b+"px":void 0,paddingRight:y?b+"px":void 0}},[g.call(t)])]}:[i("ul",{ref:(0,o.setRef)(t,"list"),role:"menu",attrs:t.v3?void 0:{role:"menu","aria-labelledby":c,id:t.listId},"aria-labelledby":c,id:t.listId,class:(0,o.classNames)("k-fab-items",{"k-fab-items-bottom":"bottom"!==s.vertical,"k-fab-items-top":"bottom"===s.vertical}),style:{paddingLeft:y?b+"px":void 0,paddingRight:y?b+"px":void 0}},[g.call(t)])])])}},se=re,ae=i,le=ae.h,de=ae.version&&"3"===ae.version[0],ce={name:"KendoButtonItem",emits:{click:null,down:null},props:{focused:Boolean,index:Number,item:Object,render:[String,Object,Function],dataItem:[String,Object],id:String,textField:String},computed:{wrapperClass:function(){return{"k-item":!0,"k-focus":this.$props.focused}},innerClass:function(){var e=this.$props.dataItem;return{"k-link k-menu-link":!0,"k-selected":e.selected,"k-disabled":e.disabled}}},methods:{onClick:function(e){this.$emit("click",e,this.$props.index)},onDown:function(e){this.$emit("down",e,this.$props.index)}},setup:de?function(){return{v3:!!de}}:void 0,render:function(e){var t=le||e,n=this.$props,i=n.dataItem,r=n.id,s=n.render,a=t("li",{id:r,attrs:this.v3?void 0:{id:r,role:"menuitem","aria-disabled":i.disabled||void 0},class:this.wrapperClass,onClick:this.onClick,on:this.v3?void 0:{click:this.onClick,mousedown:this.onDown,pointerdown:this.onDown},onMousedown:this.onDown,onPointerdown:this.onDown,role:"menuitem","aria-disabled":i.disabled||void 0},[function(){var e=this.$props,n=e.textField,r=e.index,a=void 0!==i.text?i.text:n?i[n]:i,l=i.icon?"k-icon k-i-".concat(i.icon):i.iconClass,d=t("span",{tabindex:-1,attrs:this.v3?void 0:{tabindex:-1},class:this.innerClass,key:"icon"},[l&&t("span",{class:l,role:"presentation",attrs:this.v3?void 0:{role:"presentation"}}),i.imageUrl&&t("img",{class:"k-icon",alt:"",attrs:this.v3?void 0:{alt:"",src:i.imageUrl,role:"presentation"},src:i.imageUrl,role:"presentation",key:"image"}),a&&t("span",{class:"k-menu-link-text"},[a])]);return o.getTemplate.call(this,{h:t,template:this.$props.dataItem.render||s,defaultRendering:d,additionalProps:{item:i,itemIndex:r,innerClass:this.innerClass,focused:this.focused}})}.call(this)]);return a}};const ue=function(e,t,n,i){if(n)return e;switch(t){case o.Keys.enter:case o.Keys.space:case o.Keys.esc:return-1;case o.Keys.up:case o.Keys.left:return Math.max(0,e-1);case o.Keys.down:case o.Keys.right:return Math.min(i-1,e+1);default:return e}};function pe(e){var t={horizontal:"left",vertical:"bottom"};return e&&(t.horizontal="right"),t}function he(e){var t={horizontal:"left",vertical:"top"};return e&&(t.horizontal="right"),t}var fe=function(){return fe=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fe.apply(this,arguments)},ve=i,me=ve.h,ge=ve.version&&"3"===ve.version[0],ye=ve.ref,be={name:"KendoSplitButton",emits:{focus:null,blur:null,buttonclick:null,itemclick:null,open:null,close:null},props:{accessKey:String,text:String,items:{type:Array,default:function(){return[]}},textField:String,tabIndex:Number,disabled:Boolean,icon:String,size:{type:String,default:"medium"},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","dark","error","info","inverse","inverse","light","primary","secondary","success","tertiary","warning"].includes(e)}},opened:{type:Boolean,default:void 0},iconClass:String,imageUrl:String,popupSettings:Object,itemRender:[String,Function,Object],item:[String,Function,Object],look:String,className:String,buttonClass:String,dir:String},data:function(){return{focused:!1,focusedIndex:-1,currentOpened:!1}},created:function(){this._blurTimeout=null,this._anchor=(0,o.guid)(),this.mainButton=null,this.guid=(0,o.guid)(),this.buttonsData=[],(0,o.validatePackage)(r)},mounted:function(){this.mainButton=this.$refs[this._anchor],(void 0===this.$props.dir&&this.isRtl()||this.computedOpened)&&this.$forceUpdate()},updated:function(){this.focused&&this.element()&&(this.mainButton=this.$refs[this._anchor],this.mainButton.focus())},computed:{computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},wrapperClass:function(){return{"k-split-button":!0,"k-button-group":!0,"k-focus":this.focused}}},setup:ge?function(){return{v3:!!ge,kendoAnchorRef:ye(null)}}:void 0,render:function(e){var t=this,n=this,i=me||e;this.buttonsData=this.$props.items;var r=this.isRtl(),s=r?"rtl":void 0,a=this.$props,l=a.tabIndex,d=a.disabled,c=(0,o.getDefaultSlots)(this),u=function(){var e=this.$props,t=e.item,n=e.itemRender,r=e.textField;return this.buttonsData.length>0?this.buttonsData.map((function(e,s){var a="string"!=typeof e?fe(fe({},e),{render:o.templateRendering.call(this,e.render,o.getListeners.call(this))}):e;return i(ce,{class:"k-menu-item",dataItem:a,attrs:this.v3?void 0:{dataItem:a,textField:r,focused:this.focusedIndex===s,render:o.templateRendering.call(this,n,o.getListeners.call(this)),item:t,index:s,id:"".concat(this.guid,"-").concat(s)},textField:r,focused:this.focusedIndex===s,onClick:this.onItemClick,on:this.v3?void 0:{click:this.onItemClick,down:this.onItemDown},onDown:this.onItemDown,render:o.templateRendering.call(this,n,o.getListeners.call(this)),item:t,key:s,index:s,id:"".concat(this.guid,"-").concat(s)})}),this):null};return i("div",{class:this.wrapperClass,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown,focusin:this.onFocus,focusout:this.onBlur},onFocusin:this.onFocus,onFocusout:this.onBlur,dir:s,attrs:this.v3?void 0:{dir:s}},[i(v,{size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,disabled:d||void 0,tabIndex:l,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,dir:s,type:"button","aria-disabled":d,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," splitbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(this.focusedIndex):void 0},rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,onClick:function(e){return n.onItemClick(e,-1)},on:this.v3?void 0:{click:function(e){return n.onItemClick(e,-1)}},disabled:d||void 0,tabIndex:l,accessKey:this.$props.accessKey,class:this.$props.buttonClass,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,dir:s,ref:this._anchor,type:"button","aria-disabled":d,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," splitbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(this.focusedIndex):void 0},this.v3?function(){return[t.$props.text,c]}:[t.$props.text,c]),i(v,{class:"k-split-button-arrow",size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,icon:"arrow-s",disabled:d||void 0,tabIndex:-1,look:this.$props.look,dir:s,"aria-label":"menu toggling button"},rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,icon:"arrow-s",disabled:d||void 0,tabIndex:-1,look:this.$props.look,onClick:this.onSplitPartClick,on:this.v3?void 0:{click:this.onSplitPartClick,mousedown:this.onDownSplitPart,pointerdown:this.onDownSplitPart},onMousedown:this.onDownSplitPart,onPointerdown:this.onDownSplitPart,dir:s,"aria-label":"menu toggling button"}),function(){var e=this,t=this.$props,n=t.popupSettings,s=void 0===n?{}:n,a=t.size;return i(ee.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:s.animate,popupClass:(0,o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||pe(r),popupAlign:s.popupAlign||he(r)},show:this.computedOpened,animate:s.animate,popupClass:(0,o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||pe(r),popupAlign:s.popupAlign||he(r),style:r?{direction:"rtl"}:void 0},this.v3?function(){return[i("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[u.call(e)])]}:[i("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[u.call(e)])])}.call(this)])},methods:{element:function(){return this.mainButton},onKeyDown:function(e){if(e.altKey)this.computedOpened||e.keyCode!==o.Keys.down?this.computedOpened&&e.keyCode===o.Keys.up&&(this.dispatchPopupEvent(e,!1),this.focusedIndex=-1,this.currentOpened=!1):(this.dispatchPopupEvent(e,!0),this.focusedIndex=0,this.currentOpened=!0);else{var t=void 0;if(e.keyCode===o.Keys.enter||e.keyCode===o.Keys.space?(e.preventDefault(),this.dispatchClickEvent(e,this.focusedIndex),void 0!==this.focusedIndex&&this.focusedIndex>=0&&(t={focusedIndex:this.computedOpened?-1:0,currentOpened:!this.computedOpened},this.dispatchPopupEvent(e,t.currentOpened))):this.computedOpened&&e.keyCode===o.Keys.esc&&(t={focusedIndex:-1,currentOpened:!1},this.dispatchPopupEvent(e,t.currentOpened)),this.computedOpened){var n=ue(this.focusedIndex,e.keyCode,e.altKey,this.buttonsData.length);n!==this.focusedIndex&&((t=t||{}).focusedIndex=n);var i=e.keyCode===o.Keys.up||e.keyCode===o.Keys.down||e.keyCode===o.Keys.left||e.keyCode===o.Keys.right;!e.altKey&&i&&e.preventDefault()}t&&(this.focusedIndex=t.focusedIndex,this.focused=t.focused,void 0!==t.currentOpened&&(this.currentOpened=t.currentOpened))}},onFocus:function(e){this.focused||(this.$emit("focus",e,this,void 0),this.focused=!0),this.focusedIndex=-1,clearTimeout(this._blurTimeout)},onItemClick:function(e,t){var n=this.computedOpened;n&&(this.focusedIndex=0,this.currentOpened=!1),this.dispatchClickEvent(e,t),n&&this.dispatchPopupEvent(e,!1)},onBlur:function(e){clearTimeout(this._blurTimeout),this.createBlurTimeout(e)},createBlurTimeout:function(e){var t=this,n=this;this._blurTimeout=setTimeout((function(){o.canUseDOM&&document.activeElement!==n.mainButton&&(n.focused=!1,n.focusedIndex=-1,n.$emit("blur",e,t,void 0),n.computedOpened&&(n.currentOpened=!1,n.dispatchPopupEvent(e,!1)))}),200)},dispatchClickEvent:function(e,t){this.isItemDisabled(t)||(-1===t?this.$emit("buttonclick",e,this,void 0):this.$emit("itemclick",{event:e,component:this,item:this.buttonsData[t],itemIndex:t}))},onSplitPartClick:function(e){if(this.buttonsData.length){var t=!this.computedOpened;this.dispatchPopupEvent(e,t),this.focusedIndex=t?0:-1,this.currentOpened=t,this.focused=!0}},onDownSplitPart:function(e){e.preventDefault(),this.element()&&document.activeElement!==this.element()&&this.element().focus()},onItemDown:function(e){document.activeElement===this.element()&&e.preventDefault()},dispatchPopupEvent:function(e,t){this.$emit(t?"open":"close",e,this,void 0)},isItemDisabled:function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.$props.disabled},isRtl:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:!!this.$el&&"rtl"===getComputedStyle(this.$el).direction}}},ke=be,we=function(){return we=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},we.apply(this,arguments)},Se=i,xe=Se.h,Ce=Se.version&&"3"===Se.version[0],$e=Se.ref,Ie={name:"KendoDropDownButton",emits:{focus:null,blur:null,itemclick:null,open:null,close:null},props:{accessKey:String,primary:Boolean,items:{type:Array,default:function(){return[]}},text:String,textField:String,tabIndex:Number,disabled:Boolean,icon:String,iconClass:String,imageUrl:String,popupSettings:Object,itemRender:[String,Object,Function],item:Function,size:{type:String,default:"medium"},shape:{type:String,default:"rectangle",validator:function(e){return[null,"rectangle","square"].includes(e)}},rounded:{type:String,default:"medium"},fillMode:{type:String,default:"solid",validator:function(e){return[null,"flat","link","outline","solid"].includes(e)}},themeColor:{type:String,default:"base",validator:function(e){return[null,"base","dark","error","info","inverse","inverse","light","primary","secondary","success","tertiary","warning"].includes(e)}},opened:{type:Boolean,default:void 0},look:{type:String,validator:function(e){return["default","flat","outline"].includes(e)}},buttonClass:String,dir:String},created:function(){this._blurTimeout=null,this._anchor=(0,o.guid)(),this.wrapper=null,this.mainButton=null,this.guid=(0,o.guid)(),this.buttonsData=[],(0,o.validatePackage)(r)},mounted:function(){this.mainButton=this.$refs[this._anchor],(void 0===this.$props.dir&&this.isRtl()||this.computedOpened)&&this.$forceUpdate()},updated:function(){this.focused&&this.element()&&(this.mainButton=this.$refs[this._anchor],this.mainButton.focus())},data:function(){return{currentOpened:!1,focused:!1,focusedIndex:-1}},computed:{computedOpened:function(){return void 0===this.$props.opened?this.currentOpened:this.$props.opened},wrapperClass:function(){return{"k-dropdown-button":!0,"k-focus":this.focused}}},setup:Ce?function(){return{v3:!!Ce,kendoAnchorRef:$e(null)}}:void 0,render:function(e){var t=this,n=xe||e,i=this.isRtl(),r=i?"rtl":void 0,s=this.$props,a=s.tabIndex,l=s.disabled,d=(0,o.getDefaultSlots)(this);this.buttonsData=this.$props.items;var c=function(){var e=this.$props,t=e.item,i=e.itemRender,r=e.textField;return this.buttonsData.length>0?this.buttonsData.map((function(e,s){var a="string"!=typeof e?we(we({},e),{render:o.templateRendering.call(this,e.render,o.getListeners.call(this))}):e;return n(ce,{class:"k-menu-item",dataItem:a,attrs:this.v3?void 0:{dataItem:a,textField:r,focused:this.focusedIndex===s,render:o.templateRendering.call(this,i,o.getListeners.call(this)),item:t,index:s,id:"".concat(this.guid,"-").concat(s)},textField:r,focused:this.focusedIndex===s,onClick:this.onItemClick,on:this.v3?void 0:{click:this.onItemClick,down:this.onItemDown},onDown:this.onItemDown,render:o.templateRendering.call(this,i,o.getListeners.call(this)),item:t,index:s,key:s,id:"".concat(this.guid,"-").concat(s)})}),this):null};return n("div",{class:this.wrapperClass,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown,focusin:this.onFocus,focusout:this.onBlur},onFocusin:this.onFocus,onFocusout:this.onBlur,dir:r,attrs:this.v3?void 0:{dir:r}},[n(v,{size:this.$props.size,attrs:this.v3?void 0:{size:this.$props.size,shape:this.$props.shape,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,disabled:l||void 0,tabIndex:a,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,imageUrl:this.$props.imageUrl,look:this.$props.look,primary:this.$props.primary,dir:r,type:"button","aria-disabled":l,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," dropdownbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(this.focusedIndex):void 0},shape:this.$props.shape,rounded:this.$props.rounded,fillMode:this.$props.fillMode,themeColor:this.$props.themeColor,onClick:this.onClickMainButton,on:this.v3?void 0:{click:this.onClickMainButton,mousedown:this.mouseDown},onMousedown:this.mouseDown,disabled:l||void 0,tabIndex:a,accessKey:this.$props.accessKey,icon:this.$props.icon,iconClass:this.$props.iconClass,class:this.$props.buttonClass,imageUrl:this.$props.imageUrl,look:this.$props.look,primary:this.$props.primary,dir:r,ref:this._anchor,type:"button","aria-disabled":l,"aria-haspopup":!0,"aria-expanded":this.computedOpened,"aria-label":"".concat(this.$props.text," dropdownbutton"),"aria-owns":this.guid,"aria-activedescendant":void 0!==this.focusedIndex&&this.focusedIndex>=0?"".concat(this.guid,"-").concat(this.focusedIndex):void 0},this.v3?function(){return[t.$props.text,d]}:[t.$props.text,d]),function(){var e=this,t=this.$props,r=t.popupSettings,s=void 0===r?{}:r,a=t.size;return n(ee.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.computedOpened,animate:s.animate,popupClass:(0,o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||pe(i),popupAlign:s.popupAlign||he(i)},show:this.computedOpened,animate:s.animate,popupClass:(0,o.classNames)("k-menu-popup",s.popupClass),anchorAlign:s.anchorAlign||pe(i),popupAlign:s.popupAlign||he(i),style:i?{direction:"rtl"}:void 0},this.v3?function(){return[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[c.call(e)])]}:[n("ul",{class:"k-group k-menu-group k-reset k-menu-group-".concat(o.kendoThemeMaps.sizeMap[a]||a),role:"menu",attrs:e.v3?void 0:{role:"menu",id:e.guid},id:e.guid},[c.call(e)])])}.call(this)])},methods:{element:function(){return this.mainButton},onKeyDown:function(e){if(e.altKey)this.computedOpened||e.keyCode!==o.Keys.down?this.computedOpened&&e.keyCode===o.Keys.up&&(this.dispatchPopupEvent(e,!1),this.focusedIndex=-1,this.currentOpened=!1):(this.dispatchPopupEvent(e,!0),this.focusedIndex=0,this.currentOpened=!0);else if(e.keyCode===o.Keys.enter||e.keyCode===o.Keys.space?(void 0!==this.focusedIndex&&this.focusedIndex>=0&&this.dispatchClickEvent(e,this.focusedIndex),e.preventDefault(),this.focusedIndex=this.computedOpened?-1:0,this.currentOpened=!this.computedOpened,this.dispatchPopupEvent(e,this.currentOpened)):this.computedOpened&&e.keyCode===o.Keys.esc&&(this.focusedIndex=-1,this.currentOpened=!1,this.dispatchPopupEvent(e,this.currentOpened)),this.computedOpened){var t=ue(this.focusedIndex,e.keyCode,e.altKey,this.buttonsData.length);this.focusedIndex=t;var n=e.keyCode===o.Keys.up||e.keyCode===o.Keys.down||e.keyCode===o.Keys.left||e.keyCode===o.Keys.right;!e.altKey&&n&&e.preventDefault()}},onFocus:function(e){this.focused||(this.focused=!0,this.$emit("focus",e,this,void 0)),this.focusedIndex=this.computedOpened?0:-1,clearTimeout(this._blurTimeout)},onBlur:function(e){clearTimeout(this._blurTimeout),this.createBlurTimeout(e)},createBlurTimeout:function(e){var t=this;this._blurTimeout=setTimeout((function(){o.canUseDOM&&document.activeElement!==t.$el&&(t.focused=!1,t.focusedIndex=-1,t.$emit("blur",e,t,void 0),t.computedOpened&&(t.currentOpened=!1,t.dispatchPopupEvent(e,!1)))}),200)},onItemClick:function(e,t){this.focusedIndex=-1,this.currentOpened=!1,this.dispatchClickEvent(e,t),this.dispatchPopupEvent(e,!1)},onItemDown:function(e){document.activeElement===this.element()&&e.preventDefault()},mouseDown:function(e){e.preventDefault()},dispatchClickEvent:function(e,t){this.isItemDisabled(t)||this.$emit("itemclick",{event:e,item:this.buttonsData[t],itemIndex:t})},onClickMainButton:function(e){if(this.buttonsData.length){var t=!this.computedOpened;this.currentOpened=t,this.focused=!0,this.focusedIndex=t?0:-1,this.dispatchPopupEvent(e,t)}},dispatchPopupEvent:function(e,t){this.$emit(t?"open":"close",e,this,void 0)},isItemDisabled:function(e){return this.buttonsData[e]?this.buttonsData[e].disabled:this.$props.disabled},isRtl:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:!!this.$el&&"rtl"===getComputedStyle(this.$el).direction}}},Oe=Ie,De=function(){return De=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},De.apply(this,arguments)},Me=i,Te=Me.h,Re=Me.version&&"3"===Me.version[0],Be={name:"KendoToolbar",props:{tabIndex:{type:Number,default:0},dir:String,keyboardNavigation:{type:Boolean,default:!0},buttons:{type:Array,default:function(){}}},created:function(){this.offsetHeight=0,this.offsetWidth=0,this.currentButtons=[],this.focusedSelector=this.selectors.map((function(e){return e+":focus"})).join(","),(0,o.validatePackage)(r)},computed:{selectors:function(){return this.$props.buttons||s}},mounted:function(){window.addEventListener("resize",this.onWindowResize);var e=this.$el;e&&(this.offsetWidth=e.offsetWidth,this.offsetHeight=e.offsetHeight,!1!==this.$props.keyboardNavigation&&(this.currentButtons=this.getCurrentButtons(),this.setTabIndex(0)))},updated:function(){this.$el&&!1!==this.$props.keyboardNavigation&&(this.currentButtons=this.getCurrentButtons(),this.setTabIndex(this.focusedIndex()))},destroyed:Re?void 0:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},unmounted:function(){window.removeEventListener("resize",this.onWindowResize),this.currentButtons.length=0},setup:Re?function(){return{v3:!!Re}}:void 0,render:function(e){var t=Te||e,n=(0,o.getDefaultSlots)(this);return t("div",{class:"k-widget k-toolbar",role:"toolbar",attrs:this.v3?void 0:{role:"toolbar",dir:this.$props.dir},dir:this.$props.dir,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown}},[n])},methods:{getCurrentButtons:function(){return this.$el?Array.from(this.$el.querySelectorAll(this.selectors.join(","))):[]},getInternalButtons:function(){return this.$el?Array.from(this.$el.querySelectorAll(".k-dropdownlist > .k-button,.k-colorpicker > .k-button")):[]},focusedIndex:function(){var e=this.$el&&this.$el.querySelector(this.focusedSelector);return Math.max(0,this.currentButtons.findIndex((function(t){return t===e})))},setTabIndex:function(e){var t=this.$props.tabIndex;this.currentButtons.forEach((function(n,i){n.tabIndex=i===e?t:-1})),this.getInternalButtons().forEach((function(e){e.tabIndex=-1}))},onKeyDown:function(e){if(!1!==this.$props.keyboardNavigation){var t=e.target;if((e.keyCode===o.Keys.left||e.keyCode===o.Keys.right)&&!e.defaultPrevented&&-1!==this.currentButtons.findIndex((function(e){return e===t}))){var n=this.focusedIndex();e.keyCode===o.Keys.left?this.focusButton(n,n-1):this.focusButton(n,n+1)}}},focusButton:function(e,t){var n=this.$props.tabIndex,i=this.currentButtons[t];if(i){i.tabIndex=n,i.focus();var o=this.currentButtons[e];o&&(o.tabIndex=-1)}},onWindowResize:function(e){var t=this.$el;if(t){var n=t.offsetWidth,i=t.offsetHeight;if(this.offsetWidth!==n||this.offsetHeight!==i){this.offsetWidth=n,this.offsetHeight=i;var o={offsetWidth:this.offsetWidth,offsetHeight:this.offsetHeight};this.$emit("resize",De(De({target:this},o),{nativeEvent:e}))}}}}},Ne=Be,Pe=i,Ee=Pe.h,Ve=Pe.version&&"3"===Pe.version[0],Le={name:"KendoToolbarItem",methods:{element:function(){return this.$el}},setup:Ve?function(){return{v3:!!Ve}}:void 0,render:function(e){return(Ee||e)("span",[(0,o.getDefaultSlots)(this)])}},Ae=Le,Fe=i,ze=Fe.h,je=Fe.version&&"3"===Fe.version[0],Ke={name:"KendoToolbarItem",setup:je?function(){return{v3:!!je}}:void 0,render:function(e){return(ze||e)(Ae,{class:"k-separator"})}},_e=Ke,He=i,We=He.h,Ue=He.version&&"3"===He.version[0],qe={name:"KendoToolbarItem",setup:Ue?function(){return{v3:!!Ue}}:void 0,render:function(e){return(We||e)("span",{class:"k-spacer"})}},Ge=qe},8388:(e,t,n)=>{n.r(t),n.d(t,{Dialog:()=>m,DialogActionsBar:()=>w,DialogActionsBarVue2:()=>k,DialogVue2:()=>v,Window:()=>V,WindowVue2:()=>E});var i,o=n(1895),r=n(7984),s=n(1536),a=o,l=a.h,d=a.version&&"3"===a.version[0],c={props:{id:String,closeIcon:{type:Boolean,default:!0},title:String,titleRender:[String,Function,Object]},setup:d?function(){return{v3:!!d}}:void 0,methods:{onCloseButtonClick:function(e){this.$emit("closebuttonclick",e)}},render:function(e){var t,n=l||e,i=this.$props,o=i.id,a=i.closeIcon,d=i.titleRender,c=i.title;return t=r.getTemplate.call(this,{h:n,template:d,defaultRendering:c}),n("div",{class:"k-window-titlebar k-dialog-titlebar k-header",id:o,attrs:this.v3?void 0:{id:o}},[n("div",{class:"k-window-title k-dialog-title"},[t]),n("div",{class:"k-window-actions k-dialog-actions"},[a&&n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",fillMode:"flat","aria-label":"Close",icon:"x"},fillMode:"flat","aria-label":"Close",icon:"x",onClick:this.onCloseButtonClick,on:this.v3?void 0:{click:this.onCloseButtonClick}})])])}},u={name:"@progress/kendo-vue-dialogs",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123752,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},p=o,h=p.h,f=p.version&&"3"===p.version[0],v={name:"KendoDialog",props:{appendTo:String,title:String,titleRender:r.templateDefinition,id:String,wrapperId:String,dir:String,closeIcon:{type:Boolean,default:!0},width:[String,Number],height:[String,Number],minWidth:[String,Number]},provide:function(){return{kCurrentZIndex:10002}},created:function(){(0,r.validatePackage)(u),this.titleId=this.generateTitleId()},setup:f?function(){return{v3:!!f}}:void 0,mounted:function(){if(this.$props.appendTo){var e=document.querySelector(this.$props.appendTo);this.windowElement=this.$refs.wrapper,e.append(this.windowElement)}},beforeDestroy:f?void 0:function(){this.$props.appendTo&&this.windowElement.remove()},beforeUnmount:function(){this.$props.appendTo&&this.windowElement.remove()},methods:{handleCloseDialog:function(e){e.preventDefault(),this.$emit("close",{event:e,target:this})},handleKeyDown:function(e){e.keyCode===r.Keys.esc&&r.hasListener.call(this,"close")&&(e.preventDefault(),this.handleCloseDialog(e))},transformDimesion:function(e){return"string"==typeof e&&(e.endsWith("px")||e.endsWith("%"))?e:e+"px"},getActionBarIndex:function(e){return e.findIndex((function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("dialogactionsbar")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("actions-bar")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("dialogactionsbar")}))},generateTitleId:function(){return"dialog-title"+(0,r.guid)()}},render:function(e){var t=h||e,n=void 0!==this.$props.id?this.$props.id:this.titleId,i=this.$props,o=i.title,s=i.width,a=i.height,l=i.minWidth,d=i.dir,u=i.contentStyle,p=i.wrapperId,f=this.$props.titleRender?r.templateRendering.call(this,this.$props.titleRender,r.getListeners.call(this)):null,v=(0,r.getDefaultSlots)(this)||[];s=this.transformDimesion(s),a=this.transformDimesion(a),l=this.transformDimesion(l);var m,g=this.getActionBarIndex(v);-1!==g&&(m=v[g],v.splice(g,1));var y=void 0===this.$props.closeIcon||this.$props.closeIcon,b=t("div",{ref:"wrapper",class:"k-dialog-wrapper",onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown},tabindex:0,attrs:this.v3?void 0:{tabindex:0,id:p,dir:d},id:p,dir:d},[t("div",{class:"k-overlay"}),t("div",{"aria-labelledby":o||f?n:void 0,attrs:this.v3?void 0:{"aria-labelledby":o||f?n:void 0,role:"dialog"},class:"k-widget k-window k-dialog",role:"dialog",style:{width:s,height:a,minWidth:l}},[(o||f)&&t(c,{closeIcon:y,attrs:this.v3?void 0:{closeIcon:y,id:n,title:o,titleRender:f},onClosebuttonclick:this.handleCloseDialog,on:this.v3?void 0:{closebuttonclick:this.handleCloseDialog},id:n,title:o,titleRender:f}),t("div",{class:"k-content k-window-content k-dialog-content",style:u},[v]),m])]);return this.$props.appendTo?t("div",[b]):b}},m=v,g=o,y=g.h,b=g.version&&"3"===g.version[0],k={name:"DialogActionsBar",props:{layout:{type:String,default:"stretched"},buttonGroupClass:{type:Boolean,default:!0}},setup:b?function(){return{v3:!!b}}:void 0,computed:{wrapperClasses:function(){var e=this.$props.layout;return{"k-dialog-buttongroup":this.buttonGroupClass,"k-actions":!0,"k-hstack":!0,"k-justify-content-start":"start"===e,"k-justify-content-center":"center"===e,"k-justify-content-end":"end"===e,"k-justify-content-stretch":"stretched"===e}}},render:function(e){var t=y||e,n=(0,r.getDefaultSlots)(this);return t("div",{class:this.wrapperClasses},[n])}},w=k;!function(e){e.DEFAULT="DEFAULT",e.FULLSCREEN="FULLSCREEN",e.MINIMIZED="MINIMIZED"}(i||(i={}));var S=o,x=S.h,C=S.version&&"3"===S.version[0],$={props:{id:String,stage:String,closeButton:[String,Function,Object,Boolean],minimizeButton:[String,Function,Object,Boolean],maximizeButton:[String,Function,Object,Boolean],restoreButton:[String,Function,Object,Boolean],title:String,titleRender:[String,Function,Object,Boolean]},setup:C?function(){return{v3:!!C}}:void 0,methods:{onDoubleClick:function(e){this.$emit("doubleclick",e)},onMinimizeClick:function(e){this.$emit("minimizeclick",e)},onFullScreenClick:function(e){this.$emit("fullscreenclick",e)},onRestoreClick:function(e){this.$emit("restoreclick",e)},onCloseClick:function(e){this.$emit("closeclick",e)}},render:function(e){var t=x||e,n=this.$props,o=n.stage,a=n.title,l=n.titleRender,d=n.minimizeButton,c=n.maximizeButton,u=n.restoreButton,p=n.closeButton,h=r.getTemplate.call(this,{h:t,template:l,defaultRendering:a}),f=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-minimize",fillMode:"flat"},icon:"window-minimize",fillMode:"flat",onClick:this.onMinimizeClick,on:this.v3?void 0:{click:this.onMinimizeClick}}),v=r.getTemplate.call(this,{h:t,template:d,defaultRendering:f}),m=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-maximize",fillMode:"flat"},icon:"window-maximize",fillMode:"flat",onClick:this.onFullScreenClick,on:this.v3?void 0:{click:this.onFullScreenClick}}),g=r.getTemplate.call(this,{h:t,template:c,defaultRendering:m}),y=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"window-restore",fillMode:"flat"},icon:"window-restore",fillMode:"flat",onClick:this.onRestoreClick,on:this.v3?void 0:{click:this.onRestoreClick}}),b=r.getTemplate.call(this,{h:t,template:u,defaultRendering:y}),k=t(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",icon:"x",fillMode:"flat"},icon:"x",fillMode:"flat",onClick:this.onCloseClick,on:this.v3?void 0:{click:this.onCloseClick}}),w=r.getTemplate.call(this,{h:t,template:p,defaultRendering:k});return t("div",{class:"k-window-titlebar k-dialog-titlebar",style:{touchAction:"none"},onDblclick:this.onDoubleClick,on:this.v3?void 0:{dblclick:this.onDoubleClick}},[t("div",{class:"k-window-title"},[h]),t("div",{class:"k-window-actions"},[o===i.DEFAULT&&v,o===i.DEFAULT&&g,o!==i.DEFAULT&&b]),w])}},I=o,O=I.h,D=I.version&&"3"===I.version[0],M=["n","e","s","w","se","sw","ne","nw"],T={name:"ResizeHandlers",emits:{resize:null},setup:D?function(){return{v3:!!D}}:void 0,methods:{onDrag:function(e,t){e.originalEvent.preventDefault(),this.$emit("resize",e,{end:!1,direction:t})},onRelease:function(e,t){e.originalEvent.preventDefault(),this.$emit("resize",e,{end:!0,direction:t})}},render:function(e){var t=O||e;return t("div",[M.map((function(e,n){var i=this;return t(r.Draggable,{key:n,onDrag:function(t){return i.onDrag(t,e)},on:this.v3?void 0:{drag:function(t){return i.onDrag(t,e)},release:function(t){return i.onRelease(t,e)}},onRelease:function(t){return i.onRelease(t,e)}},this.v3?function(){return[t("div",{class:"k-resize-handle k-resize-"+e,style:{display:"block",touchAction:"none"}})]}:[t("div",{class:"k-resize-handle k-resize-"+e,style:{display:"block",touchAction:"none"}})])}),this)])}},R=function(){return R=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},R.apply(this,arguments)},B=o,N=B.h,P=B.version&&"3"===B.version[0],E={name:"KendoWindow",emits:{resize:null,move:null,close:null,stagechange:null},provide:function(){return{kCurrentZIndex:10002}},props:{id:String,appendTo:String,width:{type:[Number],default:void 0},height:{type:[Number],default:void 0},left:{type:[Number],default:void 0},windowStyle:Object,windowClass:String,top:{type:[Number],default:void 0},initialWidth:[Number],initialHeight:[Number],initialLeft:[Number],initialTop:[Number],minWidth:{type:[Number],default:120},minHeight:{type:[Number],default:100},resizable:{type:Boolean,default:!0},draggable:{type:Boolean,default:!0},modal:{type:Boolean,default:!1},doubleClickStageChange:{type:Boolean,default:!0},title:String,titleRender:r.templateDefinition,closeButton:r.templateDefinition,minimizeButton:r.templateDefinition,maximizeButton:r.templateDefinition,restoreButton:r.templateDefinition,shouldUpdateOnDrag:Boolean,stage:{type:String,validator:function(e){return-1!==["DEFAULT","MINIMIZED","FULLSCREEN"].indexOf(e)}}},setup:P?function(){return{v3:!!P}}:void 0,created:function(){(0,r.validatePackage)(u),this.windowCoordinatesState={leftBeforeAction:this.getInitialLeft(),topBeforeAction:this.getInitialTop(),widthBeforeAction:this.getInitialWidth(),heightBeforeAction:this.getInitialHeight()}},beforeDestroy:P?void 0:function(){this.$props.appendTo&&this.windowWrapper.remove()},beforeUnmount:function(){this.$props.appendTo&&this.windowWrapper.remove()},data:function(){return{currentStage:this.$props.stage||i.DEFAULT,isDragging:!1,currentTop:this.getInitialTop(),currentLeft:this.getInitialLeft(),currentWidth:this.getInitialWidth(),currentHeight:this.getInitialHeight()}},mounted:function(){if(window&&(window.addEventListener("resize",this.handleBrowserWindowResize),this.$props.appendTo)){var e=document.querySelector(this.$props.appendTo);this.windowWrapper=this.$refs.wrapper,e.append(this.windowWrapper)}this.$el&&(this.windowElement=this.$refs.windowElement)},destroyed:P?void 0:function(){window&&window.removeEventListener("resize",this.handleBrowserWindowResize)},unmounted:function(){window&&window.removeEventListener("resize",this.handleBrowserWindowResize)},computed:{computedTop:function(){return this.windowStage!==i.FULLSCREEN?Math.max(this.$props.top||this.currentTop,0):0},computedLeft:function(){return this.windowStage!==i.FULLSCREEN?Math.max(this.$props.left||this.currentLeft,0):0},computedWidth:function(){var e=this.$props.width||this.currentWidth;return this.windowStage===i.FULLSCREEN&&(e=window.innerWidth),e},computedHeight:function(){var e=this.$props.height||this.currentHeight;return this.windowStage===i.FULLSCREEN?e=window.innerHeight:this.windowStage===i.MINIMIZED&&(e=0),e},windowStage:function(){return this.$props.stage||this.currentStage}},methods:{onPress:function(e){var t=e;this.windowCoordinatesState.differenceLeft=t.pageX-this.computedLeft,this.windowCoordinatesState.differenceTop=t.pageY-this.computedTop},onDrag:function(e){var t=e;t.originalEvent.preventDefault(),this.windowStage!==i.FULLSCREEN&&this.$props.draggable&&(this.currentTop=Math.max(t.pageY-this.windowCoordinatesState.differenceTop,0),this.currentLeft=t.pageX-this.windowCoordinatesState.differenceLeft,this.isDragging=!0,this.dispatchMoveEvent("move",t,!0,!1))},onRelease:function(e){var t=e;this.windowStage!==i.FULLSCREEN&&this.$props.draggable&&this.dispatchMoveEvent("move",t,!0,!0),this.isDragging=!1},handleKeyDown:function(e){if(e.target===e.currentTarget){var t=this.$props.minWidth||120,n=this.$props.minHeight||100;if(e.ctrlKey&&this.$props.resizable){switch(e.keyCode){case r.Keys.up:e.preventDefault(),n<=this.computedHeight-5&&(this.currentHeight=this.currentHeight-5);break;case r.Keys.down:e.preventDefault(),this.currentHeight=this.currentHeight+5;break;case r.Keys.left:t<=this.computedWidth-5&&(this.currentWidth=this.currentWidth-5);break;case r.Keys.right:this.currentWidth=this.currentWidth+5;break;default:return}this.dispatchMoveEvent("resize",e,!1,void 0)}else if(e.altKey)switch(e.keyCode){case r.Keys.up:this.windowStage===i.MINIMIZED?(this.handleRestore(e),this.$emit("stagechange",e,this,{state:i.DEFAULT})):this.windowStage===i.DEFAULT&&(this.handleFullscreen(e),this.$emit("stagechange",e,this,{state:i.FULLSCREEN}));break;case r.Keys.down:this.windowStage===i.FULLSCREEN?(this.handleRestore(e),this.$emit("stagechange",e,this,{state:i.DEFAULT})):this.windowStage===i.DEFAULT&&(this.handleMinimize(e),this.$emit("stagechange",e,this,{state:i.MINIMIZED}))}else{if(!e.ctrlKey)switch(e.keyCode){case r.Keys.esc:return void this.handleCloseWindow(e);case r.Keys.up:e.preventDefault(),this.currentTop=this.currentTop-5;break;case r.Keys.down:e.preventDefault(),this.currentTop=this.currentTop+5;break;case r.Keys.left:e.preventDefault(),this.currentLeft=this.currentLeft-5;break;case r.Keys.right:e.preventDefault(),this.currentLeft=this.currentLeft+5;break;default:return}this.dispatchMoveEvent("move",e,!1,void 0)}}},getInitialTop:function(){if(void 0!==this.$props.top)return this.$props.top;if(void 0!==this.$props.initialTop)return this.$props.initialTop;var e=300;return void 0!==this.$props.height?e=this.$props.height:void 0!==this.$props.initialHeight&&(e=this.$props.initialHeight),window.innerHeight/2-e/2},getInitialLeft:function(){if(void 0!==this.$props.left)return this.$props.left;if(void 0!==this.$props.initialLeft)return this.$props.initialLeft;var e=300;return void 0!==this.$props.width?e=this.$props.width:void 0!==this.$props.initialWidth&&(e=this.$props.initialWidth),window.innerWidth/2-e/2},getInitialWidth:function(){var e=300;return void 0!==this.$props.width?e=this.$props.width:void 0!==this.$props.initialWidth&&(e=this.$props.initialWidth),e},getInitialHeight:function(){var e=300;return void 0!==this.$props.height?e=this.$props.height:void 0!==this.$props.initialHeight&&(e=this.$props.initialHeight),e},handleMinimize:function(e){e.preventDefault(),this.windowCoordinatesState.leftBeforeAction=this.computedLeft,this.windowCoordinatesState.topBeforeAction=this.computedTop,this.windowCoordinatesState.widthBeforeAction=this.computedWidth,this.windowCoordinatesState.heightBeforeAction=this.computedHeight,this.currentStage=i.MINIMIZED,this.currentHeight=0,this.$emit("stagechange",e,this,{state:i.MINIMIZED})},handleFullscreen:function(e){e.preventDefault(),this.windowCoordinatesState.leftBeforeAction=this.computedLeft,this.windowCoordinatesState.topBeforeAction=this.computedTop,this.windowCoordinatesState.widthBeforeAction=this.computedWidth,this.windowCoordinatesState.heightBeforeAction=this.computedHeight,this.currentLeft=0,this.currentTop=0,this.currentWidth=window.innerWidth,this.currentHeight=window.innerHeight,this.currentStage=i.FULLSCREEN,this.$emit("stagechange",e,this,{state:i.FULLSCREEN})},handleRestore:function(e){e.preventDefault(),this.windowStage===i.FULLSCREEN?(this.currentStage=i.DEFAULT,this.currentLeft=this.windowCoordinatesState.leftBeforeAction,this.currentTop=this.windowCoordinatesState.topBeforeAction,this.currentWidth=this.windowCoordinatesState.widthBeforeAction,this.currentHeight=this.windowCoordinatesState.heightBeforeAction):this.windowStage===i.MINIMIZED&&(this.currentStage=i.DEFAULT,this.currentHeight=this.windowCoordinatesState.heightBeforeAction),this.$emit("stagechange",e,this,{state:i.DEFAULT})},handleCloseWindow:function(e){e.preventDefault(),this.$emit("close",e,this,{state:void 0})},handleDoubleClick:function(e){this.$props.doubleClickStageChange&&(this.windowStage===i.FULLSCREEN||this.windowStage===i.MINIMIZED?this.handleRestore(e):this.handleFullscreen(e))},handleResize:function(e,t){var n=this.computedWidth,i=this.computedHeight,o=this.$props.minWidth||120,r=this.$props.minHeight||100,s=this.computedTop-e.pageY,a=this.computedLeft-e.pageX,l=e.pageX-this.computedLeft,d=e.pageY-this.computedTop;this.isDragging=!t.end,t.direction.indexOf("n")>=0&&r-(i+s)<0&&(this.currentTop=e.pageY,this.currentHeight=i+s),t.direction.indexOf("s")>=0&&r-d<0&&(this.currentHeight=d),t.direction.indexOf("w")>=0&&o-(n+a)<0&&(this.currentLeft=e.pageX,this.currentWidth=n+a),t.direction.indexOf("e")>=0&&o-l<0&&(this.currentWidth=l),this.dispatchMoveEvent("resize",e,!0,t.end)},dispatchMoveEvent:function(e,t,n,i){this.$emit(e,{event:t.event,drag:n,end:i,target:this,left:this.currentLeft,top:this.currentTop,width:this.currentWidth,height:this.currentHeight})},handleBrowserWindowResize:function(){this.windowStage===i.FULLSCREEN&&(this.currentWidth=window.innerWidth,this.currentHeight=window.innerHeight)}},render:function(e){var t=this,n=N||e,o=(0,r.classNames)("k-widget","k-window",this.$props.windowClass,{"k-window-minimized":"MINIMIZED"===this.currentStage}),s=r.templateRendering.call(this,this.$props.titleRender,r.getListeners.call(this)),a=r.templateRendering.call(this,this.$props.closeButton,r.getListeners.call(this)),l=r.templateRendering.call(this,this.$props.minimizeButton,r.getListeners.call(this)),d=r.templateRendering.call(this,this.$props.maximizeButton,r.getListeners.call(this)),c=r.templateRendering.call(this,this.$props.restoreButton,r.getListeners.call(this)),u=(0,r.getDefaultSlots)(this),p=n("div",{ref:"wrapper"},[this.$props.modal&&n("div",{class:"k-overlay"}),n("div",{tabindex:0,attrs:this.v3?void 0:{tabindex:0},onFocus:function(e){return e.target.classList.add("k-focus")},on:this.v3?void 0:{focus:function(e){return e.target.classList.add("k-focus")},blur:function(e){return e.target.classList.remove("k-focus")},keydown:this.handleKeyDown},onBlur:function(e){return e.target.classList.remove("k-focus")},onKeydown:this.handleKeyDown,ref:"windowElement",class:o,style:R({top:this.computedTop+"px",left:this.computedLeft+"px",width:this.computedWidth+"px",height:this.computedHeight+"px"||0},this.$props.windowStyle)},[n(r.Draggable,{onPress:this.onPress,on:this.v3?void 0:{press:this.onPress,drag:this.onDrag,release:this.onRelease},onDrag:this.onDrag,onRelease:this.onRelease,ref:"draggable"},this.v3?function(){return[n($,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:a,minimizeButton:l,maximizeButton:d,restoreButton:c},title:t.$props.title,titleRender:s,onDoubleclick:t.handleDoubleClick,on:t.v3?void 0:{doubleclick:t.handleDoubleClick,minimizeclick:t.handleMinimize,fullscreenclick:t.handleFullscreen,restoreclick:t.handleRestore,closeclick:t.handleCloseWindow},onMinimizeclick:t.handleMinimize,onFullscreenclick:t.handleFullscreen,onRestoreclick:t.handleRestore,onCloseclick:t.handleCloseWindow,closeButton:a,minimizeButton:l,maximizeButton:d,restoreButton:c})]}:[n($,{stage:t.windowStage,attrs:t.v3?void 0:{stage:t.windowStage,title:t.$props.title,titleRender:s,closeButton:a,minimizeButton:l,maximizeButton:d,restoreButton:c},title:t.$props.title,titleRender:s,onDoubleclick:t.handleDoubleClick,on:t.v3?void 0:{doubleclick:t.handleDoubleClick,minimizeclick:t.handleMinimize,fullscreenclick:t.handleFullscreen,restoreclick:t.handleRestore,closeclick:t.handleCloseWindow},onMinimizeclick:t.handleMinimize,onFullscreenclick:t.handleFullscreen,onRestoreclick:t.handleRestore,onCloseclick:t.handleCloseWindow,closeButton:a,minimizeButton:l,maximizeButton:d,restoreButton:c})]),this.windowStage!==i.MINIMIZED?n("div",{class:"k-content k-window-content"},[u]):null,this.windowStage===i.DEFAULT&&this.$props.resizable?n(T,{onResize:this.handleResize,on:this.v3?void 0:{resize:this.handleResize}}):null])]);return this.$props.appendTo?n("div",[p]):p}},V=E},7142:(e,t,n)=>{n.r(t),n.d(t,{AutoComplete:()=>_e,AutoCompleteVue2:()=>Ke,ComboBox:()=>Pe,ComboBoxVue2:()=>Ne,DropDownList:()=>he,DropDownListVue2:()=>pe,MultiSelect:()=>ut,MultiSelectVue2:()=>ct});var i,o=n(1895),r=n(7984),s=n(1536),a=n(3266),l=o,d=l.h,c=l.version&&"3"===l.version[0],u={name:"list-container",emits:{mousedown:null,blur:null,open:null,close:null},props:{width:[String,Number],dir:String,itemsCount:Number,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}}},created:function(){this.kendoAnchorRef=void 0},setup:c?function(){return{v3:!!c}}:void 0,methods:{onMouseDown:function(e){this.$emit("mousedown",e)},onBlur:function(e){this.$emit("blur",e)},onOpen:function(e){this.$emit("open",e)},onClose:function(e){this.$emit("close",e)}},render:function(e){var t=this,n=d||e,i=(0,r.getDefaultSlots)(this),o=this.$props,s=(o.onMouseDown,o.onBlur,o.width),l=o.dir,c=o.popupSettings,u=c.popupClass,p=c.className,h=c.animate,f=c.anchor,v=c.show,m=(c.open,c.close,c.itemsCount);return n(a.Popup,{style:{width:s,direction:l},className:p,attrs:this.v3?void 0:{className:p,animate:h,anchor:f,show:v,contentKey:m},animate:h,anchor:f,show:v,contentKey:m,onOpen:this.onOpen,on:this.v3?void 0:{open:this.onOpen,close:this.onClose},onClose:this.onClose},this.v3?function(){return[n("div",{class:u,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])]}:[n("div",{class:u,onMousedown:t.onMouseDown,on:t.v3?void 0:{mousedown:t.onMouseDown,focusout:t.onBlur},onFocusout:t.onBlur},[i])])}},p=u,h=o,f=h.h,v=h.version&&"3"===h.version[0],m=h.ref,g=r.kendoThemeMaps.sizeMap,y=r.kendoThemeMaps.roundedMap,b={name:"list-filter",emits:{keydown:null,change:null},props:{value:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},computed:{spanClass:function(){var e,t=this.$props,n=t.size,i=t.rounded,o=t.fillMode;return(e={"k-searchbox k-input":!0})["k-input-".concat(g[n]||n)]=n,e["k-rounded-".concat(y[i]||i)]=i,e["k-input-".concat(o)]=o,e}},setup:v?function(){return{v3:!!v,inputRef:m(null)}}:void 0,methods:{onKeyDown:function(e){this.$emit("keydown",e)},onChange:function(e){this.$emit("change",e)}},mounted:function(){this.input=(0,r.getRef)(this,"input")},render:function(e){var t=f||e;return t("span",{class:"k-list-filter"},[t("span",{class:this.spanClass},[t("span",{class:"k-input-icon k-icon k-i-search"}),t("input",{ref:(0,r.setRef)(this,"input"),type:"text",attrs:this.v3?void 0:{type:"text"},value:this.v3?this.$props.value||"":null,domProps:this.v3?void 0:{value:this.$props.value||""},class:"k-input-inner",onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,keydown:this.onKeyDown},onKeydown:this.onKeyDown})])])}},k=b,w=function(e){return null!=e},S=function(e,t,n){if(!w(e))return!1;var i=String(e);return n&&(i=i.toLowerCase()),0===i.indexOf(t)},x=function(e,t,n){var i=-1;if(t){t=t.toLowerCase();for(var o=0;o<e.length;o++){var r=($(e[o],n)||"")+"";if(r&&r.toLowerCase().startsWith(t)){i=o;break}}}return i},C=function(e,t,n,i){void 0===i&&(i=!1);var o=function(e){return i?e:e.toLowerCase()};return e.findIndex((function(e){return n?o($(e,n))===o(t):o(t)===o(e.toString())}))},$=function(e,t){if(t&&w(e)){var n=t.split("."),i=e;return n.forEach((function(e){i=i?i[e]:void 0})),i}return e},I=function(e,t,n){t.forEach((function(t){var i=e.findIndex((function(e){return O(e,t,n)}));-1!==i&&e.splice(i,1)}))},O=function(e,t,n){return e===t||w(e)===w(t)&&$(e,n)===$(t,n)},D=function(e,t,n){if(t){var i=C(e,t,n,!0);return-1!==i?e[i]:e[x(e,t,n)]}return e[0]},M=function(e){"INPUT"!==e.target.nodeName&&e.preventDefault()},T=o,R=T.h,B=T.version&&"3"===T.version[0],N={name:"list-default-item",props:{defaultItem:[Object,String],textField:String,selected:Boolean},setup:B?function(){return{v3:!!B}}:void 0,methods:{onMouseDown:function(e){e.preventDefault()},onClick:function(e){this.$emit("defaultitemclick",e)}},render:function(e){var t=R||e,n=this.$props,i=n.selected,o=n.defaultItem,s=n.textField;return t("div",{onClick:this.onClick,on:this.v3?void 0:{click:this.onClick,mousedown:this.onMouseDown},onMousedown:this.onMouseDown,style:{position:"unset"},class:(0,r.classNames)("k-list-optionlabel",{"k-selected":i})},[$(o,s)||""])}},P=N,E=function(){return E=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},E.apply(this,arguments)},V=o,L=V.h,A=V.version&&"3"===V.version[0],F={name:"list-item",props:{id:String,index:Number,dataItem:[Object,String,Number],textField:String,focused:Boolean,selected:Boolean,render:Object},setup:A?function(){return{v3:!!A}}:void 0,computed:{itemClass:function(){return{"k-list-item":!0,"k-selected":this.$props.selected,"k-focus":this.$props.focused}}},methods:{handleClick:function(e){this.$emit("itemclick",this.$props.index,e)}},render:function(e){var t=L||e,n=this.$props.selected,i=t("li",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:"option","aria-selected":n},role:"option","aria-selected":n,class:(0,r.classNames)("k-list-item",{"k-selected":n,"k-focus":this.$props.focused}),onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},style:{position:"unset"}},[t("span",{class:"k-list-item-text"},[$(this.$props.dataItem,this.$props.textField).toString()])]);return r.getTemplate.call(this,{h:t,template:this.$props.render,defaultRendering:i,additionalProps:E(E({},this.$props),{itemClass:this.itemClass}),additionalListeners:{click:this.handleClick}})}},z=n(5725),j="dropdowns.nodata",K="dropdowns.expandbutton",_="dropdowns.clear",H=((i={})[_]="clear",i[K]="expand button",i[j]="NO DATA FOUND.",i),W=o,U=W.h,q=W.version&&"3"===W.version[0],G=W.ref,J=W.inject,X={name:"list",emits:{listclick:null,scroll:null},props:{id:String,show:Boolean,dataItems:Array,value:[Object,String,Number,Boolean,Array],textField:String,valueField:String,optionsGuid:String,wrapperCssClass:String,wrapperStyle:Object,listStyle:Object,skip:Number,focusedIndex:Number,highlightSelected:{type:Boolean,default:!0},itemRender:[String,Function,Object],noDataRender:[String,Function,Object],scroller:Boolean},inject:{kendoLocalizationService:{default:null}},setup:q?function(){return{v3:!!q,listRef:G(null),kendoLocalizationService:J("kendoLocalizationService",{})}}:void 0,mounted:function(){this.list=(0,r.getRef)(this,"list")},methods:{handleClick:function(e,t){this.$emit("listclick",e,t)},handleScroll:function(e){this.$emit("scroll",e)}},render:function(e){var t=U||e,n=(0,r.getDefaultSlots)(this),i=(0,z.provideLocalizationService)(this),o=this.$props,s=o.id,a=o.show,l=o.wrapperCssClass,d=o.wrapperStyle,c=o.listStyle,u=(o.listRef,function(){var e=this.$props,n=e.textField,i=e.valueField,o=e.optionsGuid,r=e.skip,s=void 0===r?0:r,a=e.focusedIndex,l=e.highlightSelected,d=e.value,c=e.itemRender,u=Array.isArray(d);return this.$props.dataItems.map((function(e,r){var p=s+r,h=l&&(!u&&O(e,d,i)||u&&-1!==d.findIndex((function(t){return O(t,e,i)})));return t(F,{id:"option-".concat(o,"-").concat(p),attrs:this.v3?void 0:{id:"option-".concat(o,"-").concat(p),dataItem:e,selected:h,focused:a===r,index:p,textField:n,render:c},dataItem:e,selected:h,focused:a===r,index:p,key:p,onItemclick:this.handleClick,on:this.v3?void 0:{itemclick:this.handleClick},textField:n,render:c})}),this)}.call(this));return u.length?t("div",{class:l,style:d,unselectable:"on",attrs:this.v3?void 0:{unselectable:"on"},onScroll:this.handleScroll,on:this.v3?void 0:{scroll:this.handleScroll}},[t("ul",{id:s,attrs:this.v3?void 0:{id:s,role:"listbox","aria-live":"polite","aria-hidden":!a||void 0},role:"listbox","aria-live":"polite","aria-hidden":!a||void 0,class:"k-list-ul",ref:(0,r.setRef)(this,"list"),style:c},[u]),n]):function(){var e=this.$props.noDataRender,n=t("div",{class:"k-nodata"},[t("div",[i.toLanguageString(j,H[j])])]);return r.getTemplate.call(this,{h:t,template:e,defaultRendering:n})}.call(this)}},Y=X;const Z=function(){function e(){var e=this;this.containerHeight=0,this.skip=0,this.total=0,this.enabled=!1,this.pageSize=0,this.itemHeight=0,this.prevScrollPos=0,this.listTranslate=0,this.scrollSyncing=!1,this.scrollerRef=function(t){var n=e;n.container=t,t&&(t.setAttribute("unselectable","on"),setTimeout(n.calcScrollElementHeight.bind(n),0))},this.calcScrollElementHeight=function(){e.scrollSyncing=!0;var t=!1;e.itemHeight=e.list?e.list.children[0].offsetHeight:e.itemHeight,e.containerHeight=Math.min(1533915,e.itemHeight*e.total);var n=e.containerHeight;return e.scrollElement&&(t=e.scrollElement.style.height!==n+"px")&&(e.scrollElement.style.height=n+"px"),e.scrollSyncing=!1,t},this.scrollHandler=this.scrollHandler.bind(this)}return Object.defineProperty(e.prototype,"translate",{get:function(){return this.listTranslate},enumerable:!1,configurable:!0}),e.prototype.changePage=function(e,t){var n=Math.min(Math.max(0,e),this.total-this.pageSize);n!==this.skip&&this.PageChange({skip:n,take:this.pageSize},t)},e.prototype.translateTo=function(e){this.listTranslate=e,this.list&&(this.list.style.transform="translateY("+e+"px)")},e.prototype.reset=function(){this.container&&(this.calcScrollElementHeight(),this.container.scrollTop=0,this.translateTo(0))},e.prototype.scrollToEnd=function(){this.container&&this.list&&(this.calcScrollElementHeight(),this.container.scrollTop=this.container.scrollHeight-this.container.offsetHeight,this.translateTo(this.container.scrollHeight))},e.prototype.localScrollUp=function(e){var t,n=this.itemHeight,i=this.container.scrollTop,o=this.listTranslate,r=i-o;if(!(r>n)){for(t=0;t<this.skip&&!(o+n+r<=i);t++)o-=n;if(o=this.validateTranslate(o),this.skip-t<=0&&o>=i)return this.translateTo(0),this.changePage(0,e),void(this.container.scrollTop=0);o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip-t,e))}},e.prototype.localScrollDown=function(e){var t,n=this.itemHeight,i=this.container.scrollTop,o=this.listTranslate,r=this.list.children.length;for(t=0;t<r&&!(o+n>=i);t++)o+=n;o=this.validateTranslate(o),t>=r&&this.skip+t>=this.total?(this.translateTo(o),this.changePage(this.total-1,e)):o!==this.listTranslate&&(this.translateTo(o),this.changePage(this.skip+t,e))},e.prototype.scrollNonStrict=function(e){var t=this.total*this.prevScrollPos/this.containerHeight,n=Math.min(Math.floor(t),this.total-1),i=this.containerHeight*t/this.total;i=this.validateTranslate(i),this.translateTo(i),this.changePage(n,e)},e.prototype.scrollHandler=function(e){var t=this.container?this.container.scrollTop:0,n=this.prevScrollPos;this.prevScrollPos=t,this.ScrollChange(e),this.enabled&&this.list&&this.container&&!this.scrollSyncing&&(t-n<=0&&t>this.listTranslate-this.list.scrollHeight/10?this.localScrollUp(e):t-n>0&&t<this.listTranslate+2*this.list.scrollHeight/3?this.localScrollDown(e):this.scrollNonStrict(e))},e.prototype.validateTranslate=function(e){return e=Math.max(0,e),Math.min(this.containerHeight,e)},e}();var Q=function(){function e(){}return e.prototype.navigate=function(e){var t=e.keyCode;return t===r.Keys.up||t===r.Keys.left?this.next({current:e.current,min:e.min,max:e.max,step:-1}):t===r.Keys.down||t===r.Keys.right?this.next({current:e.current,min:e.min,max:e.max,step:1}):t===r.Keys.home?0:t===r.Keys.end?e.max:void 0},e.prototype.next=function(e){return w(e.current)?Math.min(e.max,Math.max(e.current+e.step,e.min)):e.min},e}(),ee={name:"@progress/kendo-vue-dropdowns",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123787,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},te=function(){return te=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},te.apply(this,arguments)},ne=function(){function e(e){var t=this;this.vs=new Z,this.navigation=new Q,this.handleItemClick=function(e,n){var i=t.initState();i.event=n,t.component.handleItemSelect(e,i),t.togglePopup(i),t.applyState(i)},this.handleFocus=function(e){if(!t.component.currentFocused){var n=t.initState();n.data.currentFocused=!0,n.events.push({type:"focus"}),n.event=e,t.applyState(n)}},this.filterChanged=function(e,n){var i=t.component.$props,o=i.textField;i.filterable&&n.events.push({type:"filterchange",filter:{field:o,operator:"contains",ignoreCase:!0,value:e}})},this.togglePopup=function(e){var n=t.component.$props,i=void 0!==n.opened?n.opened:t.component.currentOpened;void 0===n.opened&&(e.data.currentOpened=!i),i?e.events.push({type:"close"}):(e.events.push({type:"open"}),t.calculatePopupWidth())},this.pageChange=function(e,n){var i=t.initState();i.event=n,t.triggerOnPageChange(i,e.skip,e.take),t.applyState(i)},this.scrollChange=function(e){t.component.$emit("scroll",e)},this.scrollToVirtualItem=function(e,n){var i=t.vs;if(i.enabled=!1,0===e.skip)i.reset();else if(e.skip+e.pageSize===e.total)i.scrollToEnd();else{var o=i.translate;0===o&&(i.calcScrollElementHeight(),o=i.itemHeight*e.skip,i.translateTo(o-i.itemHeight)),i.container&&(i.container.scrollTop=o),t.scrollToItem(n,!0)}setTimeout((function(){return i.enabled=!0}),10)},(0,r.validatePackage)(ee),this.listBoxId=(0,r.guid)(),this.guid=(0,r.guid)(),this.component=e,this.vs.PageChange=this.pageChange,this.vs.ScrollChange=this.scrollChange}return e.prototype.didMount=function(){var e=this.component.$props,t=e.popupSettings||{},n=e.style||{},i=t.width,o=!0===e.opened;void 0===i&&this.calculatePopupWidth(),void 0===e.dir&&void 0===n.direction&&(this.calculateDir(),o=!0),o&&this.component.$forceUpdate()},e.prototype.calculateDir=function(){this.component.element&&(this.dirCalculated=window.getComputedStyle(this.component.element).direction||void 0)},e.prototype.calculatePopupWidth=function(){this.wrapper&&(this.popupWidth=this.wrapper.offsetWidth+"px")},e.prototype.scrollToItem=function(e,t){var n=this.list||this.vs.list,i=n?n.children[0]:void 0;if(i&&e>=0){var o=this.vs,r=o.container||n.parentNode;if(r){var s=void 0!==t?t:o.enabled;!function(e,t,n,i,o){var r=e.offsetHeight,s=t*n+(o?i-e.scrollTop:0);if(o){var a=0;s+t>r?a=s+t-r:s<0&&(a=s),0!==a?e.scrollTop+=a:0===e.scrollTop&&0!==i&&(e.scrollTop=i)}else s+t>r+e.scrollTop?e.scrollTop=s+t-r:s<e.scrollTop&&(e.scrollTop-=e.scrollTop-s)}(r,i.offsetHeight,e,o.translate,s)}}},e.prototype.initState=function(){return{data:{},events:[],event:void 0}},e.prototype.applyState=function(e){var t=this;Object.keys(e.data).length>0&&Object.keys(e.data).forEach((function(n){t.component[n]=e.data[n]}));var n=this.component.primitiveValue(),i={event:e.event,component:this.component,target:{name:this.component.$props.name,value:n},value:n};e.events.forEach((function(e){var o=e.type;delete e.type,o&&("change"===o&&(t.component.$emit("changemodel",n),t.component.$emit("update:modelValue",n)),t.component.$emit(o,te(te({},i),e)))}))},e.prototype.triggerOnPageChange=function(e,t,n){var i=this.component.$props.virtual;if(i){var o=Math.min(Math.max(0,t),Math.max(0,i.total-n));o!==i.skip&&e.events.push({type:"pagechange",page:{skip:o,take:n}})}},e.prototype.triggerPageChangeCornerItems=function(e,t){var n=this.component.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.dataItemKey,s=n.virtual,a=void 0!==n.opened?n.opened:this.component.currentOpened;e&&s&&this.vs.enabled&&(s.skip>0&&O(e,o[0],r)?this.triggerOnPageChange(t,s.skip-1,s.pageSize):!a&&s.skip+s.pageSize<s.total&&O(e,o[o.length-1],r)&&this.triggerOnPageChange(t,s.skip+1,s.pageSize))},e.defaultProps={popupSettings:{animate:!0,height:"200px"},required:!1,validityStyles:!0},e}();const ie=ne;var oe,re=function(){return re=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},re.apply(this,arguments)},se=o,ae=se.h,le=se.version&&"3"===se.version[0],de=se.ref,ce=r.kendoThemeMaps.sizeMap,ue=r.kendoThemeMaps.roundedMap,pe={name:"KendoDropDownList",model:{event:"changemodel"},props:{id:String,title:String,dataItemKey:{type:[Object,String]},defaultValue:{type:[String,Object,Number,Boolean],default:void 0},name:String,modelValue:{type:[String,Object,Number,Boolean],default:void 0},value:{type:[String,Object,Number,Boolean],default:void 0},label:{type:String},required:{type:Boolean,default:!1},leftRightKeysNavigation:{type:Boolean,default:!0},valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},delay:{type:Number,default:500},ignoreCase:{type:Boolean,default:!0},iconClassName:String,defaultItem:[Object,String],valueRender:[String,Function,Object],valueMap:Function,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,valueField:String,valuePrimitive:Boolean,className:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},virtual:{type:Object,default:void 0},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,searchState:{word:"",last:""},_skipFocusEvent:!1,valueDuringOnChange:{},_navigated:!1}},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0),this.virtualHasChanged=!0}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.prevCurrentValue=this.computedValue(),this.currentFocused=void 0,this.currentOpened=void 0,this.base=new ie(this),this.anchor=(0,r.guid)(),this.inputId=(0,r.guid)()},setup:le?function(){return{v3:!!le,selectRef:de(null),baseWrapperRef:de(null),kendoAnchorRef:de(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.select=(0,r.getRef)(this,"select"),this.base.wrapper=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.base.didMount(),this.setValidity()},updated:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,o=e.virtual,r=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,a=!s&&r,l=this.$refs.list,d=this.$refs.filterInput,c=this.$refs.scrollElement;if(this.$refs.scroller,l&&(this.base.vs.list=l.list,this.base.list=l.list),c&&(this.base.vs.scrollElement=c),d&&(this.filterInput=d),l&&n.length&&this.base.vs.scrollerRef(l.$el),this.$props.popupSettings.animate||a&&this.onPopupOpened(),o&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var u=this.computedValue(),p=this.prevCurrentValue,h=n.findIndex((function(e){return O(e,u,i)})),f=!O(p,u,i);a&&o?(this.base.scrollToVirtualItem(o,h),this.prevCurrentOpened=!0):a&&!o?(this.base.scrollToItem(h),this.prevCurrentOpened=!0):r&&s&&u&&f&&!this._navigated?this.base.scrollToItem(h):r&&s&&this._navigated&&(this._navigated&&o&&0===o.skip?this.base.vs.reset():this._navigated&&o&&o.skip===o.total-o.pageSize&&this.base.vs.scrollToEnd())}this._navigated=!1,this.prevCurrentValue=this.computedValue(),this.setValidity()},computed:{index:{get:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,o=this.computedValue();return n.findIndex((function(e){return O(e,o,i)}))}},spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.base.wrapper&&this.base.wrapper.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),w(e)||void 0===this.$props.defaultItem||(e=this.$props.defaultItem),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this.dataItems.findIndex((function(n){return $(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?$(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.virtual,s=n.dataItemKey,a=n.defaultItem,l=r?r.skip:0,d=-1===e&&void 0!==a?a:o[e-l],c=!O(d,this.computedValue(),s);this.triggerOnChange(d,t),c&&this.base.triggerPageChangeCornerItems(d,t)},onNavigate:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.defaultItem,s=n.dataItemKey,a=n.virtual,l=void 0===a?{skip:0,total:0,pageSize:0}:a,d=this.base.vs,c=this.computedValue(),u=o.findIndex((function(e){return O(e,c,s)})),p=this.base.navigation.navigate({current:l.skip+u,max:(d.enabled?l.total:o.length)-1,min:void 0!==r?-1:0,keyCode:t});void 0!==p&&this.handleItemSelect(p,e),this.applyState(e)},search:function(e){var t=this;clearTimeout(this.typingTimeout),this.$props.filterable||(this.typingTimeout=setTimeout((function(){return t.searchState.word=""}),this.$props.delay),this.selectNext(e))},selectNext:function(e){var t,n=this,i=this.$props,o=i.dataItems,r=void 0===o?[]:o,s=i.dataItemKey,a=r.map((function(e,t){return{item:e,itemIndex:t}})),l=this.searchState.word,d=this.searchState.last,c=function(e,t){for(var n=0;n<e.length;n++)if(e.charAt(n)!==t)return!1;return!0}(l,d),u=a.length,p=Math.max(0,r.findIndex((function(e){return O(e,n.computedValue(),s)})));this.$props.defaultItem&&(t={item:this.$props.defaultItem,itemIndex:-1},u+=1,p+=1),a=function(e,t,n){var i=e;return n&&(i=[n].concat(i)),i.slice(t).concat(i.slice(0,t))}(a,p+=c?1:0,t);for(var h,f,v,m=0,g=this.$props,y=g.textField,b=g.ignoreCase;m<u;m++)if(h=$(a[m].item,y),f=c&&S(h,d,b),v=S(h,l,b),f||v){m=a[m].itemIndex;break}if(m!==u){var k=this.base.initState();k.event=e,this.handleItemSelect(m,k),this.applyState(k),this.valueDuringOnChange=void 0}},handleKeyDown:function(e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,o=t.leftRightKeysNavigation,s=t.filterable,a=t.disabled,l=t.virtual,d=void 0===l?{skip:0,total:0,pageSize:0}:l,c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=e.keyCode,p=u===r.Keys.home||u===r.Keys.end,h=u===r.Keys.up||u===r.Keys.down,f=!c&&(e.altKey&&u===r.Keys.down||u===r.Keys.enter||u===r.Keys.space),v=c&&(e.altKey&&u===r.Keys.up||u===r.Keys.esc),m=o&&(u===r.Keys.left||u===r.Keys.right),g=h||!s&&(m||p),y=this.base.initState();if(y.event=e,!a){if(p&&this.base.vs.enabled)u===r.Keys.home?0!==d.skip?(this.base.triggerOnPageChange(y,0,d.pageSize),this._navigated=!0):this.triggerOnChange(i[0],y):d.skip<d.total-d.pageSize?(this.base.triggerOnPageChange(y,d.total-d.pageSize,d.pageSize),this._navigated=!0):this.triggerOnChange(i[i.length-1],y);else if(c&&u===r.Keys.enter){var b=this.focusedIndex();void 0!==b&&this.handleItemSelect(b,y),this.base.togglePopup(y),e.preventDefault()}else f||v?(this.base.togglePopup(y),e.preventDefault()):g&&(this.onNavigate(y,u),e.preventDefault());this.applyState(y)}},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},handleFocus:function(e){this._skipFocusEvent||this.base.handleFocus(e)},handleBlur:function(e){if(!this._skipFocusEvent&&this.currentFocused){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState();n.event=e,n.data.currentFocused=!1,n.events.push({type:"blur"}),t&&this.base.togglePopup(n),this.applyState(n)}},handleDefaultItemClick:function(e){var t=this.base.initState();t.event=e,this.base.togglePopup(t),this.triggerOnChange(this.$props.defaultItem,t),this.applyState(t)},handleWrapperClick:function(e){var t=this.base.initState();t.event=e,this.currentFocused||(t.data.currentFocused=!0),this.base.togglePopup(t),this.applyState(t)},handleKeyPress:function(e){if(!this.$props.filterable&&e.keyCode!==r.Keys.enter){var t=String.fromCharCode(e.charCode||e.keyCode);this.$props.ignoreCase&&(t=t.toLowerCase())," "===t&&e.preventDefault(),this.searchState={word:this.searchState.word+t,last:this.searchState.last+t},this.search(e)}},handleListFilterChange:function(e){var t=this.base.initState();t.event=e,void 0===this.$props.filter&&(t.data.currentText=e.target.value),this.base.filterChanged(e.target.value,t),this.applyState(t)},onPopupOpened:function(){this.filterInput&&this.focusElement(this.filterInput.input)},onPopupClosed:function(){var e=this;this.currentFocused&&setTimeout((function(){e.currentFocused&&e.base.wrapper&&e.focusElement(e.base.wrapper)}))},focusedIndex:function(){var e=w(this.$props.filter)?this.$props.filter:this.currentText,t=this.$props,n=t.dataItems,i=void 0===n?[]:n,o=t.virtual,r=void 0===o?{skip:0}:o,s=t.dataItemKey,a=t.textField,l=t.focusedItemIndex,d=this.computedValue(),c=!(i.findIndex((function(e){return O(e,d,s)}))<0&&!this.$props.defaultItem);return!c&&e&&0===r.skip?l?l(i,e,a):i.indexOf(D(i,e,a)):c||0!==r.skip?void 0:0},focusElement:function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout((function(){return t._skipFocusEvent=!1}),30)},setValidity:function(){this.select&&this.select.setCustomValidity&&this.select.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please select a value from the list!")},triggerOnChange:function(e,t){O(this.computedValue(),e,this.$props.dataItemKey)||(void 0===this.$props.value&&(this.currentValue=e),this.valueDuringOnChange=e,t.events.push({type:"change"}))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0}},render:function(e){var t,n=ae||e,i=this.$props,o=i.style,a=i.className,l=i.label,d=i.dir,c=i.virtual,u=void 0===c?{skip:0}:c,h=i.size,f=i.rounded,v=i.fillMode,m=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,g=$(this.computedValue(),this.$props.textField),y=!this.$props.validityStyles||this.validity().valid,b=this.base,w=b.vs,S=this.$props.id||this.inputId;w.enabled=void 0!==this.$props.virtual;var x=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),C=this.$props,I=C.dataItemKey,D=C.dataItems,T=void 0===D?[]:D,R=C.disabled,B=C.tabIndex,N=C.loading,E=C.iconClassName,V=r.templateRendering.call(this,this.$props.valueRender,r.getListeners.call(this)),L=this.currentFocused,A=this.primitiveValue(),F=T.findIndex((function(e){return O(e,A,I)})),z=n("span",{class:"k-input-inner"},[n("span",{class:"k-input-value-text"},[g])]),j=r.getTemplate.call(this,{h:n,template:V,defaultRendering:z,additionalProps:re({value:this.computedValue()},this.$data)}),K=function(){var e=this.$props,t=e.textField,i=e.defaultItem;return void 0!==i&&n(P,{defaultItem:i,attrs:this.v3?void 0:{defaultItem:i,textField:t,selected:O(this.computedValue(),i,I)},textField:t,selected:O(this.computedValue(),i,I),key:"defaultitemkey",onDefaultitemclick:this.handleDefaultItemClick,on:this.v3?void 0:{defaultitemclick:this.handleDefaultItemClick}})},_=function(){var e=this,t=this.$props.textField,i=r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),o=r.templateRendering.call(this,this.$props.listNoDataRender,r.getListeners.call(this)),s=u.skip,a="translateY(".concat(w.translate,"px)");return n(Y,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:m,dataItems:T.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:I,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:x.height},wrapperCssClass:"k-list-content",listStyle:w.enabled?{transform:a}:void 0,skip:s,itemRender:i,noDataRender:o},show:m,dataItems:T.slice(),focusedIndex:this.focusedIndex(),value:this.computedValue(),textField:t,valueField:I,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:x.height},wrapperCssClass:"k-list-content",listStyle:w.enabled?{transform:a}:void 0,key:"listkey",skip:s,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:w.scrollHandler},itemRender:i,noDataRender:o,onScroll:w.scrollHandler},this.v3?function(){return[W.call(e)]}:[W.call(e)])},H=function(){var e=void 0!==this.$props.filter?this.$props.filter:this.currentText;return this.$props.filterable&&n(k,{value:e,attrs:this.v3?void 0:{value:e,size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode},ref:"filterInput",onChange:this.handleListFilterChange,on:this.v3?void 0:{change:this.handleListFilterChange,keydown:this.handleKeyDown},onKeydown:this.handleKeyDown,size:this.$props.size,rounded:this.$props.rounded,fillMode:this.$props.fillMode})},W=function(){return w.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})};void 0!==this.$props.virtual&&(b.vs.skip=u.skip,b.vs.total=u.total,b.vs.pageSize=u.pageSize);var U=n("span",{ref:(0,r.setRef)(this,"kendoAnchor",this.anchor),class:(0,r.classNames)("k-dropdownlist k-picker",a,(t={},t["k-picker-".concat(ce[h]||h)]=h,t["k-rounded-".concat(ue[f]||f)]=f,t["k-picker-".concat(v)]=v,t["k-focus"]=L,t["k-disabled"]=R,t["k-invalid"]=!y,t["k-loading"]=N,t["k-required"]=this.required,t)),style:l?re(re({},o),{width:void 0}):o,dir:d,attrs:this.v3?void 0:{dir:d,tabindex:(0,r.getTabIndex)(B,R),accesskey:this.$props.accessKey,role:"listbox","aria-disabled":R||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":m?"option-"+this.base.guid+"-"+(F+(u?u.skip:0)):void 0,"aria-label":this.$props.label,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,id:this.$props.id,title:this.$props.title},onMousedown:m?M:r.noop,on:this.v3?void 0:{mousedown:m?M:r.noop,focusin:this.handleFocus,focusout:this.handleBlur,keydown:this.handleKeyDown,keypress:this.handleKeyPress,click:R?r.noop:this.handleWrapperClick},onFocusin:this.handleFocus,onFocusout:this.handleBlur,tabindex:(0,r.getTabIndex)(B,R),accesskey:this.$props.accessKey,onKeydown:this.handleKeyDown,onKeypress:this.handleKeyPress,role:"listbox",onClick:R?r.noop:this.handleWrapperClick,"aria-disabled":R||void 0,"aria-haspopup":!0,"aria-expanded":m||!1,"aria-owns":this.base.listBoxId,"aria-activedescendant":m?"option-"+this.base.guid+"-"+(F+(u?u.skip:0)):void 0,"aria-label":this.$props.label,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,id:this.$props.id,title:this.$props.title},[j,N&&n("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,size:h,fillMode:v,rounded:null,iconClass:(0,r.classNames)("k-icon k-i-arrow-s",E)},tabIndex:-1,size:h,fillMode:v,rounded:null,class:"k-input-button",iconClass:(0,r.classNames)("k-icon k-i-arrow-s",E),onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}}}),function(e){return n("select",{name:this.$props.name,attrs:this.v3?void 0:{name:this.$props.name,id:S,tabindex:-1,"aria-hidden":!0,title:this.$props.label},id:S,ref:(0,r.setRef)(this,"select"),tabindex:-1,"aria-hidden":!0,title:this.$props.label,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"}},[n("option",{value:this.v3?this.$props.valueMap?this.$props.valueMap.call(void 0,e):e:null,domProps:this.v3?void 0:{value:this.$props.valueMap?this.$props.valueMap.call(void 0,e):e}})])}.call(this,A),function(){var e,t=this,i=r.templateRendering.call(this,this.$props.header,r.getListeners.call(this)),o=r.templateRendering.call(this,this.$props.footer,r.getListeners.call(this)),s=r.getTemplate.call(this,{h:n,template:i}),a=r.getTemplate.call(this,{h:n,template:o}),l=void 0!==x.width?x.width:b.popupWidth;return n(p,{onMousedown:M,on:this.v3?void 0:{mousedown:M,open:this.onPopupOpened,close:this.onPopupClosed,blur:this.handleBlur},dir:void 0!==d?d:b.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==d?d:b.dirCalculated,width:l,popupSettings:{popupClass:(0,r.classNames)(x.popupClass,"k-list",(e={},e["k-list-".concat(ce[h]||h)]=h,e["k-virtual-list"]=this.base.vs.enabled,e)),className:x.className,animate:x.animate,anchor:this.anchor,show:m}},width:l,popupSettings:{popupClass:(0,r.classNames)(x.popupClass,"k-list",(e={},e["k-list-".concat(ce[h]||h)]=h,e["k-virtual-list"]=this.base.vs.enabled,e)),className:x.className,animate:x.animate,anchor:this.anchor,show:m},onOpen:this.onPopupOpened,onClose:this.onPopupClosed,onBlur:this.handleBlur},this.v3?function(){return[H.call(t),K.call(t),s&&n("div",{class:"k-list-header"},[s]),_.call(t),a&&n("div",{class:"k-list-footer"},[a])]}:[H.call(t),K.call(t),s&&n("div",{class:"k-list-header"},[s]),_.call(t),a&&n("div",{class:"k-list-footer"},[a])])}.call(this)]);return l?n("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[U,this.$props.label?S?n("label",{for:S,attrs:this.v3?void 0:{for:S},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):U}},he=pe,fe=o,ve=fe.h,me=fe.version&&"3"===fe.version[0],ge=fe.ref,ye={name:"search-bar",emits:{change:null,keydown:null,focus:null,blur:null},props:{value:String,id:String,placeholder:String,tabIndex:Number,size:{type:Number,default:void 0},suggestedText:String,focused:Boolean,disabled:Boolean,readOnly:Boolean,expanded:Boolean,owns:String,name:String,activedescendant:String,describedby:String,clearButton:Boolean,accessKey:String,ariaLabelledBy:String},data:function(){return{prevValue:void 0,prevSuggestedText:void 0}},watch:{suggestedText:function(e,t){this.prevSuggestedText=t},value:function(e,t){this.prevValue=t}},updated:function(){var e=this.$props,t=e.value,n=e.suggestedText,i=e.focused;this.input||(this.input=this.$refs.input);var o=this.input,s=this.$data.prevValue!==t||n!==this.prevSuggestedText,a=s&&this.$data.prevValue&&this.$data.prevValue.startsWith(t)&&!(this.$data.prevSuggestedText&&n&&this.$data.prevSuggestedText.endsWith(n));i&&o&&r.canUseDOM&&document.activeElement!==o&&o.focus(),n&&s&&!a&&o&&o.setSelectionRange(t.length-n.length,t.length)},setup:me?function(){return{v3:!!me,inputRef:ge(null)}}:void 0,mounted:function(){this.input=(0,r.getRef)(this,"input")},methods:{onChange:function(e){this.$emit("change",e)},onBlur:function(e){this.$emit("blur",e)},onFocus:function(e){this.$emit("focus",e)},onKeyDown:function(e){this.$emit("keydown",e)},clearButtonClick:function(e){this.$emit("clearbuttonclick",e)}},render:function(e){return(ve||e)("input",{autocomplete:"off",attrs:this.v3?void 0:{autocomplete:"off",id:this.$props.id,type:"text",placeholder:this.$props.placeholder,tabindex:this.$props.tabIndex,accesskey:this.$props.accessKey,role:"combobox",name:this.$props.name,size:this.$props.size?this.$props.size:20,"aria-disabled":this.$props.disabled||void 0,disabled:this.$props.disabled||void 0,readonly:this.$props.readOnly||void 0,"aria-autocomplete":this.$props.suggestedText?"both":"list","aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-controls":this.$props.owns,"aria-activedescendant":this.$props.activedescendant,"aria-describedby":this.$props.describedby,"aria-labelledby":this.$props.ariaLabelledBy},id:this.$props.id,type:"text",key:"searchbar",placeholder:this.$props.placeholder,class:"k-input-inner",tabindex:this.$props.tabIndex,accesskey:this.$props.accessKey,role:"combobox",name:this.$props.name,value:this.v3?this.$props.value:null,domProps:this.v3?void 0:{value:this.$props.value},size:this.$props.size?this.$props.size:20,onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,keydown:this.onKeyDown,focusin:this.onFocus,blur:this.onBlur},ref:(0,r.setRef)(this,"input"),onKeydown:this.onKeyDown,onFocusin:this.onFocus,onBlur:this.onBlur,"aria-disabled":this.$props.disabled||void 0,disabled:this.$props.disabled||void 0,readonly:this.$props.readOnly||void 0,"aria-autocomplete":this.$props.suggestedText?"both":"list","aria-haspopup":"listbox","aria-expanded":this.$props.expanded||!1,"aria-controls":this.$props.owns,"aria-activedescendant":this.$props.activedescendant,"aria-describedby":this.$props.describedby,"aria-labelledby":this.$props.ariaLabelledBy})}},be=ye,ke=o,we=ke.h,Se=ke.version&&"3"===ke.version[0],xe=ke.inject,Ce={name:"clear-button",inject:{kendoLocalizationService:{default:null}},setup:Se?function(){return{v3:!!Se,kendoLocalizationService:xe("kendoLocalizationService",{})}}:void 0,methods:{onMouseDown:function(e){e.preventDefault()},onClickHandler:function(e){this.$emit("clearclick",e)}},render:function(e){var t=we||e,n=(0,z.provideLocalizationService)(this).toLanguageString(_,H[_]);return t("span",{class:"k-clear-value",role:"button",attrs:this.v3?void 0:{role:"button",tabindex:-1,title:n},onClick:this.onClickHandler,on:this.v3?void 0:{click:this.onClickHandler,mousedown:this.onMouseDown},onMousedown:this.onMouseDown,tabindex:-1,title:n,key:"clearbutton"},[t("span",{class:"k-icon k-i-x"})])}},$e=function(){return $e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$e.apply(this,arguments)},Ie=o,Oe=Ie.h,De=Ie.version&&"3"===Ie.version[0],Me=Ie.ref,Te=Ie.inject,Re=r.kendoThemeMaps.sizeMap,Be=r.kendoThemeMaps.roundedMap,Ne={name:"KendoComboBox",model:{event:"changemodel"},emits:{changemodel:null,"update:modelValue":null,filterchange:null,change:null,focus:null,blur:null,open:null,close:null,scroll:null},props:{id:String,dataItemKey:{type:[Object,String]},defaultValue:{type:[String,Object,Number,Boolean],default:void 0},name:String,modelValue:{type:[String,Object,Number,Boolean],default:void 0},value:{type:[String,Object,Number,Boolean],default:void 0},label:{type:String},placeholder:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},iconClassName:String,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,className:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},virtual:{type:Object,default:void 0},suggest:{type:Boolean,default:!1},allowCustom:{type:Boolean,default:!1},clearButton:{type:Boolean,default:!0},ariaLabelledBy:String,ariaDescribedBy:String,valueField:String,valuePrimitive:Boolean,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},inject:{kendoLocalizationService:{default:null}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,searchState:{word:"",last:""},_skipFocusEvent:!1,valueDuringOnChange:{},_navigated:!1,suggested:""}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.currentFocused=void 0,this.currentOpened=void 0,this.prevCurrentValue=this.computedValue(),this.base=new ie(this),this.anchor=(0,r.guid)(),this.inputId=(0,r.guid)()},setup:De?function(){return{v3:!!De,inputRef:Me(null),elementRef:Me(null),kendoAnchorRef:Me(null),kendoLocalizationService:Te("kendoLocalizationService",{})}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.element=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.base.didMount(),this.setValidity()},updated:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,o=e.virtual,r=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,a=!s&&r,l=this.$refs.list,d=this.$refs.scrollElement,c=this.computedValue();if(this.valueOnDidUpdate=c,l&&(this.base.vs.list=l.list,this.base.list=l.list),d&&(this.base.vs.scrollElement=d),l&&n.length&&this.base.vs.scrollerRef(l.$el),o&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var u=this.prevCurrentValue,p=n.findIndex((function(e){return O(e,c,i)})),h=!O(u,c,i);a&&o?(this.base.scrollToVirtualItem(o,p),this.prevCurrentOpened=!0):a&&!o?(this.base.scrollToItem(p),this.prevCurrentOpened=!0):r&&s&&c&&h&&this.base.scrollToItem(p)}a&&this.input&&this.input.focus(),this.prevCurrentValue=this.computedValue(),this.setValidity()},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0),this.virtualHasChanged=!0}},computed:{index:{get:function(){var e=this.$props,t=e.dataItems,n=void 0===t?[]:t,i=e.dataItemKey,o=this.computedValue();return n.findIndex((function(e){return O(e,o,i)}))}},spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this.dataItems.findIndex((function(n){return $(n,e)===t}));return this.dataItems[n]},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?$(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.virtual,s=n.dataItemKey,a=o[e-(r?r.skip:0)],l=!O(a,this.computedValue(),s);this.triggerOnChange(a,t),void 0!==this.currentText&&(t.data.currentText=void 0),l&&this.base.triggerPageChangeCornerItems(a,t)},onNavigate:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.virtual,s=void 0===r?{skip:0}:r,a=this.$props.filter?this.$props.filter:this.currentText,l=this.getFocusedIndex(),d=this.base.vs,c=this.computedValue();if(this.suggested="",-1===l||w(c))if(""===a)this.handleItemSelect(0,e);else{var u=s.skip+l,p=this.base.navigation.navigate({keyCode:t,current:u,max:(d.enabled?d.total:o.length)-1,min:0});void 0!==p&&this.handleItemSelect(p,e)}else this.handleItemSelect(l,e)},toggleBtnClick:function(e){var t=this.base.initState();t.event=e,this.base.togglePopup(t),this.applyState(t)},applyValueOnEnter:function(e,t){var n,i=this.$props,o=i.dataItems,r=void 0===o?[]:o,s=i.textField,a=i.allowCustom,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,d=$(this.computedValue(),s)===e?this.index:C(r,e,s),c=-1!==d,u=void 0;if(this.suggested="",c)u=r[d];else{if(!a)return this.selectFocusedItem(e,t);u=void 0!==s?((n={})[s]=e,n):e}this.triggerOnChange(u,t),l&&this.base.togglePopup(t),void 0===this.$props.filter&&void 0!==this.currentText&&(t.data.currentText=void 0),this.applyState(t)},applyValueOnRejectSuggestions:function(e,t){var n,i=this.$props,o=i.dataItems,r=void 0===o?[]:o,s=i.textField,a=i.allowCustom,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,d=$(this.computedValue(),s);if(this.suggested="",e===d||""===e&&!w(d))return l&&this.base.togglePopup(t),this.applyState(t);var c=C(r,e,s,!0),u=null;-1!==c?u=r[c]:a&&(u=e?s?((n={})[s]=e,n):e:null),this.triggerOnChange(u,t),void 0!==this.currentText&&(t.data.currentText=void 0,this.base.filterChanged("",t)),l&&this.base.togglePopup(t),this.applyState(t)},selectFocusedItem:function(e,t){var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.$props,o=i.dataItems,r=void 0===o?[]:o,s=i.textField,a=i.virtual,l=void 0===a?{skip:0}:a,d=i.focusedItemIndex,c=void 0===d?x:d,u=l.skip,p=""===e&&0===u?0:c(r,e,s);return-1!==p?this.handleItemSelect(p+u,t):(this.triggerOnChange(null,t),void 0!==this.currentText&&(t.data.currentText=void 0)),n&&this.base.togglePopup(t),this.applyState(t)},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},handleFocus:function(e){this.$emit("focus",e)},handleBlur:function(e){if(this.currentFocused){var t=this.base.initState();t.data.currentFocused=!1,t.events.push({type:"blur"}),t.event=e,this.applyValueOnRejectSuggestions(e.currentTarget.value,t)}},onInputKeyDown:function(e){var t=this,n=e.keyCode,i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,o=this.base.initState();if(o.event=e,!e.altKey&&(n===r.Keys.up||n===r.Keys.down))return e.preventDefault(),this.onNavigate(o,n),void this.applyState(o);var s=function(){e.preventDefault(),t.base.togglePopup(o),t.applyState(o)};i?e.altKey&&n===r.Keys.up?s():n===r.Keys.enter?(e.preventDefault(),this.applyValueOnEnter(e.currentTarget.value,o)):n===r.Keys.esc&&s():e.altKey&&n===r.Keys.down?s():n===r.Keys.esc&&this.applyValueOnRejectSuggestions(e.currentTarget.value,o)},inputOnChange:function(e){var t=this.base.initState();t.event=e;var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=e.currentTarget,o=i.value;if(this.$props.suggest){var r=i.selectionEnd===o.length,s=void 0!==this.$props.filter?this.$props.filter:this.currentText;w(s)||(s=$(this.computedValue(),this.$props.textField)||"");var a=s&&s===o,l=s&&s.length>o.length;a||l||!r?this.suggested="":this.suggestValue(o)}void 0===this.$props.filter&&(t.data.currentText=o),void 0!==this.currentFocusedItem&&(t.data.focusedItem=void 0),n||this.base.togglePopup(t),this.base.filterChanged(o,t),this.applyState(t)},clearButtonClick:function(e){var t=this.base.initState();t.event=e,e.stopPropagation(),this.suggested="",this.base.filterChanged("",t),void 0===this.$props.filter&&void 0!==this.currentText&&(t.data.currentText=void 0),this.triggerOnChange(null,t),(void 0!==this.$props.opened?this.$props.opened:this.currentOpened)&&this.base.togglePopup(t),this.applyState(t)},getFocusedIndex:function(){var e=this.computedValue(),t=this.$props,n=t.dataItems,i=void 0===n?[]:n,o=t.textField,r=t.dataItemKey,s=t.virtual,a=void 0===s?{skip:0}:s,l=t.focusedItemIndex,d=void 0===l?x:l,c=this.$props.filter?this.$props.filter:this.currentText;return w(e)&&void 0===c?i.findIndex((function(t){return O(t,e,r)})):c?d(i,c,o):0===a.skip?0:-1},suggestValue:function(e){var t=this.$props,n=t.dataItems,i=t.textField;this.suggested=function(e,t,n){void 0===t&&(t=[]);var i="";if(e){var o=t[x(t,e,n)];if(o){var r=$(o,n);e.toLowerCase()!==r.toLowerCase()&&(i=r.substring(e.length))}}return i}(e,n,i)},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},triggerOnChange:function(e,t){var n=this.computedValue();!w(n)&&!w(e)||O(n,e,this.$props.dataItemKey)||(void 0===this.$props.value&&(this.currentValue=e),this.valueDuringOnChange=e,t.events.push({type:"change"}))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0}},render:function(e){var t,n=Oe||e,i=this.$props,o=i.dir,a=i.disabled,l=i.clearButton,d=i.label,c=i.textField,u=i.className,h=i.style,f=i.loading,v=i.iconClassName,m=i.virtual,g=i.size,y=i.fillMode,b=i.rounded,k=this.currentFocused,S=!this.$props.validityStyles||this.validity().valid,x=void 0!==this.$props.filter?this.$props.filter:this.currentText,C=$(this.computedValue(),c),I=w(x)?x:C,D=l&&(!!I||w(this.computedValue())),M=this.base,T=M.vs,R=this.$props.id||this.inputId,B=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),N=(0,z.provideLocalizationService)(this).toLanguageString(K,H[K]);T.enabled=void 0!==m,void 0!==m&&(T.skip=m.skip,T.total=m.total,T.pageSize=m.pageSize);var P=function(){var e=this,t=this.$props,i=t.dataItemKey,o=t.dataItems,s=void 0===o?[]:o,a=r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),l=r.templateRendering.call(this,this.$props.listNoDataRender,r.getListeners.call(this));m||(m={skip:0});var d=m.skip,u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,p="translateY(".concat(T.translate,"px)"),h=u?this.getFocusedIndex():void 0,f=w(x)&&x!==C?null:this.computedValue();return n(Y,{id:M.listBoxId,attrs:this.v3?void 0:{id:M.listBoxId,show:u,dataItems:s,focusedIndex:h,value:f,textField:c,valueField:i,optionsGuid:M.guid,wrapperStyle:{maxHeight:B.height},wrapperCssClass:"k-list-content",listStyle:T.enabled?{transform:p}:void 0,skip:d,itemRender:a,noDataRender:l},show:u,dataItems:s,focusedIndex:h,value:f,textField:c,valueField:i,optionsGuid:M.guid,ref:"list",wrapperStyle:{maxHeight:B.height},wrapperCssClass:"k-list-content",listStyle:T.enabled?{transform:p}:void 0,key:"listkey",skip:d,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:T.scrollHandler},itemRender:a,noDataRender:l,onScroll:T.scrollHandler},this.v3?function(){return[E.call(e)]}:[E.call(e)])},E=function(){return T.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})},V=n("span",{class:(0,r.classNames)("k-combobox k-input",(t={},t["k-input-".concat(Re[g]||g)]=g,t["k-rounded-".concat(Be[b]||b)]=b,t["k-input-".concat(y)]=y,t["k-invalid"]=!S,t["k-loading"]=f,t["k-required"]=this.required,t["k-disabled"]=a,t["k-focus"]=k&&!a,t),u),ref:(0,r.setRef)(this,"kendoAnchor",this.anchor),style:d?$e($e({},h),{width:void 0}):h,dir:o,attrs:this.v3?void 0:{dir:o}},[function(e,t){var i=this,o=this.$props,r=o.placeholder,s=o.tabIndex,l=o.dataItems,d=void 0===l?[]:l,c=o.dataItemKey;m||(m={skip:0});var u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,p=this.computedValue(),h=Math.max(0,d.findIndex((function(e){return O(e,p,c)})));return this.suggested&&!O(this.valueOnDidUpdate,p,c)&&(this.suggested=""),n(be,{id:t,attrs:this.v3?void 0:{id:t,placeholder:r,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e+this.suggested,suggestedText:this.suggested,disabled:a,expanded:u,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+m.skip),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy},placeholder:r,tabIndex:s||void 0,accessKey:this.$props.accessKey,value:e+this.suggested,suggestedText:this.suggested,ref:this.v3?function(e){i.inputRef=e}:"input",onKeydown:this.onInputKeyDown,on:this.v3?void 0:{keydown:this.onInputKeyDown,change:this.inputOnChange,focus:this.base.handleFocus,blur:this.handleBlur},onChange:this.inputOnChange,onFocus:this.base.handleFocus,onBlur:this.handleBlur,disabled:a,expanded:u,owns:this.base.listBoxId,activedescendant:this.base.guid+"-"+(h+m.skip),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,I||"",R),D&&!f&&n(Ce,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}),f&&n("span",{class:"k-icon k-input-loading-icon k-i-loading",key:"loading"}),n(s.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,"aria-label":N,size:g,fillMode:y,rounded:null,iconClass:(0,r.classNames)("k-icon k-i-arrow-s",v)},tabIndex:-1,"aria-label":N,size:g,fillMode:y,rounded:null,class:"k-input-button",iconClass:(0,r.classNames)("k-icon k-i-arrow-s",v),onClick:this.toggleBtnClick,on:this.v3?void 0:{click:this.toggleBtnClick,mousedown:function(e){return e.preventDefault()}},onMousedown:function(e){return e.preventDefault()}}),function(){var e,t=this,i=r.templateRendering.call(this,this.$props.header,r.getListeners.call(this)),s=r.templateRendering.call(this,this.$props.footer,r.getListeners.call(this)),a=r.getTemplate.call(this,{h:n,template:i}),l=r.getTemplate.call(this,{h:n,template:s}),d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,c=void 0!==B.width?B.width:M.popupWidth;return n(p,{onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}},width:c,attrs:this.v3?void 0:{width:c,popupSettings:{animate:B.animate,anchor:this.anchor,show:d,popupClass:(0,r.classNames)(B.popupClass,"k-list",(e={},e["k-list-".concat(Re[g]||g)]=g,e["k-virtual-list"]=this.base.vs.enabled,e)),className:B.className,appendTo:B.appendTo},dir:void 0!==o?o:this.base.dirCalculated},popupSettings:{animate:B.animate,anchor:this.anchor,show:d,popupClass:(0,r.classNames)(B.popupClass,"k-list",(e={},e["k-list-".concat(Re[g]||g)]=g,e["k-virtual-list"]=this.base.vs.enabled,e)),className:B.className,appendTo:B.appendTo},dir:void 0!==o?o:this.base.dirCalculated},this.v3?function(){return[a&&n("div",{class:"k-list-header"},[a]),P.call(t),l&&n("div",{class:"k-list-footer"},[l])]}:[a&&n("div",{class:"k-list-header"},[a]),P.call(t),l&&n("div",{class:"k-list-footer"},[l])])}.call(this)]);return d?n("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus},dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[V,this.$props.label?R?n("label",{for:R,attrs:this.v3?void 0:{for:R},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):V}},Pe=Ne,Ee=function(){return Ee=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ee.apply(this,arguments)},Ve=o,Le=Ve.h,Ae=Ve.version&&"3"===Ve.version[0],Fe=Ve.ref,ze=r.kendoThemeMaps.sizeMap,je=r.kendoThemeMaps.roundedMap,Ke={name:"KendoAutoComplete",model:{event:"changemodel"},props:{id:String,defaultValue:{type:[String],default:void 0},name:String,modelValue:{type:[String],default:void 0},value:{type:[String],default:void 0},label:{type:String},placeholder:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},opened:{type:Boolean,default:void 0},disabled:Boolean,dir:{type:String,default:void 0},tabIndex:{type:Number,default:0},readonly:Boolean,accessKey:String,dataItems:Array,textField:String,loading:Boolean,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,header:[String,Function,Object],footer:[String,Function,Object],suggest:{type:[Boolean,String],default:!1},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,focusedItem:void 0,searchState:{word:"",last:""},valueDuringOnChange:{},suggested:""}},created:function(){this.valueDuringOnChange=void 0,this.currentText=void 0,this.currentValue=void 0,this.currentFocused=void 0,this.currentOpened=void 0,this.base=new ie(this),this.anchor=(0,r.guid)(),this.inputId=(0,r.guid)()},setup:Ae?function(){return{v3:!!Ae,inputRef:Fe(null),kendoAnchorRef:Fe(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.element=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.base.didMount(),this.setValidity()},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},dataItems:function(e,t){this.prevData=t},focusedItem:function(e,t){this.prevFocusedItem=t}},updated:function(){var e=this.$props.dataItems,t=void 0===e?[]:e,n=this.focusedIndex(),i=t[n],o=this.prevData!==t,r=void 0!==i&&this.prevFocusedItem!==i,s=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,a=!(void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened)&&s,l=this.$refs.list;l&&(this.base.vs.list=l.list,this.base.list=l.list),t.length&&(s&&(r||o)||a)&&this.base.scrollToItem(n),this.setValidity()},computed:{spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),e},primitiveValue:function(){var e=this.computedValue();return this.valuePrimitive?$(e,this.valueField):e},validity:function(){var e=void 0!==this.$props.validationMessage,t=!this.$props.required||null!==this.computedValue()&&""!==this.computedValue()&&void 0!==this.computedValue();return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue()}},handleItemSelect:function(e,t){var n=this.$props.dataItems,i=$((void 0===n?[]:n)[e],this.$props.textField);this.triggerOnChange(i,t)},itemFocus:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.textField,s=o[e];O(this.$data.focusedItem,s,r)||(t.data.focusedItem=s)},togglePopup:function(e){this.base.togglePopup(e)},onNavigate:function(e,t){var n=this,i=this.computedValue(),o=this.$props,r=o.dataItems,s=void 0===r?[]:r,a=o.textField,l=o.focusedItemIndex,d=void 0!==this.$data.focusedItem?s.findIndex((function(e){return O(e,n.$data.focusedItem,a)})):l?l(s,i,a):s.indexOf(D(s,i,a)),c=this.base.navigation.navigate({keyCode:t,current:d,max:s.length-1,min:0});void 0!==c&&this.itemFocus(c,e),this.applyState(e)},applyInputValue:function(e,t,n){var i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,o=this.$props,s=o.dataItems,a=void 0===s?[]:s,l=o.textField;if(this.suggested="",i&&n===r.Keys.enter){var d=$(a[this.focusedIndex(e)],l);this.triggerOnChange(d,t)}i&&this.togglePopup(t),this.applyState(t)},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},handleItemClick:function(e,t){this.base.handleItemClick(e,t),this.valueDuringOnChange=void 0},onChangeHandler:function(e){var t=this.base.initState(),n=e.target,i=n.value,o=n.selectionEnd===i.length;t.event=e;var r=this.suggested,s=this.computedValue(),a=s&&r&&s.substring(0,s.length-r.length),l=a&&a===i,d=a&&a.length>i.length,c=this.$props.suggest,u=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;if(void 0!==c&&!1!==c){l||d||!o?this.suggested="":this.suggestValue(i);var p=i+this.suggested,h={userInput:i,value:this.suggested};this.triggerOnChange(p,t,{suggestion:h})}else this.suggested="",this.triggerOnChange(i,t);(!u&&i||u&&!i)&&this.togglePopup(t),t.data.focusedItem=void 0,this.applyState(t)},clearButtonClick:function(e){var t=this.base.initState(),n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;t.event=e,this.suggested="",this.triggerOnChange("",t),void 0!==this.$data.focusedItem&&(t.data.focusedItem=void 0),n&&this.togglePopup(t),this.applyState(t)},onInputKeyDown:function(e){var t=e.keyCode,n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.base.initState(),o=this.computedValue();i.event=e;var s=function(){n&&e.preventDefault()};t===r.Keys.enter||n&&t===r.Keys.esc||e.altKey&&t===r.Keys.up?(s(),this.applyInputValue(e.currentTarget.value,i,e.keyCode)):e.altKey||t!==r.Keys.up&&t!==r.Keys.down?n||t!==r.Keys.esc?!n&&o&&e.altKey&&t===r.Keys.down&&(this.togglePopup(i),this.applyState(i)):this.clearButtonClick(e):(s(),this.onNavigate(i,t))},handleBlur:function(e){if(this.currentFocused){var t=this.base.initState();t.data.focused=!1,t.events.push({type:"blur"}),t.event=e,this.applyInputValue(e.currentTarget.value,t),this.currentFocused=!1}},triggerOnChange:function(e,t,n){(this.computedValue()!==e||n)&&(t.data.currentValue=e,this.valueDuringOnChange=e,t.events.push(Ee({type:"change"},n||{})))},applyState:function(e){this.base.applyState(e),this.valueDuringOnChange=void 0},suggestValue:function(e){if(this.suggested="",e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,o=t.textField,r=i[x(i,e,o)];if(r){var s=$(r,o);e.toLowerCase()!==s.toLowerCase()&&(this.suggested=s.substring(e.length))}}},focusedIndex:function(e){var t=this,n=this.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.textField,s=n.focusedItemIndex,a=void 0!==e?e:this.computedValue();return void 0!==this.$data.focusedItem?o.findIndex((function(e){return O(e,t.$data.focusedItem,r)})):s?s(o,a,r):Math.max(0,o.indexOf(D(o,a,r)))}},render:function(e){var t,n=Le||e,i=this.$props,o=i.dir,s=i.disabled,a=i.label,l=i.size,d=i.rounded,c=i.fillMode,u=i.style,h=i.loading,f=i.suggest,v=!this.$props.validityStyles||this.validity().valid,m=this.currentFocused,g=this.base,y=this.computedValue(),b=!h&&!!y,k=this.$props.id||this.inputId,w=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings);"string"==typeof f&&(this.suggested=f);var S=function(){var e=this.$props,t=e.textField,i=e.dataItems,o=void 0===i?[]:i,s=r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),a=r.templateRendering.call(this,this.$props.listNoDataRender,r.getListeners.call(this)),l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return n(Y,{id:g.listBoxId,attrs:this.v3?void 0:{id:g.listBoxId,show:l,dataItems:o.slice(),focusedIndex:this.focusedIndex(),value:y,textField:t,valueField:t,highlightSelected:!1,optionsGuid:g.guid,wrapperStyle:{maxHeight:w.height},wrapperCssClass:"k-list-content",itemRender:s,noDataRender:a},show:l,dataItems:o.slice(),focusedIndex:this.focusedIndex(),value:y,textField:t,valueField:t,highlightSelected:!1,optionsGuid:g.guid,ref:"list",wrapperStyle:{maxHeight:w.height},wrapperCssClass:"k-list-content",onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick},itemRender:s,noDataRender:a})},x=n("span",{class:(0,r.classNames)("k-autocomplete k-input",(t={},t["k-input-".concat(ze[l]||l)]=l,t["k-rounded-".concat(je[d]||d)]=d,t["k-input-".concat(c)]=c,t["k-invalid"]=!v,t["k-focus"]=m&&!s,t["k-loading"]=h,t["k-required"]=this.required,t["k-disabled"]=s,t)),ref:(0,r.setRef)(this,"kendoAnchor",this.anchor),style:a?Ee(Ee({},u),{width:void 0}):u,dir:o,attrs:this.v3?void 0:{dir:o}},[function(e,t){var i=this,o=this.$props,r=o.placeholder,a=o.tabIndex,l=o.readonly,d=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;return n(be,{id:t,attrs:this.v3?void 0:{id:t,placeholder:r,tabIndex:a||void 0,accessKey:this.$props.accessKey,value:e,suggestedText:this.suggested,focused:m,name:this.$props.name,disabled:s,readOnly:l,expanded:d,owns:g.listBoxId,activedescendant:"option-"+g.guid+"-"+this.focusedIndex(),ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy},placeholder:r,tabIndex:a||void 0,accessKey:this.$props.accessKey,value:e,suggestedText:this.suggested,focused:m,name:this.$props.name,ref:this.v3?function(e){i.inputRef=e}:"input",onKeydown:this.onInputKeyDown,on:this.v3?void 0:{keydown:this.onInputKeyDown,change:this.onChangeHandler,focus:g.handleFocus,blur:this.handleBlur,clearbuttonclick:this.clearButtonClick},onChange:this.onChangeHandler,onFocus:g.handleFocus,onBlur:this.handleBlur,disabled:s,readOnly:l,expanded:d,owns:g.listBoxId,activedescendant:"option-"+g.guid+"-"+this.focusedIndex(),onClearbuttonclick:this.clearButtonClick,ariaLabelledBy:this.$props.ariaLabelledBy,ariaDescribedBy:this.$props.ariaDescribedBy})}.call(this,y||"",k),function(e){return e?n(Ce,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):n("span")}.call(this,b),function(e){return e?n("span",{class:"k-icon k-input-loading-icon k-i-loading"}):n("span")}.call(this,h),function(){var e,t=this,i=r.templateRendering.call(this,this.$props.header,r.getListeners.call(this)),s=r.templateRendering.call(this,this.$props.footer,r.getListeners.call(this)),a=r.getTemplate.call(this,{h:n,template:i}),d=r.getTemplate.call(this,{h:n,template:s}),c=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,u=void 0!==w.width?w.width:g.popupWidth;return n(p,{onMousedown:function(e){return e.preventDefault()},on:this.v3?void 0:{mousedown:function(e){return e.preventDefault()}},width:u,attrs:this.v3?void 0:{width:u,popupSettings:{animate:w.animate,anchor:this.anchor,show:c,popupClass:(0,r.classNames)(w.popupClass,"k-list",(e={},e["k-list-".concat(ze[l]||l)]=l,e)),className:w.className,appendTo:w.appendTo},dir:void 0!==o?o:this.base.dirCalculated},ref:"container",popupSettings:{animate:w.animate,anchor:this.anchor,show:c,popupClass:(0,r.classNames)(w.popupClass,"k-list",(e={},e["k-list-".concat(ze[l]||l)]=l,e)),className:w.className,appendTo:w.appendTo},dir:void 0!==o?o:this.base.dirCalculated},this.v3?function(){return[a&&n("div",{class:"k-list-header"},[a]),S.call(t),d&&n("div",{class:"k-list-footer"},[d])]}:[a&&n("div",{class:"k-list-header"},[a]),S.call(t),d&&n("div",{class:"k-list-footer"},[d])])}.call(this)]);return a?n("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[x,this.$props.label?k?n("label",{for:k,attrs:this.v3?void 0:{for:k},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):x}},_e=Ke,He=function(){return He=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},He.apply(this,arguments)},We=o,Ue=We.h,qe=We.version&&"3"===We.version[0],Ge=(We.ref,function(e){return e.preventDefault()}),Je=function(e){return e.stopPropagation()},Xe={name:"TagList",props:{dataItems:Array,guid:String,focused:Object,tagRender:[String,Function,Object],tagsRounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},computed:{wrapperClass:function(){var e,t=this.$props,n=t.size,i=t.disabled;return(e={"k-chip-list":!0})["k-chip-list-".concat(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-selection-single"]=!0,e["k-disabled"]=i,e},chipClass:function(){var e,t=this.$props,n=t.size,i=t.disabled,o=t.tagsRounded,s=t.fillMode;return(e={"k-chip":!0,"k-disabled":i})["k-chip-".concat(r.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-rounded-".concat(r.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-chip-".concat(s)]=s,e["k-chip-".concat(s,"-base")]=Boolean(s),e}},setup:qe?function(){return{v3:!!qe}}:void 0,methods:{onTagDelete:function(e,t){this.$emit("tagdelete",e,t)}},render:function(e){var t=Ue||e,n=this.$props,i=n.dataItems,o=n.guid;return t("div",{class:this.wrapperClass,role:"listbox",attrs:this.v3?void 0:{role:"listbox",id:"tagslist-"+o},id:"tagslist-"+o},[i.map((function(e,n){var s=this,a="tag-".concat(o,"-").concat(e.text.toString().replace(/\s+/g,"-")),l=t("div",{class:He(He({},this.chipClass),{"k-focus":e===this.$props.focused}),key:a,id:a,attrs:this.v3?void 0:{id:a,"aria-selected":!0,role:"option","aria-setsize":i.length},onMousedown:Ge,on:this.v3?void 0:{mousedown:Ge,click:Je},onClick:Je,"aria-selected":!0,role:"option","aria-setsize":i.length},[t("span",{class:"k-chip-content"},[e.text]),t("span",{"aria-label":"delete",attrs:this.v3?void 0:{"aria-label":"delete"},class:"k-select",onClick:function(t){return s.onTagDelete(e.data,t)},on:this.v3?void 0:{click:function(t){return s.onTagDelete(e.data,t)}}},[t("span",{class:"k-icon k-i-close"})])]);return r.getTemplate.call(this,{h:t,template:this.$props.tagRender,defaultRendering:l,additionalProps:He(He({},this.$props),{tagData:e,index:n}),additionalListeners:{tagdelete:this.onTagDelete}})}),this)])}},Ye=Xe;!function(e){e[e.PopupList=0]="PopupList",e[e.TagsList=1]="TagsList"}(oe||(oe={}));var Ze,Qe=function(){return Qe=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qe.apply(this,arguments)},et=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))},tt=o,nt=tt.h,it=tt.version&&"3"===tt.version[0],ot=tt.ref,rt=r.kendoThemeMaps.sizeMap,st=r.kendoThemeMaps.roundedMap,at=function(e){return e.preventDefault()},lt=function(e,t,n){return!!e==!!t&&e.text===t.text&&(e===t||function(e,t,n){if(void 0===e&&(e=[]),void 0===t&&(t=[]),e===t)return!0;if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!O(e[i],t[i],n))return!1;return!0}(e.data,t.data,n))},dt=function(e){return e===Ze.CustomItem};!function(e){e[e.None=0]="None",e[e.ListItem=1]="ListItem",e[e.CustomItem=2]="CustomItem"}(Ze||(Ze={}));var ct={name:"KendoMultiSelect",emits:{changemodel:null,"update:modelValue":null,filterchange:null,change:null,focus:null,blur:null,open:null,close:null,scroll:null},model:{event:"changemodel"},props:{autoClose:{type:Boolean,default:!0},allowCustom:Boolean,modelValue:Array,opened:{type:Boolean,default:void 0},disabled:Boolean,dir:String,tabIndex:{type:Number,default:0},accessKey:String,dataItems:Array,textField:String,label:String,loading:Boolean,name:String,value:Array,defaultValue:Array,valueField:String,valuePrimitive:Boolean,dataItemKey:String,placeholder:String,tags:Array,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String,default:void 0},validityStyles:{type:Boolean,default:!0},tagRender:[String,Function,Object],id:String,popupSettings:{type:Object,default:function(){return{animate:!0,height:"200px"}}},itemRender:[String,Function,Object],listNoDataRender:[String,Function,Object],focusedItemIndex:Function,virtual:{type:Object,default:void 0},header:[String,Function,Object],footer:[String,Function,Object],filterable:Boolean,filter:{type:String,default:void 0},ariaLabelledBy:String,ariaDescribedBy:String,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},tagsRounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}}},setup:it?function(){return{v3:!!it,inputRef:ot(null),kendoAnchorRef:ot(null)}}:void 0,computed:{spanClassNames:{get:function(){var e=!this.hasMounted||!this.$props.validityStyles||this.validity().valid,t=this.currentText||$(this.computedValue()[0],this.$props.textField);return{"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!(t&&0!==t),"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}}},created:function(){this.valuesItemsDuringOnChange=null,this._tags=[],this._skipFocusEvent=!1,this.scrollToFocused=!1,this.base=new ie(this),this.anchor=(0,r.guid)(),this.inputId=(0,r.guid)()},data:function(){return{hasMounted:!1,currentText:"",currentValue:"",currentFocused:!1,currentOpened:!1,currentFocusedIndex:void 0,currentFocusedTag:void 0,searchState:{word:"",last:""},suggested:"",activedescendant:oe.PopupList}},watch:{currentOpened:function(e,t){this.prevCurrentOpened=t},opened:function(e,t){this.prevOpened=t},virtual:function(e,t){e&&t&&e.total!==t.total&&(this.virtualTotalHasChanged=!0)}},updated:function(){var e=this.$props.virtual,t=e?e.skip:0,n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=void 0!==this.prevOpened?this.prevOpened:this.prevCurrentOpened,o=!i&&n,r=i&&!n,s=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),a=this.$refs.list,l=this.$refs.scrollElement;if(a&&(this.base.vs.list=a.list,this.base.list=a.list),l&&(this.base.vs.scrollElement=l),a&&this.dataItems.length&&this.base.vs.scrollerRef(a.$el),!s.animate&&r&&this.onPopupClosed(),e&&this.virtualTotalHasChanged)this.base.vs.calcScrollElementHeight(),this.base.vs.reset(),this.virtualTotalHasChanged=!1;else{var d=this.getFocusedState(),c=d.focusedItem,u=d.focusedIndex;o&&e?(this.base.scrollToVirtualItem(e,u-t),this.prevCurrentOpened=!0):o&&!e?(this.base.scrollToItem(u),this.prevCurrentOpened=!0):n&&i&&c&&this.scrollToFocused&&this.base.scrollToItem(u-t)}this.scrollToFocused=!1,this.searchBarRef(),this.setValidity()},mounted:function(){this.hasMounted=!0,this.input=this.v3?this.inputRef.input:this.$refs.input.input,this.base.wrapper=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.element=(0,r.getRef)(this,"kendoAnchor",this.anchor),this.base.didMount(),this.searchBarRef(),this.setValidity()},methods:{computedValue:function(){var e=[];return this.valuesItemsDuringOnChange?e.push.apply(e,this.valuesItemsDuringOnChange):this.$props.value?e.push.apply(e,this.$props.value):void 0!==this.$props.modelValue?e.push.apply(e,this.$props.modelValue):this.currentValue?e.push.apply(e,this.currentValue):this.$props.defaultValue&&e.push.apply(e,this.$props.defaultValue),this.valuePrimitive&&this.findByFieldValue(this.valueField,e)||e},findByFieldValue:function(e,t){var n=this;return t.map((function(t){var i=n.dataItems.findIndex((function(n){return $(n,e)===t}));return n.dataItems[i]||t}))},primitiveValue:function(){var e=this,t=this.computedValue(),n=t.map((function(t){return $(t,e.valueField)}));return this.valuePrimitive?n:t},validity:function(){var e=void 0!==this.$props.validationMessage,t=this.computedValue(),n=!this.$props.required||null!==t&&t.length>0&&void 0!==t;return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:n,valueMissing:null===t}},handleItemSelect:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.dataItemKey,s=n.virtual,a=this.computedValue(),l=o[e-(s?s.skip:0)],d=a.findIndex((function(e){return O(e,l,r)})),c=[];-1!==d?(c=a).splice(d,1):c=et(et([],a,!0),[l],!1),(void 0!==this.$props.filter?this.$props.filter:this.currentText)&&(this.currentText&&(t.data.currentText=""),this.base.filterChanged("",t)),void 0!==this.currentFocusedIndex&&(t.data.currentFocusedIndex=void 0),this.triggerOnChange(c,t),this.base.triggerPageChangeCornerItems(l,t)},onTagDelete:function(e,t){var n=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,i=this.base.initState();i.event=t,n&&this.base.togglePopup(i),this.currentFocused||(i.data.currentFocused=!0);var o=this.computedValue();I(o,e,this.$props.dataItemKey),this.triggerOnChange(o,i),this.applyState(i)},onNavigate:function(e,t){var n=this.$props,i=n.allowCustom,o=n.dataItems,s=void 0===o?[]:o,a=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,l=void 0!==this.$props.filter?this.$props.filter:this.currentText,d=this.getFocusedState(),c=d.focusedType,u=d.focusedIndex,p=i&&l,h=dt(c),f=this.base,v=f.vs;if(a&&t===r.Keys.up&&h)void 0!==this.currentFocusedIndex&&(e.data.currentFocusedIndex=void 0);else{var m=f.navigation.navigate({keyCode:t,current:u,max:(v.enabled?v.total:s.length)-1,min:p?-1:0});void 0!==m&&(this.itemFocus(m,e),this.scrollToFocused=!0)}this.applyState(e)},itemFocus:function(e,t){var n=this.$props,i=n.dataItems,o=void 0===i?[]:i,r=n.allowCustom,s=n.virtual,a=s?s.skip:0,l=void 0!==this.$props.filter?this.$props.filter:this.currentText,d=this.getFocusedState().focusedIndex,c=r&&l,u=o[e-a];u&&d!==e?this.currentFocusedIndex!==e&&(t.data.currentFocusedIndex=e,t.data.activedescendant=oe.PopupList):c&&-1===e&&void 0!==this.currentFocusedIndex&&(t.data.currentFocusedIndex=void 0),this.base.triggerPageChangeCornerItems(u,t)},searchBarRef:function(){var e=this;this.input&&this.currentFocused&&setTimeout((function(){return e.input.focus()}),0)},onChangeHandler:function(e){var t=this.base.initState(),n=e.currentTarget.value,i=void 0!==this.$props.opened?this.$props.opened:this.currentOpened;t.event=e,void 0===this.$props.filter&&(t.data.currentText=n),t.data.currentFocusedIndex=void 0,i||this.base.togglePopup(t),this.base.filterChanged(n,t),this.applyState(t)},clearButtonClick:function(e){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState();n.event=e,e.stopPropagation(),this.computedValue().length>0&&this.triggerOnChange([],n),void 0!==this.currentFocusedIndex&&(n.data.currentFocusedIndex=void 0),t&&this.base.togglePopup(n);var i=void 0!==this.$props.filter?this.$props.filter:this.currentText;w(i)&&""!==i&&this.base.filterChanged("",n),this.currentText&&(n.data.currentText=""),this.applyState(n)},onInputKeyDown:function(e){var t=this,n=e.keyCode,i=void 0!==this.$props.filter?this.$props.filter:this.currentText,o=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=this.getFocusedState().focusedItem,a=this.base.initState();if(a.event=e,!i&&this.computedValue().length>0&&(n===r.Keys.left||n===r.Keys.right||n===r.Keys.home||n===r.Keys.end||n===r.Keys.delete||n===r.Keys.backspace))return this.onTagsNavigate(e,a);var l=function(){e.preventDefault(),t.base.togglePopup(a),t.applyState(a)};o?e.altKey&&n===r.Keys.up?l():n===r.Keys.up||n===r.Keys.down?(e.preventDefault(),this.onNavigate(a,n)):n===r.Keys.enter?(e.preventDefault(),this.$props.allowCustom&&i&&null===s?this.customItemSelect(e):this.selectFocusedItem(e)):n===r.Keys.esc&&l():e.altKey&&n===r.Keys.down&&l()},onTagsNavigate:function(e,t){var n=e.keyCode,i=this.currentFocusedTag,o=this._tags,s=this.$props.dataItemKey,a=i?o.findIndex((function(e){return lt(e,i,s)})):-1,l=void 0,d=-1!==a;if(n===r.Keys.left)l=o[a=d?Math.max(0,a-1):o.length-1];else if(n===r.Keys.right)a===o.length-1?l=void 0:d&&(l=o[a=Math.min(o.length-1,a+1)]);else if(n===r.Keys.home)l=o[0];else if(n===r.Keys.end)l=o[o.length-1];else if(n===r.Keys.delete){if(d){var c=this.computedValue();I(c,o[a].data,s),this.triggerOnChange(c,t)}}else if(n===r.Keys.backspace)if(c=this.computedValue(),d)I(c,o[a].data,s),this.triggerOnChange(c,t);else if(!d&&o.length){var u=o.pop();I(c,u.data,s),this.triggerOnChange(c,t)}l!==i&&(t.data.currentFocusedTag=l,t.data.activedescendant=oe.TagsList),this.applyState(t)},triggerOnChange:function(e,t){void 0===this.$props.value&&(t.data.currentValue=et([],e,!0)),this.valuesItemsDuringOnChange=[],this.setItems(e,this.valuesItemsDuringOnChange),t.events.push({type:"change"})},selectFocusedItem:function(e){var t=this.$props,n=t.dataItems,i=void 0===n?[]:n,o=t.virtual,r=this.getFocusedState().focusedIndex;void 0!==i[r-(o?o.skip:0)]&&this.handleItemClick(r,e)},setItems:function(e,t){t.length=0,t.push.apply(t,e)},getFocusedState:function(){var e,t=this.currentFocusedIndex,n=void 0!==this.$props.filter?this.$props.filter:this.currentText,i=this.$props,o=i.allowCustom,r=i.dataItems,s=void 0===r?[]:r,a=i.dataItemKey,l=i.virtual,d=i.textField,c=i.focusedItemIndex,u=void 0===c?x:c,p=l&&l.skip||0;if(void 0!==t)return{focusedIndex:t,focusedItem:s[t-p],focusedType:Ze.ListItem};var h=this.computedValue();if(o&&n)return{focusedItem:null,focusedIndex:-1,focusedType:Ze.CustomItem};if(n)return{focusedItem:s[e=u(s,n,d)],focusedIndex:e+p,focusedType:Ze.ListItem};if(h.length){var f=h[h.length-1];return e=s.findIndex((function(e){return O(e,f,a)})),void 0!==s[e]?{focusedIndex:e+p,focusedItem:s[e],focusedType:Ze.ListItem}:{focusedType:Ze.None,focusedIndex:-1}}return 0===p?{focusedItem:s[0],focusedIndex:0,focusedType:Ze.ListItem}:{focusedType:Ze.None,focusedIndex:-1}},customItemSelect:function(e){var t,n=void 0!==this.$props.filter?this.$props.filter:this.currentText,i=this.$props.textField;if(n){var o=this.base.initState();o.event=e;var r=i?((t={})[i]=n,t):n;void 0!==this.currentText&&(o.data.currentText=""),o.data.currentFocusedIndex=void 0,this.base.filterChanged("",o);var s=et(et([],this.computedValue(),!0),[r],!1);this.triggerOnChange(s,o),this.base.togglePopup(o),this.applyState(o)}},handleWrapperClick:function(e){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.input;!t&&n&&this.focusElement(n);var i=this.base.initState();i.event=e,this.currentFocused||(i.events.push({type:"focus"}),i.data.currentFocused=!0),this.base.togglePopup(i),this.applyState(i)},handleItemClick:function(e,t){var n=this.base.initState();n.event=t,this.handleItemSelect(e,n),this.$props.autoClose&&this.base.togglePopup(n),this.applyState(n)},handleBlur:function(e){if(this.currentFocused&&!this._skipFocusEvent){var t=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,n=this.base.initState(),i=this.$props,o=i.allowCustom,r=i.filterable;n.event=e,n.data.currentFocused=!1,n.events.push({type:"blur"}),t&&(this.currentOpened&&(n.data.currentOpened=!1),n.events.push({type:"close"})),o||r||!this.currentText||(n.data.currentText=""),this.applyState(n)}},handleFocus:function(e){this._skipFocusEvent||this.base.handleFocus(e)},onPopupOpened:function(){this.input&&this.currentFocused&&this.focusElement(this.input)},onPopupClosed:function(){var e=this;this.currentFocused&&setTimeout((function(){e.currentFocused&&e.focusElement(e.input)}),0)},focusElement:function(e){var t=this;this._skipFocusEvent=!0,e.focus(),setTimeout((function(){return t._skipFocusEvent=!1}),30)},applyState:function(e){this.base.applyState(e),this.valuesItemsDuringOnChange=null},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},focus:function(){this.input&&this.input.focus()}},render:function(e){var t,n=nt||e,i=this.$props,o=i.style,s=i.label,a=i.dir,l=i.disabled,d=i.tags,c=i.textField,u=i.dataItemKey,h=i.virtual,f=i.loading,v=i.size,m=i.fillMode,g=i.rounded,y=i.tagsRounded,b=this.currentFocused,k=Object.assign({},{animate:!0,height:"200px"},this.$props.popupSettings),w=this.currentFocusedTag,S=this.computedValue(),x=(void 0!==this.$props.filter?this.$props.filter:this.currentText)||"",C=!f&&(!!x||S.length>0),I=this.base.vs,O=this.$props.id||this.inputId,D=r.templateRendering.call(this,this.$props.tagRender,r.getListeners.call(this));I.enabled=void 0!==h,void 0!==h&&(I.skip=h.skip,I.total=h.total,I.pageSize=h.pageSize);var T=[];void 0===d?this.computedValue().forEach((function(e){T.push({text:$(e,c),data:[e]})})):T.push.apply(T,d),this.setItems(T,this._tags);var R=!this.$props.validityStyles||this.validity().valid,B=function(){var e=this,t=this.$props.dataItems,i=void 0===t?[]:t,o=r.templateRendering.call(this,this.$props.itemRender,r.getListeners.call(this)),s=r.templateRendering.call(this,this.$props.listNoDataRender,r.getListeners.call(this)),a=h?h.skip:0,l=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,d=this.getFocusedState().focusedIndex,p="translateY(".concat(I.translate,"px)");return n(Y,{id:this.base.listBoxId,attrs:this.v3?void 0:{id:this.base.listBoxId,show:l,dataItems:i.slice(),focusedIndex:d-a,value:this.computedValue(),textField:c,valueField:u,optionsGuid:this.base.guid,wrapperStyle:{maxHeight:k.height},wrapperCssClass:"k-list-content",listStyle:I.enabled?{transform:p}:void 0,skip:a,itemRender:o,noDataRender:s},show:l,dataItems:i.slice(),focusedIndex:d-a,value:this.computedValue(),textField:c,valueField:u,optionsGuid:this.base.guid,ref:"list",wrapperStyle:{maxHeight:k.height},wrapperCssClass:"k-list-content",listStyle:I.enabled?{transform:p}:void 0,key:"listKey",skip:a,onListclick:this.handleItemClick,on:this.v3?void 0:{listclick:this.handleItemClick,scroll:I.scrollHandler},itemRender:o,noDataRender:s,onScroll:I.scrollHandler},this.v3?function(){return[N.call(e)]}:[N.call(e)])},N=function(){return I.enabled&&n("div",{ref:"scrollElement",key:"scrollElementKey"})},P=n("span",{ref:(0,r.setRef)(this,"kendoAnchor",this.anchor),class:(0,r.classNames)("k-multiselect","k-input",(t={},t["k-input-".concat(rt[v]||v)]=v,t["k-rounded-".concat(st[g]||g)]=g,t["k-input-".concat(m)]=m,t["k-focus"]=b&&!l,t["k-disabled"]=l,t["k-invalid"]=!R,t["k-loading"]=f,t["k-required"]=this.required,t)),style:s?Qe(Qe({},o),{width:void 0}):o,dir:a,attrs:this.v3?void 0:{dir:a},onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,click:this.handleWrapperClick,mousedown:M},onClick:this.handleWrapperClick,onMousedown:M},[T.length>0&&n(Ye,{tagsRounded:y,attrs:this.v3?void 0:{tagsRounded:y,size:v,fillMode:m,tagRender:D,dataItems:T,guid:this.base.guid,focused:w?T.find((function(e){return lt(e,w,u)})):void 0},size:v,fillMode:m,tagRender:D,onTagdelete:this.onTagDelete,on:this.v3?void 0:{tagdelete:this.onTagDelete},dataItems:T,guid:this.base.guid,focused:w?T.find((function(e){return lt(e,w,u)})):void 0}),function(e){var t=this,i=this.activedescendant,o=this.$props.placeholder,r=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,s=this.getFocusedState().focusedIndex,a=0!==S.length||x?void 0:o,d=i===oe.TagsList&&void 0!==w?"tag-".concat(this.base.guid,"-").concat(w.text.replace(/\s+/g,"-")):"option-".concat(this.base.guid,"-").concat(s);return n(be,{id:e,attrs:this.v3?void 0:{id:e,size:Math.max((a||"").length,x.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:a,value:x,disabled:l,expanded:r,owns:this.base.listBoxId,activedescendant:d,"aria-describedBy":"tagslist-".concat(this.base.guid," ").concat(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy},size:Math.max((a||"").length,x.length,1),tabIndex:this.$props.tabIndex,accessKey:this.$props.accessKey,placeholder:a,value:x,onChange:this.onChangeHandler,on:this.v3?void 0:{change:this.onChangeHandler,blur:this.handleBlur,keydown:this.onInputKeyDown},onBlur:this.handleBlur,onKeydown:this.onInputKeyDown,ref:this.v3?function(e){t.inputRef=e}:"input",disabled:l,expanded:r,owns:this.base.listBoxId,activedescendant:d,"aria-describedBy":"tagslist-".concat(this.base.guid," ").concat(this.$props.ariaDescribedBy||""),"aria-labelledBy":this.$props.ariaLabelledBy})}.call(this,O),function(e){return e?n(Ce,{onClearclick:this.clearButtonClick,on:this.v3?void 0:{clearclick:this.clearButtonClick},key:"clearbutton"}):n("span")}.call(this,C),function(e){return e?n("span",{class:"k-icon k-input-loading-icon k-i-loading"}):n("span")}.call(this,f),function(){var e,t=this,i=this.base,o=this.$props,s=o.allowCustom,l=o.dataItems,d=void 0===l?[]:l,c=r.templateRendering.call(this,this.$props.header,r.getListeners.call(this)),u=r.templateRendering.call(this,this.$props.footer,r.getListeners.call(this)),f=r.getTemplate.call(this,{h:n,template:c}),m=r.getTemplate.call(this,{h:n,template:u}),g=void 0!==this.$props.opened?this.$props.opened:this.currentOpened,y=void 0!==this.$props.filter?this.$props.filter:this.currentText,b=void 0!==k.width?k.width:i.popupWidth,w=this.getFocusedState().focusedType,S=s&&y&&n("div",{class:"k-list",key:"customitem",onClick:this.customItemSelect,on:this.v3?void 0:{click:this.customItemSelect}},[n("div",{class:(0,r.classNames)("k-item k-custom-item",{"k-focus":dt(w)})},[y,n("span",{class:"k-icon k-i-plus",style:{float:"right"}})])]);return n(p,{ref:"container",onMousedown:at,on:this.v3?void 0:{mousedown:at,blur:this.handleBlur},dir:void 0!==a?a:i.dirCalculated,attrs:this.v3?void 0:{dir:void 0!==a?a:i.dirCalculated,width:b,popupSettings:{animate:k.animate,anchor:this.anchor,show:g,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:(0,r.classNames)(k.popupClass,"k-list",(e={},e["k-list-".concat(rt[v]||v)]=v,e["k-virtual-list"]=this.base.vs.enabled,e)),className:k.className,appendTo:k.appendTo},itemsCount:d.length},onBlur:this.handleBlur,width:b,popupSettings:{animate:k.animate,anchor:this.anchor,show:g,onOpen:this.onPopupOpened,onClose:this.onPopupClosed,popupClass:(0,r.classNames)(k.popupClass,"k-list",(e={},e["k-list-".concat(rt[v]||v)]=v,e["k-virtual-list"]=this.base.vs.enabled,e)),className:k.className,appendTo:k.appendTo},itemsCount:d.length},this.v3?function(){return[f&&n("div",{class:"k-list-header"},[f]),S,B.call(t),m&&n("div",{class:"k-list-footer"},[m]),h&&f]}:[f&&n("div",{class:"k-list-header"},[f]),S,B.call(t),m&&n("div",{class:"k-list-footer"},[m]),h&&f])}.call(this)]);return s?n("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[P,this.$props.label?O?n("label",{for:O,attrs:this.v3?void 0:{for:O},class:"k-label"},[this.$props.label]):n("span",{class:"k-label"},[this.$props.label]):null]):P}},ut=ct},9157:(e,t,n)=>{function i(e){this.content=e}n.r(t),n.d(t,{AddMarkStep:()=>Ue,AllSelection:()=>ht,CellSelection:()=>Pa,ContentMatch:()=>F,DOMParser:()=>se,DOMSerializer:()=>ge,Decoration:()=>zs,DecorationSet:()=>Hs,EditorState:()=>St,EditorView:()=>ia,Fragment:()=>a,GapCursor:()=>qc,HistoryState:()=>dd,InputRule:()=>$d,MapResult:()=>Se,Mapping:()=>Ce,Mark:()=>p,MarkType:()=>ie,Node:()=>E,NodeRange:()=>B,NodeSelection:()=>ut,NodeType:()=>Q,Plugin:()=>It,PluginKey:()=>Mt,RemoveMarkStep:()=>qe,ReplaceAroundStep:()=>Ne,ReplaceError:()=>h,ReplaceStep:()=>Be,ResolvedPos:()=>O,Schema:()=>oe,Selection:()=>st,SelectionRange:()=>lt,Slice:()=>f,Step:()=>Te,StepMap:()=>xe,StepResult:()=>Re,TableMap:()=>fa,TableView:()=>Ol,TextSelection:()=>dt,Transaction:()=>gt,Transform:()=>Ie,TransformError:()=>$e,__clipCells:()=>Fa,__endComposition:()=>Ts,__insertCells:()=>Ka,__parseFromClipboard:()=>Yr,__pastedCells:()=>La,__serializeForClipboard:()=>Xr,activeNode:()=>Bn,addColSpan:()=>Ba,addColumn:()=>ol,addColumnAfter:()=>sl,addColumnBefore:()=>rl,addListNodes:()=>_n,addRow:()=>cl,addRowAfter:()=>iu,addRowBefore:()=>nu,alignBlocks:()=>Nn,alignCenterRules:()=>eo,alignJustifyRules:()=>to,alignLeftRules:()=>Zi,alignRemoveRules:()=>no,alignRightRules:()=>Qi,applyInlineStyle:()=>bn,applyLink:()=>wn,autoJoin:()=>Ii,baseKeymap:()=>Ni,blockNodes:()=>$n,blockquote:()=>Pi,bold:()=>Ad,buildKeymap:()=>Ud,buildListKeymap:()=>qd,bulletList:()=>zn,canBeIndented:()=>zi,canIndentAsListItem:()=>Ai,canInsert:()=>Wt,canJoin:()=>ze,canOutdentAsListItem:()=>Fi,canSplit:()=>Fe,caretColor:()=>Hc,caretColorKey:()=>_c,cellAround:()=>wa,chainCommands:()=>Oi,changeTextBlock:()=>Cn,cleanFormatting:()=>En,cleanMarks:()=>ln,cleanTextBlockFormatting:()=>On,closeDoubleQuote:()=>Bd,closeHistory:()=>gd,closeSingleQuote:()=>Pd,colCount:()=>Da,columnIsHeader:()=>Na,columnResizing:()=>Tl,columnResizingPluginKey:()=>Ml,convertMsLists:()=>nc,createParagraphNear:()=>hi,createTable:()=>eu,deleteColumn:()=>ll,deleteRow:()=>fl,deleteSelection:()=>Qn,deleteTable:()=>Il,domToPmDoc:()=>At,dropCursor:()=>Wc,dropPoint:()=>He,ellipsis:()=>Td,emDash:()=>Md,exitCode:()=>pi,expandSelection:()=>tn,expandToWordWrap:()=>nn,find:()=>Sc,findAll:()=>xc,findAt:()=>wc,findCell:()=>Oa,findWrapping:()=>Le,fixTables:()=>nl,fixTablesKey:()=>el,formatBlockElements:()=>In,gapCursor:()=>Jc,getActiveMarks:()=>hn,getBlockFormats:()=>Dn,getHtml:()=>zt,getInlineStyles:()=>mn,getMark:()=>pn,getNodeFromSelection:()=>Yt,getSelectionText:()=>Xt,goToNextCell:()=>$l,handlePaste:()=>Ja,hasMark:()=>dn,hasNode:()=>Tn,hasSameMarkup:()=>Jt,history:()=>kd,htmlToFragment:()=>Vt,imageResizeKey:()=>Ec,imageResizing:()=>Kc,inSameTable:()=>Ia,indent:()=>ji,indentBlocks:()=>Vi,indentHtml:()=>Qt,indentRules:()=>Yn,inputRules:()=>Id,insertImage:()=>xn,insertNode:()=>Gt,insertPoint:()=>_e,insertText:()=>Sn,isAligned:()=>Pn,isInTable:()=>Sa,isIndented:()=>Li,italic:()=>Fd,joinBackward:()=>ei,joinDown:()=>li,joinForward:()=>oi,joinPoint:()=>Ke,joinUp:()=>ai,keydownHandler:()=>mo,keymap:()=>vo,lift:()=>di,liftBlockquote:()=>Ei,liftEmptyBlock:()=>fi,liftListItem:()=>Un,liftTarget:()=>Ve,link:()=>Hd,listItem:()=>jn,listStyle:()=>qi,macBaseKeymap:()=>Ri,marks:()=>Jl,mergeCells:()=>ml,moveCellForward:()=>$a,newlineInCode:()=>ci,nextCell:()=>Ma,nodes:()=>td,openDoubleQuote:()=>Rd,openSingleQuote:()=>Nd,orderedList:()=>Fn,outdent:()=>Ki,outdentRules:()=>Zn,parentBlockFormat:()=>Rn,parseContent:()=>Ft,pasteCleanup:()=>uc,pcBaseKeymap:()=>Ti,placeholder:()=>Mc,pmAddRowAfter:()=>pl,pmAddRowBefore:()=>ul,pmDocToFragment:()=>Lt,pointsAtCell:()=>Ca,redo:()=>Sd,redoDepth:()=>Cd,removeAllMarks:()=>an,removeAttribute:()=>sc,removeColSpan:()=>Ra,removeColumn:()=>al,removeComments:()=>oc,removeLink:()=>kn,removeRow:()=>hl,removeTag:()=>rc,replace:()=>Cc,replaceAll:()=>$c,replaceImageSourcesFromRtf:()=>kc,replaceStep:()=>Ge,rowIsHeader:()=>dl,sanitize:()=>ic,sanitizeClassAttr:()=>ac,sanitizeStyleAttr:()=>cc,selectAll:()=>yi,selectNodeBackward:()=>ni,selectNodeForward:()=>ri,selectParentNode:()=>gi,selectTextblockEnd:()=>Si,selectTextblockStart:()=>wi,selectedLineTextOnly:()=>Zt,selectedRect:()=>il,selectionCell:()=>xa,selectionMarks:()=>un,setAttr:()=>Ta,setBlockType:()=>Ci,setCellAttr:()=>bl,setHtml:()=>jt,sinkListItem:()=>qn,smartQuotes:()=>Ed,spacesFix:()=>Bc,splitBlock:()=>vi,splitBlockKeepMarks:()=>mi,splitCell:()=>gl,splitCellWithType:()=>yl,splitListItem:()=>Wn,strikethrough:()=>jd,subscript:()=>Kd,superscript:()=>_d,tableEditing:()=>Vl,tableEditingKey:()=>ka,tableNodeTypes:()=>ba,tableNodes:()=>ya,textHighlight:()=>Pc,textHighlightKey:()=>Nc,textblockTypeInputRule:()=>Ld,toggleHeader:()=>wl,toggleHeaderCell:()=>Cl,toggleHeaderColumn:()=>xl,toggleHeaderRow:()=>Sl,toggleInlineFormat:()=>yn,toggleList:()=>Gi,toggleMark:()=>$i,toggleOrderedList:()=>Xi,toggleUnorderedList:()=>Ji,trimWhitespace:()=>Et,underline:()=>zd,undo:()=>wd,undoDepth:()=>xd,undoInputRule:()=>Dd,updateColumnsOnResize:()=>Dl,wrapIn:()=>xi,wrapInList:()=>Hn,wrappingInputRule:()=>Vd}),i.prototype={constructor:i,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var o=n&&n!=e?this.remove(n):this,r=o.find(e),s=o.content.slice();return-1==r?s.push(n||e,t):(s[r+1]=t,n&&(s[r]=n)),new i(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new i(n)},addToStart:function(e,t){return new i([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new i(n)},addBefore:function(e,t,n){var o=this.remove(t),r=o.content.slice(),s=o.find(e);return r.splice(-1==s?r.length:s,0,t,n),new i(r)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=i.from(e)).size?new i(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=i.from(e)).size?new i(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=i.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},get size(){return this.content.length>>1}},i.from=function(e){if(e instanceof i)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new i(t)};const o=i;function r(e,t,n){for(var i=0;;i++){if(i==e.childCount||i==t.childCount)return e.childCount==t.childCount?null:n;var o=e.child(i),s=t.child(i);if(o!=s){if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){for(var a=0;o.text[a]==s.text[a];a++)n++;return n}if(o.content.size||s.content.size){var l=r(o.content,s.content,n+1);if(null!=l)return l}n+=o.nodeSize}else n+=o.nodeSize}}function s(e,t,n,i){for(var o=e.childCount,r=t.childCount;;){if(0==o||0==r)return o==r?null:{a:n,b:i};var a=e.child(--o),l=t.child(--r),d=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:n,b:i};if(a.isText&&a.text!=l.text){for(var c=0,u=Math.min(a.text.length,l.text.length);c<u&&a.text[a.text.length-c-1]==l.text[l.text.length-c-1];)c++,n--,i--;return{a:n,b:i}}if(a.content.size||l.content.size){var p=s(a.content,l.content,n-1,i-1);if(p)return p}n-=d,i-=d}else n-=d,i-=d}}var a=function(e,t){if(this.content=e,this.size=t||0,null==t)for(var n=0;n<e.length;n++)this.size+=e[n].nodeSize},l={firstChild:{configurable:!0},lastChild:{configurable:!0},childCount:{configurable:!0}};a.prototype.nodesBetween=function(e,t,n,i,o){void 0===i&&(i=0);for(var r=0,s=0;s<t;r++){var a=this.content[r],l=s+a.nodeSize;if(l>e&&!1!==n(a,i+s,o,r)&&a.content.size){var d=s+1;a.nodesBetween(Math.max(0,e-d),Math.min(a.content.size,t-d),n,i+d)}s=l}},a.prototype.descendants=function(e){this.nodesBetween(0,this.size,e)},a.prototype.textBetween=function(e,t,n,i){var o="",r=!0;return this.nodesBetween(e,t,(function(s,a){s.isText?(o+=s.text.slice(Math.max(e,a)-a,t-a),r=!n):s.isLeaf&&i?(o+="function"==typeof i?i(s):i,r=!n):!r&&s.isBlock&&(o+=n,r=!0)}),0),o},a.prototype.append=function(e){if(!e.size)return this;if(!this.size)return e;var t=this.lastChild,n=e.firstChild,i=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(i[i.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)i.push(e.content[o]);return new a(i,this.size+e.size)},a.prototype.cut=function(e,t){if(null==t&&(t=this.size),0==e&&t==this.size)return this;var n=[],i=0;if(t>e)for(var o=0,r=0;r<t;o++){var s=this.content[o],l=r+s.nodeSize;l>e&&((r<e||l>t)&&(s=s.isText?s.cut(Math.max(0,e-r),Math.min(s.text.length,t-r)):s.cut(Math.max(0,e-r-1),Math.min(s.content.size,t-r-1))),n.push(s),i+=s.nodeSize),r=l}return new a(n,i)},a.prototype.cutByIndex=function(e,t){return e==t?a.empty:0==e&&t==this.content.length?this:new a(this.content.slice(e,t))},a.prototype.replaceChild=function(e,t){var n=this.content[e];if(n==t)return this;var i=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return i[e]=t,new a(i,o)},a.prototype.addToStart=function(e){return new a([e].concat(this.content),this.size+e.nodeSize)},a.prototype.addToEnd=function(e){return new a(this.content.concat(e),this.size+e.nodeSize)},a.prototype.eq=function(e){if(this.content.length!=e.content.length)return!1;for(var t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0},l.firstChild.get=function(){return this.content.length?this.content[0]:null},l.lastChild.get=function(){return this.content.length?this.content[this.content.length-1]:null},l.childCount.get=function(){return this.content.length},a.prototype.child=function(e){var t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t},a.prototype.maybeChild=function(e){return this.content[e]},a.prototype.forEach=function(e){for(var t=0,n=0;t<this.content.length;t++){var i=this.content[t];e(i,n,t),n+=i.nodeSize}},a.prototype.findDiffStart=function(e,t){return void 0===t&&(t=0),r(this,e,t)},a.prototype.findDiffEnd=function(e,t,n){return void 0===t&&(t=this.size),void 0===n&&(n=e.size),s(this,e,t,n)},a.prototype.findIndex=function(e,t){if(void 0===t&&(t=-1),0==e)return c(0,e);if(e==this.size)return c(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position "+e+" outside of fragment ("+this+")");for(var n=0,i=0;;n++){var o=i+this.child(n).nodeSize;if(o>=e)return o==e||t>0?c(n+1,o):c(n,i);i=o}},a.prototype.toString=function(){return"<"+this.toStringInner()+">"},a.prototype.toStringInner=function(){return this.content.join(", ")},a.prototype.toJSON=function(){return this.content.length?this.content.map((function(e){return e.toJSON()})):null},a.fromJSON=function(e,t){if(!t)return a.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new a(t.map(e.nodeFromJSON))},a.fromArray=function(e){if(!e.length)return a.empty;for(var t,n=0,i=0;i<e.length;i++){var o=e[i];n+=o.nodeSize,i&&o.isText&&e[i-1].sameMarkup(o)?(t||(t=e.slice(0,i)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new a(t||e,n)},a.from=function(e){if(!e)return a.empty;if(e instanceof a)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new a([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))},Object.defineProperties(a.prototype,l);var d={index:0,offset:0};function c(e,t){return d.index=e,d.offset=t,d}function u(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;var n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(var i=0;i<e.length;i++)if(!u(e[i],t[i]))return!1}else{for(var o in e)if(!(o in t)||!u(e[o],t[o]))return!1;for(var r in t)if(!(r in e))return!1}return!0}a.empty=new a([],0);var p=function(e,t){this.type=e,this.attrs=t};function h(e){var t=Error.call(this,e);return t.__proto__=h.prototype,t}p.prototype.addToSet=function(e){for(var t,n=!1,i=0;i<e.length;i++){var o=e[i];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,i));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t},p.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e},p.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1},p.prototype.eq=function(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)},p.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return e},p.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");var n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type "+t.type+" in this schema");return n.create(t.attrs)},p.sameSet=function(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0},p.setFrom=function(e){if(!e||0==e.length)return p.none;if(e instanceof p)return[e];var t=e.slice();return t.sort((function(e,t){return e.type.rank-t.type.rank})),t},p.none=[],h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.name="ReplaceError";var f=function(e,t,n){this.content=e,this.openStart=t,this.openEnd=n},v={size:{configurable:!0}};function m(e,t,n){var i=e.findIndex(t),o=i.index,r=i.offset,s=e.maybeChild(o),a=e.findIndex(n),l=a.index,d=a.offset;if(r==t||s.isText){if(d!=n&&!e.child(l).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(o!=l)throw new RangeError("Removing non-flat range");return e.replaceChild(o,s.copy(m(s.content,t-r-1,n-r-1)))}function g(e,t,n,i){var o=e.findIndex(t),r=o.index,s=o.offset,a=e.maybeChild(r);if(s==t||a.isText)return i&&!i.canReplace(r,r,n)?null:e.cut(0,t).append(n).append(e.cut(t));var l=g(a.content,t-s-1,n);return l&&e.replaceChild(r,a.copy(l))}function y(e,t,n){if(n.openStart>e.depth)throw new h("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new h("Inconsistent open depths");return b(e,t,n,0)}function b(e,t,n,i){var o=e.index(i),r=e.node(i);if(o==t.index(i)&&i<e.depth-n.openStart){var s=b(e,t,n,i+1);return r.copy(r.content.replaceChild(o,s))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=i||t.depth!=i){var l=function(e,t){for(var n=t.depth-e.openStart,i=t.node(n).copy(e.content),o=n-1;o>=0;o--)i=t.node(o).copy(a.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}(n,e);return C(r,$(e,l.start,l.end,t,i))}var d=e.parent,c=d.content;return C(d,c.cut(0,e.parentOffset).append(n.content).append(c.cut(t.parentOffset)))}return C(r,I(e,t,i))}function k(e,t){if(!t.type.compatibleContent(e.type))throw new h("Cannot join "+t.type.name+" onto "+e.type.name)}function w(e,t,n){var i=e.node(n);return k(i,t.node(n)),i}function S(e,t){var n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function x(e,t,n,i){var o=(t||e).node(n),r=0,s=t?t.index(n):o.childCount;e&&(r=e.index(n),e.depth>n?r++:e.textOffset&&(S(e.nodeAfter,i),r++));for(var a=r;a<s;a++)S(o.child(a),i);t&&t.depth==n&&t.textOffset&&S(t.nodeBefore,i)}function C(e,t){if(!e.type.validContent(t))throw new h("Invalid content for node "+e.type.name);return e.copy(t)}function $(e,t,n,i,o){var r=e.depth>o&&w(e,t,o+1),s=i.depth>o&&w(n,i,o+1),l=[];return x(null,e,o,l),r&&s&&t.index(o)==n.index(o)?(k(r,s),S(C(r,$(e,t,n,i,o+1)),l)):(r&&S(C(r,I(e,t,o+1)),l),x(t,n,o,l),s&&S(C(s,I(n,i,o+1)),l)),x(i,null,o,l),new a(l)}function I(e,t,n){var i=[];return x(null,e,n,i),e.depth>n&&S(C(w(e,t,n+1),I(e,t,n+1)),i),x(t,null,n,i),new a(i)}v.size.get=function(){return this.content.size-this.openStart-this.openEnd},f.prototype.insertAt=function(e,t){var n=g(this.content,e+this.openStart,t,null);return n&&new f(n,this.openStart,this.openEnd)},f.prototype.removeBetween=function(e,t){return new f(m(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)},f.prototype.eq=function(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd},f.prototype.toString=function(){return this.content+"("+this.openStart+","+this.openEnd+")"},f.prototype.toJSON=function(){if(!this.content.size)return null;var e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e},f.fromJSON=function(e,t){if(!t)return f.empty;var n=t.openStart||0,i=t.openEnd||0;if("number"!=typeof n||"number"!=typeof i)throw new RangeError("Invalid input for Slice.fromJSON");return new f(a.fromJSON(e,t.content),n,i)},f.maxOpen=function(e,t){void 0===t&&(t=!0);for(var n=0,i=0,o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(var r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)i++;return new f(e,n,i)},Object.defineProperties(f.prototype,v),f.empty=new f(a.empty,0,0);var O=function(e,t,n){this.pos=e,this.path=t,this.depth=t.length/3-1,this.parentOffset=n},D={parent:{configurable:!0},doc:{configurable:!0},textOffset:{configurable:!0},nodeAfter:{configurable:!0},nodeBefore:{configurable:!0}};O.prototype.resolveDepth=function(e){return null==e?this.depth:e<0?this.depth+e:e},D.parent.get=function(){return this.node(this.depth)},D.doc.get=function(){return this.node(0)},O.prototype.node=function(e){return this.path[3*this.resolveDepth(e)]},O.prototype.index=function(e){return this.path[3*this.resolveDepth(e)+1]},O.prototype.indexAfter=function(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)},O.prototype.start=function(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1},O.prototype.end=function(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size},O.prototype.before=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]},O.prototype.after=function(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize},D.textOffset.get=function(){return this.pos-this.path[this.path.length-1]},D.nodeAfter.get=function(){var e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;var n=this.pos-this.path[this.path.length-1],i=e.child(t);return n?e.child(t).cut(n):i},D.nodeBefore.get=function(){var e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)},O.prototype.posAtIndex=function(e,t){t=this.resolveDepth(t);for(var n=this.path[3*t],i=0==t?0:this.path[3*t-1]+1,o=0;o<e;o++)i+=n.child(o).nodeSize;return i},O.prototype.marks=function(){var e=this.parent,t=this.index();if(0==e.content.size)return p.none;if(this.textOffset)return e.child(t).marks;var n=e.maybeChild(t-1),i=e.maybeChild(t);if(!n){var o=n;n=i,i=o}for(var r=n.marks,s=0;s<r.length;s++)!1!==r[s].type.spec.inclusive||i&&r[s].isInSet(i.marks)||(r=r[s--].removeFromSet(r));return r},O.prototype.marksAcross=function(e){var t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;for(var n=t.marks,i=e.parent.maybeChild(e.index()),o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||i&&n[o].isInSet(i.marks)||(n=n[o--].removeFromSet(n));return n},O.prototype.sharedDepth=function(e){for(var t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0},O.prototype.blockRange=function(e,t){if(void 0===e&&(e=this),e.pos<this.pos)return e.blockRange(this);for(var n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new B(this,e,n)},O.prototype.sameParent=function(e){return this.pos-this.parentOffset==e.pos-e.parentOffset},O.prototype.max=function(e){return e.pos>this.pos?e:this},O.prototype.min=function(e){return e.pos<this.pos?e:this},O.prototype.toString=function(){for(var e="",t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset},O.resolve=function(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");for(var n=[],i=0,o=t,r=e;;){var s=r.content.findIndex(o),a=s.index,l=s.offset,d=o-l;if(n.push(r,a,i+l),!d)break;if((r=r.child(a)).isText)break;o=d-1,i+=l+1}return new O(t,n,o)},O.resolveCached=function(e,t){for(var n=0;n<M.length;n++){var i=M[n];if(i.pos==t&&i.doc==e)return i}var o=M[T]=O.resolve(e,t);return T=(T+1)%R,o},Object.defineProperties(O.prototype,D);var M=[],T=0,R=12,B=function(e,t,n){this.$from=e,this.$to=t,this.depth=n},N={start:{configurable:!0},end:{configurable:!0},parent:{configurable:!0},startIndex:{configurable:!0},endIndex:{configurable:!0}};N.start.get=function(){return this.$from.before(this.depth+1)},N.end.get=function(){return this.$to.after(this.depth+1)},N.parent.get=function(){return this.$from.node(this.depth)},N.startIndex.get=function(){return this.$from.index(this.depth)},N.endIndex.get=function(){return this.$to.indexAfter(this.depth)},Object.defineProperties(B.prototype,N);var P=Object.create(null),E=function(e,t,n,i){this.type=e,this.attrs=t,this.content=n||a.empty,this.marks=i||p.none},V={nodeSize:{configurable:!0},childCount:{configurable:!0},textContent:{configurable:!0},firstChild:{configurable:!0},lastChild:{configurable:!0},isBlock:{configurable:!0},isTextblock:{configurable:!0},inlineContent:{configurable:!0},isInline:{configurable:!0},isText:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0}};V.nodeSize.get=function(){return this.isLeaf?1:2+this.content.size},V.childCount.get=function(){return this.content.childCount},E.prototype.child=function(e){return this.content.child(e)},E.prototype.maybeChild=function(e){return this.content.maybeChild(e)},E.prototype.forEach=function(e){this.content.forEach(e)},E.prototype.nodesBetween=function(e,t,n,i){void 0===i&&(i=0),this.content.nodesBetween(e,t,n,i,this)},E.prototype.descendants=function(e){this.nodesBetween(0,this.content.size,e)},V.textContent.get=function(){return this.textBetween(0,this.content.size,"")},E.prototype.textBetween=function(e,t,n,i){return this.content.textBetween(e,t,n,i)},V.firstChild.get=function(){return this.content.firstChild},V.lastChild.get=function(){return this.content.lastChild},E.prototype.eq=function(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)},E.prototype.sameMarkup=function(e){return this.hasMarkup(e.type,e.attrs,e.marks)},E.prototype.hasMarkup=function(e,t,n){return this.type==e&&u(this.attrs,t||e.defaultAttrs||P)&&p.sameSet(this.marks,n||p.none)},E.prototype.copy=function(e){return void 0===e&&(e=null),e==this.content?this:new this.constructor(this.type,this.attrs,e,this.marks)},E.prototype.mark=function(e){return e==this.marks?this:new this.constructor(this.type,this.attrs,this.content,e)},E.prototype.cut=function(e,t){return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))},E.prototype.slice=function(e,t,n){if(void 0===t&&(t=this.content.size),void 0===n&&(n=!1),e==t)return f.empty;var i=this.resolve(e),o=this.resolve(t),r=n?0:i.sharedDepth(t),s=i.start(r),a=i.node(r).content.cut(i.pos-s,o.pos-s);return new f(a,i.depth-r,o.depth-r)},E.prototype.replace=function(e,t,n){return y(this.resolve(e),this.resolve(t),n)},E.prototype.nodeAt=function(e){for(var t=this;;){var n=t.content.findIndex(e),i=n.index,o=n.offset;if(!(t=t.maybeChild(i)))return null;if(o==e||t.isText)return t;e-=o+1}},E.prototype.childAfter=function(e){var t=this.content.findIndex(e),n=t.index,i=t.offset;return{node:this.content.maybeChild(n),index:n,offset:i}},E.prototype.childBefore=function(e){if(0==e)return{node:null,index:0,offset:0};var t=this.content.findIndex(e),n=t.index,i=t.offset;if(i<e)return{node:this.content.child(n),index:n,offset:i};var o=this.content.child(n-1);return{node:o,index:n-1,offset:i-o.nodeSize}},E.prototype.resolve=function(e){return O.resolveCached(this,e)},E.prototype.resolveNoCache=function(e){return O.resolve(this,e)},E.prototype.rangeHasMark=function(e,t,n){var i=!1;return t>e&&this.nodesBetween(e,t,(function(e){return n.isInSet(e.marks)&&(i=!0),!i})),i},V.isBlock.get=function(){return this.type.isBlock},V.isTextblock.get=function(){return this.type.isTextblock},V.inlineContent.get=function(){return this.type.inlineContent},V.isInline.get=function(){return this.type.isInline},V.isText.get=function(){return this.type.isText},V.isLeaf.get=function(){return this.type.isLeaf},V.isAtom.get=function(){return this.type.isAtom},E.prototype.toString=function(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);var e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),A(this.marks,e)},E.prototype.contentMatchAt=function(e){var t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t},E.prototype.canReplace=function(e,t,n,i,o){void 0===n&&(n=a.empty),void 0===i&&(i=0),void 0===o&&(o=n.childCount);var r=this.contentMatchAt(e).matchFragment(n,i,o),s=r&&r.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(var l=i;l<o;l++)if(!this.type.allowsMarks(n.child(l).marks))return!1;return!0},E.prototype.canReplaceWith=function(e,t,n,i){if(i&&!this.type.allowsMarks(i))return!1;var o=this.contentMatchAt(e).matchType(n),r=o&&o.matchFragment(this.content,t);return!!r&&r.validEnd},E.prototype.canAppend=function(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)},E.prototype.check=function(){if(!this.type.validContent(this.content))throw new RangeError("Invalid content for node "+this.type.name+": "+this.content.toString().slice(0,50));for(var e=p.none,t=0;t<this.marks.length;t++)e=this.marks[t].addToSet(e);if(!p.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node "+this.type.name+": "+this.marks.map((function(e){return e.type.name})));this.content.forEach((function(e){return e.check()}))},E.prototype.toJSON=function(){var e={type:this.type.name};for(var t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((function(e){return e.toJSON()}))),e},E.fromJSON=function(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");var n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}var i=a.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,i,n)},Object.defineProperties(E.prototype,V);var L=function(e){function t(t,n,i,o){if(e.call(this,t,n,null,o),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={textContent:{configurable:!0},nodeSize:{configurable:!0}};return t.prototype.toString=function(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):A(this.marks,JSON.stringify(this.text))},n.textContent.get=function(){return this.text},t.prototype.textBetween=function(e,t){return this.text.slice(e,t)},n.nodeSize.get=function(){return this.text.length},t.prototype.mark=function(e){return e==this.marks?this:new t(this.type,this.attrs,this.text,e)},t.prototype.withText=function(e){return e==this.text?this:new t(this.type,this.attrs,e,this.marks)},t.prototype.cut=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.text.length),0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))},t.prototype.eq=function(e){return this.sameMarkup(e)&&this.text==e.text},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this);return t.text=this.text,t},Object.defineProperties(t.prototype,n),t}(E);function A(e,t){for(var n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}var F=function(e){this.validEnd=e,this.next=[],this.wrapCache=[]},z={inlineContent:{configurable:!0},defaultType:{configurable:!0},edgeCount:{configurable:!0}};F.parse=function(e,t){var n=new j(e,t);if(null==n.next)return F.empty;var i=_(n);n.next&&n.err("Unexpected trailing text");var o,r,s=(o=function(e){var t=[[]];return o(function e(t,r){if("choice"==t.type)return t.exprs.reduce((function(t,n){return t.concat(e(n,r))}),[]);if("seq"==t.type)for(var s=0;;s++){var a=e(t.exprs[s],r);if(s==t.exprs.length-1)return a;o(a,r=n())}else{if("star"==t.type){var l=n();return i(r,l),o(e(t.expr,l),l),[i(l)]}if("plus"==t.type){var d=n();return o(e(t.expr,r),d),o(e(t.expr,d),d),[i(d)]}if("opt"==t.type)return[i(r)].concat(e(t.expr,r));if("range"==t.type){for(var c=r,u=0;u<t.min;u++){var p=n();o(e(t.expr,c),p),c=p}if(-1==t.max)o(e(t.expr,c),c);else for(var h=t.min;h<t.max;h++){var f=n();i(c,f),o(e(t.expr,c),f),c=f}return[i(c)]}if("name"==t.type)return[i(r,null,t.value)]}}(e,0),n()),t;function n(){return t.push([])-1}function i(e,n,i){var o={term:i,to:n};return t[e].push(o),o}function o(e,t){e.forEach((function(e){return e.to=t}))}}(i),r=Object.create(null),function e(t){var n=[];t.forEach((function(e){o[e].forEach((function(e){var t=e.term,i=e.to;if(t){var r=n.indexOf(t),s=r>-1&&n[r+1];J(o,i).forEach((function(e){s||n.push(t,s=[]),-1==s.indexOf(e)&&s.push(e)}))}}))}));for(var i=r[t.join(",")]=new F(t.indexOf(o.length-1)>-1),s=0;s<n.length;s+=2){var a=n[s+1].sort(G);i.next.push(n[s],r[a.join(",")]||e(a))}return i}(J(o,0)));return function(e,t){for(var n=0,i=[e];n<i.length;n++){for(var o=i[n],r=!o.validEnd,s=[],a=0;a<o.next.length;a+=2){var l=o.next[a],d=o.next[a+1];s.push(l.name),!r||l.isText||l.hasRequiredAttrs()||(r=!1),-1==i.indexOf(d)&&i.push(d)}r&&t.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(s,n),s},F.prototype.matchType=function(e){for(var t=0;t<this.next.length;t+=2)if(this.next[t]==e)return this.next[t+1];return null},F.prototype.matchFragment=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.childCount);for(var i=this,o=t;i&&o<n;o++)i=i.matchType(e.child(o).type);return i},z.inlineContent.get=function(){var e=this.next[0];return!!e&&e.isInline},z.defaultType.get=function(){for(var e=0;e<this.next.length;e+=2){var t=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}},F.prototype.compatible=function(e){for(var t=0;t<this.next.length;t+=2)for(var n=0;n<e.next.length;n+=2)if(this.next[t]==e.next[n])return!0;return!1},F.prototype.fillBefore=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=0);var i=[this];return function o(r,s){var l=r.matchFragment(e,n);if(l&&(!t||l.validEnd))return a.from(s.map((function(e){return e.createAndFill()})));for(var d=0;d<r.next.length;d+=2){var c=r.next[d],u=r.next[d+1];if(!c.isText&&!c.hasRequiredAttrs()&&-1==i.indexOf(u)){i.push(u);var p=o(u,s.concat(c));if(p)return p}}}(this,[])},F.prototype.findWrapping=function(e){for(var t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];var n=this.computeWrapping(e);return this.wrapCache.push(e,n),n},F.prototype.computeWrapping=function(e){for(var t=Object.create(null),n=[{match:this,type:null,via:null}];n.length;){var i=n.shift(),o=i.match;if(o.matchType(e)){for(var r=[],s=i;s.type;s=s.via)r.push(s.type);return r.reverse()}for(var a=0;a<o.next.length;a+=2){var l=o.next[a];l.isLeaf||l.hasRequiredAttrs()||l.name in t||i.type&&!o.next[a+1].validEnd||(n.push({match:l.contentMatch,type:l,via:i}),t[l.name]=!0)}}},z.edgeCount.get=function(){return this.next.length>>1},F.prototype.edge=function(e){var t=e<<1;if(t>=this.next.length)throw new RangeError("There's no "+e+"th edge in this content match");return{type:this.next[t],next:this.next[t+1]}},F.prototype.toString=function(){var e=[];return function t(n){e.push(n);for(var i=1;i<n.next.length;i+=2)-1==e.indexOf(n.next[i])&&t(n.next[i])}(this),e.map((function(t,n){for(var i=n+(t.validEnd?"*":" ")+" ",o=0;o<t.next.length;o+=2)i+=(o?", ":"")+t.next[o].name+"->"+e.indexOf(t.next[o+1]);return i})).join("\n")},Object.defineProperties(F.prototype,z),F.empty=new F(!0);var j=function(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()},K={next:{configurable:!0}};function _(e){var t=[];do{t.push(H(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function H(e){var t=[];do{t.push(W(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function W(e){for(var t=function(e){if(e.eat("(")){var t=_(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){var n=function(e,t){var n=e.nodeTypes,i=n[t];if(i)return[i];var o=[];for(var r in n){var s=n[r];s.groups.indexOf(t)>-1&&o.push(s)}return 0==o.length&&e.err("No node type or group '"+t+"' found"),o}(e,e.next).map((function(t){return null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}}));return e.pos++,1==n.length?n[0]:{type:"choice",exprs:n}}e.err("Unexpected token '"+e.next+"'")}(e);;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=q(e,t)}return t}function U(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");var t=Number(e.next);return e.pos++,t}function q(e,t){var n=U(e),i=n;return e.eat(",")&&(i="}"!=e.next?U(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:t}}function G(e,t){return t-e}function J(e,t){var n=[];return function t(i){var o=e[i];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(i);for(var r=0;r<o.length;r++){var s=o[r],a=s.term,l=s.to;a||-1!=n.indexOf(l)||t(l)}}(t),n.sort(G)}function X(e){var t=Object.create(null);for(var n in e){var i=e[n];if(!i.hasDefault)return null;t[n]=i.default}return t}function Y(e,t){var n=Object.create(null);for(var i in e){var o=t&&t[i];if(void 0===o){var r=e[i];if(!r.hasDefault)throw new RangeError("No value supplied for attribute "+i);o=r.default}n[i]=o}return n}function Z(e){var t=Object.create(null);if(e)for(var n in e)t[n]=new te(e[n]);return t}K.next.get=function(){return this.tokens[this.pos]},j.prototype.eat=function(e){return this.next==e&&(this.pos++||!0)},j.prototype.err=function(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")},Object.defineProperties(j.prototype,K);var Q=function(e,t,n){this.name=e,this.schema=t,this.spec=n,this.groups=n.group?n.group.split(" "):[],this.attrs=Z(n.attrs),this.defaultAttrs=X(this.attrs),this.contentMatch=null,this.markSet=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e},ee={isInline:{configurable:!0},isTextblock:{configurable:!0},isLeaf:{configurable:!0},isAtom:{configurable:!0},whitespace:{configurable:!0}};ee.isInline.get=function(){return!this.isBlock},ee.isTextblock.get=function(){return this.isBlock&&this.inlineContent},ee.isLeaf.get=function(){return this.contentMatch==F.empty},ee.isAtom.get=function(){return this.isLeaf||this.spec.atom},ee.whitespace.get=function(){return this.spec.whitespace||(this.spec.code?"pre":"normal")},Q.prototype.hasRequiredAttrs=function(){for(var e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1},Q.prototype.compatibleContent=function(e){return this==e||this.contentMatch.compatible(e.contentMatch)},Q.prototype.computeAttrs=function(e){return!e&&this.defaultAttrs?this.defaultAttrs:Y(this.attrs,e)},Q.prototype.create=function(e,t,n){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new E(this,this.computeAttrs(e),a.from(t),p.setFrom(n))},Q.prototype.createChecked=function(e,t,n){if(t=a.from(t),!this.validContent(t))throw new RangeError("Invalid content for node "+this.name);return new E(this,this.computeAttrs(e),t,p.setFrom(n))},Q.prototype.createAndFill=function(e,t,n){if(e=this.computeAttrs(e),(t=a.from(t)).size){var i=this.contentMatch.fillBefore(t);if(!i)return null;t=i.append(t)}var o=this.contentMatch.matchFragment(t).fillBefore(a.empty,!0);return o?new E(this,e,t.append(o),p.setFrom(n)):null},Q.prototype.validContent=function(e){var t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(var n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0},Q.prototype.allowsMarkType=function(e){return null==this.markSet||this.markSet.indexOf(e)>-1},Q.prototype.allowsMarks=function(e){if(null==this.markSet)return!0;for(var t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0},Q.prototype.allowedMarks=function(e){if(null==this.markSet)return e;for(var t,n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:p.empty:e},Q.compile=function(e,t){var n=Object.create(null);e.forEach((function(e,i){return n[e]=new Q(e,t,i)}));var i=t.spec.topNode||"doc";if(!n[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(var o in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n},Object.defineProperties(Q.prototype,ee);var te=function(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default},ne={isRequired:{configurable:!0}};ne.isRequired.get=function(){return!this.hasDefault},Object.defineProperties(te.prototype,ne);var ie=function(e,t,n,i){this.name=e,this.schema=n,this.spec=i,this.attrs=Z(i.attrs),this.rank=t,this.excluded=null;var o=X(this.attrs);this.instance=o&&new p(this,o)};ie.prototype.create=function(e){return!e&&this.instance?this.instance:new p(this,Y(this.attrs,e))},ie.compile=function(e,t){var n=Object.create(null),i=0;return e.forEach((function(e,o){return n[e]=new ie(e,i++,t,o)})),n},ie.prototype.removeFromSet=function(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e},ie.prototype.isInSet=function(e){for(var t=0;t<e.length;t++)if(e[t].type==this)return e[t]},ie.prototype.excludes=function(e){return this.excluded.indexOf(e)>-1};var oe=function(e){for(var t in this.spec={},e)this.spec[t]=e[t];this.spec.nodes=o.from(e.nodes),this.spec.marks=o.from(e.marks),this.nodes=Q.compile(this.spec.nodes,this),this.marks=ie.compile(this.spec.marks,this);var n=Object.create(null);for(var i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");var r=this.nodes[i],s=r.spec.content||"",a=r.spec.marks;r.contentMatch=n[s]||(n[s]=F.parse(s,this.nodes)),r.inlineContent=r.contentMatch.inlineContent,r.markSet="_"==a?null:a?re(this,a.split(" ")):""!=a&&r.inlineContent?null:[]}for(var l in this.marks){var d=this.marks[l],c=d.spec.excludes;d.excluded=null==c?[d]:""==c?[]:re(this,c.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached=Object.create(null),this.cached.wrappings=Object.create(null)};function re(e,t){for(var n=[],i=0;i<t.length;i++){var o=t[i],r=e.marks[o],s=r;if(r)n.push(r);else for(var a in e.marks){var l=e.marks[a];("_"==o||l.spec.group&&l.spec.group.split(" ").indexOf(o)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return n}oe.prototype.node=function(e,t,n,i){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof Q))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,i)},oe.prototype.text=function(e,t){var n=this.nodes.text;return new L(n,n.defaultAttrs,e,p.setFrom(t))},oe.prototype.mark=function(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)},oe.prototype.nodeFromJSON=function(e){return E.fromJSON(this,e)},oe.prototype.markFromJSON=function(e){return p.fromJSON(this,e)},oe.prototype.nodeType=function(e){var t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t};var se=function(e,t){var n=this;this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((function(e){e.tag?n.tags.push(e):e.style&&n.styles.push(e)})),this.normalizeLists=!this.tags.some((function(t){if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;var n=e.nodes[t.node];return n.contentMatch.matchType(n)}))};se.prototype.parse=function(e,t){void 0===t&&(t={});var n=new pe(this,t,!1);return n.addAll(e,null,t.from,t.to),n.finish()},se.prototype.parseSlice=function(e,t){void 0===t&&(t={});var n=new pe(this,t,!0);return n.addAll(e,null,t.from,t.to),f.maxOpen(n.finish())},se.prototype.matchTag=function(e,t,n){for(var i=n?this.tags.indexOf(n)+1:0;i<this.tags.length;i++){var o=this.tags[i];if(fe(e,o.tag)&&(void 0===o.namespace||e.namespaceURI==o.namespace)&&(!o.context||t.matchesContext(o.context))){if(o.getAttrs){var r=o.getAttrs(e);if(!1===r)continue;o.attrs=r}return o}}},se.prototype.matchStyle=function(e,t,n,i){for(var o=i?this.styles.indexOf(i)+1:0;o<this.styles.length;o++){var r=this.styles[o];if(!(0!=r.style.indexOf(e)||r.context&&!n.matchesContext(r.context)||r.style.length>e.length&&(61!=r.style.charCodeAt(e.length)||r.style.slice(e.length+1)!=t))){if(r.getAttrs){var s=r.getAttrs(t);if(!1===s)continue;r.attrs=s}return r}}},se.schemaRules=function(e){var t=[];function n(e){for(var n=null==e.priority?50:e.priority,i=0;i<t.length;i++){var o=t[i];if((null==o.priority?50:o.priority)<n)break}t.splice(i,0,e)}var i,o=function(t){var i=e.marks[t].spec.parseDOM;i&&i.forEach((function(e){n(e=ve(e)),e.mark=t}))};for(var r in e.marks)o(r);for(var s in e.nodes)i=void 0,(i=e.nodes[s].spec.parseDOM)&&i.forEach((function(e){n(e=ve(e)),e.node=s}));return t},se.fromSchema=function(e){return e.cached.domParser||(e.cached.domParser=new se(e,se.schemaRules(e)))};var ae={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},le={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},de={ol:!0,ul:!0};function ce(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}var ue=function(e,t,n,i,o,r,s){this.type=e,this.attrs=t,this.solid=o,this.match=r||(4&s?null:e.contentMatch),this.options=s,this.content=[],this.marks=n,this.activeMarks=p.none,this.pendingMarks=i,this.stashMarks=[]};ue.prototype.findWrapping=function(e){if(!this.match){if(!this.type)return[];var t=this.type.contentMatch.fillBefore(a.from(e));if(!t){var n,i=this.type.contentMatch;return(n=i.findWrapping(e.type))?(this.match=i,n):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)},ue.prototype.finish=function(e){if(!(1&this.options)){var t,n=this.content[this.content.length-1];n&&n.isText&&(t=/[ \t\r\n\u000c]+$/.exec(n.text))&&(n.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length)))}var i=a.from(this.content);return!e&&this.match&&(i=i.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,i,this.marks):i},ue.prototype.popFromStashMark=function(e){for(var t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]},ue.prototype.applyPending=function(e){for(var t=0,n=this.pendingMarks;t<n.length;t++){var i=n[t];(this.type?this.type.allowsMarkType(i.type):me(i.type,e))&&!i.isInSet(this.activeMarks)&&(this.activeMarks=i.addToSet(this.activeMarks),this.pendingMarks=i.removeFromSet(this.pendingMarks))}},ue.prototype.inlineContext=function(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ae.hasOwnProperty(e.parentNode.nodeName.toLowerCase())};var pe=function(e,t,n){this.parser=e,this.options=t,this.isOpen=n;var i,o=t.topNode,r=ce(null,t.preserveWhitespace,0)|(n?4:0);i=o?new ue(o.type,o.attrs,p.none,p.none,!0,t.topMatch||o.type.contentMatch,r):new ue(n?null:e.schema.topNodeType,null,p.none,p.none,!0,null,r),this.nodes=[i],this.open=0,this.find=t.findPositions,this.needsBlock=!1},he={top:{configurable:!0},currentPos:{configurable:!0}};function fe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ve(e){var t={};for(var n in e)t[n]=e[n];return t}function me(e,t){var n=t.schema.nodes,i=function(i){var o=n[i];if(o.allowsMarkType(e)){var r=[],s=function(e){r.push(e);for(var n=0;n<e.edgeCount;n++){var i=e.edge(n),o=i.type,a=i.next;if(o==t)return!0;if(r.indexOf(a)<0&&s(a))return!0}};return s(o.contentMatch)?{v:!0}:void 0}};for(var o in n){var r=i(o);if(r)return r.v}}he.top.get=function(){return this.nodes[this.open]},pe.prototype.addDOM=function(e){if(3==e.nodeType)this.addTextNode(e);else if(1==e.nodeType){var t=e.getAttribute("style"),n=t?this.readStyles(function(e){for(var t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,i=[];t=n.exec(e);)i.push(t[1],t[2].trim());return i}(t)):null,i=this.top;if(null!=n)for(var o=0;o<n.length;o++)this.addPendingMark(n[o]);if(this.addElement(e),null!=n)for(var r=0;r<n.length;r++)this.removePendingMark(n[r],i)}},pe.prototype.addTextNode=function(e){var t=e.nodeValue,n=this.top;if(2&n.options||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&n.options)t=2&n.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){var i=n.content[n.content.length-1],o=e.previousSibling;(!i||o&&"BR"==o.nodeName||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)},pe.prototype.addElement=function(e,t){var n,i=e.nodeName.toLowerCase();de.hasOwnProperty(i)&&this.parser.normalizeLists&&function(e){for(var t=e.firstChild,n=null;t;t=t.nextSibling){var i=1==t.nodeType?t.nodeName.toLowerCase():null;i&&de.hasOwnProperty(i)&&n?(n.appendChild(t),t=n):"li"==i?n=t:i&&(n=null)}}(e);var o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(n=this.parser.matchTag(e,this,t));if(o?o.ignore:le.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);var r,s=this.top,a=this.needsBlock;if(ae.hasOwnProperty(i))r=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);this.addAll(e),r&&this.sync(s),this.needsBlock=a}else this.addElementByRule(e,o,!1===o.consuming?n:null)},pe.prototype.leafFallback=function(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))},pe.prototype.ignoreFallback=function(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))},pe.prototype.readStyles=function(e){var t=p.none;e:for(var n=0;n<e.length;n+=2)for(var i=null;;){var o=this.parser.matchStyle(e[n],e[n+1],this,i);if(!o)continue e;if(o.ignore)return null;if(t=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(t),!1!==o.consuming)break;i=o}return t},pe.prototype.addElementByRule=function(e,t,n){var i,o,r,s=this;t.node?(o=this.parser.schema.nodes[t.node]).isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):i=this.enter(o,t.attrs,t.preserveWhitespace):(r=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(r));var a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((function(e){return s.insertNode(e)}));else{var l=t.contentElement;"string"==typeof l?l=e.querySelector(l):"function"==typeof l&&(l=l(e)),l||(l=e),this.findAround(e,l,!0),this.addAll(l,i)}i&&(this.sync(a),this.open--),r&&this.removePendingMark(r,a)},pe.prototype.addAll=function(e,t,n,i){for(var o=n||0,r=n?e.childNodes[n]:e.firstChild,s=null==i?null:e.childNodes[i];r!=s;r=r.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(r),t&&ae.hasOwnProperty(r.nodeName.toLowerCase())&&this.sync(t);this.findAtPoint(e,o)},pe.prototype.findPlace=function(e){for(var t,n,i=this.open;i>=0;i--){var o=this.nodes[i],r=o.findWrapping(e);if(r&&(!t||t.length>r.length)&&(t=r,n=o,!r.length))break;if(o.solid)break}if(!t)return!1;this.sync(n);for(var s=0;s<t.length;s++)this.enterInner(t[s],null,!1);return!0},pe.prototype.insertNode=function(e){if(e.isInline&&this.needsBlock&&!this.top.type){var t=this.textblockFromContext();t&&this.enterInner(t)}if(this.findPlace(e)){this.closeExtra();var n=this.top;n.applyPending(e.type),n.match&&(n.match=n.match.matchType(e.type));for(var i=n.activeMarks,o=0;o<e.marks.length;o++)n.type&&!n.type.allowsMarkType(e.marks[o].type)||(i=e.marks[o].addToSet(i));return n.content.push(e.mark(i)),!0}return!1},pe.prototype.enter=function(e,t,n){var i=this.findPlace(e.create(t));return i&&this.enterInner(e,t,!0,n),i},pe.prototype.enterInner=function(e,t,n,i){this.closeExtra();var o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e,t);var r=ce(e,i,o.options);4&o.options&&0==o.content.length&&(r|=4),this.nodes.push(new ue(e,t,o.activeMarks,o.pendingMarks,n,null,r)),this.open++},pe.prototype.closeExtra=function(e){var t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}},pe.prototype.finish=function(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)},pe.prototype.sync=function(e){for(var t=this.open;t>=0;t--)if(this.nodes[t]==e)return void(this.open=t)},he.currentPos.get=function(){this.closeExtra();for(var e=0,t=this.open;t>=0;t--){for(var n=this.nodes[t].content,i=n.length-1;i>=0;i--)e+=n[i].nodeSize;t&&e++}return e},pe.prototype.findAtPoint=function(e,t){if(this.find)for(var n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)},pe.prototype.findInside=function(e){if(this.find)for(var t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)},pe.prototype.findAround=function(e,t,n){if(e!=t&&this.find)for(var i=0;i<this.find.length;i++)null==this.find[i].pos&&1==e.nodeType&&e.contains(this.find[i].node)&&t.compareDocumentPosition(this.find[i].node)&(n?2:4)&&(this.find[i].pos=this.currentPos)},pe.prototype.findInText=function(e){if(this.find)for(var t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))},pe.prototype.matchesContext=function(e){var t=this;if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);var n=e.split("/"),i=this.options.context,o=!(this.isOpen||i&&i.parent.type!=this.nodes[0].type),r=-(i?i.depth+1:0)+(o?0:1),s=function(e,a){for(;e>=0;e--){var l=n[e];if(""==l){if(e==n.length-1||0==e)continue;for(;a>=r;a--)if(s(e-1,a))return!0;return!1}var d=a>0||0==a&&o?t.nodes[a].type:i&&a>=r?i.node(a-r).type:null;if(!d||d.name!=l&&-1==d.groups.indexOf(l))return!1;a--}return!0};return s(n.length-1,this.open)},pe.prototype.textblockFromContext=function(){var e=this.options.context;if(e)for(var t=e.depth;t>=0;t--){var n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(var i in this.parser.schema.nodes){var o=this.parser.schema.nodes[i];if(o.isTextblock&&o.defaultAttrs)return o}},pe.prototype.addPendingMark=function(e){var t=function(e,t){for(var n=0;n<t.length;n++)if(e.eq(t[n]))return t[n]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)},pe.prototype.removePendingMark=function(e,t){for(var n=this.open;n>=0;n--){var i=this.nodes[n];if(i.pendingMarks.lastIndexOf(e)>-1)i.pendingMarks=e.removeFromSet(i.pendingMarks);else{i.activeMarks=e.removeFromSet(i.activeMarks);var o=i.popFromStashMark(e);o&&i.type&&i.type.allowsMarkType(o.type)&&(i.activeMarks=o.addToSet(i.activeMarks))}if(i==t)break}},Object.defineProperties(pe.prototype,he);var ge=function(e,t){this.nodes=e||{},this.marks=t||{}};function ye(e){var t={};for(var n in e){var i=e[n].spec.toDOM;i&&(t[n]=i)}return t}function be(e){return e.document||window.document}ge.prototype.serializeFragment=function(e,t,n){var i=this;void 0===t&&(t={}),n||(n=be(t).createDocumentFragment());var o=n,r=null;return e.forEach((function(e){if(r||e.marks.length){r||(r=[]);for(var n=0,s=0;n<r.length&&s<e.marks.length;){var a=e.marks[s];if(i.marks[a.type.name]){if(!a.eq(r[n])||!1===a.type.spec.spanning)break;n+=2,s++}else s++}for(;n<r.length;)o=r.pop(),r.pop();for(;s<e.marks.length;){var l=e.marks[s++],d=i.serializeMark(l,e.isInline,t);d&&(r.push(l,o),o.appendChild(d.dom),o=d.contentDOM||d.dom)}}o.appendChild(i.serializeNodeInner(e,t))})),n},ge.prototype.serializeNodeInner=function(e,t){void 0===t&&(t={});var n=ge.renderSpec(be(t),this.nodes[e.type.name](e)),i=n.dom,o=n.contentDOM;if(o){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");t.onContent?t.onContent(e,o,t):this.serializeFragment(e.content,t,o)}return i},ge.prototype.serializeNode=function(e,t){void 0===t&&(t={});for(var n=this.serializeNodeInner(e,t),i=e.marks.length-1;i>=0;i--){var o=this.serializeMark(e.marks[i],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n},ge.prototype.serializeMark=function(e,t,n){void 0===n&&(n={});var i=this.marks[e.type.name];return i&&ge.renderSpec(be(n),i(e,t))},ge.renderSpec=function(e,t,n){if(void 0===n&&(n=null),"string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;var i=t[0],o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));var r=null,s=n?e.createElementNS(n,i):e.createElement(i),a=t[1],l=1;if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a))for(var d in l=2,a)if(null!=a[d]){var c=d.indexOf(" ");c>0?s.setAttributeNS(d.slice(0,c),d.slice(c+1),a[d]):s.setAttribute(d,a[d])}for(var u=l;u<t.length;u++){var p=t[u];if(0===p){if(u<t.length-1||u>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:s,contentDOM:s}}var h=ge.renderSpec(e,p,n),f=h.dom,v=h.contentDOM;if(s.appendChild(f),v){if(r)throw new RangeError("Multiple content holes");r=v}}return{dom:s,contentDOM:r}},ge.fromSchema=function(e){return e.cached.domSerializer||(e.cached.domSerializer=new ge(this.nodesFromSchema(e),this.marksFromSchema(e)))},ge.nodesFromSchema=function(e){var t=ye(e.nodes);return t.text||(t.text=function(e){return e.text}),t},ge.marksFromSchema=function(e){return ye(e.marks)};var ke=Math.pow(2,16);function we(e){return 65535&e}var Se=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=null),this.pos=e,this.deleted=t,this.recover=n},xe=function e(t,n){if(void 0===n&&(n=!1),!t.length&&e.empty)return e.empty;this.ranges=t,this.inverted=n};xe.prototype.recover=function(e){var t=0,n=we(e);if(!this.inverted)for(var i=0;i<n;i++)t+=this.ranges[3*i+2]-this.ranges[3*i+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/ke}(e)},xe.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},xe.prototype.map=function(e,t){return void 0===t&&(t=1),this._map(e,t,!0)},xe.prototype._map=function(e,t,n){for(var i=0,o=this.inverted?2:1,r=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var a=this.ranges[s]-(this.inverted?i:0);if(a>e)break;var l=this.ranges[s+o],d=this.ranges[s+r],c=a+l;if(e<=c){var u=a+i+((l?e==a?-1:e==c?1:t:t)<0?0:d);return n?u:new Se(u,t<0?e!=a:e!=c,e==(t<0?a:c)?null:s/3+(e-a)*ke)}i+=d-l}return n?e+i:new Se(e+i)},xe.prototype.touches=function(e,t){for(var n=0,i=we(t),o=this.inverted?2:1,r=this.inverted?1:2,s=0;s<this.ranges.length;s+=3){var a=this.ranges[s]-(this.inverted?n:0);if(a>e)break;var l=this.ranges[s+o];if(e<=a+l&&s==3*i)return!0;n+=this.ranges[s+r]-l}return!1},xe.prototype.forEach=function(e){for(var t=this.inverted?2:1,n=this.inverted?1:2,i=0,o=0;i<this.ranges.length;i+=3){var r=this.ranges[i],s=r-(this.inverted?o:0),a=r+(this.inverted?0:o),l=this.ranges[i+t],d=this.ranges[i+n];e(s,s+l,a,a+d),o+=d-l}},xe.prototype.invert=function(){return new xe(this.ranges,!this.inverted)},xe.prototype.toString=function(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)},xe.offset=function(e){return 0==e?xe.empty:new xe(e<0?[0,-e,0]:[0,0,e])},xe.empty=new xe([]);var Ce=function(e,t,n,i){this.maps=e||[],this.from=n||0,this.to=null==i?this.maps.length:i,this.mirror=t};function $e(e){var t=Error.call(this,e);return t.__proto__=$e.prototype,t}Ce.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.maps.length),new Ce(this.maps,this.mirror,e,t)},Ce.prototype.copy=function(){return new Ce(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)},Ce.prototype.appendMap=function(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)},Ce.prototype.appendMapping=function(e){for(var t=0,n=this.maps.length;t<e.maps.length;t++){var i=e.getMirror(t);this.appendMap(e.maps[t],null!=i&&i<t?n+i:null)}},Ce.prototype.getMirror=function(e){if(this.mirror)for(var t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]},Ce.prototype.setMirror=function(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)},Ce.prototype.appendMappingInverted=function(e){for(var t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){var i=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=i&&i>t?n-i-1:null)}},Ce.prototype.invert=function(){var e=new Ce;return e.appendMappingInverted(this),e},Ce.prototype.map=function(e,t){if(void 0===t&&(t=1),this.mirror)return this._map(e,t,!0);for(var n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e},Ce.prototype.mapResult=function(e,t){return void 0===t&&(t=1),this._map(e,t,!1)},Ce.prototype._map=function(e,t,n){for(var i=!1,o=this.from;o<this.to;o++){var r=this.maps[o].mapResult(e,t);if(null!=r.recover){var s=this.getMirror(o);if(null!=s&&s>o&&s<this.to){o=s,e=this.maps[s].recover(r.recover);continue}}r.deleted&&(i=!0),e=r.pos}return n?e:new Se(e,i)},$e.prototype=Object.create(Error.prototype),$e.prototype.constructor=$e,$e.prototype.name="TransformError";var Ie=function(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ce},Oe={before:{configurable:!0},docChanged:{configurable:!0}};function De(){throw new Error("Override me")}Oe.before.get=function(){return this.docs.length?this.docs[0]:this.doc},Ie.prototype.step=function(e){var t=this.maybeStep(e);if(t.failed)throw new $e(t.failed);return this},Ie.prototype.maybeStep=function(e){var t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t},Oe.docChanged.get=function(){return this.steps.length>0},Ie.prototype.addStep=function(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t},Object.defineProperties(Ie.prototype,Oe);var Me=Object.create(null),Te=function(){};Te.prototype.apply=function(e){return De()},Te.prototype.getMap=function(){return xe.empty},Te.prototype.invert=function(e){return De()},Te.prototype.map=function(e){return De()},Te.prototype.merge=function(e){return null},Te.prototype.toJSON=function(){return De()},Te.fromJSON=function(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");var n=Me[t.stepType];if(!n)throw new RangeError("No step type "+t.stepType+" defined");return n.fromJSON(e,t)},Te.jsonID=function(e,t){if(e in Me)throw new RangeError("Duplicate use of step JSON ID "+e);return Me[e]=t,t.prototype.jsonID=e,t};var Re=function(e,t){this.doc=e,this.failed=t};Re.ok=function(e){return new Re(e,null)},Re.fail=function(e){return new Re(null,e)},Re.fromReplace=function(e,t,n,i){try{return Re.ok(e.replace(t,n,i))}catch(e){if(e instanceof h)return Re.fail(e.message);throw e}};var Be=function(e){function t(t,n,i,o){e.call(this),this.from=t,this.to=n,this.slice=i,this.structure=!!o}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){return this.structure&&Pe(e,this.from,this.to)?Re.fail("Structure replace would overwrite content"):Re.fromReplace(e,this.from,this.to,this.slice)},t.prototype.getMap=function(){return new xe([this.from,this.to-this.from,this.slice.size])},t.prototype.invert=function(e){return new t(this.from,this.from+this.slice.size,e.slice(this.from,this.to))},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted?null:new t(n.pos,Math.max(n.pos,i.pos),this.slice)},t.prototype.merge=function(e){if(!(e instanceof t)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;var n=this.slice.size+e.slice.size==0?f.empty:new f(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new t(e.from,this.to,n,this.structure)}var i=this.slice.size+e.slice.size==0?f.empty:new f(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new t(this.from,this.to+(e.to-e.from),i,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new t(n.from,n.to,f.fromJSON(e,n.slice),!!n.structure)},t}(Te);Te.jsonID("replace",Be);var Ne=function(e){function t(t,n,i,o,r,s,a){e.call(this),this.from=t,this.to=n,this.gapFrom=i,this.gapTo=o,this.slice=r,this.insert=s,this.structure=!!a}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){if(this.structure&&(Pe(e,this.from,this.gapFrom)||Pe(e,this.gapTo,this.to)))return Re.fail("Structure gap-replace would overwrite content");var t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Re.fail("Gap is not a flat range");var n=this.slice.insertAt(this.insert,t.content);return n?Re.fromReplace(e,this.from,this.to,n):Re.fail("Content does not fit in gap")},t.prototype.getMap=function(){return new xe([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])},t.prototype.invert=function(e){var n=this.gapTo-this.gapFrom;return new t(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1),o=e.map(this.gapFrom,-1),r=e.map(this.gapTo,1);return n.deleted&&i.deleted||o<n.pos||r>i.pos?null:new t(n.pos,i.pos,o,r,this.slice,this.insert,this.structure)},t.prototype.toJSON=function(){var e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to||"number"!=typeof n.gapFrom||"number"!=typeof n.gapTo||"number"!=typeof n.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new t(n.from,n.to,n.gapFrom,n.gapTo,f.fromJSON(e,n.slice),n.insert,!!n.structure)},t}(Te);function Pe(e,t,n){for(var i=e.resolve(t),o=n-t,r=i.depth;o>0&&r>0&&i.indexAfter(r)==i.node(r).childCount;)r--,o--;if(o>0)for(var s=i.node(r).maybeChild(i.indexAfter(r));o>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,o--}return!1}function Ee(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Ve(e){for(var t=e.parent.content.cutByIndex(e.startIndex,e.endIndex),n=e.depth;;--n){var i=e.$from.node(n),o=e.$from.index(n),r=e.$to.indexAfter(n);if(n<e.depth&&i.canReplace(o,r,t))return n;if(0==n||i.type.spec.isolating||!Ee(i,o,r))break}}function Le(e,t,n,i){void 0===i&&(i=e);var o=function(e,t){var n=e.parent,i=e.startIndex,o=e.endIndex,r=n.contentMatchAt(i).findWrapping(t);if(!r)return null;var s=r.length?r[0]:t;return n.canReplaceWith(i,o,s)?r:null}(e,t),r=o&&function(e,t){var n=e.parent,i=e.startIndex,o=e.endIndex,r=n.child(i),s=t.contentMatch.findWrapping(r.type);if(!s)return null;for(var a=(s.length?s[s.length-1]:t).contentMatch,l=i;a&&l<o;l++)a=a.matchType(n.child(l).type);return a&&a.validEnd?s:null}(i,t);return r?o.map(Ae).concat({type:t,attrs:n}).concat(r.map(Ae)):null}function Ae(e){return{type:e,attrs:null}}function Fe(e,t,n,i){void 0===n&&(n=1);var o=e.resolve(t),r=o.depth-n,s=i&&i[i.length-1]||o.parent;if(r<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(var a=o.depth-1,l=n-2;a>r;a--,l--){var d=o.node(a),c=o.index(a);if(d.type.spec.isolating)return!1;var u=d.content.cutByIndex(c,d.childCount),p=i&&i[l]||d;if(p!=d&&(u=u.replaceChild(0,p.type.create(p.attrs))),!d.canReplace(c+1,d.childCount)||!p.type.validContent(u))return!1}var h=o.indexAfter(r),f=i&&i[0];return o.node(r).canReplaceWith(h,h,f?f.type:o.node(r+1).type)}function ze(e,t){var n=e.resolve(t),i=n.index();return je(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function je(e,t){return e&&t&&!e.isLeaf&&e.canAppend(t)}function Ke(e,t,n){void 0===n&&(n=-1);for(var i=e.resolve(t),o=i.depth;;o--){var r=void 0,s=void 0,a=i.index(o);if(o==i.depth?(r=i.nodeBefore,s=i.nodeAfter):n>0?(r=i.node(o+1),a++,s=i.node(o).maybeChild(a)):(r=i.node(o).maybeChild(a-1),s=i.node(o+1)),r&&!r.isTextblock&&je(r,s)&&i.node(o).canReplace(a,a+1))return t;if(0==o)break;t=n<0?i.before(o):i.after(o)}}function _e(e,t,n){var i=e.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),n))return t;if(0==i.parentOffset)for(var o=i.depth-1;o>=0;o--){var r=i.index(o);if(i.node(o).canReplaceWith(r,r,n))return i.before(o+1);if(r>0)return null}if(i.parentOffset==i.parent.content.size)for(var s=i.depth-1;s>=0;s--){var a=i.indexAfter(s);if(i.node(s).canReplaceWith(a,a,n))return i.after(s+1);if(a<i.node(s).childCount)return null}}function He(e,t,n){var i=e.resolve(t);if(!n.content.size)return t;for(var o=n.content,r=0;r<n.openStart;r++)o=o.firstChild.content;for(var s=1;s<=(0==n.openStart&&n.size?2:1);s++)for(var a=i.depth;a>=0;a--){var l=a==i.depth?0:i.pos<=(i.start(a+1)+i.end(a+1))/2?-1:1,d=i.index(a)+(l>0?1:0),c=i.node(a),u=!1;if(1==s)u=c.canReplace(d,d,o);else{var p=c.contentMatchAt(d).findWrapping(o.firstChild.type);u=p&&c.canReplaceWith(d,d,p[0])}if(u)return 0==l?i.pos:l<0?i.before(a+1):i.after(a+1)}return null}function We(e,t,n){for(var i=[],o=0;o<e.childCount;o++){var r=e.child(o);r.content.size&&(r=r.copy(We(r.content,t,r))),r.isInline&&(r=t(r,n,o)),i.push(r)}return a.fromArray(i)}Te.jsonID("replaceAround",Ne),Ie.prototype.lift=function(e,t){for(var n=e.$from,i=e.$to,o=e.depth,r=n.before(o+1),s=i.after(o+1),l=r,d=s,c=a.empty,u=0,p=o,h=!1;p>t;p--)h||n.index(p)>0?(h=!0,c=a.from(n.node(p).copy(c)),u++):l--;for(var v=a.empty,m=0,g=o,y=!1;g>t;g--)y||i.after(g+1)<i.end(g)?(y=!0,v=a.from(i.node(g).copy(v)),m++):d++;return this.step(new Ne(l,d,r,s,new f(c.append(v),u,m),c.size-u,!0))},Ie.prototype.wrap=function(e,t){for(var n=a.empty,i=t.length-1;i>=0;i--){if(n.size){var o=t[i].type.contentMatch.matchFragment(n);if(!o||!o.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=a.from(t[i].type.create(t[i].attrs,n))}var r=e.start,s=e.end;return this.step(new Ne(r,s,r,s,new f(n,0,0),t.length,!0))},Ie.prototype.setBlockType=function(e,t,n,i){var o=this;if(void 0===t&&(t=e),!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");var r=this.steps.length;return this.doc.nodesBetween(e,t,(function(e,t){if(e.isTextblock&&!e.hasMarkup(n,i)&&function(e,t,n){var i=e.resolve(t),o=i.index();return i.parent.canReplaceWith(o,o+1,n)}(o.doc,o.mapping.slice(r).map(t),n)){o.clearIncompatible(o.mapping.slice(r).map(t,1),n);var s=o.mapping.slice(r),l=s.map(t,1),d=s.map(t+e.nodeSize,1);return o.step(new Ne(l,d,l+1,d-1,new f(a.from(n.create(i,null,e.marks)),0,0),1,!0)),!1}})),this},Ie.prototype.setNodeMarkup=function(e,t,n,i){var o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);var r=t.create(n,null,i||o.marks);if(o.isLeaf)return this.replaceWith(e,e+o.nodeSize,r);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);return this.step(new Ne(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new f(a.from(r),0,0),1,!0))},Ie.prototype.split=function(e,t,n){void 0===t&&(t=1);for(var i=this.doc.resolve(e),o=a.empty,r=a.empty,s=i.depth,l=i.depth-t,d=t-1;s>l;s--,d--){o=a.from(i.node(s).copy(o));var c=n&&n[d];r=a.from(c?c.type.create(c.attrs,r):i.node(s).copy(r))}return this.step(new Be(e,e,new f(o.append(r),t,t),!0))},Ie.prototype.join=function(e,t){void 0===t&&(t=1);var n=new Be(e-t,e+t,f.empty,!0);return this.step(n)};var Ue=function(e){function t(t,n,i){e.call(this),this.from=t,this.to=n,this.mark=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),i=e.resolve(this.from),o=i.node(i.sharedDepth(this.to)),r=new f(We(n.content,(function(e,n){return e.isAtom&&n.type.allowsMarkType(t.mark.type)?e.mark(t.mark.addToSet(e.marks)):e}),o),n.openStart,n.openEnd);return Re.fromReplace(e,this.from,this.to,r)},t.prototype.invert=function(){return new qe(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new t(n.pos,i.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(Te);Te.jsonID("addMark",Ue);var qe=function(e){function t(t,n,i){e.call(this),this.from=t,this.to=n,this.mark=i}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.apply=function(e){var t=this,n=e.slice(this.from,this.to),i=new f(We(n.content,(function(e){return e.mark(t.mark.removeFromSet(e.marks))})),n.openStart,n.openEnd);return Re.fromReplace(e,this.from,this.to,i)},t.prototype.invert=function(){return new Ue(this.from,this.to,this.mark)},t.prototype.map=function(e){var n=e.mapResult(this.from,1),i=e.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new t(n.pos,i.pos,this.mark)},t.prototype.merge=function(e){if(e instanceof t&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from)return new t(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark)},t.prototype.toJSON=function(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}},t.fromJSON=function(e,n){if("number"!=typeof n.from||"number"!=typeof n.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new t(n.from,n.to,e.markFromJSON(n.mark))},t}(Te);function Ge(e,t,n,i){if(void 0===n&&(n=t),void 0===i&&(i=f.empty),t==n&&!i.size)return null;var o=e.resolve(t),r=e.resolve(n);return Je(o,r,i)?new Be(t,n,i):new Xe(o,r,i).fit()}function Je(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}Te.jsonID("removeMark",qe),Ie.prototype.addMark=function(e,t,n){var i=this,o=[],r=[],s=null,a=null;return this.doc.nodesBetween(e,t,(function(i,l,d){if(i.isInline){var c=i.marks;if(!n.isInSet(c)&&d.type.allowsMarkType(n.type)){for(var u=Math.max(l,e),p=Math.min(l+i.nodeSize,t),h=n.addToSet(c),f=0;f<c.length;f++)c[f].isInSet(h)||(s&&s.to==u&&s.mark.eq(c[f])?s.to=p:o.push(s=new qe(u,p,c[f])));a&&a.to==u?a.to=p:r.push(a=new Ue(u,p,n))}}})),o.forEach((function(e){return i.step(e)})),r.forEach((function(e){return i.step(e)})),this},Ie.prototype.removeMark=function(e,t,n){var i=this;void 0===n&&(n=null);var o=[],r=0;return this.doc.nodesBetween(e,t,(function(i,s){if(i.isInline){r++;var a=null;if(n instanceof ie)for(var l,d=i.marks;l=n.isInSet(d);)(a||(a=[])).push(l),d=l.removeFromSet(d);else n?n.isInSet(i.marks)&&(a=[n]):a=i.marks;if(a&&a.length)for(var c=Math.min(s+i.nodeSize,t),u=0;u<a.length;u++){for(var p=a[u],h=void 0,f=0;f<o.length;f++){var v=o[f];v.step==r-1&&p.eq(o[f].style)&&(h=v)}h?(h.to=c,h.step=r):o.push({style:p,from:Math.max(s,e),to:c,step:r})}}})),o.forEach((function(e){return i.step(new qe(e.from,e.to,e.style))})),this},Ie.prototype.clearIncompatible=function(e,t,n){void 0===n&&(n=t.contentMatch);for(var i=this.doc.nodeAt(e),o=[],r=e+1,s=0;s<i.childCount;s++){var l=i.child(s),d=r+l.nodeSize,c=n.matchType(l.type,l.attrs);if(c){n=c;for(var u=0;u<l.marks.length;u++)t.allowsMarkType(l.marks[u].type)||this.step(new qe(r,d,l.marks[u]))}else o.push(new Be(r,d,f.empty));r=d}if(!n.validEnd){var p=n.fillBefore(a.empty,!0);this.replace(r,r,new f(p,0,0))}for(var h=o.length-1;h>=0;h--)this.step(o[h]);return this},Ie.prototype.replace=function(e,t,n){void 0===t&&(t=e),void 0===n&&(n=f.empty);var i=Ge(this.doc,e,t,n);return i&&this.step(i),this},Ie.prototype.replaceWith=function(e,t,n){return this.replace(e,t,new f(a.from(n),0,0))},Ie.prototype.delete=function(e,t){return this.replace(e,t,f.empty)},Ie.prototype.insert=function(e,t){return this.replaceWith(e,e,t)};var Xe=function(e,t,n){this.$to=t,this.$from=e,this.unplaced=n,this.frontier=[];for(var i=0;i<=e.depth;i++){var o=e.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(i))})}this.placed=a.empty;for(var r=e.depth;r>0;r--)this.placed=a.from(e.node(r).copy(this.placed))},Ye={depth:{configurable:!0}};function Ze(e,t,n){return 0==t?e.cutByIndex(n):e.replaceChild(0,e.firstChild.copy(Ze(e.firstChild.content,t-1,n)))}function Qe(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Qe(e.lastChild.content,t-1,n)))}function et(e,t){for(var n=0;n<t;n++)e=e.firstChild.content;return e}function tt(e,t,n){if(t<=0)return e;var i=e.content;return t>1&&(i=i.replaceChild(0,tt(i.firstChild,t-1,1==i.childCount?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(a.empty,!0)))),e.copy(i)}function nt(e,t,n,i,o){var r=e.node(t),s=o?e.indexAfter(t):e.index(t);if(s==r.childCount&&!n.compatibleContent(r.type))return null;var a=i.fillBefore(r.content,!0,s);return a&&!function(e,t,n){for(var i=n;i<t.childCount;i++)if(!e.allowsMarks(t.child(i).marks))return!0;return!1}(n,r.content,s)?a:null}function it(e,t,n,i,o){if(t<n){var r=e.firstChild;e=e.replaceChild(0,r.copy(it(r.content,t+1,n,i,r)))}if(t>i){var s=o.contentMatchAt(0),l=s.fillBefore(e).append(e);e=l.append(s.matchFragment(l).fillBefore(a.empty,!0))}return e}function ot(e,t){for(var n=[],i=Math.min(e.depth,t.depth);i>=0;i--){var o=e.start(i);if(o<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(o==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==o-1)&&n.push(i)}return n}Ye.depth.get=function(){return this.frontier.length-1},Xe.prototype.fit=function(){for(;this.unplaced.size;){var e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}var t=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,o=this.close(t<0?this.$to:i.doc.resolve(t));if(!o)return null;for(var r=this.placed,s=i.depth,a=o.depth;s&&a&&1==r.childCount;)r=r.firstChild.content,s--,a--;var l=new f(r,s,a);return t>-1?new Ne(i.pos,t,this.$to.pos,this.$to.end(),l,n):l.size||i.pos!=this.$to.pos?new Be(i.pos,o.pos,l):void 0},Xe.prototype.findFittable=function(){for(var e=1;e<=2;e++)for(var t=this.unplaced.openStart;t>=0;t--)for(var n=void 0,i=(t?(n=et(this.unplaced.content,t-1).firstChild).content:this.unplaced.content).firstChild,o=this.depth;o>=0;o--){var r=this.frontier[o],s=r.type,l=r.match,d=void 0,c=void 0;if(1==e&&(i?l.matchType(i.type)||(c=l.fillBefore(a.from(i),!1)):s.compatibleContent(n.type)))return{sliceDepth:t,frontierDepth:o,parent:n,inject:c};if(2==e&&i&&(d=l.findWrapping(i.type)))return{sliceDepth:t,frontierDepth:o,parent:n,wrap:d};if(n&&l.matchType(n.type))break}},Xe.prototype.openMore=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,o=et(t,n);return!(!o.childCount||o.firstChild.isLeaf||(this.unplaced=new f(t,n+1,Math.max(i,o.size+n>=t.size-i?n+1:0)),0))},Xe.prototype.dropNode=function(){var e=this.unplaced,t=e.content,n=e.openStart,i=e.openEnd,o=et(t,n);if(o.childCount<=1&&n>0){var r=t.size-n<=n+o.size;this.unplaced=new f(Ze(t,n-1,1),n-1,r?n-1:i)}else this.unplaced=new f(Ze(t,n,1),n,i)},Xe.prototype.placeNodes=function(e){for(var t=e.sliceDepth,n=e.frontierDepth,i=e.parent,o=e.inject,r=e.wrap;this.depth>n;)this.closeFrontierNode();if(r)for(var s=0;s<r.length;s++)this.openFrontierNode(r[s]);var l=this.unplaced,d=i?i.content:l.content,c=l.openStart-t,u=0,p=[],h=this.frontier[n],v=h.match,m=h.type;if(o){for(var g=0;g<o.childCount;g++)p.push(o.child(g));v=v.matchFragment(o)}for(var y=d.size+t-(l.content.size-l.openEnd);u<d.childCount;){var b=d.child(u),k=v.matchType(b.type);if(!k)break;(++u>1||0==c||b.content.size)&&(v=k,p.push(tt(b.mark(m.allowedMarks(b.marks)),1==u?c:0,u==d.childCount?y:-1)))}var w=u==d.childCount;w||(y=-1),this.placed=Qe(this.placed,n,a.from(p)),this.frontier[n].match=v,w&&y<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(var S=0,x=d;S<y;S++){var C=x.lastChild;this.frontier.push({type:C.type,match:C.contentMatchAt(C.childCount)}),x=C.content}this.unplaced=w?0==t?f.empty:new f(Ze(l.content,t-1,1),t-1,y<0?l.openEnd:t-1):new f(Ze(l.content,t,u),l.openStart,l.openEnd)},Xe.prototype.mustMoveInline=function(){if(!this.$to.parent.isTextblock||this.$to.end()==this.$to.pos)return-1;var e,t=this.frontier[this.depth];if(!t.type.isTextblock||!nt(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;for(var n=this.$to.depth,i=this.$to.after(n);n>1&&i==this.$to.end(--n);)++i;return i},Xe.prototype.findCloseLevel=function(e){e:for(var t=Math.min(this.depth,e.depth);t>=0;t--){var n=this.frontier[t],i=n.match,o=n.type,r=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=nt(e,t,o,i,r);if(s){for(var a=t-1;a>=0;a--){var l=this.frontier[a],d=l.match,c=nt(e,a,l.type,d,!0);if(!c||c.childCount)continue e}return{depth:t,fit:s,move:r?e.doc.resolve(e.after(t+1)):e}}}},Xe.prototype.close=function(e){var t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Qe(this.placed,t.depth,t.fit)),e=t.move;for(var n=t.depth+1;n<=e.depth;n++){var i=e.node(n),o=i.type.contentMatch.fillBefore(i.content,!0,e.index(n));this.openFrontierNode(i.type,i.attrs,o)}return e},Xe.prototype.openFrontierNode=function(e,t,n){var i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Qe(this.placed,this.depth,a.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})},Xe.prototype.closeFrontierNode=function(){var e=this.frontier.pop().match.fillBefore(a.empty,!0);e.childCount&&(this.placed=Qe(this.placed,this.frontier.length,e))},Object.defineProperties(Xe.prototype,Ye),Ie.prototype.replaceRange=function(e,t,n){if(!n.size)return this.deleteRange(e,t);var i=this.doc.resolve(e),o=this.doc.resolve(t);if(Je(i,o,n))return this.step(new Be(e,t,n));var r=ot(i,this.doc.resolve(t));0==r[r.length-1]&&r.pop();var s=-(i.depth+1);r.unshift(s);for(var a=i.depth,l=i.pos-1;a>0;a--,l--){var d=i.node(a).type.spec;if(d.defining||d.isolating)break;r.indexOf(a)>-1?s=a:i.before(a)==l&&r.splice(1,0,-a)}for(var c=r.indexOf(s),u=[],p=n.openStart,h=n.content,v=0;;v++){var m=h.firstChild;if(u.push(m),v==n.openStart)break;h=m.content}p>0&&u[p-1].type.spec.defining&&i.node(c).type!=u[p-1].type?p-=1:p>=2&&u[p-1].isTextblock&&u[p-2].type.spec.defining&&i.node(c).type!=u[p-2].type&&(p-=2);for(var g=n.openStart;g>=0;g--){var y=(g+p+1)%(n.openStart+1),b=u[y];if(b)for(var k=0;k<r.length;k++){var w=r[(k+c)%r.length],S=!0;w<0&&(S=!1,w=-w);var x=i.node(w-1),C=i.index(w-1);if(x.canReplaceWith(C,C,b.type,b.marks))return this.replace(i.before(w),S?o.after(w):t,new f(it(n.content,0,n.openStart,y),y,n.openEnd))}}for(var $=this.steps.length,I=r.length-1;I>=0&&(this.replace(e,t,n),!(this.steps.length>$));I--){var O=r[I];O<0||(e=i.before(O),t=o.after(O))}return this},Ie.prototype.replaceRangeWith=function(e,t,n){if(!n.isInline&&e==t&&this.doc.resolve(e).parent.content.size){var i=_e(this.doc,e,n.type);null!=i&&(e=t=i)}return this.replaceRange(e,t,new f(a.from(n),0,0))},Ie.prototype.deleteRange=function(e,t){for(var n=this.doc.resolve(e),i=this.doc.resolve(t),o=ot(n,i),r=0;r<o.length;r++){var s=o[r],a=r==o.length-1;if(a&&0==s||n.node(s).type.contentMatch.validEnd)return this.delete(n.start(s),i.end(s));if(s>0&&(a||n.node(s-1).canReplace(n.index(s-1),i.indexAfter(s-1))))return this.delete(n.before(s),i.after(s))}for(var l=1;l<=n.depth&&l<=i.depth;l++)if(e-n.start(l)==n.depth-l&&t>n.end(l)&&i.end(l)-t!=i.depth-l)return this.delete(n.before(l),t);return this.delete(e,t)};var rt=Object.create(null),st=function(e,t,n){this.ranges=n||[new lt(e.min(t),e.max(t))],this.$anchor=e,this.$head=t},at={anchor:{configurable:!0},head:{configurable:!0},from:{configurable:!0},to:{configurable:!0},$from:{configurable:!0},$to:{configurable:!0},empty:{configurable:!0}};at.anchor.get=function(){return this.$anchor.pos},at.head.get=function(){return this.$head.pos},at.from.get=function(){return this.$from.pos},at.to.get=function(){return this.$to.pos},at.$from.get=function(){return this.ranges[0].$from},at.$to.get=function(){return this.ranges[0].$to},at.empty.get=function(){for(var e=this.ranges,t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0},st.prototype.content=function(){return this.$from.node(0).slice(this.from,this.to,!0)},st.prototype.replace=function(e,t){void 0===t&&(t=f.empty);for(var n=t.content.lastChild,i=null,o=0;o<t.openEnd;o++)i=n,n=n.lastChild;for(var r=e.steps.length,s=this.ranges,a=0;a<s.length;a++){var l=s[a],d=l.$from,c=l.$to,u=e.mapping.slice(r);e.replaceRange(u.map(d.pos),u.map(c.pos),a?f.empty:t),0==a&&mt(e,r,(n?n.isInline:i&&i.isTextblock)?-1:1)}},st.prototype.replaceWith=function(e,t){for(var n=e.steps.length,i=this.ranges,o=0;o<i.length;o++){var r=i[o],s=r.$from,a=r.$to,l=e.mapping.slice(n),d=l.map(s.pos),c=l.map(a.pos);o?e.deleteRange(d,c):(e.replaceRangeWith(d,c,t),mt(e,n,t.isInline?-1:1))}},st.findFrom=function(e,t,n){var i=e.parent.inlineContent?new dt(e):vt(e.node(0),e.parent,e.pos,e.index(),t,n);if(i)return i;for(var o=e.depth-1;o>=0;o--){var r=t<0?vt(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):vt(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(r)return r}},st.near=function(e,t){return void 0===t&&(t=1),this.findFrom(e,t)||this.findFrom(e,-t)||new ht(e.node(0))},st.atStart=function(e){return vt(e,e,0,0,1)||new ht(e)},st.atEnd=function(e){return vt(e,e,e.content.size,e.childCount,-1)||new ht(e)},st.fromJSON=function(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");var n=rt[t.type];if(!n)throw new RangeError("No selection type "+t.type+" defined");return n.fromJSON(e,t)},st.jsonID=function(e,t){if(e in rt)throw new RangeError("Duplicate use of selection JSON ID "+e);return rt[e]=t,t.prototype.jsonID=e,t},st.prototype.getBookmark=function(){return dt.between(this.$anchor,this.$head).getBookmark()},Object.defineProperties(st.prototype,at),st.prototype.visible=!0;var lt=function(e,t){this.$from=e,this.$to=t},dt=function(e){function t(t,n){void 0===n&&(n=t),e.call(this,t,n)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={$cursor:{configurable:!0}};return n.$cursor.get=function(){return this.$anchor.pos==this.$head.pos?this.$head:null},t.prototype.map=function(n,i){var o=n.resolve(i.map(this.head));if(!o.parent.inlineContent)return e.near(o);var r=n.resolve(i.map(this.anchor));return new t(r.parent.inlineContent?r:o,o)},t.prototype.replace=function(t,n){if(void 0===n&&(n=f.empty),e.prototype.replace.call(this,t,n),n==f.empty){var i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor&&e.head==this.head},t.prototype.getBookmark=function(){return new ct(this.anchor,this.head)},t.prototype.toJSON=function(){return{type:"text",anchor:this.anchor,head:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.anchor||"number"!=typeof n.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,t,n){void 0===n&&(n=t);var i=e.resolve(t);return new this(i,n==t?i:e.resolve(n))},t.between=function(n,i,o){var r=n.pos-i.pos;if(o&&!r||(o=r>=0?1:-1),!i.parent.inlineContent){var s=e.findFrom(i,o,!0)||e.findFrom(i,-o,!0);if(!s)return e.near(i,o);i=s.$head}return n.parent.inlineContent||(0==r||(n=(e.findFrom(n,-o,!0)||e.findFrom(n,o,!0)).$anchor).pos<i.pos!=r<0)&&(n=i),new t(n,i)},Object.defineProperties(t.prototype,n),t}(st);st.jsonID("text",dt);var ct=function(e,t){this.anchor=e,this.head=t};ct.prototype.map=function(e){return new ct(e.map(this.anchor),e.map(this.head))},ct.prototype.resolve=function(e){return dt.between(e.resolve(this.anchor),e.resolve(this.head))};var ut=function(e){function t(t){var n=t.nodeAfter,i=t.node(0).resolve(t.pos+n.nodeSize);e.call(this,t,i),this.node=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,i){var o=i.mapResult(this.anchor),r=o.deleted,s=o.pos,a=n.resolve(s);return r?e.near(a):new t(a)},t.prototype.content=function(){return new f(a.from(this.node),0,0)},t.prototype.eq=function(e){return e instanceof t&&e.anchor==this.anchor},t.prototype.toJSON=function(){return{type:"node",anchor:this.anchor}},t.prototype.getBookmark=function(){return new pt(this.anchor)},t.fromJSON=function(e,n){if("number"!=typeof n.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new t(e.resolve(n.anchor))},t.create=function(e,t){return new this(e.resolve(t))},t.isSelectable=function(e){return!e.isText&&!1!==e.type.spec.selectable},t}(st);ut.prototype.visible=!1,st.jsonID("node",ut);var pt=function(e){this.anchor=e};pt.prototype.map=function(e){var t=e.mapResult(this.anchor),n=t.deleted,i=t.pos;return n?new ct(i,i):new pt(i)},pt.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=t.nodeAfter;return n&&ut.isSelectable(n)?new ut(t):st.near(t)};var ht=function(e){function t(t){e.call(this,t.resolve(0),t.resolve(t.content.size))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.replace=function(t,n){if(void 0===n&&(n=f.empty),n==f.empty){t.delete(0,t.doc.content.size);var i=e.atStart(t.doc);i.eq(t.selection)||t.setSelection(i)}else e.prototype.replace.call(this,t,n)},t.prototype.toJSON=function(){return{type:"all"}},t.fromJSON=function(e){return new t(e)},t.prototype.map=function(e){return new t(e)},t.prototype.eq=function(e){return e instanceof t},t.prototype.getBookmark=function(){return ft},t}(st);st.jsonID("all",ht);var ft={map:function(){return this},resolve:function(e){return new ht(e)}};function vt(e,t,n,i,o,r){if(t.inlineContent)return dt.create(e,n);for(var s=i-(o>0?0:1);o>0?s<t.childCount:s>=0;s+=o){var a=t.child(s);if(a.isAtom){if(!r&&ut.isSelectable(a))return ut.create(e,n-(o<0?a.nodeSize:0))}else{var l=vt(e,a,n+o,o<0?a.childCount:0,o,r);if(l)return l}n+=a.nodeSize*o}}function mt(e,t,n){var i=e.steps.length-1;if(!(i<t)){var o,r=e.steps[i];(r instanceof Be||r instanceof Ne)&&(e.mapping.maps[i].forEach((function(e,t,n,i){null==o&&(o=i)})),e.setSelection(st.near(e.doc.resolve(o),n)))}}var gt=function(e){function t(t){e.call(this,t.doc),this.time=Date.now(),this.curSelection=t.selection,this.curSelectionFor=0,this.storedMarks=t.storedMarks,this.updated=0,this.meta=Object.create(null)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={selection:{configurable:!0},selectionSet:{configurable:!0},storedMarksSet:{configurable:!0},isGeneric:{configurable:!0},scrolledIntoView:{configurable:!0}};return n.selection.get=function(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection},t.prototype.setSelection=function(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&(1|this.updated),this.storedMarks=null,this},n.selectionSet.get=function(){return(1&this.updated)>0},t.prototype.setStoredMarks=function(e){return this.storedMarks=e,this.updated|=2,this},t.prototype.ensureMarks=function(e){return p.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this},t.prototype.addStoredMark=function(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))},t.prototype.removeStoredMark=function(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))},n.storedMarksSet.get=function(){return(2&this.updated)>0},t.prototype.addStep=function(t,n){e.prototype.addStep.call(this,t,n),this.updated=-3&this.updated,this.storedMarks=null},t.prototype.setTime=function(e){return this.time=e,this},t.prototype.replaceSelection=function(e){return this.selection.replace(this,e),this},t.prototype.replaceSelectionWith=function(e,t){var n=this.selection;return!1!==t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||p.none))),n.replaceWith(this,e),this},t.prototype.deleteSelection=function(){return this.selection.replace(this),this},t.prototype.insertText=function(e,t,n){void 0===n&&(n=t);var i=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();if(!e)return this.deleteRange(t,n);var o=this.storedMarks;if(!o){var r=this.doc.resolve(t);o=n==t?r.marks():r.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,i.text(e,o)),this.selection.empty||this.setSelection(st.near(this.selection.$to)),this},t.prototype.setMeta=function(e,t){return this.meta["string"==typeof e?e:e.key]=t,this},t.prototype.getMeta=function(e){return this.meta["string"==typeof e?e:e.key]},n.isGeneric.get=function(){for(var e in this.meta)return!1;return!0},t.prototype.scrollIntoView=function(){return this.updated|=4,this},n.scrolledIntoView.get=function(){return(4&this.updated)>0},Object.defineProperties(t.prototype,n),t}(Ie);function yt(e,t){return t&&e?e.bind(t):e}var bt=function(e,t,n){this.name=e,this.init=yt(t.init,n),this.apply=yt(t.apply,n)},kt=[new bt("doc",{init:function(e){return e.doc||e.schema.topNodeType.createAndFill()},apply:function(e){return e.doc}}),new bt("selection",{init:function(e,t){return e.selection||st.atStart(t.doc)},apply:function(e){return e.selection}}),new bt("storedMarks",{init:function(e){return e.storedMarks||null},apply:function(e,t,n,i){return i.selection.$cursor?e.storedMarks:null}}),new bt("scrollToSelection",{init:function(){return 0},apply:function(e,t){return e.scrolledIntoView?t+1:t}})],wt=function(e,t){var n=this;this.schema=e,this.fields=kt.concat(),this.plugins=[],this.pluginsByKey=Object.create(null),t&&t.forEach((function(e){if(n.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");n.plugins.push(e),n.pluginsByKey[e.key]=e,e.spec.state&&n.fields.push(new bt(e.key,e.spec.state,e))}))},St=function(e){this.config=e},xt={schema:{configurable:!0},plugins:{configurable:!0},tr:{configurable:!0}};xt.schema.get=function(){return this.config.schema},xt.plugins.get=function(){return this.config.plugins},St.prototype.apply=function(e){return this.applyTransaction(e).state},St.prototype.filterTransaction=function(e,t){void 0===t&&(t=-1);for(var n=0;n<this.config.plugins.length;n++)if(n!=t){var i=this.config.plugins[n];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0},St.prototype.applyTransaction=function(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};for(var t=[e],n=this.applyInner(e),i=null;;){for(var o=!1,r=0;r<this.config.plugins.length;r++){var s=this.config.plugins[r];if(s.spec.appendTransaction){var a=i?i[r].n:0,l=i?i[r].state:this,d=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,n);if(d&&n.filterTransaction(d,r)){if(d.setMeta("appendedTransaction",e),!i){i=[];for(var c=0;c<this.config.plugins.length;c++)i.push(c<r?{state:n,n:t.length}:{state:this,n:0})}t.push(d),n=n.applyInner(d),o=!0}i&&(i[r]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}},St.prototype.applyInner=function(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");for(var t=new St(this.config),n=this.config.fields,i=0;i<n.length;i++){var o=n[i];t[o.name]=o.apply(e,this[o.name],this,t)}for(var r=0;r<Ct.length;r++)Ct[r](this,e,t);return t},xt.tr.get=function(){return new gt(this)},St.create=function(e){for(var t=new wt(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new St(t),i=0;i<t.fields.length;i++)n[t.fields[i].name]=t.fields[i].init(e,n);return n},St.prototype.reconfigure=function(e){for(var t=new wt(this.schema,e.plugins),n=t.fields,i=new St(t),o=0;o<n.length;o++){var r=n[o].name;i[r]=this.hasOwnProperty(r)?this[r]:n[o].init(e,i)}return i},St.prototype.toJSON=function(e){var t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((function(e){return e.toJSON()}))),e&&"object"==typeof e)for(var n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");var i=e[n],o=i.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(i,this[i.key]))}return t},St.fromJSON=function(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");var i=new wt(e.schema,e.plugins),o=new St(i);return i.fields.forEach((function(i){if("doc"==i.name)o.doc=E.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=st.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(var r in n){var s=n[r],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(o[i.name]=a.fromJSON.call(s,e,t[r],o))}o[i.name]=i.init(e,o)}})),o},St.addApplyListener=function(e){Ct.push(e)},St.removeApplyListener=function(e){var t=Ct.indexOf(e);t>-1&&Ct.splice(t,1)},Object.defineProperties(St.prototype,xt);var Ct=[];function $t(e,t,n){for(var i in e){var o=e[i];o instanceof Function?o=o.bind(t):"handleDOMEvents"==i&&(o=$t(o,t,{})),n[i]=o}return n}var It=function(e){this.props={},e.props&&$t(e.props,this,this.props),this.spec=e,this.key=e.key?e.key.key:Dt("plugin")};It.prototype.getState=function(e){return e[this.key]};var Ot=Object.create(null);function Dt(e){return e in Ot?e+"$"+ ++Ot[e]:(Ot[e]=0,e+"$")}var Mt=function(e){void 0===e&&(e="key"),this.key=Dt(e)};Mt.prototype.get=function(e){return e.config.pluginsByKey[this.key]},Mt.prototype.getState=function(e){return e[this.key]};var Tt="k-parent-node",Rt="k-colgroup-data",Bt=["div","ol","ul","li","table","tbody","thead","tfoot","td","th","p","tr","col","colgroup","article","main","nav","header","footer","aside","section"],Nt=function(e,t){var n=(e.ownerDocument||document).createElement(t);Array.from(e.rows).filter((function(e){return e.getAttribute(Tt)===t})).forEach((function(e){e.removeAttribute(Tt),n.appendChild(e)})),n.children.length&&e.appendChild(n)},Pt=function(e,t){var n=t.toUpperCase();e.filter((function(e){return e.nodeName===n})).forEach((function(e){Array.from(e.children).forEach((function(n){n.setAttribute(Tt,t),e.parentNode&&e.parentNode.insertBefore(n,e)})),e.remove()}))},Et=function(e,t){void 0===t&&(t=Bt);var n=t.join("|");return e.replace(new RegExp("\\s*(<(?:"+n+")(?:\\s[^>]*?)?>)","g"),"$1").replace(new RegExp("(<\\/(?:"+n+")(?:\\s[^>]*?)?>)\\s*","g"),"$1")},Vt=function(e){var t,n=document.createElement("template");if("content"in n)n.innerHTML=e,t=n.content;else{var i=(new DOMParser).parseFromString(e,"text/html");t=document.createDocumentFragment();for(var o=i.body;o&&o.firstChild;)t.appendChild(o.firstChild)}return t},Lt=function(e){var t=ge.fromSchema(e.type.schema).serializeFragment(e.content);return function(e){Array.from(e.querySelectorAll("table")).forEach((function(e){Nt(e,"thead"),Nt(e,"tbody"),Nt(e,"tfoot");var t=Array.from(e.children).find((function(e){return 0===e.children.length}));t&&t.remove()}))}(t),t},At=function(e,t,n){return se.fromSchema(t).parse(e,n)},Ft=function(e,t,n){var i,o=Vt(e);return i=o,Array.from(i.querySelectorAll("table")).forEach((function(e){var t=Array.from(e.children);t.some((function(e){return"THEAD"===e.nodeName||"TFOOT"===e.nodeName}))&&(Pt(t,"thead"),Pt(t,"tbody"),Pt(t,"tfoot"));var n=t.find((function(e){return"COLGROUP"===e.nodeName}));n&&(e.setAttribute(Rt,n.outerHTML),n.remove())})),At(o,t,n)},zt=function(e){var t=Lt(e.doc),n=document.createElement("div");return n.appendChild(t),n.innerHTML},jt=function(e,t,n){return void 0===t&&(t="setHTML"),void 0===n&&(n={preserveWhitespace:"full"}),function(i,o){return o(i.tr.setSelection(new ht(i.doc)).replaceSelectionWith(Ft(e,i.schema,n)).setMeta("commandName",t))}},Kt=function(){return Kt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kt.apply(this,arguments)};function _t(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}var Ht=function(e,t){var n=t.style,i=t.value,o=t.newValue;if(!e)return{changed:!1,style:null};var r=e.split(/\s*;\s*/).filter((function(e){return Boolean(e)})),s=r.filter((function(e){var t=e.split(/\s*:\s*/);return!(t[0].toLowerCase()===n&&i.test(t[1]))}));return o&&s.push(n+": "+o),{style:s.join("; ")+(s.length?";":""),changed:Boolean(o)||s.length!==r.length}},Wt=function(e,t){for(var n=e.selection.$from,i=n.depth;i>=0;i--){var o=n.index(i);if(n.node(i).canReplaceWith(o,o,t))return!0}return!1},Ut=function(e){return e instanceof E?e.type.name:e.name},qt=function(e,t){return void 0===t&&(t=1),function(n){return function(e,t){return void 0===t&&(t=1),function(n){for(var i=n.$from,o=i.depth;o>0;o--){var r=i.node(o);if(e(r)&&0==(t-=1))return{depth:o,node:r}}}}((function(t){return Ut(t)===Ut(e)}),t)(n)}},Gt=function(e,t){return function(n,i){var o=n.tr.replaceSelectionWith(e);t&&o.scrollIntoView(),i(o)}},Jt=function(e,t,n,i){var o=a.from(Ft(e,n,i)),r=a.from(Ft(t,n,i));return o.eq(r)},Xt=function(e){var t=e.selection;if(t instanceof dt||t instanceof ht){var n=t.content().content;return n.textBetween(0,n.size)}return""},Yt=function(e){if(e.selection instanceof ut)return e.selection.node},Zt=function(e){var t="",n=!1,i=e.selection,o=e.doc,r=i.$from,s=i.$to,a=i.from,l=i.to;return r.sameParent(s)&&(o.nodesBetween(a,l,(function(e){n=n||e.isLeaf&&!e.isText})),n||(t=Xt(e))),t},Qt=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$/,"")},en={before:/[^ !,?.\[\]{}()]+$/i,after:/^[^ !,?.\[\]{}()]+/i},tn=function(e,t,n){if(!n.applyToWord||!e.selection.empty)return{state:e,dispatch:t};var i=!0===n.applyToWord?en:n.applyToWord,o=null,r=e.tr,s=e.selection,a=s.$head.nodeBefore,l=s.$head.nodeAfter;if(a&&"text"===a.type.name&&a.text&&l&&"text"===l.type.name&&l.text){var d=[];s.$head.parent.descendants((function(e,t){return d.push({node:e,pos:t}),!1}));for(var c=s.$head.parentOffset,u=d.findIndex((function(e){var t=e.node,n=e.pos;return n<=c&&n+t.nodeSize>=c})),p=d[u].node.text,h=!1,f=u-1;f>=0;f--){var v=d[f];!h&&v&&"text"===v.node.type.name?p=v.node.text+p:(h=!0,c-=v.node.nodeSize)}for(f=u+1;f<d.length&&((v=d[f])&&"text"===v.node.type.name);f++)p+=v.node.text;var m=p.substring(0,c),g=p.substring(c),y=i.before.exec(m),b=i.after.exec(g);if(y&&b){var k=y[0].length,w=b[0].length,S=o=s.from;return r.setSelection(dt.create(e.doc,S-k,S+w)),{state:{tr:r,selection:r.selection,doc:r.doc,storedMarks:null,schema:r.doc.type.schema},dispatch:function(e){e.setSelection(dt.create(e.doc,o)),t(e)}}}}return{state:e,dispatch:t}},nn=function(e,t){return function(n,i,o){var r=tn(n,i,t),s=r.state,a=r.dispatch;return e(t)(s,a)}},on=function(e,t,n){for(var i=function(i){var o=t[i],r=o.$from,s=o.$to,a=0===r.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(r.pos,s.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)})),a)return{v:!0}},o=0;o<t.length;o++){var r=i(o);if(r)return r.v}return!1},rn=function(e,t,n){return function(i,o){var r=i.selection,s=r.empty,a=r.$cursor,l=r.ranges;if(s&&!a||!on(i.doc,l,e))return!1;if(o)if(a)e.isInSet(i.storedMarks||a.marks())?o(n.removeStoredMark(e)):o(n.addStoredMark(e.create(t)));else{for(var d=!1,c=0;!d&&c<l.length;c++){var u=l[c],p=u.$from,h=u.$to;d=i.doc.rangeHasMark(p.pos,h.pos,e)}for(c=0;c<l.length;c++){var f=l[c];p=f.$from,h=f.$to,d?n.removeMark(p.pos,h.pos,e):n.addMark(p.pos,h.pos,e.create(t))}o(n.scrollIntoView())}return!0}},sn=function(e,t,n,i){void 0===i&&(i=null);var o=[],r=0;return e.doc.nodesBetween(t,n,(function(e,s){if(e.isInline){r++;var a=null;if(i instanceof ie){var l=i.isInSet(e.marks);l&&(a=[l])}else i?i.isInSet(e.marks)&&(a=[i]):a=e.marks;if(a&&a.length)for(var d=Math.min(s+e.nodeSize,n),c=0;c<a.length;c++){for(var u=a[c],p=void 0,h=0;h<o.length;h++){var f=o[h];f.step===r-1&&u.eq(f.style)&&(p=f)}p?(p.to=d,p.step=r):o.push({style:u,from:Math.max(s,t),to:d,step:r})}}})),o.forEach((function(t){return e.step(new qe(t.from,t.to,t.style))})),e},an=function(e){var t=(void 0===e?{}:e).except,n=void 0===t?[]:t;return function(e,t){var i,o=e.tr;ln(o,{except:(i=n,i instanceof Array?i:[i])}),o.docChanged&&t(o)}},ln=function(e,t){var n=t.except,i=e.doc,o=e.selection,r=i.type.schema,s=o.empty,a=o.ranges,l=(n||[]).map((function(e){return e.name}));if(!s){var d=Object.keys(r.marks).map((function(e){return r.marks[e]})).filter((function(e){return-1===l.indexOf(e.name)}));a.forEach((function(t){var n=t.$from,i=t.$to;d.forEach((function(t){return e.removeMark(n.pos,i.pos,t)}))}))}},dn=function(e,t){var n,i=e.schema.marks,o=(t.altMarks||[]).filter((function(e){return i[e]})),r=t.altStyle,s=e.selection,a=s.from,l=s.$from,d=s.to,c=s.empty,u=i[t.mark],p=e.doc,h=!1;return c?(n=e.storedMarks||l.marks(),h=u&&u.isInSet(n)||o.some((function(e){return i[e].isInSet(n)}))):h=u&&p.rangeHasMark(a,d,u)||o.some((function(e){return p.rangeHasMark(a,d,i[e])})),!h&&r&&i.style?un(e,i.style).some((function(e){return null!==cn(e,r)})):Boolean(h)},cn=function(e,t){for(var n=(e&&e.attrs.style||"").split(/\s*;\s*/).filter((function(e){return Boolean(e)})),i=0;i<n.length;i++){var o=n[i].split(/\s*:\s*/);if(o[0].toLowerCase()===t.name&&t.value.test(o[1]))return o[1]}return null},un=function(e,t){var n=e.selection,i=n.from,o=n.$from,r=n.to,s=n.empty,a=[];return s?a.push(t.isInSet(e.storedMarks||o.marks())):e.doc.nodesBetween(i,r,(function(e){e.isInline&&a.push(t.isInSet(e.marks))})),a},pn=function(e,t){var n=un(e,t),i=n.filter((function(e){return Boolean(e)}));return n.length===i.length?n[0]:void 0},hn=function(e,t){var n=un(e,t),i=n.filter((function(e){return Boolean(e)}));return{hasNodesWithoutMarks:n.length!==i.length,marks:i}},fn=function(e,t){var n=e.find((function(e){return"style"===e.type.name})),i=n&&n.attrs.style;return Ht(i,t)},vn=function(e,t,n,i,o){var r=o.create({style:i.style}),s=[],a=[],l=null,d=null;return e.doc.nodesBetween(t,n,(function(e,c,u){if(e.isInline){var p=e.marks;if(!r.isInSet(p)&&u.type.allowsMarkType(r.type)){var h=Math.max(c,t),f=Math.min(c+e.nodeSize,n),v=fn(p,i);if(v.changed||i.newValue){for(var m=v.changed?{style:v.style||null}:{style:[i.style]+": "+i.newValue+";"},g=o.isInSet(p)?p.find((function(e){return"style"===e.type.name})):null,y=g?Kt({},g.attrs,m):m,b=o.create(y),k=b.addToSet(p),w=0;w<p.length;w++)p[w].isInSet(k)||(l&&l.to===h&&l.mark.eq(p[w])?l.to=f:(l=new qe(h,f,p[w]),s.push(l)));var S=d&&d.to===h,x=S&&b.attrs.style===d.mark.attrs.style;S&&x?d.to=f:Object.keys(y).some((function(e){return null!==y[e]}))&&(d=new Ue(h,f,b),a.push(d))}}}})),s.forEach((function(t){return e.step(t)})),a.forEach((function(t){return e.step(t)})),s.length+a.length>0},mn=function(e,t){var n=e.schema.marks.style;return(n?un(e,n):[]).map((function(e){return cn(e,t)})).filter((function(e){return null!==e}))},gn=function(e,t){return function(n,i,o){var r=n.selection,s=r.empty,a=r.$cursor,l=r.ranges;if(s&&!a||!on(n.doc,l,e))return!1;var d,c,u,p,h=!1;if(i){var f=o||n.tr;if(a){var v=n.storedMarks||a.marks();if(e.isInSet(v)){var m=fn(v,t),g=v.find((function(e){return"style"===e.type.name})),y=Kt({},g?g.attrs:{},{style:m.style||null});if(d=g.attrs,c=y,u=Object.keys(d),p=Object.keys(c),u.length===p.length&&u.every((function(e){return d[e]===c[e]})))return!1;i(f.removeStoredMark(e)),Object.keys(y).some((function(e){return null!==y[e]}))&&i(f.addStoredMark(e.create(y))),h=!0}}else{for(var b=0;b<l.length;b++){var k=l[b],w=k.$from,S=k.$to;h=vn(f,w.pos,S.pos,t,e)}h&&(f.scrollIntoView(),i(f))}}return h}},yn=function(e,t,n){return function(i,o){var r=i.schema.marks,s=e.altStyle,a=e.altMarks,l=void 0===a?[]:a,d=e.mark,c=t||i.tr,u=!1,p=!1,h=function(){return p=!0};s&&r.style&&(u=gn(r.style,{style:s.name,value:s.value})(i,h,c));var f=[d].concat(l).filter((function(e){return r[e]})).map((function(e){return dn(i,{mark:e})&&r[e]})).filter((function(e){return e}));return f.length?function(e,t,n,i){var o=t.selection,r=o.$cursor,s=o.ranges;if(i=i||t.tr,r)e.forEach((function(e){e.isInSet(t.storedMarks||r.marks())&&n(i.removeStoredMark(e))}));else{for(var a=function(t){var n=s[t],o=n.$from,r=n.$to;e.forEach((function(e){sn(i,o.pos,r.pos,e)}))},l=0;l<s.length;l++)a(l);n(i.scrollIntoView())}}(f,i,h,c):u||rn(r[d],n,c)(i,h),p&&o(c),p}},bn=function(e,t){return function(n,i){var o=n.schema.marks.style,r={style:e.style,value:/^.+$/,newValue:e.value},s=n.tr;t&&s.setMeta("commandName",t),s.setMeta("args",e);var a=n.selection,l=a.empty,d=a.$cursor,c=a.ranges;if(l&&!d||!o||!on(n.doc,c,o))return!1;if(d){var u=n.storedMarks||d.marks(),p=o.isInSet(u)?u.find((function(e){return"style"===e.type.name})):null,h={style:null};if(p&&p.attrs.style){var f=Ht(p.attrs.style,r);f.changed&&f.style&&(h.style=f.style)}else r.newValue&&(h.style=[r.style]+": "+r.newValue+";");var v=p?Kt({},p.attrs,h):h;return Object.keys(v).some((function(e){return null!==v[e]}))?i(s.addStoredMark(o.create(v))):i(s.removeStoredMark(o)),!0}return gn(o,r)(n,i,s)}},kn=function(e,t){return function(n,i){var o=n.selection.$cursor;if(o){var r=o.parent,s=o.index(),a=n.schema.marks[e.mark],l=r.child(s).marks.find((function(e){return e.type===a})),d=r.childCount,c=o.pos-o.textOffset,u=r.child(s).nodeSize,p=void 0,h=void 0;for(p=s-1;p>=0&&l.isInSet(r.child(p).marks);)u+=h=r.child(p).nodeSize,c-=h,p-=1;for(p=s+1;p<d&&l.isInSet(r.child(p).marks);)u+=r.child(p).nodeSize,p+=1;i(sn(t||n.tr,c,c+u,l))}else yn(e,t)(n,i)}},wn=function(e,t){var n=e.mark,i=e.attrs;return void 0===t&&(t="link"),function(e,o){var r=e.schema.marks,s=e.tr;t&&(s.setMeta("commandName",t),s.setMeta("args",i));var a=!1,l=function(){return a=!0};if(function(e,t){var n=un(e,t);return 1===n.length&&n[0]?n[0]:null}(e,r[n]))!function(e,t){return function(n,i){var o=n.selection,r=o.$cursor,s=o.from,a=o.to,l=n.schema.marks[e.mark];if(r){var d=r.parent,c=r.index(),u=d.child(c).marks.find((function(e){return e.type===l})),p=d.childCount,h=r.pos-r.textOffset,f=d.child(c).nodeSize,v=void 0,m=void 0;for(v=c-1;v>=0&&u.isInSet(d.child(v).marks);)f+=m=d.child(v).nodeSize,h-=m,v-=1;for(v=c+1;v<p&&u.isInSet(d.child(v).marks);)f+=d.child(v).nodeSize,v+=1;t.removeMark(h,h+f,l),t.addMark(h,h+f,l.create(e.attrs)),i(t)}else t.doc.nodesBetween(s,a,(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)),i(t))}))}}({mark:n,attrs:i},s)(e,l);else{var d=e;dn(e,{mark:n})&&(kn({mark:n,attrs:i},s)(e,l),d=St.create({doc:s.doc,selection:s.selection})),a?rn(r[n],i,s)(d,l):yn({mark:n},s,i)(d,l)}return a&&o(s),a}},Sn=function(e){return function(t,n){n(t.tr.insertText(e.text,e.from,e.to))}},xn=function(e){return function(t,n){var i=t.schema.nodes.image.createAndFill(e);Gt(i)(t,(function(t){return n(t.setMeta("commandName","insertImage").setMeta("args",e))}))}},Cn=function(e,t,n,i){if(!n.isTextblock)return!1;e.selection.ranges.forEach((function(o){var r=e.steps.length,s=o.$from.pos,l=o.$to.pos;e.doc.nodesBetween(s,l,(function(o,s){if(o.eq(t)&&o.isTextblock&&!o.hasMarkup(n,i)&&function(e,t,n){var i=e.resolve(t),o=i.index();return i.parent.canReplaceWith(o,o+1,n)}(e.doc,e.mapping.slice(r).map(s),n)){e.clearIncompatible(e.mapping.slice(r).map(s,1),n);var l=e.mapping.slice(r),d=l.map(s,1),c=l.map(s+o.nodeSize,1),u=new f(a.from(n.create(i,null,o.marks)),0,0);return e.step(new Ne(d,c,d+1,c-1,u,1,!0)),!1}}))}))},$n=function(e,t){void 0===t&&(t={blocksInSelection:!1});var n=e.doc,i=e.selection,o=i.$from,r=i.ranges,s=t.blocksInSelection,a=[],l=i instanceof ut?i.node:void 0;return l?l.isBlock?(a.push(l),l.nodesBetween(0,l.content.size,(function(e){e.isBlock&&a.push(e)}))):!s&&o.parent&&o.parent.isBlock&&a.push(o.parent):r.forEach((function(e){var t=e.$from.pos,i=e.$to.pos;n.nodesBetween(t,i,(function(e,n,o,r){e.isBlock&&(!s||n>=t&&n+e.content.size+2<=i)&&a.push(e)}))})),a},In=function(e,t){return function(n,i){var o=$n(n),r=n.schema.nodes,s=n.tr;s.setMeta("commandName",t),s.setMeta("args",{value:e}),o.forEach((function(t){if(t.type.isTextblock)if("p"===e){var n=t.attrs,i=n.level,o=_t(n,["level"]);Cn(s,t,r.paragraph,o)}else if(/^h[1-6]$/i.test(e))i=parseInt(e.substr(1),10),Cn(s,t,r.heading,Kt({},t.attrs,{level:i}));else if("blockquote"===e){var a=t.attrs;i=a.level,o=_t(a,["level"]),Cn(s,t,r.blockquote,o)}}));var a=s.docChanged;return a&&i(s.scrollIntoView()),a}},On=function(e,t){void 0===t&&(t={blocksInSelection:!0});var n=e.doc,i=e.selection,o=t.blocksInSelection,r=t.blockNodeType;$n({doc:n,selection:i},{blocksInSelection:o}).filter((function(e){return e.isTextblock})).forEach((function(t){var n=t.attrs||{},i=n.style,o=void 0===i?"":i,s=n.class,a=void 0===s?"":s,l=_t(n,["style","class"]),d=r||t.type;(o||a||d!==t.type)&&Cn(e,t,d,l)}))},Dn=function(e){var t=$n(e),n=e.schema.nodes,i=[];return t.forEach((function(e){e.type===n.paragraph?i.push("p"):e.type===n.heading?i.push("h"+e.attrs.level):e.type===n.blockquote&&n.blockquote.isTextblock&&i.push("blockquote")})),i},Mn=function(e,t){var n,i,o=e.attrs.style;return o&&t.forEach((function(e){i={style:e.name,value:/^.+$/,newValue:e.value},n=Ht(o,i),o=n.changed?n.style:o})),o=o||t.reduce((function(e,t){return(e&&t.value?e+" ":"")+t.value?t.name+": "+t.value+";":""}),""),Object.assign({},e.attrs,{style:o||null})},Tn=function(e,t){var n=e.selection,i=n.from,o=n.to,r=!1;return e.doc.nodesBetween(i,o,(function(e){return!(r=r||e.type===t)})),r},Rn=function(e){var t=Dn(e);return 1===new Set(t).size?t[0]:null},Bn=function(e){return{tag:Rn(e)||""}},Nn=function(e,t){return function(n,i){var o=$n(n),r=n.tr;r.setMeta("commandName",t),o.forEach((function(t){if(t.type.isTextblock){var n={},i=e.find((function(e){return e.node===t.type.name}));i&&(n=Mn(t,i.style)),Cn(r,t,t.type,n)}}));var s=r.docChanged;return s&&i(r.scrollIntoView()),s}},Pn=function(e,t){var n=$n(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}));n&&(i=n.style.every((function(t){return!!t.value&&new RegExp(t.name+":\\s?"+t.value,"i").test(e.attrs.style)})))}})),i},En=function(e){return void 0===e&&(e={blocksInSelection:!0}),function(t,n){var i=t.tr,o=e.blocksInSelection,r=e.blockNodeType,s=(e.exceptMarks||[t.schema.marks.link]).filter(Boolean);ln(i,{except:s}),On(i,{blocksInSelection:o,blockNodeType:r});var a=i.docChanged;return a&&n&&n(i),a}},Vn=["ol",0],Ln=["ul",0],An=["li",0],Fn={attrs:{order:{default:1}},parseDOM:[{tag:"ol",getAttrs:function(e){return{order:e.hasAttribute("start")?+e.getAttribute("start"):1}}}],toDOM:function(e){return 1==e.attrs.order?Vn:["ol",{start:e.attrs.order},0]}},zn={parseDOM:[{tag:"ul"}],toDOM:function(){return Ln}},jn={parseDOM:[{tag:"li"}],toDOM:function(){return An},defining:!0};function Kn(e,t){var n={};for(var i in e)n[i]=e[i];for(var o in t)n[o]=t[o];return n}function _n(e,t,n){return e.append({ordered_list:Kn(Fn,{content:"list_item+",group:n}),bullet_list:Kn(zn,{content:"list_item+",group:n}),list_item:Kn(jn,{content:t})})}function Hn(e,t){return function(n,i){var o=n.selection,r=o.$from,s=o.$to,l=r.blockRange(s),d=!1,c=l;if(!l)return!1;if(l.depth>=2&&r.node(l.depth-1).type.compatibleContent(e)&&0==l.startIndex){if(0==r.index(l.depth-1))return!1;var u=n.doc.resolve(l.start-2);c=new B(u,u,l.depth),l.endIndex<l.parent.childCount&&(l=new B(r,n.doc.resolve(s.end(l.depth)),l.depth)),d=!0}var p=Le(c,e,t,l);return!!p&&(i&&i(function(e,t,n,i,o){for(var r=a.empty,s=n.length-1;s>=0;s--)r=a.from(n[s].type.create(n[s].attrs,r));e.step(new Ne(t.start-(i?2:0),t.end,t.start,t.end,new f(r,0,0),n.length,!0));for(var l=0,d=0;d<n.length;d++)n[d].type==o&&(l=d+1);for(var c=n.length-l,u=t.start+n.length-(i?2:0),p=t.parent,h=t.startIndex,v=t.endIndex,m=!0;h<v;h++,m=!1)!m&&Fe(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=p.child(h).nodeSize;return e}(n.tr,l,p,d,e).scrollIntoView()),!0)}}function Wn(e){return function(t,n){var i=t.selection,o=i.$from,r=i.$to,s=i.node;if(s&&s.isBlock||o.depth<2||!o.sameParent(r))return!1;var l=o.node(-1);if(l.type!=e)return!1;if(0==o.parent.content.size&&o.node(-1).childCount==o.indexAfter(-1)){if(2==o.depth||o.node(-3).type!=e||o.index(-2)!=o.node(-2).childCount-1)return!1;if(n){for(var d=a.empty,c=o.index(-1)?1:o.index(-2)?2:3,u=o.depth-c;u>=o.depth-3;u--)d=a.from(o.node(u).copy(d));var p=o.indexAfter(-1)<o.node(-2).childCount?1:o.indexAfter(-2)<o.node(-3).childCount?2:3;d=d.append(a.from(e.createAndFill()));var h=o.before(o.depth-(c-1)),v=t.tr.replace(h,o.after(-p),new f(d,4-c,0)),m=-1;v.doc.nodesBetween(h,v.doc.content.size,(function(e,t){if(m>-1)return!1;e.isTextblock&&0==e.content.size&&(m=t+1)})),m>-1&&v.setSelection(t.selection.constructor.near(v.doc.resolve(m))),n(v.scrollIntoView())}return!0}var g=r.pos==o.end()?l.contentMatchAt(0).defaultType:null,y=t.tr.delete(o.pos,r.pos),b=g&&[null,{type:g}];return!!Fe(y.doc,o.pos,2,b)&&(n&&n(y.split(o.pos,2,b).scrollIntoView()),!0)}}function Un(e){return function(t,n){var i=t.selection,o=i.$from,r=i.$to,s=o.blockRange(r,(function(t){return t.childCount&&t.firstChild.type==e}));return!!s&&(!n||(o.node(s.depth-1).type==e?function(e,t,n,i){var o=e.tr,r=i.end,s=i.$to.end(i.depth);return r<s&&(o.step(new Ne(r-1,s,r,s,new f(a.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new B(o.doc.resolve(i.$from.pos),o.doc.resolve(s),i.depth)),t(o.lift(i,Ve(i)).scrollIntoView()),!0}(t,n,e,s):function(e,t,n){for(var i=e.tr,o=n.parent,r=n.end,s=n.endIndex-1,l=n.startIndex;s>l;s--)r-=o.child(s).nodeSize,i.delete(r-1,r+1);var d=i.doc.resolve(n.start),c=d.nodeAfter;if(i.mapping.map(n.end)!=n.start+d.nodeAfter.nodeSize)return!1;var u=0==n.startIndex,p=n.endIndex==o.childCount,h=d.node(-1),v=d.index(-1);if(!h.canReplace(v+(u?0:1),v+1,c.content.append(p?a.empty:a.from(o))))return!1;var m=d.pos,g=m+c.nodeSize;return i.step(new Ne(m-(u?1:0),g+(p?1:0),m+1,g-1,new f((u?a.empty:a.from(o.copy(a.empty))).append(p?a.empty:a.from(o.copy(a.empty))),u?0:1,p?0:1),u?0:1)),t(i.scrollIntoView()),!0}(t,n,s)))}}function qn(e){return function(t,n){var i=t.selection,o=i.$from,r=i.$to,s=o.blockRange(r,(function(t){return t.childCount&&t.firstChild.type==e}));if(!s)return!1;var l=s.startIndex;if(0==l)return!1;var d=s.parent,c=d.child(l-1);if(c.type!=e)return!1;if(n){var u=c.lastChild&&c.lastChild.type==d.type,p=a.from(u?e.create():null),h=new f(a.from(e.create(null,a.from(d.type.create(null,p)))),u?3:1,0),v=s.start,m=s.end;n(t.tr.step(new Ne(v-(u?3:1),m,v,m,h,1,!0)).scrollIntoView())}return!0}}var Gn={orderedList:"ordered_list",bulletList:"bullet_list",listItem:"list_item"},Jn={listType:Gn.orderedList,types:Kt({},Gn)},Xn={listType:Gn.bulletList,types:Kt({},Gn)},Yn={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:Kt({},Gn)},Zn={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:Kt({},Gn)};function Qn(e,t){return!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0)}function ei(e,t,n){var i=e.selection.$cursor;if(!i||(n?!n.endOfTextblock("backward",e):i.parentOffset>0))return!1;var o=ii(i);if(!o){var r=i.blockRange(),s=r&&Ve(r);return null!=s&&(t&&t(e.tr.lift(r,s).scrollIntoView()),!0)}var a=o.nodeBefore;if(!a.type.spec.isolating&&bi(e,o,t))return!0;if(0==i.parent.content.size&&(ti(a,"end")||ut.isSelectable(a))){var l=Ge(e.doc,i.before(),i.after(),f.empty);if(l.slice.size<l.to-l.from){if(t){var d=e.tr.step(l);d.setSelection(ti(a,"end")?st.findFrom(d.doc.resolve(d.mapping.map(o.pos,-1)),-1):ut.create(d.doc,o.pos-a.nodeSize)),t(d.scrollIntoView())}return!0}}return!(!a.isAtom||o.depth!=i.depth-1||(t&&t(e.tr.delete(o.pos-a.nodeSize,o.pos).scrollIntoView()),0))}function ti(e,t,n){for(;e;e="start"==t?e.firstChild:e.lastChild){if(e.isTextblock)return!0;if(n&&1!=e.childCount)return!1}return!1}function ni(e,t,n){var i=e.selection,o=i.$head,r=o;if(!i.empty)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):o.parentOffset>0)return!1;r=ii(o)}var s=r&&r.nodeBefore;return!(!s||!ut.isSelectable(s)||(t&&t(e.tr.setSelection(ut.create(e.doc,r.pos-s.nodeSize)).scrollIntoView()),0))}function ii(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function oi(e,t,n){var i=e.selection.$cursor;if(!i||(n?!n.endOfTextblock("forward",e):i.parentOffset<i.parent.content.size))return!1;var o=si(i);if(!o)return!1;var r=o.nodeAfter;if(bi(e,o,t))return!0;if(0==i.parent.content.size&&(ti(r,"start")||ut.isSelectable(r))){var s=Ge(e.doc,i.before(),i.after(),f.empty);if(s.slice.size<s.to-s.from){if(t){var a=e.tr.step(s);a.setSelection(ti(r,"start")?st.findFrom(a.doc.resolve(a.mapping.map(o.pos)),1):ut.create(a.doc,a.mapping.map(o.pos))),t(a.scrollIntoView())}return!0}}return!(!r.isAtom||o.depth!=i.depth-1||(t&&t(e.tr.delete(o.pos,o.pos+r.nodeSize).scrollIntoView()),0))}function ri(e,t,n){var i=e.selection,o=i.$head,r=o;if(!i.empty)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):o.parentOffset<o.parent.content.size)return!1;r=si(o)}var s=r&&r.nodeAfter;return!(!s||!ut.isSelectable(s)||(t&&t(e.tr.setSelection(ut.create(e.doc,r.pos)).scrollIntoView()),0))}function si(e){if(!e.parent.type.spec.isolating)for(var t=e.depth-1;t>=0;t--){var n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}function ai(e,t){var n,i=e.selection,o=i instanceof ut;if(o){if(i.node.isTextblock||!ze(e.doc,i.from))return!1;n=i.from}else if(null==(n=Ke(e.doc,i.from,-1)))return!1;if(t){var r=e.tr.join(n);o&&r.setSelection(ut.create(r.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0}function li(e,t){var n,i=e.selection;if(i instanceof ut){if(i.node.isTextblock||!ze(e.doc,i.to))return!1;n=i.to}else if(null==(n=Ke(e.doc,i.to,1)))return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0}function di(e,t){var n=e.selection,i=n.$from,o=n.$to,r=i.blockRange(o),s=r&&Ve(r);return null!=s&&(t&&t(e.tr.lift(r,s).scrollIntoView()),!0)}function ci(e,t){var n=e.selection,i=n.$head,o=n.$anchor;return!(!i.parent.type.spec.code||!i.sameParent(o)||(t&&t(e.tr.insertText("\n").scrollIntoView()),0))}function ui(e){for(var t=0;t<e.edgeCount;t++){var n=e.edge(t).type;if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function pi(e,t){var n=e.selection,i=n.$head,o=n.$anchor;if(!i.parent.type.spec.code||!i.sameParent(o))return!1;var r=i.node(-1),s=i.indexAfter(-1),a=ui(r.contentMatchAt(s));if(!r.canReplaceWith(s,s,a))return!1;if(t){var l=i.after(),d=e.tr.replaceWith(l,l,a.createAndFill());d.setSelection(st.near(d.doc.resolve(l),1)),t(d.scrollIntoView())}return!0}function hi(e,t){var n=e.selection,i=n.$from,o=n.$to;if(n instanceof ht||i.parent.inlineContent||o.parent.inlineContent)return!1;var r=ui(o.parent.contentMatchAt(o.indexAfter()));if(!r||!r.isTextblock)return!1;if(t){var s=(!i.parentOffset&&o.index()<o.parent.childCount?i:o).pos,a=e.tr.insert(s,r.createAndFill());a.setSelection(dt.create(a.doc,s+1)),t(a.scrollIntoView())}return!0}function fi(e,t){var n=e.selection.$cursor;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){var i=n.before();if(Fe(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}var o=n.blockRange(),r=o&&Ve(o);return null!=r&&(t&&t(e.tr.lift(o,r).scrollIntoView()),!0)}function vi(e,t){var n=e.selection,i=n.$from,o=n.$to;if(e.selection instanceof ut&&e.selection.node.isBlock)return!(!i.parentOffset||!Fe(e.doc,i.pos)||(t&&t(e.tr.split(i.pos).scrollIntoView()),0));if(!i.parent.isBlock)return!1;if(t){var r=o.parentOffset==o.parent.content.size,s=e.tr;(e.selection instanceof dt||e.selection instanceof ht)&&s.deleteSelection();var a=0==i.depth?null:ui(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=r&&a?[{type:a}]:null,d=Fe(s.doc,s.mapping.map(i.pos),1,l);if(l||d||!Fe(s.doc,s.mapping.map(i.pos),1,a&&[{type:a}])||(l=[{type:a}],d=!0),d&&(s.split(s.mapping.map(i.pos),1,l),!r&&!i.parentOffset&&i.parent.type!=a)){var c=s.mapping.map(i.before()),u=s.doc.resolve(c);i.node(-1).canReplaceWith(u.index(),u.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}t(s.scrollIntoView())}return!0}function mi(e,t){return vi(e,t&&function(n){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&n.ensureMarks(i),t(n)})}function gi(e,t){var n,i=e.selection,o=i.$from,r=i.to,s=o.sharedDepth(r);return 0!=s&&(n=o.before(s),t&&t(e.tr.setSelection(ut.create(e.doc,n))),!0)}function yi(e,t){return t&&t(e.tr.setSelection(new ht(e.doc))),!0}function bi(e,t,n){var i,o,r=t.nodeBefore,s=t.nodeAfter;if(r.type.spec.isolating||s.type.spec.isolating)return!1;if(function(e,t,n){var i=t.nodeBefore,o=t.nodeAfter,r=t.index();return!(!(i&&o&&i.type.compatibleContent(o.type))||(!i.content.size&&t.parent.canReplace(r-1,r)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(r,r+1)||!o.isTextblock&&!ze(e.doc,t.pos)||(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),0)))}(e,t,n))return!0;var l=t.parent.canReplace(t.index(),t.index()+1);if(l&&(i=(o=r.contentMatchAt(r.childCount)).findWrapping(s.type))&&o.matchType(i[0]||s.type).validEnd){if(n){for(var d=t.pos+s.nodeSize,c=a.empty,u=i.length-1;u>=0;u--)c=a.from(i[u].create(null,c));c=a.from(r.copy(c));var p=e.tr.step(new Ne(t.pos-1,d,t.pos,d,new f(c,1,0),i.length,!0)),h=d+2*i.length;ze(p.doc,h)&&p.join(h),n(p.scrollIntoView())}return!0}var v=st.findFrom(t,1),m=v&&v.$from.blockRange(v.$to),g=m&&Ve(m);if(null!=g&&g>=t.depth)return n&&n(e.tr.lift(m,g).scrollIntoView()),!0;if(l&&ti(s,"start",!0)&&ti(r,"end")){for(var y=r,b=[];b.push(y),!y.isTextblock;)y=y.lastChild;for(var k=s,w=1;!k.isTextblock;k=k.firstChild)w++;if(y.canReplace(y.childCount,y.childCount,k.content)){if(n){for(var S=a.empty,x=b.length-1;x>=0;x--)S=a.from(b[x].copy(S));n(e.tr.step(new Ne(t.pos-b.length,t.pos+s.nodeSize,t.pos+w,t.pos+s.nodeSize-w,new f(S,b.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function ki(e){return function(t,n){for(var i=t.selection,o=e<0?i.$from:i.$to,r=o.depth;o.node(r).isInline;){if(!r)return!1;r--}return!!o.node(r).isTextblock&&(n&&n(t.tr.setSelection(dt.create(t.doc,e<0?o.start(r):o.end(r)))),!0)}}var wi=ki(-1),Si=ki(1);function xi(e,t){return function(n,i){var o=n.selection,r=o.$from,s=o.$to,a=r.blockRange(s),l=a&&Le(a,e,t);return!!l&&(i&&i(n.tr.wrap(a,l).scrollIntoView()),!0)}}function Ci(e,t){return function(n,i){var o=n.selection,r=o.from,s=o.to,a=!1;return n.doc.nodesBetween(r,s,(function(i,o){if(a)return!1;if(i.isTextblock&&!i.hasMarkup(e,t))if(i.type==e)a=!0;else{var r=n.doc.resolve(o),s=r.index();a=r.parent.canReplaceWith(s,s+1,e)}})),!!a&&(i&&i(n.tr.setBlockType(r,s,e,t).scrollIntoView()),!0)}}function $i(e,t){return function(n,i){var o=n.selection,r=o.empty,s=o.$cursor,a=o.ranges;if(r&&!s||!function(e,t,n){for(var i=function(i){var o=t[i],r=o.$from,s=o.$to,a=0==r.depth&&e.type.allowsMarkType(n);if(e.nodesBetween(r.pos,s.pos,(function(e){if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)})),a)return{v:!0}},o=0;o<t.length;o++){var r=i(o);if(r)return r.v}return!1}(n.doc,a,e))return!1;if(i)if(s)e.isInSet(n.storedMarks||s.marks())?i(n.tr.removeStoredMark(e)):i(n.tr.addStoredMark(e.create(t)));else{for(var l=!1,d=n.tr,c=0;!l&&c<a.length;c++){var u=a[c],p=u.$from,h=u.$to;l=n.doc.rangeHasMark(p.pos,h.pos,e)}for(var f=0;f<a.length;f++){var v=a[f],m=v.$from,g=v.$to;if(l)d.removeMark(m.pos,g.pos,e);else{var y=m.pos,b=g.pos,k=m.nodeAfter,w=g.nodeBefore,S=k&&k.isText?/^\s*/.exec(k.text)[0].length:0,x=w&&w.isText?/\s*$/.exec(w.text)[0].length:0;y+S<b&&(y+=S,b-=x),d.addMark(y,b,e.create(t))}}i(d.scrollIntoView())}return!0}}function Ii(e,t){if(Array.isArray(t)){var n=t;t=function(e){return n.indexOf(e.type.name)>-1}}return function(n,i,o){return e(n,i&&function(e,t){return function(n){if(!n.isGeneric)return e(n);for(var i=[],o=0;o<n.mapping.maps.length;o++){for(var r=n.mapping.maps[o],s=0;s<i.length;s++)i[s]=r.map(i[s]);r.forEach((function(e,t,n,o){return i.push(n,o)}))}for(var a=[],l=0;l<i.length;l+=2)for(var d=i[l],c=i[l+1],u=n.doc.resolve(d),p=u.sharedDepth(c),h=u.node(p),f=u.indexAfter(p),v=u.after(p+1);v<=c;++f){var m=h.maybeChild(f);if(!m)break;if(f&&-1==a.indexOf(v)){var g=h.child(f-1);g.type==m.type&&t(g,m)&&a.push(v)}v+=m.nodeSize}a.sort((function(e,t){return e-t}));for(var y=a.length-1;y>=0;y--)ze(n.doc,a[y])&&n.join(a[y]);e(n)}}(i,t),o)}}function Oi(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function(t,n,i){for(var o=0;o<e.length;o++)if(e[o](t,n,i))return!0;return!1}}var Di=Oi(Qn,ei,ni),Mi=Oi(Qn,oi,ri),Ti={Enter:Oi(ci,hi,fi,vi),"Mod-Enter":pi,Backspace:Di,"Mod-Backspace":Di,"Shift-Backspace":Di,Delete:Mi,"Mod-Delete":Mi,"Mod-a":yi},Ri={"Ctrl-h":Ti.Backspace,"Alt-Backspace":Ti["Mod-Backspace"],"Ctrl-d":Ti.Delete,"Ctrl-Alt-Backspace":Ti["Mod-Delete"],"Alt-Delete":Ti["Mod-Delete"],"Alt-d":Ti["Mod-Delete"],"Ctrl-a":wi,"Ctrl-e":Si};for(var Bi in Ti)Ri[Bi]=Ti[Bi];Ti.Home=wi,Ti.End=Si;var Ni=("undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):"undefined"!=typeof os&&"darwin"==os.platform())?Ri:Ti,Pi=function(e,t){return xi(e.schema.nodes.blockquote)(e,t)},Ei=function(e,t){var n=e.selection,i=n.$from,o=n.$to,r=e.schema.nodes.blockquote,s=e.doc,a=-1,l=i.blockRange(o);l&&s.nodesBetween(l.start,l.end,(function(e,t,n,i){e.type===r&&(a=t)}));var d=-1!==a;return t&&d&&t(e.tr.lift(l,s.resolve(a).depth)),d},Vi=function(e,t,n){return function(i,o){var r=$n(i),s=i.tr;s.setMeta("commandName",t),r.forEach((function(t){if(t.type.isTextblock){var i=void 0,o=e.find((function(e){return e.node===t.type.name}));if(o){var r="rtl"===n?o.rtlStyle:o.style,a={name:r,value:o.step>0?""+o.step+o.unit:""};if(t.attrs.style){var l=new RegExp(r+":\\s?(\\d+)"+o.unit,"i"),d=t.attrs.style.match(l);if(d){var c=parseFloat(d[1])+o.step;c=c<=0?"":c,a.value=""+c+(c?o.unit:"")}}i=Mn(t,[a])}i&&Cn(s,t,t.type,i)}}));var a=s.docChanged;return a&&o(s.scrollIntoView()),a}},Li=function(e,t,n){var i=$n(e),o=!1;return i.forEach((function(e){if(!o&&e.type.isTextblock&&e.attrs.style){var i=t.find((function(t){return t.node===e.type.name}));if(i){var r="rtl"===n?i.rtlStyle:i.style,s=new RegExp(r+":\\s?\\d+"+i.unit,"i");o=s.test(e.attrs.style)}}})),o},Ai=function(e,t){return qn(t)(e)},Fi=function(e,t){var n=e.schema.nodes[t.listsTypes.listItem],i=e.schema.nodes[t.listsTypes.orderedList],o=e.schema.nodes[t.listsTypes.bulletList],r=!!qt(i,2)(e.selection),s=!!qt(o,2)(e.selection);return(r||s)&&Un(n)(e)},zi=function(e,t){var n=e.schema.nodes,i=n[Yn.listsTypes.listItem];return(Li(e,t.nodes)||Yn.nodes.some((function(t){return n[t.node]&&Tn(e,n[t.node])})))&&!Tn(e,i)},ji=function(e,t){var n=e.schema.nodes[Yn.listsTypes.listItem],i=zi(e,Yn);Ai(e,n)?qn(n)(e,t):i&&Vi(Yn.nodes)(e,t)},Ki=function(e,t){var n=e.schema.nodes,i=n[Zn.listsTypes.listItem],o=zi(e,Zn);Tn(e,n.blockquote)?Ei(e,t):Fi(e,Zn)?Un(i)(e,t):o&&Vi(Zn.nodes)(e,t)},_i=function(e,t,n){for(var i=t.depth,o=e.nodes[n.bulletList],r=e.nodes[n.orderedList],s=e.nodes[n.listItem],a=t.depth;a>0;a--){var l=t.node(a);if(l.type!==o&&l.type!==r||(i=a),l.type!==o&&l.type!==r&&l.type!==s)break}return i-1};function Hi(e,t,n,i){var o=i||e.schema.nodes.listItem,r=t.$from,s=t.$to,l=r.blockRange(s,(function(e){return e.childCount&&e.firstChild.type===o}));if(!l||l.depth<2||r.node(l.depth-1).type!==o)return n;var d=l.end,c=s.end(l.depth);return d<c&&(n.step(new Ne(d-1,c,d,c,new f(a.from(o.create(void 0,l.parent.copy())),1,0),1,!0)),l=new B(n.doc.resolve(r.pos),n.doc.resolve(c),l.depth)),n.lift(l,Ve(l)).scrollIntoView()}function Wi(e){return function(t,n){var i=t.tr,o=t.selection,r=o.$from,s=o.$to;return i.doc.nodesBetween(r.pos,s.pos,(function(n,o){if(n.isTextblock||"blockquote"===n.type.name||"div"===n.type.name){var r=new ut(i.doc.resolve(i.mapping.map(o))),s=r.$from.blockRange(r.$to);if(!s||r.$from.parent.type!==t.schema.nodes[e.listItem])return!1;var a=s&&Ve(s);if(null==a)return!1;i.lift(s,a)}})),n&&n(i),!0}}var Ui=/list\-style\-type:\s?([\w-]+)/,qi=function(e){var t=e.style||"",n=Ui.exec(t);return n&&n[1]||""},Gi=function(e,t,n,i,o){var r=i.listType,s=i.listAttrs,a=void 0===s?{style:null}:s,l=e.selection,d=l.$from.node(l.$from.depth-2),c=l.$to.node(l.$to.depth-2);if(d&&d.type.name===r&&qi(d.attrs)===qi(a)&&c&&c.type.name===r&&qi(c.attrs)===qi(a)){var u=n.state.schema.nodes,p={bulletList:u[i.bulletList],orderedList:u[i.orderedList],listItem:u[i.listItem]},h=function(e,t){for(var n,i=t.bulletList,o=t.orderedList,r=t.listItem,s=e.depth-1;s>0;s--){var a=e.node(s);if(a.type!==i&&a.type!==o||(n=s),a.type!==i&&a.type!==o&&a.type!==r)break}return n}(l.$to,p),f=function(e,t,n,i,o,r){r||(r=e.schema.nodes.listItem);var s=!1;return o.doc.nodesBetween(t,n,(function(n,a){if(!s&&n.type===r&&a>t){s=!0;for(var l=i+3;l>i+2;){var d=o.doc.resolve(o.mapping.map(a));l=d.depth;var c=o.doc.resolve(o.mapping.map(a+n.textContent.length)),u=new dt(d,c);o=Hi(e,u,o,r)}}})),o}(e,l.$to.pos,l.$to.end(h),h,n.state.tr,p.listItem);return f=function(e,t,n){var i=e.selection,o=i.from,r=i.to,s=e.schema.nodes,a=s.paragraph,l=s.heading,d=[];t.doc.nodesBetween(o,r,(function(e,t){e.type!==a&&e.type!==l||d.push({node:e,pos:t})}));for(var c=d.length-1;c>=0;c--){var u=d[c],p=t.doc.resolve(t.mapping.map(u.pos));if(p.depth>0){var h;h=u.node.textContent&&u.node.textContent.length>0?t.doc.resolve(t.mapping.map(u.pos+u.node.textContent.length)):t.doc.resolve(t.mapping.map(u.pos+1));var f=p.blockRange(h);f&&t.lift(f,_i(e.schema,p,n))}}return t}(e,f,i),f.setMeta("commandName",o),t(f),!0}return function(e){return function(t,n,i){if(!i)return!1;var o,r,s=(t=i.state).schema.nodes[e.listType],a=t.selection,l=a.$from,d=a.$to,c=l.node(-2),u=l.node(-3),p=function(e,t,n,i){return 0===function(e,t,n){for(var i=Array(),o=function(e,t){var n=["blockquote","bulletList","orderedList"];if(1===t.depth)return t;for(var i=t.node(t.depth),o=t;t.depth>=1;)(i=(t=e.resolve(t.before(t.depth))).node(t.depth))&&-1!==n.indexOf(i.type.name)&&(o=t);return o}(e,t).depth,r=e.resolve(t.start(o));r.pos<=n.start(n.depth);){var s=Math.min(r.depth,o),a=r.node(s);if(a&&i.push(a),0===s)break;var l=e.resolve(r.after(s));if(l.start(s)>=e.nodeSize-2)break;l.depth!==r.depth&&(l=e.resolve(l.pos+2)),r=l.depth?e.resolve(l.start(l.depth)):e.resolve(l.end(l.depth))}return i}(e,t,n).filter((function(e){return e.type!==i})).length}(t.doc,l,d,s);return(c&&c.type===s||u&&u.type===s)&&p?Wi(e)(t,n):(p||(Wi(e)(t,n),t=i.state),(o=s,void 0===(r=e.listAttrs)&&(r={}),Ii(Hn(o,r),(function(e,t){return e.type===t.type&&e.type===o})))(t,n))}}(i)(e,t,n)};function Ji(e,t,n){return Gi(e,t,n,Kt({listType:Xn.listType},Xn.types))}function Xi(e,t,n){return Gi(e,t,n,Kt({listType:Jn.listType},Jn.types))}for(var Yi=function(e,t){return{name:e,value:t}},Zi=[{node:"paragraph",style:[Yi("text-align","left")]},{node:"heading",style:[Yi("text-align","left")]}],Qi=[{node:"paragraph",style:[Yi("text-align","right")]},{node:"heading",style:[Yi("text-align","right")]}],eo=[{node:"paragraph",style:[Yi("text-align","center")]},{node:"heading",style:[Yi("text-align","center")]}],to=[{node:"paragraph",style:[Yi("text-align","justify")]},{node:"heading",style:[Yi("text-align","justify")]}],no=[{node:"paragraph",style:[Yi("text-align","")]},{node:"heading",style:[Yi("text-align","")]}],io={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},oo={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ro="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),so=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),ao="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),lo=so||ro&&+ro[1]<57,co=0;co<10;co++)io[48+co]=io[96+co]=String(co);for(co=1;co<=24;co++)io[co+111]="F"+co;for(co=65;co<=90;co++)io[co]=String.fromCharCode(co+32),oo[co]=String.fromCharCode(co);for(var uo in io)oo.hasOwnProperty(uo)||(oo[uo]=io[uo]);var po="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function ho(e){var t,n,i,o,r=e.split(/-(?!$)/),s=r[r.length-1];"Space"==s&&(s=" ");for(var a=0;a<r.length-1;a++){var l=r[a];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))i=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: "+l);po?o=!0:n=!0}}return t&&(s="Alt-"+s),n&&(s="Ctrl-"+s),o&&(s="Meta-"+s),i&&(s="Shift-"+s),s}function fo(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}function vo(e){return new It({props:{handleKeyDown:mo(e)}})}function mo(e){var t=function(e){var t=Object.create(null);for(var n in e)t[ho(n)]=e[n];return t}(e);return function(e,n){var i,o=function(e){var t=!(lo&&(e.ctrlKey||e.altKey||e.metaKey)||ao&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?oo:io)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),r=1==o.length&&" "!=o,s=t[fo(o,n,!r)];if(s&&s(e.state,e.dispatch,e))return!0;if(r&&(n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(i=io[n.keyCode])&&i!=o){var a=t[fo(i,n,!0)];if(a&&a(e.state,e.dispatch,e))return!0}else if(r&&n.shiftKey){var l=t[fo(o,n,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}var go={};if("undefined"!=typeof navigator&&"undefined"!=typeof document){var yo=/Edge\/(\d+)/.exec(navigator.userAgent),bo=/MSIE \d/.test(navigator.userAgent),ko=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),wo=go.ie=!!(bo||ko||yo);go.ie_version=bo?document.documentMode||6:ko?+ko[1]:yo?+yo[1]:null,go.gecko=!wo&&/gecko\/(\d+)/i.test(navigator.userAgent),go.gecko_version=go.gecko&&+(/Firefox\/(\d+)/.exec(navigator.userAgent)||[0,0])[1];var So=!wo&&/Chrome\/(\d+)/.exec(navigator.userAgent);go.chrome=!!So,go.chrome_version=So&&+So[1],go.safari=!wo&&/Apple Computer/.test(navigator.vendor),go.ios=go.safari&&(/Mobile\/\w+/.test(navigator.userAgent)||navigator.maxTouchPoints>2),go.mac=go.ios||/Mac/.test(navigator.platform),go.android=/Android \d/.test(navigator.userAgent),go.webkit="webkitFontSmoothing"in document.documentElement.style,go.webkit_version=go.webkit&&+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]}var xo=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},Co=function(e){var t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t},$o=null,Io=function(e,t,n){var i=$o||($o=document.createRange());return i.setEnd(e,null==n?e.nodeValue.length:n),i.setStart(e,t||0),i},Oo=function(e,t,n,i){return n&&(Mo(e,t,n,i,-1)||Mo(e,t,n,i,1))},Do=/^(img|br|input|textarea|hr)$/i;function Mo(e,t,n,i,o){for(;;){if(e==n&&t==i)return!0;if(t==(o<0?0:To(e))){var r=e.parentNode;if(1!=r.nodeType||Ro(e)||Do.test(e.nodeName)||"false"==e.contentEditable)return!1;t=xo(e)+(o<0?0:1),e=r}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(o<0?-1:0)]).contentEditable)return!1;t=o<0?To(e):0}}}function To(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Ro(e){for(var t,n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var Bo=function(e){var t=e.isCollapsed;return t&&go.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t};function No(e,t){var n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function Po(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Eo(e,t){return"number"==typeof e?e:e[t]}function Vo(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,i=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*i}}function Lo(e,t,n){for(var i=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,r=e.dom.ownerDocument,s=n||e.dom;s;s=Co(s))if(1==s.nodeType){var a=s==r.body||1!=s.nodeType,l=a?Po(r):Vo(s),d=0,c=0;if(t.top<l.top+Eo(i,"top")?c=-(l.top-t.top+Eo(o,"top")):t.bottom>l.bottom-Eo(i,"bottom")&&(c=t.bottom-l.bottom+Eo(o,"bottom")),t.left<l.left+Eo(i,"left")?d=-(l.left-t.left+Eo(o,"left")):t.right>l.right-Eo(i,"right")&&(d=t.right-l.right+Eo(o,"right")),d||c)if(a)r.defaultView.scrollBy(d,c);else{var u=s.scrollLeft,p=s.scrollTop;c&&(s.scrollTop+=c),d&&(s.scrollLeft+=d);var h=s.scrollLeft-u,f=s.scrollTop-p;t={left:t.left-h,top:t.top-f,right:t.right-h,bottom:t.bottom-f}}if(a)break}}function Ao(e){for(var t=[],n=e.ownerDocument;e&&(t.push({dom:e,top:e.scrollTop,left:e.scrollLeft}),e!=n);e=Co(e));return t}function Fo(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=i.dom,r=i.top,s=i.left;o.scrollTop!=r+t&&(o.scrollTop=r+t),o.scrollLeft!=s&&(o.scrollLeft=s)}}var zo=null;function jo(e,t){for(var n,i,o=2e8,r=0,s=t.top,a=t.top,l=e.firstChild,d=0;l;l=l.nextSibling,d++){var c=void 0;if(1==l.nodeType)c=l.getClientRects();else{if(3!=l.nodeType)continue;c=Io(l).getClientRects()}for(var u=0;u<c.length;u++){var p=c[u];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);var h=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(h<o){n=l,o=h,i=h&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==l.nodeType&&h&&(r=d+(t.left>=(p.left+p.right)/2?1:0));continue}}!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(r=d+1)}}return n&&3==n.nodeType?function(e,t){for(var n=e.nodeValue.length,i=document.createRange(),o=0;o<n;o++){i.setEnd(e,o+1),i.setStart(e,o);var r=Wo(i,1);if(r.top!=r.bottom&&Ko(t,r))return{node:e,offset:o+(t.left>=(r.left+r.right)/2?1:0)}}return{node:e,offset:0}}(n,i):!n||o&&1==n.nodeType?{node:e,offset:r}:jo(n,i)}function Ko(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function _o(e,t,n){var i=e.childNodes.length;if(i&&n.top<n.bottom)for(var o=Math.max(0,Math.min(i-1,Math.floor(i*(t.top-n.top)/(n.bottom-n.top))-2)),r=o;;){var s=e.childNodes[r];if(1==s.nodeType)for(var a=s.getClientRects(),l=0;l<a.length;l++){var d=a[l];if(Ko(t,d))return _o(s,t,d)}if((r=(r+1)%i)==o)break}return e}function Ho(e,t){var n,i,o,r,s=e.dom.ownerDocument;if(s.caretPositionFromPoint)try{var a=s.caretPositionFromPoint(t.left,t.top);a&&(o=(n=a).offsetNode,r=n.offset)}catch(e){}if(!o&&s.caretRangeFromPoint){var l=s.caretRangeFromPoint(t.left,t.top);l&&(o=(i=l).startContainer,r=i.startOffset)}var d,c=(e.root.elementFromPoint?e.root:s).elementFromPoint(t.left,t.top+1);if(!c||!e.dom.contains(1!=c.nodeType?c.parentNode:c)){var u=e.dom.getBoundingClientRect();if(!Ko(t,u))return null;if(!(c=_o(e.dom,t,u)))return null}if(go.safari)for(var p=c;o&&p;p=Co(p))p.draggable&&(o=r=null);if(c=function(e,t){var n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(c,t),o){if(go.gecko&&1==o.nodeType&&(r=Math.min(r,o.childNodes.length))<o.childNodes.length){var h,f=o.childNodes[r];"IMG"==f.nodeName&&(h=f.getBoundingClientRect()).right<=t.left&&h.bottom>t.top&&r++}o==e.dom&&r==o.childNodes.length-1&&1==o.lastChild.nodeType&&t.top>o.lastChild.getBoundingClientRect().bottom?d=e.state.doc.content.size:0!=r&&1==o.nodeType&&"BR"==o.childNodes[r-1].nodeName||(d=function(e,t,n,i){for(var o=-1,r=t;r!=e.dom;){var s=e.docView.nearestDesc(r,!0);if(!s)return null;if(s.node.isBlock&&s.parent){var a=s.dom.getBoundingClientRect();if(a.left>i.left||a.top>i.top)o=s.posBefore;else{if(!(a.right<i.left||a.bottom<i.top))break;o=s.posAfter}}r=s.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n)}(e,o,r,t))}null==d&&(d=function(e,t,n){var i=jo(t,n),o=i.node,r=i.offset,s=-1;if(1==o.nodeType&&!o.firstChild){var a=o.getBoundingClientRect();s=a.left!=a.right&&n.left>(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(o,r,s)}(e,c,t));var v=e.docView.nearestDesc(c,!0);return{pos:d,inside:v?v.posAtStart-v.border:-1}}function Wo(e,t){var n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}var Uo=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function qo(e,t,n){var i=e.docView.domFromPos(t,n<0?-1:1),o=i.node,r=i.offset,s=go.webkit||go.gecko;if(3==o.nodeType){if(!s||!Uo.test(o.nodeValue)&&(n<0?r:r!=o.nodeValue.length)){var a=r,l=r,d=n<0?1:-1;return n<0&&!r?(l++,d=-1):n>=0&&r==o.nodeValue.length?(a--,d=1):n<0?a--:l++,Go(Wo(Io(o,a,l),d),d<0)}var c=Wo(Io(o,r,r),n);if(go.gecko&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){var u=Wo(Io(o,r-1,r-1),-1);if(u.top==c.top){var p=Wo(Io(o,r,r+1),-1);if(p.top!=c.top)return Go(p,p.left<u.left)}}return c}if(!e.state.doc.resolve(t).parent.inlineContent){if(r&&(n<0||r==To(o))){var h=o.childNodes[r-1];if(1==h.nodeType)return Jo(h.getBoundingClientRect(),!1)}if(r<To(o)){var f=o.childNodes[r];if(1==f.nodeType)return Jo(f.getBoundingClientRect(),!0)}return Jo(o.getBoundingClientRect(),n>=0)}if(r&&(n<0||r==To(o))){var v=o.childNodes[r-1],m=3==v.nodeType?Io(v,To(v)-(s?0:1)):1!=v.nodeType||"BR"==v.nodeName&&v.nextSibling?null:v;if(m)return Go(Wo(m,1),!1)}if(r<To(o)){for(var g=o.childNodes[r];g.pmViewDesc&&g.pmViewDesc.ignoreForCoords;)g=g.nextSibling;var y=g?3==g.nodeType?Io(g,0,s?0:1):1==g.nodeType?g:null:null;if(y)return Go(Wo(y,-1),!0)}return Go(Wo(3==o.nodeType?Io(o):o,-n),n>=0)}function Go(e,t){if(0==e.width)return e;var n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function Jo(e,t){if(0==e.height)return e;var n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Xo(e,t,n){var i=e.state,o=e.root.activeElement;i!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{i!=t&&e.updateState(i),o!=e.dom&&o&&o.focus()}}var Yo=/[\u0590-\u08ac]/,Zo=null,Qo=null,er=!1;var tr=function(e,t,n,i){this.parent=e,this.children=t,this.dom=n,n.pmViewDesc=this,this.contentDOM=i,this.dirty=0},nr={size:{configurable:!0},border:{configurable:!0},posBefore:{configurable:!0},posAtStart:{configurable:!0},posAfter:{configurable:!0},posAtEnd:{configurable:!0},contentLost:{configurable:!0},domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};tr.prototype.matchesWidget=function(){return!1},tr.prototype.matchesMark=function(){return!1},tr.prototype.matchesNode=function(){return!1},tr.prototype.matchesHack=function(e){return!1},tr.prototype.parseRule=function(){return null},tr.prototype.stopEvent=function(){return!1},nr.size.get=function(){for(var e=0,t=0;t<this.children.length;t++)e+=this.children[t].size;return e},nr.border.get=function(){return 0},tr.prototype.destroy=function(){this.parent=null,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=null);for(var e=0;e<this.children.length;e++)this.children[e].destroy()},tr.prototype.posBeforeChild=function(e){for(var t=0,n=this.posAtStart;t<this.children.length;t++){var i=this.children[t];if(i==e)return n;n+=i.size}},nr.posBefore.get=function(){return this.parent.posBeforeChild(this)},nr.posAtStart.get=function(){return this.parent?this.parent.posBeforeChild(this)+this.border:0},nr.posAfter.get=function(){return this.posBefore+this.size},nr.posAtEnd.get=function(){return this.posAtStart+this.size-2*this.border},tr.prototype.localPosFromDOM=function(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){var i,o;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&(!(o=i.pmViewDesc)||o.parent!=this);)i=i.previousSibling;return i?this.posBeforeChild(o)+o.size:this.posAtStart}var r,s;if(e==this.contentDOM)r=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.nextSibling}for(;r&&(!(s=r.pmViewDesc)||s.parent!=this);)r=r.nextSibling;return r?this.posBeforeChild(s):this.posAtEnd}var a;if(e==this.dom&&this.contentDOM)a=t>xo(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))a=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(var l=e;;l=l.parentNode){if(l==this.dom){a=!1;break}if(l.parentNode.firstChild!=l)break}if(null==a&&t==e.childNodes.length)for(var d=e;;d=d.parentNode){if(d==this.dom){a=!0;break}if(d.parentNode.lastChild!=d)break}}return(null==a?n>0:a)?this.posAtEnd:this.posAtStart},tr.prototype.nearestDesc=function(e,t){for(var n=!0,i=e;i;i=i.parentNode){var o=this.getDesc(i);if(o&&(!t||o.node)){if(!n||!o.nodeDOM||(1==o.nodeDOM.nodeType?o.nodeDOM.contains(1==e.nodeType?e:e.parentNode):o.nodeDOM==e))return o;n=!1}}},tr.prototype.getDesc=function(e){for(var t=e.pmViewDesc,n=t;n;n=n.parent)if(n==this)return t},tr.prototype.posFromDOM=function(e,t,n){for(var i=e;i;i=i.parentNode){var o=this.getDesc(i);if(o)return o.localPosFromDOM(e,t,n)}return-1},tr.prototype.descAt=function(e){for(var t=0,n=0;t<this.children.length;t++){var i=this.children[t],o=n+i.size;if(n==e&&o!=n){for(;!i.border&&i.children.length;)i=i.children[0];return i}if(e<o)return i.descAt(e-n-i.border);n=o}},tr.prototype.domFromPos=function(e,t){if(!this.contentDOM)return{node:this.dom,offset:0};for(var n=0,i=0,o=0;n<this.children.length;n++){var r=this.children[n],s=o+r.size;if(s>e||r instanceof cr){i=e-o;break}o=s}if(i)return this.children[n].domFromPos(i-this.children[n].border,t);for(var a=void 0;n&&!(a=this.children[n-1]).size&&a instanceof or&&a.widget.type.side>=0;n--);if(t<=0){for(var l,d=!0;(l=n?this.children[n-1]:null)&&l.dom.parentNode!=this.contentDOM;n--,d=!1);return l&&t&&d&&!l.border&&!l.domAtom?l.domFromPos(l.size,t):{node:this.contentDOM,offset:l?xo(l.dom)+1:0}}for(var c,u=!0;(c=n<this.children.length?this.children[n]:null)&&c.dom.parentNode!=this.contentDOM;n++,u=!1);return c&&u&&!c.border&&!c.domAtom?c.domFromPos(0,t):{node:this.contentDOM,offset:c?xo(c.dom):this.contentDOM.childNodes.length}},tr.prototype.parseRange=function(e,t,n){if(void 0===n&&(n=0),0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};for(var i=-1,o=-1,r=n,s=0;;s++){var a=this.children[s],l=r+a.size;if(-1==i&&e<=l){var d=r+a.border;if(e>=d&&t<=l-a.border&&a.node&&a.contentDOM&&this.contentDOM.contains(a.contentDOM))return a.parseRange(e,t,d);e=r;for(var c=s;c>0;c--){var u=this.children[c-1];if(u.size&&u.dom.parentNode==this.contentDOM&&!u.emptyChildAt(1)){i=xo(u.dom)+1;break}e-=u.size}-1==i&&(i=0)}if(i>-1&&(l>t||s==this.children.length-1)){t=l;for(var p=s+1;p<this.children.length;p++){var h=this.children[p];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){o=xo(h.dom);break}t+=h.size}-1==o&&(o=this.contentDOM.childNodes.length);break}r=l}return{node:this.contentDOM,from:e,to:t,fromOffset:i,toOffset:o}},tr.prototype.emptyChildAt=function(e){if(this.border||!this.contentDOM||!this.children.length)return!1;var t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)},tr.prototype.domAfterPos=function(e){var t=this.domFromPos(e,0),n=t.node,i=t.offset;if(1!=n.nodeType||i==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[i]},tr.prototype.setSelection=function(e,t,n,i){for(var o=Math.min(e,t),r=Math.max(e,t),s=0,a=0;s<this.children.length;s++){var l=this.children[s],d=a+l.size;if(o>a&&r<d)return l.setSelection(e-a-l.border,t-a-l.border,n,i);a=d}var c=this.domFromPos(e,e?-1:1),u=t==e?c:this.domFromPos(t,t?-1:1),p=n.getSelection(),h=!1;if((go.gecko||go.safari)&&e==t){var f=c.node,v=c.offset;if(3==f.nodeType){if((h=v&&"\n"==f.nodeValue[v-1])&&v==f.nodeValue.length)for(var m=f,g=void 0;m;m=m.parentNode){if(g=m.nextSibling){"BR"==g.nodeName&&(c=u={node:g.parentNode,offset:xo(g)+1});break}var y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{var b=f.childNodes[v-1];h=b&&("BR"==b.nodeName||"false"==b.contentEditable)}}if(go.gecko&&p.focusNode&&p.focusNode!=u.node&&1==p.focusNode.nodeType){var k=p.focusNode.childNodes[p.focusOffset];k&&"false"==k.contentEditable&&(i=!0)}if(i||h&&go.safari||!Oo(c.node,c.offset,p.anchorNode,p.anchorOffset)||!Oo(u.node,u.offset,p.focusNode,p.focusOffset)){var w=!1;if((p.extend||e==t)&&!h){p.collapse(c.node,c.offset);try{e!=t&&p.extend(u.node,u.offset),w=!0}catch(e){if(!(e instanceof DOMException))throw e}}if(!w){if(e>t){var S=c;c=u,u=S}var x=document.createRange();x.setEnd(u.node,u.offset),x.setStart(c.node,c.offset),p.removeAllRanges(),p.addRange(x)}}},tr.prototype.ignoreMutation=function(e){return!this.contentDOM&&"selection"!=e.type},nr.contentLost.get=function(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)},tr.prototype.markDirty=function(e,t){for(var n=0,i=0;i<this.children.length;i++){var o=this.children[i],r=n+o.size;if(n==r?e<=r&&t>=n:e<r&&t>n){var s=n+o.border,a=r-o.border;if(e>=s&&t<=a)return this.dirty=e==n||t==r?2:1,void(e!=s||t!=a||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-s,t-s):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=r}this.dirty=2},tr.prototype.markParentsDirty=function(){for(var e=1,t=this.parent;t;t=t.parent,e++){var n=1==e?2:1;t.dirty<n&&(t.dirty=n)}},nr.domAtom.get=function(){return!1},nr.ignoreForCoords.get=function(){return!1},Object.defineProperties(tr.prototype,nr);var ir=[],or=function(e){function t(t,n,i,o){var r,s=n.type.toDOM;if("function"==typeof s&&(s=s(i,(function(){return r?r.parent?r.parent.posBeforeChild(r):void 0:o}))),!n.type.spec.raw){if(1!=s.nodeType){var a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable=!1,s.classList.add("ProseMirror-widget")}e.call(this,t,ir,s,null),this.widget=n,r=this}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.matchesWidget=function(e){return 0==this.dirty&&e.type.eq(this.widget.type)},t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.stopEvent=function(e){var t=this.widget.spec.stopEvent;return!!t&&t(e)},t.prototype.ignoreMutation=function(e){return"selection"!=e.type||this.widget.spec.ignoreSelection},t.prototype.destroy=function(){this.widget.type.destroy(this.dom),e.prototype.destroy.call(this)},n.domAtom.get=function(){return!0},Object.defineProperties(t.prototype,n),t}(tr),rr=function(e){function t(t,n,i,o){e.call(this,t,ir,n,null),this.textDOM=i,this.text=o}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0}};return n.size.get=function(){return this.text.length},t.prototype.localPosFromDOM=function(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t},t.prototype.domFromPos=function(e){return{node:this.textDOM,offset:e}},t.prototype.ignoreMutation=function(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue},Object.defineProperties(t.prototype,n),t}(tr),sr=function(e){function t(t,n,i,o){e.call(this,t,[],i,o),this.mark=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.create=function(e,n,i,o){var r=o.nodeViews[n.type.name],s=r&&r(n,o,i);return s&&s.dom||(s=ge.renderSpec(document,n.type.spec.toDOM(n,i))),new t(e,n,s.dom,s.contentDOM||s.dom)},t.prototype.parseRule=function(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}},t.prototype.matchesMark=function(e){return 3!=this.dirty&&this.mark.eq(e)},t.prototype.markDirty=function(t,n){if(e.prototype.markDirty.call(this,t,n),0!=this.dirty){for(var i=this.parent;!i.node;)i=i.parent;i.dirty<this.dirty&&(i.dirty=this.dirty),this.dirty=0}},t.prototype.slice=function(e,n,i){var o=t.create(this.parent,this.mark,!0,i),r=this.children,s=this.size;n<s&&(r=xr(r,n,s,i)),e>0&&(r=xr(r,0,e,i));for(var a=0;a<r.length;a++)r[a].parent=o;return o.children=r,o},t}(tr),ar=function(e){function t(t,n,i,o,r,s,a,l,d){e.call(this,t,n.isLeaf?ir:[],r,s),this.nodeDOM=a,this.node=n,this.outerDeco=i,this.innerDeco=o,s&&this.updateChildren(l,d)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={size:{configurable:!0},border:{configurable:!0},domAtom:{configurable:!0}};return t.create=function(e,n,i,o,r,s){var a,l,d=r.nodeViews[n.type.name],c=d&&d(n,r,(function(){return l?l.parent?l.parent.posBeforeChild(l):void 0:s}),i,o),u=c&&c.dom,p=c&&c.contentDOM;if(n.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(n.text);else u||(u=(a=ge.renderSpec(document,n.type.spec.toDOM(n))).dom,p=a.contentDOM);p||n.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable=!1),n.type.spec.draggable&&(u.draggable=!0));var h=u;return u=yr(u,i,n),c?l=new ur(e,n,i,o,u,p,h,c,r,s+1):n.isText?new dr(e,n,i,o,u,h,r):new t(e,n,i,o,u,p,h,r,s+1)},t.prototype.parseRule=function(){var e=this;if(this.node.type.spec.reparseInView)return null;var t={node:this.node.type.name,attrs:this.node.attrs};return"pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM&&!this.contentLost?t.contentElement=this.contentDOM:t.getContent=function(){return e.contentDOM?a.empty:e.node.content},t},t.prototype.matchesNode=function(e,t,n){return 0==this.dirty&&e.eq(this.node)&&br(t,this.outerDeco)&&n.eq(this.innerDeco)},n.size.get=function(){return this.node.nodeSize},n.border.get=function(){return this.node.isLeaf?0:1},t.prototype.updateChildren=function(e,t){var n=this,i=this.node.inlineContent,o=t,r=e.composing&&this.localCompositionInfo(e,t),s=r&&r.pos>-1?r:null,a=r&&r.pos<0,l=new wr(this,s&&s.node);!function(e,t,n,i){var o=t.locals(e),r=0;if(0!=o.length)for(var s=0,a=[],l=null,d=0;;){if(s<o.length&&o[s].to==r){for(var c=o[s++],u=void 0;s<o.length&&o[s].to==r;)(u||(u=[c])).push(o[s++]);if(u){u.sort(Sr);for(var p=0;p<u.length;p++)n(u[p],d,!!l)}else n(c,d,!!l)}var h=void 0,f=void 0;if(l)f=-1,h=l,l=null;else{if(!(d<e.childCount))break;f=d,h=e.child(d++)}for(var v=0;v<a.length;v++)a[v].to<=r&&a.splice(v--,1);for(;s<o.length&&o[s].from<=r&&o[s].to>r;)a.push(o[s++]);var m=r+h.nodeSize;if(h.isText){var g=m;s<o.length&&o[s].from<g&&(g=o[s].from);for(var y=0;y<a.length;y++)a[y].to<g&&(g=a[y].to);g<m&&(l=h.cut(g-r),h=h.cut(0,g-r),m=g,f=-1)}i(h,a.length?h.isInline&&!h.isLeaf?a.filter((function(e){return!e.inline})):a.slice():ir,t.forChild(r,h),f),r=m}else for(var b=0;b<e.childCount;b++){var k=e.child(b);i(k,o,t.forChild(r,k),b),r+=k.nodeSize}}(this.node,this.innerDeco,(function(t,r,s){t.spec.marks?l.syncToMarks(t.spec.marks,i,e):t.type.side>=0&&!s&&l.syncToMarks(r==n.node.childCount?p.none:n.node.child(r).marks,i,e),l.placeWidget(t,e,o)}),(function(t,n,s,d){var c;l.syncToMarks(t.marks,i,e),l.findNodeMatch(t,n,s,d)||a&&e.state.selection.from>o&&e.state.selection.to<o+t.nodeSize&&(c=l.findIndexWithChild(r.node))>-1&&l.updateNodeAt(t,n,s,c,e)||l.updateNextNode(t,n,s,e,d)||l.addNode(t,n,s,e,o),o+=t.nodeSize})),l.syncToMarks(ir,i,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),pr(this.contentDOM,this.children,e),go.ios&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){var t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))},t.prototype.localCompositionInfo=function(e,t){var n=e.state.selection,i=n.from,o=n.to;if(!(!(e.state.selection instanceof dt)||i<t||o>t+this.node.content.size)){var r=e.root.getSelection(),s=function(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];t=To(e=e.childNodes[t-1])}else{if(!(1==e.nodeType&&t<e.childNodes.length))return null;e=e.childNodes[t],t=0}}}(r.focusNode,r.focusOffset);if(s&&this.dom.contains(s.parentNode)){if(this.node.inlineContent){var a=s.nodeValue,l=function(e,t,n,i){for(var o=0,r=0;o<e.childCount&&r<=i;){var s=e.child(o++),a=r;if(r+=s.nodeSize,s.isText){for(var l=s.text;o<e.childCount;){var d=e.child(o++);if(r+=d.nodeSize,!d.isText)break;l+=d.text}if(r>=n&&a<i){var c=l.lastIndexOf(t,i-a-1);if(c>=0&&c+t.length+a>=n)return a+c}}}return-1}(this.node.content,a,i-t,o-t);return l<0?null:{node:s,pos:l,text:a}}return{node:s,pos:-1}}}},t.prototype.protectLocalComposition=function(e,t){var n=t.node,i=t.pos,o=t.text;if(!this.getDesc(n)){for(var r=n;r.parentNode!=this.contentDOM;r=r.parentNode){for(;r.previousSibling;)r.parentNode.removeChild(r.previousSibling);for(;r.nextSibling;)r.parentNode.removeChild(r.nextSibling);r.pmViewDesc&&(r.pmViewDesc=null)}var s=new rr(this,r,n,o);e.compositionNodes.push(s),this.children=xr(this.children,i,i+o.length,e,s)}},t.prototype.update=function(e,t,n,i){return!(3==this.dirty||!e.sameMarkup(this.node)||(this.updateInner(e,t,n,i),0))},t.prototype.updateInner=function(e,t,n,i){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=0},t.prototype.updateOuterDeco=function(e){if(!br(e,this.outerDeco)){var t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=mr(this.dom,this.nodeDOM,vr(this.outerDeco,this.node,t),vr(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=null,this.dom.pmViewDesc=this),this.outerDeco=e}},t.prototype.selectNode=function(){this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)},t.prototype.deselectNode=function(){this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")},n.domAtom.get=function(){return this.node.isAtom},Object.defineProperties(t.prototype,n),t}(tr);function lr(e,t,n,i,o){return yr(i,t,e),new ar(null,e,t,n,i,i,i,o,0)}var dr=function(e){function t(t,n,i,o,r,s,a){e.call(this,t,n,i,o,r,null,s,a)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0}};return t.prototype.parseRule=function(){for(var e=this.nodeDOM.parentNode;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}},t.prototype.update=function(e,t,n,i){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node)||(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=0,0))},t.prototype.inParent=function(){for(var e=this.parent.contentDOM,t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1},t.prototype.domFromPos=function(e){return{node:this.nodeDOM,offset:e}},t.prototype.localPosFromDOM=function(t,n,i){return t==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):e.prototype.localPosFromDOM.call(this,t,n,i)},t.prototype.ignoreMutation=function(e){return"characterData"!=e.type&&"selection"!=e.type},t.prototype.slice=function(e,n,i){var o=this.node.cut(e,n),r=document.createTextNode(o.text);return new t(this.parent,o,this.outerDeco,this.innerDeco,r,r,i)},t.prototype.markDirty=function(t,n){e.prototype.markDirty.call(this,t,n),this.dom==this.nodeDOM||0!=t&&n!=this.nodeDOM.nodeValue.length||(this.dirty=3)},n.domAtom.get=function(){return!1},Object.defineProperties(t.prototype,n),t}(ar),cr=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={domAtom:{configurable:!0},ignoreForCoords:{configurable:!0}};return t.prototype.parseRule=function(){return{ignore:!0}},t.prototype.matchesHack=function(e){return 0==this.dirty&&this.dom.nodeName==e},n.domAtom.get=function(){return!0},n.ignoreForCoords.get=function(){return"IMG"==this.dom.nodeName},Object.defineProperties(t.prototype,n),t}(tr),ur=function(e){function t(t,n,i,o,r,s,a,l,d,c){e.call(this,t,n,i,o,r,s,a,d,c),this.spec=l}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.update=function(t,n,i,o){if(3==this.dirty)return!1;if(this.spec.update){var r=this.spec.update(t,n,i);return r&&this.updateInner(t,n,i,o),r}return!(!this.contentDOM&&!t.isLeaf)&&e.prototype.update.call(this,t,n,i,o)},t.prototype.selectNode=function(){this.spec.selectNode?this.spec.selectNode():e.prototype.selectNode.call(this)},t.prototype.deselectNode=function(){this.spec.deselectNode?this.spec.deselectNode():e.prototype.deselectNode.call(this)},t.prototype.setSelection=function(t,n,i,o){this.spec.setSelection?this.spec.setSelection(t,n,i):e.prototype.setSelection.call(this,t,n,i,o)},t.prototype.destroy=function(){this.spec.destroy&&this.spec.destroy(),e.prototype.destroy.call(this)},t.prototype.stopEvent=function(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)},t.prototype.ignoreMutation=function(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):e.prototype.ignoreMutation.call(this,t)},t}(ar);function pr(e,t,n){for(var i=e.firstChild,o=!1,r=0;r<t.length;r++){var s=t[r],a=s.dom;if(a.parentNode==e){for(;a!=i;)i=kr(i),o=!0;i=i.nextSibling}else o=!0,e.insertBefore(a,i);if(s instanceof sr){var l=i?i.previousSibling:e.lastChild;pr(s.contentDOM,s.children,n),i=l?l.nextSibling:e.firstChild}}for(;i;)i=kr(i),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}function hr(e){e&&(this.nodeName=e)}hr.prototype=Object.create(null);var fr=[new hr];function vr(e,t,n){if(0==e.length)return fr;for(var i=n?fr[0]:new hr,o=[i],r=0;r<e.length;r++){var s=e[r].type.attrs;if(s)for(var a in s.nodeName&&o.push(i=new hr(s.nodeName)),s){var l=s[a];null!=l&&(n&&1==o.length&&o.push(i=new hr(t.isInline?"span":"div")),"class"==a?i.class=(i.class?i.class+" ":"")+l:"style"==a?i.style=(i.style?i.style+";":"")+l:"nodeName"!=a&&(i[a]=l))}}return o}function mr(e,t,n,i){if(n==fr&&i==fr)return t;for(var o=t,r=0;r<i.length;r++){var s=i[r],a=n[r];if(r){var l=void 0;a&&a.nodeName==s.nodeName&&o!=e&&(l=o.parentNode)&&l.tagName.toLowerCase()==s.nodeName||((l=document.createElement(s.nodeName)).pmIsDeco=!0,l.appendChild(o),a=fr[0]),o=l}gr(o,a||fr[0],s)}return o}function gr(e,t,n){for(var i in t)"class"==i||"style"==i||"nodeName"==i||i in n||e.removeAttribute(i);for(var o in n)"class"!=o&&"style"!=o&&"nodeName"!=o&&n[o]!=t[o]&&e.setAttribute(o,n[o]);if(t.class!=n.class){for(var r=t.class?t.class.split(" ").filter(Boolean):ir,s=n.class?n.class.split(" ").filter(Boolean):ir,a=0;a<r.length;a++)-1==s.indexOf(r[a])&&e.classList.remove(r[a]);for(var l=0;l<s.length;l++)-1==r.indexOf(s[l])&&e.classList.add(s[l]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style)for(var d,c=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;d=c.exec(t.style);)e.style.removeProperty(d[1]);n.style&&(e.style.cssText+=n.style)}}function yr(e,t,n){return mr(e,e,fr,vr(t,n,1!=e.nodeType))}function br(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function kr(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}var wr=function(e,t){this.top=e,this.lock=t,this.index=0,this.stack=[],this.changed=!1,this.preMatch=function(e,t){var n=t,i=n.children.length,o=e.childCount,r=new Map,s=[];e:for(;o>0;){for(var a=void 0;;)if(i){var l=n.children[i-1];if(!(l instanceof sr)){a=l,i--;break}n=l,i=l.children.length}else{if(n==t)break e;i=n.parent.children.indexOf(n),n=n.parent}var d=a.node;if(d){if(d!=e.child(o-1))break;--o,r.set(a,o),s.push(a)}}return{index:o,matched:r,matches:s.reverse()}}(e.node.content,e)};function Sr(e,t){return e.type.side-t.type.side}function xr(e,t,n,i,o){for(var r=[],s=0,a=0;s<e.length;s++){var l=e[s],d=a,c=a+=l.size;d>=n||c<=t?r.push(l):(d<t&&r.push(l.slice(0,t-d,i)),o&&(r.push(o),o=null),c>n&&r.push(l.slice(n-d,l.size,i)))}return r}function Cr(e,t){var n=e.root.getSelection(),i=e.state.doc;if(!n.focusNode)return null;var o=e.docView.nearestDesc(n.focusNode),r=o&&0==o.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset);if(s<0)return null;var a,l,d=i.resolve(s);if(Bo(n)){for(a=d;o&&!o.node;)o=o.parent;if(o&&o.node.isAtom&&ut.isSelectable(o.node)&&o.parent&&(!o.node.isInline||!function(e,t,n){for(var i=0==t,o=t==To(e);i||o;){if(e==n)return!0;var r=xo(e);if(!(e=e.parentNode))return!1;i=i&&0==r,o=o&&r==To(e)}}(n.focusNode,n.focusOffset,o.dom))){var c=o.posBefore;l=new ut(s==c?d:i.resolve(c))}}else{var u=e.docView.posFromDOM(n.anchorNode,n.anchorOffset);if(u<0)return null;a=i.resolve(u)}return l||(l=Nr(e,a,d,"pointer"==t||e.state.selection.head<d.pos&&!r?1:-1)),l}function $r(e){return e.editable?e.hasFocus():Pr(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Ir(e,t){var n=e.state.selection;if(Rr(e,n),$r(e)){if(!t&&e.mouseDown&&e.mouseDown.allowDefault&&go.chrome){var i=e.root.getSelection(),o=e.domObserver.currentSelection;if(i.anchorNode&&Oo(i.anchorNode,i.anchorOffset,o.anchorNode,o.anchorOffset))return e.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){var t=e.root.getSelection(),n=document.createRange(),i=e.cursorWrapper.dom,o="IMG"==i.nodeName;o?n.setEnd(i.parentNode,xo(i)+1):n.setEnd(i,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&go.ie&&go.ie_version<=11&&(i.disabled=!0,i.disabled=!1)}(e);else{var r,s,a=n.anchor,l=n.head;!Or||n instanceof dt||(n.$from.parent.inlineContent||(r=Dr(e,n.from)),n.empty||n.$from.parent.inlineContent||(s=Dr(e,n.to))),e.docView.setSelection(a,l,e.root,t),Or&&(r&&Tr(r),s&&Tr(s)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){var t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.hideSelectionGuard);var n=e.root.getSelection(),i=n.anchorNode,o=n.anchorOffset;t.addEventListener("selectionchange",e.hideSelectionGuard=function(){n.anchorNode==i&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.hideSelectionGuard),setTimeout((function(){$r(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}wr.prototype.destroyBetween=function(e,t){if(e!=t){for(var n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}},wr.prototype.destroyRest=function(){this.destroyBetween(this.index,this.top.children.length)},wr.prototype.syncToMarks=function(e,t,n){for(var i=0,o=this.stack.length>>1,r=Math.min(o,e.length);i<r&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&!1!==e[i].type.spec.spanning;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);for(var s=-1,a=this.index;a<Math.min(this.index+3,this.top.children.length);a++)if(this.top.children[a].matchesMark(e[o])){s=a;break}if(s>-1)s>this.index&&(this.changed=!0,this.destroyBetween(this.index,s)),this.top=this.top.children[this.index];else{var l=sr.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}},wr.prototype.findNodeMatch=function(e,t,n,i){var o,r=-1;if(i>=this.preMatch.index&&(o=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))r=this.top.children.indexOf(o,this.index);else for(var s=this.index,a=Math.min(this.top.children.length,s+5);s<a;s++){var l=this.top.children[s];if(l.matchesNode(e,t,n)&&!this.preMatch.matched.has(l)){r=s;break}}return!(r<0||(this.destroyBetween(this.index,r),this.index++,0))},wr.prototype.updateNodeAt=function(e,t,n,i,o){return!!this.top.children[i].update(e,t,n,o)&&(this.destroyBetween(this.index,i),this.index=i+1,!0)},wr.prototype.findIndexWithChild=function(e){for(;;){var t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){var n=e.pmViewDesc;if(n)for(var i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==n)return i;return-1}e=t}},wr.prototype.updateNextNode=function(e,t,n,i,o){for(var r=this.index;r<this.top.children.length;r++){var s=this.top.children[r];if(s instanceof ar){var a=this.preMatch.matched.get(s);if(null!=a&&a!=o)return!1;var l=s.dom;if((!this.lock||!(l==this.lock||1==l.nodeType&&l.contains(this.lock.parentNode))||e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&br(t,s.outerDeco))&&s.update(e,t,n,i))return this.destroyBetween(this.index,r),s.dom!=l&&(this.changed=!0),this.index++,!0;break}}return!1},wr.prototype.addNode=function(e,t,n,i,o){this.top.children.splice(this.index++,0,ar.create(this.top,e,t,n,i,o)),this.changed=!0},wr.prototype.placeWidget=function(e,t,n){var i=this.index<this.top.children.length?this.top.children[this.index]:null;if(!i||!i.matchesWidget(e)||e!=i.widget&&i.widget.type.toDOM.parentNode){var o=new or(this.top,e,t,n);this.top.children.splice(this.index++,0,o),this.changed=!0}else this.index++},wr.prototype.addTextblockHacks=function(){for(var e=this.top.children[this.index-1];e instanceof sr;)e=e.children[e.children.length-1];e&&e instanceof dr&&!/\n$/.test(e.node.text)||((go.safari||go.chrome)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG"),this.addHackNode("BR"))},wr.prototype.addHackNode=function(e){if(this.index<this.top.children.length&&this.top.children[this.index].matchesHack(e))this.index++;else{var t=document.createElement(e);"IMG"==e&&(t.className="ProseMirror-separator"),"BR"==e&&(t.className="ProseMirror-trailingBreak"),this.top.children.splice(this.index++,0,new cr(this.top,ir,t,null)),this.changed=!0}};var Or=go.safari||go.chrome&&go.chrome_version<63;function Dr(e,t){var n=e.docView.domFromPos(t,0),i=n.node,o=n.offset,r=o<i.childNodes.length?i.childNodes[o]:null,s=o?i.childNodes[o-1]:null;if(go.safari&&r&&"false"==r.contentEditable)return Mr(r);if(!(r&&"false"!=r.contentEditable||s&&"false"!=s.contentEditable)){if(r)return Mr(r);if(s)return Mr(s)}}function Mr(e){return e.contentEditable="true",go.safari&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Tr(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Rr(e,t){if(t instanceof ut){var n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(Br(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else Br(e)}function Br(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=null)}function Nr(e,t,n,i){return e.someProp("createSelectionBetween",(function(i){return i(e,t,n)}))||dt.between(t,n,i)}function Pr(e){var t=e.root.getSelection();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}function Er(e,t){var n=e.selection,i=n.$anchor,o=n.$head,r=t>0?i.max(o):i.min(o),s=r.parent.inlineContent?r.depth?e.doc.resolve(t>0?r.after():r.before()):null:r;return s&&st.findFrom(s,t)}function Vr(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Lr(e,t,n){var i=e.state.selection;if(!(i instanceof dt)){if(i instanceof ut&&i.node.isInline)return Vr(e,new dt(t>0?i.$to:i.$from));var o=Er(e.state,t);return!!o&&Vr(e,o)}if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){var r=Er(e.state,t);return!!(r&&r instanceof ut)&&Vr(e,r)}if(!(go.mac&&n.indexOf("m")>-1)){var s,a=i.$head,l=a.textOffset?null:t<0?a.nodeBefore:a.nodeAfter;if(!l||l.isText)return!1;var d=t<0?a.pos-l.nodeSize:a.pos;return!!(l.isAtom||(s=e.docView.descAt(d))&&!s.contentDOM)&&(ut.isSelectable(l)?Vr(e,new ut(t<0?e.state.doc.resolve(a.pos-l.nodeSize):a)):!!go.webkit&&Vr(e,new dt(e.state.doc.resolve(t<0?d:d+l.nodeSize))))}}function Ar(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Fr(e){var t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function zr(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){var o,r,s=!1;for(go.gecko&&1==n.nodeType&&i<Ar(n)&&Fr(n.childNodes[i])&&(s=!0);;)if(i>0){if(1!=n.nodeType)break;var a=n.childNodes[i-1];if(Fr(a))o=n,r=--i;else{if(3!=a.nodeType)break;i=(n=a).nodeValue.length}}else{if(Kr(n))break;for(var l=n.previousSibling;l&&Fr(l);)o=n.parentNode,r=xo(l),l=l.previousSibling;if(l)i=Ar(n=l);else{if((n=n.parentNode)==e.dom)break;i=0}}s?_r(e,t,n,i):o&&_r(e,t,o,r)}}function jr(e){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n){for(var o,r,s=Ar(n);;)if(i<s){if(1!=n.nodeType)break;if(!Fr(n.childNodes[i]))break;o=n,r=++i}else{if(Kr(n))break;for(var a=n.nextSibling;a&&Fr(a);)o=a.parentNode,r=xo(a)+1,a=a.nextSibling;if(a)i=0,s=Ar(n=a);else{if((n=n.parentNode)==e.dom)break;i=s=0}}o&&_r(e,t,o,r)}}function Kr(e){var t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function _r(e,t,n,i){if(Bo(t)){var o=document.createRange();o.setEnd(n,i),o.setStart(n,i),t.removeAllRanges(),t.addRange(o)}else t.extend&&t.extend(n,i);e.domObserver.setCurSelection();var r=e.state;setTimeout((function(){e.state==r&&Ir(e)}),50)}function Hr(e,t,n){var i=e.state.selection;if(i instanceof dt&&!i.empty||n.indexOf("s")>-1)return!1;if(go.mac&&n.indexOf("m")>-1)return!1;var o=i.$from,r=i.$to;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){var s=Er(e.state,t);if(s&&s instanceof ut)return Vr(e,s)}if(!o.parent.inlineContent){var a=t<0?o:r,l=i instanceof ht?st.near(a,t):st.findFrom(a,t);return!!l&&Vr(e,l)}return!1}function Wr(e,t){if(!(e.state.selection instanceof dt))return!0;var n=e.state.selection,i=n.$head,o=n.$anchor,r=n.empty;if(!i.sameParent(o))return!0;if(!r)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;var s=!i.textOffset&&(t<0?i.nodeBefore:i.nodeAfter);if(s&&!s.isText){var a=e.state.tr;return t<0?a.delete(i.pos-s.nodeSize,i.pos):a.delete(i.pos,i.pos+s.nodeSize),e.dispatch(a),!0}return!1}function Ur(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function qr(e){var t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(go.safari&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){var n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}if(e.parentNode.lastChild==e||go.safari&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0}}function Gr(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:Nr(e,t.resolve(n.anchor),t.resolve(n.head))}function Jr(e,t,n){for(var i=e.depth,o=t?e.end():e.pos;i>0&&(t||e.indexAfter(i)==e.node(i).childCount);)i--,o++,t=!1;if(n)for(var r=e.node(i).maybeChild(e.indexAfter(i));r&&!r.isLeaf;)r=r.firstChild,o++;return o}function Xr(e,t){for(var n=[],i=t.content,o=t.openStart,r=t.openEnd;o>1&&r>1&&1==i.childCount&&1==i.firstChild.childCount;){o--,r--;var s=i.firstChild;n.push(s.type.name,s.attrs!=s.type.defaultAttrs?s.attrs:null),i=s.content}var a=e.someProp("clipboardSerializer")||ge.fromSchema(e.state.schema),l=as(),d=l.createElement("div");d.appendChild(a.serializeFragment(i,{document:l}));for(var c,u=d.firstChild;u&&1==u.nodeType&&(c=rs[u.nodeName.toLowerCase()]);){for(var p=c.length-1;p>=0;p--){for(var h=l.createElement(c[p]);d.firstChild;)h.appendChild(d.firstChild);d.appendChild(h),"tbody"!=c[p]&&(o++,r++)}u=d.firstChild}return u&&1==u.nodeType&&u.setAttribute("data-pm-slice",o+" "+r+" "+JSON.stringify(n)),{dom:d,text:e.someProp("clipboardTextSerializer",(function(e){return e(t)}))||t.content.textBetween(0,t.content.size,"\n\n")}}function Yr(e,t,n,i,o){var r,s,l=o.parent.type.spec.code;if(!n&&!t)return null;var d=t&&(i||l||!n);if(d){if(e.someProp("transformPastedText",(function(e){t=e(t,l||i)})),l)return t?new f(a.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):f.empty;var c=e.someProp("clipboardTextParser",(function(e){return e(t,o,i)}));if(c)s=c;else{var u=o.marks(),p=e.state.schema,h=ge.fromSchema(p);r=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((function(e){var t=r.appendChild(document.createElement("p"));e&&t.appendChild(h.serializeNode(p.text(e,u)))}))}}else e.someProp("transformPastedHTML",(function(e){n=e(n)})),r=function(e){var t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));var n,i=as().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);if((n=o&&rs[o[1].toLowerCase()])&&(e=n.map((function(e){return"<"+e+">"})).join("")+e+n.map((function(e){return"</"+e+">"})).reverse().join("")),i.innerHTML=e,n)for(var r=0;r<n.length;r++)i=i.querySelector(n[r])||i;return i}(n),go.webkit&&function(e){for(var t=e.querySelectorAll(go.chrome?"span:not([class]):not([style])":"span.Apple-converted-space"),n=0;n<t.length;n++){var i=t[n];1==i.childNodes.length&&" "==i.textContent&&i.parentNode&&i.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),i)}}(r);var v=r&&r.querySelector("[data-pm-slice]"),m=v&&/^(\d+) (\d+) (.*)/.exec(v.getAttribute("data-pm-slice"));if(!s){var g=e.someProp("clipboardParser")||e.someProp("domParser")||se.fromSchema(e.state.schema);s=g.parseSlice(r,{preserveWhitespace:!(!d&&!m),context:o,ruleFromNode:function(e){if("BR"==e.nodeName&&!e.nextSibling&&e.parentNode&&!Zr.test(e.parentNode.nodeName))return{ignore:!0}}})}if(m)s=function(e,t){if(!e.size)return e;var n,i=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(t){return e}for(var o=e.content,r=e.openStart,s=e.openEnd,l=n.length-2;l>=0;l-=2){var d=i.nodes[n[l]];if(!d||d.hasRequiredAttrs())break;o=a.from(d.create(n[l+1],o)),r++,s++}return new f(o,r,s)}(is(s,+m[1],+m[2]),m[3]);else if(s=f.maxOpen(function(e,t){if(e.childCount<2)return e;for(var n=function(n){var i=t.node(n).contentMatchAt(t.index(n)),o=void 0,r=[];if(e.forEach((function(e){if(r){var t,n=i.findWrapping(e.type);if(!n)return r=null;if(t=r.length&&o.length&&es(n,o,e,r[r.length-1],0))r[r.length-1]=t;else{r.length&&(r[r.length-1]=ts(r[r.length-1],o.length));var s=Qr(e,n);r.push(s),i=i.matchType(s.type,s.attrs),o=n}}})),r)return{v:a.from(r)}},i=t.depth;i>=0;i--){var o=n(i);if(o)return o.v}return e}(s.content,o),!0),s.openStart||s.openEnd){for(var y=0,b=0,k=s.content.firstChild;y<s.openStart&&!k.type.spec.isolating;y++,k=k.firstChild);for(var w=s.content.lastChild;b<s.openEnd&&!w.type.spec.isolating;b++,w=w.lastChild);s=is(s,y,b)}return e.someProp("transformPasted",(function(e){s=e(s)})),s}var Zr=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Qr(e,t,n){void 0===n&&(n=0);for(var i=t.length-1;i>=n;i--)e=t[i].create(null,a.from(e));return e}function es(e,t,n,i,o){if(o<e.length&&o<t.length&&e[o]==t[o]){var r=es(e,t,n,i.lastChild,o+1);if(r)return i.copy(i.content.replaceChild(i.childCount-1,r));if(i.contentMatchAt(i.childCount).matchType(o==e.length-1?n.type:e[o+1]))return i.copy(i.content.append(a.from(Qr(n,e,o+1))))}}function ts(e,t){if(0==t)return e;var n=e.content.replaceChild(e.childCount-1,ts(e.lastChild,t-1)),i=e.contentMatchAt(e.childCount).fillBefore(a.empty,!0);return e.copy(n.append(i))}function ns(e,t,n,i,o,r){var s=t<0?e.firstChild:e.lastChild,l=s.content;return o<i-1&&(l=ns(l,t,n,i,o+1,r)),o>=n&&(l=t<0?s.contentMatchAt(0).fillBefore(l,e.childCount>1||r<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(a.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}function is(e,t,n){return t<e.openStart&&(e=new f(ns(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new f(ns(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var rs={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]},ss=null;function as(){return ss||(ss=document.implementation.createHTMLDocument("title"))}var ls={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ds=go.ie&&go.ie_version<=11,cs=function(){this.anchorNode=this.anchorOffset=this.focusNode=this.focusOffset=null};cs.prototype.set=function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset},cs.prototype.eq=function(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset};var us=function(e,t){var n=this;this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=window.MutationObserver&&new window.MutationObserver((function(e){for(var t=0;t<e.length;t++)n.queue.push(e[t]);go.ie&&go.ie_version<=11&&e.some((function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length}))?n.flushSoon():n.flush()})),this.currentSelection=new cs,ds&&(this.onCharData=function(e){n.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),n.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.suppressingSelectionUpdates=!1};us.prototype.flushSoon=function(){var e=this;this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((function(){e.flushingSoon=-1,e.flush()}),20))},us.prototype.forceFlush=function(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())},us.prototype.start=function(){this.observer&&this.observer.observe(this.view.dom,ls),ds&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()},us.prototype.stop=function(){var e=this;if(this.observer){var t=this.observer.takeRecords();if(t.length){for(var n=0;n<t.length;n++)this.queue.push(t[n]);window.setTimeout((function(){return e.flush()}),20)}this.observer.disconnect()}ds&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()},us.prototype.connectSelection=function(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)},us.prototype.disconnectSelection=function(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)},us.prototype.suppressSelectionUpdates=function(){var e=this;this.suppressingSelectionUpdates=!0,setTimeout((function(){return e.suppressingSelectionUpdates=!1}),50)},us.prototype.onSelectionChange=function(){if((!(e=this.view).editable||e.root.activeElement==e.dom)&&Pr(e)){var e;if(this.suppressingSelectionUpdates)return Ir(this.view);if(go.ie&&go.ie_version<=11&&!this.view.state.selection.empty){var t=this.view.root.getSelection();if(t.focusNode&&Oo(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}},us.prototype.setCurSelection=function(){this.currentSelection.set(this.view.root.getSelection())},us.prototype.ignoreSelectionChange=function(e){if(0==e.rangeCount)return!0;var t=e.getRangeAt(0).commonAncestorContainer,n=this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0},us.prototype.flush=function(){if(this.view.docView&&!(this.flushingSoon>-1)){var e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);var t=this.view.root.getSelection(),n=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(t)&&Pr(this.view)&&!this.ignoreSelectionChange(t),i=-1,o=-1,r=!1,s=[];if(this.view.editable)for(var a=0;a<e.length;a++){var l=this.registerMutation(e[a],s);l&&(i=i<0?l.from:Math.min(l.from,i),o=o<0?l.to:Math.max(l.to,o),l.typeOver&&(r=!0))}if(go.gecko&&s.length>1){var d=s.filter((function(e){return"BR"==e.nodeName}));if(2==d.length){var c=d[0],u=d[1];c.parentNode&&c.parentNode.parentNode==u.parentNode?u.remove():c.remove()}}(i>-1||n)&&(i>-1&&(this.view.docView.markDirty(i,o),p=this.view,ps||(ps=!0,"normal"==getComputedStyle(p.dom).whiteSpace&&console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."))),this.handleDOMChange(i,o,r,s),this.view.docView.dirty?this.view.updateState(this.view.state):this.currentSelection.eq(t)||Ir(this.view),this.currentSelection.set(t))}var p},us.prototype.registerMutation=function(e,t){if(t.indexOf(e.target)>-1)return null;var n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(var i=0;i<e.addedNodes.length;i++)t.push(e.addedNodes[i]);if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};var o=e.previousSibling,r=e.nextSibling;if(go.ie&&go.ie_version<=11&&e.addedNodes.length)for(var s=0;s<e.addedNodes.length;s++){var a=e.addedNodes[s],l=a.previousSibling,d=a.nextSibling;(!l||Array.prototype.indexOf.call(e.addedNodes,l)<0)&&(o=l),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(r=d)}var c=o&&o.parentNode==e.target?xo(o)+1:0,u=n.localPosFromDOM(e.target,c,-1),p=r&&r.parentNode==e.target?xo(r):e.target.childNodes.length;return{from:u,to:n.localPosFromDOM(e.target,p,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}};var ps=!1,hs={},fs={};function vs(e,t){e.lastSelectionOrigin=t,e.lastSelectionTime=Date.now()}function ms(e){e.someProp("handleDOMEvents",(function(t){for(var n in t)e.eventHandlers[n]||e.dom.addEventListener(n,e.eventHandlers[n]=function(t){return gs(e,t)})}))}function gs(e,t){return e.someProp("handleDOMEvents",(function(n){var i=n[t.type];return!!i&&(i(e,t)||t.defaultPrevented)}))}function ys(e){return{left:e.clientX,top:e.clientY}}function bs(e,t,n,i,o){if(-1==i)return!1;for(var r=e.state.doc.resolve(i),s=function(i){if(e.someProp(t,(function(t){return i>r.depth?t(e,n,r.nodeAfter,r.before(i),o,!0):t(e,n,r.node(i),r.before(i),o,!1)})))return{v:!0}},a=r.depth+1;a>0;a--){var l=s(a);if(l)return l.v}return!1}function ks(e,t,n){e.focused||e.focus();var i=e.state.tr.setSelection(t);"pointer"==n&&i.setMeta("pointer",!0),e.dispatch(i)}function ws(e,t,n,i){return bs(e,"handleDoubleClickOn",t,n,i)||e.someProp("handleDoubleClick",(function(n){return n(e,t,i)}))}function Ss(e,t,n,i){return bs(e,"handleTripleClickOn",t,n,i)||e.someProp("handleTripleClick",(function(n){return n(e,t,i)}))||function(e,t,n){if(0!=n.button)return!1;var i=e.state.doc;if(-1==t)return!!i.inlineContent&&(ks(e,dt.create(i,0,i.content.size),"pointer"),!0);for(var o=i.resolve(t),r=o.depth+1;r>0;r--){var s=r>o.depth?o.nodeAfter:o.node(r),a=o.before(r);if(s.inlineContent)ks(e,dt.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ut.isSelectable(s))continue;ks(e,ut.create(i,a),"pointer")}return!0}}(e,n,i)}function xs(e){return Ts(e)}fs.keydown=function(e,t){if(e.shiftKey=16==t.keyCode||t.shiftKey,!Is(e,t)&&(e.lastKeyCode=t.keyCode,e.lastKeyCodeTime=Date.now(),!go.android||!go.chrome||13!=t.keyCode))if(229!=t.keyCode&&e.domObserver.forceFlush(),!go.ios||13!=t.keyCode||t.ctrlKey||t.altKey||t.metaKey)e.someProp("handleKeyDown",(function(n){return n(e,t)}))||function(e,t){var n=t.keyCode,i=function(e){var t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);return 8==n||go.mac&&72==n&&"c"==i?Wr(e,-1)||zr(e):46==n||go.mac&&68==n&&"c"==i?Wr(e,1)||jr(e):13==n||27==n||(37==n?Lr(e,-1,i)||zr(e):39==n?Lr(e,1,i)||jr(e):38==n?Hr(e,-1,i)||zr(e):40==n?function(e){if(go.safari&&!(e.state.selection.$head.parentOffset>0)){var t=e.root.getSelection(),n=t.focusNode,i=t.focusOffset;if(n&&1==n.nodeType&&0==i&&n.firstChild&&"false"==n.firstChild.contentEditable){var o=n.firstChild;Ur(e,o,!0),setTimeout((function(){return Ur(e,o,!1)}),20)}}}(e)||Hr(e,1,i)||jr(e):i==(go.mac?"m":"c")&&(66==n||73==n||89==n||90==n))}(e,t)?t.preventDefault():vs(e,"key");else{var n=Date.now();e.lastIOSEnter=n,e.lastIOSEnterFallbackTimeout=setTimeout((function(){e.lastIOSEnter==n&&(e.someProp("handleKeyDown",(function(t){return t(e,No(13,"Enter"))})),e.lastIOSEnter=0)}),200)}},fs.keyup=function(e,t){16==t.keyCode&&(e.shiftKey=!1)},fs.keypress=function(e,t){if(!(Is(e,t)||!t.charCode||t.ctrlKey&&!t.altKey||go.mac&&t.metaKey))if(e.someProp("handleKeyPress",(function(n){return n(e,t)})))t.preventDefault();else{var n=e.state.selection;if(!(n instanceof dt&&n.$from.sameParent(n.$to))){var i=String.fromCharCode(t.charCode);e.someProp("handleTextInput",(function(t){return t(e,n.$from.pos,n.$to.pos,i)}))||e.dispatch(e.state.tr.insertText(i).scrollIntoView()),t.preventDefault()}}};var Cs=go.mac?"metaKey":"ctrlKey";hs.mousedown=function(e,t){e.shiftKey=t.shiftKey;var n=xs(e),i=Date.now(),o="singleClick";i-e.lastClick.time<500&&function(e,t){var n=t.x-e.clientX,i=t.y-e.clientY;return n*n+i*i<100}(t,e.lastClick)&&!t[Cs]&&("singleClick"==e.lastClick.type?o="doubleClick":"doubleClick"==e.lastClick.type&&(o="tripleClick")),e.lastClick={time:i,x:t.clientX,y:t.clientY,type:o};var r=e.posAtCoords(ys(t));r&&("singleClick"==o?(e.mouseDown&&e.mouseDown.done(),e.mouseDown=new $s(e,r,t,n)):("doubleClick"==o?ws:Ss)(e,r.pos,r.inside,t)?t.preventDefault():vs(e,"pointer"))};var $s=function(e,t,n,i){var o,r,s=this;if(this.view=e,this.startDoc=e.state.doc,this.pos=t,this.event=n,this.flushed=i,this.selectNode=n[Cs],this.allowDefault=n.shiftKey,this.delayedSelectionSync=!1,t.inside>-1)o=e.state.doc.nodeAt(t.inside),r=t.inside;else{var a=e.state.doc.resolve(t.pos);o=a.parent,r=a.depth?a.before():0}this.mightDrag=null;var l=i?null:n.target,d=l?e.docView.nearestDesc(l,!0):null;this.target=d?d.dom:null;var c=e.state.selection;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||c instanceof ut&&c.from<=r&&c.to>r)&&(this.mightDrag={node:o,pos:r,addAttr:this.target&&!this.target.draggable,setUneditable:this.target&&go.gecko&&!this.target.hasAttribute("contentEditable")}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((function(){s.view.mouseDown==s&&s.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),vs(e,"pointer")};function Is(e,t){return!!e.composing||!!(go.safari&&Math.abs(t.timeStamp-e.compositionEndedAt)<500)&&(e.compositionEndedAt=-2e8,!0)}$s.prototype.done=function(){var e=this;this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((function(){return Ir(e.view)})),this.view.mouseDown=null},$s.prototype.up=function(e){if(this.done(),this.view.dom.contains(3==e.target.nodeType?e.target.parentNode:e.target)){var t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(ys(e))),this.allowDefault||!t?vs(this.view,"pointer"):function(e,t,n,i,o){return bs(e,"handleClickOn",t,n,i)||e.someProp("handleClick",(function(n){return n(e,t,i)}))||(o?function(e,t){if(-1==t)return!1;var n,i,o=e.state.selection;o instanceof ut&&(n=o.node);for(var r=e.state.doc.resolve(t),s=r.depth+1;s>0;s--){var a=s>r.depth?r.nodeAfter:r.node(s);if(ut.isSelectable(a)){i=n&&o.$from.depth>0&&s>=o.$from.depth&&r.before(o.$from.depth+1)==o.$from.pos?r.before(o.$from.depth):r.before(s);break}}return null!=i&&(ks(e,ut.create(e.state.doc,i),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;var n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&ut.isSelectable(i))&&(ks(e,new ut(n),"pointer"),!0)}(e,n))}(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||go.safari&&this.mightDrag&&!this.mightDrag.node.isAtom||go.chrome&&!(this.view.state.selection instanceof dt)&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(ks(this.view,st.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):vs(this.view,"pointer")}},$s.prototype.move=function(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0),vs(this.view,"pointer"),0==e.buttons&&this.done()},hs.touchdown=function(e){xs(e),vs(e,"pointer")},hs.contextmenu=function(e){return xs(e)};var Os=go.android?5e3:-1;function Ds(e,t){clearTimeout(e.composingTimeout),t>-1&&(e.composingTimeout=setTimeout((function(){return Ts(e)}),t))}function Ms(e){var t;for(e.composing&&(e.composing=!1,e.compositionEndedAt=((t=document.createEvent("Event")).initEvent("event",!0,!0),t.timeStamp));e.compositionNodes.length>0;)e.compositionNodes.pop().markParentsDirty()}function Ts(e,t){if(!(go.android&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Ms(e),t||e.docView.dirty){var n=Cr(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):e.updateState(e.state),!0}return!1}}fs.compositionstart=fs.compositionupdate=function(e){if(!e.composing){e.domObserver.flush();var t=e.state,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((function(e){return!1===e.type.spec.inclusive}))))e.markCursor=e.state.storedMarks||n.marks(),Ts(e,!0),e.markCursor=null;else if(Ts(e),go.gecko&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length)for(var i=e.root.getSelection(),o=i.focusNode,r=i.focusOffset;o&&1==o.nodeType&&0!=r;){var s=r<0?o.lastChild:o.childNodes[r-1];if(!s)break;if(3==s.nodeType){i.collapse(s,s.nodeValue.length);break}o=s,r=-1}e.composing=!0}Ds(e,Os)},fs.compositionend=function(e,t){e.composing&&(e.composing=!1,e.compositionEndedAt=t.timeStamp,Ds(e,20))};var Rs=go.ie&&go.ie_version<15||go.ios&&go.webkit_version<604;function Bs(e,t,n,i){var o=Yr(e,t,n,e.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",(function(t){return t(e,i,o||f.empty)})))return!0;if(!o)return!1;var r=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(o),s=r?e.state.tr.replaceSelectionWith(r,e.shiftKey):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}hs.copy=fs.cut=function(e,t){var n=e.state.selection,i="cut"==t.type;if(!n.empty){var o=Rs?null:t.clipboardData,r=Xr(e,n.content()),s=r.dom,a=r.text;o?(t.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",a)):function(e,t){if(e.dom.parentNode){var n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";var i=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),i.removeAllRanges(),i.addRange(o),setTimeout((function(){n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}}(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))}},fs.paste=function(e,t){if(!e.composing||go.android){var n=Rs?null:t.clipboardData;n&&Bs(e,n.getData("text/plain"),n.getData("text/html"),t)?t.preventDefault():function(e,t){if(e.dom.parentNode){var n=e.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout((function(){e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?Bs(e,i.value,null,t):Bs(e,i.textContent,i.innerHTML,t)}),50)}}(e,t)}};var Ns=function(e,t){this.slice=e,this.move=t},Ps=go.mac?"altKey":"ctrlKey";for(var Es in hs.dragstart=function(e,t){var n=e.mouseDown;if(n&&n.done(),t.dataTransfer){var i=e.state.selection,o=i.empty?null:e.posAtCoords(ys(t));if(o&&o.pos>=i.from&&o.pos<=(i instanceof ut?i.to-1:i.to));else if(n&&n.mightDrag)e.dispatch(e.state.tr.setSelection(ut.create(e.state.doc,n.mightDrag.pos)));else if(t.target&&1==t.target.nodeType){var r=e.docView.nearestDesc(t.target,!0);r&&r.node.type.spec.draggable&&r!=e.docView&&e.dispatch(e.state.tr.setSelection(ut.create(e.state.doc,r.posBefore)))}var s=e.state.selection.content(),a=Xr(e,s),l=a.dom,d=a.text;t.dataTransfer.clearData(),t.dataTransfer.setData(Rs?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",Rs||t.dataTransfer.setData("text/plain",d),e.dragging=new Ns(s,!t[Ps])}},hs.dragend=function(e){var t=e.dragging;window.setTimeout((function(){e.dragging==t&&(e.dragging=null)}),50)},fs.dragover=fs.dragenter=function(e,t){return t.preventDefault()},fs.drop=function(e,t){var n=e.dragging;if(e.dragging=null,t.dataTransfer){var i=e.posAtCoords(ys(t));if(i){var o=e.state.doc.resolve(i.pos);if(o){var r=n&&n.slice;r?e.someProp("transformPasted",(function(e){r=e(r)})):r=Yr(e,t.dataTransfer.getData(Rs?"Text":"text/plain"),Rs?null:t.dataTransfer.getData("text/html"),!1,o);var s=n&&!t[Ps];if(e.someProp("handleDrop",(function(n){return n(e,t,r||f.empty,s)})))t.preventDefault();else if(r){t.preventDefault();var a=r?He(e.state.doc,o.pos,r):o.pos;null==a&&(a=o.pos);var l=e.state.tr;s&&l.deleteSelection();var d=l.mapping.map(a),c=0==r.openStart&&0==r.openEnd&&1==r.content.childCount,u=l.doc;if(c?l.replaceRangeWith(d,d,r.content.firstChild):l.replaceRange(d,d,r),!l.doc.eq(u)){var p=l.doc.resolve(d);if(c&&ut.isSelectable(r.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(r.content.firstChild))l.setSelection(new ut(p));else{var h=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((function(e,t,n,i){return h=i})),l.setSelection(Nr(e,p,l.doc.resolve(h)))}e.focus(),e.dispatch(l.setMeta("uiEvent","drop"))}}}}}},hs.focus=function(e){e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((function(){e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.root.getSelection())&&Ir(e)}),20))},hs.blur=function(e,t){e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),t.relatedTarget&&e.dom.contains(t.relatedTarget)&&e.domObserver.currentSelection.set({}),e.focused=!1)},hs.beforeinput=function(e,t){if(go.chrome&&go.android&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();var n=e.domChangeCount;setTimeout((function(){if(e.domChangeCount==n&&(e.dom.blur(),e.focus(),!e.someProp("handleKeyDown",(function(t){return t(e,No(8,"Backspace"))})))){var t=e.state.selection.$cursor;t&&t.pos>0&&e.dispatch(e.state.tr.delete(t.pos-1,t.pos).scrollIntoView())}}),50)}},fs)hs[Es]=fs[Es];function Vs(e,t){if(e==t)return!0;for(var n in e)if(e[n]!==t[n])return!1;for(var i in t)if(!(i in e))return!1;return!0}var Ls=function(e,t){this.spec=t||_s,this.side=this.spec.side||0,this.toDOM=e};Ls.prototype.map=function(e,t,n,i){var o=e.mapResult(t.from+i,this.side<0?-1:1),r=o.pos;return o.deleted?null:new zs(r-n,r-n,this)},Ls.prototype.valid=function(){return!0},Ls.prototype.eq=function(e){return this==e||e instanceof Ls&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Vs(this.spec,e.spec))},Ls.prototype.destroy=function(e){this.spec.destroy&&this.spec.destroy(e)};var As=function(e,t){this.spec=t||_s,this.attrs=e};As.prototype.map=function(e,t,n,i){var o=e.map(t.from+i,this.spec.inclusiveStart?-1:1)-n,r=e.map(t.to+i,this.spec.inclusiveEnd?1:-1)-n;return o>=r?null:new zs(o,r,this)},As.prototype.valid=function(e,t){return t.from<t.to},As.prototype.eq=function(e){return this==e||e instanceof As&&Vs(this.attrs,e.attrs)&&Vs(this.spec,e.spec)},As.is=function(e){return e.type instanceof As};var Fs=function(e,t){this.spec=t||_s,this.attrs=e};Fs.prototype.map=function(e,t,n,i){var o=e.mapResult(t.from+i,1);if(o.deleted)return null;var r=e.mapResult(t.to+i,-1);return r.deleted||r.pos<=o.pos?null:new zs(o.pos-n,r.pos-n,this)},Fs.prototype.valid=function(e,t){var n,i=e.content.findIndex(t.from),o=i.index,r=i.offset;return r==t.from&&!(n=e.child(o)).isText&&r+n.nodeSize==t.to},Fs.prototype.eq=function(e){return this==e||e instanceof Fs&&Vs(this.attrs,e.attrs)&&Vs(this.spec,e.spec)};var zs=function(e,t,n){this.from=e,this.to=t,this.type=n},js={spec:{configurable:!0},inline:{configurable:!0}};zs.prototype.copy=function(e,t){return new zs(e,t,this.type)},zs.prototype.eq=function(e,t){return void 0===t&&(t=0),this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to},zs.prototype.map=function(e,t,n){return this.type.map(e,this,t,n)},zs.widget=function(e,t,n){return new zs(e,e,new Ls(t,n))},zs.inline=function(e,t,n,i){return new zs(e,t,new As(n,i))},zs.node=function(e,t,n,i){return new zs(e,t,new Fs(n,i))},js.spec.get=function(){return this.type.spec},js.inline.get=function(){return this.type instanceof As},Object.defineProperties(zs.prototype,js);var Ks=[],_s={},Hs=function(e,t){this.local=e&&e.length?e:Ks,this.children=t&&t.length?t:Ks};Hs.create=function(e,t){return t.length?Xs(t,e,0,_s):Ws},Hs.prototype.find=function(e,t,n){var i=[];return this.findInner(null==e?0:e,null==t?1e9:t,i,0,n),i},Hs.prototype.findInner=function(e,t,n,i,o){for(var r=0;r<this.local.length;r++){var s=this.local[r];s.from<=t&&s.to>=e&&(!o||o(s.spec))&&n.push(s.copy(s.from+i,s.to+i))}for(var a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){var l=this.children[a]+1;this.children[a+2].findInner(e-l,t-l,n,i+l,o)}},Hs.prototype.map=function(e,t,n){return this==Ws||0==e.maps.length?this:this.mapInner(e,t,0,0,n||_s)},Hs.prototype.mapInner=function(e,t,n,i,o){for(var r,s=0;s<this.local.length;s++){var a=this.local[s].map(e,n,i);a&&a.type.valid(t,a)?(r||(r=[])).push(a):o.onRemove&&o.onRemove(this.local[s].spec)}return this.children.length?function(e,t,n,i,o,r,s){for(var a=e.slice(),l=function(e,t,n,i){for(var s=0;s<a.length;s+=3){var l=a[s+1],d=void 0;-1==l||e>l+r||(t>=a[s]+r?a[s+1]=-1:n>=o&&(d=i-n-(t-e))&&(a[s]+=d,a[s+1]+=d))}},d=0;d<n.maps.length;d++)n.maps[d].forEach(l);for(var c=!1,u=0;u<a.length;u+=3)if(-1==a[u+1]){var p=n.map(e[u]+r),h=p-o;if(h<0||h>=i.content.size){c=!0;continue}var f=n.map(e[u+1]+r,-1)-o,v=i.content.findIndex(h),m=v.index,g=v.offset,y=i.maybeChild(m);if(y&&g==h&&g+y.nodeSize==f){var b=a[u+2].mapInner(n,y,p+1,e[u]+r+1,s);b!=Ws?(a[u]=h,a[u+1]=f,a[u+2]=b):(a[u+1]=-2,c=!0)}else c=!0}if(c){var k=function(e,t,n,i,o,r,s){function a(e,t){for(var r=0;r<e.local.length;r++){var l=e.local[r].map(i,o,t);l?n.push(l):s.onRemove&&s.onRemove(e.local[r].spec)}for(var d=0;d<e.children.length;d+=3)a(e.children[d+2],e.children[d]+t+1)}for(var l=0;l<e.length;l+=3)-1==e[l+1]&&a(e[l+2],t[l]+r+1);return n}(a,e,t||[],n,o,r,s),w=Xs(k,i,0,s);t=w.local;for(var S=0;S<a.length;S+=3)a[S+1]<0&&(a.splice(S,3),S-=3);for(var x=0,C=0;x<w.children.length;x+=3){for(var $=w.children[x];C<a.length&&a[C]<$;)C+=3;a.splice(C,0,w.children[x],w.children[x+1],w.children[x+2])}}return new Hs(t&&t.sort(Ys),a)}(this.children,r,e,t,n,i,o):r?new Hs(r.sort(Ys)):Ws},Hs.prototype.add=function(e,t){return t.length?this==Ws?Hs.create(e,t):this.addInner(e,t,0):this},Hs.prototype.addInner=function(e,t,n){var i,o=this,r=0;e.forEach((function(e,s){var a,l=s+n;if(a=Gs(t,e,l)){for(i||(i=o.children.slice());r<i.length&&i[r]<s;)r+=3;i[r]==s?i[r+2]=i[r+2].addInner(e,a,l+1):i.splice(r,0,s,s+e.nodeSize,Xs(a,e,l+1,_s)),r+=3}}));for(var s=qs(r?Js(t):t,-n),a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new Hs(s.length?this.local.concat(s).sort(Ys):this.local,i||this.children)},Hs.prototype.remove=function(e){return 0==e.length||this==Ws?this:this.removeInner(e,0)},Hs.prototype.removeInner=function(e,t){for(var n=this.children,i=this.local,o=0;o<n.length;o+=3){for(var r=void 0,s=n[o]+t,a=n[o+1]+t,l=0,d=void 0;l<e.length;l++)(d=e[l])&&d.from>s&&d.to<a&&(e[l]=null,(r||(r=[])).push(d));if(r){n==this.children&&(n=this.children.slice());var c=n[o+2].removeInner(r,s+1);c!=Ws?n[o+2]=c:(n.splice(o,3),o-=3)}}if(i.length)for(var u=0,p=void 0;u<e.length;u++)if(p=e[u])for(var h=0;h<i.length;h++)i[h].eq(p,t)&&(i==this.local&&(i=this.local.slice()),i.splice(h--,1));return n==this.children&&i==this.local?this:i.length||n.length?new Hs(i,n):Ws},Hs.prototype.forChild=function(e,t){if(this==Ws)return this;if(t.isLeaf)return Hs.empty;for(var n,i,o=0;o<this.children.length;o+=3)if(this.children[o]>=e){this.children[o]==e&&(n=this.children[o+2]);break}for(var r=e+1,s=r+t.content.size,a=0;a<this.local.length;a++){var l=this.local[a];if(l.from<s&&l.to>r&&l.type instanceof As){var d=Math.max(r,l.from)-r,c=Math.min(s,l.to)-r;d<c&&(i||(i=[])).push(l.copy(d,c))}}if(i){var u=new Hs(i.sort(Ys));return n?new Us([u,n]):u}return n||Ws},Hs.prototype.eq=function(e){if(this==e)return!0;if(!(e instanceof Hs)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(var t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(var n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0},Hs.prototype.locals=function(e){return Zs(this.localsInner(e))},Hs.prototype.localsInner=function(e){if(this==Ws)return Ks;if(e.inlineContent||!this.local.some(As.is))return this.local;for(var t=[],n=0;n<this.local.length;n++)this.local[n].type instanceof As||t.push(this.local[n]);return t};var Ws=new Hs;Hs.empty=Ws,Hs.removeOverlap=Zs;var Us=function(e){this.members=e};function qs(e,t){if(!t||!e.length)return e;for(var n=[],i=0;i<e.length;i++){var o=e[i];n.push(new zs(o.from+t,o.to+t,o.type))}return n}function Gs(e,t,n){if(t.isLeaf)return null;for(var i=n+t.nodeSize,o=null,r=0,s=void 0;r<e.length;r++)(s=e[r])&&s.from>n&&s.to<i&&((o||(o=[])).push(s),e[r]=null);return o}function Js(e){for(var t=[],n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Xs(e,t,n,i){var o=[],r=!1;t.forEach((function(t,s){var a=Gs(e,t,s+n);if(a){r=!0;var l=Xs(a,t,n+s+1,i);l!=Ws&&o.push(s,s+t.nodeSize,l)}}));for(var s=qs(r?Js(e):e,-n).sort(Ys),a=0;a<s.length;a++)s[a].type.valid(t,s[a])||(i.onRemove&&i.onRemove(s[a].spec),s.splice(a--,1));return s.length||o.length?new Hs(s,o):Ws}function Ys(e,t){return e.from-t.from||e.to-t.to}function Zs(e){for(var t=e,n=0;n<t.length-1;n++){var i=t[n];if(i.from!=i.to)for(var o=n+1;o<t.length;o++){var r=t[o];if(r.from!=i.from){r.from<i.to&&(t==e&&(t=e.slice()),t[n]=i.copy(i.from,r.from),Qs(t,o,i.copy(r.from,i.to)));break}r.to!=i.to&&(t==e&&(t=e.slice()),t[o]=r.copy(r.from,i.to),Qs(t,o+1,r.copy(i.to,r.to)))}}return t}function Qs(e,t,n){for(;t<e.length&&Ys(n,e[t])>0;)t++;e.splice(t,0,n)}function ea(e){var t=[];return e.someProp("decorations",(function(n){var i=n(e.state);i&&i!=Ws&&t.push(i)})),e.cursorWrapper&&t.push(Hs.create(e.state.doc,[e.cursorWrapper.deco])),Us.from(t)}Us.prototype.map=function(e,t){var n=this.members.map((function(n){return n.map(e,t,_s)}));return Us.from(n)},Us.prototype.forChild=function(e,t){if(t.isLeaf)return Hs.empty;for(var n=[],i=0;i<this.members.length;i++){var o=this.members[i].forChild(e,t);o!=Ws&&(o instanceof Us?n=n.concat(o.members):n.push(o))}return Us.from(n)},Us.prototype.eq=function(e){if(!(e instanceof Us)||e.members.length!=this.members.length)return!1;for(var t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0},Us.prototype.locals=function(e){for(var t,n=!0,i=0;i<this.members.length;i++){var o=this.members[i].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(var r=0;r<o.length;r++)t.push(o[r])}else t=o}return t?Zs(n?t:t.sort(Ys)):Ks},Us.from=function(e){switch(e.length){case 0:return Ws;case 1:return e[0];default:return new Us(e)}};var ta,na,ia=function(e,t){this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(da),this.dispatch=this.dispatch.bind(this),this._root=null,this.focused=!1,this.trackWrites=null,this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):e.apply?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=aa(this),this.markCursor=null,this.cursorWrapper=null,sa(this),this.nodeViews=la(this),this.docView=lr(this.state.doc,ra(this),ea(this),this.dom,this),this.lastSelectedViewDesc=null,this.dragging=null,function(e){e.shiftKey=!1,e.mouseDown=null,e.lastKeyCode=null,e.lastKeyCodeTime=0,e.lastClick={time:0,x:0,y:0,type:""},e.lastSelectionOrigin=null,e.lastSelectionTime=0,e.lastIOSEnter=0,e.lastIOSEnterFallbackTimeout=null,e.lastAndroidDelete=0,e.composing=!1,e.composingTimeout=null,e.compositionNodes=[],e.compositionEndedAt=-2e8,e.domObserver=new us(e,(function(t,n,i,o){return function(e,t,n,i,o){if(t<0){var r=e.lastSelectionTime>Date.now()-50?e.lastSelectionOrigin:null,s=Cr(e,r);if(s&&!e.state.selection.eq(s)){var l=e.state.tr.setSelection(s);"pointer"==r?l.setMeta("pointer",!0):"key"==r&&l.scrollIntoView(),e.dispatch(l)}}else{var d=e.state.doc.resolve(t),c=d.sharedDepth(n);t=d.before(c+1),n=e.state.doc.resolve(n).after(c+1);var u=e.state.selection,p=function(e,t,n){var i=e.docView.parseRange(t,n),o=i.node,r=i.fromOffset,s=i.toOffset,a=i.from,l=i.to,d=e.root.getSelection(),c=null,u=d.anchorNode;if(u&&e.dom.contains(1==u.nodeType?u:u.parentNode)&&(c=[{node:u,offset:d.anchorOffset}],Bo(d)||c.push({node:d.focusNode,offset:d.focusOffset})),go.chrome&&8===e.lastKeyCode)for(var p=s;p>r;p--){var h=o.childNodes[p-1],f=h.pmViewDesc;if("BR"==h.nodeName&&!f){s=p;break}if(!f||f.size)break}var v=e.state.doc,m=e.someProp("domParser")||se.fromSchema(e.state.schema),g=v.resolve(a),y=null,b=m.parse(o,{topNode:g.parent,topMatch:g.parent.contentMatchAt(g.index()),topOpen:!0,from:r,to:s,preserveWhitespace:"pre"!=g.parent.type.whitespace||"full",editableContent:!0,findPositions:c,ruleFromNode:qr,context:g});if(c&&null!=c[0].pos){var k=c[0].pos,w=c[1]&&c[1].pos;null==w&&(w=k),y={anchor:k+a,head:w+a}}return{doc:b,sel:y,from:a,to:l}}(e,t,n);if(go.chrome&&e.cursorWrapper&&p.sel&&p.sel.anchor==e.cursorWrapper.deco.from){var h=e.cursorWrapper.deco.type.toDOM.nextSibling,f=h&&h.nodeValue?h.nodeValue.length:1;p.sel={anchor:p.sel.anchor+f,head:p.sel.anchor+f}}var v,m,g=e.state.doc,y=g.slice(p.from,p.to);8===e.lastKeyCode&&Date.now()-100<e.lastKeyCodeTime?(v=e.state.selection.to,m="end"):(v=e.state.selection.from,m="start"),e.lastKeyCode=null;var b=function(e,t,n,i,o){var r=e.findDiffStart(t,n);if(null==r)return null;var s=e.findDiffEnd(t,n+e.size,n+t.size),a=s.a,l=s.b;return"end"==o&&(i-=a+Math.max(0,r-Math.min(a,l))-r),a<r&&e.size<t.size?(l=(r-=i<=r&&i>=a?r-i:0)+(l-a),a=r):l<r&&(a=(r-=i<=r&&i>=l?r-i:0)+(a-l),l=r),{start:r,endA:a,endB:l}}(y.content,p.doc.content,p.from,v,m);if(!b){if(!(i&&u instanceof dt&&!u.empty&&u.$head.sameParent(u.$anchor))||e.composing||p.sel&&p.sel.anchor!=p.sel.head){if((go.ios&&e.lastIOSEnter>Date.now()-225||go.android)&&o.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName}))&&e.someProp("handleKeyDown",(function(t){return t(e,No(13,"Enter"))})))return void(e.lastIOSEnter=0);if(p.sel){var k=Gr(e,e.state.doc,p.sel);k&&!k.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(k))}return}b={start:u.from,endA:u.to,endB:u.to}}e.domChangeCount++,e.state.selection.from<e.state.selection.to&&b.start==b.endB&&e.state.selection instanceof dt&&(b.start>e.state.selection.from&&b.start<=e.state.selection.from+2?b.start=e.state.selection.from:b.endA<e.state.selection.to&&b.endA>=e.state.selection.to-2&&(b.endB+=e.state.selection.to-b.endA,b.endA=e.state.selection.to)),go.ie&&go.ie_version<=11&&b.endB==b.start+1&&b.endA==b.start&&b.start>p.from&&"  "==p.doc.textBetween(b.start-p.from-1,b.start-p.from+1)&&(b.start--,b.endA--,b.endB--);var w,S=p.doc.resolveNoCache(b.start-p.from),x=p.doc.resolveNoCache(b.endB-p.from),C=S.sameParent(x)&&S.parent.inlineContent;if((go.ios&&e.lastIOSEnter>Date.now()-225&&(!C||o.some((function(e){return"DIV"==e.nodeName||"P"==e.nodeName})))||!C&&S.pos<p.doc.content.size&&(w=st.findFrom(p.doc.resolve(S.pos+1),1,!0))&&w.head==x.pos)&&e.someProp("handleKeyDown",(function(t){return t(e,No(13,"Enter"))})))e.lastIOSEnter=0;else if(e.state.selection.anchor>b.start&&function(e,t,n,i,o){if(!i.parent.isTextblock||n-t<=o.pos-i.pos||Jr(i,!0,!1)<o.pos)return!1;var r=e.resolve(t);if(r.parentOffset<r.parent.content.size||!r.parent.isTextblock)return!1;var s=e.resolve(Jr(r,!0,!0));return!(!s.parent.isTextblock||s.pos>n||Jr(s,!0,!1)<n)&&i.parent.content.cut(i.parentOffset).eq(s.parent.content)}(g,b.start,b.endA,S,x)&&e.someProp("handleKeyDown",(function(t){return t(e,No(8,"Backspace"))})))go.android&&go.chrome&&e.domObserver.suppressSelectionUpdates();else{go.chrome&&go.android&&b.toB==b.from&&(e.lastAndroidDelete=Date.now()),go.android&&!C&&S.start()!=x.start()&&0==x.parentOffset&&S.depth==x.depth&&p.sel&&p.sel.anchor==p.sel.head&&p.sel.head==b.endA&&(b.endB-=2,x=p.doc.resolveNoCache(b.endB-p.from),setTimeout((function(){e.someProp("handleKeyDown",(function(t){return t(e,No(13,"Enter"))}))}),20));var $,I,O,D,M=b.start,T=b.endA;if(C)if(S.pos==x.pos)go.ie&&go.ie_version<=11&&0==S.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((function(){return Ir(e)}),20)),$=e.state.tr.delete(M,T),I=g.resolve(b.start).marksAcross(g.resolve(b.endA));else if(b.endA==b.endB&&(D=g.resolve(b.start))&&(O=function(e,t){for(var n,i,o,r=e.firstChild.marks,s=t.firstChild.marks,l=r,d=s,c=0;c<s.length;c++)l=s[c].removeFromSet(l);for(var u=0;u<r.length;u++)d=r[u].removeFromSet(d);if(1==l.length&&0==d.length)i=l[0],n="add",o=function(e){return e.mark(i.addToSet(e.marks))};else{if(0!=l.length||1!=d.length)return null;i=d[0],n="remove",o=function(e){return e.mark(i.removeFromSet(e.marks))}}for(var p=[],h=0;h<t.childCount;h++)p.push(o(t.child(h)));if(a.from(p).eq(e))return{mark:i,type:n}}(S.parent.content.cut(S.parentOffset,x.parentOffset),D.parent.content.cut(D.parentOffset,b.endA-D.start()))))$=e.state.tr,"add"==O.type?$.addMark(M,T,O.mark):$.removeMark(M,T,O.mark);else if(S.parent.child(S.index()).isText&&S.index()==x.index()-(x.textOffset?0:1)){var R=S.parent.textBetween(S.parentOffset,x.parentOffset);if(e.someProp("handleTextInput",(function(t){return t(e,M,T,R)})))return;$=e.state.tr.insertText(R,M,T)}if($||($=e.state.tr.replace(M,T,p.doc.slice(b.start-p.from,b.endB-p.from))),p.sel){var B=Gr(e,$.doc,p.sel);B&&!(go.chrome&&go.android&&e.composing&&B.empty&&(b.start!=b.endB||e.lastAndroidDelete<Date.now()-100)&&(B.head==M||B.head==$.mapping.map(T)-1)||go.ie&&B.empty&&B.head==M)&&$.setSelection(B)}I&&$.ensureMarks(I),e.dispatch($.scrollIntoView())}}}(e,t,n,i,o)})),e.domObserver.start(),e.domChangeCount=0,e.eventHandlers=Object.create(null);var t=function(t){var n=hs[t];e.dom.addEventListener(t,e.eventHandlers[t]=function(t){!function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}(e,t)||gs(e,t)||!e.editable&&t.type in fs||n(e,t)})};for(var n in hs)t(n);go.safari&&e.dom.addEventListener("input",(function(){return null})),ms(e)}(this),this.prevDirectPlugins=[],this.pluginViews=[],this.updatePluginViews()},oa={props:{configurable:!0},root:{configurable:!0},isDestroyed:{configurable:!0}};function ra(e){var t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),t.translate="no",e.someProp("attributes",(function(n){if("function"==typeof n&&(n=n(e.state)),n)for(var i in n)"class"==i&&(t.class+=" "+n[i]),"style"==i?t.style=(t.style?t.style+";":"")+n[i]:t[i]||"contenteditable"==i||"nodeName"==i||(t[i]=String(n[i]))})),[zs.node(0,e.state.doc.content.size,t)]}function sa(e){if(e.markCursor){var t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),e.cursorWrapper={dom:t,deco:zs.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function aa(e){return!e.someProp("editable",(function(t){return!1===t(e.state)}))}function la(e){var t={};return e.someProp("nodeViews",(function(e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])})),t}function da(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}if(oa.props.get=function(){if(this._props.state!=this.state){var e=this._props;for(var t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props},ia.prototype.update=function(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ms(this),this._props=e,e.plugins&&(e.plugins.forEach(da),this.directPlugins=e.plugins),this.updateStateInner(e.state,!0)},ia.prototype.setProps=function(e){var t={};for(var n in this._props)t[n]=this._props[n];for(var i in t.state=this.state,e)t[i]=e[i];this.update(t)},ia.prototype.updateState=function(e){this.updateStateInner(e,this.state.plugins!=e.plugins)},ia.prototype.updateStateInner=function(e,t){var n=this,i=this.state,o=!1,r=!1;if(e.storedMarks&&this.composing&&(Ms(this),r=!0),this.state=e,t){var s=la(this);(function(e,t){var n=0,i=0;for(var o in e){if(e[o]!=t[o])return!0;n++}for(var r in t)i++;return n!=i})(s,this.nodeViews)&&(this.nodeViews=s,o=!0),ms(this)}this.editable=aa(this),sa(this);var a=ea(this),l=ra(this),d=t?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",c=o||!this.docView.matchesNode(e.doc,l,a);!c&&e.selection.eq(i.selection)||(r=!0);var u,p,h,f,v,m,g,y,b,k,w="preserve"==d&&r&&null==this.dom.style.overflowAnchor&&function(e){for(var t,n,i=e.dom.getBoundingClientRect(),o=Math.max(0,i.top),r=(i.left+i.right)/2,s=o+1;s<Math.min(innerHeight,i.bottom);s+=5){var a=e.root.elementFromPoint(r,s);if(a!=e.dom&&e.dom.contains(a)){var l=a.getBoundingClientRect();if(l.top>=o-20){t=a,n=l.top;break}}}return{refDOM:t,refTop:n,stack:Ao(e.dom)}}(this);if(r){this.domObserver.stop();var S=c&&(go.ie||go.chrome)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&(f=i.selection,v=e.selection,m=Math.min(f.$anchor.sharedDepth(f.head),v.$anchor.sharedDepth(v.head)),f.$anchor.start(m)!=v.$anchor.start(m));if(c){var x=go.chrome?this.trackWrites=this.root.getSelection().focusNode:null;!o&&this.docView.update(e.doc,l,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=lr(e.doc,l,a,this.dom,this)),x&&!this.trackWrites&&(S=!0)}S||!(this.mouseDown&&this.domObserver.currentSelection.eq(this.root.getSelection())&&(u=this,p=u.docView.domFromPos(u.state.selection.anchor,0),h=u.root.getSelection(),Oo(p.node,p.offset,h.anchorNode,h.anchorOffset)))?Ir(this,S):(Rr(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}if(this.updatePluginViews(i),"reset"==d)this.dom.scrollTop=0;else if("to selection"==d){var C=this.root.getSelection().focusNode;this.someProp("handleScrollToSelection",(function(e){return e(n)}))||(e.selection instanceof ut?Lo(this,this.docView.domAfterPos(e.selection.from).getBoundingClientRect(),C):Lo(this,this.coordsAtPos(e.selection.head,1),C))}else w&&(y=(g=w).refDOM,b=g.refTop,Fo(g.stack,0==(k=y?y.getBoundingClientRect().top:0)?0:k-b))},ia.prototype.destroyPluginViews=function(){for(var e;e=this.pluginViews.pop();)e.destroy&&e.destroy()},ia.prototype.updatePluginViews=function(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(var t=0;t<this.pluginViews.length;t++){var n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(var i=0;i<this.directPlugins.length;i++){var o=this.directPlugins[i];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(var r=0;r<this.state.plugins.length;r++){var s=this.state.plugins[r];s.spec.view&&this.pluginViews.push(s.spec.view(this))}}},ia.prototype.someProp=function(e,t){var n,i=this._props&&this._props[e];if(null!=i&&(n=t?t(i):i))return n;for(var o=0;o<this.directPlugins.length;o++){var r=this.directPlugins[o].props[e];if(null!=r&&(n=t?t(r):r))return n}var s=this.state.plugins;if(s)for(var a=0;a<s.length;a++){var l=s[a].props[e];if(null!=l&&(n=t?t(l):l))return n}},ia.prototype.hasFocus=function(){return this.root.activeElement==this.dom},ia.prototype.focus=function(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(zo)return e.focus(zo);var t=Ao(e);e.focus(null==zo?{get preventScroll(){return zo={preventScroll:!0},!0}}:void 0),zo||(zo=!1,Fo(t,0))}(this.dom),Ir(this),this.domObserver.start()},oa.root.get=function(){var e=this._root;if(null==e)for(var t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=function(){return document.getSelection()}),this._root=t;return e||document},ia.prototype.posAtCoords=function(e){return Ho(this,e)},ia.prototype.coordsAtPos=function(e,t){return void 0===t&&(t=1),qo(this,e,t)},ia.prototype.domAtPos=function(e,t){return void 0===t&&(t=0),this.docView.domFromPos(e,t)},ia.prototype.nodeDOM=function(e){var t=this.docView.descAt(e);return t?t.nodeDOM:null},ia.prototype.posAtDOM=function(e,t,n){void 0===n&&(n=-1);var i=this.docView.posFromDOM(e,t,n);if(null==i)throw new RangeError("DOM position not inside the editor");return i},ia.prototype.endOfTextblock=function(e,t){return function(e,t,n){return Zo==t&&Qo==n?er:(Zo=t,Qo=n,er="up"==n||"down"==n?function(e,t,n){var i=t.selection,o="up"==n?i.$from:i.$to;return Xo(e,t,(function(){for(var t=e.docView.domFromPos(o.pos,"up"==n?-1:1).node;;){var i=e.docView.nearestDesc(t,!0);if(!i)break;if(i.node.isBlock){t=i.dom;break}t=i.dom.parentNode}for(var r=qo(e,o.pos,1),s=t.firstChild;s;s=s.nextSibling){var a=void 0;if(1==s.nodeType)a=s.getClientRects();else{if(3!=s.nodeType)continue;a=Io(s,0,s.nodeValue.length).getClientRects()}for(var l=0;l<a.length;l++){var d=a[l];if(d.bottom>d.top+1&&("up"==n?r.top-d.top>2*(d.bottom-r.top):d.bottom-r.bottom>2*(r.bottom-d.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){var i=t.selection.$head;if(!i.parent.isTextblock)return!1;var o=i.parentOffset,r=!o,s=o==i.parent.content.size,a=e.root.getSelection();return Yo.test(i.parent.textContent)&&a.modify?Xo(e,t,(function(){var t=a.getRangeAt(0),o=a.focusNode,r=a.focusOffset,s=a.caretBidiLevel;a.modify("move",n,"character");var l=!(i.depth?e.docView.domAfterPos(i.before()):e.dom).contains(1==a.focusNode.nodeType?a.focusNode:a.focusNode.parentNode)||o==a.focusNode&&r==a.focusOffset;return a.removeAllRanges(),a.addRange(t),null!=s&&(a.caretBidiLevel=s),l})):"left"==n||"backward"==n?r:s}(e,t,n))}(this,t||this.state,e)},ia.prototype.destroy=function(){this.docView&&(function(e){for(var t in e.domObserver.stop(),e.eventHandlers)e.dom.removeEventListener(t,e.eventHandlers[t]);clearTimeout(e.composingTimeout),clearTimeout(e.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ea(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)},oa.isDestroyed.get=function(){return null==this.docView},ia.prototype.dispatchEvent=function(e){return function(e,t){gs(e,t)||!hs[t.type]||!e.editable&&t.type in fs||hs[t.type](e,t)}(this,e)},ia.prototype.dispatch=function(e){var t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))},Object.defineProperties(ia.prototype,oa),"undefined"!=typeof WeakMap){var ca=new WeakMap;ta=function(e){return ca.get(e)},na=function(e,t){return ca.set(e,t),t}}else{var ua=[],pa=0;ta=function(e){for(var t=0;t<ua.length;t+=2)if(ua[t]==e)return ua[t+1]},na=function(e,t){return 10==pa&&(pa=0),ua[pa++]=e,ua[pa++]=t}}var ha=function(e,t,n,i){this.left=e,this.top=t,this.right=n,this.bottom=i},fa=function(e,t,n,i){this.width=e,this.height=t,this.map=n,this.problems=i};function va(e){if(e.colwidth)return e.colwidth.slice();for(var t=[],n=0;n<e.colspan;n++)t.push(0);return t}function ma(e,t){var n=e.getAttribute("data-colwidth"),i=n&&/^\d+(,\d+)*$/.test(n)?n.split(",").map((function(e){return Number(e)})):null,o=Number(e.getAttribute("colspan")||1),r={colspan:o,rowspan:Number(e.getAttribute("rowspan")||1),colwidth:i&&i.length==o?i:null};for(var s in t){var a=t[s].getFromDOM,l=a&&a(e);null!=l&&(r[s]=l)}return r}function ga(e,t){var n={};for(var i in 1!=e.attrs.colspan&&(n.colspan=e.attrs.colspan),1!=e.attrs.rowspan&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n["data-colwidth"]=e.attrs.colwidth.join(",")),t){var o=t[i].setDOMAttr;o&&o(e.attrs[i],n)}return n}function ya(e){var t=e.cellAttributes||{},n={colspan:{default:1},rowspan:{default:1},colwidth:{default:null}};for(var i in t)n[i]={default:t[i].default};return{table:{content:"table_row+",tableRole:"table",isolating:!0,group:e.tableGroup,parseDOM:[{tag:"table"}],toDOM:function(){return["table",["tbody",0]]}},table_row:{content:"(table_cell | table_header)*",tableRole:"row",parseDOM:[{tag:"tr"}],toDOM:function(){return["tr",0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:"cell",isolating:!0,parseDOM:[{tag:"td",getAttrs:function(e){return ma(e,t)}}],toDOM:function(e){return["td",ga(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:"header_cell",isolating:!0,parseDOM:[{tag:"th",getAttrs:function(e){return ma(e,t)}}],toDOM:function(e){return["th",ga(e,t),0]}}}}function ba(e){var t=e.cached.tableNodeTypes;if(!t)for(var n in t=e.cached.tableNodeTypes={},e.nodes){var i=e.nodes[n],o=i.spec.tableRole;o&&(t[o]=i)}return t}fa.prototype.findCell=function(e){for(var t=0;t<this.map.length;t++){var n=this.map[t];if(n==e){for(var i=t%this.width,o=t/this.width|0,r=i+1,s=o+1,a=1;r<this.width&&this.map[t+a]==n;a++)r++;for(var l=1;s<this.height&&this.map[t+this.width*l]==n;l++)s++;return new ha(i,o,r,s)}}throw new RangeError("No cell with offset "+e+" found")},fa.prototype.colCount=function(e){for(var t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError("No cell with offset "+e+" found")},fa.prototype.nextCell=function(e,t,n){var i=this.findCell(e),o=i.left,r=i.right,s=i.top,a=i.bottom;return"horiz"==t?(n<0?0==o:r==this.width)?null:this.map[s*this.width+(n<0?o-1:r)]:(n<0?0==s:a==this.height)?null:this.map[o+this.width*(n<0?s-1:a)]},fa.prototype.rectBetween=function(e,t){var n=this.findCell(e),i=n.left,o=n.right,r=n.top,s=n.bottom,a=this.findCell(t),l=a.left,d=a.right,c=a.top,u=a.bottom;return new ha(Math.min(i,l),Math.min(r,c),Math.max(o,d),Math.max(s,u))},fa.prototype.cellsInRect=function(e){for(var t=[],n={},i=e.top;i<e.bottom;i++)for(var o=e.left;o<e.right;o++){var r=i*this.width+o,s=this.map[r];n[s]||(n[s]=!0,o==e.left&&o&&this.map[r-1]==s||i==e.top&&i&&this.map[r-this.width]==s||t.push(s))}return t},fa.prototype.positionAt=function(e,t,n){for(var i=0,o=0;;i++){var r=o+n.child(i).nodeSize;if(i==e){for(var s=t+e*this.width,a=(e+1)*this.width;s<a&&this.map[s]<o;)s++;return s==a?r-1:this.map[s]}o=r}},fa.get=function(e){return ta(e)||na(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);for(var t=function(e){for(var t=-1,n=!1,i=0;i<e.childCount;i++){var o=e.child(i),r=0;if(n)for(var s=0;s<i;s++)for(var a=e.child(s),l=0;l<a.childCount;l++){var d=a.child(l);s+d.attrs.rowspan>i&&(r+=d.attrs.colspan)}for(var c=0;c<o.childCount;c++){var u=o.child(c);r+=u.attrs.colspan,u.attrs.rowspan>1&&(n=!0)}-1==t?t=r:t!=r&&(t=Math.max(t,r))}return t}(e),n=e.childCount,i=[],o=0,r=null,s=[],a=0,l=t*n;a<l;a++)i[a]=0;for(var d=0,c=0;d<n;d++){var u=e.child(d);c++;for(var p=0;;p++){for(;o<i.length&&0!=i[o];)o++;if(p==u.childCount)break;for(var h=u.child(p),f=h.attrs,v=f.colspan,m=f.rowspan,g=f.colwidth,y=0;y<m;y++){if(y+d>=n){(r||(r=[])).push({type:"overlong_rowspan",pos:c,n:m-y});break}for(var b=o+y*t,k=0;k<v;k++){0==i[b+k]?i[b+k]=c:(r||(r=[])).push({type:"collision",row:d,pos:c,n:v-k});var w=g&&g[k];if(w){var S=(b+k)%t*2,x=s[S];null==x||x!=w&&1==s[S+1]?(s[S]=w,s[S+1]=1):x==w&&s[S+1]++}}}o+=v,c+=h.nodeSize}for(var C=(d+1)*t,$=0;o<C;)0==i[o++]&&$++;$&&(r||(r=[])).push({type:"missing",row:d,n:$}),c++}for(var I=new fa(t,n,i,r),O=!1,D=0;!O&&D<s.length;D+=2)null!=s[D]&&s[D+1]<n&&(O=!0);return O&&function(e,t,n){e.problems||(e.problems=[]);for(var i=0,o={};i<e.map.length;i++){var r=e.map[i];if(!o[r]){o[r]=!0;for(var s=n.nodeAt(r),a=null,l=0;l<s.attrs.colspan;l++){var d=t[(i+l)%e.width*2];null==d||s.attrs.colwidth&&s.attrs.colwidth[l]==d||((a||(a=va(s.attrs)))[l]=d)}a&&e.problems.unshift({type:"colwidth mismatch",pos:r,colwidth:a})}}}(I,s,e),I}(e))};var ka=new Mt("selectingCells");function wa(e){for(var t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}function Sa(e){for(var t=e.selection.$head,n=t.depth;n>0;n--)if("row"==t.node(n).type.spec.tableRole)return!0;return!1}function xa(e){var t=e.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:wa(t.$head)||function(e){for(var t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){var i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return e.doc.resolve(n)}for(var o=e.nodeBefore,r=e.pos;o;o=o.lastChild,r--){var s=o.type.spec.tableRole;if("cell"==s||"header_cell"==s)return e.doc.resolve(r-o.nodeSize)}}(t.$head)}function Ca(e){return"row"==e.parent.type.spec.tableRole&&e.nodeAfter}function $a(e){return e.node(0).resolve(e.pos+e.nodeAfter.nodeSize)}function Ia(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function Oa(e){return fa.get(e.node(-1)).findCell(e.pos-e.start(-1))}function Da(e){return fa.get(e.node(-1)).colCount(e.pos-e.start(-1))}function Ma(e,t,n){var i=e.start(-1),o=fa.get(e.node(-1)).nextCell(e.pos-i,t,n);return null==o?null:e.node(0).resolve(i+o)}function Ta(e,t,n){var i={};for(var o in e)i[o]=e[o];return i[t]=n,i}function Ra(e,t,n){void 0===n&&(n=1);var i=Ta(e,"colspan",e.colspan-n);return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(t,n),i.colwidth.some((function(e){return e>0}))||(i.colwidth=null)),i}function Ba(e,t,n){void 0===n&&(n=1);var i=Ta(e,"colspan",e.colspan+n);if(i.colwidth){i.colwidth=i.colwidth.slice();for(var o=0;o<n;o++)i.colwidth.splice(t,0,0)}return i}function Na(e,t,n){for(var i=ba(t.type.schema).header_cell,o=0;o<e.height;o++)if(t.nodeAt(e.map[n+o*e.width]).type!=i)return!1;return!0}var Pa=function(e){function t(t,n){void 0===n&&(n=t);var i=t.node(-1),o=fa.get(i),r=t.start(-1),s=o.rectBetween(t.pos-r,n.pos-r),a=t.node(0),l=o.cellsInRect(s).filter((function(e){return e!=n.pos-r}));l.unshift(n.pos-r);var d=l.map((function(e){var t=i.nodeAt(e),n=e+r+1;return new lt(a.resolve(n),a.resolve(n+t.content.size))}));e.call(this,d[0].$from,d[0].$to,d),this.$anchorCell=t,this.$headCell=n}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(e,n){var i=e.resolve(n.map(this.$anchorCell.pos)),o=e.resolve(n.map(this.$headCell.pos));if(Ca(i)&&Ca(o)&&Ia(i,o)){var r=this.$anchorCell.node(-1)!=i.node(-1);return r&&this.isRowSelection()?t.rowSelection(i,o):r&&this.isColSelection()?t.colSelection(i,o):new t(i,o)}return dt.between(i,o)},t.prototype.content=function(){for(var e=this.$anchorCell.node(-1),t=fa.get(e),n=this.$anchorCell.start(-1),i=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),o={},r=[],s=i.top;s<i.bottom;s++){for(var l=[],d=s*t.width+i.left,c=i.left;c<i.right;c++,d++){var u=t.map[d];if(!o[u]){o[u]=!0;var p=t.findCell(u),h=e.nodeAt(u),v=i.left-p.left,m=p.right-i.right;if(v>0||m>0){var g=h.attrs;v>0&&(g=Ra(g,0,v)),m>0&&(g=Ra(g,g.colspan-m,m)),h=p.left<i.left?h.type.createAndFill(g):h.type.create(g,h.content)}if(p.top<i.top||p.bottom>i.bottom){var y=Ta(h.attrs,"rowspan",Math.min(p.bottom,i.bottom)-Math.max(p.top,i.top));h=p.top<i.top?h.type.createAndFill(y):h.type.create(y,h.content)}l.push(h)}}r.push(e.child(s).copy(a.from(l)))}var b=this.isColSelection()&&this.isRowSelection()?e:r;return new f(a.from(b),1,1)},t.prototype.replace=function(t,n){void 0===n&&(n=f.empty);for(var i=t.steps.length,o=this.ranges,r=0;r<o.length;r++){var s=o[r],a=s.$from,l=s.$to,d=t.mapping.slice(i);t.replace(d.map(a.pos),d.map(l.pos),r?f.empty:n)}var c=e.findFrom(t.doc.resolve(t.mapping.slice(i).map(this.to)),-1);c&&t.setSelection(c)},t.prototype.replaceWith=function(e,t){this.replace(e,new f(a.from(t),0,0))},t.prototype.forEachCell=function(e){for(var t=this.$anchorCell.node(-1),n=fa.get(t),i=this.$anchorCell.start(-1),o=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i)),r=0;r<o.length;r++)e(t.nodeAt(o[r]),i+o[r])},t.prototype.isColSelection=function(){var e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;var n=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,i)==this.$headCell.node(-1).childCount},t.colSelection=function(e,n){void 0===n&&(n=e);var i=fa.get(e.node(-1)),o=e.start(-1),r=i.findCell(e.pos-o),s=i.findCell(n.pos-o),a=e.node(0);return r.top<=s.top?(r.top>0&&(e=a.resolve(o+i.map[r.left])),s.bottom<i.height&&(n=a.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=a.resolve(o+i.map[s.left])),r.bottom<i.height&&(e=a.resolve(o+i.map[i.width*(i.height-1)+r.right-1]))),new t(e,n)},t.prototype.isRowSelection=function(){var e=fa.get(this.$anchorCell.node(-1)),t=this.$anchorCell.start(-1),n=e.colCount(this.$anchorCell.pos-t),i=e.colCount(this.$headCell.pos-t);if(Math.min(n,i)>0)return!1;var o=n+this.$anchorCell.nodeAfter.attrs.colspan,r=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(o,r)==e.width},t.prototype.eq=function(e){return e instanceof t&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos},t.rowSelection=function(e,n){void 0===n&&(n=e);var i=fa.get(e.node(-1)),o=e.start(-1),r=i.findCell(e.pos-o),s=i.findCell(n.pos-o),a=e.node(0);return r.left<=s.left?(r.left>0&&(e=a.resolve(o+i.map[r.top*i.width])),s.right<i.width&&(n=a.resolve(o+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=a.resolve(o+i.map[s.top*i.width])),r.right<i.width&&(e=a.resolve(o+i.map[i.width*(r.top+1)-1]))),new t(e,n)},t.prototype.toJSON=function(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}},t.fromJSON=function(e,n){return new t(e.resolve(n.anchor),e.resolve(n.head))},t.create=function(e,n,i){return void 0===i&&(i=n),new t(e.resolve(n),e.resolve(i))},t.prototype.getBookmark=function(){return new Ea(this.$anchorCell.pos,this.$headCell.pos)},t}(st);Pa.prototype.visible=!1,st.jsonID("cell",Pa);var Ea=function(e,t){this.anchor=e,this.head=t};function Va(e){if(!(e.selection instanceof Pa))return null;var t=[];return e.selection.forEachCell((function(e,n){t.push(zs.node(n,n+e.nodeSize,{class:"selectedCell"}))})),Hs.create(e.doc,t)}function La(e){if(!e.size)return null;for(var t=e.content,n=e.openStart,i=e.openEnd;1==t.childCount&&(n>0&&i>0||"table"==t.firstChild.type.spec.tableRole);)n--,i--,t=t.firstChild.content;var o=t.firstChild,r=o.type.spec.tableRole,s=o.type.schema,l=[];if("row"==r)for(var d=0;d<t.childCount;d++){var c=t.child(d).content,u=d?0:Math.max(0,n-1),p=d<t.childCount-1?0:Math.max(0,i-1);(u||p)&&(c=Aa(ba(s).row,new f(c,u,p)).content),l.push(c)}else{if("cell"!=r&&"header_cell"!=r)return null;l.push(n||i?Aa(ba(s).row,new f(t,n,i)).content:t)}return function(e,t){for(var n=[],i=0;i<t.length;i++)for(var o=t[i],r=o.childCount-1;r>=0;r--)for(var s=o.child(r).attrs,l=s.rowspan,d=s.colspan,c=i;c<i+l;c++)n[c]=(n[c]||0)+d;for(var u=0,p=0;p<n.length;p++)u=Math.max(u,n[p]);for(var h=0;h<n.length;h++)if(h>=t.length&&t.push(a.empty),n[h]<u){for(var f=ba(e).cell.createAndFill(),v=[],m=n[h];m<u;m++)v.push(f);t[h]=t[h].append(a.from(v))}return{height:t.length,width:u,rows:t}}(s,l)}function Aa(e,t){var n=e.createAndFill();return new Ie(n).replace(0,n.content.size,t).doc}function Fa(e,t,n){var i=e.width,o=e.height,r=e.rows;if(i!=t){for(var s=[],l=[],d=0;d<r.length;d++){for(var c=r[d],u=[],p=s[d]||0,h=0;p<t;h++){var f=c.child(h%c.childCount);p+f.attrs.colspan>t&&(f=f.type.create(Ra(f.attrs,f.attrs.colspan,p+f.attrs.colspan-t),f.content)),u.push(f),p+=f.attrs.colspan;for(var v=1;v<f.attrs.rowspan;v++)s[d+v]=(s[d+v]||0)+f.attrs.colspan}l.push(a.from(u))}r=l,i=t}if(o!=n){for(var m=[],g=0,y=0;g<n;g++,y++){for(var b=[],k=r[y%o],w=0;w<k.childCount;w++){var S=k.child(w);g+S.attrs.rowspan>n&&(S=S.type.create(Ta(S.attrs,"rowspan",Math.max(1,n-S.attrs.rowspan)),S.content)),b.push(S)}m.push(a.from(b))}r=m,o=n}return{width:i,height:o,rows:r}}function za(e,t,n,i,o,r,s,a){if(0==s||s==t.height)return!1;for(var l=!1,d=o;d<r;d++){var c=s*t.width+d,u=t.map[c];if(t.map[c-t.width]==u){l=!0;var p=n.nodeAt(u),h=t.findCell(u),f=h.top,v=h.left;e.setNodeMarkup(e.mapping.slice(a).map(u+i),null,Ta(p.attrs,"rowspan",s-f)),e.insert(e.mapping.slice(a).map(t.positionAt(s,v,n)),p.type.createAndFill(Ta(p.attrs,"rowspan",f+p.attrs.rowspan-s))),d+=p.attrs.colspan-1}}return l}function ja(e,t,n,i,o,r,s,a){if(0==s||s==t.width)return!1;for(var l=!1,d=o;d<r;d++){var c=d*t.width+s,u=t.map[c];if(t.map[c-1]==u){l=!0;var p=n.nodeAt(u),h=t.colCount(u),f=e.mapping.slice(a).map(u+i);e.setNodeMarkup(f,null,Ra(p.attrs,s-h,p.attrs.colspan-(s-h))),e.insert(f+p.nodeSize,p.type.createAndFill(Ra(p.attrs,0,s-h))),d+=p.attrs.rowspan-1}}return l}function Ka(e,t,n,i,o){var r=n?e.doc.nodeAt(n-1):e.doc,s=fa.get(r),l=i.top,d=i.left,c=d+o.width,u=l+o.height,p=e.tr,h=0;function v(){r=n?p.doc.nodeAt(n-1):p.doc,s=fa.get(r),h=p.mapping.maps.length}(function(e,t,n,i,o,r,s){var l,d,c=ba(e.doc.type.schema);if(o>t.width)for(var u=0,p=0;u<t.height;u++){var h=n.child(u);p+=h.nodeSize;var f,v=[];f=null==h.lastChild||h.lastChild.type==c.cell?l||(l=c.cell.createAndFill()):d||(d=c.header_cell.createAndFill());for(var m=t.width;m<o;m++)v.push(f);e.insert(e.mapping.slice(s).map(p-1+i),v)}if(r>t.height){for(var g=[],y=0,b=(t.height-1)*t.width;y<Math.max(t.width,o);y++){var k=!(y>=t.width)&&n.nodeAt(t.map[b+y]).type==c.header_cell;g.push(k?d||(d=c.header_cell.createAndFill()):l||(l=c.cell.createAndFill()))}for(var w=c.row.create(null,a.from(g)),S=[],x=t.height;x<r;x++)S.push(w);e.insert(e.mapping.slice(s).map(i+n.nodeSize-2),S)}return!(!l&&!d)})(p,s,r,n,c,u,h)&&v(),za(p,s,r,n,d,c,l,h)&&v(),za(p,s,r,n,d,c,u,h)&&v(),ja(p,s,r,n,l,u,d,h)&&v(),ja(p,s,r,n,l,u,c,h)&&v();for(var m=l;m<u;m++){var g=s.positionAt(m,d,r),y=s.positionAt(m,c,r);p.replace(p.mapping.slice(h).map(g+n),p.mapping.slice(h).map(y+n),new f(o.rows[m-l],0,0))}v(),p.setSelection(new Pa(p.doc.resolve(n+s.positionAt(l,d,r)),p.doc.resolve(n+s.positionAt(u-1,c-1,r)))),t(p)}Ea.prototype.map=function(e){return new Ea(e.map(this.anchor),e.map(this.head))},Ea.prototype.resolve=function(e){var t=e.resolve(this.anchor),n=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==n.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&Ia(t,n)?new Pa(t,n):st.near(n,1)};var _a=mo({ArrowLeft:Wa("horiz",-1),ArrowRight:Wa("horiz",1),ArrowUp:Wa("vert",-1),ArrowDown:Wa("vert",1),"Shift-ArrowLeft":Ua("horiz",-1),"Shift-ArrowRight":Ua("horiz",1),"Shift-ArrowUp":Ua("vert",-1),"Shift-ArrowDown":Ua("vert",1),Backspace:qa,"Mod-Backspace":qa,Delete:qa,"Mod-Delete":qa});function Ha(e,t,n){return!n.eq(e.selection)&&(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Wa(e,t){return function(n,i,o){var r=n.selection;if(r instanceof Pa)return Ha(n,i,st.near(r.$headCell,t));if("horiz"!=e&&!r.empty)return!1;var s=Ya(o,e,t);if(null==s)return!1;if("horiz"==e)return Ha(n,i,st.near(n.doc.resolve(r.head+t),t));var a,l=n.doc.resolve(s),d=Ma(l,e,t);return a=d?st.near(d,1):t<0?st.near(n.doc.resolve(l.before(-1)),-1):st.near(n.doc.resolve(l.after(-1)),1),Ha(n,i,a)}}function Ua(e,t){return function(n,i,o){var r=n.selection;if(!(r instanceof Pa)){var s=Ya(o,e,t);if(null==s)return!1;r=new Pa(n.doc.resolve(s))}var a=Ma(r.$headCell,e,t);return!!a&&Ha(n,i,new Pa(r.$anchorCell,a))}}function qa(e,t){var n=e.selection;if(!(n instanceof Pa))return!1;if(t){var i=e.tr,o=ba(e.schema).cell.createAndFill().content;n.forEachCell((function(e,t){e.content.eq(o)||i.replace(i.mapping.map(t+1),i.mapping.map(t+e.nodeSize-1),new f(o,0,0))})),i.docChanged&&t(i)}return!0}function Ga(e,t){var n=wa(e.state.doc.resolve(t));return!!n&&(e.dispatch(e.state.tr.setSelection(new Pa(n))),!0)}function Ja(e,t,n){if(!Sa(e.state))return!1;var i=La(n),o=e.state.selection;if(o instanceof Pa){i||(i={width:1,height:1,rows:[a.from(Aa(ba(e.state.schema).cell,n))]});var r=o.$anchorCell.node(-1),s=o.$anchorCell.start(-1),l=fa.get(r).rectBetween(o.$anchorCell.pos-s,o.$headCell.pos-s);return i=Fa(i,l.right-l.left,l.bottom-l.top),Ka(e.state,e.dispatch,s,l,i),!0}if(i){var d=xa(e.state),c=d.start(-1);return Ka(e.state,e.dispatch,c,fa.get(d.node(-1)).findCell(d.pos-c),i),!0}return!1}function Xa(e,t){if(!t.ctrlKey&&!t.metaKey){var n,i=Za(e,t.target);if(t.shiftKey&&e.state.selection instanceof Pa)o(e.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&i&&null!=(n=wa(e.state.selection.$anchor))&&Qa(e,t).pos!=n.pos)o(n,t),t.preventDefault();else if(!i)return;e.root.addEventListener("mouseup",r),e.root.addEventListener("dragstart",r),e.root.addEventListener("mousemove",s)}function o(t,n){var i=Qa(e,n),o=null==ka.getState(e.state);if(!i||!Ia(t,i)){if(!o)return;i=t}var r=new Pa(t,i);if(o||!e.state.selection.eq(r)){var s=e.state.tr.setSelection(r);o&&s.setMeta(ka,t.pos),e.dispatch(s)}}function r(){e.root.removeEventListener("mouseup",r),e.root.removeEventListener("dragstart",r),e.root.removeEventListener("mousemove",s),null!=ka.getState(e.state)&&e.dispatch(e.state.tr.setMeta(ka,-1))}function s(n){var s,a=ka.getState(e.state);if(null!=a)s=e.state.doc.resolve(a);else if(Za(e,n.target)!=i&&!(s=Qa(e,t)))return r();s&&o(s,n)}}function Ya(e,t,n){if(!(e.state.selection instanceof dt))return null;for(var i=e.state.selection.$head,o=i.depth-1;o>=0;o--){var r=i.node(o);if((n<0?i.index(o):i.indexAfter(o))!=(n<0?0:r.childCount))return null;if("cell"==r.type.spec.tableRole||"header_cell"==r.type.spec.tableRole){var s=i.before(o),a="vert"==t?n>0?"down":"up":n>0?"right":"left";return e.endOfTextblock(a)?s:null}}return null}function Za(e,t){for(;t&&t!=e.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function Qa(e,t){var n=e.posAtCoords({left:t.clientX,top:t.clientY});return n&&n?wa(e.state.doc.resolve(n.pos)):null}var el=new Mt("fix-tables");function tl(e,t,n,i){var o=e.childCount,r=t.childCount;e:for(var s=0,a=0;s<r;s++){for(var l=t.child(s),d=a,c=Math.min(o,s+3);d<c;d++)if(e.child(d)==l){a=d+1,n+=l.nodeSize;continue e}i(l,n),a<o&&e.child(a).sameMarkup(l)?tl(e.child(a),l,n+1,i):l.nodesBetween(0,l.content.size,i,n+1),n+=l.nodeSize}}function nl(e,t){var n,i=function(t,i){"table"==t.type.spec.tableRole&&(n=function(e,t,n,i){var o=fa.get(t);if(!o.problems)return i;i||(i=e.tr);for(var r,s,a=[],l=0;l<o.height;l++)a.push(0);for(var d=0;d<o.problems.length;d++){var c=o.problems[d];if("collision"==c.type){for(var u=t.nodeAt(c.pos),p=0;p<u.attrs.rowspan;p++)a[c.row+p]+=c.n;i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,Ra(u.attrs,u.attrs.colspan-c.n,c.n))}else if("missing"==c.type)a[c.row]+=c.n;else if("overlong_rowspan"==c.type){var h=t.nodeAt(c.pos);i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,Ta(h.attrs,"rowspan",h.attrs.rowspan-c.n))}else if("colwidth mismatch"==c.type){var f=t.nodeAt(c.pos);i.setNodeMarkup(i.mapping.map(n+1+c.pos),null,Ta(f.attrs,"colwidth",c.colwidth))}}for(var v=0;v<a.length;v++)a[v]&&(null==r&&(r=v),s=v);for(var m=0,g=n+1;m<o.height;m++){var y=t.child(m),b=g+y.nodeSize,k=a[m];if(k>0){var w="cell";y.firstChild&&(w=y.firstChild.type.spec.tableRole);for(var S=[],x=0;x<k;x++)S.push(ba(e.schema)[w].createAndFill());var C=0!=m&&r!=m-1||s!=m?b-1:g+1;i.insert(i.mapping.map(C),S)}g=b}return i.setMeta(el,{fixTables:!0})}(e,t,i,n))};return t?t.doc!=e.doc&&tl(t.doc,e.doc,0,i):e.doc.descendants(i),n}function il(e){var t,n=e.selection,i=xa(e),o=i.node(-1),r=i.start(-1),s=fa.get(o);return(t=n instanceof Pa?s.rectBetween(n.$anchorCell.pos-r,n.$headCell.pos-r):s.findCell(i.pos-r)).tableStart=r,t.map=s,t.table=o,t}function ol(e,t,n){var i=t.map,o=t.tableStart,r=t.table,s=n>0?-1:0;Na(i,r,n+s)&&(s=0==n||n==i.width?null:0);for(var a=0;a<i.height;a++){var l=a*i.width+n;if(n>0&&n<i.width&&i.map[l-1]==i.map[l]){var d=i.map[l],c=r.nodeAt(d);e.setNodeMarkup(e.mapping.map(o+d),null,Ba(c.attrs,n-i.colCount(d))),a+=c.attrs.rowspan-1}else{var u=null==s?ba(r.type.schema).cell:r.nodeAt(i.map[l+s]).type,p=i.positionAt(a,n,r);e.insert(e.mapping.map(o+p),u.createAndFill())}}return e}function rl(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(ol(e.tr,n,n.left))}return!0}function sl(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(ol(e.tr,n,n.right))}return!0}function al(e,t,n){for(var i=t.map,o=t.table,r=t.tableStart,s=e.mapping.maps.length,a=0;a<i.height;){var l=a*i.width+n,d=i.map[l],c=o.nodeAt(d);if(n>0&&i.map[l-1]==d||n<i.width-1&&i.map[l+1]==d)e.setNodeMarkup(e.mapping.slice(s).map(r+d),null,Ra(c.attrs,n-i.colCount(d)));else{var u=e.mapping.slice(s).map(r+d);e.delete(u,u+c.nodeSize)}a+=c.attrs.rowspan}}function ll(e,t){if(!Sa(e))return!1;if(t){var n=il(e),i=e.tr;if(0==n.left&&n.right==n.map.width)return!1;for(var o=n.right-1;al(i,n,o),o!=n.left;o--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=fa.get(n.table);t(i)}return!0}function dl(e,t,n){for(var i=ba(t.type.schema).header_cell,o=0;o<e.width;o++)if(t.nodeAt(e.map[o+n*e.width]).type!=i)return!1;return!0}function cl(e,t,n){for(var i=t.map,o=t.tableStart,r=t.table,s=o,a=0;a<n;a++)s+=r.child(a).nodeSize;var l=[],d=n>0?-1:0;dl(i,r,n+d)&&(d=0==n||n==i.height?null:0);for(var c=0,u=i.width*n;c<i.width;c++,u++)if(n>0&&n<i.height&&i.map[u]==i.map[u-i.width]){var p=i.map[u],h=r.nodeAt(p).attrs;e.setNodeMarkup(o+p,null,Ta(h,"rowspan",h.rowspan+1)),c+=h.colspan-1}else{var f=null==d?ba(r.type.schema).cell:r.nodeAt(i.map[u+d*i.width]).type;l.push(f.createAndFill())}return e.insert(s,ba(r.type.schema).row.create(null,l)),e}function ul(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(cl(e.tr,n,n.top))}return!0}function pl(e,t){if(!Sa(e))return!1;if(t){var n=il(e);t(cl(e.tr,n,n.bottom))}return!0}function hl(e,t,n){for(var i=t.map,o=t.table,r=t.tableStart,s=0,a=0;a<n;a++)s+=o.child(a).nodeSize;var l=s+o.child(n).nodeSize,d=e.mapping.maps.length;e.delete(s+r,l+r);for(var c=0,u=n*i.width;c<i.width;c++,u++){var p=i.map[u];if(n>0&&p==i.map[u-i.width]){var h=o.nodeAt(p).attrs;e.setNodeMarkup(e.mapping.slice(d).map(p+r),null,Ta(h,"rowspan",h.rowspan-1)),c+=h.colspan-1}else if(n<i.width&&p==i.map[u+i.width]){var f=o.nodeAt(p),v=f.type.create(Ta(f.attrs,"rowspan",f.attrs.rowspan-1),f.content),m=i.positionAt(n+1,c,o);e.insert(e.mapping.slice(d).map(r+m),v),c+=f.attrs.colspan-1}}}function fl(e,t){if(!Sa(e))return!1;if(t){var n=il(e),i=e.tr;if(0==n.top&&n.bottom==n.map.height)return!1;for(var o=n.bottom-1;hl(i,n,o),o!=n.top;o--)n.table=n.tableStart?i.doc.nodeAt(n.tableStart-1):i.doc,n.map=fa.get(n.table);t(i)}return!0}function vl(e){var t=e.content;return 1==t.childCount&&t.firstChild.isTextblock&&0==t.firstChild.childCount}function ml(e,t){var n=e.selection;if(!(n instanceof Pa)||n.$anchorCell.pos==n.$headCell.pos)return!1;var i=il(e),o=i.map;if(function(e,t){for(var n=e.width,i=e.height,o=e.map,r=t.top*n+t.left,s=r,a=(t.bottom-1)*n+t.left,l=r+(t.right-t.left-1),d=t.top;d<t.bottom;d++){if(t.left>0&&o[s]==o[s-1]||t.right<n&&o[l]==o[l+1])return!0;s+=n,l+=n}for(var c=t.left;c<t.right;c++){if(t.top>0&&o[r]==o[r-n]||t.bottom<i&&o[a]==o[a+n])return!0;r++,a++}return!1}(o,i))return!1;if(t){for(var r,s,l=e.tr,d={},c=a.empty,u=i.top;u<i.bottom;u++)for(var p=i.left;p<i.right;p++){var h=o.map[u*o.width+p],f=i.table.nodeAt(h);if(!d[h])if(d[h]=!0,null==r)r=h,s=f;else{vl(f)||(c=c.append(f.content));var v=l.mapping.map(h+i.tableStart);l.delete(v,v+f.nodeSize)}}if(l.setNodeMarkup(r+i.tableStart,null,Ta(Ba(s.attrs,s.attrs.colspan,i.right-i.left-s.attrs.colspan),"rowspan",i.bottom-i.top)),c.size){var m=r+1+s.content.size,g=vl(s)?r+1:m;l.replaceWith(g+i.tableStart,m+i.tableStart,c)}l.setSelection(new Pa(l.doc.resolve(r+i.tableStart))),t(l)}return!0}function gl(e,t){var n=ba(e.schema);return yl((function(e){var t=e.node;return n[t.type.spec.tableRole]}))(e,t)}function yl(e){return function(t,n){var i,o,r=t.selection;if(r instanceof Pa){if(r.$anchorCell.pos!=r.$headCell.pos)return!1;i=r.$anchorCell.nodeAfter,o=r.$anchorCell.pos}else{if(!(i=function(e){for(var t=e.depth;t>0;t--){var n=e.node(t).type.spec.tableRole;if("cell"===n||"header_cell"===n)return e.node(t)}return null}(r.$from)))return!1;o=wa(r.$from).pos}if(1==i.attrs.colspan&&1==i.attrs.rowspan)return!1;if(n){var s=i.attrs,a=[],l=s.colwidth;s.rowspan>1&&(s=Ta(s,"rowspan",1)),s.colspan>1&&(s=Ta(s,"colspan",1));for(var d,c=il(t),u=t.tr,p=0;p<c.right-c.left;p++)a.push(l?Ta(s,"colwidth",l&&l[p]?[l[p]]:null):s);for(var h=c.top;h<c.bottom;h++){var f=c.map.positionAt(h,c.left,c.table);h==c.top&&(f+=i.nodeSize);for(var v=c.left,m=0;v<c.right;v++,m++)v==c.left&&h==c.top||u.insert(d=u.mapping.map(f+c.tableStart,1),e({node:i,row:h,col:v}).createAndFill(a[m]))}u.setNodeMarkup(o,e({node:i,row:c.top,col:c.left}),a[0]),r instanceof Pa&&u.setSelection(new Pa(u.doc.resolve(r.$anchorCell.pos),d&&u.doc.resolve(d))),n(u)}return!0}}function bl(e,t){return function(n,i){if(!Sa(n))return!1;var o=xa(n);if(o.nodeAfter.attrs[e]===t)return!1;if(i){var r=n.tr;n.selection instanceof Pa?n.selection.forEachCell((function(n,i){n.attrs[e]!==t&&r.setNodeMarkup(i,null,Ta(n.attrs,e,t))})):r.setNodeMarkup(o.pos,null,Ta(o.nodeAfter.attrs,e,t)),i(r)}return!0}}function kl(e,t,n){for(var i=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1}),o=0;o<i.length;o++){var r=t.table.nodeAt(i[o]);if(r&&r.type!==n.header_cell)return!1}return!0}function wl(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,n){if(!Sa(t))return!1;if(n){for(var i=ba(t.schema),o=il(t),r=t.tr,s=o.map.cellsInRect("column"==e?new ha(o.left,0,o.right,o.map.height):"row"==e?new ha(0,o.top,o.map.width,o.bottom):o),a=s.map((function(e){return o.table.nodeAt(e)})),l=0;l<s.length;l++)a[l].type==i.header_cell&&r.setNodeMarkup(o.tableStart+s[l],i.cell,a[l].attrs);if(0==r.steps.length)for(var d=0;d<s.length;d++)r.setNodeMarkup(o.tableStart+s[d],i.header_cell,a[d].attrs);n(r)}return!0}}(e):function(t,n){if(!Sa(t))return!1;if(n){var i=ba(t.schema),o=il(t),r=t.tr,s=kl("row",o,i),a=kl("column",o,i),l=("column"===e?s:"row"===e&&a)?1:0,d="column"==e?new ha(0,l,1,o.map.height):"row"==e?new ha(l,0,o.map.width,1):o,c="column"==e?a?i.cell:i.header_cell:"row"==e?s?i.cell:i.header_cell:i.cell;o.map.cellsInRect(d).forEach((function(e){var t=e+o.tableStart,n=r.doc.nodeAt(t);n&&r.setNodeMarkup(t,c,n.attrs)})),n(r)}return!0}}var Sl=wl("row",{useDeprecatedLogic:!0}),xl=wl("column",{useDeprecatedLogic:!0}),Cl=wl("cell",{useDeprecatedLogic:!0});function $l(e){return function(t,n){if(!Sa(t))return!1;var i=function(e,t){if(t<0){var n=e.nodeBefore;if(n)return e.pos-n.nodeSize;for(var i=e.index(-1)-1,o=e.before();i>=0;i--){var r=e.node(-1).child(i);if(r.childCount)return o-1-r.lastChild.nodeSize;o-=r.nodeSize}}else{if(e.index()<e.parent.childCount-1)return e.pos+e.nodeAfter.nodeSize;for(var s=e.node(-1),a=e.indexAfter(-1),l=e.after();a<s.childCount;a++){var d=s.child(a);if(d.childCount)return l+1;l+=d.nodeSize}}}(xa(t),e);if(null!=i){if(n){var o=t.doc.resolve(i);n(t.tr.setSelection(dt.between(o,$a(o))).scrollIntoView())}return!0}}}function Il(e,t){for(var n=e.selection.$anchor,i=n.depth;i>0;i--)if("table"==n.node(i).type.spec.tableRole)return t&&t(e.tr.delete(n.before(i),n.after(i)).scrollIntoView()),!0;return!1}var Ol=function(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Dl(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))};function Dl(e,t,n,i,o,r){for(var s=0,a=!0,l=t.firstChild,d=e.firstChild,c=0,u=0;c<d.childCount;c++)for(var p=d.child(c).attrs,h=p.colspan,f=p.colwidth,v=0;v<h;v++,u++){var m=o==u?r:f&&f[v],g=m?m+"px":"";s+=m||i,m||(a=!1),l?(l.style.width!=g&&(l.style.width=g),l=l.nextSibling):t.appendChild(document.createElement("col")).style.width=g}for(;l;){var y=l.nextSibling;l.parentNode.removeChild(l),l=y}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}Ol.prototype.update=function(e){return e.type==this.node.type&&(this.node=e,Dl(e,this.colgroup,this.table,this.cellMinWidth),!0)},Ol.prototype.ignoreMutation=function(e){return"attributes"==e.type&&(e.target==this.table||this.colgroup.contains(e.target))};var Ml=new Mt("tableColumnResizing");function Tl(e){void 0===e&&(e={});var t=e.handleWidth;void 0===t&&(t=5);var n=e.cellMinWidth;void 0===n&&(n=25);var i=e.View;void 0===i&&(i=Ol);var o=e.lastColumnResizable;void 0===o&&(o=!0);var r=new It({key:Ml,state:{init:function(e,t){return this.spec.props.nodeViews[ba(t.schema).table.name]=function(e,t){return new i(e,n,t)},new Rl(-1,!1)},apply:function(e,t){return t.apply(e)}},props:{attributes:function(e){return Ml.getState(e).activeHandle>-1?{class:"resize-cursor"}:null},handleDOMEvents:{mousemove:function(e,n){!function(e,t,n,i,o){var r=Ml.getState(e.state);if(!r.dragging){var s=function(e){for(;e&&"TD"!=e.nodeName&&"TH"!=e.nodeName;)e=e.classList.contains("ProseMirror")?null:e.parentNode;return e}(t.target),a=-1;if(s){var l=s.getBoundingClientRect(),d=l.left,c=l.right;t.clientX-d<=n?a=Bl(e,t,"left"):c-t.clientX<=n&&(a=Bl(e,t,"right"))}if(a!=r.activeHandle){if(!o&&-1!==a){var u=e.state.doc.resolve(a),p=u.node(-1),h=fa.get(p),f=u.start(-1);if(h.colCount(u.pos-f)+u.nodeAfter.attrs.colspan-1==h.width-1)return}Pl(e,a)}}}(e,n,t,0,o)},mouseleave:function(e){!function(e){var t=Ml.getState(e.state);t.activeHandle>-1&&!t.dragging&&Pl(e,-1)}(e)},mousedown:function(e,t){!function(e,t,n){var i=Ml.getState(e.state);if(-1==i.activeHandle||i.dragging)return!1;var o=e.state.doc.nodeAt(i.activeHandle),r=function(e,t,n){var i=n.colspan,o=n.colwidth,r=o&&o[o.length-1];if(r)return r;var s=e.domAtPos(t),a=s.node.childNodes[s.offset].offsetWidth,l=i;if(o)for(var d=0;d<i;d++)o[d]&&(a-=o[d],l--);return a/l}(e,i.activeHandle,o.attrs);function s(t){window.removeEventListener("mouseup",s),window.removeEventListener("mousemove",a);var i=Ml.getState(e.state);i.dragging&&(function(e,t,n){for(var i=e.state.doc.resolve(t),o=i.node(-1),r=fa.get(o),s=i.start(-1),a=r.colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1,l=e.state.tr,d=0;d<r.height;d++){var c=d*r.width+a;if(!d||r.map[c]!=r.map[c-r.width]){var u=r.map[c],p=o.nodeAt(u).attrs,h=1==p.colspan?0:a-r.colCount(u);if(!p.colwidth||p.colwidth[h]!=n){var f=p.colwidth?p.colwidth.slice():El(p.colspan);f[h]=n,l.setNodeMarkup(s+u,null,Ta(p,"colwidth",f))}}}l.docChanged&&e.dispatch(l)}(e,i.activeHandle,Nl(i.dragging,t,n)),e.dispatch(e.state.tr.setMeta(Ml,{setDragging:null})))}function a(t){if(!t.which)return s(t);var i=Ml.getState(e.state),o=Nl(i.dragging,t,n);!function(e,t,n,i){for(var o=e.state.doc.resolve(t),r=o.node(-1),s=o.start(-1),a=fa.get(r).colCount(o.pos-s)+o.nodeAfter.attrs.colspan-1,l=e.domAtPos(o.start(-1)).node;"TABLE"!=l.nodeName;)l=l.parentNode;Dl(r,l.firstChild,l,i,a,n)}(e,i.activeHandle,o,n)}e.dispatch(e.state.tr.setMeta(Ml,{setDragging:{startX:t.clientX,startWidth:r}})),window.addEventListener("mouseup",s),window.addEventListener("mousemove",a),t.preventDefault()}(e,t,n)}},decorations:function(e){var t=Ml.getState(e);if(t.activeHandle>-1)return function(e,t){for(var n=[],i=e.doc.resolve(t),o=i.node(-1),r=fa.get(o),s=i.start(-1),a=r.colCount(i.pos-s)+i.nodeAfter.attrs.colspan,l=0;l<r.height;l++){var d=a+l*r.width-1;if(!(a!=r.width&&r.map[d]==r.map[d+1]||0!=l&&r.map[d-1]==r.map[d-1-r.width])){var c=r.map[d],u=s+c+o.nodeAt(c).nodeSize-1,p=document.createElement("div");p.className="column-resize-handle",n.push(zs.widget(u,p))}}return Hs.create(e.doc,n)}(e,t.activeHandle)},nodeViews:{}}});return r}var Rl=function(e,t){this.activeHandle=e,this.dragging=t};function Bl(e,t,n){var i=e.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return-1;var o=i.pos,r=wa(e.state.doc.resolve(o));if(!r)return-1;if("right"==n)return r.pos;var s=fa.get(r.node(-1)),a=r.start(-1),l=s.map.indexOf(r.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function Nl(e,t,n){var i=t.clientX-e.startX;return Math.max(n,e.startWidth+i)}function Pl(e,t){e.dispatch(e.state.tr.setMeta(Ml,{setHandle:t}))}function El(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}function Vl(e){void 0===e&&(e={});var t=e.allowTableNodeSelection;return void 0===t&&(t=!1),new It({key:ka,state:{init:function(){return null},apply:function(e,t){var n=e.getMeta(ka);if(null!=n)return-1==n?null:n;if(null==t||!e.docChanged)return t;var i=e.mapping.mapResult(t),o=i.deleted,r=i.pos;return o?null:r}},props:{decorations:Va,handleDOMEvents:{mousedown:Xa},createSelectionBetween:function(e){if(null!=ka.getState(e.state))return e.state.selection},handleTripleClick:Ga,handleKeyDown:_a,handlePaste:Ja},appendTransaction:function(e,n,i){return function(e,t,n){var i,o,r=(t||e).selection,s=(t||e).doc;if(r instanceof ut&&(o=r.node.type.spec.tableRole)){if("cell"==o||"header_cell"==o)i=Pa.create(s,r.from);else if("row"==o){var a=s.resolve(r.from+1);i=Pa.rowSelection(a,a)}else if(!n){var l=fa.get(r.node),d=r.from+1,c=d+l.map[l.width*l.height-1];i=Pa.create(s,d+1,c)}}else r instanceof dt&&function(e){var t=e.$from,n=e.$to;if(t.pos==n.pos||t.pos<t.pos-6)return!1;for(var i=t.pos,o=n.pos,r=t.depth;r>=0&&!(t.after(r+1)<t.end(r));r--,i++);for(var s=n.depth;s>=0&&!(n.before(s+1)>n.start(s));s--,o--);return i==o&&/row|table/.test(t.node(r).type.spec.tableRole)}(r)?i=dt.create(s,r.from):r instanceof dt&&function(e){for(var t,n,i=e.$from,o=e.$to,r=i.depth;r>0;r--){var s=i.node(r);if("cell"===s.type.spec.tableRole||"header_cell"===s.type.spec.tableRole){t=s;break}}for(var a=o.depth;a>0;a--){var l=o.node(a);if("cell"===l.type.spec.tableRole||"header_cell"===l.type.spec.tableRole){n=l;break}}return t!==n&&0===o.parentOffset}(r)&&(i=dt.create(s,r.$from.start(),r.$from.end()));return i&&(t||(t=e.tr)).setSelection(i),t}(i,nl(i,n),t)}})}Rl.prototype.apply=function(e){var t=this,n=e.getMeta(Ml);if(n&&null!=n.setHandle)return new Rl(n.setHandle,null);if(n&&void 0!==n.setDragging)return new Rl(t.activeHandle,n.setDragging);if(t.activeHandle>-1&&e.docChanged){var i=e.mapping.map(t.activeHandle,-1);Ca(e.doc.resolve(i))||(i=null),t=new Rl(i,t.dragging)}return t};var Ll=["blockquote",0],Al=["hr"],Fl=["pre",["code",0]],zl=["ol",0],jl=["ul",0],Kl=["li",0],_l=function(e){for(var t,n={},i=e.attributes,o=0;o<i.length;o++)n[(t=i[o]).name]=t.value;return n},Hl=function(e){var t={};return e.forEach((function(e){t[e]={default:null}})),t},Wl=function(){return Hl(["style","class","id"])},Ul=function(e,t){for(var n in e)if(n&&null!==e[n]&&n!==t)return!0;return!1},ql=function(e,t){var n={};for(var i in e)i&&null!==e[i]&&i!==t&&(n[i]=e[i]);return n},Gl=function(e){var t;return(t={})[e]={name:e,inclusive:!0,parseDOM:[{tag:e}],toDOM:function(){return[e,0]}},t},Jl=Kt({link:{attrs:Kt({},Wl(),{href:{default:null},target:{default:null},title:{default:null}}),inclusive:!1,parseDOM:[{tag:"a",getAttrs:_l}],toDOM:function(e){return["a",ql(e.attrs),0]}}},Gl("strong"),Gl("b"),Gl("em"),Gl("i"),Gl("u"),Gl("del"),Gl("sub"),Gl("sup"),Gl("code"),{style:{attrs:Kt({},Wl()),parseDOM:[{tag:"span",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["span",ql(e.attrs),0]:["span",0]}}}),Xl=function(e){var t;return(t={})[e]={default:null,getFromDOM:function(t){return t.getAttribute(e)},setDOMAttr:function(t,n){n[e]=t}},t},Yl=Kt({},Xl("style"),Xl("class"),Xl("id"),Xl("headers")),Zl={doc:{content:"colgroup*"},col:{attrs:Hl(["id","class","style","span"]),parseDOM:[{getAttrs:_l,tag:"col"}],toDOM:function(e){return["col",e.attrs]}},colgroup:{attrs:Hl(["id","class","style","span"]),content:"col*",parseDOM:[{getAttrs:_l,tag:"colgroup"}],toDOM:function(e){return["colgroup",e.attrs,0]}},text:{inline:!0,group:"inline"}},Ql=new oe({nodes:Zl,marks:{}}),ed=ya({tableGroup:"block",cellContent:"block+",cellAttributes:Yl});ed.table_row.attrs=Kt({},ed.table_row.attrs,Hl([Tt,"style","class","id"])),ed.table_row.toDOM=function(e){return["tr",ql(e.attrs),0]},ed.table_row.parseDOM=[{tag:"tr",getAttrs:_l}],ed.table.attrs=Kt({},ed.table.attrs,Hl(["style","class","id",Rt])),ed.table.toDOM=function(e){var t=Ul(e.attrs)?ql(e.attrs,Rt):{},n=null;if(e.attrs[Rt]&&!function(e){for(var t=!1,n=e.child(0),i=0;i<n.childCount;i++)if(n.child(i).attrs.colwidth){t=!0;break}return t}(e)){var i=At(Vt(e.attrs[Rt]),Ql,{preserveWhitespace:!1}),o=Lt(i).firstChild;if(o){var r=Array.from(o.children).map((function(e){return["col",_l(e)]}));n=["colgroup",_l(o)].concat(r)}}return n?["table",t,n,["tbody",0]]:["table",t,["tbody",0]]},ed.table.parseDOM=[{tag:"table",getAttrs:function(e){var t=_l(e),n=Array.from(e.childNodes).find((function(e){return"COLGROUP"===e.nodeName}));return n&&(t[Rt]=n.outerHTML),t}}];var td=Kt({doc:{content:"block+"},paragraph:{content:"inline*",group:"block",attrs:Kt({},Wl()),parseDOM:[{tag:"p",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["p",ql(e.attrs),0]:["p",0]}},div:{content:"block*",group:"block",attrs:Kt({},Wl()),parseDOM:[{tag:"div",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["div",ql(e.attrs),0]:["div",0]}},blockquote:{attrs:Kt({},Wl()),content:"block+",group:"block",defining:!0,parseDOM:[{tag:"blockquote",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["blockquote",ql(e.attrs),0]:Ll}},horizontal_rule:{group:"block",parseDOM:[{tag:"hr"}],toDOM:function(){return Al}},heading:{attrs:Kt({},Wl(),{level:{default:1}}),content:"inline*",group:"block",defining:!0,parseDOM:[{tag:"h1",getAttrs:function(e){return Kt({},_l(e),{level:1})}},{tag:"h2",getAttrs:function(e){return Kt({},_l(e),{level:2})}},{tag:"h3",getAttrs:function(e){return Kt({},_l(e),{level:3})}},{tag:"h4",getAttrs:function(e){return Kt({},_l(e),{level:4})}},{tag:"h5",getAttrs:function(e){return Kt({},_l(e),{level:5})}},{tag:"h6",getAttrs:function(e){return Kt({},_l(e),{level:6})}}],toDOM:function(e){return Ul(e.attrs,"level")?["h"+e.attrs.level,ql(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 Fl}},text:{inline:!0,group:"inline"},image:{inline:!0,attrs:Kt({src:{default:null},alt:{default:null},title:{default:null},width:{default:null},height:{default:null}},Wl()),group:"inline",draggable:!0,parseDOM:[{tag:"img",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["img",ql(e.attrs)]:["img"]}},hard_break:{inline:!0,attrs:Kt({},Wl()),group:"inline",selectable:!1,parseDOM:[{tag:"br",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["br",ql(e.attrs)]:["br"]}},ordered_list:{content:"list_item+",group:"block",attrs:Kt({},Wl(),{type:{default:null},order:{default:1}}),parseDOM:[{tag:"ol",getAttrs:function(e){return Kt({},_l(e),{order:e.hasAttribute("start")?parseInt(e.getAttribute("start")||"1",10):1})}}],toDOM:function(e){return 1===e.attrs.order?Ul(e.attrs,"order")?["ol",ql(e.attrs,"order"),0]:zl:["ol",Kt({},ql(e.attrs,"order"),{start:e.attrs.order}),0]}},bullet_list:{content:"list_item+",group:"block",attrs:Kt({},Wl()),parseDOM:[{tag:"ul",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["ul",ql(e.attrs),0]:jl}},list_item:{content:"(paragraph | heading) block*",attrs:Kt({},Wl()),parseDOM:[{tag:"li",getAttrs:_l}],toDOM:function(e){return Ul(e.attrs)?["li",ql(e.attrs),0]:Kl},defining:!0}},ed),nd=200,id=function(){};id.prototype.append=function(e){return e.length?(e=id.from(e),!this.length&&e||e.length<nd&&this.leafAppend(e)||this.length<nd&&e.leafPrepend(this)||this.appendInner(e)):this},id.prototype.prepend=function(e){return e.length?id.from(e).append(this):this},id.prototype.appendInner=function(e){return new rd(this,e)},id.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?id.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},id.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},id.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},id.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var i=[];return this.forEach((function(t,n){return i.push(e(t,n))}),t,n),i},id.from=function(e){return e instanceof id?e:e&&e.length?new od(e):id.empty};var od=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,i){for(var o=t;o<n;o++)if(!1===e(this.values[o],i+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,i){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],i+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=nd)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=nd)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(id);id.empty=new od([]);var rd=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,i){var o=this.left.length;return!(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),i))&&!(n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,i+o))&&void 0},t.prototype.forEachInvertedInner=function(e,t,n,i){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,i+o))&&!(n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),n,i))&&void 0},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(id);const sd=id;var ad=function(e,t){this.items=e,this.eventCount=t};ad.prototype.popEvent=function(e,t){var n=this;if(0==this.eventCount)return null;for(var i,o,r=this.items.length;;r--)if(this.items.get(r-1).selection){--r;break}t&&(i=this.remapping(r,this.items.length),o=i.maps.length);var s,a,l=e.tr,d=[],c=[];return this.items.forEach((function(e,t){if(!e.step)return i||(i=n.remapping(r,t+1),o=i.maps.length),o--,void c.push(e);if(i){c.push(new ld(e.map));var u,p=e.step.map(i.slice(o));p&&l.maybeStep(p).doc&&(u=l.mapping.maps[l.mapping.maps.length-1],d.push(new ld(u,null,null,d.length+c.length))),o--,u&&i.appendMap(u,o)}else l.maybeStep(e.step);return e.selection?(s=i?e.selection.map(i.slice(o)):e.selection,a=new ad(n.items.slice(0,r).append(c.reverse().concat(d)),n.eventCount-1),!1):void 0}),this.items.length,0),{remaining:a,transform:l,selection:s}},ad.prototype.addTransform=function(e,t,n,i){for(var o=[],r=this.eventCount,s=this.items,a=!i&&s.length?s.get(s.length-1):null,l=0;l<e.steps.length;l++){var d,c=e.steps[l].invert(e.docs[l]),u=new ld(e.mapping.maps[l],c,t);(d=a&&a.merge(u))&&(u=d,l?o.pop():s=s.slice(0,s.length-1)),o.push(u),t&&(r++,t=null),i||(a=u)}var p,h,f,v=r-n.depth;return v>cd&&(h=v,(p=s).forEach((function(e,t){if(e.selection&&0==h--)return f=t,!1})),s=p.slice(f),r-=v),new ad(s.append(o),r)},ad.prototype.remapping=function(e,t){var n=new Ce;return this.items.forEach((function(t,i){var o=null!=t.mirrorOffset&&i-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:null;n.appendMap(t.map,o)}),e,t),n},ad.prototype.addMaps=function(e){return 0==this.eventCount?this:new ad(this.items.append(e.map((function(e){return new ld(e)}))),this.eventCount)},ad.prototype.rebased=function(e,t){if(!this.eventCount)return this;var n=[],i=Math.max(0,this.items.length-t),o=e.mapping,r=e.steps.length,s=this.eventCount;this.items.forEach((function(e){e.selection&&s--}),i);var a=t;this.items.forEach((function(t){var i=o.getMirror(--a);if(null!=i){r=Math.min(r,i);var l=o.maps[i];if(t.step){var d=e.steps[i].invert(e.docs[i]),c=t.selection&&t.selection.map(o.slice(a+1,i));c&&s++,n.push(new ld(l,d,c))}else n.push(new ld(l))}}),i);for(var l=[],d=t;d<r;d++)l.push(new ld(o.maps[d]));var c=this.items.slice(0,i).append(l).append(n),u=new ad(c,s);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-n.length)),u},ad.prototype.emptyItemCount=function(){var e=0;return this.items.forEach((function(t){t.step||e++})),e},ad.prototype.compress=function(e){void 0===e&&(e=this.items.length);var t=this.remapping(0,e),n=t.maps.length,i=[],o=0;return this.items.forEach((function(r,s){if(s>=e)i.push(r),r.selection&&o++;else if(r.step){var a=r.step.map(t.slice(n)),l=a&&a.getMap();if(n--,l&&t.appendMap(l,n),a){var d=r.selection&&r.selection.map(t.slice(n));d&&o++;var c,u=new ld(l.invert(),a,d),p=i.length-1;(c=i.length&&i[p].merge(u))?i[p]=c:i.push(u)}}else r.map&&n--}),this.items.length,0),new ad(sd.from(i.reverse()),o)},ad.empty=new ad(sd.empty,0);var ld=function(e,t,n,i){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=i};ld.prototype.merge=function(e){if(this.step&&e.step&&!e.selection){var t=e.step.merge(this.step);if(t)return new ld(t.getMap().invert(),t,this.selection)}};var dd=function(e,t,n,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=i},cd=20;function ud(e){var t=[];return e.forEach((function(e,n,i,o){return t.push(i,o)})),t}function pd(e,t){if(!e)return null;for(var n=[],i=0;i<e.length;i+=2){var o=t.map(e[i],1),r=t.map(e[i+1],-1);o<=r&&n.push(o,r)}return n}function hd(e,t,n,i){var o=md(t),r=yd.get(t).spec.config,s=(i?e.undone:e.done).popEvent(t,o);if(s){var a=s.selection.resolve(s.transform.doc),l=(i?e.done:e.undone).addTransform(s.transform,t.selection.getBookmark(),r,o),d=new dd(i?l:s.remaining,i?s.remaining:l,null,0);n(s.transform.setSelection(a).setMeta(yd,{redo:i,historyState:d}).scrollIntoView())}}var fd=!1,vd=null;function md(e){var t=e.plugins;if(vd!=t){fd=!1,vd=t;for(var n=0;n<t.length;n++)if(t[n].spec.historyPreserveItems){fd=!0;break}}return fd}function gd(e){return e.setMeta(bd,!0)}var yd=new Mt("history"),bd=new Mt("closeHistory");function kd(e){return e={depth:e&&e.depth||100,newGroupDelay:e&&e.newGroupDelay||500},new It({key:yd,state:{init:function(){return new dd(ad.empty,ad.empty,null,0)},apply:function(t,n,i){return function(e,t,n,i){var o,r=n.getMeta(yd);if(r)return r.historyState;n.getMeta(bd)&&(e=new dd(e.done,e.undone,null,0));var s=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(s&&s.getMeta(yd))return s.getMeta(yd).redo?new dd(e.done.addTransform(n,null,i,md(t)),e.undone,ud(n.mapping.maps[n.steps.length-1]),e.prevTime):new dd(e.done,e.undone.addTransform(n,null,i,md(t)),null,e.prevTime);if(!1===n.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new dd(e.done.rebased(n,o),e.undone.rebased(n,o),pd(e.prevRanges,n.mapping),e.prevTime):new dd(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),pd(e.prevRanges,n.mapping),e.prevTime);var a=0==e.prevTime||!s&&(e.prevTime<(n.time||0)-i.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;var n=!1;return e.mapping.maps[0].forEach((function(e,i){for(var o=0;o<t.length;o+=2)e<=t[o+1]&&i>=t[o]&&(n=!0)})),n}(n,e.prevRanges)),l=s?pd(e.prevRanges,n.mapping):ud(n.mapping.maps[n.steps.length-1]);return new dd(e.done.addTransform(n,a?t.selection.getBookmark():null,i,md(t)),ad.empty,l,n.time)}(n,i,t,e)}},config:e,props:{handleDOMEvents:{beforeinput:function(e,t){var n="historyUndo"==t.inputType?wd(e.state,e.dispatch):"historyRedo"==t.inputType&&Sd(e.state,e.dispatch);return n&&t.preventDefault(),n}}}})}function wd(e,t){var n=yd.getState(e);return!(!n||0==n.done.eventCount||(t&&hd(n,e,t,!1),0))}function Sd(e,t){var n=yd.getState(e);return!(!n||0==n.undone.eventCount||(t&&hd(n,e,t,!0),0))}function xd(e){var t=yd.getState(e);return t?t.done.eventCount:0}function Cd(e){var t=yd.getState(e);return t?t.undone.eventCount:0}var $d=function(e,t){var n;this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,i,o){var r=n;if(t[1]){var s=t[0].lastIndexOf(t[1]);r+=t[0].slice(s+t[1].length);var a=(i+=s)-o;a>0&&(r=t[0].slice(s-a,s)+r,i=o)}return e.tr.insertText(r,i,o)}):t};function Id(e){var t=e.rules,n=new It({state:{init:function(){return null},apply:function(e,t){return e.getMeta(this)||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput:function(e,i,o,r){return Od(e,i,o,r,t,n)},handleDOMEvents:{compositionend:function(e){setTimeout((function(){var i=e.state.selection.$cursor;i&&Od(e,i.pos,i.pos,"",t,n)}))}}},isInputRules:!0});return n}function Od(e,t,n,i,o,r){if(e.composing)return!1;var s=e.state,a=s.doc.resolve(t);if(a.parent.type.spec.code)return!1;for(var l=a.parent.textBetween(Math.max(0,a.parentOffset-500),a.parentOffset,null,"")+i,d=0;d<o.length;d++){var c=o[d].match.exec(l),u=c&&o[d].handler(s,c,t-(c[0].length-i.length),n);if(u)return e.dispatch(u.setMeta(r,{transform:u,from:t,to:n,text:i})),!0}return!1}function Dd(e,t){for(var n=e.plugins,i=0;i<n.length;i++){var o=n[i],r=void 0;if(o.spec.isInputRules&&(r=o.getState(e))){if(t){for(var s=e.tr,a=r.transform,l=a.steps.length-1;l>=0;l--)s.step(a.steps[l].invert(a.docs[l]));if(r.text){var d=s.doc.resolve(r.from).marks();s.replaceWith(r.from,r.to,e.schema.text(r.text,d))}else s.delete(r.from,r.to);t(s)}return!0}}return!1}var Md=new $d(/--$/,"—"),Td=new $d(/\.\.\.$/,"…"),Rd=new $d(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),Bd=new $d(/"$/,"”"),Nd=new $d(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),Pd=new $d(/'$/,"’"),Ed=[Rd,Bd,Nd,Pd];function Vd(e,t,n,i){return new $d(e,(function(e,o,r,s){var a=n instanceof Function?n(o):n,l=e.tr.delete(r,s),d=l.doc.resolve(r).blockRange(),c=d&&Le(d,t,a);if(!c)return null;l.wrap(d,c);var u=l.doc.resolve(r-1).nodeBefore;return u&&u.type==t&&ze(l.doc,r-1)&&(!i||i(o,u))&&l.join(r-1),l}))}function Ld(e,t,n){return new $d(e,(function(e,i,o,r){var s=e.doc.resolve(o),a=n instanceof Function?n(i):n;return s.node(-1).canReplaceWith(s.index(-1),s.indexAfter(-1),t)?e.tr.delete(o,r).setBlockType(o,o,t,a):null}))}var Ad={mark:"strong",altMarks:["b"],altStyle:{name:"font-weight",value:/^(bold(er)?|[5-9]\d{2,})$/}},Fd={mark:"em",altMarks:["i"],altStyle:{name:"font-style",value:/^italic$/i}},zd={mark:"u",altStyle:{name:"text-decoration",value:/^underline$/i}},jd={mark:"del",altStyle:{name:"text-decoration",value:/^line-through$/i}},Kd={mark:"sub"},_d={mark:"sup"},Hd={mark:"link"},Wd="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),Ud=function(e,t){var n={},i=t&&t.applyToWord||!1;if(n["Mod-z"]=wd,n["Shift-Mod-z"]=Sd,n.Backspace=Oi(Dd,Qn,ei,ni),n.Enter=Oi(ci,hi,fi,mi),Wd||(n["Mod-y"]=Sd),e.marks.strong&&(n["Mod-b"]=nn(yn,Kt({},Ad,{applyToWord:i}))),e.marks.em&&(n["Mod-i"]=nn(yn,Kt({},Fd,{applyToWord:i}))),e.marks.u&&(n["Mod-u"]=nn(yn,Kt({},zd,{applyToWord:i}))),e.nodes.hard_break){var o=e.nodes.hard_break,r=Oi(pi,(function(e,t){return t(e.tr.replaceSelectionWith(o.create()).scrollIntoView()),!0}));n["Shift-Enter"]=r}return n},qd=function(e){var t,n={};return e.nodes.list_item&&(n.Enter=(t=e.nodes.list_item,function(e,n){return Wn(t)(e,(function(t){var i=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();i&&t.ensureMarks(i),n(t)}))})),n},Gd=/style=['"]?[^'"]*?mso-list:\s*[a-zA-Z]+(\d+)\s[a-zA-Z]+(\d+)\s(\w+)/gi,Jd=function(e){return/^MsoListParagraph/.test(e.className)},Xd=function(e){var t=e.innerHTML;return(t=t.replace(/<!--(.|\s)*?-->/gi,"")).replace(/<\/?[^>]+?\/?>/gm,"")},Yd=function(e,t){var n=document.createElement(e);return n.style.listStyleType=t,n},Zd=function(e){var t=null;return/^\d/.test(e)||(t=(/^[a-z]/.test(e)?"lower-":"upper-")+(/^[ivxlcdm]/i.test(e)?"roman":"alpha")),t},Qd=function(e,t){var n=[];Array.from(e).forEach((function(e){if(e.nodeType===Node.ELEMENT_NODE){var i=e;i.getAttribute("datalist")?(n.push(e),t.add(n)):Jd(i)&&n.length?n.push(e):(n=[],"DIV"===i.nodeName?Qd(i.children,t):"TABLE"===i.nodeName&&Array.from(i.querySelectorAll("td,th")).forEach((function(e){Qd(e.children,t)})))}}))},ec=function(e){var t,n=e.innerHTML,i=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=i(Xd(e)),/^[\u2022\u00b7\u00FC\u00D8\u002dv-]/.test(t)?null:/^o/.test(t)?"circle":"square")}:/^\s*\w+[\.\)][\u00a0 ]{2,}/.test(n)?{tag:"ol",style:Zd(i(Xd(e)))}:void 0},tc=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?Xd(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 i=document.createElement("li");return i.innerHTML=t,i},nc=function(e){var t=document.createElement("div");t.innerHTML=function(e){return e.replace(Gd,(function(e,t,n){return'datalist="'+t+'" datalevel="'+n+'" '+e}))}(e);var n=new Set;return Qd(t.children,n),n.forEach((function(e){return function(e){var t,n,i,o,r,s,a,l,d,c,u,p,h,f=-1,v={};for(l=0;l<e.length;l++){var m=(h={datalist:(d=e[l]).getAttribute("datalist"),datalevel:d.getAttribute("datalevel")}).datalist,g=ec(d);if(c=g&&g.tag){if(u=h.datalevel||parseFloat(d.style.marginLeft||0),h.datalevel||d.style.marginLeft){var y=c+m;v[u]||(v[u]={}),(!n||n<0)&&(n=u,i=m,o=(a=e.filter((function(e){return e.getAttribute("datalist")===String(i)})))[a.length-1],s=Yd(c,g&&g.style),d.parentNode.insertBefore(s,d),f=u,v[u][y]=s),r=o===d,p=v[u][y],(u>f||!p)&&(p=Yd(c,g&&g.style),v[u][y]=p,t.appendChild(p)),t=tc(d),p.appendChild(t),r?n=f=-1:f=u}}else!t||r&&!Jd(d)||(d.style.marginLeft&&(d.style.marginLeft=""),d.style.marginLeft&&(d.style.margin=""),t.appendChild(d))}}(e)})),t.innerHTML},ic=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,"")},oc=function(e){return e.replace(/<!--[\s\S]+?-->/g,"")},rc=function(e,t){return e.replace(new RegExp("<\\/?("+t+")(?:\\s[^>]*?)?>","gi"),"")},sc=function(e){e.ownerElement&&e.ownerElement.removeAttribute(e.name)},ac=function(e){/^Mso/.test(e.value)&&sc(e)},lc=/\s*;\s*/,dc=/\s*:\s*/,cc=function(e){var t,n,i=e.value.split(lc).filter((function(e){return Boolean(e)})),o=e.ownerElement.style,r="";i.forEach((function(e){var i;i=e.split(dc),t=i[0],n=i[1],void 0!==o[t]&&(r+=t+": "+n+"; ")})),(r=r.trim())?e.value=r:sc(e)},uc=function(e,t){var n=e;if(t.convertMsLists&&(n=nc(n)),t.stripTags&&(n=rc(n,t.stripTags)),t.attributes){var i=document.createElement("div");i.innerHTML=n,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 i=e.attributes[n];t[i.name]?t[i.name](i):t["*"]&&t["*"](i)}"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=i.innerHTML}return n};function pc(e){for(var t=e.length,n=new Array(t/2),i=0;i<t;i+=2)n[i]=String.fromCharCode(parseInt(e.substring(i,i+2),16));return btoa(n.join(""))}var hc=/<img\s[^>]*?src=(?:'|")file:\/[^'"]+(?:'|")[^>]*>/gi,fc=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,vc=new RegExp("(?:("+fc.source+"))([\\da-fA-F\\s]+)\\}","g"),mc=/[^\da-fA-F]/g,gc=/file:\/[^'"]+\.(jpg|png|gif)/i,yc=/\\(png|jpeg)blip\\/,bc="text/rtf",kc=function(e,t){var n=e.match(hc);if(!n||-1===t.types.indexOf(bc))return e;var i=t.getData(bc),o=[],r=i.match(vc);if(!i||!r)return e;for(var s=0,a=r;s<a.length;s++){var l=a[s],d=yc.exec(l);if(d){var c=l.replace(fc,"").replace(mc,"");o.push("data:image/"+d[1]+";base64,"+pc(c))}}return n.length!==o.length?e:e.replace(hc,(function(e){var t=o.shift()||"";return e.replace(gc,t)}))},wc=function(e,t,n,i,o){var r,s,a,l,d,c,u=[],p=[],h=t.matchCase,f=t.matchWord,v=t.useRegExp,m=t.text;if(v&&(/^\\$/.test(m)||/[^\\]\\$/.test(m))&&(m=m.substring(0,m.length-1)),!m)return u;var g=h?"g":"gi",y=v?new RegExp(m,g):Dc(m,g);return e.nodesBetween(n,i,(function(t,h,v){if(o(u))return!1;t.inlineContent&&h+t.content.size>=n&&(p.length=0,t.nodesBetween(0,t.content.size,(function(t,v,m,g){if(o(u))return!1;var b=1+h+v;if(t.isText&&b+t.nodeSize>=n){if(d=t.text||"",c=m.childCount-1>=g+1&&m.child(g+1),p.push(n<=b?{text:d,start:b}:{text:d.slice(n-b),start:n}),c&&c.isText)return;for(s=p.map((function(e){return e.text})).join(""),r=y.exec(s);null!==r&&(a=p[0].start+r.index,l=a+r[0].length,n<=a&&i>=l&&Oc(r,f)&&u.push(dt.create(e,a,l)),!o(u));)r=y.exec(s)}else p.length=0})))})),u},Sc=function(e,t){var n=t.backward,i=t.matchCyclic,o=_t(t,["backward","matchCyclic"]),r=n?function(){return!1}:function(e){return e.length>0},s=e.doc,a=e.selection,l=[];return n?!(l=wc(s,o,0,a.from,r)).length&&i&&(l=wc(s,o,a.from,s.content.size,r)):!(l=wc(s,o,a.to,s.content.size,r)).length&&i&&(l=wc(s,o,0,a.to,r)),l.length?l[l.length-1]:null},xc=function(e,t){return wc(e,t,0,e.content.size,(function(){return!1}))},Cc=function(e,t,n){var i=e.from,o=e.to;return n.insertText(t,i,o).setSelection(dt.create(n.doc,i,i+t.length)),n},$c=function(e,t,n){var i=xc(e.doc,n);if(0===i.length)return null;for(var o=e.tr,r=i.length-1;r>=0;r--)o.insertText(t,i[r].from,i[r].to);return o},Ic=/^[\s0-9~`!@#$%\^&*\(\)_\-=+\\|\[\]{};:'"\?/.,<>]?$/,Oc=function(e,t){if(t){if(!0===t){var n=e.input,i=n.charAt(e.index-1),o=n.charAt(e.index+e[0].length);return Ic.test(i)&&Ic.test(o)}return t(e)}return!0},Dc=function(e,t){var n=e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d").replace(/\s/g,"\\s");return new RegExp(n,t)};function Mc(e){var t={class:"k-placeholder","data-placeholder":e};return new It({key:new Mt("placeholder"),props:{decorations:function(e){var n=e.doc,i=n.content.firstChild;if(!(0===n.childCount||1===n.childCount&&i.inlineContent&&0===i.childCount))return Hs.empty;var o=[];return n.descendants((function(e,n){o.push(zs.node(n,n+e.nodeSize,t))})),Hs.create(n,o)}}})}var Tc=/\s+/g,Rc=/text-align/,Bc=function(){return new It({key:new Mt("spaces-fix"),props:{decorations:function(e){var t,n,i,o,r=[],s=e.doc;return s.nodesBetween(0,s.content.size,(function(e,s,a){if(e.type.isText&&function(e){return Rc.test(e&&e.attrs&&e.attrs.style||"")}(a))for(n=Tc.exec(e.text||"");null!==n;){if(t=s+n.index,i=n[0].length,n.index+i<n.input.length)for(o=0;o<=i-1;o+=2)r.push(zs.inline(t+o,t+o+1,{style:"white-space: normal"}));n=Tc.exec(e.text||"")}})),Hs.create(s,r)}}})},Nc=new Mt("highlight");function Pc(e){return void 0===e&&(e=Nc),new It({key:e,state:{init:function(){return null},apply:function(e){return e.getMeta(this.spec.key)}},props:{decorations:function(e){var t=(this.spec.key.getState(e)||[]).map((function(e){return zs.inline(e.from,e.to,e.attrs)}));return Hs.create(e.doc,t)}}})}var Ec=new Mt("image-resize"),Vc={southeast:{x:1,y:1},east:{x:1,y:0},south:{x:0,y:1},north:{x:0,y:-1},west:{x:-1,y:0},southwest:{x:-1,y:1},northwest:{x:-1,y:-1},northeast:{x:1,y:-1}},Lc=Object.keys(Vc),Ac=function(e,t,n){e.style[t]=n+"px"},Fc=/[^\-]width:|[^\-]height:/,zc=/^.+$/,jc=function(){function e(e,t,n,i){this.activeHandle=e,this.dragging=t,this.rect=n,this.nodePosition=i}return e.prototype.apply=function(t){var n=t.getMeta(Ec);return n?new e(n.activeHandle,n.setDragging,n.rect,n.nodePosition):this},e}(),Kc=function(e){return void 0===e&&(e={node:"image",lockRatio:!0}),new It({key:Ec,view:function(t){return{resize:function(){Ec.getState(t.state).rect&&t.dispatch(t.state.tr.setMeta("resize",!0))},get window(){return t.dom.ownerDocument&&t.dom.ownerDocument.defaultView},attachResize:function(){var e=this.window;e&&(e.removeEventListener("resize",this.resize),e.addEventListener("resize",this.resize))},removeResize:function(){var e=this.window;e&&e.removeEventListener("resize",this.resize)},update:function(t,n){var i=t.state,o=i.selection,r=i.schema.nodes[e.node],s=Ec.getState(i),a=s.rect;if(o instanceof ut&&r===o.node.type){var l=t.nodeDOM(o.from),d={top:l.offsetTop,left:l.offsetLeft,width:l.offsetWidth,height:l.offsetHeight};if(!n.selection.eq(o)||a&&(a.width!==d.width||a.height!==d.height||a.top!==d.top||a.left!==d.left)){var c=i.tr;c.setMeta(Ec,{rect:d,nodePosition:o.from}),t.dispatch(c),this.attachResize()}}else a&&(s.rect=null,s.nodePosition=-1)},destroy:function(){this.removeResize()}}},state:{init:function(){return new jc("",null,null,-1)},apply:function(e,t){return t.apply(e)}},props:{handleDOMEvents:{mousedown:function(t,n){return function(e,t,n){var i=t.target.getAttribute("data-direction");if(!i)return!1;var o=Ec.getState(e.state);t.preventDefault();var r=e.state.tr;function s(t){!function(e,t,n){var i=Ec.getState(e.state),o=i.rect,r=i.dragging,s=i.nodePosition,a=i.activeHandle;if(r&&o){var l=e.nodeDOM(s),d=Vc[a],c=(t.clientX-r.startX)*d.x,u=(t.clientY-r.startY)*d.y,p=d.x?c+l.width:o.width,h=d.y?u+l.height:o.height;if(n.lockRatio&&d.x&&d.y){var f=Math.min(p/l.width,h/l.height),v=l.width*f,m=l.height*f;r.startX=t.clientX-(p-v)*d.x,r.startY=t.clientY-(h-m)*d.y,p=v,h=m}else r.startX=d.x?t.clientX:r.startX,r.startY=d.y?t.clientY:r.startY;Ac(l,"width",p),Ac(l,"height",h),o.top=l.offsetTop,o.left=l.offsetLeft,o.width=l.offsetWidth,o.height=l.offsetHeight;var g=l.nextElementSibling;g.style.width=o.width+"px",g.style.height=o.height+"px",g.style.top=o.top+"px",g.style.left=o.left+"px"}}(e,t,n)}return r.setMeta(Ec,{setDragging:{startX:t.clientX,startY:t.clientY},activeHandle:i,rect:o.rect,nodePosition:o.nodePosition}),r.setMeta("addToHistory",!1),e.dispatch(r),t.view.addEventListener("mouseup",(function t(n){n.view.removeEventListener("mouseup",t),n.view.removeEventListener("mousemove",s),function(e){var t=Ec.getState(e.state),n=t.rect,i=t.dragging,o=t.nodePosition;if(i&&n){var r=e.state.selection;if(r instanceof ut){var s=r.node.attrs,a=n.width,l=n.height,d=void 0;if(Fc.test(s.style||"")){var c=Ht(s.style,{style:"width",value:zc,newValue:a+"px"}),u=Ht(c.style||"",{style:"height",value:zc,newValue:l+"px"}).style;d=Kt({},s,{style:u})}else d=Kt({},s,{width:a,height:l});var p=r.node.type.createAndFill(d);if(p){var h=e.state.tr;h.replaceWith(o,o+1,p),h.setSelection(ut.create(h.doc,o)),h.setMeta("commandName","image-resize"),h.setMeta("args",d),h.setMeta(Ec,{setDragging:null,activeHandle:null,rect:n,nodePosition:o}),e.dispatch(h)}}}}(e)})),t.view.addEventListener("mousemove",s),!0}(t,n,e)}},decorations:function(t){var n=t.selection,i=t.schema.nodes[e.node],o=Ec.getState(t).rect;if(o&&n instanceof ut&&i===n.node.type){var r=document.createElement("div");r.className="k-editor-resize-handles-wrapper",r.style.width=o.width+"px",r.style.height=o.height+"px",r.style.top=o.top+"px",r.style.left=o.left+"px";for(var s=0;s<Lc.length;s++){var a=document.createElement("div");a.className="k-editor-resize-handle "+Lc[s],a.setAttribute("data-direction",Lc[s]),r.appendChild(a)}return Hs.create(t.doc,[zs.widget(t.selection.from+1,r)])}return Hs.empty}}})},_c=new Mt("caret-color");function Hc(){return new It({key:_c,props:{decorations:function(e){var t=e.doc,n=e.selection,i=e.storedMarks;if(!n.empty||!i)return Hs.empty;var o=cn((i||[]).find((function(e){return"style"===e.type.name})),{name:"color",value:/^.+$/});if(!o)return Hs.empty;var r=n.$anchor.parent,s=[];return t.descendants((function(e,t){e.eq(r)&&s.push(zs.node(t,t+e.nodeSize,{style:"caret-color: "+o}))})),Hs.create(t,s)}}})}function Wc(e){return void 0===e&&(e={}),new It({view:function(t){return new Uc(t,e)}})}var Uc=function(e,t){var n=this;this.editorView=e,this.width=t.width||1,this.color=t.color||"black",this.class=t.class,this.cursorPos=null,this.element=null,this.timeout=null,this.handlers=["dragover","dragend","drop","dragleave"].map((function(t){var i=function(e){return n[t](e)};return e.dom.addEventListener(t,i),{name:t,handler:i}}))};Uc.prototype.destroy=function(){var e=this;this.handlers.forEach((function(t){var n=t.name,i=t.handler;return e.editorView.dom.removeEventListener(n,i)}))},Uc.prototype.update=function(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())},Uc.prototype.setCursor=function(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())},Uc.prototype.updateOverlay=function(){var e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){var n=t.nodeBefore,i=t.nodeAfter;if(n||i){var o=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0)).getBoundingClientRect(),r=n?o.bottom:o.top;n&&i&&(r=(r+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:o.left,right:o.right,top:r-this.width/2,bottom:r+this.width/2}}}if(!e){var s=this.editorView.coordsAtPos(this.cursorPos);e={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}var a,l,d=this.editorView.dom.offsetParent;if(this.element||(this.element=d.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),!d||d==document.body&&"static"==getComputedStyle(d).position)a=-pageXOffset,l=-pageYOffset;else{var c=d.getBoundingClientRect();a=c.left-d.scrollLeft,l=c.top-d.scrollTop}this.element.style.left=e.left-a+"px",this.element.style.top=e.top-l+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"},Uc.prototype.scheduleRemoval=function(e){var t=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){return t.setCursor(null)}),e)},Uc.prototype.dragover=function(e){if(this.editorView.editable){var t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),i=n&&n.type.spec.disableDropCursor,o="function"==typeof i?i(this.editorView,t):i;if(t&&!o){var r=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&null==(r=He(this.editorView.state.doc,r,this.editorView.dragging.slice)))return this.setCursor(null);this.setCursor(r),this.scheduleRemoval(5e3)}}},Uc.prototype.dragend=function(){this.scheduleRemoval(20)},Uc.prototype.drop=function(){this.scheduleRemoval(20)},Uc.prototype.dragleave=function(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)};var qc=function(e){function t(t){e.call(this,t,t)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.map=function(n,i){var o=n.resolve(i.map(this.head));return t.valid(o)?new t(o):e.near(o)},t.prototype.content=function(){return f.empty},t.prototype.eq=function(e){return e instanceof t&&e.head==this.head},t.prototype.toJSON=function(){return{type:"gapcursor",pos:this.head}},t.fromJSON=function(e,n){if("number"!=typeof n.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new t(e.resolve(n.pos))},t.prototype.getBookmark=function(){return new Gc(this.anchor)},t.valid=function(e){var t=e.parent;if(t.isTextblock||!function(e){for(var t=e.depth;t>=0;t--){var n=e.index(t),i=e.node(t);if(0!=n)for(var o=i.child(n-1);;o=o.lastChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e)||!function(e){for(var t=e.depth;t>=0;t--){var n=e.indexAfter(t),i=e.node(t);if(n!=i.childCount)for(var o=i.child(n);;o=o.firstChild){if(0==o.childCount&&!o.inlineContent||o.isAtom||o.type.spec.isolating)return!0;if(o.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(e))return!1;var n=t.type.spec.allowGapCursor;if(null!=n)return n;var i=t.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock},t.findFrom=function(e,n,i){e:for(;;){if(!i&&t.valid(e))return e;for(var o=e.pos,r=null,s=e.depth;;s--){var a=e.node(s);if(n>0?e.indexAfter(s)<a.childCount:e.index(s)>0){r=a.child(n>0?e.indexAfter(s):e.index(s)-1);break}if(0==s)return null;o+=n;var l=e.doc.resolve(o);if(t.valid(l))return l}for(;;){var d=n>0?r.firstChild:r.lastChild;if(!d){if(r.isAtom&&!r.isText&&!ut.isSelectable(r)){e=e.doc.resolve(o+r.nodeSize*n),i=!1;continue e}break}r=d,o+=n;var c=e.doc.resolve(o);if(t.valid(c))return c}return null}},t}(st);qc.prototype.visible=!1,st.jsonID("gapcursor",qc);var Gc=function(e){this.pos=e};Gc.prototype.map=function(e){return new Gc(e.map(this.pos))},Gc.prototype.resolve=function(e){var t=e.resolve(this.pos);return qc.valid(t)?new qc(t):st.near(t)};var Jc=function(){return new It({props:{decorations:Qc,createSelectionBetween:function(e,t,n){if(t.pos==n.pos&&qc.valid(n))return new qc(n)},handleClick:Zc,handleKeyDown:Xc}})},Xc=mo({ArrowLeft:Yc("horiz",-1),ArrowRight:Yc("horiz",1),ArrowUp:Yc("vert",-1),ArrowDown:Yc("vert",1)});function Yc(e,t){var n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,i,o){var r=e.selection,s=t>0?r.$to:r.$from,a=r.empty;if(r instanceof dt){if(!o.endOfTextblock(n)||0==s.depth)return!1;a=!1,s=e.doc.resolve(t>0?s.after():s.before())}var l=qc.findFrom(s,t,a);return!!l&&(i&&i(e.tr.setSelection(new qc(l))),!0)}}function Zc(e,t,n){if(!e.editable)return!1;var i=e.state.doc.resolve(t);if(!qc.valid(i))return!1;var o=e.posAtCoords({left:n.clientX,top:n.clientY}).inside;return!(o>-1&&ut.isSelectable(e.state.doc.nodeAt(o))||(e.dispatch(e.state.tr.setSelection(new qc(i))),0))}function Qc(e){if(!(e.selection instanceof qc))return null;var t=document.createElement("div");return t.className="ProseMirror-gapcursor",Hs.create(e.doc,[zs.widget(e.selection.head,t,{key:"gapcursor"})])}var eu=function(e,t,n){for(var i,o=e.table,r=e.table_row,s=e.table_cell,a=[],l=0;l<t+1;l++){i=[];for(var d=0;d<n+1;d++)i.push(s.createAndFill());a.push(r.createAndFill(void 0,i))}return o.createAndFill(void 0,a)},tu=function(e,t){for(var n=e.$head,i=n.depth;i>0;i--){var o=n.node(i);if(o.type.name===t)return{pos:n.before(i),node:o}}return null},nu=function(e,t){var n=t&&function(e){var n,i=tu(e.selection,"table_row"),o=tu(e.selection,"table");if(i&&o&&i.node.attrs[Tt]){for(var r=0,s=0;s<o.node.nodeSize;s++)if(o.node.child(s).eq(i.node)){r=s;break}var a=o.node.child(r-1),l=i.pos-a.nodeSize;e.setNodeMarkup(l,void 0,((n={})[Tt]=i.node.attrs[Tt],n))}return t(e)};return ul(e,n)},iu=function(e,t){return pl(e,t&&function(e){var n,i=tu(e.selection,"table_row");if(i&&i.node.attrs[Tt]){var o=i.pos+i.node.nodeSize;e.setNodeMarkup(o,void 0,((n={})[Tt]=i.node.attrs[Tt],n))}return t(e)})}},961:(e,t,n)=>{n.r(t),n.d(t,{Checkbox:()=>ii,CheckboxVue2:()=>ni,ColorGradient:()=>it,ColorPalette:()=>O,ColorPicker:()=>wt,ColorPickerVue2:()=>kt,FlatColorPicker:()=>vt,FlatColorPickerVue2:()=>ft,Input:()=>te,InputSeparator:()=>Bt,InputSeparatorVue2:()=>Rt,InputVue2:()=>ee,MaskedTextBox:()=>On,MaskedTextBoxVue2:()=>In,NumericTextBox:()=>ln,NumericTextBoxVue2:()=>an,RadioButton:()=>di,RadioButtonVue2:()=>li,RadioGroup:()=>vi,RadioGroupVue2:()=>fi,RangeSlider:()=>Xn,RangeSliderVue2:()=>Jn,SLIDER_LABEL_ATTRIBUTE:()=>Bn,Slider:()=>jn,SliderLabel:()=>Pn,SliderLabelVue2:()=>Nn,SliderVue2:()=>zn,Switch:()=>It,SwitchVue2:()=>$t,TextArea:()=>wi,TextAreaVue2:()=>ki});var i,o,r,s=n(1895),a=n(7984),l={name:"@progress/kendo-vue-inputs",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123858,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},d=function(e){return null!=e},c=function(e,t,n){return!d(e)||isNaN(e)||e<=t?t:e>=n?n:e},u=n(4407),p=function(e,t,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=!0),-1===["hex","rgba"].indexOf(t))throw new Error("Unsupported color output format '".concat(t,"'. The available options are 'hex' or 'rgba'."));if(d(e)){var o=(0,u.parseColor)(e.trim(),i);if(d(o))return"hex"===t?h(o,n):o.toCssRgba()}},h=function(e,t){return t&&e.a<1?e.toCss({alpha:!0}):e.toCss()},f=function(e,t){void 0===t&&(t=!0);var n=(0,u.parseColor)(e,t);return d(n)?n.toHSV():{}},v=function(e,t){void 0===t&&(t=!0);var n=(0,u.parseColor)(e,t);return d(n)?n.toBytes():{}},m=function(e){var t=c(e.h,0,359.9),n=c(e.s,0,1),i=c(e.v,0,1),o=c(e.a,0,1);return u.Color.fromHSV(t,n,i,o).toCssRgba()},g=function(e){return m({h:e,s:1,v:1,a:1})},y=function(e,t){var n=c(e.r,0,255),i=c(e.g,0,255),o=c(e.b,0,255),r=c(e.a,0,1),s=c(t.r,0,255),a=c(t.g,0,255),l=c(t.b,0,255);return{r:Math.round((1-r)*s+r*n),g:Math.round((1-r)*a+r*i),b:Math.round((1-r)*l+r*o)}},b=function(e){var t=[e.r,e.g,e.b].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*t[0]+.7152*t[1]+.0722*t[2]},k=function(e,t){return n=b(y(e,t)),i=b(y(t,{r:0,g:0,b:0,a:1})),(Math.max(n,i)+.05)/(Math.min(n,i)+.05);var n,i},w=function(){function e(){this.colorRows=[]}return e.prototype.setColorMatrix=function(e,t){if(this.colorRows=[],d(e)&&e.length){t=t||e.length;for(var n=0;n<e.length;n+=t){var i=e.slice(n,t+n);this.colorRows.push(i)}}},e.prototype.isInColors=function(e,t){return e.some((function(e){return e===t}))},e.prototype.getCellCoordsFor=function(e){if(d(e)){var t=e?(0,u.parseColor)(e,!0):e,n=[e];d(t)&&n.push(t.toCss(),t.toCssRgba());for(var i=0;i<this.colorRows.length;i++)for(var o=0;o<this.colorRows[i].length;o++)if(this.isInColors(n,this.colorRows[i][o]))return{row:i,col:o}}},e.prototype.getColorAt=function(e){if(d(e)&&d(this.colorRows[e.row]))return this.colorRows[e.row][e.col]},e.prototype.getNextCell=function(e,t,n){if(!(d(e)&&d(e.row)&&d(e.col)))return{row:0,col:0};var i=this.clampIndex(e.row+n,this.colorRows.length-1);return{row:i,col:this.clampIndex(e.col+t,this.colorRows[i].length-1)}},e.prototype.clampIndex=function(e,t){return e<0?0:e>t?t:e},e}(),S={basic:{colors:["#000000","#7f7f7f","#880015","#ed1c24","#ff7f27","#fff200","#22b14c","#00a2e8","#3f48cc","#a349a4"," ffffff","#c3c3c3","#b97a57","#ffaec9","#ffc90e","#efe4b0","#b5e61d","#99d9ea","#7092be","#c8bfe7"],columns:10},office:{colors:["#ffffff","#000000","#e6e6e6","#435569","#4371c4","#ed7e32","#a5a4a5","#febf04","#5a9bd5","#71ae48","#f2f2f3","#7f7f7f","#d1cece","#d5dde3","#dae1f4","#fce5d4","#deeded","#fff2cc","#deeaf6","#e1efd9","#d7d8d8","#585959","#aeabab","#adbaca","#b4c5e7","#f6caac","#dbdbdb","#ffe498","#bcd6ee","#c5e0b2","#bfbfc0","#3f3f3f","#767070","#8595b1","#8fabdb","#f5b183","#c9c8c9","#fed965","#9bc4e5","#a8d08d","#a5a5a6","#262625","#393939","#334050","#2e5496","#c45a11","#7b7b7a","#bf9000","#2f75b5","#548235","#7f7f7f","#0b0c0c","#161616","#222a34","#203764","#843d0b","#525252","#7f6000","#1d4d79","#375623"],columns:10},apex:{colors:["#ffffff","#000000","#c9c2d1","#69676d","#ceb966","#9cb084","#6bb1c9","#6585cf","#7e6bc9","#a379bb","#f2f2f2","#7f7f7f","#f4f2f5","#e0e0e2","#f5f1e0","#ebefe6","#e1eff4","#e0e6f5","#e5e1f4","#ece4f1","#d8d8d8","#595959","#e9e6ec","#c2c1c5","#ebe3c1","#d7dfcd","#c3dfe9","#c1ceeb","#cbc3e9","#dac9e3","#bfbfbf","#3f3f3f","#dedae3","#a4a3a8","#e1d5a3","#c3cfb5","#a6d0de","#a2b5e2","#b1a6de","#c7aed6","#a5a5a5","#262626","#9688a5","#4e4d51","#ae9638","#758c5a","#3d8da9","#365bb0","#533da9","#7d4d99","#7f7f7f","#0c0c0c","#635672","#343336","#746425","#4e5d3c","#295e70","#243c75","#372970","#533366"],columns:10},austin:{colors:["#ffffff","#000000","#caf278","#3e3d2d","#94c600","#71685a","#ff6700","#909465","#956b43","#fea022","#f2f2f2","#7f7f7f","#f4fce4","#dddcd0","#efffc0","#e3e1dc","#ffe0cb","#e8e9df","#ece1d6","#feecd2","#d8d8d8","#595959","#e9f9c9","#bbb9a1","#dfff82","#c8c3ba","#ffc299","#d2d4c0","#dac3ad","#fed9a6","#bfbfbf","#3f3f3f","#dff7ae","#ada598","#cfff43","#ada598","#ffa365","#bcbfa1","#c8a585","#fec67a","#a5a5a5","#262626","#a9ea25","#2e2d21","#6f9400","#544e43","#bf4d00","#6c6f4b","#6f5032","#d77b00","#7f7f7f","#0c0c0c","#74a50f","#1f1e16","#4a6300","#38342d","#7f3300","#484a32","#4a3521","#8f5200"],columns:10},clarity:{colors:["#ffffff","#292934","#f3f2dc","#d2533c","#93a299","#ad8f67","#726056","#4c5a6a","#808da0","#79463d","#f2f2f2","#e7e7ec","#e7e5b9","#f6dcd8","#e9ecea","#eee8e0","#e4dedb","#d8dde3","#e5e8ec","#e9d6d3","#d8d8d8","#c4c4d1","#d5d185","#edbab1","#d3d9d6","#ded2c2","#c9beb8","#b2bcc8","#ccd1d9","#d3aea7","#bfbfbf","#8a8aa3","#aca73b","#e4978a","#bec7c1","#cdbba3","#af9e94","#8c9bac","#b2bac6","#bd857c","#a5a5a5","#56566e","#56531d","#a43925","#6b7c72","#866b48","#554840","#39434f","#5c697b","#5a342d","#7f7f7f","#3b3b4b","#22210b","#6d2619","#47534c","#594730","#39302b","#262d35","#3d4652","#3c231e"],columns:10},slipstream:{colors:["#ffffff","#000000","#b4dcfa","#212745","#4e67c8","#5eccf3","#a7ea52","#5dceaf","#ff8021","#f14124","#f2f2f2","#7f7f7f","#8bc9f7","#c7cce4","#dbe0f4","#def4fc","#edfadc","#def5ef","#ffe5d2","#fcd9d3","#d8d8d8","#595959","#4facf3","#909aca","#b8c2e9","#beeafa","#dbf6b9","#beebdf","#ffcca6","#f9b3a7","#bfbfbf","#3f3f3f","#0d78c9","#5967af","#94a3de","#9ee0f7","#caf297","#9de1cf","#ffb279","#f68d7b","#a5a5a5","#262626","#063c64","#181d33","#31479f","#11b2eb","#81d319","#34ac8b","#d85c00","#c3260c","#7f7f7f","#0c0c0c","#021828","#101322","#202f6a","#0b769c","#568c11","#22725c","#903d00","#821908"],columns:10},metro:{colors:["#ffffff","#000000","#d6ecff","#4e5b6f","#7fd13b","#ea157a","#feb80a","#00addc","#738ac8","#1ab39f","#f2f2f2","#7f7f7f","#a7d6ff","#d9dde4","#e5f5d7","#fad0e4","#fef0cd","#c5f2ff","#e2e7f4","#c9f7f1","#d8d8d8","#595959","#60b5ff","#b3bcca","#cbecb0","#f6a1c9","#fee29c","#8be6ff","#c7d0e9","#94efe3","#bfbfbf","#3f3f3f","#007dea","#8d9baf","#b2e389","#f272af","#fed46b","#51d9ff","#aab8de","#5fe7d5","#a5a5a5","#262626","#003e75","#3a4453","#5ea226","#af0f5b","#c58c00","#0081a5","#425ea9","#138677","#7f7f7f","#0c0c0c","#00192e","#272d37","#3f6c19","#750a3d","#835d00","#00566e","#2c3f71","#0c594f"],columns:10},flow:{colors:["#ffffff","#000000","#dbf5f9","#04617b","#0f6fc6","#009dd9","#0bd0d9","#10cf9b","#7cca62","#a5c249","#f2f2f2","#7f7f7f","#b2e9f2","#b4ecfc","#c7e2fa","#c4eeff","#c9fafc","#c9faed","#e4f4df","#edf2da","#d8d8d8","#595959","#76d9e8","#6adafa","#90c6f6","#89deff","#93f5f9","#94f6db","#cae9c0","#dbe6b6","#bfbfbf","#3f3f3f","#21b2c8","#20c8f7","#59a9f2","#4fceff","#5df0f6","#5ff2ca","#b0dfa0","#c9da91","#a5a5a5","#262626","#105964","#02485c","#0b5394","#0075a2","#089ca2","#0b9b74","#54a838","#7e9532","#7f7f7f","#0c0c0c","#062328","#01303d","#073763","#004e6c","#05686c","#07674d","#387025","#546321"],columns:10},hardcover:{colors:["#ffffff","#000000","#ece9c6","#895d1d","#873624","#d6862d","#d0be40","#877f6c","#972109","#aeb795","#f2f2f2","#7f7f7f","#e1dca5","#f2e0c6","#f0d0c9","#f6e6d5","#f5f2d8","#e7e5e1","#fbc7bc","#eef0e9","#d8d8d8","#595959","#d0c974","#e6c28d","#e2a293","#eeceaa","#ece5b2","#cfccc3","#f78f7a","#dee2d4","#bfbfbf","#3f3f3f","#a29a36","#daa454","#d4735e","#e6b681","#e2d88c","#b7b2a5","#f35838","#ced3bf","#a5a5a5","#262626","#514d1b","#664515","#65281a","#a2641f","#a39428","#655f50","#711806","#879464","#7f7f7f","#0c0c0c","#201e0a","#442e0e","#431b11","#6c4315","#6d621a","#433f35","#4b1004","#5a6243"],columns:10},trek:{colors:["#ffffff","#000000","#fbeec9","#4e3b30","#f0a22e","#a5644e","#b58b80","#c3986d","#a19574","#c17529","#f2f2f2","#7f7f7f","#f7e09e","#e1d6cf","#fcecd5","#eddfda","#f0e7e5","#f3eae1","#ece9e3","#f5e3d1","#d8d8d8","#595959","#f3cc5f","#c4ad9f","#f9d9ab","#dcc0b6","#e1d0cc","#e7d5c4","#d9d4c7","#ebc7a3","#bfbfbf","#3f3f3f","#d29f0f","#a78470","#f6c781","#cba092","#d2b9b2","#dbc1a7","#c6bfab","#e1ac76","#a5a5a5","#262626","#694f07","#3a2c24","#c87d0e","#7b4b3a","#926255","#a17242","#7b7153","#90571e","#7f7f7f","#0c0c0c","#2a1f03","#271d18","#855309","#523226","#614138","#6b4c2c","#524b37","#603a14"],columns:10},verve:{colors:["#ffffff","#000000","#d2d2d2","#666666","#ff388c","#e40059","#9c007f","#68007f","#005bd3","#00349e","#f2f2f2","#7f7f7f","#bdbdbd","#e0e0e0","#ffd7e8","#ffc6dc","#ffb8f1","#f1b2ff","#c3dcff","#b8cfff","#d8d8d8","#595959","#9d9d9d","#c1c1c1","#ffafd1","#ff8eba","#ff71e4","#e365ff","#87baff","#72a0ff","#bfbfbf","#3f3f3f","#696969","#a3a3a3","#ff87ba","#ff5597","#ff2ad7","#d519ff","#4b98ff","#2b71ff","#a5a5a5","#262626","#343434","#4c4c4c","#e90062","#ab0042","#75005f","#4e005f","#00449e","#002676","#7f7f7f","#0c0c0c","#151515","#333333","#9b0041","#72002c","#4e003f","#34003f","#002d69","#00194f"],columns:10},monochrome:{colors:["#000000","#1a1a1a","#333333","#4d4d4d","#666666","#808080","#999999","#b3b3b3","#cccccc","#e6e6e6","#f2f2f2","#ffffff"],columns:12}},x=s,C=x.h,$=x.version&&"3"===x.version[0],I="office",O={name:"KendoColorPalette",model:{event:"changemodel"},emits:{keydown:null,focus:null,blur:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,change:null},props:{palette:{type:[String,Array],default:I},columns:Number,tileSize:{type:[Number,Object],default:24},modelValue:String,modelRgbaValue:String,defaultValue:String,value:String,disabled:Boolean,tabIndex:Number,id:String,ariaLabelledBy:String,ariaDescribedBy:String},created:function(){(0,a.validatePackage)(l),this.guid=(0,a.guid)()},mounted:function(){this.wrapper=(0,a.getRef)(this,"wrapper")},updated:function(){this.wrapper=(0,a.getRef)(this,"wrapper")},computed:{focusedColorCooridanates:function(){return this.focusedColor?this.paletteService.getCellCoordsFor(this.focusedColor):void 0},isUncontrolled:function(){return void 0===this.$props.value},selectedColor:function(){return void 0!==this.$props.value?this.$props.value:void 0!==this.modelValue?this.modelValue:void 0!==this.modelRgbaValue?this.modelRgbaValue:void 0!==this.currentValue?this.currentValue:this.$props.defaultValue}},data:function(){return{focusedColor:this.$props.value,currentValue:void 0}},setup:$?function(){return{v3:!!$}}:void 0,render:function(e){var t=C||e,n=this.getPaletteInfo(),i=this.paletteService=new w;i.setColorMatrix(n.colors,n.columns);var o=i.getCellCoordsFor(this.selectedColor),r=i.getCellCoordsFor(this.focusedColor),s=(0,a.classNames)("k-colorpalette",{"k-disabled":this.$props.disabled}),l=function(e,n,i,o){var r=void 0!==i&&i.row===n,s=i&&i.col,l=void 0!==o&&o.row===n,d=o&&o.col,c="number"!=typeof this.$props.tileSize?this.$props.tileSize:{width:this.$props.tileSize,height:this.$props.tileSize},u=c.width+"px",p=c.height+"px";return e.map((function(e,i){var o=this,c=r&&s===i,h=(0,a.classNames)("k-colorpalette-tile",{"k-selected":c,"k-focus":l&&d===i});return t("td",{class:h,"aria-label":e,attrs:this.v3?void 0:{"aria-label":e,"aria-selected":!!c||!!this.$props.disabled&&void 0,id:this.createCellId({row:n,col:i}),role:"gridcell"},"aria-selected":!!c||!!this.$props.disabled&&void 0,style:{backgroundColor:e,width:u,height:p,minWidth:u},onClick:function(t){return o.onColorClick(e,t)},on:this.v3?void 0:{click:function(t){return o.onColorClick(e,t)}},id:this.createCellId({row:n,col:i}),key:i,role:"gridcell"})}),this)};return n.colors.length?t("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,"aria-disabled":this.$props.disabled?"true":void 0,"aria-activedescendant":r&&this.createCellId(r),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,role:"grid",tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled)},class:s,onFocusin:this.onFocus,on:this.v3?void 0:{focusin:this.onFocus,focusout:this.onBlur,keydown:this.onKeyDown},onFocusout:this.onBlur,onKeydown:this.onKeyDown,"aria-disabled":this.$props.disabled?"true":void 0,"aria-activedescendant":r&&this.createCellId(r),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,role:"grid",tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),ref:(0,a.setRef)(this,"wrapper")},[t("div",{class:"k-colorpalette-table-wrap"},[t("table",{class:"k-colorpalette-table k-palette",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[t("tbody",[function(e,n,i){return e.map((function(e,o){return t("tr",{role:"row",attrs:this.v3?void 0:{role:"row"},key:o},[l.call(this,e,o,n,i)])}),this)}.call(this,i.colorRows,o,r)])])])]):""},methods:{focus:function(){this.wrapper&&this.wrapper.focus()},onKeyDown:function(e){switch(e.keyCode){case a.Keys.down:this.handleCellNavigation(e,0,1);break;case a.Keys.up:this.handleCellNavigation(e,0,-1);break;case a.Keys.right:this.handleCellNavigation(e,1,0);break;case a.Keys.left:this.handleCellNavigation(e,-1,0);break;case a.Keys.enter:this.handleEnter(e);break;default:return void this.$emit("keydown",e)}this.$emit("keydown",e)},onColorClick:function(e,t){this.isUncontrolled?(this.currentValue=e,this.focusedColor=e):this.focusedColor=e,this.dispatchChangeEvent(e,t)},onFocus:function(e){this.focusedColor=this.selectedColor||this.paletteService.colorRows[0][0],this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.focusedColor=void 0,this.$emit("blur",{event:e,target:this})},handleCellNavigation:function(e,t,n){if(e.preventDefault(),this.focusedColorCooridanates){var i=this.paletteService.getNextCell(this.focusedColorCooridanates,t,n);this.focusedColor=this.paletteService.getColorAt(i)}else this.focusedColor=this.paletteService.colorRows[0][0]},handleEnter:function(e){this.isUncontrolled&&(this.currentValue=this.focusedColor),this.dispatchChangeEvent(this.focusedColor,e)},dispatchChangeEvent:function(e,t){var n=p(e,"rgba");this.$emit("changemodel",e),this.$emit("update:modelValue",e),this.$emit("update:modelRgbaValue",n),this.$emit("change",{event:t,component:this,value:e,rgbaValue:n})},getPaletteInfo:function(){if("string"==typeof this.$props.palette){var e=S[this.$props.palette];return d(e)?{colors:e.colors,columns:this.$props.columns||e.columns||10}:{colors:[],columns:0}}return{colors:this.$props.palette||[],columns:this.$props.columns||10}},createCellId:function(e){return"".concat(this.guid,"_").concat(e.row,"_").concat(e.col)}}},D={},M={opacity:!0},T={palette:I,tileSize:24},R="labels.optional",B=((i={})[R]="(Optional)",i),N=n(5725),P={name:"@progress/kendo-vue-labels",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123828,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},E=s,V=E.h,L=E.version&&"3"===E.version[0],A=E.inject,F={name:"KendoLabel",props:{id:String,editorId:String,editorRef:String,editorValid:{type:Boolean,default:void 0},editorDisabled:Boolean,optional:Boolean},inject:{kendoLocalizationService:{default:null}},created:function(){(0,a.validatePackage)(P)},computed:{labelClassName:function(){return{"k-label":!0,"k-label-empty":!this.defaultSlots,"k-text-error":!1===this.$props.editorValid,"k-text-disabled":!0===this.$props.editorDisabled}}},methods:{onLabelClick:function(e){if(this.$props.editorRef&&this.$props.editorRef.current&&!this.$props.editorDisabled){this.$props.editorRef.current.focus&&(e.preventDefault(),this.$props.editorRef.current.focus());var t=this.$props.editorRef.current.actionElement;t&&(e.preventDefault(),t.click())}}},setup:L?function(){return{v3:!!L,kendoLocalizationService:A("kendoLocalizationService",{})}}:void 0,render:function(e){var t=V||e;this.defaultSlots=(0,a.getDefaultSlots)(this);var n=(0,N.provideLocalizationService)(this),i=this.$props,o=i.id,r=i.editorId,s=i.optional?n.toLanguageString(R,B[R]):"",l=s&&t("span",{class:"k-label-optional"},[s]);return t("label",{id:o,attrs:this.v3?void 0:{id:o,for:r},for:r,onClick:this.onLabelClick,on:this.v3?void 0:{click:this.onLabelClick},class:this.labelClassName},[this.defaultSlots,l])}},z=F,j=s,K=(j.h,j.version&&j.version[0],s),_=(K.h,K.version&&K.version[0],s),H=_.h,W=_.version&&"3"===_.version[0],U=_.inject,q={name:"KendoFloatingLabel",props:{label:String,editorId:String,editorValue:[String,Boolean,Number],editorPlaceholder:String,editorValid:{type:Boolean,default:void 0},editorDisabled:Boolean,id:String,optional:Boolean},data:function(){return{focused:!1}},inject:{kendoLocalizationService:{default:null}},created:function(){(0,a.validatePackage)(P)},computed:{spanClassNames:function(){return{"k-floating-label-container":!0,"k-focus":this.focused,"k-empty":!this.$props.editorPlaceholder&&!this.$props.editorValue&&0!==this.$props.editorValue,"k-text-disabled":this.$props.editorDisabled,"k-rtl":"rtl"===this.$props.dir}},labelClassNames:function(){return{"k-label":!0,"k-text-error":!1===this.$props.editorValid,"k-text-disabled":this.$props.editorDisabled}}},methods:{handleFocus:function(){this.focused=!0},handleBlur:function(){this.focused=!1}},setup:W?function(){return{v3:!!W,kendoLocalizationService:U("kendoLocalizationService",{})}}:void 0,render:function(e){var t=H||e,n=(0,a.getDefaultSlots)(this),i=this.$props,o=i.label,r=i.editorId,s=i.id,l=i.optional,d=(0,N.provideLocalizationService)(this),c=l?d.toLanguageString(R,B[R]):"",u=c&&t("span",{class:"k-label-optional"},[c]);return t("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[n,o?r?t("label",{id:s,attrs:this.v3?void 0:{id:s,for:r},for:r,class:this.labelClassNames},[o,u]):t("span",{id:s,attrs:this.v3?void 0:{id:s},class:this.labelClassNames},[o,u]):null])}},G=q,J=function(){return J=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},J.apply(this,arguments)},X=s,Y=X.h,Z=X.version&&"3"===X.version[0],Q=X.ref,ee={model:{event:"changemodel"},emits:{input:null,change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null,keyup:null,keydown:null,keypress:null},props:{modelValue:{type:[String,Number],default:void 0},disabled:Boolean,defaultValue:{type:[String,Number],default:""},value:{type:[String,Number]},label:{type:String},placeholder:{type:String},required:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},dir:{type:String},id:String,valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String},validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:a.templateDefinition,inputSuffix:a.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String,tabIndex:Number},data:function(){return{hasMounted:!1,autofill:!1,currentValue:"",valueDuringOnChange:"",focused:!1}},created:function(){(0,a.validatePackage)(l),this._input=void 0,this._inputId=(0,a.guid)(),this.$data.valueDuringOnChange=void 0,this.$data.currentValue=this.$props.defaultValue},mounted:function(){this._input=this.v3?this.inputRef:this.$refs.input,this.$data.hasMounted=!0,this.setValidity()},updated:function(){this.setValidity()},setup:Z?function(){return{v3:!!Z,inputRef:Q(null)}}:void 0,render:function(e){var t=this,n=Y||e,i=!this.$props.validityStyles||this.validity().valid,o=this.$props,r=o.label,s=o.id,l=o.required,d=o.iconName,c=o.showValidationIcon,u=o.showLoadingIcon,p=o.showClearButton,h=o.tabIndex,f=s||this._inputId,v=n("input",J(J({domProps:this.v3?null:J(J({},this.$attrs),{placeholder:this.$props.placeholder,id:f,required:l,value:this.computedValue}),attrs:this.v3?void 0:J(J({},this.$attrs),{tabindex:h})},this.$attrs),{placeholder:this.$props.placeholder,id:f,tabindex:h,required:l,value:this.computedValue,class:this.inputInnerClass,ref:this.v3?function(e){t.inputRef=e}:"input",on:this.v3?null:{change:this.handleChange,focus:this.emitFocus,blur:this.emitBlur,keydown:this.handleKeydown,keyup:this.handleKeyup,keypress:this.handleKeypress,input:this.handleInput,animationstart:this.handleAutoFill,animationend:this.handleAutoFillEnd},onKeydown:this.handleKeydown,onKeyup:this.handleKeyup,onKeypress:this.handleKeypress,onChange:this.handleChange,onFocus:this.emitFocus,onBlur:this.emitBlur,onInput:this.handleInput,onAnimationstart:this.handleAutoFill,onAnimationend:this.handleAutoFillEnd})),m=a.templateRendering.call(this,this.$props.inputPrefix,a.getListeners.call(this)),g=a.templateRendering.call(this,this.$props.inputSuffix,a.getListeners.call(this)),y=a.getTemplate.call(this,{h:n,template:m,additionalProps:{value:this.computedValue,valid:i}}),b=a.getTemplate.call(this,{h:n,template:g,additionalProps:{value:this.computedValue,valid:i}}),k=n("span",{class:this.inputWrapperClass()},[d&&n("span",{class:"k-input-icon k-icon k-i-".concat(d)}),this.$props.inputPrefix&&n("span",{class:"k-input-prefix"},[y]),v,this.$props.inputSuffix&&n("span",{class:"k-input-suffix"},[b]),c&&i&&n("span",{class:"k-input-validation-icon k-icon k-i-check"}),c&&!i&&n("span",{class:"k-input-validation-icon k-icon k-i-warning"}),u&&n("span",{class:"k-input-loading-icon k-icon k-i-loading"}),p&&this.computedValue&&n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})])]);return r?n(G,{label:r,attrs:this.v3?void 0:{label:r,editorId:f,editorValue:this.computedValue,editorValid:i,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},editorId:f,editorValue:this.computedValue,editorValid:i,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},this.v3?function(){return[k]}:[k]):k},methods:{emitFocus:function(e){this.$emit("focus",e),this.$data.focused=!0},emitBlur:function(e){this.$emit("blur",e),this.$data.focused=!1},handleKeydown:function(e){this.$emit("keydown",e)},handleKeyup:function(e){this.$emit("keyup",e)},handleKeypress:function(e){this.$emit("keypress",e)},clearClick:function(e){this.emitUpdate(e,"change","")},focus:function(){this._input&&this._input.focus()},validity:function(){var e={badInput:!!this._input&&this._input.validity.badInput,patternMismatch:!!this._input&&this._input.validity.patternMismatch,rangeOverflow:!!this._input&&this._input.validity.rangeOverflow,rangeUnderflow:!!this._input&&this._input.validity.rangeUnderflow,stepMismatch:!!this._input&&this._input.validity.stepMismatch,tooLong:!!this._input&&this._input.validity.tooLong,tooShort:!!this._input&&this._input.validity.tooShort,typeMismatch:!!this._input&&this._input.validity.typeMismatch,valueMissing:!!this._input&&this._input.validity.valueMissing};return J(J({},e),{customError:void 0!==this.$props.validationMessage,valid:void 0!==this.$props.valid?this.$props.valid:!this._input||!this.isInvalid(e)})},isInvalid:function(e){var t=!1;for(var n in e)e.hasOwnProperty(n)&&(t=t||e[n]);return t},setValidity:function(){this._input&&this._input.setCustomValidity&&this._input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"")},handleInput:function(e){this.emitUpdate(e,"input",e.target.value)},handleChange:function(e){this.emitUpdate(e,"change",e.target.value)},emitUpdate:function(e,t,n){var i=this;this.disabled||(this.$data.currentValue=n,this.$data.valueDuringOnChange=n,this.$nextTick((function(){i.$emit("changemodel",n),i.$emit("update:modelValue",n),i.$emit(t,{event:e,value:n,component:i,target:e.target,validity:i.validity()}),i.$data.valueDuringOnChange=void 0})))},handleAutoFill:function(e){if("autoFillStart"===e.animationName){var t=e.target.parentNode;t&&t.classList.contains("k-empty")&&(this.$data.autofill=!0,t.classList.remove("k-empty"))}},handleAutoFillEnd:function(e){"autoFillEnd"===e.animationName&&e.target.parentNode&&(this.$data.autofill=!1)},name:function(){return this.$props.name},inputWrapperClass:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,r=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return(e={"k-textbox":!0,"k-input":!0})["k-input-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!r,e["k-required"]=this.required,e["k-disabled"]=this.$props.disabled,e[this.wrapperClass]=this.wrapperClass,e}},computed:{spanClassNames:{get:function(){var e=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.$data.focused,"k-empty":!(0===this.computedValue||this.computedValue||this.$props.placeholder||this.$data.autofill),"k-autofill":this.$data.autofill,"k-invalid":!e&&void 0!==e,"k-rtl":"rtl"===this.$props.dir}}},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e},computedValue:{get:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentValue}}}},te=ee,ne=s,ie=ne.h,oe=ne.version&&"3"===ne.version[0],re={name:"KendoHexInput",emits:{hexchange:null,blur:null,focus:null},props:{tabIndex:Number,hex:String,disabled:Boolean},computed:{isHexValid:function(){return!!p(this.currentHex,"rgba")}},data:function(){return{currentHex:this.$props.hex,originalHex:this.$props.hex}},mounted:function(){this._input=this.$refs.input._input},setup:oe?function(){return{v3:!!oe}}:void 0,watch:{hex:function(e){this.currentHex=e}},render:function(e){return(ie||e)(te,{value:this.currentHex,attrs:this.v3?void 0:{value:this.currentHex,valid:this.isHexValid,disabled:this.$props.disabled,tabIndex:this.tabIndex},onInput:this.onChange,on:this.v3?void 0:{input:this.onChange,change:this.onChange,focus:this.onFocus,blur:this.onBlur},onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,valid:this.isHexValid,disabled:this.$props.disabled,tabIndex:this.tabIndex,ref:"input"})},methods:{onChange:function(e){var t=e.target.value,n=p(t,"rgba");this.currentHex=t,d(n)&&this.$emit("hexchange",{hex:t,value:n,event:e})},onBlur:function(e){d(p(this.hex,"rgba"))||(this.currentHex=this.originalHex),this.$emit("blur",e)},onFocus:function(e){this.$emit("focus",e)}}},se=n(1536),ae="numerictextbox.increment",le="numerictextbox.decrement",de="slider.increment",ce="slider.decrement",ue="slider.dragTitle",pe="colorGradient.dragHandle",he="colorGradient.r",fe="colorGradient.g",ve="colorGradient.b",me="colorGradient.a",ge="colorGradient.hex",ye="colorGradient.inputColorButton",be="colorGradient.rLabel",ke="colorGradient.gLabel",we="colorGradient.bLabel",Se="colorGradient.aLabel",xe="colorGradient.contrastRatio",Ce="colorGradient.colorGradientAALevel",$e="colorGradient.colorGradientAAALevel",Ie="colorGradient.colorGradientPass",Oe="colorGradient.colorGradientFail",De="flatColorPicker.cancelBtn",Me="flatColorPicker.applyBtn",Te="flatColorPicker.gradientBtn",Re="flatColorPicker.paletterBtn",Be="flatColorPicker.clearBtn",Ne="checkbox.validation",Pe="checkbox.optionalText",Ee="switch.validation",Ve=((o={})[ae]="Increase value",o[le]="Decrease value",o["slider.increment"]="Increase",o["slider.decrement"]="Decrease",o[ue]="Drag",o[pe]="Color well with two-dimensional slider for selecting\n saturation and lightness. Selected color is",o[ye]="Change the color input",o[he]="r",o[he]="r",o[fe]="g",o[ve]="b",o[me]="a",o[be]="red chanel",o[ke]="green chanel",o[we]="blue chanel",o[Se]="alpha chanel",o[ge]="hex",o[xe]="Contrast ratio",o[Ce]="AA",o[$e]="AAA",o[Ie]="Pass",o[Oe]="Fail",o[De]="Cancel",o[Me]="Apply",o[Te]="Gradient",o[Re]="Palette",o[Be]="Clear",o[Ne]="Please check this box if you want to proceed!",o[Pe]="(Optional)",o["radioButton.validation"]="Please select option if you want to proceed!",o[Ee]="Please turn on if you want to proceed!",o["colorPicker.dropdownButtonAriaLabel"]="Select",o),Le=function(){return Le=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Le.apply(this,arguments)},Ae=s,Fe=Ae.h,ze=Ae.version&&"3"===Ae.version[0],je=["rgba","rgb","hex"],Ke={name:"KendoColorInput",emits:{hexchange:null,rgbachange:null},props:{tabIndex:Number,rgba:{type:Object,default:function(){return{}}},hex:String,opacity:Boolean,disabled:Boolean},inject:{kendoLocalizationService:{default:null}},created:function(){this.hexInputId=(0,a.guid)()},data:function(){return{inputMode:je[1]}},mounted:function(){this.lastFocusable=this.$refs.hexinput||this.$refs.numerica||this.$refs.numericb},updated:function(){this.lastFocusable=this.$refs.hexinput||this.$refs.numerica||this.$refs.numericb},setup:ze?function(){return{v3:!!ze}}:void 0,render:function(e){var t=Fe||e,n=(0,N.provideLocalizationService)(this),i=n.toLanguageString(ge,Ve[ge]),o=n.toLanguageString(ye,Ve[ye]),r=n.toLanguageString(he,Ve[he]),s=n.toLanguageString(fe,Ve[fe]),a=n.toLanguageString(ve,Ve[ve]),l=n.toLanguageString(me,Ve[me]),d=n.toLanguageString(be,Ve[be]),c=n.toLanguageString(ke,Ve[ke]),u=n.toLanguageString(we,Ve[we]),p=n.toLanguageString(Se,Ve[Se]);return t("div",{class:"k-colorgradient-inputs k-hstack"},[t("div",{class:"k-vstack"},[t(se.Button,{ariaLabel:o,attrs:this.v3?void 0:{ariaLabel:o,tabIndex:this.tabIndex,type:"button",fillMode:"flat",icon:"arrows-kpi"},tabIndex:this.tabIndex,type:"button",fillMode:"flat",icon:"arrows-kpi",class:"k-colorgradient-toggle-mode k-icon-button",onClick:this.onToggleModeChange,on:this.v3?void 0:{click:this.onToggleModeChange,keydown:this.onKeyDown},onKeydown:this.onKeyDown})]),"hex"===this.inputMode&&t("div",{class:"k-vstack k-flex-1"},[t("span",{class:"k-hex-value"},[t(re,{id:this.hexInputId,attrs:this.v3?void 0:{id:this.hexInputId,tabIndex:this.tabIndex,hex:this.$props.hex,disabled:this.$props.disabled},tabIndex:this.tabIndex,hex:this.$props.hex,onHexchange:this.onHexChange,on:this.v3?void 0:{hexchange:this.onHexChange},disabled:this.$props.disabled,ref:"hexinput"})]),t(z,{class:"k-colorgradient-input-label",for:this.hexInputId,attrs:this.v3?void 0:{for:this.hexInputId}},this.v3?function(){return[i]}:[i])]),("rgb"===this.inputMode||"rgba"===this.inputMode)&&[t("div",{class:"k-vstack"},[t(ln,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.r,min:0,max:255,spinners:!1,format:"n",ariaLabel:d,disabled:this.$props.disabled},value:this.$props.rgba.r,min:0,max:255,spinners:!1,format:"n",ariaLabel:d,onChange:this.onRgbaRChange,on:this.v3?void 0:{change:this.onRgbaRChange},disabled:this.$props.disabled}),t(z,{class:"k-colorgradient-input-label"},this.v3?function(){return[r]}:[r])]),t("div",{class:"k-vstack"},[t(ln,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.g,min:0,max:255,spinners:!1,format:"n",ariaLabel:c,disabled:this.$props.disabled},value:this.$props.rgba.g,min:0,max:255,spinners:!1,format:"n",ariaLabel:c,onChange:this.onRgbaGChange,on:this.v3?void 0:{change:this.onRgbaGChange},disabled:this.$props.disabled}),t(z,{class:"k-colorgradient-input-label"},this.v3?function(){return[s]}:[s])]),t("div",{class:"k-vstack"},[t(ln,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.b,min:0,max:255,spinners:!1,format:"n",ariaLabel:u,disabled:this.$props.disabled},value:this.$props.rgba.b,min:0,max:255,spinners:!1,format:"n",ariaLabel:u,onChange:this.onRgbaBChange,on:this.v3?void 0:{change:this.onRgbaBChange},disabled:this.$props.disabled,ref:"numericb"}),t(z,{class:"k-colorgradient-input-label"},this.v3?function(){return[a]}:[a])])],"rgba"===this.inputMode&&t("div",{class:"k-vstack"},[this.$props.opacity&&t(ln,{tabIndex:this.tabIndex,attrs:this.v3?void 0:{tabIndex:this.tabIndex,value:this.$props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",ariaLabel:p,disabled:this.$props.disabled},value:this.$props.rgba.a,min:0,max:1,step:.01,spinners:!1,format:"n2",ariaLabel:p,onChange:this.onRgbaAChange,on:this.v3?void 0:{change:this.onRgbaAChange},disabled:this.$props.disabled,ref:"numerica"}),this.$props.opacity&&t(z,{class:"k-colorgradient-input-label"},this.v3?function(){return[l]}:[l])])])},methods:{onHexChange:function(e){this.$emit("hexchange",e.hex,e.value,e)},onRgbaRChange:function(e){this.dispatchRgbaChange({r:e.value},e)},onRgbaGChange:function(e){this.dispatchRgbaChange({g:e.value},e)},onRgbaBChange:function(e){this.dispatchRgbaChange({b:e.value},e)},onRgbaAChange:function(e){this.dispatchRgbaChange({a:e.value},e)},dispatchRgbaChange:function(e,t){var n=Le({},this.$props.rgba);void 0!==e.r&&(n.r=e.r),void 0!==e.g&&(n.g=e.g),void 0!==e.b&&(n.b=e.b),void 0!==e.a&&(n.a=e.a),this.$emit("rgbachange",n,t)},onToggleModeChange:function(){var e=je.length-1===je.indexOf(this.inputMode)?0:je.indexOf(this.inputMode)+1;if(this.$props.opacity)this.inputMode=je[e];else{var t="rgba"===je[e]?e+1:e;this.inputMode=je[t]}},onKeyDown:function(e){e.keyCode===a.Keys.enter&&e.stopPropagation()}}},_e=s,He=_e.h,We=_e.version&&"3"===_e.version[0],Ue={name:"KendoColorContrastLabels",props:{bgColor:Object,rgba:Object},inject:{kendoLocalizationService:{default:null}},setup:We?function(){return{v3:!!We}}:void 0,render:function(e){var t=He||e,n=(0,N.provideLocalizationService)(this),i=n.toLanguageString(xe,Ve[xe]),o=n.toLanguageString(Ce,Ve[Ce]),r=n.toLanguageString($e,Ve[$e]),s=n.toLanguageString(Ie,Ve[Ie]),a=n.toLanguageString(Oe,Ve[Oe]),l=k(this.$props.rgba,this.$props.bgColor),d=4.5.toFixed(1),c=7..toFixed(1),u="".concat(i,": ").concat(l.toFixed(2)),p="".concat(o,": ").concat(d),h="".concat(r,": ").concat(c),f=l>=4.5,v=l>=7,m=t("span",{key:1,class:"k-contrast-validation k-text-success"},[s," ",t("span",{class:"k-icon k-i-check"})]),g=t("span",{key:2,class:"k-contrast-validation k-text-error"},[a," ",t("span",{class:"k-icon k-i-close"})]);return t("div",{class:"k-vbox k-colorgradient-color-contrast"},[t("div",{class:"k-contrast-ratio"},[t("span",{class:"k-contrast-ratio-text"},[u]),f?t("span",{class:"k-contrast-validation k-text-success"},[t("span",{class:"k-icon k-i-check"}),v&&t("span",{class:"k-icon k-i-check"})]):t("span",{class:"k-contrast-validation k-text-error"},[t("span",{class:"k-icon k-i-close"})])]),t("div",[t("span",[p]),f?m:g]),t("div",[t("span",[h]),v?m:g])])}},qe=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return{length:Math.sqrt(Math.pow(n,2)+Math.pow(i,2)),angle:Math.atan2(i,n)}},Ge=s,Je=Ge.h,Xe=Ge.version&&"3"===Ge.version[0],Ye={name:"KendoColorContrastSvg",props:{metrics:Object,backgroundColor:String,hsva:Object},setup:Xe?function(){return{v3:!!Xe}}:void 0,render:function(e){var t,n,i=this,o=Je||e,r=function(e,t){if(0===e.length)return"";var n=e.reduce((function(e,n,i,o){return 0===i?"M ".concat(n[0],",").concat(n[1]):"".concat(e," ").concat(t(n,i,o))}),"");return o("path",{d:n,attrs:this.v3?void 0:{d:n,fill:"none",stroke:"white","stroke-width":"1"},fill:"none",stroke:"white","stroke-width":"1"})},s=this.$props.metrics,a=function e(t,n,o,r,a){var l=(o+r)/2,d=Object.assign({},i.$props.hsva,{s:n/s.width,v:1-l/s.height}),c=k(v(m(d)),v(i.$props.backgroundColor||""));return o+.5>r?c<t+1&&c>t-1?l:null:a(c,t)?e(t,n,o,r-(r-o)/2,a):e(t,n,o+(r-o)/2,r,a)},l=function(e,t,n){void 0===n&&(n=!1);for(var i=[],o=0;o<=s.width;o+=s.width/t){var r=a(e,o,0,s.height,n?function(e,t){return e<t}:function(e,t){return e>t});null!==r&&i.push([o,r])}return i},d=(n=qe,t=function(e,t,i,o){var r=n(t||e,i||e),s=r.angle+(o?Math.PI:0),a=.1*r.length;return[e[0]+Math.cos(s)*a,e[1]+Math.sin(s)*a]},function(e,n,i){var o=t(i[n-1],i[n-2],e),r=o[0],s=o[1],a=t(e,i[n-1],i[n+1],!0),l=a[0],d=a[1];return"C ".concat(r,",").concat(s," ").concat(l,",").concat(d," ").concat(e[0],",").concat(e[1])});return o("svg",{xmlns:"http://www.w3.org/2000/svg",attrs:this.v3?void 0:{xmlns:"http://www.w3.org/2000/svg"},class:"k-color-contrast-svg",style:{position:"absolute",overflow:"visible",pointerEvents:"none",left:0,top:0,zIndex:3}},[r.call(this,l(4.5,16),d),r.call(this,l(4.5,16,!0),d),r.call(this,l(7,16),d),r.call(this,l(7,16,!0),d)])}},Ze=Ye,Qe=s,et=Qe.h,tt=Qe.version&&"3"===Qe.version[0],nt="rgba(255, 255, 255, 1)",it={name:"KendoColorGradient",model:{event:"changemodel"},emits:{change:null,focus:null,blur:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,keydown:null},inject:{kendoLocalizationService:{default:null}},props:{modelValue:String,modelRgbaValue:String,defaultValue:String,value:String,opacity:{type:Boolean,default:!0},backgroundColor:String,disabled:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String,tabIndex:Number,innerTabIndex:{type:Number,default:void 0}},created:function(){(0,a.validatePackage)(l),this.guid=(0,a.guid)()},computed:{valueSet:function(){return this.value||this.modelValue||this.modelRgbaValue},computedValue:function(){var e=this.valueSet||this.currentValue||this.defaultValue||p(nt,"rgba");return d(p(e,"hex",this.opacity))||(e=nt),e},hsva:function(){return this.valueSet?f(this.computedValue):this.currentHsva||f(this.computedValue)},rgba:function(){return this.valueSet?v(this.computedValue):this.currentRgba},hex:function(){return this.valueSet?p(this.computedValue,"hex",this.opacity):this.currentHex},computedBgColor:function(){return this.currentBgColor||g(this.hsva.h)},computedTabIndex:function(){return void 0!==this.innerTabIndex?this.innerTabIndex:this.focused?0:-1}},data:function(){return{currentValue:void 0,currentBgColor:void 0,isFirstRender:!0,currentHsva:void 0,currentRgba:void 0,currentHex:void 0,focused:!1}},mounted:function(){this.setAlphaSliderBackground(this.computedBgColor),this.$el&&(this.draggable=this.$refs.draggable,this.gradientWrapper=this.draggable&&this.draggable.element),this.alphaSlider=this.v3?this.alphaSliderRef:this.$refs.alphaSlider,this.isFirstRender&&(this.isFirstRender=!1)},destroyed:function(){var e;e=this.guid,delete D[e]},updated:function(){this.setAlphaSliderBackground(this.computedBgColor)},setup:tt?function(){return{v3:!!tt}}:void 0,render:function(e){var t=this,n=this,i=et||e,o=(0,a.classNames)("k-colorgradient",{"k-disabled":this.$props.disabled}),r=(0,N.provideLocalizationService)(this).toLanguageString(pe,Ve[pe]),s=function(){var e={};if(!this.isFirstRender){var t=this.getGradientRectMetrics(),n=(1-this.hsva.v)*t.height,o=this.hsva.s*t.width;e.top="".concat(n,"px"),e.left="".concat(o,"px")}return i("div",{class:"k-hsv-draghandle k-draghandle",role:"slider",attrs:this.v3?void 0:{role:"slider","aria-label":r+"".concat(this.value||"none"),"aria-valuenow":Math.round(100*this.hsva.s),"aria-valuetext":"\n saturation: ".concat(Math.round(100*this.hsva.s),"%,\n value: ").concat(Math.round(100*this.hsva.v),"%"),tabindex:this.computedTabIndex},"aria-label":r+"".concat(this.value||"none"),"aria-valuenow":Math.round(100*this.hsva.s),"aria-valuetext":"\n saturation: ".concat(Math.round(100*this.hsva.s),"%,\n value: ").concat(Math.round(100*this.hsva.v),"%"),tabindex:this.computedTabIndex,onKeydown:this.dragKeyDown,on:this.v3?void 0:{keydown:this.dragKeyDown},style:e,ref:(0,a.setRef)(this,"draghandle")})};return i("div",{id:this.$props.id,attrs:this.v3?void 0:{id:this.$props.id,role:-1!==this.$props.tabIndex?"textbox":void 0,"aria-disabled":this.$props.disabled,tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},class:o,role:-1!==this.$props.tabIndex?"textbox":void 0,"aria-disabled":this.$props.disabled,tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDownHandler},onBlur:this.onBlur,onKeydown:this.onKeyDownHandler},[i("div",{class:"k-colorgradient-canvas k-hstack"},[i("div",{class:"k-hsv-rectangle",style:{background:this.computedBgColor}},[i(a.Draggable,{onDrag:this.onDrag,on:this.v3?void 0:{drag:this.onDrag,release:this.onRelease},onRelease:this.onRelease,ref:"draggable"},this.v3?function(){return[i("div",{class:"k-hsv-gradient",style:{touchAction:"none"},tabindex:-1,attrs:t.v3?void 0:{tabindex:-1},onClick:t.onGradientWrapperClick,on:t.v3?void 0:{click:t.onGradientWrapperClick}},[s.call(t)])]}:[i("div",{class:"k-hsv-gradient",style:{touchAction:"none"},tabindex:-1,attrs:t.v3?void 0:{tabindex:-1},onClick:t.onGradientWrapperClick,on:t.v3?void 0:{click:t.onGradientWrapperClick}},[s.call(t)])]),this.backgroundColor&&!this.isFirstRender&&i(Ze,{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,attrs:this.v3?void 0:{metrics:this.gradientWrapper?this.getGradientRectMetrics():void 0,hsva:this.hsva,backgroundColor:this.backgroundColor},hsva:this.hsva,backgroundColor:this.backgroundColor})]),i("div",{class:"k-hsv-controls k-hstack"},[i(jn,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,value:this.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,disabled:this.$props.disabled},value:this.hsva.h,buttons:!1,vertical:!0,min:0,max:360,step:5,onChange:this.onHueSliderChange,on:this.v3?void 0:{change:this.onHueSliderChange},class:"k-hue-slider k-colorgradient-slider",disabled:this.$props.disabled}),this.$props.opacity&&i(jn,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,value:d(this.hsva.a)?100*this.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,disabled:this.$props.disabled},value:d(this.hsva.a)?100*this.hsva.a:100,buttons:!1,vertical:!0,min:0,max:100,step:1,onChange:this.onAlphaSliderChange,on:this.v3?void 0:{change:this.onAlphaSliderChange},class:"k-alpha-slider k-colorgradient-slider",disabled:this.$props.disabled,ref:this.v3?function(e){n.alphaSliderRef=e}:"alphaSlider"})])]),i(Ke,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,rgba:this.rgba,hex:this.hex,opacity:this.$props.opacity,disabled:this.$props.disabled},rgba:this.rgba,onRgbachange:this.onRgbaChange,on:this.v3?void 0:{rgbachange:this.onRgbaChange,hexchange:this.onHexChange},hex:this.hex,onHexchange:this.onHexChange,opacity:this.$props.opacity,disabled:this.$props.disabled,ref:"colorInput"}),this.backgroundColor&&i(Ue,{bgColor:v(this.backgroundColor),attrs:this.v3?void 0:{bgColor:v(this.backgroundColor),rgba:this.rgba},rgba:this.rgba})])},methods:{onKeyDownHandler:function(e){var t=this.$el;void 0===this.innerTabIndex&&(this.focused=(0,a.focusContainer)(e,t)),this.$emit("keydown",e)},onHexChange:function(e,t,n){var i=v(t),o=f(t);this.currentHsva=o,this.currentBgColor=g(o.h),this.currentRgba=i,this.currentHex=e,this.dispatchChangeEvent(t,n.event,e,t)},onRgbaChange:function(e,t){var n=function(e){var t=c(e.r,0,255),n=c(e.g,0,255),i=c(e.b,0,255),o=c(e.a,0,1);return u.Color.fromBytes(t,n,i,o).toCssRgba()}(e),i=p(n,"hex",this.opacity),o=f(n);this.currentHsva=o,this.currentBgColor=g(o.h),this.currentRgba=e,this.currentHex=i,this.dispatchChangeEvent(n,t.event,i,n)},onAlphaSliderChange:function(e){this.handleHsvaChange(Object.assign({},this.hsva,{a:e.value/100}),e.event)},onHueSliderChange:function(e){this.handleHsvaChange(Object.assign({},this.hsva,{h:e.value}),e.event)},onDrag:function(e){this.gradientWrapper.classList.add("k-dragging"),this.changePosition(e)},onRelease:function(){this.gradientWrapper.classList.remove("k-dragging")},onGradientWrapperClick:function(e){this.firstFocusable=(0,a.getRef)(this,"draghandle"),this.firstFocusable.focus(),this.changePosition(e)},move:function(e,t,n){var i=this.hsva;i[t]+=n*(e.shiftKey?.01:.05),i[t]<0&&(i[t]=0),i[t]>1&&(i[t]=1),e.preventDefault(),this.handleHsvaChange(i,e)},dragKeyDown:function(e){switch(e.keyCode){case a.Keys.left:this.move(e,"s",-1);break;case a.Keys.right:this.move(e,"s",1);break;case a.Keys.up:this.move(e,"v",1);break;case a.Keys.down:this.move(e,"v",-1);case a.Keys.enter:case a.Keys.esc:}},changePosition:function(e){var t=this.getGradientRectMetrics(),n=e.clientX-t.left,i=e.clientY-t.top,o=c(n,0,t.width),r=c(i,0,t.height),s=Object.assign({},this.hsva,{s:o/t.width,v:1-r/t.height});this.handleHsvaChange(s,e,e.event)},handleHsvaChange:function(e,t){var n=m(e),i=p(n,"hex",this.opacity),o=p(n,"rgba");this.currentHsva=e,this.currentBgColor=g(e.h),this.currentRgba=v(n),this.currentHex=i,this.dispatchChangeEvent(n,t,i,o)},dispatchChangeEvent:function(e,t,n,i){this.currentValue=e,this.$emit("changemodel",n),this.$emit("update:modelRgbaValue",i),this.$emit("update:modelValue",n),this.$emit("change",{event:t,target:this,value:n,rgbaValue:i})},onFocus:function(e){this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.$emit("blur",{event:e,target:this})},setAlphaSliderBackground:function(e){this.$props.opacity&&this.alphaSlider&&this.alphaSlider.sliderTrack&&(this.alphaSlider.sliderTrack.style.background="linear-gradient(to top, transparent, ".concat(e,")"))},getGradientRectMetrics:function(){var e=this.gradientWrapper.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height,x:e.x,y:e.y}},focus:function(){var e=this;this.focused=!0,setTimeout((function(){(0,a.focusFirstFocusableChild)(e.$el)}),1)}}},ot=n(3266),rt=s,st=rt.h,at=rt.version&&"3"===rt.version[0],lt={name:"KendoPicker",props:{popupSettings:Object,dir:String,open:Boolean,popupAnchor:String,id:String},computed:{horizontalAlign:function(){return"rtl"===this.$props.dir?"right":"left"},anchorAlign:function(){return{horizontal:this.horizontalAlign,vertical:"bottom"}},popupAlign:function(){return{horizontal:this.horizontalAlign,vertical:"top"}}},setup:at?function(){return{v3:!!at}}:void 0,render:function(e){var t=st||e,n=(0,a.getDefaultSlots)(this),i=this.$props.popupSettings,o=i.popupClass,r=i.appendTo,s=i.animate,l=i.className;return t(ot.Popup,{id:this.id,attrs:this.v3?void 0:{id:this.id,anchor:this.$props.popupAnchor,anchorAlign:this.anchorAlign,popupAlign:this.popupAlign,show:this.$props.open,appendTo:r,animate:s,popupClass:o},anchor:this.$props.popupAnchor,anchorAlign:this.anchorAlign,popupAlign:this.popupAlign,show:this.$props.open,onOpen:this.onOpen,on:this.v3?void 0:{open:this.onOpen,close:this.onClose},onClose:this.onClose,appendTo:r,animate:s,popupClass:o,class:(0,a.classNames)("k-reset",l)},this.v3?function(){return[n]}:[n])},methods:{onOpen:function(){this.$emit("open")},onClose:function(){this.$emit("close")}}},dt=lt,ct=function(){return ct=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ct.apply(this,arguments)},ut=s,pt=ut.h,ht=ut.version&&"3"===ut.version[0],ft={name:"KendoFlatColorPicker",emits:{viewchange:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,focus:null,blur:null,focusout:null,keydown:null,change:null},props:{modelValue:String,modelRgbaValue:String,value:String,prevValue:String,tabIndex:Number,disabled:Boolean,view:{type:String,default:"combo",validator:function(e){return["gradient","palette","combo"].includes(e)}},selectedView:{type:Number,default:void 0},header:[String,Function,Object],footer:[String,Function,Object],showClearButton:{type:Boolean,default:!0},showPreview:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0},gradientSettings:{type:Object,default:function(){return M}},paletteSettings:{type:Object,default:function(){return T}}},inject:{kendoLocalizationService:{default:null}},created:function(){(0,a.validatePackage)(l)},computed:{isColorGradient:function(){return"combo"!==this.view?"gradient"===this.view:void 0!==this.selectedView?0===this.selectedView:"gradient"===this.currentView},computedColor:function(){return void 0!==this.value?this.value:void 0!==this.modelValue?this.modelValue:void 0!==this.modelRgbaValue?this.modelRgbaValue:this.colorValue},computedPrevColor:function(){return void 0!==this.prevValue?this.prevValue:this.currentPrevColor},previewClass:function(){return{"k-coloreditor-preview-color":!0,"k-color-preview":!0,"k-no-color":!this.colorValue}},currentClass:function(){return{"k-coloreditor-current-color":!0,"k-color-preview":!0,"k-no-color":!this.computedPrevColor}},computedTabIndex:function(){return this.focused?0:-1}},data:function(){var e=this.value||this.defaultValue||this.modelValue||this.modelRgbaValue;return{currentView:"gradient",colorValue:e,currentPrevColor:e,focused:!1}},setup:ht?function(){return{v3:!!ht}}:void 0,render:function(e){var t=this,n=this,i=pt||e,o=(0,N.provideLocalizationService)(this),r=o.toLanguageString(Te,Ve[Te]),s=o.toLanguageString(Re,Ve[Re]),l=o.toLanguageString(Be,Ve[Be]),d=o.toLanguageString(De,Ve[De]),c=o.toLanguageString(Me,Ve[Me]),u=a.templateRendering.call(this,this.$props.header,a.getListeners.call(this)),p=a.templateRendering.call(this,this.$props.footer,a.getListeners.call(this)),h=a.getTemplate.call(this,{h:i,template:u}),f=a.getTemplate.call(this,{h:i,template:p});return i("div",{tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),attrs:this.v3?void 0:{tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled),"aria-disabled":this.$props.disabled},onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,focusout:this.onFocusout,keydown:this.onKeyDownHandler},onBlur:this.onBlur,onFocusout:this.onFocusout,onKeydown:this.onKeyDownHandler,class:(0,a.classNames)("k-flatcolorpicker k-coloreditor",{"k-disabled":this.$props.disabled}),"aria-disabled":this.$props.disabled},[h,this.$props.showClearButton&&this.$props.showPreview&&i("div",{class:"k-coloreditor-header k-hstack"},["combo"===this.$props.view&&i("div",{class:"k-coloreditor-header-actions k-hstack"},[i(se.ButtonGroup,this.v3?function(){return[i(se.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,ariaLabel:r},type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"gradient")}},ariaLabel:r,onClick:function(e){return n.handleViewChange(e,"gradient")}},t.v3?function(){return[i("span",{class:"k-icon k-i-color-canvas"})]}:[i("span",{class:"k-icon k-i-color-canvas"})]),i(se.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,ariaLabel:s},type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"palette")}},ariaLabel:s,onClick:function(e){return n.handleViewChange(e,"palette")}},t.v3?function(){return[i("span",{class:"k-icon k-i-palette"})]}:[i("span",{class:"k-icon k-i-palette"})])]}:[i(se.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,ariaLabel:r},type:"button",togglable:!0,fillMode:"flat",selected:t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"gradient")}},ariaLabel:r,onClick:function(e){return n.handleViewChange(e,"gradient")}},t.v3?function(){return[i("span",{class:"k-icon k-i-color-canvas"})]}:[i("span",{class:"k-icon k-i-color-canvas"})]),i(se.Button,{tabIndex:t.computedTabIndex,attrs:t.v3?void 0:{tabIndex:t.computedTabIndex,type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,ariaLabel:s},type:"button",togglable:!0,fillMode:"flat",selected:!t.isColorGradient,onKeydown:t.handleButtonKeydown,on:t.v3?void 0:{keydown:t.handleButtonKeydown,click:function(e){return n.handleViewChange(e,"palette")}},ariaLabel:s,onClick:function(e){return n.handleViewChange(e,"palette")}},t.v3?function(){return[i("span",{class:"k-icon k-i-palette"})]}:[i("span",{class:"k-icon k-i-palette"})])])]),i("div",{class:"k-spacer"}),i("div",{class:"k-coloreditor-header-actions k-hstack"},[this.$props.showClearButton&&i(se.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button",fillMode:"flat",ariaLabel:l},type:"button",fillMode:"flat",ariaLabel:l,onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleResetColor},onClick:this.handleResetColor},this.v3?function(){return[i("span",{class:"k-icon k-i-reset-color"})]}:[i("span",{class:"k-icon k-i-reset-color"})]),this.$props.showPreview&&i("div",{class:"k-coloreditor-preview k-vstack"},[i("span",{class:this.previewClass,style:{background:this.colorValue}},[!this.colorValue&&i("span",{class:"k-color-preview-mask"})]),i("span",{class:this.currentClass,style:{background:this.computedPrevColor},onClick:this.handlePrevColorClick,on:this.v3?void 0:{click:this.handlePrevColorClick}},[!this.computedPrevColor&&i("span",{class:"k-color-preview-mask"})])])])]),i("div",{class:"k-coloreditor-views k-vstack"},[this.isColorGradient?function(){return i(it,ct({attrs:this.v3?void 0:ct({tabIndex:-1,value:this.colorValue,innerTabIndex:this.computedTabIndex},this.gradientSettings),ref:(0,a.setRef)(this,"gradient"),tabIndex:-1,value:this.colorValue,innerTabIndex:this.computedTabIndex,onChange:this.handleColorChange,onKeydown:this.innerKeyDown,on:this.v3?void 0:{change:this.handleColorChange,keydown:this.innerKeyDown}},this.gradientSettings))}.call(this):function(){return i(O,ct({on:this.v3?void 0:{change:this.handlePaletteColorChange,keydown:this.gradientKeyDown},ref:(0,a.setRef)(this,"palette"),tabIndex:this.computedTabIndex,value:this.colorValue,attrs:this.v3?void 0:ct({tabIndex:this.computedTabIndex,value:this.colorValue},this.paletteSettings),onChange:this.handlePaletteColorChange,onKeydown:this.gradientKeyDown},this.paletteSettings))}.call(this)]),this.$props.showButtons&&i("div",{class:"k-coloreditor-footer k-actions k-actions-end"},[i(se.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button"},type:"button",class:"k-coloreditor-cancel",onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleCancelBtnClick},onClick:this.handleCancelBtnClick},this.v3?function(){return[d]}:[d]),i(se.Button,{tabIndex:this.computedTabIndex,attrs:this.v3?void 0:{tabIndex:this.computedTabIndex,type:"button"},type:"button",class:"k-coloreditor-apply k-primary",onKeydown:this.handleButtonKeydown,on:this.v3?void 0:{keydown:this.handleButtonKeydown,click:this.handleApplyBtnClick},onClick:this.handleApplyBtnClick},this.v3?function(){return[c]}:[c])]),f])},methods:{focus:function(){var e=this;this.focused=!0,setTimeout((function(){(0,a.focusFirstFocusableChild)(e.$el)}),1)},onKeyDownHandler:function(e){var t=this.$el;this.focused=(0,a.focusContainer)(e,t),this.$emit("keydown",e)},handleViewChange:function(e,t){this.currentView=t,this.$emit("viewchange",{event:e,viewType:t})},handleResetColor:function(){this.colorValue=null},handleColorChange:function(e){this.colorValue=e.value},handlePaletteColorChange:function(e){this.colorValue=e.value},handleApplyBtnClick:function(e){var t=p(this.colorValue,"rgba");this.currentPrevColor=this.colorValue,this.$emit("changemodel",this.colorValue),this.$emit("update:modelValue",this.colorValue),this.$emit("update:modelRgbaValue",t),this.$emit("change",{event:e,value:this.colorValue,rgbaValue:t})},innerKeyDown:function(e){e.keyCode===a.Keys.enter&&this.handleApplyBtnClick(e)},gradientKeyDown:function(e){e.stopPropagation(),this.showButtons||e.keyCode!==a.Keys.enter||this.handleApplyBtnClick(e)},handleButtonKeydown:function(e){e.keyCode===a.Keys.enter&&e.stopPropagation()},handleCancelBtnClick:function(){this.colorValue=this.computedPrevColor},handlePrevColorClick:function(){this.colorValue=this.computedPrevColor},onFocus:function(e){this.$emit("focus",{event:e,target:this})},onBlur:function(e){this.$emit("blur",{event:e,target:this})},onFocusout:function(e){this.$emit("focusout",{event:e,target:this})}}},vt=ft,mt=function(){return mt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mt.apply(this,arguments)},gt=s,yt=gt.h,bt=gt.version&&"3"===gt.version[0],kt={name:"KendoColorPicker",model:{event:"changemodel"},emits:{open:null,close:null,changemodel:null,"update:modelValue":null,"update:modelRgbaValue":null,activecolorclick:null,focus:null,blur:null,change:null,viewchange:null},props:{modelValue:String,modelRgbaValue:String,value:{type:String,default:void 0},defaultValue:String,disabled:Boolean,dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,showClearButton:{type:Boolean,default:!0},showPreview:{type:Boolean,default:!0},showButtons:{type:Boolean,default:!0},paletteSettings:{type:Object,default:function(){return T}},valid:{type:Boolean,default:!0},tabIndex:{type:Number,default:0},title:String,icon:String,iconClassName:String,popupSettings:{type:Object,default:function(){return{}}},gradientSettings:{type:Object,default:function(){return M}},flatColorPickerSettings:{type:Object,default:function(){return{}}},open:{type:Boolean,default:void 0},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},view:{type:String,default:"combo",validator:function(e){return["gradient","palette","combo"].includes(e)}},selectedView:{type:Number,default:void 0}},data:function(){return{focused:!1,currentValue:this.$props.defaultValue,currentOpen:!1}},computed:{isValueControlled:function(){return void 0!==this.$props.value},isOpenControlled:function(){return void 0!==this.$props.open},computedValue:function(){return this.isValueControlled?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:void 0!==this.$props.modelRgbaValue?this.$props.modelRgbaValue:void 0!==this.currentValue?this.currentValue:this.defaultValue},computedOpen:function(){return this.isOpenControlled?this.$props.open:this.currentOpen},computedIconClassName:function(){var e=this.$props.icon;return this.$props.iconClassName||e&&"k-icon k-i-".concat(e)},wrapperClassName:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded;return(e={"k-picker":!0,"k-colorpicker":!0,"k-icon-picker":!0})["k-picker-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-picker-".concat(i)]=i,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!this.valid,e["k-disabled"]=this.disabled,e["k-focus"]=this.focused,e}},created:function(){(0,a.validatePackage)(l),this._popupId="popup"+(0,a.guid)(),this.focusableElementGuid=(0,a.guid)()},mounted:function(){this.button=(0,a.getRef)(this,"button")},updated:function(){},setup:bt?function(){return{v3:!!bt}}:void 0,render:function(e){var t,n=this,i=this,o=yt||e,r=this.$props,s=r.disabled,l=r.tabIndex,d=r.dir,c=r.view,u=r.selectedView,p=r.showClearButton,h=r.showPreview,f=r.showButtons,v=r.popupSettings,m=function(){return o(vt,mt({onKeydown:this.onKeyDownHandler,on:this.v3?void 0:{keydown:this.onKeyDownHandler,change:this.onFlatChangeHandler,focusout:this.onBlurHandler,viewchange:this.onViewChange},ref:(0,a.setRef)(this,"flatcolorpicker"),view:c,selectedView:u,showClearButton:p,showPreview:h,showButtons:f,value:this.computedValue||void 0,attrs:this.v3?void 0:mt({view:c,selectedView:u,showClearButton:p,showPreview:h,showButtons:f,value:this.computedValue||void 0,paletteSettings:this.paletteSettings,gradientSettings:this.gradientSettings},this.flatColorPickerSettings),onChange:this.onFlatChangeHandler,onFocusout:this.onBlurHandler,onViewchange:this.onViewChange,paletteSettings:this.paletteSettings,gradientSettings:this.gradientSettings},this.flatColorPickerSettings))};return o("span",{class:this.wrapperClassName,dir:d,attrs:this.v3?void 0:{dir:d,id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabindex:(0,a.getTabIndex)(l,s),title:this.$props.title},id:this.$props.id,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:this.focusableElementGuid,tabindex:(0,a.getTabIndex)(l,s),title:this.$props.title,onKeydown:this.onButtonKeyDown,on:this.v3?void 0:{keydown:this.onButtonKeyDown,focusin:this.onFocusHandler,focusout:this.onButtonBlur},onFocusin:this.onFocusHandler,onFocusout:this.onButtonBlur},[o("span",{onClick:this.onActiveColorClickHandler,on:this.v3?void 0:{click:this.onActiveColorClickHandler},class:"k-input-inner"},[o("span",{class:(0,a.classNames)("k-value-icon","k-color-preview",{"k-no-color":!this.computedValue,"k-icon-color-preview":this.icon||this.iconClassName})},[(this.iconClassName||this.icon)&&o("span",{class:(0,a.classNames)("k-color-preview-icon",this.iconClassName,(t={},t["k-icon k-i-".concat(this.icon)]=this.icon&&!this.iconClassName,t))}),o("span",{class:"k-color-preview-mask",style:{backgroundColor:this.computedValue}})])]),o(se.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabindex:-1,rounded:null,icon:"arrow-s"},tabindex:-1,ref:this.v3?function(e){i.buttonRef=e}:"button",onClick:this.onClickHandler,on:this.v3?void 0:{click:this.onClickHandler},rounded:null,class:"k-input-button",icon:"arrow-s"}),o(dt,{dir:d,attrs:this.v3?void 0:{dir:d,id:this._popupId,open:this.computedOpen,popupAnchor:this.focusableElementGuid,popupSettings:mt({},v)},id:this._popupId,open:this.computedOpen,onOpen:this.onOpenHandler,on:this.v3?void 0:{open:this.onOpenHandler},popupAnchor:this.focusableElementGuid,popupSettings:mt({},v)},this.v3?function(){return[m.call(n)]}:[m.call(n)])])},methods:{focusElement:function(){this.$el&&this.$el.focus()},setOpen:function(e,t){e||t||!this.$el||this.$el.focus(),this.currentOpen=e,this.$emit(e?"open":"close")},onButtonKeyDown:function(e){var t=e.altKey,n=e.keyCode;return n===a.Keys.esc?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!1)):n===a.Keys.enter?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!this.computedOpen)):void(t&&n===a.Keys.down&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!0)))},onKeyDownHandler:function(e){var t=e.altKey,n=e.keyCode;return n===a.Keys.esc?(e.preventDefault(),e.stopPropagation(),void this.setOpen(!1)):n===a.Keys.enter?(e.preventDefault(),e.stopPropagation(),void this.focusElement()):void(t&&n===a.Keys.up&&(e.preventDefault(),e.stopPropagation(),this.setOpen(!1),this.focusElement()))},onOpenHandler:function(){var e=(0,a.getRef)(this,"flatcolorpicker");e&&e.focus()},onClickHandler:function(){this.setOpen(!this.computedOpen,!0)},onActiveColorClickHandler:function(e){this.$emit("activecolorclick",{event:e,value:this.computedValue})},isViewFocused:function(){return!(!document.activeElement||!document.activeElement.closest("#".concat(this._popupId)))},onButtonBlur:function(e){this.focused=this.isViewFocused(),this.$emit("blur",{event:e})},onFocusHandler:function(e){this.blurTimeoutRef?(clearTimeout(this.blurTimeoutRef),this.blurTimeoutRef=void 0,e.target===this.$el&&this.setOpen(!1)):this.focused=!0,this.$emit("focus",{event:e})},onBlurTimeout:function(){var e=this.isViewFocused();e||this.setOpen(!1,!0),this.focused=e,this.blurTimeoutRef=void 0},onBlurHandler:function(){clearTimeout(this.blurTimeoutRef),this.palette=(0,a.getRef)(this,"palette"),this.gradient=(0,a.getRef)(this,"gradient"),this.blurTimeoutRef=setTimeout(this.onBlurTimeout,200)},onViewChange:function(e){this.$emit("viewchange",e)},onChangeHandler:function(e,t){var n=e.value;this.isValueControlled||(this.currentValue=n),t&&this.setOpen(!1),this.$emit("changemodel",n),this.$emit("update:modelRgbaValue",e.rgbaValue),this.$emit("update:modelValue",n),this.$emit("change",{value:n,rgbaValue:e.rgbaValue,event:e})},onFlatChangeHandler:function(e){this.onChangeHandler(e,!0)}}},wt=kt,St=s,xt=St.h,Ct=St.version&&"3"===St.version[0],$t={name:"KendoSwitch",model:{event:"changemodel"},emits:{change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{name:String,accessKey:String,checked:{type:Boolean,default:void 0},className:String,disabled:{type:Boolean,default:!1},defaultChecked:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},trackRounded:{type:String,default:"full",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},thumbRounded:{type:String,default:"full",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,offLabel:{type:String,default:"OFF"},onLabel:{type:String,default:"ON"},required:{type:Boolean,default:!1},tabIndex:Number,valid:Boolean,validityStyles:{type:Boolean,default:!1},validationMessage:String,value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:void 0}},created:function(){(0,a.validatePackage)(l),this._id=(0,a.guid)(),this.defaultValidationMessage=(0,N.provideLocalizationService)(this)},data:function(){return{currentChecked:this.$props.defaultChecked,valueDuringOnChange:void 0,focused:!1,currentDir:void 0}},computed:{computedValue:function(){return void 0!==this.valueDuringOnChange?this.valueDuringOnChange:void 0!==this.$props.checked?this.$props.checked:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.currentChecked},switchClassName:function(){var e,t=!this.validityStyles||this.validity().valid,n=this.$props.trackRounded;return(e={"k-switch":!0})["k-switch-".concat(a.kendoThemeMaps.sizeMap[this.$props.size])]=this.$props.size,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[n]||n)]=n,e["k-switch-on"]=this.computedValue,e["k-switch-off"]=!this.computedValue,e["k-focus"]=this.focused,e["k-disabled"]=this.$props.disabled,e["k-invalid"]=!t,e},switchTrackClass:function(){var e,t=this.$props.trackRounded;return(e={"k-switch-track":!0})["k-rounded-".concat(a.kendoThemeMaps.roundedMap[t]||t)]=t,e},switchThumbClass:function(){var e,t=this.$props.thumbRounded;return(e={"k-switch-thumb":!0})["k-rounded-".concat(a.kendoThemeMaps.roundedMap[t]||t)]=t,e}},mounted:function(){this._element=(0,a.getRef)(this,"element"),this.input=(0,a.getRef)(this,"input"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,a.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.setValidity()},setup:Ct?function(){return{v3:!!Ct}}:void 0,render:function(e){var t=xt||e,n=this.$props,i=n.disabled,o=n.id,r=n.offLabel,s=n.onLabel,l=n.tabIndex,d=n.required;return t("span",{class:this.switchClassName,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir},onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown,click:this.handleClick,focusout:this.handleWrapperBlur,focusin:this.handleWrapperFocus},onClick:this.handleClick,onFocusout:this.handleWrapperBlur,onFocusin:this.handleWrapperFocus},[t("span",{class:this.switchTrackClass,id:o||this._id,attrs:this.v3?void 0:{id:o||this._id,role:"switch","aria-checked":this.computedValue,"aria-disabled":i||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,tabindex:(0,a.getTabIndex)(l,i,void 0),accesskey:this.$props.accessKey},role:"switch","aria-checked":this.computedValue,"aria-disabled":i||void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,ref:(0,a.setRef)(this,"element"),tabindex:(0,a.getTabIndex)(l,i,void 0),accesskey:this.$props.accessKey},[t("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",tabindex:-1,name:this.$props.name,required:void 0!==d&&d,"aria-hidden":!0},checked:this.v3?this.$props.checked:null,domProps:this.v3?void 0:{checked:this.$props.checked,value:this.computedValue},ref:(0,a.setRef)(this,"input"),tabindex:-1,name:this.$props.name,required:void 0!==d&&d,"aria-hidden":!0,value:this.v3?this.computedValue:null,style:{opacity:0,width:1,border:0,zIndex:-1,position:"absolute",left:"50%"},onChange:a.noop,on:this.v3?void 0:{change:a.noop}}),t("span",{class:"k-switch-label-on"},[s]),t("span",{class:"k-switch-label-off"},[r]),t("span",{class:"k-switch-thumb-wrap"},[t("span",{class:this.switchThumbClass})])])])},methods:{focus:function(){this._element&&this._element.focus()},element:function(){return this._element},validity:function(){var e=void 0!==this.$props.validationMessage,t=void 0!==this.$props.valid?this.$props.valid:!this.$props.required||!!this.computedValue;return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue}},setValidity:function(){this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||this.defaultValidationMessage.toLanguageString(Ee,Ve[Ee]))},limit:function(e,t,n){var i=n.offsetWidth,o=t.offsetWidth;return e<0?0:e>i-o?i-o:e},toggle:function(e,t){this.currentChecked=e,this.valueDuringOnChange=e,this.$emit("changemodel",e),this.$emit("update:modelValue",e),this.$emit("change",{event:t,component:this,target:{value:e},name:this.$props.name,value:e,validity:this.validity()}),this.valueDuringOnChange=void 0},handleClick:function(e){this.eventTimeStamp!==e.timeStamp&&(this.eventTimeStamp=e.timeStamp,this.toggle(!this.computedValue,e))},handleKeyDown:function(e){if(!this.$props.disabled){var t=e.keyCode;t!==a.Keys.space&&t!==a.Keys.enter||this.toggle(!this.computedValue,e)}},handleWrapperFocus:function(e){this.$props.disabled||(this.focused=!0,this.$emit("focus",e))},handleWrapperBlur:function(e){this.$props.disabled||(this.focused=!1,this.$emit("blur",e))}}},It=$t,Ot=n(9302),Dt=s,Mt=Dt.h,Tt=Dt.version&&"3"===Dt.version[0],Rt=(Dt.ref,{created:function(){(0,Ot.validatePackage)(l)},setup:Tt?function(){return{v3:!!Tt}}:void 0,render:function(e){return(Mt||e)("span",{class:"k-input-separator"})}}),Bt=Rt,Nt=function(){return Nt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Nt.apply(this,arguments)},Pt=1111111.1111111,Et=/\d/,Vt=function(e,t){return void 0!==e?e:t},Lt=function(e,t,n){return null===e&&void 0===e?"":"string"==typeof e?e:n.formatNumber(e,t)},At=function(e){return(String(e).split(".")[1]||"").length},Ft=function(e,t){return Math.max(At(e),At(t))},zt=function(e,t){var n=function(e){return Math.min(e,15)}(t);return parseFloat(e.toFixed(n))},jt=function(e,t,n,i,o,r,s){var a=Ft(e||0,n||0),l=_t(zt((e||0)+(n||0),a),i,o);t.eventValue=l,t.currentLooseValue=Lt(l,r,s),t.selectionStart=t.selectionEnd=Gt(t.currentLooseValue,Et)},Kt=function(e,t,n,i,o,r,s){var a=Ft(e||0,n||0),l=_t(zt((e||0)-(n||0),a),i,o);t.eventValue=l,t.currentLooseValue=Lt(l,r,s),t.selectionStart=t.selectionEnd=Gt(t.currentLooseValue,Et)},_t=function(e,t,n){return null==e?e:e>1||e<1||1===e?void 0!==n&&void 0!==t&&n<t?null:(void 0!==n&&e>n&&(e=n),void 0!==t&&e<t&&(e=t),e):null},Ht=function(e,t,n,i){e.selectionStart=e.selectionEnd=t,function(e,t,n){var i=function(e,t){var n=t.findIndex((function(t){t[0];var n=t[1];return Boolean(n)&&e.indexOf(n)===e.length-n.length}));if(-1===n)return-1;var i=t[n][1];return e.length-i.length}(e,t);if(-1!==i&&n.selectionStart>i)n.selectionStart=n.selectionEnd=i;else{n.selectionStart>e.length&&(n.selectionStart=n.selectionEnd=e.length);var o=function(e,t){var n=t.findIndex((function(t){var n=t[0];return t[1],Boolean(n)&&0===e.indexOf(n)}));return-1===n?-1:t[n][0].length}(e,t);-1!==o&&n.selectionStart<o&&(n.selectionStart=n.selectionEnd=o),-1===n.selectionStart&&(n.selectionStart=n.selectionEnd=0)}}(n,i,e)},Wt=function(e,t,n,i){e.eventValue=i.parseNumber(e.prevLooseValue,t),e.currentLooseValue=e.prevLooseValue,e.valueIsCorrected=!0,Ht(e,e.selectionStart,e.currentLooseValue,n)},Ut=function(e,t){var n=e.indexOf(t.decimal);return n>-1?n:Gt(e,Et)},qt=function(e){return e.split("").reverse().join("")},Gt=function(e,t){return e.length-qt(e).search(t)},Jt=function(e){return e.split(e[e.search(Et)])[0]},Xt=function(e){var t=qt(e);return qt(t.split(t[t.search(Et)])[0])},Yt=function(e,t){return e.search(t)},Zt=function(e,t){var n=e.indexOf(t);return n>-1?e.length-n-1:0},Qt=function(e,t,n,i,o){var r="0"===e.replace(o,"")[0],s="0"===t.replace(o,"")[0];if(r&&!s)return n-1;if(s&&i)return n+1;for(var a=0,l=0;l<n;l++)Et.test(e.charAt(l))&&a++;for(var d=0;a>0&&t.length>d;)Et.test(t.charAt(d))&&a--,d++;return d},en=function(e,t,n){var i=Nt({},e),o=i.prevLooseValue,r=n.numberSymbols(),s=function(e,t){var n=t.formatNumber(Pt,e),i=t.formatNumber(-Pt,e),o=t.formatNumber(0,e),r=t.formatNumber(1,e),s=t.numberSymbols(),a=new RegExp("[\\d\\".concat(s.decimal).concat(s.group,"]"),"g");return[n,i,o,r].map((function(e){return e.replace(a,"")})).join("").split("").filter((function(e,t,n){return n.indexOf(e)===t})).join("")}(t,n),a=String(i.currentLooseValue),l=String(o),d=new RegExp("[^\\d\\".concat(r.decimal,"]"),"g"),c=new RegExp("[^\\d\\".concat(r.decimal,"\\").concat(r.group,"]"),"g"),u=new RegExp("[\\d\\".concat(r.decimal,"\\").concat(r.group,"]")),p=a.replace(d,""),h=Yt(a,Et),f=-1===h?-1:Gt(a,Et),v=a.indexOf(r.decimal),m=(a.substring(0,h)+a.substring(h,f).replace(c,"")+a.substring(f,a.length)).split("").filter((function(e){return-1!==s.indexOf(e)||-1!==e.search(u)})).join(""),g=n.formatNumber(.31111111111111117,t).replace(d,""),y=g.indexOf(r.decimal),b=y>-1?g.length-y-1:0,k=n.formatNumber(1,t).replace(d,""),w=k.indexOf(r.decimal),S=w>-1?k.length-w-1:0,x=function(e,t){var n=t.formatNumber(Pt,e),i=t.formatNumber(-Pt,e),o=t.formatNumber(0,e),r=t.formatNumber(1,e),s=Jt(n),a=Jt(i),l=Jt(o),d=Jt(r);return{positiveInfo:[s,Xt(n)],negativeInfo:[a,Xt(i)],zeroInfo:[l,Xt(o)],oneInfo:[d,Xt(r)]}}(t,n),C=[x.positiveInfo,x.negativeInfo,x.zeroInfo,x.oneInfo],$=1!==C.findIndex((function(e){return-1!==e.findIndex((function(e){return Boolean(e)}))})),I=a.length>0&&a.length<l.length,O=t&&"p"===t[0]&&a&&-1===a.indexOf(r.percentSign);if(!i.isPaste){if(""===a)return i.eventValue=null,i.currentLooseValue="",i;if(i.currentLooseValue===r.minusSign&&n.formatNumber(-0,t)!==l)return i.eventValue=-0,i.currentLooseValue=Lt(i.eventValue,t,n),Ht(i,Ut(i.currentLooseValue,r),i.currentLooseValue,C),i;if(function(e,t){var n=String(e.currentLooseValue),i=String(e.prevLooseValue);return n.split(t.minusSign).length!==i.split(t.minusSign).length&&n.length===i.length+t.minusSign.length}(i,r)){var D=n.parseNumber(o,t);i.eventValue=-(null!==D?D:0),i.currentLooseValue=Lt(i.eventValue,t,n);var M=Yt(i.currentLooseValue,Et),T=Yt(l,Et);return Ht(i,i.selectionEnd-1+(M-T),i.currentLooseValue,C),i}if(function(e,t){var n=String(e.currentLooseValue),i=String(e.prevLooseValue);return-1===n.indexOf(t.minusSign)&&-1!==i.indexOf(t.minusSign)}(i,r))return i.eventValue=n.parseNumber(i.currentLooseValue,t),Ht(i,i.selectionStart,i.currentLooseValue,C),i;if(i.currentLooseValue===r.decimal){i.eventValue=0;var R=Lt(i.eventValue,t,n);if(0===S&&b>0){var B=Gt(R,Et);i.currentLooseValue=R.substring(0,B)+r.decimal+R.substring(B)}else i.currentLooseValue=R;return Ht(i,Ut(i.currentLooseValue,r)+1,i.currentLooseValue,C),i}if(function(e,t){return String(e.currentLooseValue).split(t.decimal).length>2}(i,r))return Wt(i,t,C,n),i;if(O)return i.eventValue=n.parseNumber(a,t)/100,i.currentLooseValue=Lt(i.eventValue,t,n),i;if(String(i.currentLooseValue).replace(/[^\d]/g,"").length>15)return Wt(i,t,C,n),i;if(p!==a&&a&&$){var N=C.findIndex((function(e){var t=e[0],n=e[1],i=a.indexOf(t),o=a.indexOf(n),s=0===i,l=o===a.length-n.length,d=i+t.length!==h&&-1!==h&&a[i+t.length]!==r.decimal,c=o!==f&&-1!==f&&a[o-1]!==r.decimal;return t&&n?!d&&!c&&s&&l:t?!d&&s:!!n&&!c&&l}));if(-1===N)return Wt(i,t,C,n),i}if(p[p.length-1]===r.decimal&&b>0)return i.eventValue=n.parseNumber(a,t),i.currentLooseValue=m,i;if(i.currentLooseValue&&o&&(s+r.decimal+r.group).split("").findIndex((function(e){return a.split("").filter((function(t){return t===e})).length<l.split("").filter((function(t){return t===e})).length&&a.length+1===l.length&&(e!==r.decimal||0!==Zt(l.replace(d,""),r.decimal))}))>-1)return i.eventValue=n.parseNumber(e.prevLooseValue,t),i.currentLooseValue=e.prevLooseValue,i;var P=Zt(p,r.decimal),E="0"===p[p.length-1];if(I&&E&&P<S)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=Lt(i.eventValue,t,n),i;if(P>0){var V=a.substring(0,v);if(E&&(!V||0!==l.indexOf(V))){i.eventValue=n.parseNumber(i.currentLooseValue,t);var L=Lt(i.eventValue,t,n);return Ht(i,Qt(a,L,i.selectionEnd,I,d),L,C),i.currentLooseValue=L,i}if(P>b){var A=a.indexOf(r.decimal),F=a.substring(0,A)+a.substring(A,A+1+b)+a.substring(f,String(i.currentLooseValue).length);return i.eventValue=n.parseNumber(F,t),i.currentLooseValue=F,Ht(i,i.selectionStart,F,C),i}if(S!==b&&P<=b&&E)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=m,i;if(P<S)return i.eventValue=n.parseNumber(i.currentLooseValue,t),i.currentLooseValue=Lt(i.eventValue,t,n),i}}return i.eventValue=n.parseNumber(i.currentLooseValue,t),O&&(i.eventValue=i.eventValue/100),"number"==typeof i.eventValue?(L=Lt(i.eventValue,t,n),1===a.length?Ht(i,Ut(L,r),L,C):Ht(i,Qt(a,L,i.selectionEnd,I,d),L,C),i.currentLooseValue=L):i.currentLooseValue=Lt(n.parseNumber(p),t,n),i},tn=s,nn=tn.h,on=tn.version&&"3"===tn.version[0],rn=tn.ref,sn=tn.inject,an={model:{event:"changemodel"},emits:{change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{modelValue:Number,value:Number,defaultValue:Number,step:{type:Number,default:1},format:[String,Object],tabIndex:Number,accessKey:String,title:String,placeholder:String,min:Number,max:Number,spinners:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},dir:String,name:String,label:String,validationMessage:String,validityStyles:{type:Boolean,default:!0},valid:{type:Boolean,default:void 0},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},required:{type:Boolean,default:!1},id:String,ariaLabel:String,iconName:String,inputPrefix:a.templateDefinition,inputSuffix:a.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String},inject:{kendoIntlService:{default:null},kendoLocalizationService:{default:null}},data:function(){return{hasMounted:!1,isInvalid:!1,isEmpty:!1,currentValue:0,valueDuringOnChange:0,currentLooseValue:"",selectionStart:0,selectionEnd:0,decimalSelect:!1,focused:!1,forceUpdate:!1}},created:function(){(0,a.validatePackage)(l),this._textBeforeInput="",this._inputId=(0,a.guid)(),this.$data.currentLooseValue=null,this.$data.valueDuringOnChange=void 0,this._intl=(0,N.provideIntlService)(this),this._symbols=this._intl.numberSymbols(),void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:void 0!==this.$props.defaultValue?this.$data.currentValue=this.$props.defaultValue:this.$data.currentValue=null},mounted:function(){this._input=(0,a.getRef)(this,"input"),this._elementWrapper=this.v3?this.elementWrapperRef:this.$refs.elementWrapper,this.$data.hasMounted=!0,this._input&&(this._textBeforeInput=this._input.value),this.setValidity()},updated:function(){a.canUseDOM&&document.activeElement!==this._input||!this._input||null===this.$data.currentLooseValue||this.$data.forceUpdate&&(this._input.selectionStart=this.$data.selectionStart,this._input.selectionEnd=this.$data.selectionEnd,this.$data.forceUpdate=!1),this._input&&(this._textBeforeInput=this._input.value),this.setValidity()},computed:{computedValue:{get:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:this.$data.currentValue}},looseValue:{get:function(){return Lt(this.$data.focused?this.$data.currentLooseValue:Vt(this.$props.value,this.$data.currentValue),this.$props.format,this._intl)}},spanClassNames:{get:function(){var e,t=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid,n=this.computedValue;return(e={"k-floating-label-container":!0,"k-focus":this.$data.focused,"k-empty":!(0===n||n||this.$props.placeholder),"k-invalid":!t&&void 0!==t,"k-rtl":"rtl"===this.$props.dir})[this.inputClass]=this.inputClass,e}},wrapperClassNames:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,r=t.required,s=t.disabled,l=!this.$props.validityStyles||this.validity().valid;return(e={"k-input":!0,"k-numerictextbox":!0})["k-input-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!l,e["k-required"]=r,e["k-disabled"]=s,e["k-loading"]=this.showLoadingIcon,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e}},methods:{validity:function(){var e=void 0!==this.$props.validationMessage,t=!(this.$data.valueIsOutOfRange||this.$props.required&&null===this.computedValue);return{customError:e,valid:void 0!==this.$props.valid?this.$props.valid:t,valueMissing:null===this.computedValue}},clearClick:function(e){void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:this.$data.currentValue=null,this.$emit("changemodel",null),this.$emit("update:modelValue",null),this.$emit("change",{event:e,value:null,component:this,target:{name:this.$props.name,value:null},validity:this.validity()})},focus:function(){this._input&&this._input.focus()},emitFocus:function(e){this.$data.currentLooseValue=this._prevLooseValue,this.$data.focused=!0,this.$emit("focus",e),this.$data.forceUpdate=!0},emitBlur:function(e){this.$data.eventValue=null,this.$data.prevLooseValue="",this.$data.currentLooseValue="",this.$data.focused=!1,this.$data.selectionStart=void 0,this.$data.selectionEnd=void 0,this.$data.decimalSelect=!1,this.$data.valueIsCorrected=!1,this.$data.valueIsOutOfRange=!1,this.$emit("blur",e),this.$data.forceUpdate=!0},handleFocus:function(e){this.$data.focused=!0},handleBlur:function(e){this.$data.focused=!1},setValidity:function(){this._input&&this._input.setCustomValidity&&this._input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"Please enter a valid value!")},getCurrentState:function(){return{eventValue:Vt(this.$props.value,this.$data.currentValue),prevLooseValue:this._prevLooseValue,currentLooseValue:this._input.value,selectionStart:this._input.selectionStart,selectionEnd:this._input.selectionEnd,decimalSelect:!1,valueIsCorrected:!1,valueIsOutOfRange:!1,isPaste:this._isPaste,focused:this.$data.focused}},parseNumber:function(e){return this._intl.parseNumber(e,this.$props.format)},elementChange:function(e){var t=this.getCurrentState();this._isPaste=!1,this.triggerChange(e,en(t,this.$props.format,this._intl))},triggerChange:function(e,t){var n=this;if(!this.$props.disabled){this.$data.valueDuringOnChange=t.eventValue,this.$data.currentValue=t.eventValue;var i=Lt(_t(t.eventValue,this.$props.min,this.$props.max),this.$props.format,this._intl),o=_t(this.parseNumber(i),this.$props.min,this.$props.max);if(o!==t.eventValue&&(t.valueIsOutOfRange=!0,t.eventValue=o,this.$data.valueDuringOnChange=o,this.$data.currentValue=o),t.valueIsCorrected){var r=this._elementWrapper;r&&-1===r.className.indexOf("k-invalid")&&(this.$data.isInvalid=!0,setTimeout((function(){n.$data.isInvalid=!1}),50))}var s=this.$props.value!==t.eventValue;void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:this.$data.currentValue=this.$data.valueDuringOnChange,this.$data.prevLooseValue=t.prevLooseValue,this.$data.currentLooseValue=t.currentLooseValue,this.$data.selectionStart=t.selectionStart,this.$data.selectionEnd=t.selectionEnd,this.$data.decimalSelect=t.decimalSelect,this.$data.valueIsCorrected=t.valueIsCorrected,this.$data.valueIsOutOfRange=t.valueIsOutOfRange,this.$data.focused=t.focused,this.$data.isPaste=t.isPaste,this.$data.forceUpdate=!this.$data.forceUpdate,s&&(this.$emit("changemodel",this.$data.valueDuringOnChange),this.$emit("update:modelValue",this.$data.valueDuringOnChange),this.$emit("change",{event:e,value:this.$data.valueDuringOnChange,component:this,target:{name:this.$props.name,value:this.$data.valueDuringOnChange},validity:this.validity()})),this.$data.valueDuringOnChange=void 0}},onPasteHandler:function(e){this._isPaste=!0},increase:function(e){var t=this.getCurrentState();jt(this.parseNumber(String(t.currentLooseValue)),t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl),this.triggerChange(e,t)},decrease:function(e){var t=this.getCurrentState();Kt(this.parseNumber(String(t.currentLooseValue)),t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl),this.triggerChange(e,t)},wheel:function(e){a.canUseDOM&&document.activeElement===this._input&&this._input&&(e.deltaY<0&&(e.preventDefault(),this.increase(e)),e.deltaY>0&&(e.preventDefault(),this.decrease(e)))},keyDown:function(e){var t=this.getCurrentState(),n=this.parseNumber(String(t.currentLooseValue));if(!(t.selectionEnd>t.selectionStart&&t.selectionEnd-t.selectionStart===String(t.currentLooseValue).length)){switch(e.keyCode){case 38:jt(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 40:Kt(n,t,this.$props.step,this.$props.min,this.$props.max,this.$props.format,this._intl);break;case 13:var i=Lt(_t(n,this.$props.min,this.$props.max),this.$props.format,this._intl),o=_t(this.parseNumber(i),this.$props.min,this.$props.max);t.eventValue=o,t.currentLooseValue=Lt(o,this.$props.format,this._intl),t.selectionStart=t.selectionEnd=t.currentLooseValue.length;break;case 110:var r=this._input,s=this._intl.numberSymbols();r&&(t.currentLooseValue=t.currentLooseValue.slice(0,t.selectionStart)+s.decimal+t.currentLooseValue.slice(t.selectionEnd),t.selectionStart=t.selectionEnd=t.selectionStart+1,t=en(t,this.$props.format,this._intl));break;default:return}e.preventDefault(),this.triggerChange(e,t)}},spinnersWrapperMouseDown:function(e){a.canUseDOM&&this._input&&(e.preventDefault(),document.activeElement!==this._input&&this._input.focus())}},setup:on?function(){return{v3:!!on,inputRef:rn(null),elementWrapperRef:rn(null),kendoLocalizationService:sn("kendoLocalizationService",{}),kendoIntlService:sn("kendoIntlService",{})}}:void 0,render:function(e){var t=nn||e,n=this.$props,i=n.iconName,o=n.showValidationIcon,r=n.showLoadingIcon,s=n.showClearButton,l=this.$props.id||this._inputId,d=(0,a.getDefaultSlots)(this),c=(0,N.provideLocalizationService)(this),u=this.validity().valid;void 0!==this.$props.value&&this.$props.value!==this.$data.currentValue?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue&&this.$props.modelValue!==this.$data.currentValue&&(this.$data.currentValue=this.$props.modelValue),this._prevLooseValue=this.looseValue;var p=a.templateRendering.call(this,this.$props.inputPrefix,a.getListeners.call(this)),h=a.templateRendering.call(this,this.$props.inputSuffix,a.getListeners.call(this)),f=a.getTemplate.call(this,{h:t,template:p,additionalProps:{value:this.computedValue,valid:u}}),v=a.getTemplate.call(this,{h:t,template:h,additionalProps:{value:this.computedValue,valid:u}}),m=t("span",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,"aria-disabled":this.$props.disabled?"true":void 0},class:this.wrapperClassNames,"aria-disabled":this.$props.disabled?"true":void 0,style:this.$attrs.style},[i&&t("span",{class:"k-input-icon k-icon k-i-".concat(i)}),this.$props.inputPrefix&&t("span",{class:"k-input-prefix"},[f]),t("input",{tabindex:this.$props.tabIndex,attrs:this.v3?void 0:{tabindex:this.$props.tabIndex,accesskey:this.$props.accessKey,disabled:this.$props.disabled,title:this.$props.title,"aria-label":this.$props.ariaLabel,"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,placeholder:this.$props.placeholder,type:this.$props.inputType||"tel",spellcheck:!1,autocomplete:"off",autocorrect:"off",id:l,"aria-valuenow":null!==this.$data.currentValue?this.$data.currentValue:void 0,name:this.$props.name},accesskey:this.$props.accessKey,disabled:this.$props.disabled,title:this.$props.title,"aria-label":this.$props.ariaLabel,"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,placeholder:this.$props.placeholder,type:this.$props.inputType||"tel",spellcheck:!1,autocomplete:"off",autocorrect:"off",class:this.inputInnerClass,id:l,value:this.v3?this.looseValue:null,domProps:this.v3?void 0:{value:this.looseValue},"aria-valuenow":null!==this.$data.currentValue?this.$data.currentValue:void 0,name:this.$props.name,onWheel:this.wheel,on:this.v3?void 0:{wheel:this.wheel,keydown:this.keyDown,input:this.elementChange,focus:this.emitFocus,blur:this.emitBlur,paste:this.onPasteHandler},onKeydown:this.keyDown,onInput:this.elementChange,onFocus:this.emitFocus,onBlur:this.emitBlur,onPaste:this.onPasteHandler,ref:(0,a.setRef)(this,"input")}),this.$props.inputSuffix&&t("span",{class:"k-input-suffix"},[v]),o&&u&&t("span",{class:"k-input-validation-icon k-icon k-i-check"}),o&&!u&&t("span",{class:"k-input-validation-icon k-icon k-i-warning"}),r&&t("span",{class:"k-input-loading-icon k-icon k-i-loading"}),s&&void 0!==this.computedValue&&null!==this.computedValue&&t("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[t("span",{class:"k-icon k-i-x"})]),d,this.$props.spinners&&t("span",{class:"k-input-spinner k-spin-button",onMousedown:this.spinnersWrapperMouseDown,on:this.v3?void 0:{mousedown:this.spinnersWrapperMouseDown}},[t(se.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-n","aria-label":c.toLanguageString(ae,Ve[ae]),title:c.toLanguageString(ae,Ve[ae])},tabIndex:-1,icon:"arrow-n",class:"k-spinner-increase","aria-label":c.toLanguageString(ae,Ve[ae]),title:c.toLanguageString(ae,Ve[ae]),onClick:this.increase,on:this.v3?void 0:{click:this.increase}}),t(se.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:"arrow-s","aria-label":c.toLanguageString(le,Ve[le]),title:c.toLanguageString(le,Ve[le])},tabIndex:-1,class:"k-spinner-decrease",icon:"arrow-s","aria-label":c.toLanguageString(le,Ve[le]),title:c.toLanguageString(le,Ve[le]),onClick:this.decrease,on:this.v3?void 0:{click:this.decrease}})])]);return this.$props.label?t("span",{class:this.spanClassNames,onFocusin:this.handleFocus,on:this.v3?void 0:{focusin:this.handleFocus,focusout:this.handleBlur},onFocusout:this.handleBlur,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[m,this.$props.label?l?t("label",{for:l,attrs:this.v3?void 0:{for:l},class:"k-label"},[this.$props.label]):t("span",{class:"k-label"},[this.$props.label]):null]):m}},ln=an;!function(e){e[e.Literal=0]="Literal",e[e.Mask=1]="Mask",e[e.Undefined=2]="Undefined"}(r||(r={}));var dn,cn=function(){function e(e,t,n){void 0===n&&(n=r.Undefined),this.value=e,this.rest=t,this.type=n}return e.prototype.map=function(t){return new e(t(this.value),this.rest)},e.prototype.chain=function(e){return e(this.value,this.rest)},e.prototype.fold=function(e,t){return e(this.value,this.rest)},e.prototype.concat=function(e){return this.map((function(t,n){return e.chain((function(e,n){return t.concat([e])}))}))},e.prototype.toString=function(){return"Result({ value: '".concat(this.value,"', rest: ").concat(this.rest," })")},e}(),un=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=[]),this.input=e,this.control=t,this.inputCursor=0,this.controlCursor=0}return e.prototype.eof=function(){return this.inputCursor>=this.input.length},e.prototype.next=function(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}},e.prototype.peek=function(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}},e.prototype.eat_input=function(){this.inputCursor++},e.prototype.eat_control=function(){this.controlCursor++},e.prototype.eat=function(){this.inputCursor++,this.controlCursor++},e}(),pn=function(e){return(e||"").split("")},hn=function(){function e(e){this.parse=e}return e.prototype.run=function(e,t){return void 0===t&&(t=""),e instanceof un?this.parse(e):this.parse(new un(pn(e),pn(t)))},e.prototype.map=function(t){var n=this;return new e((function(e){return n.parse(e).map(t)}))},e.prototype.chain=function(t){var n=this;return new e((function(e){return n.parse(e).chain((function(e,n){return t(e).run(n)}))}))},e.prototype.isLiteral=function(e){return this.run(e).type===r.Literal},e}(),fn=function(e,t){return new hn((function(n){var i=n.next().char,o=e[i];return"\\"===i?(i=n.next().char,new cn(t.literal(i),n)):new cn(o?t.mask(o):t.literal(i),n)}))},vn=function(e){var t=e.prompt,n=e.promptPlaceholder;return new hn((function(e){var i=e.next().char;return new cn(i===t?n:i,e)}))},mn=function(e){return new hn((function(t){var n=t.next().char;return new cn(e?n:"",t)}))},gn=function(e){return e.reduce((function(e,t){return n=t,e.chain((function(e){return n.map((function(t){return e.concat([t])}))}));var n}),(t=[],new hn((function(e){return new cn(t,e)}))));var t},yn=function(e){return new hn((function(t){for(var n=new cn([],t);!t.eof();)n=n.concat(e.run(t));return n}))},bn=function(){function e(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}return e.prototype.update=function(e){var t=e.mask,n=void 0===t?"":t,i=e.prompt,o=void 0===i?"":i,r=e.promptPlaceholder,s=void 0===r?" ":r,a=e.rules,l=void 0===a?{}:a,d=e.includeLiterals,c=void 0!==d&&d;this.mask=n,this.prompt=o,this.promptPlaceholder=s,this.rules=l,this.includeLiterals=c,this.tokenize()},e.prototype.validationValue=function(e){void 0===e&&(e="");var t=e;return gn(this.validationTokens).run(e).fold((function(e){t=e.join("")})),t},e.prototype.rawValue=function(e){void 0===e&&(e="");var t=e;return this.rawTokens.length?(gn(this.rawTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskRaw=function(e){void 0===e&&(e="");var t=e;return this.maskTokens.length?(gn(this.maskTokens).run(e).fold((function(e){t=e.join("")})),t):t},e.prototype.maskInput=function(e,t,n){return e.length<t.length?this.maskRemoved(e,t,n):this.maskInserted(e,t,n)},e.prototype.maskInRange=function(e,t,n,i){var o="",r=i,s=t.split("").slice(0,n),a=t.split("").slice(i);return gn(this.maskTokens.slice(n,i)).run(e).fold((function(e){o=s.concat(e).concat(a).join("")})),{selection:r,value:o}},e.prototype.maskRemoved=function(e,t,n){var i=this,o="",r=n,s=e.split("").slice(n),a=e.split("").slice(0,n).join(""),l=this.maskTokens.length-(e.length-n);return gn(this.maskTokens.slice(0,l)).run(a,t).fold((function(e){r=i.adjustPosition(e,r),o=e.concat(s).join("")})),{selection:r,value:o}},e.prototype.adjustPosition=function(e,t){var n=e[t];return this.maskTokens[t].isLiteral(n)||n===this.prompt?t:t+1},e.prototype.maskInserted=function(e,t,n){var i=this,o="",r=n,s=e.slice(0,n);return gn(this.unmaskTokens).run(s,t).chain((function(e){r=e.join("").length;var n=t.slice(r);return gn(i.maskTokens).run(e.join("")+n,t)})).fold((function(e){o=e.join("")})),{selection:r,value:o}},Object.defineProperty(e.prototype,"maskTokenCreator",{get:function(){var e=this.prompt,t=this.promptPlaceholder;return{literal:function(e){return t=e,new hn((function(e){return e.peek().char===t?(e.eat(),new cn(t,e,r.Literal)):new cn(t,e,r.Literal)}));var t},mask:function(n){return function(e){var t=e.prompt,n=e.promptPlaceholder;return function(e){return new hn((function(i){for(;!i.eof();){var o=i.peek(),s=o.char,a=o.control;if(s===a&&a===t)return i.eat(),new cn(t,i,r.Mask);if(e.test(s))return i.eat(),new cn(s,i,r.Mask);if(s===n)return i.eat(),new cn(t,i,r.Mask);i.eat_input()}return i.eat(),new cn(t,i,r.Mask)}))}}({prompt:e,promptPlaceholder:t})(n)}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unmaskTokenCreator",{get:function(){var e=this;return{literal:function(e){return t=e,new hn((function(e){return e.eof()?new cn("",e):(e.peek().char===t&&e.eat(),new cn(t,e))}));var t},mask:function(t){return(n=e.prompt,function(e){return new hn((function(t){for(;!t.eof();){var i=t.peek(),o=i.char,r=i.control;if(o===n&&r===n)return t.eat(),new cn(o,t);if(e.test(o))return t.eat(),new cn(o,t);t.eat_input()}return t.eat(),new cn("",t)}))})(t);var n}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawTokenCreator",{get:function(){var e=this,t=e.prompt,n=e.promptPlaceholder,i=e.includeLiterals;return{literal:function(e){return mn(i)},mask:function(e){return vn({prompt:t,promptPlaceholder:n})}}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"validationTokenCreator",{get:function(){var e=this.prompt;return{literal:function(e){return mn(!1)},mask:function(t){return vn({prompt:e,promptPlaceholder:""})}}},enumerable:!1,configurable:!0}),e.prototype.tokenize=function(){var e=this;yn(fn(this.rules,this.maskTokenCreator)).run(this.mask).fold((function(t,n){e.maskTokens=t})),yn(fn(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((function(t,n){e.unmaskTokens=t})),yn(fn(this.rules,this.rawTokenCreator)).run(this.mask).fold((function(t,n){e.rawTokens=t})),yn(fn(this.rules,this.validationTokenCreator)).run(this.mask).fold((function(t,n){e.validationTokens=t}))},e}(),kn={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},wn=function(){return!1},Sn=s,xn=Sn.h,Cn=Sn.version&&"3"===Sn.version[0],$n=Sn.ref,In={model:{event:"changemodel"},props:{type:{type:String,default:"text"},modelValue:String,modelRawValue:String,value:String,defaultValue:String,placeholder:String,title:String,dir:String,id:String,ariaLabelledBy:String,ariaDescribedBy:String,tabIndex:Number,accessKey:String,disabled:Boolean,readonly:Boolean,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},prompt:{type:String,default:"_"},promptPlaceholder:{type:String,default:" "},includeLiterals:{type:Boolean,default:!1},maskValidation:{type:Boolean,default:!0},mask:String,rules:{type:Object,default:function(){return kn}},selection:Object,name:String,label:String,validationMessage:String,required:{type:Boolean,default:!1},valid:{type:Boolean,default:void 0},validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:a.templateDefinition,inputSuffix:a.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String},data:function(){return{currentValue:void 0,currentFocused:!1,inputValue:void 0,currentSelection:[null,null]}},created:function(){(0,a.validatePackage)(l),this.hasMounted=!1,this.valueDuringOnChange=void 0,this.inputId="k-".concat((0,a.guid)()),this.service=new bn,this.isPasted=!1},setup:Cn?function(){return{v3:!!Cn,inputRef:$n(null)}}:void 0,mounted:function(){this.hasMounted=!0,this.element=this.input=this.v3?this.inputRef:this.$refs.input,this.updateService(),this.setValidity()},watch:{currentFocused:function(e,t){this.prevCurrentFocused=t},selection:function(e,t){this.prevSelection=t},includeLiterals:function(e,t){this.prevIncludeLiterals=t},mask:function(e,t){this.prevMask=t},prompt:function(e,t){this.prevPrompt=t},promptPlaceholder:function(e,t){this.prevPromptPlaceholder=t},rules:function(e,t){this.prevRules=t}},updated:function(){if(this.element&&this.currentFocused){var e=this.currentSelection,t=e[0],n=e[1],i=this.prevSelection,o=this.$props.selection;(!i&&o||i&&o&&(i.start!==o.start||i.end!==o.end))&&(t=o.start,n=o.end),null!==t&&null!==n&&this.element.setSelectionRange(t,n)}var r,s;r={includeLiterals:this.prevIncludeLiterals,mask:this.prevMask,prompt:this.prevPrompt,promptPlaceholder:this.prevPromptPlaceholder,rules:this.prevRules},s=this.$props,r.includeLiterals===s.includeLiterals&&r.mask===s.mask&&r.prompt===s.prompt&&r.promptPlaceholder===s.promptPlaceholder&&function(e,t){if(!!e!=!!t)return!1;if(e===t||!e||!t)return!0;var n=!0;for(var i in e)if(e[i]!==t[i]){n=!1;break}if(n)for(var i in t)if(!e.hasOwnProperty(i)){n=!1;break}return n}(r.rules,s.rules)||this.updateService(),this.setValidity()},computed:{computedRules:{get:function(){return Object.assign({},kn,this.$props.rules)}},spanClassNames:{get:function(){var e,t=!this.hasMounted||!this.$props.validityStyles||this.validity().valid;return(e={"k-floating-label-container":!0,"k-focus":this.currentFocused,"k-empty":!this.computedValue(),"k-invalid":!t&&void 0!==t,"k-rtl":"rtl"===this.$props.dir,"k-loading":this.showLoadingIcon})[this.wrapperClass]=this.wrapperClass,e}},wrapperSpanClass:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,r=!this.$props.validityStyles||this.validity().valid;return(e={"k-maskedtextbox":!0,"k-input":!0})["k-input-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-invalid"]=!r,e["k-required"]=this.required,e["k-disabled"]=this.$props.disabled,e["k-loading"]=this.showLoadingIcon,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0})[this.inputClass]=this.inputClass,e}},methods:{focus:function(){this.input&&this.input.focus()},computedValue:function(){var e;return void 0!==this.valueDuringOnChange?e=this.valueDuringOnChange:void 0!==this.$props.value?e=this.$props.value:void 0!==this.$props.modelValue?e=this.$props.modelValue:void 0!==this.currentValue?e=this.currentValue:void 0!==this.$props.defaultValue&&(e=this.$props.defaultValue),e||""},rawValue:function(){return this.service.rawValue(this.computedValue())},validity:function(){var e=this.computedValue(),t=this.service.validationValue(e);return{customError:void 0!==this.$props.validationMessage,valid:void 0!==this.$props.valid?this.$props.valid:!(this.$props.required&&!t||this.$props.maskValidation&&this.$props.prompt&&-1!==e.indexOf(this.$props.prompt)),valueMissing:!t}},pasteHandler:function(e){var t=e.target,n=t.selectionStart,i=t.selectionEnd;i!==n&&(this.isPasted=!0,this.currentSelection=[n||0,i||0])},clearClick:function(e){this.triggerOnChange("",e)},onChangeHandler:function(e){var t=e.currentTarget,n=this.inputValue=t.value,i=this.currentSelection[0]||0,o=this.currentSelection[1]||0;if(!this.$props.mask)return this.isPasted=!1,this.currentSelection=[null,null],void this.triggerOnChange(n,e);var r,s=this.computedValue();if(this.isPasted){this.isPasted=!1;var a=s.length-o,l=n.length-a;r=this.service.maskInRange(n.slice(i,l),s,i,o)}else r=this.service.maskInput(n,s,t.selectionStart||0);this.currentSelection=[r.selection,r.selection],this.triggerOnChange(r.value,e),this.inputValue=void 0},focusHandler:function(e){this.currentFocused||(this.currentFocused=!0,this.$emit("focus",{target:this,event:e}))},blurHandler:function(e){this.currentFocused&&(this.currentFocused=!1,this.$emit("blur",{target:this,event:e}))},triggerOnChange:function(e,t){this.currentValue=e,this.valueDuringOnChange=e,this.$emit("change",{event:t,selectionStart:this.currentSelection[0],selectionEnd:this.currentSelection[1],value:this.computedValue(),component:this,target:{name:this.$props.name,value:this.computedValue(),rawValue:this.rawValue()},validity:this.validity()}),this.$emit("update:modelValue",this.computedValue()),this.$emit("update:modelRawValue",this.rawValue()),this.$emit("changemodel",this.computedValue()),this.valueDuringOnChange=void 0},updateService:function(e){var t=Object.assign({includeLiterals:this.$props.includeLiterals,mask:this.$props.mask,prompt:this.$props.prompt,promptPlaceholder:this.$props.promptPlaceholder,rules:this.$props.rules},e);this.service.update(t)},setValidity:function(){this.element&&this.element.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"")}},render:function(e){var t=xn||e,n=this.$props.id||this.inputId,i=this.$props,o=i.iconName,r=i.showValidationIcon,s=i.showLoadingIcon,l=i.showClearButton,d=!this.$props.validityStyles||this.validity().valid,c=this.computedValue(),u=(this.inputValue,a.templateRendering.call(this,this.$props.inputPrefix,a.getListeners.call(this))),p=a.templateRendering.call(this,this.$props.inputSuffix,a.getListeners.call(this)),h=a.getTemplate.call(this,{h:t,template:u,additionalProps:{value:c,valid:d}}),f=a.getTemplate.call(this,{h:t,template:p,additionalProps:{value:c,valid:d}}),v=t("span",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:this.wrapperSpanClass,style:this.$props.label?void 0:{width:this.$props.width}},[o&&t("span",{class:"k-input-icon k-icon k-i-".concat(o)}),this.$props.inputPrefix&&t("span",{class:"k-input-prefix"},[h]),t("input",{type:this.$props.type,attrs:this.v3?void 0:{type:this.$props.type,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:!1,id:n,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled,!0),accesskey:this.$props.accessKey,title:this.$props.title,disabled:this.$props.disabled||void 0,readonly:this.$props.readonly||void 0,placeholder:this.$props.placeholder,required:this.$props.required},autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:!1,class:this.inputInnerClass,value:this.v3?c:null,domProps:this.v3?void 0:{value:c},id:n,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,name:this.$props.name,tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled,!0),accesskey:this.$props.accessKey,title:this.$props.title,disabled:this.$props.disabled||void 0,readonly:this.$props.readonly||void 0,placeholder:this.$props.placeholder,required:this.$props.required,ref:(0,a.setRef)(this,"input"),onInput:this.onChangeHandler,on:this.v3?void 0:{input:this.onChangeHandler,paste:this.pasteHandler,focus:this.focusHandler,blur:this.blurHandler,dragstart:wn,drop:wn},onPaste:this.pasteHandler,onFocus:this.focusHandler,onBlur:this.blurHandler,onDragstart:wn,onDrop:wn}),this.$props.inputSuffix&&t("span",{class:"k-input-suffix"},[f]),r&&d&&t("span",{class:"k-input-validation-icon k-icon k-i-check"}),r&&!d&&t("span",{class:"k-input-validation-icon k-icon k-i-warning"}),s&&t("span",{class:"k-input-loading-icon k-icon k-i-loading"}),l&&c&&t("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[t("span",{class:"k-icon k-i-x"})])]);return this.$props.label?t("span",{class:this.spanClassNames,dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir}},[v,this.$props.label?n?t("label",{for:n,attrs:this.v3?void 0:{for:n},class:"k-label"},[this.$props.label]):t("span",{class:"k-label"},[this.$props.label]):null]):v}},On=In,Dn=function(){return Dn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Dn.apply(this,arguments)},Mn=s,Tn=Mn.h,Rn=Mn.version&&"3"===Mn.version[0],Bn=(Mn.ref,"data-slider-label"),Nn={name:"KendoSliderLabel",emits:{click:null},props:{position:Number,title:String,vertical:Boolean},data:function(){return{currentDir:"ltr"}},inject:["kendoMax","kendoMin","kendoVertical"],mounted:function(){if(this.sliderLabelRef=this.$refs.sliderLabelRef,!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},setup:Rn?function(){return{v3:!!Rn}}:void 0,render:function(e){var t,n=Tn||e,i=this.currentDir,o=(0,a.getDefaultSlots)(this),r=100*(this.$props.position-this.kendoMin)/(this.kendoMax-this.kendoMin),s=this.kendoVertical?{bottom:"".concat(r,"%"),height:"1px",width:"100%"}:((t={})["rtl"===i?"right":"left"]="".concat(r,"%"),t.width="1px",t.height="100%",t);return n("li",{ref:"sliderLabelRef",role:"presentation",attrs:this.v3?void 0:{role:"presentation",title:this.$props.title},class:"k-tick k-tick-large",title:this.$props.title,style:Dn({zIndex:1,position:"absolute"},s)},[n("span",{"data-slider-label":!0,attrs:this.v3?void 0:{"data-slider-label":!0},class:"k-label",onClick:this.onClick,on:this.v3?void 0:{click:this.onClick}},[o])])},methods:{onClick:function(e){this.$emit("click",e)}}},Pn=Nn,En=s,Vn=En.h,Ln=En.version&&"3"===En.version[0],An=En.ref,Fn=En.inject,zn={name:"KendoSlider",model:{event:"changemodel"},emits:{changemodel:null,"update:modelValue":null,change:null,blur:null,focus:null},props:{modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:void 0},name:String,buttons:Boolean,tabIndex:Number,disabled:Boolean,dir:String,step:Number,min:{type:Number,required:!0},max:{type:Number,required:!0},value:Number,vertical:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String},provide:function(){return{kendoMin:this.$props.min,kendoMax:this.$props.max,kendoVertical:this.$props.vertical}},inject:{kendoLocalizationService:{default:null}},data:function(){return{currentValue:void 0,currentFocused:!1,currentDir:"ltr"}},computed:{computedValue:function(){var e=void 0!==this.$props.value?this.$props.value:this.currentValue,t=this.$props,n=t.min,i=t.max;return void 0===e?e:Math.min(Math.max(e,n),i)},sliderTrack:function(){return this._sliderTrack}},created:function(){(0,a.validatePackage)(l),void 0!==this.$props.value?this.$data.currentValue=this.$props.value:void 0!==this.$props.modelValue?this.$data.currentValue=this.$props.modelValue:void 0!==this.$props.defaultValue?this.$data.currentValue=this.$props.defaultValue:this.$data.currentValue=this.$props.min,this.currentFocused=!1,this.currentDir=this.$props.dir},mounted:function(){if(this._sliderTrack=this.$refs.sliderTrack,this.$el&&(this.draggable=this.$refs.draggable),!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},updated:function(){this.$el&&(this.draggable=this.$refs.draggable)},setup:Ln?function(){return{v3:!!Ln,inputRef:An(null),kendoLocalizationService:Fn("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=this,i=Vn||e,o=(0,N.provideLocalizationService)(this),r=(this.computedValue-this.$props.min)/(this.$props.max-this.$props.min)*100,s=(0,a.getDefaultSlots)(this);return i("div",{"aria-valuemin":this.$props.min,attrs:this.v3?void 0:{"aria-valuemin":this.$props.min,"aria-valuemax":this.$props.max,"aria-valuenow":this.computedValue,"aria-disabled":this.$props.disabled?"true":void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,dir:this.currentDir,role:"slider",id:this.$props.id,tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0)},"aria-valuemax":this.$props.max,"aria-valuenow":this.computedValue,"aria-disabled":this.$props.disabled?"true":void 0,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy,dir:this.currentDir,role:"slider",id:this.$props.id,style:this.$props.style,tabindex:(0,a.getTabIndex)(this.$props.tabIndex,this.$props.disabled,void 0),onFocus:this.onFocus,on:this.v3?void 0:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDown},onBlur:this.onBlur,onKeydown:this.onKeyDown,class:(0,a.classNames)("k-slider k-widget",{"k-focus":this.currentFocused,"k-disabled":this.$props.disabled,"k-slider-horizontal":!this.$props.vertical,"k-slider-vertical":this.$props.vertical},this.$props.className)},[i("div",{class:(0,a.classNames)("k-slider-wrap")},[this.$props.buttons&&i(se.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",rounded:"full",title:o.toLanguageString(ce,Ve["slider.decrement"])},tabIndex:-1,icon:this.$props.vertical?"arrow-s":"arrow-w",style:{position:"relative"},rounded:"full",class:"k-button-decrease",title:o.toLanguageString(ce,Ve["slider.decrement"]),onClick:this.decrement,on:this.v3?void 0:{click:this.decrement}}),i(a.Draggable,{onDrag:this.dragOver,on:this.v3?void 0:{drag:this.dragOver,press:this.dragStart},onPress:this.dragStart,ref:"draggable"},this.v3?function(){return[i("div",{class:"k-slider-track-wrap",style:{touchAction:"none"}},[s&&i("ul",{class:"k-reset k-slider-items"},[s]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:r+"%"}:{width:r+"%"}}),i("a",{class:"k-draghandle",title:o.toLanguageString(ue,Ve[ue]),attrs:n.v3?void 0:{title:o.toLanguageString(ue,Ve[ue])},style:n.$props.vertical?{bottom:r+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=r+"%",t.zIndex=1,t)})])])]}:[i("div",{class:"k-slider-track-wrap",style:{touchAction:"none"}},[s&&i("ul",{class:"k-reset k-slider-items"},[s]),i("div",{class:"k-slider-track",ref:"sliderTrack"},[i("div",{class:"k-slider-selection",style:n.$props.vertical?{height:r+"%"}:{width:r+"%"}}),i("a",{class:"k-draghandle",title:o.toLanguageString(ue,Ve[ue]),attrs:n.v3?void 0:{title:o.toLanguageString(ue,Ve[ue])},style:n.$props.vertical?{bottom:r+"%",zIndex:1}:(t={},t["rtl"===n.currentDir?"right":"left"]=r+"%",t.zIndex=1,t)})])])]),this.$props.buttons&&i(se.Button,{type:"button",attrs:this.v3?void 0:{type:"button",tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",title:o.toLanguageString(de,Ve["slider.increment"])},tabIndex:-1,icon:this.$props.vertical?"arrow-n":"arrow-e",rounded:"full",style:{position:"relative"},class:"k-button-increase",title:o.toLanguageString(de,Ve["slider.increment"]),onClick:this.increment,on:this.v3?void 0:{click:this.increment}})])])},methods:{focus:function(){this.$el&&this.$el.focus()},isLabel:function(e){for(var t=e;t;){if(Boolean(t.getAttribute(Bn)))return!0;t=t.parentElement}return!1},onFocus:function(e){this.currentFocused=!0,this.$emit("focus",e)},onBlur:function(e){this.currentFocused=!1,this.$emit("blur",e)},onKeyDown:function(e){var t=void 0;e.keyCode===a.Keys.left||e.keyCode===a.Keys.down?t=this.currentValue-(this.$props.step||0):e.keyCode===a.Keys.right||e.keyCode===a.Keys.up?t=this.currentValue+(this.$props.step||0):e.keyCode===a.Keys.home?t=this.$props.min:e.keyCode===a.Keys.end&&(t=this.$props.max),void 0!==t&&(e.preventDefault(),this.change(e,t))},decrement:function(e){e.preventDefault(),this.change(e,this.currentValue-(this.$props.step||0))},increment:function(e){e.preventDefault(),this.change(e,this.currentValue+(this.$props.step||0))},dragStart:function(e){this.isLabel(e.originalEvent.target)||(e.isTouch&&e.originalEvent.preventDefault(),this.drag(e))},dragOver:function(e){e.originalEvent.preventDefault(),this.drag(e)},drag:function(e){var t=this.draggable.element.getBoundingClientRect(),n=(this.$props.vertical?t.bottom-e.clientY:"rtl"===this.currentDir?t.right-e.clientX:e.clientX-t.left)/(this.$props.vertical?t.height:t.width);this.change(e,this.$props.min+n*(this.$props.max-this.$props.min))},change:function(e,t){t=Math.min(Math.max(t,this.$props.min),this.$props.max),this.currentValue=t,this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{event:e,value:t,component:this,target:{name:this.$props.name,value:t}})}}},jn=zn,Kn=function(){return Kn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kn.apply(this,arguments)};!function(e){e.start="start",e.end="end",e.min="min",e.max="max",e.increase="increase",e.decrease="decrease"}(dn||(dn={}));var _n=function(){return _n=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_n.apply(this,arguments)},Hn=s,Wn=Hn.h,Un=Hn.version&&"3"===Hn.version[0],qn=Hn.ref,Gn=Hn.inject,Jn={name:"KendoRangeSlider",model:{event:"changemodel"},props:{id:String,value:{type:Object,validator:function(e){return e.start<=e.end}},defaultValue:{type:Object,default:function(){return{start:0,end:0}},validator:function(e){return e.start<=e.end}},step:{type:Number,default:1},min:{type:Number,required:!0},max:{type:Number,required:!0},vertical:Boolean,disabled:Boolean,dir:{type:String,default:"ltr",validator:function(e){return[null,"ltr","rtl"].includes(e)}},startTabIndex:Number,endTabIndex:Number},provide:function(){return{kendoMin:this.$props.min,kendoMax:this.$props.max,kendoVertical:this.$props.vertical}},inject:{kendoLocalizationService:{default:null}},created:function(){(0,a.validatePackage)(l)},data:function(){return{currentValue:this.defaultValue,currentDrag:"",currentDir:"ltr"}},computed:{computedValue:function(){return void 0!==this.$props.value?this.$props.value:this.currentValue},percentStart:function(){return(this.computedValue.start-this.min)/(this.max-this.min)*100},percentEnd:function(){return(this.computedValue.end-this.min)/(this.max-this.min)*100},sliderItemsStyle:function(){return this.vertical?{paddingTop:0,height:"100%"}:{}},trackStyles:function(){return this.vertical?{marginTop:"0.5rem",marginBottom:"0.5rem"}:{marginLeft:"0.5rem",marginRight:"0.5rem"}}},mounted:function(){if(this.sliderRef=this.$refs.sliderRef,this.sliderSelectionRef=this.$refs.sliderSelectionRef,this.startHandle=this.$refs.startHandle,this.endHandle=this.$refs.endHandle,this.sliderTrackRef=this.$refs.sliderTrackRef,this.sliderTrackWrapRef=this.$refs.sliderTrackWrapRef,!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}},setup:Un?function(){return{v3:!!Un,inputRef:qn(null),kendoLocalizationService:Gn("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n,i=this,o=Wn||e,r=(0,N.provideLocalizationService)(this),s=(0,a.getDefaultSlots)(this),l=this.$props,d=l.id;return l.dir,o("div",{role:"slider",attrs:this.v3?void 0:{role:"slider",id:d,dir:this.currentDir,"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},id:d,dir:this.currentDir,class:(0,a.classNames)("k-widget k-slider",{"k-rtl":"rtl"===this.currentDir,"k-disabled":this.$props.disabled,"k-slider-vertical":this.$props.vertical,"k-slider-horizontal":!this.$props.vertical},this.$props.class),"aria-labelledby":this.$props.ariaLabelledBy,"aria-describedby":this.$props.ariaDescribedBy},[o(a.Draggable,{onDrag:this.handleTrackDrag,on:this.v3?void 0:{drag:this.handleTrackDrag,press:this.handleTrackPress,release:this.handleTrackRelease},onPress:this.handleTrackPress,onRelease:this.handleTrackRelease,ref:"draggable"},this.v3?function(){return[o("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:_n({flexGrow:1,position:"relative",touchAction:"none"},i.trackStyles)},[s&&o("ul",{class:"k-reset k-slider-items",style:_n({},i.sliderItemsStyle)},[s]),o("div",{ref:"sliderTrackRef",class:"k-slider-track",style:i.$props.vertical?{bottom:0,height:"100%"}:(t={},t["rtl"===i.currentDir?"right":"left"]=0,t.width="100%",t)},[null!==i.percentStart&&null!==i.percentEnd&&o("div",{"data-selection":!0,attrs:i.v3?void 0:{"data-selection":!0,title:"".concat(i.computedValue.start," - ").concat(i.computedValue.end)},ref:"sliderSelectionRef",title:"".concat(i.computedValue.start," - ").concat(i.computedValue.end),class:"k-slider-selection",style:i.vertical?{height:i.percentEnd-i.percentStart+"%",bottom:i.percentStart+"%"}:(n={},n["rtl"===i.currentDir?"right":"left"]=i.percentStart+"%",n.width=i.percentEnd-i.percentStart+"%",n)}),o("a",{ref:"startHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:(0,a.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,title:r.toLanguageString(ue,Ve[ue])},tabindex:(0,a.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:r.toLanguageString(ue,Ve[ue]),style:i.vertical?{bottom:"calc("+i.percentStart+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentStart+"% - 13px)",zIndex:1}:{left:"calc("+i.percentStart+"%)",zIndex:1},onKeydown:i.handleStartKeyDown,on:i.v3?void 0:{keydown:i.handleStartKeyDown}}),o("a",{ref:"endHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:(0,a.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,title:r.toLanguageString(ue,Ve[ue])},tabindex:(0,a.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:r.toLanguageString(ue,Ve[ue]),style:i.vertical?{bottom:"calc("+i.percentEnd+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentEnd+"% - 13px)",zIndex:1}:{left:"calc("+i.percentEnd+"%)",zIndex:1},onKeydown:i.handleEndKeyDown,on:i.v3?void 0:{keydown:i.handleEndKeyDown}})])])]}:[o("div",{ref:"sliderTrackWrapRef",class:"k-slider-track-wrap",style:_n({flexGrow:1,position:"relative",touchAction:"none"},i.trackStyles)},[s&&o("ul",{class:"k-reset k-slider-items",style:_n({},i.sliderItemsStyle)},[s]),o("div",{ref:"sliderTrackRef",class:"k-slider-track",style:i.$props.vertical?{bottom:0,height:"100%"}:(t={},t["rtl"===i.currentDir?"right":"left"]=0,t.width="100%",t)},[null!==i.percentStart&&null!==i.percentEnd&&o("div",{"data-selection":!0,attrs:i.v3?void 0:{"data-selection":!0,title:"".concat(i.computedValue.start," - ").concat(i.computedValue.end)},ref:"sliderSelectionRef",title:"".concat(i.computedValue.start," - ").concat(i.computedValue.end),class:"k-slider-selection",style:i.vertical?{height:i.percentEnd-i.percentStart+"%",bottom:i.percentStart+"%"}:(n={},n["rtl"===i.currentDir?"right":"left"]=i.percentStart+"%",n.width=i.percentEnd-i.percentStart+"%",n)}),o("a",{ref:"startHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:(0,a.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,title:r.toLanguageString(ue,Ve[ue])},tabindex:(0,a.getTabIndex)(i.startTabIndex,i.$props.disabled,void 0),"aria-valuemin":i.min,"aria-valuemax":Math.max(i.max,i.computedValue.end),"aria-valuenow":i.computedValue.start,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:r.toLanguageString(ue,Ve[ue]),style:i.vertical?{bottom:"calc("+i.percentStart+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentStart+"% - 13px)",zIndex:1}:{left:"calc("+i.percentStart+"%)",zIndex:1},onKeydown:i.handleStartKeyDown,on:i.v3?void 0:{keydown:i.handleStartKeyDown}}),o("a",{ref:"endHandle",role:"slider",attrs:i.v3?void 0:{role:"slider",tabindex:(0,a.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,title:r.toLanguageString(ue,Ve[ue])},tabindex:(0,a.getTabIndex)(i.endTabIndex,i.$props.disabled,void 0),"aria-valuemin":Math.min(i.min,i.computedValue.start),"aria-valuemax":i.max,"aria-valuenow":i.computedValue.end,"aria-disabled":i.disabled?"true":void 0,class:"k-draghandle",title:r.toLanguageString(ue,Ve[ue]),style:i.vertical?{bottom:"calc("+i.percentEnd+"%)",zIndex:1}:"rtl"===i.currentDir?{right:"calc("+i.percentEnd+"% - 13px)",zIndex:1}:{left:"calc("+i.percentEnd+"%)",zIndex:1},onKeydown:i.handleEndKeyDown,on:i.v3?void 0:{keydown:i.handleEndKeyDown}})])])])])},methods:{dispatchStateValue:function(e){var t=function(e,t){var n,i;switch(t.type){case dn.start:if(void 0===t.payload)return e;n={start:t.payload>e.end?e.end:Math.max(t.payload,t.min),end:e.end};break;case dn.end:if(void 0===t.payload)return e;n={start:e.start,end:t.payload<e.start?e.start:Math.min(t.payload,t.max)};break;case dn.min:n="start"===t.key?Kn(Kn({},e),{start:t.min}):Kn(Kn({},e),{end:Math.max(t.min,e.start)});break;case dn.max:n="start"===t.key?Kn(Kn({},e),{start:Math.min(t.max,e.end)}):Kn(Kn({},e),{end:t.max});break;case dn.increase:if(void 0===t.step||void 0===t.key)return e;i=e[t.key]+t.step,n="start"===t.key?i<t.min?Kn(Kn({},e),{start:t.min}):Kn(Kn({},e),{start:Math.min(i,e.end)}):i>t.max?Kn(Kn({},e),{end:t.max}):Kn(Kn({},e),{end:Math.max(i,e.start)});break;case dn.decrease:if(void 0===t.step||void 0===t.key)return e;i=e[t.key]-t.step,n="start"===t.key?i<t.min?Kn(Kn({},e),{start:t.min}):Kn(Kn({},e),{start:Math.min(i,e.end)}):i>t.max?Kn(Kn({},e),{end:t.max}):Kn(Kn({},e),{end:Math.max(i,e.start)});break;default:n=e}return n}({start:this.computedValue.start,end:this.computedValue.end},_n(_n({},e),{min:this.min,max:this.max,step:this.step}));this.currentValue.start=t.start,this.currentValue.end=t.end,this.$emit("change",{min:this.min,max:this.max,step:this.step,value:{start:t.start,end:t.end}})},focus:function(){this.startHandle&&this.startHandle.focus()},handleChange:function(e,t){this.$emit("change",{value:e,event:t})},calcNewDistance:function(e){if(this.sliderTrackWrapRef){e.originalEvent.preventDefault();var t=this.sliderTrackWrapRef.getBoundingClientRect(),n=(this.$props.vertical?t.bottom-e.clientY:"rtl"===this.currentDir?t.right-e.clientX:e.clientX-t.left)/(this.$props.vertical?t.height:t.width);return this.min+n*(this.max-this.min)}},calcKey:function(e){return e<=this.computedValue.start?"start":e>=this.computedValue.end?"end":2*e<this.computedValue.end+this.computedValue.start?"start":"end"},handleStartKeyDown:function(e){switch(e.keyCode){case a.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?dn.decrease:dn.increase,key:"start",event:e});break;case a.Keys.up:e.preventDefault(),this.dispatchStateValue({type:dn.increase,key:"start",event:e});break;case a.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?dn.increase:dn.decrease,key:"start",event:e});break;case a.Keys.down:e.preventDefault(),this.dispatchStateValue({type:dn.decrease,key:"start",event:e});break;case a.Keys.home:e.preventDefault(),this.dispatchStateValue({type:dn.min,key:"start",event:e});break;case a.Keys.end:e.preventDefault(),this.dispatchStateValue({type:dn.max,key:"start",event:e})}},handleEndKeyDown:function(e){switch(e.keyCode){case a.Keys.right:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?dn.decrease:dn.increase,key:"end",event:e});break;case a.Keys.up:e.preventDefault(),this.dispatchStateValue({type:dn.increase,key:"end",event:e});break;case a.Keys.left:e.preventDefault(),this.dispatchStateValue({type:"rtl"===this.currentDir?dn.increase:dn.decrease,key:"end",event:e});break;case a.Keys.down:e.preventDefault(),this.dispatchStateValue({type:dn.decrease,key:"end",event:e});break;case a.Keys.home:e.preventDefault(),this.dispatchStateValue({type:dn.min,key:"end",event:e});break;case a.Keys.end:e.preventDefault(),this.dispatchStateValue({type:dn.max,key:"end",event:e})}},handleTrackPress:function(e){var t=this.calcNewDistance(e),n=this.calcKey(t);this.currentDrag=n,"end"===n?this.endHandle.focus():this.startHandle.focus();var i="end"===n?dn.end:dn.start;this.dispatchStateValue({type:i,payload:t,event:e})},handleTrackDrag:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?dn.end:dn.start;this.dispatchStateValue({type:n,payload:t,event:e})},handleTrackRelease:function(e){var t=this.calcNewDistance(e),n="end"===this.currentDrag?dn.end:dn.start;this.dispatchStateValue({type:n,payload:t,event:e}),this.currentDrag=""}}},Xn=Jn,Yn=s,Zn=Yn.h,Qn=Yn.version&&"3"===Yn.version[0],ei=Yn.ref,ti=Yn.inject,ni={name:"KendoCheckbox",emits:{changemodel:null,"update:modelValue":null,change:null,focus:null,blur:null},model:{event:"changemodel"},inject:{kendoLocalizationService:{default:null}},props:{checked:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,default:void 0},defaultValue:{type:[String,Boolean],default:void 0},modelValue:{type:[String,Boolean],default:void 0},dir:String,disabled:Boolean,id:String,ariaLabelledBy:String,ariaDescribedBy:String,label:String,labelRender:[String,Number,Boolean,Object],labelPlacement:String,labelOptional:Boolean,name:String,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},tabIndex:Number,value:{type:[String,Boolean],default:void 0},validationMessage:String,required:Boolean,valid:{type:Boolean,default:void 0},validityStyles:{type:Boolean,default:!0}},data:function(){return{valueDuringOnChange:void 0,currentDir:"ltr",currentChecked:void 0,currentValue:void 0}},created:function(){(0,a.validatePackage)(l),this.calculatedId=(0,a.guid)(),void 0!==this.$props.defaultChecked&&(this.currentChecked=this.$props.defaultChecked),void 0!==this.$props.defaultValue&&(this.currentValue=this.$props.defaultValue),this.currentDir=this.$props.dir},computed:{valueIsBooleanOrNull:function(){var e=this.$props.value;return"boolean"==typeof e||null===e},isCheckedControlled:function(){return void 0!==this.$props.checked},isValueControlled:function(){return void 0!==this.$props.value&&this.valueIsBooleanOrNull},computedValue:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentValue},computedChecked:function(){return void 0!==this.$data.valueDuringOnChange?this.$data.valueDuringOnChange:void 0!==this.$props.checked?this.$props.checked:void 0!==this.$props.modelValue?this.$props.modelValue:this.$data.currentChecked},useValueAsChecked:function(){return void 0===this.computedChecked&&this.computedValue},checkedProp:function(){return this.useValueAsChecked?this.computedValue:this.computedChecked},valueProp:function(){var e=this.$props.value;return this.useValueAsChecked||this.isValueControlled?null===e?e:void 0:e||this.computedValue},indeterminateProp:function(){return null===this.checkedProp||null===this.valueProp},isValid:function(){var e=this.$props.valid;return void 0!==e?e:!this.$props.required||!!this.computedChecked}},mounted:function(){if(this.input=(0,a.getRef)(this,"input"),!this.currentDir&&window&&this.$el){var e=window.getComputedStyle(this.$el).direction;e&&(this.currentDir=e)}this.setValidity()},updated:function(){this.input||(this.input=(0,a.getRef)(this,"input")),this.setValidity()},setup:Qn?function(){return{v3:!!Qn,inputRef:ei(null),kendoLocalizationService:ti("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=Zn||e,i=this.$props,o=i.ariaDescribedBy,r=i.ariaLabelledBy,s=i.disabled,l=i.id,d=i.label,c=i.labelRender,u=i.labelPlacement,p=i.name,h=i.labelOptional,f=i.tabIndex,v=i.required,m=i.validityStyles,g=i.size,y=i.rounded,b=(0,a.getDefaultSlots)(this),k=d;this.localizationService=(0,N.provideLocalizationService)(this),this.defaultValidationMessage=this.localizeMessage(Ne),this.optionalMessage=this.localizeMessage(Pe);var w=(0,a.classNames)({"k-disabled":s}),S=(0,a.classNames)(((t={"k-checkbox":!0})["k-checkbox-".concat(a.kendoThemeMaps.sizeMap[g])]=g,t["k-rounded-".concat(a.kendoThemeMaps.roundedMap[y])]=y,t["k-indeterminate"]=this.indeterminateProp,t["k-invalid k-invalid"]=!(this.isValid||void 0!==m||!0===m),t));if(c){var x=c?a.templateRendering.call(this,c,a.getListeners.call(this)):null;k=a.getTemplate.call(this,{h:n,template:x})}return n("span","before"===u?{class:w,dir:"rtl",attrs:this.v3?void 0:{dir:"rtl"}}:{class:w,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir}},[function(){return n("input",{type:"checkbox",attrs:this.v3?void 0:{type:"checkbox",name:p,id:l||this.calculatedId,"aria-labelledby":r,"aria-describedby":o,disabled:s,tabindex:(0,a.getTabIndex)(f,s),role:"checkbox",required:void 0!==v&&v,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":s||void 0},class:S,name:p,id:l||this.calculatedId,ref:(0,a.setRef)(this,"input"),"aria-labelledby":r,"aria-describedby":o,checked:this.v3?Boolean(this.checkedProp):null,domProps:this.v3?void 0:{checked:Boolean(this.checkedProp)},disabled:s,tabindex:(0,a.getTabIndex)(f,s),role:"checkbox",required:void 0!==v&&v,"aria-checked":!(!this.computedChecked&&!this.checkedProp)||!!this.indeterminateProp&&"mixed","aria-disabled":s||void 0,onChange:this.onChangeHandler,on:this.v3?void 0:{change:this.onChangeHandler,keydown:this.onKeyDownHandler,focus:this.onFocusHandler,blur:this.onBlurHandler},onKeydown:this.onKeyDownHandler,onFocus:this.onFocusHandler,onBlur:this.onBlurHandler})}.call(this),function(){return void 0!==k?n("label",{class:"k-checkbox-label",for:l||this.calculatedId,attrs:this.v3?void 0:{for:l||this.calculatedId},style:{userSelect:"none"}},[k,h&&n("span",{class:"k-label-optional"},[this.optionalMessage])]):null}.call(this),b])},methods:{setValidity:function(){var e=void 0!==this.$props.valid?this.$props.valid:!this.$props.required||!!this.computedChecked;this.input&&this.input.setCustomValidity&&this.input.setCustomValidity(e?"":this.$props.validationMessage||this.defaultValidationMessage)},localizeMessage:function(e){return this.localizationService.toLanguageString(e,Ve[e])},focusElement:function(){this.input&&this.input.focus()},setValue:function(e,t){this.$data.valueDuringOnChange=t;var n=this;this.$nextTick((function(){if(n.isCheckedControlled||n.isValueControlled||n.$props.disabled||(n.currentValue=t,n.currentChecked=t),!n.$props.disabled){var i={element:n.$el,focus:null};n.$emit("changemodel",t),n.$emit("update:modelValue",t),n.$emit("change",{e,handle:i,value:t})}this.$data.valueDuringOnChange=void 0}))},onChangeHandler:function(e){var t=e.target.checked;this.setValue(e,t)},onKeyDownHandler:function(e){if(!this.$props.disabled){var t=e.keyCode,n=e.currentTarget.checked;t===a.Keys.space&&(e.preventDefault(),e.stopPropagation(),this.setValue(e,!n))}},onBlurHandler:function(e){this.$props.disabled||this.$emit("blur",e)},onFocusHandler:function(e){this.$props.disabled||this.$emit("focus",e)}}},ii=ni,oi=s,ri=oi.h,si=oi.version&&"3"===oi.version[0],ai=oi.ref,li=(oi.inject,{name:"KendoRadioButton",props:{ariaDescribedBy:String,checked:Boolean,disabled:Boolean,className:String,content:[String,Number,Boolean,Object],id:String,label:String,labelRender:[String,Number,Boolean,Object],item:[String,Number,Boolean,Object],labelPlacement:String,name:String,tag:{type:String,default:"div"},size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},tabIndex:Number,value:[String,Number,Object],valid:{type:Boolean,default:void 0}},emits:{change:null,focus:null,blur:null},created:function(){this.calculatedId=(0,a.guid)(),(0,a.validatePackage)(l)},mounted:function(){this.input=(0,a.getRef)(this,"input")},computed:{inputClassName:function(){var e;return(e={"k-radio":!0})["k-radio-".concat(a.kendoThemeMaps.sizeMap[this.$props.size])]=this.$props.size,e["k-invalid"]=!1===this.$props.valid,e[this.$props.className]=this.$props.className,e}},methods:{focusElement:function(){this.input&&this.input.focus()},handleChange:function(e){this.$emit("change",{event:e,value:this.$props.value})},handleFocus:function(e){this.$props.disabled||this.$emit("focus",e,void 0)},handleBlur:function(e){this.$props.disabled||this.$emit("blur",e,void 0)}},setup:si?function(){return{v3:!!si,inputRef:ai(null)}}:void 0,render:function(e){var t=ri||e,n=(0,a.getDefaultSlots)(this),i=this.$props,o=i.ariaDescribedBy,r=i.checked,s=i.disabled,l=i.id,d=i.label,c=i.labelRender,u=i.labelPlacement,p=i.name,h=i.tabIndex,f=i.value,v=i.tag,m=d;if(c){var g=c?a.templateRendering.call(this,c,a.getListeners.call(this)):null;m=a.getTemplate.call(this,{h:t,template:g})}var y=a.getTemplate.call(this,{h:t,template:this.$props.content}),b=void 0!==m?t("label",{class:"k-radio-label",for:l||this.calculatedId,attrs:this.v3?void 0:{for:l||this.calculatedId,"aria-label":d},style:{userSelect:"none"},"aria-label":d},[m]):null,k=t("input",{type:"radio",attrs:this.v3?void 0:{type:"radio",id:l||this.calculatedId,name:p,disabled:s,tabindex:(0,a.getTabIndex)(h,s),"aria-describedby":o},id:l||this.calculatedId,name:p,class:this.inputClassName,ref:(0,a.setRef)(this,"input"),disabled:s,tabindex:(0,a.getTabIndex)(h,s),checked:this.v3?r:null,domProps:this.v3?void 0:{checked:r,value:f},style:this.$attrs.style,"aria-describedby":o,value:this.v3?f:null,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},onFocus:this.handleFocus,onBlur:this.handleBlur}),w=t(v,"before"===u?[b,k,y,n]:[k,b,y,n]);return a.getTemplate.call(this,{h:t,template:this.$props.item,defaultRendering:w,defaultSlots:n,additionalListeners:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},additionalProps:{}})}}),di=li,ci=s,ui=ci.h,pi=ci.version&&"3"===ci.version[0],hi=ci.ref,fi=(ci.inject,{name:"KendoRadioGroup",props:{ariaLabelledBy:String,ariaDescribedBy:String,dataItems:Array,defaultValue:[String,Number,Object],dir:String,disabled:Boolean,labelPlacement:String,item:{type:String,default:void 0},layout:{type:String,default:"vertical",validator:function(e){return["horizontal","vertical"].includes(e)}},name:String,modelValue:[String,Number,Object],value:[String,Number,Object],valid:{type:Boolean,default:void 0}},emits:{changemodel:null,"update:modelValue":null,change:null,focus:null,blur:null},model:{event:"changemodel"},created:function(){this.radioGroupName=(0,a.guid)(),(0,a.validatePackage)(l),this.stateChecked=this.$props.defaultValue},watch:{value:function(e){void 0===e&&(this.stateChecked=this.$props.defaultValue)}},mounted:function(){this.rtl=(0,a.isRtl)(this.$el)},computed:{radioGroupClasses:function(){var e=this.$props.layout;return{"k-radio-list":!0,"k-list-horizontal":"horizontal"===e,"k-list-vertical":"vertical"===e||void 0===e}},checkedRadioValue:function(){var e=this.$props.value;return void 0!==e?e:void 0!==this.$props.modelValue?this.$props.modelValue:this.stateChecked},currentDir:function(){return this.$props.dir||(this.rtl?"rtl":void 0)}},data:function(){return{rtl:!1,stateChecked:void 0}},methods:{focusElement:function(){this.$el&&(0,a.focusFirstFocusableChild)(this.$el)},handleChange:function(e){var t=e.value;void 0!==this.$props.value||this.$props.disabled||(this.stateChecked=t),this.$props.disabled||(this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{event:e,value:t}))},handleFocus:function(e){this.$props.disabled||this.$emit("focus",e)},handleBlur:function(e){this.$props.disabled||this.$emit("blur",e)}},setup:pi?function(){return{v3:!!pi,inputRef:hi(null)}}:void 0,render:function(e){var t=ui||e,n=this.$props,i=n.ariaLabelledBy,o=n.ariaDescribedBy,r=n.dataItems,s=n.disabled,l=n.name,d=n.labelPlacement,c=n.valid,u=r&&r.map((function(e,n){var i=this.checkedRadioValue===e.value,o=null===this.checkedRadioValue||void 0===this.checkedRadioValue,r=a.templateRendering.call(this,this.$props.item||e.item,a.getListeners.call(this));return t(di,{class:(0,a.classNames)("k-radio-item",{"k-disabled":e.disabled||s}),style:e.style,key:n,item:r,attrs:this.v3?void 0:{item:r,role:"radio",tag:"li",valid:c,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!s),labelPlacement:e.labelPlacement?e.labelPlacement:d,tabIndex:e.tabIndex?e.tabIndex:o&&0===n||i?0:-1,index:n,name:l||e.name||this.radioGroupName},role:"radio",tag:"li",valid:c,className:e.className,label:e.label,value:e.value,checked:i,disabled:!(!e.disabled&&!s),labelPlacement:e.labelPlacement?e.labelPlacement:d,tabIndex:e.tabIndex?e.tabIndex:o&&0===n||i?0:-1,index:n,name:l||e.name||this.radioGroupName,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur},onFocus:this.handleFocus,onBlur:this.handleBlur},this.v3?function(){return[e.content]}:[e.content])}),this);return t("ul",{role:"radiogroup",attrs:this.v3?void 0:{role:"radiogroup",dir:this.currentDir,"aria-labelledby":i,"aria-describedby":o},class:this.radioGroupClasses,dir:this.currentDir,"aria-labelledby":i,"aria-describedby":o},[u])}}),vi=fi,mi=function(){return mi=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mi.apply(this,arguments)},gi=s,yi=gi.h,bi=gi.version&&"3"===gi.version[0],ki={name:"KendoTextArea",model:{event:"changemodel"},emits:{input:null,change:null,changemodel:null,"update:modelValue":null,focus:null,blur:null},props:{ariaDescribedBy:String,ariaLabelledBy:String,autoSize:Boolean,modelValue:{type:[String,Array,Number],default:void 0},defaultValue:[String,Number],dir:String,disabled:Boolean,readOnly:Boolean,rows:Number,id:String,name:String,validationMessage:String,size:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large"].includes(e)}},rounded:{type:String,default:"medium",validator:function(e){return[null,"small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return[null,"solid","flat","outline"].includes(e)}},required:Boolean,placeholder:String,tabIndex:Number,valid:{type:Boolean,default:void 0},value:[String,Array,Number],validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:a.templateDefinition,inputSuffix:a.templateDefinition,showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String,flow:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},resizable:{type:String,default:"vertical",validator:function(e){return["both","horizontal","vertical","none"].includes(e)}}},created:function(){(0,a.validatePackage)(l),this.calculatedId=(0,a.guid)()},computed:{rootClassName:function(){var e,t=this.$props,n=t.size,i=t.fillMode,o=t.rounded,r=t.required,s=t.showLoadingIcon,l=t.resizable,d=t.autoSize,c=!0===this.validityStyles&&!this.isValid;return(e={"k-input":!0,"k-textarea":!0})["k-input-".concat(a.kendoThemeMaps.sizeMap[n]||n)]=n,e["k-input-".concat(i)]=i,e["k-rounded-".concat(a.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-disabled"]=this.$props.disabled,e["k-invalid"]=c,e["k-required"]=r,e["k-loading"]=s,e["k-resize-".concat(l)]=d?"none":l,e["!k-flex-col"]="vertical"===this.flow,e["!k-flex-row"]="horizontal"===this.flow,e[this.wrapperClass]=this.wrapperClass,e},inputInnerClass:function(){var e;return(e={"k-input-inner":!0,"!k-resize-none":!0,"k-flex":!0})[this.inputClass]=this.inputClass,e},prefixRenderClass:function(){return{"k-input-prefix":!0,"!k-flex-col":"horizontal"===this.flow,"!k-flex-row":"vertical"===this.flow,"!k-align-items-start":"horizontal"===this.flow}},suffixRenderClass:function(){return{"k-input-suffix":!0,"!k-flex-col":"horizontal"===this.flow,"!k-flex-row":"vertical"===this.flow,"!k-align-items-start":"horizontal"===this.flow}},suffixIconWrapClass:function(){return{"k-flex-wrap":!0,"!k-align-items-start":!0}},computedValue:function(){return void 0!==this.$props.value?this.$props.value:void 0!==this.$props.modelValue?this.$props.modelValue:this.currentValue},isValid:function(){return void 0!==this.valid?this.valid:!this.required||!!this.computedValue}},data:function(){return{currentValue:this.$props.defaultValue,textAreaHeight:"auto",currentDir:"ltr"}},watch:{size:function(){this.textAreaHeight="auto"}},mounted:function(){this.element=this.v3?this.elementRef:this.$refs.element,this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,a.isRtl)(this.$el)?"rtl":"ltr",this.setValidity()},updated:function(){this.element=this.v3?this.elementRef:this.$refs.element,this.setValidity()},setup:bi?function(){return{v3:!!bi}}:void 0,render:function(e){var t=this,n=yi||e,i=this.$props,o=i.ariaDescribedBy,r=i.ariaLabelledBy,s=i.autoSize,l=i.disabled,d=i.readOnly,c=i.required,u=i.rows,p=i.id,h=i.name,f=i.placeholder,v=i.tabIndex,m=i.iconName,g=i.showValidationIcon,y=i.showLoadingIcon,b=i.showClearButton,k=mi({id:p||this.calculatedId,name:h,disabled:l,rows:u,placeholder:f,readOnly:d,required:c,tabIndex:(0,a.getTabIndex)(v,l),"aria-labelledby":r,"aria-describedby":o,"aria-multiline":!0,"aria-disabled":l||void 0},this.$attrs),w=a.templateRendering.call(this,this.$props.inputPrefix,a.getListeners.call(this)),S=a.templateRendering.call(this,this.$props.inputSuffix,a.getListeners.call(this)),x=a.getTemplate.call(this,{h:n,template:w,additionalProps:{value:this.computedValue,valid:this.isValid}}),C=a.getTemplate.call(this,{h:n,template:S,additionalProps:{value:this.computedValue,valid:this.isValid}}),$=n("textarea",mi(mi({},k),{attrs:this.v3?void 0:k,class:this.inputInnerClass,ref:this.v3?function(e){t.elementRef=e}:"element",style:s?{overflow:"hidden",height:this.textAreaHeight}:{},value:this.v3?this.computedValue:null,domProps:this.v3?void 0:{value:this.computedValue},onChange:this.handleChange,onInput:this.handleInput,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus,blur:this.handleBlur,input:this.handleInput},onFocus:this.handleFocus,onBlur:this.handleBlur}));return n("span",{class:this.rootClassName,dir:"rtl"===this.currentDir?this.currentDir:"",attrs:this.v3?void 0:{dir:"rtl"===this.currentDir?this.currentDir:""},style:this.$attrs.style},[this.$props.inputPrefix&&n("span",{class:this.prefixRenderClass},[x]),n("span",{class:"k-hstack k-flex"},[m&&n("span",{class:"k-flex-wrap"},[n("span",{class:"k-input-icon k-icon k-i-".concat(m)})]),$,g&&this.isValid&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-validation-icon k-icon k-i-check"})]),g&&!this.isValid&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-validation-icon k-icon k-i-warning"})]),y&&n("span",{class:this.suffixIconWrapClass},[n("span",{class:"k-input-loading-icon k-icon k-i-loading"})]),b&&this.computedValue&&n("span",{class:this.suffixIconWrapClass},[n("span",{onClick:this.clearClick,on:this.v3?void 0:{click:this.clearClick},class:"k-clear-value"},[n("span",{class:"k-icon k-i-x"})])])]),this.$props.inputSuffix&&n("span",{class:this.suffixRenderClass},[C])])},methods:{setValidity:function(){this.element&&this.element.setCustomValidity&&this.element.setCustomValidity(this.isValid?"":this.validationMessage||""),this.element&&(this.textAreaHeight="".concat(this.element.scrollHeight,"px"))},clearClick:function(e){this.emitUpdate(e,"change","")},focus:function(){this.element&&this.element.focus()},emitUpdate:function(e,t,n){var i=n;this.$props.disabled||(this.textAreaHeight="auto",this.currentValue=i),this.$props.disabled||(this.$emit("changemodel",i),this.$emit("update:modelValue",i),this.$emit(t,{event:e,component:this,name:this.element.name,value:i}))},handleChange:function(e){this.emitUpdate(e,"change",e.target.value)},handleInput:function(e){this.emitUpdate(e,"input",e.target.value)},handleFocus:function(e){this.$props.disabled||this.$emit("focus",{event:e,component:this,name:this.element.name})},handleBlur:function(e){this.$props.disabled||this.$emit("blur",{event:e,component:this,name:this.element.name})}}},wi=ki},4035:(e,t,n)=>{n.r(t),n.d(t,{Avatar:()=>Te,AvatarVue2:()=>Me,Card:()=>H,CardActions:()=>ce,CardActionsVue2:()=>de,CardBody:()=>re,CardBodyVue2:()=>oe,CardFooter:()=>$e,CardFooterVue2:()=>Ce,CardHeader:()=>J,CardHeaderVue2:()=>G,CardImage:()=>ve,CardImageVue2:()=>fe,CardSubtitle:()=>ke,CardSubtitleVue2:()=>be,CardTitle:()=>ee,CardTitleVue2:()=>Q,CardVue2:()=>_,Drawer:()=>Je,DrawerContent:()=>et,DrawerContentVue2:()=>Qe,DrawerItem:()=>Ve,DrawerItemVue2:()=>Ee,DrawerNavigation:()=>He,DrawerNavigationVue2:()=>_e,DrawerVue2:()=>Ge,Menu:()=>Mn,MenuItemArrow:()=>un,MenuItemArrowVue2:()=>cn,MenuItemLink:()=>nn,MenuItemLinkVue2:()=>tn,MenuVue2:()=>Dn,PanelBar:()=>xi,PanelBarItem:()=>oi,PanelBarItemVue2:()=>ii,PanelBarVue2:()=>Si,Splitter:()=>Un,SplitterPane:()=>Pn,SplitterPaneVue2:()=>Nn,SplitterVue2:()=>Wn,Step:()=>dt,StepVue2:()=>lt,Stepper:()=>xt,StepperVue2:()=>St,TabStrip:()=>N,TabStripContent:()=>I,TabStripContentVue2:()=>$,TabStripNavigation:()=>b,TabStripNavigationItem:()=>f,TabStripNavigationItemVue2:()=>h,TabStripNavigationVue2:()=>y,TabStripTab:()=>A,TabStripTabVue2:()=>L,TabStripVue2:()=>B,downArrowClass:()=>an,flatChildren:()=>pi,flatVisibleChildren:()=>hi,flatVisibleItems:()=>ui,getFirstId:()=>li,getInitialState:()=>di,isArrayEqual:()=>mi,isPresent:()=>vi,leftArrowClass:()=>dn,renderChildren:()=>ai,rightArrowClass:()=>ln});var i,o,r,s,a,l=n(1895),d=n(7984),c=l,u=c.h,p=c.version&&"3"===c.version[0],h={name:"KendoTabStripNavigationItem",emits:{select:null},props:{active:Boolean,disabled:Boolean,index:Number,title:{type:String,default:"Untitled"},titleRender:[String,Function,Object],first:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0}},computed:{itemClasses:{get:function(){var e,t=this.$props,n=t.active,i=t.disabled,o=t.first,r=t.last;return(e={})["k-first"]=o,e["k-last"]=r,e["k-item"]=!0,e["k-disabled"]=i,e["k-active"]=n,e}}},methods:{onClick:function(){this.$props.disabled||this.$emit("select",this.$props.index)}},setup:p?function(){return{v3:!!p}}:void 0,render:function(e){var t=u||e,n=this.$props,i=n.active,o=n.title,r=void 0===o?"Untitled":o,s=this.$props.titleRender,a=d.getTemplate.call(this,{h:t,template:s,defaultRendering:r,additionalProps:this.$props,additionalListeners:{select:this.onClick}});return t("li",{"aria-selected":i,attrs:this.v3?void 0:{"aria-selected":i,role:"tab"},role:"tab",onClick:this.onClick,on:this.v3?void 0:{click:this.onClick},class:this.itemClasses},[t("span",{class:"k-link"},[a])])}},f=h,v=l,m=v.h,g=v.version&&"3"===v.version[0],y=(v.ref,v.inject,{name:"KendoTabStripNavigation",emits:{select:null,keydown:null},props:{tabs:Array,selected:Number,tabIndex:Number,tabPosition:String},computed:{wrapperNavClasses:{get:function(){return{"k-tabstrip-items-wrapper":!0,"k-hstack":"top"===this.$props.tabPosition||"bottom"===this.$props.tabPosition,"k-vstack":"left"===this.$props.tabPosition||"right"===this.$props.tabPosition}}},navClasses:{get:function(){return{"k-tabstrip-items":!0,"k-reset":!0}}}},setup:g?function(){return{v3:!!g}}:void 0,render:function(e){var t=m||e,n=this.$props,i=n.tabs,o=n.selected,r=i.length;return t("div",{class:this.wrapperNavClasses},[t("ul",{class:this.navClasses,role:"tablist",attrs:this.v3?void 0:{role:"tablist",tabindex:this.$props.tabIndex},tabindex:this.$props.tabIndex,onKeydown:this.onKeyDown,on:this.v3?void 0:{keydown:this.onKeyDown}},[function(){return(e=r,Array.apply(null,Array(e))).map((function(e,n,r){return t(f,{key:n,active:o===n,attrs:this.v3?void 0:{active:o===n,disabled:i[n].disabled,index:n,title:i[n].title,titleRender:i[n].titleRender,first:0===n,last:n===r.length-1},disabled:i[n].disabled,index:n,title:i[n].title,titleRender:i[n].titleRender,first:0===n,last:n===r.length-1,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect}})}),this);var e}.call(this)])])},methods:{onKeyDown:function(e){this.$emit("keydown",e)},onSelect:function(e){this.$emit("select",e)}}}),b=y,k=n(4498),w=function(e,t){var n=this,i=[];return t.forEach((function(t){n.v3&&t.children&&t.children.length&&(i=w.call(n,e,t.children)),(t&&t.tag&&-1!==t.tag.toLowerCase().indexOf("tab")||t.type&&t.type.name&&-1!==t.type.name.toLowerCase().indexOf("kendotabstriptab"))&&i.push(t)})),i},S=l,x=S.h,C=S.version&&"3"===S.version[0],$=(S.ref,S.inject,{name:"KendoTabStripContent",props:{showAll:Boolean,animation:Boolean,tabs:Array,selected:Number,hasTabs:Boolean},created:function(){this.contentId=(0,d.guid)()},setup:C?function(){return{v3:!!C}}:void 0,data:function(){return{midAnimation:!1}},computed:{animationClass:function(){var e=this;return this.tabs.map((function(t,n){var i=n===e.$props.selected;return{"k-fade-appear":e.animation&&!i,"k-fade-enter-active":e.animation&&i}}))}},render:function(e){var t=x||e,n=this.$props,i=n.tabs,o=n.selected,r=(n.showAll,n.hasTabs),s=i&&"number"==typeof o&&i[o],a=(0,d.getDefaultSlots)(this),l=r?i:w.call(this,[],a||[]),c=o<l.length&&o>-1,u=(0,d.classNames)({"k-content":c},{"k-active":c},s&&s.contentClassName),p=function(e,n){var i=this,o=n===this.$props.selected,s={position:"initial",height:o?void 0:"0px",width:o?void 0:"0px"},a=r?d.getTemplate.call(this,{h:t,template:e.content,defaultRendering:null}):e;return t(k.pT,{appear:!!this.v3||o,attrs:this.v3?void 0:{appear:!!this.v3||o,enter:this.$props.animation,exit:this.$props.keepTabsMounted},key:n,class:this.animationClass[n],enter:this.$props.animation,exit:this.$props.keepTabsMounted,style:s},this.v3?function(){return[t("div",{role:"tabpanel",attrs:i.v3?void 0:{role:"tabpanel","aria-expanded":!0,id:String(i.contentId+n)},"aria-expanded":!0,id:String(i.contentId+n),key:n},[a])]}:[t("div",{role:"tabpanel",attrs:i.v3?void 0:{role:"tabpanel","aria-expanded":!0,id:String(i.contentId+n)},"aria-expanded":!0,id:String(i.contentId+n),key:n},[a])])};return t("div",{class:u,style:this.$props.style},[function(){return l.map((function(e,t){return p.call(this,e,t)}),this)}.call(this)])}}),I=$,O={name:"@progress/kendo-vue-layout",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123933,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},D=function(){return D=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},D.apply(this,arguments)},M=l,T=M.h,R=M.version&&"3"===M.version[0],B=(M.ref,M.inject,{name:"KendoTabStrip",emits:{select:null},props:{animation:{type:Boolean,default:!0},selected:Number,tabContentStyle:Object,tabPosition:{type:String,default:"top"},tabs:{type:Array,default:void 0},tabIndex:Number,dir:String},data:function(){return{currentShowAll:!0,currentTabs:[]}},computed:{compTabs:function(){return void 0!==this.tabs?this.tabs.map((function(e){var t=d.templateRendering.call(this,e.content,d.getListeners.call(this));return D(D({},e),{content:t})}),this):this.currentTabs}},provide:function(){return{addRenderTitle:this.addRenderTitle,addTab:this.addTab,removeTab:this.removeTab}},created:function(){var e,t=this;this.keyBinding=((e={})[d.Keys.left]=function(){return t.prevNavigatableTab()},e[d.Keys.right]=function(){return t.nextNavigatableTab()},e[d.Keys.down]=function(){return t.nextNavigatableTab()},e[d.Keys.up]=function(){return t.prevNavigatableTab()},e[d.Keys.home]=function(){return 0},e[d.Keys.end]=function(){return t.compTabs.length-1},e),(0,d.validatePackage)(O)},watch:{selected:function(e,t){this.$props.animation&&(this.currentShowAll=!1,this.$nextTick((function(){this.currentShowAll=!0})))}},methods:{addRenderTitle:function(e,t){var n=this.compTabs.findIndex((function(t){return t.id===e}));this.v3?this.compTabs[n].titleRender=t:this.compTabs[n]=D(D({},this.compTabs[n]),{titleRender:t})},addTab:function(e){this.currentTabs.push(e)},removeTab:function(e){var t=this.currentTabs.findIndex((function(t){return t.id===e}));this.currentTabs.splice(t,1)},onSelect:function(e){this.$props.selected!==e&&this.$emit("select",{selected:e})},onKeyDown:function(e){var t;switch(e.keyCode){case d.Keys.left:t=this.keyBinding[this.invertKeys(d.Keys.left,d.Keys.right)];break;case d.Keys.right:t=this.keyBinding[this.invertKeys(d.Keys.right,d.Keys.left)];break;case d.Keys.up:t=this.keyBinding[d.Keys.up];break;case d.Keys.down:t=this.keyBinding[d.Keys.down];break;case d.Keys.home:t=this.keyBinding[d.Keys.home];break;case d.Keys.end:t=this.keyBinding[d.Keys.end]}t&&(e.preventDefault(),this.onSelect(t()))},invertKeys:function(e,t){return this.$el&&"rtl"===getComputedStyle(this.$el).direction?t:e},firstNavigatableTab:function(){var e=this.compTabs.length;if(e)for(var t=0;t<e;t++)if(!this.compTabs[t].disabled)return t},lastNavigatableTab:function(){var e=this.compTabs.length;if(e)for(var t=e-1;t>0;t--)if(!this.compTabs[t].disabled)return t},prevNavigatableTab:function(){var e=this.compTabs.length,t=this.$props.selected,n=t?t-1:-1;if(n<0)return this.lastNavigatableTab();if(e)for(var i=n;i>-1;i--){if(!this.compTabs[i].disabled)return i;if(0===i)return this.lastNavigatableTab()}},nextNavigatableTab:function(){var e=this.compTabs.length,t=this.$props.selected,n=t?t+1:1;if(n>=e)return this.firstNavigatableTab();if(e)for(var i=n;i<e;i++){if(!this.compTabs[i].disabled)return i;if(i+1===e)return this.firstNavigatableTab()}}},setup:R?function(){return{v3:!!R}}:void 0,render:function(e){var t,n=T||e,i=this.$props,o=i.tabPosition,r=i.tabIndex,s=void 0===r?0:r,a="bottom"===o,l=(0,d.classNames)("k-widget","k-header","k-floatwrap","k-tabstrip",((t={})["k-tabstrip-left"]="left"===o,t["k-tabstrip-right"]="right"===o,t["k-tabstrip-bottom"]="bottom"===o,t["k-tabstrip-top"]="top"===o,t));return n("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:l},[!a&&n(b,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:s},selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect,keydown:this.onKeyDown},onKeydown:this.onKeyDown,tabIndex:s}),function(e){var t=e.selected,i=e.tabContentStyle,o=(0,d.getDefaultSlots)(this),r={index:t,animation:this.$props.animation,tabs:this.compTabs,hasTabs:void 0!==this.tabs,selected:t,tabContentStyle:i,showAll:this.currentShowAll};return n(I,D(D({},r),{attrs:this.v3?void 0:D({},r)}),this.v3?function(){return o}:[o])}.call(this,this.$props),a&&n(b,{tabs:this.compTabs,attrs:this.v3?void 0:{tabs:this.compTabs,selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,tabIndex:s},selected:this.$props.selected,tabContentStyle:this.$props.tabContentStyle,onSelect:this.onSelect,on:this.v3?void 0:{select:this.onSelect,keydown:this.onKeyDown},onKeydown:this.onKeyDown,tabIndex:s})])}}),N=B,P=l,E=P.h,V=P.version&&"3"===P.version[0],L=(P.ref,P.inject,{name:"KendoTabStripTab",props:{disabled:Boolean,contentClassName:String,title:String,titleRender:[String,Function,Object]},inject:{addRenderTitle:{default:null},addTab:{default:null},removeTab:{default:null}},created:function(){this.tabId=(0,d.guid)(),this.addTab({title:this.$props.title,id:this.tabId,disabled:this.$props.disabled,contentClassName:this.$props.contentClassName})},destroyed:V?void 0:function(){this.removeTab(this.tabId)},unmounted:function(){this.removeTab(this.tabId)},setup:V?function(){return{v3:!!V}}:void 0,render:function(e){var t=E||e,n=this.$props.titleRender?d.templateRendering.call(this,this.$props.titleRender,d.getListeners.call(this)):null;return n&&this.addRenderTitle(this.tabId,n),t("div",[(0,d.getDefaultSlots)(this)])}}),A=L;!function(e){e.CIRCLE="circle",e.SQUARE="square",e.ROUNDED="rounded",e.RECTANGLE="rectangle"}(i||(i={})),function(e){e.TEXT="text",e.IMAGE="image",e.ICON="icon"}(o||(o={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(r||(r={})),function(e){e.DEFAULT="default",e.primary="primary",e.INFO="info",e.SUCCESS="success",e.WARNING="warning",e.ERROR="error"}(s||(s={})),function(e){e.START="start",e.CENTER="center",e.END="end",e.STRETCHED="stretched"}(a||(a={}));var F,z=l,j=z.h,K=z.version&&"3"===z.version[0],_={name:"KendoCard",props:{dir:String,type:{type:String,default:s.DEFAULT,validator:function(e){return["default","primary","info","success","warning","error"].includes(e)}},orientation:{type:String,default:r.VERTICAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},created:function(){(0,d.validatePackage)(O)},setup:K?function(){return{v3:!!K}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props.orientation!==r.HORIZONTAL?"vertical":"horizontal";return(e={"k-card":!0})["k-card-".concat(this.$props.type)]=this.$props.type!==s.DEFAULT,e["k-card-".concat(t)]=!0,e}},render:function(e){var t=j||e,n=(0,d.getDefaultSlots)(this);return t("div",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir},class:this.wrapperClass},[n])}},H=_,W=l,U=W.h,q=W.version&&"3"===W.version[0],G={name:"KendoCardHeader",setup:q?function(){return{v3:!!q}}:void 0,render:function(e){return(U||e)("div",{class:"k-card-header"},[(0,d.getDefaultSlots)(this)])}},J=G,X=l,Y=X.h,Z=X.version&&"3"===X.version[0],Q={name:"KendoCardTitle",setup:Z?function(){return{v3:!!Z}}:void 0,render:function(e){return(Y||e)("div",{class:"k-card-title"},[(0,d.getDefaultSlots)(this)])}},ee=Q,te=l,ne=te.h,ie=te.version&&"3"===te.version[0],oe={name:"KendoCardBody",setup:ie?function(){return{v3:!!ie}}:void 0,render:function(e){return(ne||e)("div",{class:"k-card-body"},[(0,d.getDefaultSlots)(this)])}},re=oe,se=l,ae=se.h,le=se.version&&"3"===se.version[0],de={name:"KendoCardActions",props:{layout:{type:String,default:a.START,validator:function(e){return["stretched","start","center","end"].includes(e)}},orientation:{type:String,default:r.HORIZONTAL,validator:function(e){return["horizontal","vertical"].includes(e)}}},setup:le?function(){return{v3:!!le}}:void 0,computed:{wrapperClass:function(){var e;return(e={"k-card-actions":!0})["k-card-actions-".concat(this.$props.layout)]=!0,e["k-card-actions-".concat(this.$props.orientation!==r.HORIZONTAL?"vertical":"horizontal")]=!0,e}},render:function(e){var t=ae||e,n=(0,d.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[n])}},ce=de,ue=l,pe=ue.h,he=ue.version&&"3"===ue.version[0],fe={name:"KendoCardImage",props:{src:String},setup:he?function(){return{v3:!!he}}:void 0,render:function(e){var t=pe||e;return(0,d.getDefaultSlots)(this),t("img",{class:"k-card-image",src:this.$props.src,attrs:this.v3?void 0:{src:this.$props.src}})}},ve=fe,me=l,ge=me.h,ye=me.version&&"3"===me.version[0],be={name:"KendoCardSubtitle",setup:ye?function(){return{v3:!!ye}}:void 0,render:function(e){return(ge||e)("div",{class:"k-card-subtitle"},[(0,d.getDefaultSlots)(this)])}},ke=be,we=l,Se=we.h,xe=we.version&&"3"===we.version[0],Ce={name:"KendoCardFooter",setup:xe?function(){return{v3:!!xe}}:void 0,render:function(e){return(Se||e)("div",{class:"k-card-footer"},[(0,d.getDefaultSlots)(this)])}},$e=Ce,Ie=l,Oe=Ie.h,De=Ie.version&&"3"===Ie.version[0],Me={name:"KendoAvatar",props:{type:{type:String,default:o.TEXT,validator:function(e){return["text","image","icon"].includes(e)}},border:Boolean,rounded:{type:String,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["small","medium","large"].includes(e)}},themeColor:{type:String,default:"primary",validator:function(e){return["primary","secondary","tertiary","info","success","warning","error","dark","light","inverse","inherit"].includes(e)}}},created:function(){(0,d.validatePackage)(O)},setup:De?function(){return{v3:!!De}}:void 0,computed:{wrapperClass:function(){var e,t=this.$props,n=t.border,i=(t.type,t.size),o=t.rounded,r=t.fillMode,s=t.themeColor;return(e={"k-avatar-bordered":n,"k-avatar":!0})["k-avatar-".concat(d.kendoThemeMaps.sizeMap[i]||i)]=i,e["k-rounded-".concat(d.kendoThemeMaps.roundedMap[o]||o)]=o,e["k-avatar-".concat(r)]=r,e["k-avatar-".concat(r,"-").concat(s)]=Boolean(r&&s),e},innerClass:function(){var e;return(e={})["k-avatar-".concat(this.$props.type)]=this.$props.type,e}},render:function(e){var t=Oe||e,n=(0,d.getDefaultSlots)(this);return t("div",{class:this.wrapperClass},[t("span",{class:this.innerClass},[n])])}},Te=Me,Re=function(){return Re=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Re.apply(this,arguments)},Be=l,Ne=Be.h,Pe=Be.version&&"3"===Be.version[0],Ee={name:"KendoDrawerItem",emits:{click:null},props:{index:Number,text:String,icon:String,separator:Boolean,selected:Boolean,disabled:Boolean,targetItem:[Object,Array]},inject:{kendoDrawer:{default:null}},computed:{itemClassNames:function(){var e=this.$props,t=e.disabled;return{"k-drawer-item":!0,"k-selected":e.selected,"k-disabled":t}}},setup:Pe?function(){return{v3:!!Pe}}:void 0,render:function(e){var t=Ne||e,n=(0,d.getDefaultSlots)(this),i=this.$props,o=i.text,r=i.icon,s=i.separator,a=i.disabled,l=i.selected,c=i.tabIndex,u=this.kendoDrawer,p=u.expanded,h=u.mini,f=u.item;return s?t("li",{class:"k-drawer-item k-drawer-separator",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}}):t("li",{class:this.itemClassNames,role:"option",attrs:this.v3?void 0:{role:"option","aria-selected":l,"aria-disabled":a,tabindex:(0,d.getTabIndex)(c,a)},"aria-selected":l,"aria-disabled":a,onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick},tabindex:(0,d.getTabIndex)(c,a)},[f?n:[r&&t("span",{class:"k-icon "+r}),!p&&h?null:t("span",{class:"k-item-text"},[o])]])},methods:{focus:function(e){this.$el&&this.$el.focus(e)},handleClick:function(){if(!this.disabled){var e={element:this.$el,focus:this.focus,props:Re(Re({},this.$props),this.$attrs)};this.$emit("click",e,this.$props.index)}}}},Ve=Ee,Le=function(){return Le=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Le.apply(this,arguments)},Ae=l,Fe=Ae.h,ze=Ae.version&&"3"===Ae.version[0],je={type:"slide",duration:200},Ke={type:"slide",duration:0},_e={name:"KendoDrawerNavigation",props:{item:[Object],tabIndex:Number},inject:{kendoDrawer:{default:null}},computed:{navigationClassNames:function(){var e=this.kendoDrawer.position;return{"k-widget k-drawer":!0,"k-drawer-start":"start"===e,"k-drawer-end":"end"===e}}},setup:ze?function(){return{v3:!!ze}}:void 0,render:function(e){var t=Fe||e,n=(0,d.getDefaultSlots)(this),i=this.kendoDrawer,o=i.animation,r=i.expanded,s=i.mode,a=i.position,l=i.mini,c=i.dir,u=i.width,p=i.miniWidth,h=i.items,f="boolean"!=typeof o?o:!1===o?Ke:je,v=u||240,m=p||50,g={opacity:1,flexBasis:v+"px",WebkitTransition:"all "+(f&&f.duration)+"ms",transition:"all "+(f&&f.duration)+"ms"},y={opacity:1,transform:"translateX(0px)",WebkitTransition:"all "+(f&&f.duration)+"ms",transition:"all "+(f&&f.duration)+"ms"},b={opacity:l?1:0,flexBasis:l?m+"px":0,WebkitTransition:"all "+(f&&f.duration)+"ms",transition:"all "+(f&&f.duration)+"ms"},k={opacity:0,transform:"translateX(-100%)",WebkitTransition:"all "+(f&&f.duration)+"ms",transition:"all "+(f&&f.duration)+"ms"},w={opacity:0,transform:"translateX(100%)",WebkitTransition:"all "+(f&&f.duration)+"ms",transition:"all "+(f&&f.duration)+"ms"},S={transform:"translateX(0%)",WebkitTransitionDuration:(f&&f.duration)+"ms",transitionDuration:(f&&f.duration)+"ms"},x=r?"push"===s?g:y:"push"===s?b:"ltr"===c&&"start"===a||"rtl"===c&&"end"===a?l?S:k:l?S:w,C=h&&t("ul",{class:"k-drawer-items",role:"listbox",attrs:this.v3?void 0:{role:"listbox",title:"drawer-list","aria-expanded":r},title:"drawer-list","aria-expanded":r},[h.map((function(e,n){var i=this.$props.item;!i||i.type||i.render||(i=d.templateRendering.call(this,this.$props.item,d.getListeners.call(this)));var o=t(Ve,{key:n,index:n,attrs:this.v3?void 0:{index:n,text:e.text,icon:e.icon,separator:e.separator,selected:e.selected,targetItem:e.targetItem},onClick:this.onSelect,on:this.v3?void 0:{click:this.onSelect},text:e.text,icon:e.icon,separator:e.separator,selected:e.selected,targetItem:e.targetItem});return d.getTemplate.call(this,{h:t,template:i,defaultRendering:o,additionalProps:Le(Le({},e),{index:n}),additionalListeners:{click:this.onSelect}})}),this)]);return t("div",{style:x,class:this.navigationClassNames},[t("div",{class:"k-drawer-wrapper",style:!r&&l&&"overlay"===s?{width:m+"px"}:{width:v+"px"}},[C||n])])},methods:{focus:function(e){this.$el&&this.$el.focus(e)},onSelect:function(e,t){this.$emit("select",e,t)}}},He=_e,We=l,Ue=We.h,qe=We.version&&"3"===We.version[0],Ge={name:"KendoDrawer",props:{animation:{type:[Object,Boolean],default:!0},expanded:{type:Boolean,default:!1},dir:{type:String,default:"ltr"},item:[String,Object,Function],mode:{type:String,default:"overlay",validator:function(e){return["overlay","push"].includes(e)}},position:{type:String,default:"start",validator:function(e){return["start","end"].includes(e)}},items:Array,mini:{type:Boolean,default:!1},tabIndex:Number,width:{type:Number,default:240},miniWidth:{type:Number,default:50}},created:function(){(0,d.validatePackage)(O)},data:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,o=e.animation,r=e.mini,s=e.width,a=e.miniWidth,l=e.items,c=e.item,u=c?d.templateRendering.call(this,c,d.getListeners.call(this)):void 0;return{currentDir:"ltr",drawer:{expanded:t,mode:n,dir:this.currentDir,position:i,animation:o,mini:r,width:s,miniWidth:a,items:l,item:u}}},mounted:function(){this.currentDir=(0,d.getDir)(this.$el,this.$props.dir)},updated:function(){var e=this.$props,t=e.expanded,n=e.mode,i=e.position,o=e.animation,r=e.mini,s=e.width,a=e.miniWidth,l=e.items,c=e.item,u=c?d.templateRendering.call(this,c,d.getListeners.call(this)):void 0;this.drawer.expanded=t,this.drawer.mode=n,this.drawer.dir=this.currentDir,this.drawer.position=i,this.drawer.animation=o,this.drawer.mini=r,this.drawer.width=s,this.drawer.miniWidth=a,this.drawer.items=l,this.drawer.item=u},provide:function(){return{kendoDrawer:this.drawer}},computed:{drawerClassNames:function(){var e=this.$props,t=e.expanded,n=e.mode;return{"k-drawer-container":!0,"k-drawer-expanded":t,"k-drawer-overlay":"overlay"===n,"k-drawer-push":"push"===n,"k-drawer-mini":e.mini}}},setup:qe?function(){return{v3:!!qe}}:void 0,render:function(e){var t=Ue||e,n=(0,d.getDefaultSlots)(this),i=this.$props,o=i.items,r=i.tabIndex,s=i.mode,a=i.expanded,l=i.item,c=l?d.templateRendering.call(this,l,d.getListeners.call(this)):void 0;return t("div",{class:this.drawerClassNames,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:r},tabindex:r},["overlay"===s&&a&&t("div",{class:"k-overlay",onClick:this.onOverlayClick,on:this.v3?void 0:{click:this.onOverlayClick}}),o&&t(He,{onSelect:this.handleSelect,on:this.v3?void 0:{select:this.handleSelect},item:c,attrs:this.v3?void 0:{item:c}}),n])},methods:{focus:function(){this.$el&&this.$el.focus()},handleSelect:function(e,t){this.$props.items&&this.$emit("select",{itemTarget:e,itemIndex:t,component:this})},onOverlayClick:function(e){this.$emit("overlayclick",e)}}},Je=Ge,Xe=l,Ye=Xe.h,Ze=Xe.version&&"3"===Xe.version[0],Qe={name:"KendoDrawerContent",setup:Ze?function(){return{v3:!!Ze}}:void 0,render:function(e){return(Ye||e)("div",{class:"k-drawer-content"},[(0,d.getDefaultSlots)(this)])}},et=Qe,tt=n(5725),nt="stepper.optionalText",it=((F={})[nt]="(Optional)",F),ot=l,rt=ot.h,st=ot.version&&"3"===ot.version[0],at=ot.inject,lt={name:"KendoStep",props:{current:Boolean,disabled:Boolean,icon:String,index:Number,isValid:Boolean,focused:Boolean,label:String,optional:Boolean,tabIndex:{type:Number,default:0},text:String,animationDuration:[Boolean,Number],isVertical:Boolean,item:[String,Object,Boolean,Function],linear:Boolean,mode:String,numOfSteps:Number,value:Number,successIcon:String,errorIcon:String},inject:{kendoLocalizationService:{default:null}},computed:{itemClassNames:function(){var e=this.$props,t=e.current,n=e.disabled,i=e.focused,o=e.index,r=e.isValid,s=e.optional;return{"k-step":!0,"k-step-first":0===o,"k-step-last":this.numOfSteps&&o===this.numOfSteps-1,"k-step-done":o<this.value,"k-step-current":t,"k-step-optional":s,"k-step-disabled":n,"k-step-focus":i,"k-step-error":void 0!==r&&!r,"k-step-success":r}},itemStyles:function(){var e=this.$props.index,t=!this.linear||e===this.value-1||e===this.value||e===this.value+1;return{maxWidth:this.isVertical?void 0:"calc(100% / ".concat(this.numOfSteps,")"),pointerEvents:t?void 0:"none"}}},watch:{focused:function(e){this.aElement=this.$refs.aElement,this.aElement&&e&&this.aElement.focus()}},setup:st?function(){return{v3:!!st,kendoLocalizationService:at("kendoLocalizationService",{})}}:void 0,render:function(e){var t,n=rt||e,i=(0,d.getDefaultSlots)(this),o=this.$props,r=o.current,s=o.disabled,a=o.focused,l=o.icon,c=o.index,u=o.isValid,p=o.label,h=o.optional,f=o.tabIndex,v=o.text,m=o.animationDuration,g=o.item,y=o.linear,b=o.mode,k=o.value,w=o.successIcon,S=o.errorIcon,x=!y||c===k-1||c===k||c===k+1,C="labels"===b||Boolean(l)&&Boolean(p),$=(0,tt.provideLocalizationService)(this),I=(t=nt,$.toLanguageString(t,it[t])),O="number"==typeof m?m:!1!==m?400:0,D=u?w?"".concat(w):"k-icon k-i-check":S?"".concat(S):"k-icon k-i-warning",M=n("span",{class:"k-step-indicator-icon "+D,"aria-hidden":"true",attrs:this.v3?void 0:{"aria-hidden":"true"}});return n("li",{class:this.itemClassNames,style:this.itemStyles},[n("a",{ref:"aElement",class:"k-step-link",title:p||void 0,attrs:this.v3?void 0:{title:p||void 0,tabindex:a?f:-1,"aria-current":r?"step":void 0,"aria-disabled":s||!x||void 0,"aria-invalid":void 0!==u&&!u||void 0},onClick:this.handleClick,on:this.v3?void 0:{click:this.handleClick,focusin:this.handleFocus},onFocusin:this.handleFocus,tabindex:a?f:-1,"aria-current":r?"step":void 0,"aria-disabled":s||!x||void 0,"aria-invalid":void 0!==u&&!u||void 0},[g?i:[function(){return"labels"!==b?n("span",{class:"k-step-indicator","aria-hidden":!0,attrs:this.v3?void 0:{"aria-hidden":!0},style:{transitionDuration:O+"ms"}},[l?C||void 0===u?n("span",{class:"k-step-indicator-icon k-icon ".concat(l)}):M:void 0!==u?M:n("span",{class:"k-step-indicator-text"},[v||c+1])]):null}.call(this),function(){return n("span",{class:"k-step-label"},[p&&n("span",{class:"k-step-text"},[p]),C&&void 0!==u&&M,h&&n("span",{class:"k-step-label-optional"},[I])])}.call(this)]])])},methods:{focus:function(){this.$el&&(0,d.focusFirstFocusableChild)(this.$el)},handleClick:function(e){this.disabled||this.$emit("change",{event:e,value:this.index,component:this})},handleFocus:function(e){this.disabled||this.$emit("focus",e)}}},dt=lt,ct=function(e,t,n){var i=Math.abs((t-e)/100);return Math.abs((n-e)/i)},ut=function(e,t,n,i){var o=Math.max(n,.01),r=100/o*100;e&&t&&(e.style.width=i?"100%":"".concat(o,"%"),t.style.width=i?"100%":"".concat(r,"%"),e.style.height=i?"".concat(o,"%"):"100%",t.style.height=i?"".concat(r,"%"):"100%")},pt={name:"@progress/kendo-vue-progressbars",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123903,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},ht=l,ft=ht.h,vt=ht.version&&"3"===ht.version[0],mt={name:"KendoProgressBar",props:{animation:{type:[Boolean,Object],default:!1},disabled:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},label:String,labelRender:[String,Object,Function],labelVisible:{type:Boolean,default:!0},labelPlacement:{type:String,default:void 0,validator:function(e){return["start","center","end"].includes(e)}},dir:{type:String,default:void 0},max:{type:Number,default:100},min:{type:Number,default:0},value:{type:Number,default:0},orientation:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},tabIndex:Number,emptyStyle:Object,emptyClassName:String,progressStyle:Object,progressClassName:String},created:function(){(0,d.validatePackage)(pt),this.currentDir=this.$props.dir},mounted:function(){this._progressStatus=(0,d.getRef)(this,"progressStatus"),this._progressStatusWrap=(0,d.getRef)(this,"progressStatusWrap"),this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,d.isRtl)(this.$el)?"rtl":"ltr",this.animationFrame=(0,k.jt)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})},destroyed:vt?void 0:function(){(0,k.RE)(this.animationFrame)},unmounted:function(){(0,k.RE)(this.animationFrame)},data:function(){return{currentDir:void 0}},watch:{value:function(e,t){this.prevValue=t,this.animationFrame=(0,k.jt)({duration:this.animationDuration,onStart:this.handleStart,onUpdate:this.handleUpdate,onEnd:this.handleEnd})}},computed:{wrapperClass:function(){var e=this.$props,t=e.disabled,n=e.reverse,i="vertical"===e.orientation;return{"k-widget k-progressbar":!0,"k-progressbar-horizontal":!i,"k-progressbar-vertical":i,"k-progressbar-reverse":n,"k-progressbar-indeterminate":null===e.value,"k-disabled":t}},isVertical:function(){return"vertical"===this.orientation},animationDuration:function(){var e=this.$props.animation;return"boolean"!=typeof e&&void 0!==e?e.duration:e?400:0}},setup:vt?function(){return{v3:!!vt}}:void 0,render:function(e){var t=ft||e,n=this.$props,i=n.disabled,o=n.labelVisible,r=n.labelPlacement,s=n.max,a=n.min,l=n.tabIndex,c=n.emptyStyle,u=n.emptyClassName,p=n.progressStyle,h=n.progressClassName,f=this.$props.value||0,v=null===this.$props.value,m=function(e){var t=e.toString().split(".");return 1===t.length?"".concat(t[0]):"".concat(t[0],".").concat(t[1].substr(0,3))}(f),g={value:f},y=this.$props.labelRender?d.templateRendering.call(this,this.$props.labelRender,d.getListeners.call(this)):void 0,b=t("span",{class:"k-progress-status"},m),k=d.getTemplate.call(this,{h:t,template:y,defaultRendering:b,additionalProps:g}),w=o?this.$props.label?t("span",{class:"k-progress-status"},[this.$props.label]):k:void 0,S=(0,d.classNames)("k-progress-status-wrap",{"k-progress-start":"start"===r,"k-progress-center":"center"===r,"k-progress-end":"end"===r||void 0===r});return t("div",{class:this.wrapperClass,dir:this.currentDir,attrs:this.v3?void 0:{dir:this.currentDir,tabindex:(0,d.getTabIndex)(l,i),role:"progressbar","aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":v?void 0:f,"aria-disabled":i},tabindex:(0,d.getTabIndex)(l,i),role:"progressbar","aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":v?void 0:f,"aria-disabled":i},[t("span",{class:S+(u?" "+u:""),style:c},[w]),t("div",{class:"k-selected",style:p,ref:(0,d.setRef)(this,"progressStatus")},[t("span",{class:S+(h?" "+h:""),ref:(0,d.setRef)(this,"progressStatusWrap")},[w])])])},methods:{focus:function(){this.$el&&this.$el.focus()},progressStatusElement:function(){return this._progressStatus},progressStatusWrapElement:function(){return this._progressStatusWrap},handleStart:function(){var e=ct(this.min,this.max,this.prevValue);ut(this._progressStatus,this._progressStatusWrap,e,this.isVertical)},handleUpdate:function(e){var t=ct(this.min,this.max,this.prevValue+(this.value-this.prevValue)*e);ut(this._progressStatus,this._progressStatusWrap,t,this.isVertical)},handleEnd:function(){var e=ct(this.min,this.max,this.value);ut(this._progressStatus,this._progressStatusWrap,e,this.isVertical)}}},gt=mt,yt=function(){return yt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yt.apply(this,arguments)},bt=l,kt=bt.h,wt=bt.version&&"3"===bt.version[0],St={name:"KendoStepper",model:{event:"changemodel"},props:{animationDuration:{type:[Boolean,Number],default:400},dir:String,disabled:Boolean,item:{type:[String,Object,Function,Boolean],default:void 0},items:Array,linear:Boolean,mode:{type:String,default:"steps",validator:function(e){return["steps","labels"].includes(e)}},orientation:{type:String,default:"horizontal",validator:function(e){return["horizontal","vertical"].includes(e)}},value:{type:Number,default:0},modelValue:Number,successIcon:String,errorIcon:String},created:function(){(0,d.validatePackage)(O),this.focusedIdx=void 0!==this.computedValue?this.computedValue:0},mounted:function(){this.currentDir=void 0!==this.$props.dir?this.$props.dir:(0,d.isRtl)(this.$el)?"rtl":"ltr"},data:function(){return{currentDir:"ltr",focusedIdx:0,stepper:{},currentFocused:!1}},watch:{value:function(e){this.focusedIdx=e}},computed:{computedValue:function(){return void 0!==this.$props.modelValue?this.$props.modelValue:this.$props.value},isVertical:function(){return"vertical"===this.$props.orientation},numOfSteps:function(){var e=this.$props.items;return e?e.length:0},stepperClasses:function(){return{"k-stepper":!0,"k-stepper-linear":this.$props.linear}},stepperStyles:function(){return{display:"grid",gridTemplateColumns:this.isVertical?void 0:"repeat("+2*this.numOfSteps+", 1fr)",gridTemplateRows:this.isVertical?"repeat("+4*this.numOfSteps+", 1fr)":void 0}},listClasses:function(){return{"k-step-list":!0,"k-step-list-horizontal":!this.isVertical,"k-step-list-vertical":this.isVertical}},listStyles:function(){return{gridColumnStart:this.isVertical?"":1,gridColumnEnd:this.isVertical?"":-1,gridRowStart:this.isVertical?1:"",gridRowEnd:this.isVertical?-1:""}},progressbarStyles:function(){return{gridColumnStart:this.isVertical?"":2,gridColumnEnd:this.isVertical?"":2*this.numOfSteps,gridRowStart:this.isVertical?2:"",gridRowEnd:this.isVertical?4*this.numOfSteps-2:""}}},setup:wt?function(){return{v3:!!wt}}:void 0,render:function(e){var t=kt||e,n=(0,d.getDefaultSlots)(this),i=this.$props,o=i.animationDuration,r=i.disabled,s=i.items,a=i.orientation,l=this.computedValue,c="number"==typeof o?o:!1!==o?400:0,u=s&&s.map((function(e,n){var i=this.$props.item?d.templateRendering.call(this,this.$props.item,d.getListeners.call(this)):void 0,o=t(dt,{key:n,index:n,attrs:this.v3?void 0:{index:n,disabled:r||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===l,icon:e.icon,label:e.label,optional:e.optional,text:e.text,isValid:e.isValid,tabIndex:e.tabIndex,animationDuration:this.animationDuration,isVertical:this.isVertical,item:this.item,linear:this.linear,mode:this.mode,numOfSteps:this.numOfSteps,value:l,successIcon:this.successIcon,errorIcon:this.errorIcon},disabled:r||e.disabled,focused:n===this.focusedIdx&&this.currentFocused,current:n===l,onChange:this.handleChange,on:this.v3?void 0:{change:this.handleChange,focus:this.handleFocus},onFocus:this.handleFocus,class:e.class,style:e.style,icon:e.icon,label:e.label,optional:e.optional,text:e.text,isValid:e.isValid,tabIndex:e.tabIndex,animationDuration:this.animationDuration,isVertical:this.isVertical,item:this.item,linear:this.linear,mode:this.mode,numOfSteps:this.numOfSteps,value:l,successIcon:this.successIcon,errorIcon:this.errorIcon});return d.getTemplate.call(this,{h:t,template:i,defaultRendering:o,additionalProps:yt(yt({},e),{disabled:r||e.disabled,focused:n===this.focusedIdx,current:n===l,value:l}),additionalListeners:{change:this.handleChange,focus:this.handleFocus}})}),this);return t("nav",{tabindex:this.currentFocused?-1:0,attrs:this.v3?void 0:{tabindex:this.currentFocused?-1:0,dir:this.currentDir},class:this.stepperClasses,style:this.stepperStyles,dir:this.currentDir,onFocusin:this.handleFocusin,on:this.v3?void 0:{focusin:this.handleFocusin,focusout:this.handleFocusout,keydown:this.handleKeyDown},onFocusout:this.handleFocusout,onKeydown:this.handleKeyDown},[t("ol",{class:this.listClasses,style:this.listStyles},[u||n]),t(gt,{style:this.progressbarStyles,animation:{duration:c},attrs:this.v3?void 0:{animation:{duration:c},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:a,reverse:"vertical"===a,value:l,disabled:r,tabIndex:-1},"aria-hidden":!0,max:this.numOfSteps-1,labelVisible:!1,orientation:a,reverse:"vertical"===a,value:l,disabled:r,tabIndex:-1})])},methods:{focus:function(){this.$el&&(0,d.focusFirstFocusableChild)(this.$el)},dispatchChangeEvent:function(e,t){var n=t===this.computedValue-1,i=t===this.computedValue,o=t===this.computedValue+1,r=!this.linear||n||i||o;this.computedValue!==t&&!this.disabled&&r&&(this.focusedIdx=t,this.$emit("changemodel",t),this.$emit("update:modelValue",t),this.$emit("change",{component:this,event:e,value:t}))},handleChange:function(e){var t=e.value;this.dispatchChangeEvent(e,t)},handleFocus:function(e){this.disabled||this.$emit("focus",e,void 0)},handleEnter:function(e){var t={component:this,event:e,value:this.focusedIdx};this.dispatchChangeEvent(t,this.focusedIdx)},handleFocusin:function(){this.currentFocused=!0},handleFocusout:function(){this.currentFocused=!1},handleKeyDown:function(e){var t="rtl"===this.currentDir,n=this.focusedIdx,i=this.items.length-1;switch(e.keyCode){case d.Keys.left:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n<i&&(this.focusedIdx=n+1);break;case d.Keys.right:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n>0&&(this.focusedIdx=n-1);break;case d.Keys.up:e.preventDefault(),!t&&n>0&&(this.focusedIdx=n-1),t&&n>0&&(this.focusedIdx=n-1);break;case d.Keys.down:e.preventDefault(),!t&&n<i&&(this.focusedIdx=n+1),t&&n<i&&(this.focusedIdx=n+1);break;case d.Keys.home:e.preventDefault(),this.focusedIdx=0;break;case d.Keys.end:e.preventDefault(),this.focusedIdx=i;break;case d.Keys.space:case d.Keys.enter:e.preventDefault(),this.items[n].disabled||this.handleEnter(e)}}}},xt=St,Ct="",$t="0",It="_";function Ot(e,t){if(Nt(e))return t[Number(e)];var n=t[Number(Dt(e))];return n.items?Ot(function(e){if(Bt(e))return e;var t=e.indexOf(It);return e.substring(t+1)}(e),n.items):void 0}function Dt(e){return Bt(e)?e:e.split(It)[0]}function Mt(e){return Tt("0",e)}function Tt(e,t){return t?t+It+e:e}function Rt(e){var t=e.lastIndexOf(It);return t<0?Ct:e.substring(0,t)}function Bt(e){return e===Ct||e.indexOf(It)<0}function Nt(e){return e!==Ct&&e.indexOf(It)<0}function Pt(e){var t=e.lastIndexOf(It);return t<0?e:e.substring(t+1)}function Et(e,t,n){return Nt(t)?e?Number(t)<n-1?(Number(t)+1).toString():"0":Number(t)>0?(Number(t)-1).toString():(n-1).toString():t}function Vt(e){return e&&e.length>0?{items:At.call(this,e),inputItems:e}:{items:[],inputItems:[]}}function Lt(e){var t={},n=e.text,i=e.url,o=e.icon,r=e.disabled,s=e.cssClass,a=e.cssStyle,l=e.render,c=e.linkRender,u=e.contentRender,p=e.data;return void 0!==n&&(t.text=n),void 0!==i&&(t.url=i),void 0!==o&&(t.icon=o),void 0!==r&&(t.disabled=r),void 0!==s&&(t.cssClass=s),void 0!==a&&(t.cssStyle=a),void 0!==l&&(t.render=d.templateRendering.call(this,l,d.getListeners.call(this))),void 0!==c&&(t.linkRender=d.templateRendering.call(this,c,d.getListeners.call(this))),void 0!==u&&(t.contentRender=d.templateRendering.call(this,u,d.getListeners.call(this))),void 0!==p&&(t.data=p),t}function At(e,t){for(var n=[],i=0;i<e.length;i++){var o=e[i],r=Lt.call(this,o);r.id=Tt(i.toString(),t),r.isLastFromSiblings=i===e.length-1,r.items=Ft.call(this,o,r),n.push(r)}return n}function Ft(e,t){return e.contentRender?[{contentParentItemId:t.id,id:Tt($t,t.id),isLastFromSiblings:!0,contentRender:d.templateRendering.call(this,e.contentRender,d.getListeners.call(this)),items:[]}]:e.items?At.call(this,e.items,t.id):[]}var zt=/\S/;function jt(e,t,n,i,o,r){var s,a=v();switch(n){case d.Keys.left:return o?r?p():c():r?u():l();case d.Keys.right:return o?r?c():p():r?l():u();case d.Keys.up:return o?g():Nt(t)?f():g();case d.Keys.down:return o?y():Nt(t)?h():y();case d.Keys.enter:case d.Keys.space:return a.disabled?t:m()?Mt(t):Dt(t);case d.Keys.home:return b()[0].id;case d.Keys.end:return(s=b())[s.length-1].id;case d.Keys.esc:return Nt(t)?t:Rt(t);default:return 1===i.length&&zt.test(i)?function(){var e=i.toLowerCase(),n=b(),o=Number(Pt(t)),r=n.slice(o+1).concat(n.slice(0,o+1)).find((function(t){return(t.text||"").toLowerCase().startsWith(e)}));return r?r.id:t}():t}function l(){return Nt(t)?g():1===function(e){return e.split(It).length-1}(t)?h(g(Dt(t))):Rt(t)}function c(){return Nt(t)?f():Rt(t)}function u(){return Nt(t)?y():h(m()?t:y(Dt(t)))}function p(){return h(Nt(t)||m()?t:y(Dt(t)))}function h(e){return k(!0,e)}function f(e){return k(!1,e)}function v(n,i){return void 0===n&&(n=t),void 0===i&&(i=e),Ot(n,i)}function m(e){return v(e).items.length>0}function g(e){return w(!1,e)}function y(e){return w(!0,e)}function b(){return Nt(t)?e:v(Rt(t),e).items}function k(e,n){void 0===n&&(n=t);var i=v(n);return m(n)&&!i.disabled?e?Mt(n):function(e){var t=v(e).items;return t[t.length-1].id}(n):n}function w(n,i){if(void 0===i&&(i=t),Nt(i))return Et(n,i,e.length);var o=Rt(i);return Tt(Et(n,Pt(i),v(o).items.length),o)}}var Kt=n(3266),_t={vertical:"top",horizontal:"left"},Ht={vertical:"top",horizontal:"right"},Wt={vertical:"flip",horizontal:"fit"},Ut={vertical:"fit",horizontal:"flip"},qt={downward:{anchorAlign:{vertical:"bottom",horizontal:"right"},popupAlign:Ht,collision:Wt},leftward:{anchorAlign:{vertical:"top",horizontal:"left"},popupAlign:Ht,collision:Ut}},Gt={downward:{anchorAlign:{vertical:"bottom",horizontal:"left"},popupAlign:_t,collision:Wt},rightward:{anchorAlign:{vertical:"top",horizontal:"right"},popupAlign:_t,collision:Ut}};function Jt(e,t,n){return Nt(e)?t?n?"leftward":"rightward":"downward":n?"leftward":"rightward"}function Xt(e){return e?"rtl":"ltr"}function Yt(e,t){return"".concat(e,"_").concat(t)}var Zt=l,Qt=Zt.h,en=Zt.version&&"3"===Zt.version[0],tn={name:"KendoMenuItemLink",props:{opened:Boolean,focused:Boolean,url:String},computed:{menuItemClassName:function(){return{"k-link":!0,"k-menu-link":!0,"k-active":this.$props.opened,"k-focus":this.$props.focused}}},setup:en?function(){return{v3:!!en}}:void 0,render:function(e){var t=Qt||e,n=(0,d.getDefaultSlots)(this);return this.$props.url?t("a",{class:this.menuItemClassName,role:"presentation",attrs:this.v3?void 0:{role:"presentation",href:this.$props.url,tabindex:-1},href:this.$props.url,tabindex:-1},[n]):t("span",{class:this.menuItemClassName,role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[n])}},nn=tn,on=l,rn=on.h,sn=on.version&&"3"===on.version[0],an="k-i-arrow-60-down",ln="k-i-arrow-60-right",dn="k-i-arrow-60-left",cn={name:"KendoMenuItemArrow",props:{itemId:String,dir:String,verticalMenu:Boolean},setup:sn?function(){return{v3:!!sn}}:void 0,render:function(e){var t=rn||e;return t("span",{class:"k-menu-expand-arrow"},[t("span",{class:this.getArrowClassName(),role:"presentation",attrs:this.v3?void 0:{role:"presentation"}})])},methods:{getArrowClassName:function(){var e,t=Jt(this.$props.itemId,!0===this.$props.verticalMenu,"rtl"===this.$props.dir);return(e={"k-icon":!0})[an]="downward"===t,e[ln]="rightward"===t,e[dn]="leftward"===t,e}}},un=cn,pn=l,hn=pn.h,fn=pn.version&&"3"===pn.version[0],vn=pn.ref,mn={name:"KendoMenuItemInternal",emits:{keydown:null,mouseover:null,mouseleave:null,blur:null,focus:null,click:null,mousedown:null},props:{item:Object,focusedItemId:String,lastItemIdToBeOpened:String,tabbableItemId:String,itemRender:[String,Object,Function],linkRender:[String,Object,Function],isMenuVertical:Boolean,isDirectionRightToLeft:Boolean,menuGuid:String,originalItemNeeded:Function},created:function(){this.itemElement=null,this.prevFocusedItemId=this.$props.focusedItemId,this.isFirstRender=!0,this._anchor=(0,d.guid)()},data:function(){return{opened:!1}},mounted:function(){this.itemElement=(0,d.getRef)(this,"kendoAnchor",this._anchor);var e=this.$props.focusedItemId,t=this.$props.item.id;e&&e===t&&this.itemElement&&this.itemElement.focus(),this.isFirstRender=!1},watch:{focusedItemId:function(e,t){this.prevFocusedItemId=t}},updated:function(){var e=this.$props.focusedItemId,t=this.$props.item.id;e?this.prevFocusedItemId===e||e!==t||this.itemElement.contains(document.activeElement)||this.itemElement.focus():document.activeElement===this.itemElement&&this.itemElement.blur()},computed:{currentItemRender:function(){return this.$props.item.render||this.$props.itemRender},currentLinkRender:function(){return this.$props.item.linkRender||this.$props.linkRender},contentRender:function(){return this.$props.item.contentParentItemId?this.$props.item.contentRender:null},currentOpened:function(){var e,t,n=this.$props;return n.item.items.length>0&&(e=n.item.id,0===(t=n.lastItemIdToBeOpened).indexOf(e)&&(t.length===e.length||t.charAt(e.length)===It))&&!this.isFirstRender},currentFocused:function(){return this.$props.focusedItemId===this.$props.item.id},popupClassName:function(){return(0,d.classNames)({"k-menu-popup":!0,"k-rtl":this.$props.isDirectionRightToLeft})},menuItemClassName:function(){var e,t,n=this.$props.item;return(e={"k-item":!0,"k-menu-item":!0,"k-first":(t=n.id,Pt(t)===$t),"k-last":n.isLastFromSiblings,"k-disabled":n.disabled})[n.cssClass?n.cssClass:""]=n.cssClass,e}},setup:fn?function(){return{v3:!!fn,kendoAnchorRef:vn(null)}}:void 0,render:function(e){var t=this,n=hn||e,i=this.$props.item,o=i.id,r=function(){return this.$props.item.icon?n("span",{class:"k-icon k-i-".concat(this.$props.item.icon),role:"presentation",attrs:this.v3?void 0:{role:"presentation"},key:"0"}):null},s=function(){return this.$props.item.items.length>0?n(un,{itemId:this.$props.item.id,attrs:this.v3?void 0:{itemId:this.$props.item.id,verticalMenu:this.$props.isMenuVertical,dir:Xt(this.$props.isDirectionRightToLeft)},verticalMenu:this.$props.isMenuVertical,dir:Xt(this.$props.isDirectionRightToLeft),key:"2"}):null},a=this.$props.originalItemNeeded(i.id);return n("li",{class:this.menuItemClassName,style:i.cssStyle,tabindex:o===this.$props.tabbableItemId?0:-1,attrs:this.v3?void 0:{tabindex:o===this.$props.tabbableItemId?0:-1,role:"menuitem","aria-disabled":!!i.disabled||void 0,"aria-haspopup":i.items.length>0||void 0,"aria-expanded":i.items.length>0?this.currentOpened:void 0,"aria-label":i.text,"aria-owns":this.currentOpened?Yt(this.$props.menuGuid,o):void 0},onMouseover:this.onMouseOver,on:this.v3?void 0:{mouseover:this.onMouseOver,mouseleave:this.onMouseLeave,mousedown:function(e){return t.handleMouseDown(e)},focusout:function(){return t.handleBlur(o)},focusin:function(){return t.handleFocus(o)},click:function(e){return t.handleClick(e,o)},keydown:this.handleKeyDown},onMouseleave:this.onMouseLeave,onMousedown:function(e){return t.handleMouseDown(e)},onFocusout:function(){return t.handleBlur(o)},onFocusin:function(){return t.handleFocus(o)},onClick:function(e){return t.handleClick(e,o)},onKeydown:this.handleKeyDown,role:"menuitem","aria-disabled":!!i.disabled||void 0,"aria-haspopup":i.items.length>0||void 0,"aria-expanded":i.items.length>0?this.currentOpened:void 0,"aria-label":i.text,"aria-owns":this.currentOpened?Yt(this.$props.menuGuid,o):void 0,ref:(0,d.setRef)(this,"kendoAnchor",this._anchor),key:"0"},[this.contentRender?function(){var e=this.$props.item.contentParentItemId;return n("div",{class:"k-content",role:"presentation",attrs:this.v3?void 0:{role:"presentation"}},[function(e){return d.getTemplate.call(this,{h:n,template:this.contentRender,additionalProps:e})}.call(this,{item:this.handleOriginalItemNeeded(e),itemId:e})])}.call(this):function(){var e=this,t=n("span",{class:"k-menu-link-text"},[i.text]),o=d.getTemplate.call(this,{h:n,template:this.currentItemRender,defaultRendering:t,additionalProps:{item:a,itemId:i.id,key:"1"}}),l=n(nn,{url:i.url,attrs:this.v3?void 0:{url:i.url,opened:this.currentOpened,focused:this.currentFocused},opened:this.currentOpened,focused:this.currentFocused},this.v3?function(){return[[r.call(e),o,s.call(e)]]}:[[r.call(e),o,s.call(e)]]);return d.getTemplate.call(this,{h:n,template:this.currentLinkRender,defaultRendering:l,additionalProps:{item:a,itemId:i.id,opened:this.currentOpened,dir:Xt(this.$props.isDirectionRightToLeft)}})}.call(this),function(){var e=this,t=function(e,t,n){var i=Jt(e,t,n);return n?"downward"===i?qt.downward:qt.leftward:"downward"===i?Gt.downward:Gt.rightward}(o,this.$props.isMenuVertical,this.$props.isDirectionRightToLeft),i=t.anchorAlign,r=t.popupAlign,s=t.collision;return n(Kt.Popup,{anchor:this._anchor,attrs:this.v3?void 0:{anchor:this._anchor,show:this.currentOpened,popupClass:this.popupClassName,anchorAlign:i,popupAlign:r,collision:s,animate:!1},show:this.currentOpened,popupClass:this.popupClassName,anchorAlign:i,popupAlign:r,collision:s,animate:!1,key:"1"},this.v3?function(){return[n(wn,{parentItemId:o,attrs:e.v3?void 0:{parentItemId:o,items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,originalItemNeeded:e.handleOriginalItemNeeded},items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,class:"k-group k-menu-group k-reset",onMouseover:e.handleItemMouseOver,on:e.v3?void 0:{mouseover:e.handleItemMouseOver,mouseleave:e.handleItemMouseLeave,mousedown:e.handleMouseDown,blur:e.handleItemMouseBlur,focus:e.handleItemMouseFocus,click:e.handleClick,keydown:e.handleKeyDown},onMouseleave:e.handleItemMouseLeave,onMousedown:e.handleMouseDown,onBlur:e.handleItemMouseBlur,onFocus:e.handleItemMouseFocus,onClick:e.handleClick,onKeydown:e.handleKeyDown,originalItemNeeded:e.handleOriginalItemNeeded})]}:[n(wn,{parentItemId:o,attrs:e.v3?void 0:{parentItemId:o,items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,originalItemNeeded:e.handleOriginalItemNeeded},items:e.$props.item.items,menuGuid:e.$props.menuGuid,focusedItemId:e.$props.focusedItemId,lastItemIdToBeOpened:e.$props.lastItemIdToBeOpened,tabbableItemId:e.$props.tabbableItemId,itemRender:e.$props.itemRender,linkRender:e.$props.linkRender,isMenuVertical:e.$props.isMenuVertical,isDirectionRightToLeft:e.$props.isDirectionRightToLeft,class:"k-group k-menu-group k-reset",onMouseover:e.handleItemMouseOver,on:e.v3?void 0:{mouseover:e.handleItemMouseOver,mouseleave:e.handleItemMouseLeave,mousedown:e.handleMouseDown,blur:e.handleItemMouseBlur,focus:e.handleItemMouseFocus,click:e.handleClick,keydown:e.handleKeyDown},onMouseleave:e.handleItemMouseLeave,onMousedown:e.handleMouseDown,onBlur:e.handleItemMouseBlur,onFocus:e.handleItemMouseFocus,onClick:e.handleClick,onKeydown:e.handleKeyDown,originalItemNeeded:e.handleOriginalItemNeeded})])}.call(this)])},methods:{handleKeyDown:function(e){this.$emit("keydown",e)},handleItemMouseOver:function(e){this.$emit("mouseover",e)},handleItemMouseLeave:function(e){this.$emit("mouseleave",e)},handleItemMouseBlur:function(e){this.$emit("blur",e)},handleItemMouseFocus:function(e){this.$emit("focus",e)},handleClick:function(e,t){this.$emit("click",e,t)},handleBlur:function(e){this.$emit("blur",e)},handleFocus:function(e){this.$emit("focus",e)},handleMouseDown:function(e){this.$emit("mousedown",e)},handleOriginalItemNeeded:function(e){return this.$props.originalItemNeeded(e)},onMouseOver:function(e){this.$emit("mouseover",this.$props.item.id),e.stopPropagation()},onMouseLeave:function(e){this.$emit("mouseleave",this.$props.item.id),e.stopPropagation()}}},gn=mn,yn=l,bn=yn.h,kn=yn.version&&"3"===yn.version[0],wn={name:"KendoMenuItemInternalsList",emits:{keydown:null,mouseover:null,mouseleave:null,blur:null,focus:null,click:null,mousedown:null},props:{items:Array,parentItemId:{type:String,default:void 0},focusedItemId:String,lastItemIdToBeOpened:String,tabbableItemId:String,itemRender:[String,Object,Function],linkRender:[String,Object,Function],isMenuVertical:Boolean,isDirectionRightToLeft:Boolean,menuGuid:String,originalItemNeeded:Function},setup:kn?function(){return{v3:!!kn}}:void 0,render:function(e){var t=bn||e,n=this.$props.parentItemId;return t("ul",{role:void 0!==n?"menu":"menubar",attrs:this.v3?void 0:{role:void 0!==n?"menu":"menubar",id:void 0!==n?Yt(this.$props.menuGuid,n):void 0},id:void 0!==n?Yt(this.$props.menuGuid,n):void 0},[function(){return this.$props.items.length>0?this.$props.items.map((function(e,n){return t(gn,{item:e,attrs:this.v3?void 0:{item:e,isMenuVertical:this.$props.isMenuVertical,isDirectionRightToLeft:this.$props.isDirectionRightToLeft,focusedItemId:this.$props.focusedItemId,lastItemIdToBeOpened:this.$props.lastItemIdToBeOpened,tabbableItemId:this.$props.tabbableItemId,itemRender:this.$props.itemRender,linkRender:this.$props.linkRender,menuGuid:this.$props.menuGuid,originalItemNeeded:this.handleOriginalItemNeeded},isMenuVertical:this.$props.isMenuVertical,isDirectionRightToLeft:this.$props.isDirectionRightToLeft,focusedItemId:this.$props.focusedItemId,lastItemIdToBeOpened:this.$props.lastItemIdToBeOpened,tabbableItemId:this.$props.tabbableItemId,itemRender:this.$props.itemRender,linkRender:this.$props.linkRender,menuGuid:this.$props.menuGuid,onMouseover:this.handleItemMouseOver,on:this.v3?void 0:{mouseover:this.handleItemMouseOver,mouseleave:this.handleItemMouseLeave,mousedown:this.handleItemMouseDown,keydown:this.handleKeyDown,blur:this.handleItemMouseBlur,focus:this.handleItemMouseFocus,click:this.handleItemMouseClick},onMouseleave:this.handleItemMouseLeave,onMousedown:this.handleItemMouseDown,onKeydown:this.handleKeyDown,onBlur:this.handleItemMouseBlur,onFocus:this.handleItemMouseFocus,onClick:this.handleItemMouseClick,originalItemNeeded:this.handleOriginalItemNeeded,key:n})}),this):null}.call(this)])},methods:{handleKeyDown:function(e){this.$emit("keydown",e)},handleOriginalItemNeeded:function(e){return this.$props.originalItemNeeded(e)},handleItemMouseOver:function(e){this.$emit("mouseover",e)},handleItemMouseLeave:function(e){this.$emit("mouseleave",e)},handleItemMouseDown:function(e){this.$emit("mousedown",e)},handleItemMouseBlur:function(e){this.$emit("blur",e)},handleItemMouseFocus:function(e){this.$emit("focus",e)},handleItemMouseClick:function(e,t){this.$emit("click",e,t)},onMouseOver:function(e){void 0!==this.$props.parentItemId&&(this.$emit("mouseover",this.$props.parentItemId),e.stopPropagation())},onMouseLeave:function(e){void 0!==this.$props.parentItemId&&(this.$emit("mouseleave",this.$props.parentItemId),e.stopPropagation())}}},Sn=function(){function e(){this.phase="Initialized"}return e.prototype.getIsDirectionRightToLeft=function(){return this.isDirectionRightToLeft},e.prototype.setIsDirectionRightToLeft=function(e){this.phase="NotInitialized"===this.phase?"Initialized":"NewValueReceived",this.previousIsDirectionRightToLeft=this.isDirectionRightToLeft,this.isDirectionRightToLeft=e},e.prototype.hasDirectionChanged=function(){return"NewValueReceived"===this.phase&&this.previousIsDirectionRightToLeft!==this.isDirectionRightToLeft},e}(),xn=function(){function e(e,t,n){this.openOnClick=e,this.resetMenu=t,this.openItem=n,this.openOnClick=e,this.isMouseOverEnabled=!e}return Object.defineProperty(e.prototype,"OpenOnClick",{set:function(e){Boolean(e)!==Boolean(this.openOnClick)&&(this.mouseDown=!1,this.isMouseOverEnabled=!e),this.openOnClick=e},enumerable:!1,configurable:!0}),e.prototype.handleItemSelectedViaKeyboard=function(){this.openOnClick&&(this.isMouseOverEnabled=!1,this.resetMenu())},Object.defineProperty(e.prototype,"IsMouseOverEnabled",{get:function(){return this.isMouseOverEnabled},enumerable:!1,configurable:!0}),e.prototype.handleItemMouseDown=function(){this.mouseDown=!0},e.prototype.handleItemFocus=function(){this.openOnClick&&!this.mouseDown&&(this.isMouseOverEnabled=!0),this.mouseDown=!1},e.prototype.handleItemClick=function(e,t){this.openOnClick&&(this.isMouseOverEnabled?t&&(this.isMouseOverEnabled=!1,this.resetMenu()):(this.isMouseOverEnabled=!0,this.openItem(e)))},e}(),Cn=function(){return Cn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cn.apply(this,arguments)},$n=l,In=$n.h,On=$n.version&&"3"===$n.version[0],Dn={name:"KendoMenu",props:{vertical:{type:Boolean,default:!1},items:Array,dir:String,hoverOpenDelay:{type:Number,default:void 0},hoverCloseDelay:{type:Number,default:void 0},openOnClick:Boolean,itemRender:[String,Object,Function],linkRender:[String,Object,Function],customCloseItemIds:Array},created:function(){(0,d.validatePackage)(O),this.mouseOverHandler=new xn(this.$props.openOnClick,this.reset,this.onItemMouseOver),this.guid=(0,d.guid)(),this.directionHolder=new Sn,this.inputItems=[],this.currentItems=[]},mounted:function(){this.isFirstRender=!1,this.menuWrapperEl=(0,d.getRef)(this,"menuWrapper")},updated:function(){this.mouseOverHandler.OpenOnClick=this.$props.openOnClick},destroyed:On?void 0:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},unmounted:function(){this.clearItemHoverAndLeaveRequestsIfApplicable()},data:function(){return{focusedItemId:Ct,hoveredItemId:Ct,tabbableItemId:$t,isFirstRender:!0}},computed:{menuClassName:function(){return{"k-widget":!0,"k-reset":!0,"k-header":!0,"k-menu":!0,"k-menu-horizontal":!this.$props.vertical,"k-menu-vertical":this.$props.vertical}}},setup:On?function(){return{v3:!!On}}:void 0,render:function(e){var t=In||e;this.prepareItems(),this.isFirstRender||this.directionHolder.setIsDirectionRightToLeft(this.checkIsDirectionRightToLeft());var n=this.hoveredItemId?this.hoveredItemId:this.focusedItemId?Rt(this.focusedItemId):Ct;return t("div",{class:this.getMenuWrapperClassName(),ref:(0,d.setRef)(this,"menuWrapper")},[t(wn,{class:this.menuClassName,"aria-orientation":this.$props.vertical?"vertical":void 0,attrs:this.v3?void 0:{"aria-orientation":this.$props.vertical?"vertical":void 0,items:this.currentItems,isMenuVertical:this.$props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.focusedItemId,lastItemIdToBeOpened:n,tabbableItemId:this.tabbableItemId,itemRender:d.templateRendering.call(this,this.$props.itemRender,d.getListeners.call(this)),linkRender:d.templateRendering.call(this,this.$props.linkRender,d.getListeners.call(this)),menuGuid:this.guid,originalItemNeeded:this.getInputItem},items:this.currentItems,isMenuVertical:this.$props.vertical,isDirectionRightToLeft:this.directionHolder.getIsDirectionRightToLeft(),focusedItemId:this.focusedItemId,lastItemIdToBeOpened:n,tabbableItemId:this.tabbableItemId,itemRender:d.templateRendering.call(this,this.$props.itemRender,d.getListeners.call(this)),linkRender:d.templateRendering.call(this,this.$props.linkRender,d.getListeners.call(this)),menuGuid:this.guid,onMouseleave:this.onItemMouseLeave,on:this.v3?void 0:{mouseleave:this.onItemMouseLeave,mouseover:this.onItemMouseOver,mousedown:this.onItemMouseDown,keydown:this.onKeyDown,focus:this.onItemFocus,click:this.onItemClick,blur:this.onItemBlur},onMouseover:this.onItemMouseOver,onMousedown:this.onItemMouseDown,onKeydown:this.onKeyDown,onFocus:this.onItemFocus,onClick:this.onItemClick,onBlur:this.onItemBlur,originalItemNeeded:this.getInputItem})])},methods:{reset:function(){this.clearItemHoverAndLeaveRequestsIfApplicable(),this.focusedItemId=Ct,this.hoveredItemId=Ct,this.tabbableItemId=$t},onKeyDown:function(e){if(this.focusedItemId!==Ct){var t=Ot(this.focusedItemId,this.currentItems),n=jt(this.currentItems,t.id,e.keyCode,e.key,this.$props.vertical,this.directionHolder.getIsDirectionRightToLeft());t.id!==n&&(e.preventDefault(),this.setFocusedItemId(n)),e.keyCode!==d.Keys.enter&&e.keyCode!==d.Keys.space||t.disabled||(this.mouseOverHandler.handleItemSelectedViaKeyboard(),this.dispatchSelectEventIfWired(e,t.id),!e.defaultPrevented&&0===t.items.length&&t.url&&window.location.assign(t.url))}},onItemMouseOver:function(e){if(this.mouseOverHandler.IsMouseOverEnabled){this.clearItemHoverAndLeaveRequestsIfApplicable();var t=this;this.itemHoverRequest=window.setTimeout((function(){t.setHoveredItemId(e),t.itemHoverRequest=null}),void 0!==(n=Cn({},this.$props)).hoverOpenDelay?n.hoverOpenDelay:n.openOnClick?0:100)}var n},onItemMouseLeave:function(e){if(this.mouseOverHandler.IsMouseOverEnabled&&this.isItemWithDefaultClose(e)){this.clearItemHoverAndLeaveRequestsIfApplicable();var t=this;this.itemLeaveRequest=window.setTimeout((function(){t.setHoveredItemId(Ct),t.itemLeaveRequest=null}),void 0!==(n=Cn({},this.$props)).hoverCloseDelay?n.hoverCloseDelay:100)}var n},onItemMouseDown:function(){this.mouseOverHandler.handleItemMouseDown()},onItemFocus:function(e){this.setFocusedItemId(e),this.mouseOverHandler.handleItemFocus()},onItemClick:function(e,t){var n=Ot(t,this.currentItems);n.disabled||(this.setFocusedItemId(t),this.mouseOverHandler.handleItemClick(t,this.isItemWithDefaultClose(t)),this.dispatchSelectEventIfWired(e,t),!e.defaultPrevented&&n.url&&window.location.assign(n.url))},onItemBlur:function(e){this.isItemWithDefaultClose(e)&&this.setFocusedItemId(Ct)},getInputItem:function(e){return Ot(e,this.inputItems)},setFocusedItemId:function(e){var t=e===Ct?this.tabbableItemId:Dt(e),n=e===Ct||Bt(this.hoveredItemId)&&Bt(e)?this.hoveredItemId:Ct;this.hoveredItemId=n,this.focusedItemId=e,this.tabbableItemId=t},setHoveredItemId:function(e){Bt(e)&&Bt(this.focusedItemId)?this.hoveredItemId=e:(this.hoveredItemId=e,this.focusedItemId=Ct,this.tabbableItemId=$t)},getMenuWrapperClassName:function(){return{"k-rtl":this.directionHolder.getIsDirectionRightToLeft()}},clearItemHoverAndLeaveRequestsIfApplicable:function(){this.itemHoverRequest&&(clearTimeout(this.itemHoverRequest),this.itemHoverRequest=null),this.itemLeaveRequest&&(clearTimeout(this.itemLeaveRequest),this.itemLeaveRequest=null)},isItemWithDefaultClose:function(e){return!this.$props.customCloseItemIds||-1===this.$props.customCloseItemIds.indexOf(e)},checkIsDirectionRightToLeft:function(){return void 0!==this.$props.dir?"rtl"===this.$props.dir:this.menuWrapperEl&&"rtl"===getComputedStyle(this.menuWrapperEl).direction},prepareItems:function(){var e=Vt.call(this,this.$props.items),t=e.items,n=e.inputItems;this.currentItems=t,this.inputItems=n},dispatchSelectEventIfWired:function(e,t){this.$emit("select",{event:e,compontent:this,item:this.getInputItem(t),itemId:t})}}},Mn=Dn,Tn=l,Rn=Tn.h,Bn=Tn.version&&"3"===Tn.version[0],Nn={name:"KendoSplitterPane",props:{orientation:{type:String,default:function(){},validator:function(e){return["vertical","horizontal"].includes(e)}},overlay:Boolean,containsSplitter:Boolean,size:String,min:String,max:String,resizable:Boolean,collapsible:Boolean,collapsed:Boolean,scrollable:Boolean,keepMounted:Boolean,content:[Object,Function,String]},setup:Bn?function(){return{v3:!!Bn}}:void 0,render:function(e){var t,n=Rn||e,i=this.$props,o=i.size,r=i.collapsed,s=i.overlay,a=i.containsSplitter,l=i.collapsible,c=i.resizable,u=i.scrollable,p=i.keepMounted,h=o&&o.length>0,f={flexBasis:o},v=(0,d.classNames)("k-pane",((t={})["k-hidden"]=r,t.hidden=r,t["k-pane-flex"]=a,t["k-pane-static"]=!c&&!l||h,t["k-scrollable"]=u,t)),m=d.getTemplate.call(this,{h:n,template:this.$props.content,defaultRendering:null});return n("div",{style:f,class:v},[!r||p?m:void 0,s?n("div",{class:"k-splitter-overlay k-overlay"}):void 0])}},Pn=Nn,En=l,Vn=En.h,Ln=En.version&&"3"===En.version[0],An={name:"KendoSplitterBar",emits:{drag:null,toggle:null,keyboardresize:null},props:{orientation:{type:String,default:"vertical",validator:function(e){return["vertical","horizontal"].includes(e)}},index:Number,prev:Object,next:Object},created:function(){this.draggable=null},computed:{isStatic:function(){var e=this.$props,t=e.prev,n=e.next,i=t.resizable&&n.resizable,o=t.collapsible||n.collapsible;return!i&&!o},isDraggable:function(){var e=this.$props,t=e.prev,n=e.next,i=t.resizable&&n.resizable,o=t.collapsed||n.collapsed;return!!i&&!o},isHorizontal:function(){return"horizontal"===this.$props.orientation}},data:function(){return{focused:!1}},mounted:function(){this.$el&&(this.draggable=this.$refs.draggable)},setup:Ln?function(){return{v3:!!Ln}}:void 0,render:function(e){var t,n=this,i=this,o=Vn||e,r=this.isDraggable,s=this.isStatic,a=this.isHorizontal,l=(0,d.classNames)("k-splitbar",((t={})["k-focus"]=this.focused,t["k-splitbar-horizontal"]=a,t["k-splitbar-vertical"]=!a,t["k-splitbar-draggable-horizontal"]=a&&r,t["k-splitbar-draggable-vertical"]=!a&&r,t["k-splitbar-static-horizontal"]=a&&s,t["k-splitbar-static-vertical"]=!a&&s,t)),c=this.previousArrowClass(a),u=this.nextArrowClass(a);return o(d.Draggable,{onPress:function(e){return i.onDrag(e,!0,!1)},on:this.v3?void 0:{press:function(e){return i.onDrag(e,!0,!1)},drag:function(e){return i.onDrag(e,!1,!1)},release:function(e){return i.onDrag(e,!1,!0)}},onDrag:function(e){return i.onDrag(e,!1,!1)},onRelease:function(e){return i.onDrag(e,!1,!0)},ref:"draggable"},this.v3?function(){return[o("div",{tabindex:s?-1:0,attrs:n.v3?void 0:{tabindex:s?-1:0,role:"separator"},role:"separator",class:l,style:{touchAction:"none"},onFocusin:n.onFocus,on:n.v3?void 0:{focusin:n.onFocus,focusout:n.onBlur,dblclick:n.onToggle,keydown:n.onKeyDown},onFocusout:n.onBlur,onDblclick:n.onToggle,onKeydown:n.onKeyDown},[o("div",{class:c,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),o("div",{class:"k-resize-handle"}),o("div",{class:u,onClick:n.onNextToggle,on:n.v3?void 0:{click:n.onNextToggle}})])]}:[o("div",{tabindex:s?-1:0,attrs:n.v3?void 0:{tabindex:s?-1:0,role:"separator"},role:"separator",class:l,style:{touchAction:"none"},onFocusin:n.onFocus,on:n.v3?void 0:{focusin:n.onFocus,focusout:n.onBlur,dblclick:n.onToggle,keydown:n.onKeyDown},onFocusout:n.onBlur,onDblclick:n.onToggle,onKeydown:n.onKeyDown},[o("div",{class:c,onClick:n.onPrevToggle,on:n.v3?void 0:{click:n.onPrevToggle}}),o("div",{class:"k-resize-handle"}),o("div",{class:u,onClick:n.onNextToggle,on:n.v3?void 0:{click:n.onNextToggle}})])])},methods:{onDrag:function(e,t,n){var i=e,o=this.$props.index,r=this.draggable&&this.draggable.element;!n&&i&&i.originalEvent.preventDefault(),r&&!this.isStatic&&this.isDraggable&&this.$emit("drag",i,r,o,t,n)},onFocus:function(){this.focused=!0},onBlur:function(){this.focused=!1},onToggle:function(e){var t=this.$props,n=t.index,i=t.prev,o=t.next;(i.collapsible||o.collapsible)&&this.$emit("toggle",i.collapsible?n:n+1,e)},onPrevToggle:function(e){var t=this.$props,n=t.index;t.prev.collapsible&&this.$emit("toggle",n,e)},onNextToggle:function(e){var t=this.$props,n=t.index;t.next.collapsible&&this.$emit("toggle",n+1,e)},onKeyDown:function(e){var t=this,n=e&&e.keyCode,i=this.isHorizontal,o=this.$props.index,r=this.draggable&&this.draggable.element,s=function(n,i,o){e.preventDefault(),t.$emit("keyboardresize",n,i,o,e)};r&&(n===d.Keys.enter?(e.preventDefault(),this.onToggle(e)):this.isDraggable&&(i&&n===d.Keys.left?s(r,o,-10):i&&n===d.Keys.right?s(r,o,10):i||n!==d.Keys.up?i||n!==d.Keys.down||s(r,o,10):s(r,o,-10)))},previousArrowClass:function(e){var t,n=this.$props.prev,i=n.collapsible,o=n.collapsed;return(0,d.classNames)("k-icon",((t={})["k-hidden"]=!i,t["k-collapse-prev"]=i,t["k-i-arrow-60-left"]=i&&e&&!o,t["k-i-arrow-60-right"]=i&&e&&o,t["k-i-arrow-60-up"]=i&&!e&&!o,t["k-i-arrow-60-down"]=i&&!e&&o,t))},nextArrowClass:function(e){var t,n=this.$props.next,i=n.collapsible,o=n.collapsed;return(0,d.classNames)("k-icon",((t={})["k-hidden"]=!i,t["k-collapse-next"]=i,t["k-i-arrow-60-right"]=i&&e&&!o,t["k-i-arrow-60-left"]=i&&e&&o,t["k-i-arrow-60-down"]=i&&!e&&!o,t["k-i-arrow-60-up"]=i&&!e&&o,t))}}},Fn=An,zn=function(){return zn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zn.apply(this,arguments)},jn=l,Kn=jn.h,_n=jn.version&&"3"===jn.version[0],Hn={collapsible:!1,collapsed:!1,resizable:!0,scrollable:!0},Wn={name:"KendoSplitter",props:{orientation:{type:String,default:"horizontal",validator:function(e){return["vertical","horizontal"].includes(e)}},panes:Array,defaultPanes:Array},computed:{isControlledState:function(){return void 0!==this.$props.panes},computedPanes:function(){return this.isControlledState?this.$props.panes:this.currentPanes},isRtl:function(){return this.$el&&"rtl"===getComputedStyle(this.$el).direction||!1}},created:function(){(0,d.validatePackage)(O)},data:function(){return{isDragging:!1,dragIndex:void 0,startTime:0,originalX:0,originalY:0,originalPrevSize:0,originalNextSize:0,currentPanes:this.$props.defaultPanes||[]}},setup:_n?function(){return{v3:!!_n}}:void 0,render:function(e){var t=Kn||e,n=this.panesOptions(),i=(0,d.classNames)("k-widget","k-splitter","k-splitter-flex","k-splitter-".concat(this.orientation));return this.validatePanes(n),t("div",{class:i},[function(e){return e.map((function(n,i){var o,r=d.templateRendering.call(this,n.content,d.getListeners.call(this)),s=2*i,a=s+1;if(i+1<e.length){var l=e[i+1];o=t(Fn,{key:a,index:i,attrs:this.v3?void 0:{index:i,orientation:this.orientation,prev:n,next:l},orientation:this.orientation,prev:n,next:l,onDrag:this.onBarDragResize,on:this.v3?void 0:{drag:this.onBarDragResize,toggle:this.onBarToggle,keyboardresize:this.onBarKeyboardResize},onToggle:this.onBarToggle,onKeyboardresize:this.onBarKeyboardResize})}return[t(Pn,{key:s,containsSplitter:n.containsSplitter,attrs:this.v3?void 0:{containsSplitter:n.containsSplitter,size:n.size,min:n.min,max:n.max,resizable:n.resizable,collapsible:n.collapsible,collapsed:n.collapsed,scrollable:n.scrollable,keepMounted:n.keepMounted,content:r},size:n.size,min:n.min,max:n.max,resizable:n.resizable,collapsible:n.collapsible,collapsed:n.collapsed,scrollable:n.scrollable,keepMounted:n.keepMounted,content:r}),o]}),this)}.call(this,n)])},methods:{validatePanes:function(e){if(!e.filter((function(e){return void 0===e.size})).length)throw new Error("The Splitter should have at least one pane without a set size.")},mapPaneOptions:function(e){for(var t=this.orientation,n=[],i=0;i<e.length;i++){var o=!1;this.isDragging&&void 0!==this.dragIndex&&(o=this.dragIndex===i||this.dragIndex+1===i),n.push(zn(zn(zn({},Hn),{orientation:t,overlay:o}),e[i]))}return n},onBarToggle:function(e,t){var n=this.panesOptions().map((function(t,n){var i=t;return n===e?zn(zn({},i),{collapsed:!t.collapsed}):zn({},i)}));this.$emit("change",{newState:n,isLast:!0,nativeEvent:t})},onBarDragResize:function(e,t,n,i,o){var r=(new Date).getTime(),s=e.pageX,a=e.pageY,l=this.surroudingPanes(t),d=l.prevElement,c=l.nextElement;if(d&&c){if(i)return this.isDragging=!0,this.dragIndex=n,this.startTime=r,this.originalX=s,this.originalY=a,this.originalPrevSize=this.elementSize(d),void(this.originalNextSize=this.elementSize(c));var u,p=this.$data,h=p.originalPrevSize,f=p.originalNextSize,v=p.startTime,m=p.originalX,g=p.originalY;!i&&r-v<150||(u="vertical"===this.orientation?a-g:this.isRtl?m-s:s-m,this.resize(n,n+1,h,f,u,o,e)),o&&this.resetDragState()}},onBarKeyboardResize:function(e,t,n,i){var o=this.surroudingPanes(e),r=o.prevElement,s=o.nextElement,a=this.elementSize(r),l=this.elementSize(s);this.resize(t,t+1,a,l,n,!0,i)},surroudingPanes:function(e){return{prevElement:e.previousElementSibling,nextElement:e.nextElementSibling}},containerSize:function(){return this.$el?this.elementSize(this.$el,!0):0},isPercent:function(e){return/%$/.test(e)},toPixels:function(e,t){var n=parseInt(e,10);return this.isPercent(e)&&(n=t*n/100),n},panesOptions:function(){return this.mapPaneOptions(this.computedPanes)},resetDragState:function(){this.isDragging=!1,this.dragIndex=void 0,this.startTime=0,this.originalX=0,this.originalY=0,this.originalPrevSize=0,this.originalNextSize=0},elementSize:function(e,t){var n=t?"client":"offset";return"vertical"===this.orientation?e["".concat(n,"Height")]:e["".concat(n,"Width")]},clamp:function(e,t,n){return Math.min(t,Math.max(e,n))},fixedSize:function(e){return e&&e.length>0},resize:function(e,t,n,i,o,r,s){var a,l,d=this,c=this.panesOptions(),u=c[e],p=c[t],h=n+i,f=this.containerSize(),v=function(e){return d.toPixels(e,f)},m={index:e,initialSize:n,min:v(u.min)||h-v(p.max)||0,max:v(u.max)||h-v(p.min)||h},g={index:t,initialSize:i,min:v(p.min)||h-v(u.max)||0,max:v(p.max)||h-v(u.min)||h},y=function(e,t){var n=c[e.index],i=d.clamp(e.min,e.max,e.initialSize+t);return d.isPercent(n.size||"")?100*i/f+"%":i+"px"};this.fixedSize(u.size)&&this.fixedSize(p.size)?(a=y(m,o),l=y(g,-o)):p.collapsible||this.fixedSize(p.size)?l=y(g,-o):a=y(m,o);var b=c.map((function(n,i){var o=n;return i===e?zn(zn({},o),{size:a}):i===t?zn(zn({},o),{size:l}):zn({},o)}));this.panesDuringOnChange=b,this.isControlledState||(this.currentPanes=b),this.$emit("change",{newState:b,isLast:r,nativeEvent:s}),this.panesDuringOnChange=void 0}}},Un=Wn,qn=function(){return qn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qn.apply(this,arguments)},Gn=l,Jn=Gn.h,Xn=Gn.version&&"3"===Gn.version[0],Yn={name:"KendoPanelBarGroup",props:{item:Object,items:Array,animation:Boolean,expanded:Boolean,disabled:Boolean,keepItemsMounted:Boolean,uniquePrivateKey:[String,Number],content:Object},data:function(){return{show:this.$props.expanded}},setup:Xn?function(){return{v3:!!Xn}}:void 0,render:function(e){var t=Jn||e,n=this.$props,i=n.item,o=n.items,r=n.uniquePrivateKey,s=n.disabled,a=n.expanded,l=n.animation,c=n.keepItemsMounted,u=d.getTemplate.call(this,{h:t,template:this.$props.content,defaultRendering:null,additionalProps:qn(qn({},this.$props),{show:this.show})}),p=!s&&a,h=p||c?o?t("ul",{role:"group",attrs:this.v3?void 0:{role:"group"},class:"k-panelbar-group k-panel k-group",style:{display:c?this.$data.show?"block":"none":"block"}},[o.map((function(e){return t(oi,qn(qn({props:this.v3?void 0:qn(qn({},e),{item:i})},e),{item:i}))}),this)]):this.$props.content?t("div",{class:"k-panelbar-content k-content"},[u]):null:null;return void 0!==l&&!l||s?h:t(k.Ue,{appear:p,attrs:this.v3?void 0:{appear:p,transitionEnterDuration:200,transitionExitDuration:200,unmountOnExit:!c},transitionEnterDuration:200,transitionExitDuration:200,key:r+"_animation",style:{display:"block"},unmountOnExit:!c,onEntering:this.handleEntering,on:this.v3?void 0:{entering:this.handleEntering,exited:this.handleExited},onExited:this.handleExited},this.v3?function(){return[h]}:[h])},methods:{handleEntering:function(){this.keepItemsMounted&&(this.show=!0)},handleExited:function(){this.keepItemsMounted&&(this.show=!1)}}},Zn=Yn,Qn=function(){return Qn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qn.apply(this,arguments)},ei=l,ti=ei.h,ni=ei.version&&"3"===ei.version[0],ii={name:"KendoPanelBarItem",props:{item:Object,items:Array,animation:Boolean,expanded:Boolean,disabled:Boolean,selected:Boolean,level:Number,title:{type:[String,Object,Function],default:function(){return"Untitled"}},id:[String,Number],focused:Boolean,keepItemsMounted:Boolean,uniquePrivateKey:[String,Number],parentUniquePrivateKey:Array,parentExpanded:Boolean,headerClassName:String,iconClass:String,imageUrl:String,icon:String,content:Object,header:Object},inject:{dispatchItemSelect:{default:null}},setup:ni?function(){return{v3:!!ni}}:void 0,render:function(e){var t,n=ti||e,i=this.$props,o=i.id,r=i.item,s=i.icon,a=i.items,l=i.content,c=i.title,u=i.uniquePrivateKey,p=i.disabled,h=i.selected,f=i.focused,v=i.expanded,m=i.className,g=i.level,y=i.headerClassName,b=i.animation,k=i.keepItemsMounted,w=!!a||l,S=(0,d.classNames)("k-item",{"k-panelbar-header":0===g,"k-panelbar-item":0!==g,"k-expanded":v&&w},"k-level-".concat(g),m),x=(0,d.classNames)("k-link",{"k-selected":!p&&h,"k-focus":f,"k-disabled":p},y),C=(0,d.classNames)("k-panelbar-toggle","k-icon",((t={})["k-i-arrow-chevron-up"]=v&&w,t["k-panelbar-collapse"]=v&&w,t["k-i-arrow-chevron-down"]=!v&&w,t["k-panelbar-expand"]=!v&&w,t)),$=function(){if(this.imageUrl)return n("img",{role:"presentation",attrs:this.v3?void 0:{role:"presentation",src:this.imageUrl},class:"k-panelbar-item-icon k-image",src:this.imageUrl});if(s){var e=(0,d.classNames)("k-panelbar-item-icon","k-icon","k-i-"+s);return n("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:e})}return this.iconClass?n("span",{role:"presentation",attrs:this.v3?void 0:{role:"presentation"},class:"k-panelbar-item-icon "+this.iconClass}):null}.call(this),I=p||!a&&!l?null:n("span",{class:C}),O=a||l?n(Zn,{items:a,attrs:this.v3?void 0:{items:a,item:r,content:l,uniquePrivateKey:u,disabled:p,expanded:v,animation:b,keepItemsMounted:k},item:r,content:l,uniquePrivateKey:u,disabled:p,expanded:v,animation:b,keepItemsMounted:k}):null,D=d.getTemplate.call(this,{h:n,template:this.$props.header,defaultRendering:null,additionalProps:Qn({},this.$props)});return n("li",{id:o,attrs:this.v3?void 0:{id:o,role:"treeitem","aria-disabled":p,"aria-hidden":!p&&!v,"aria-selected":!p&&h,"aria-expanded":!p&&v&&w},class:S,role:"treeitem","aria-disabled":p,"aria-hidden":!p&&!v,"aria-selected":!p&&h,"aria-expanded":!p&&v&&w},[n("span",{class:x,onClick:this.handleItemClick,on:this.v3?void 0:{click:this.handleItemClick}},[$,this.$props.header?D:n("span",{class:"k-panelbar-item-text"},[c]),I]),O])},methods:{handleItemClick:function(){var e=this.$props,t=e.disabled,n=e.id;t||this.dispatchItemSelect({uniquePrivateKey:this.$props.uniquePrivateKey,id:n,target:this})},childFactory:function(e){return e}}},oi=ii,ri=function(){return ri=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ri.apply(this,arguments)},si=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))},ai=function e(t,n){var i=n.animation,o=void 0===i||i,r=n.keepItemsMounted,s=void 0!==r&&r,a=n.state,l=n.expanded,c=n.handleSelect,u=n.parentExpanded,p=void 0===u||u,h=n.level,f=void 0===h?0:h,v=n.parentPrivateKey,m=void 0===v?[]:v;return t.map((function(t,n){var i,r=ci(t,m,n),u=d.templateRendering.call(this,t.content,d.getListeners.call(this)),h=d.templateRendering.call(this,t.header,d.getListeners.call(this));if(t.items){var v={animation:o,keepItemsMounted:s,state:a,expanded:l,handleSelect:c,parentExpanded:(l||[]).indexOf(r)>-1,level:f+1,parentPrivateKey:si(si([],m,!0),[r],!1)};i=e.call(this,t.items,v)}return ri(ri({},t),{animation:void 0!==t.animation?t.animation:o,keepItemsMounted:s,id:t.id||"k-panelbar-item-default-".concat(r),uniquePrivateKey:r,parentUniquePrivateKey:m,parentExpanded:p,level:f,expanded:(l||[]).indexOf(r)>-1,focused:a.currentFocused===r&&a.wrapperFocused,selected:a.currentSelected===r,items:i,content:u,header:h})}),this)},li=function(e){var t=e.items[0];return t?ci(t,[],0):""},di=function e(t,n,i,o,r){return void 0===i&&(i={currentExpanded:t.expanded||[],currentSelected:t.selected||"",currentFocused:t.focused||"",wrapperFocused:!1}),void 0===o&&(o=!0),void 0===r&&(r=[]),t.items.forEach((function(t,s){var a=ci(t,r,s);!t.disabled&&o&&(t.selected&&(i.currentSelected=a),t.focused&&(i.currentFocused=a),t.expanded&&("multiple"===n?i.currentExpanded.push(a):"single"===n&&(i.currentExpanded=[a])),t.items&&(i=e(t,n,i,!!t.expanded,si(si([],r,!0),[a],!1))))})),i},ci=function(e,t,n){return e&&e&&e.id?e.id:t.length?t[t.length-1]+".".concat(n):".".concat(n)};function ui(e,t){return void 0===t&&(t=[]),(e||[]).forEach((function(e){e.disabled||(t.push(e),e.expanded&&e.children&&ui(e.children,t))})),t}function pi(e,t){return void 0===t&&(t=[]),e.forEach((function(e){e&&e&&!e.disabled&&(t.push(e),e.items&&pi(e.items,t))})),t}function hi(e,t){return void 0===t&&(t=[]),e.forEach((function(e){e&&(e.expanded||e.parentExpanded)&&(t.push(e),e.items&&hi(e.items,t))})),t}var fi,vi=function(e){return null!=e},mi=function(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))};!function(e){e[e.Toggle=0]="Toggle",e[e.Next=1]="Next",e[e.Previous=2]="Previous"}(fi||(fi={}));var gi=function(){return gi=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gi.apply(this,arguments)},yi=function(e,t,n){if(n||2===arguments.length)for(var i,o=0,r=t.length;o<r;o++)!i&&o in t||(i||(i=Array.prototype.slice.call(t,0,o)),i[o]=t[o]);return e.concat(i||Array.prototype.slice.call(t))},bi=l,ki=bi.h,wi=bi.version&&"3"===bi.version[0],Si={name:"KendoPanelBar",emits:{select:null,keydown:null},props:{animation:{type:Boolean,default:!0},items:Array,dir:String,selected:String,expanded:{type:Array,default:void 0},focused:String,expandMode:{type:String,default:"multiple",validator:function(e){return["single","multiple"].includes(e)}},className:String,keepItemsMounted:Boolean},created:function(){this.activeDescendant=null,(0,d.validatePackage)(O)},data:function(){var e=di(this.$props,this.expandMode);return e.currentFocused||(e.currentFocused=li(this.$props)),e},computed:{selectedItem:function(){var e=this.$props.selected;return void 0===e?this.currentSelected:e},expandedItems:function(){return void 0!==this.$props.expanded?this.$props.expanded||[]:this.currentExpanded},computedItems:function(){var e=gi(gi({currentExpanded:[]},this.$data),{selected:this.selectedItem}),t={animation:this.$props.animation,keepItemsMounted:this.$props.keepItemsMounted,state:e,expanded:this.expandedItems,handleSelect:this.handleSelect};return ai.call(this,this.items,t)}},provide:function(){return{dispatchItemSelect:this.handleSelect}},setup:wi?function(){return{v3:!!wi}}:void 0,render:function(e){var t=ki||e,n=(0,d.classNames)("k-panelbar",this.$props.className);return t("ul",{dir:this.$props.dir,attrs:this.v3?void 0:{dir:this.$props.dir,role:"tree",tabindex:0,"aria-activedescendant":this.activeDescendant},role:"tree",tabindex:0,onKeydown:this.handleKeyDown,on:this.v3?void 0:{keydown:this.handleKeyDown,focus:this.handleWrapperFocus,blur:this.handleWrapperBlur},onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,class:n,"aria-activedescendant":this.activeDescendant},[this.computedItems.map((function(e){return t(oi,gi(gi({props:this.v3?void 0:gi(gi({},e),{item:e})},e),{item:e}))}),this)])},methods:{handleSelect:function(e){this.onSelect(e),this.onFocus(e)},onSelect:function(e){var t,n,i=this;if(pi(this.computedItems).forEach((function(n){n.uniquePrivateKey===(e.uniquePrivateKey||i.currentFocused)&&(t=n)})),t){switch(this.expandMode){case"single":n=yi(yi([],t.parentUniquePrivateKey,!0),[t.uniquePrivateKey],!1),mi(this.expandedItems,n)&&(n=t.parentUniquePrivateKey?yi([],t.parentUniquePrivateKey,!0):[]);break;case"multiple":var o=(n=this.expandedItems.slice()).indexOf(t.uniquePrivateKey);-1===o?n.push(t.uniquePrivateKey):n.splice(o,1);break;default:n=this.expandedItems.slice()}this.currentSelected=t.uniquePrivateKey,this.currentExpanded=n,this.$emit("select",{target:t,expandedItems:n})}},onFocus:function(e,t){var n=this;void 0===t&&(t=0);var i,o=hi(this.computedItems);o.forEach((function(r,s){if(r.uniquePrivateKey===(e.uniquePrivateKey||n.currentFocused)){var a=s+t<0?0:s+t>o.length?o.length-1:s+t;i=o[a]}})),i&&(this.activeDescendant=i.id,this.currentFocused=i.uniquePrivateKey)},onNavigate:function(e,t){var n;switch(t){case fi.Previous:n=-1,this.onFocus(e,n);break;case fi.Next:n=1,this.onFocus(e,n);break;case fi.Toggle:this.onSelect(e)}},nextTick:function(e){this.nextTickId=window.setTimeout((function(){return e()}))},handleWrapperFocus:function(){clearTimeout(this.nextTickId),this.wrapperFocused||(this.wrapperFocused=!0)},handleWrapperBlur:function(){this.wrapperFocused=!1},handleKeyDown:function(e){var t=this._element&&"rtl"===getComputedStyle(this._element).direction||!1;if(e.target===e.currentTarget){var n=void 0;switch(e.keyCode){case d.Keys.left:n=t?fi.Next:fi.Previous;break;case d.Keys.up:n=fi.Previous;break;case d.Keys.right:n=t?fi.Previous:fi.Next;break;case d.Keys.down:n=fi.Next;break;case d.Keys.space:case d.Keys.enter:n=fi.Toggle;break;default:n=null}null!==n&&(e.preventDefault(),this.onNavigate(e,n))}this.$emit("keydown",e)}}},xi=Si},9606:(e,t,n)=>{n.r(t),n.d(t,{GridPdfExport:()=>q,GridPdfExportVue2:()=>U,PDFExport:()=>S,PDFExportVue2:()=>w,savePDF:()=>x});var i=n(1895),o=n(4407);function r(e,t,n){void 0===n&&(n={});var i=c;if(n.forceProxy&&!n.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");n.forceProxy||(a()&&(i=d),navigator.msSaveBlob&&(i=l)),i(e,t,n)}var s=function(){return document.createElement("a")},a=function(){return"download"in s()};function l(e,t){var n=e;if("string"==typeof e){for(var i=e.split(";base64,"),o=i[0],r=atob(i[1]),s=new Uint8Array(r.length),a=0;a<r.length;a++)s[a]=r.charCodeAt(a);n=new Blob([s.buffer],{type:o})}navigator.msSaveBlob(n,t)}function d(e,t){var n=e;window.Blob&&e instanceof Blob&&(n=URL.createObjectURL(e));var i=s();i.download=t,i.href=n;var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(o),setTimeout((function(){return URL.revokeObjectURL(n)}))}function c(e,t,n){if(n.proxyURL){var i=document.createElement("form");i.setAttribute("action",n.proxyURL),i.setAttribute("method","POST"),i.setAttribute("target",n.proxyTarget||"_self");var o=n.proxyData||{};o.fileName=t;var r=e.split(";base64,");for(var s in o.contentType=r[0].replace("data:",""),o.base64=r[1],o)if(o.hasOwnProperty(s)){var a=document.createElement("input");a.setAttribute("type","hidden"),a.setAttribute("name",s),a.setAttribute("value",o[s]),i.appendChild(a)}document.body.appendChild(i),i.submit(),document.body.removeChild(i)}}String.fromCharCode;var u=n(7984),p=i,h=p.h,f=p.createApp,v=function(){function e(e,t,n,i,o){void 0===o&&(o={});var r=this;this.drawDOM=e,this.exportPDF=t,this.saveAs=n,this.domElement=i,this.options=o,this.convertPageTemplateToHtml=function(e){if(h&&f&&u.canUseDOM){var t=r,n=document.createElement("div");n.setAttribute("style","position:absolute; left: -5000px; top: 0px;");var i,o=document.createElement("div");n.appendChild(o),document.body.appendChild(n);var s={render:function(){return h(t.options.pageTemplate,{pageNum:e.pageNum,totalPages:e.totalPages})},mounted:function(){this.$nextTick((function(){document.body.removeChild(n),i.unmount()}))}};return(i=f(s)).mount(o),o.outerHTML}var a=new(p.extend(r.options.pageTemplate))({propsData:{pageNum:e.pageNum,totalPages:e.totalPages}});return a.$mount(),a.$el.outerHTML}}return e.prototype.savePDF=function(e){var t=this,n=this.drawDOM(this.domElement,this.getDrawOptions()).then((function(e){return t.exportPDF(e,t.getPDFOptions())})).then((function(e){return t.saveAs(e,t.options.fileName||"export.pdf",t.getSaveOptions())}));e&&n.then(e,e)},e.prototype.getDrawOptions=function(){return{avoidLinks:this.options.avoidLinks,forcePageBreak:this.options.forcePageBreak,keepTogether:this.options.keepTogether,margin:this.options.margin,paperSize:this.options.paperSize,landscape:this.options.landscape,repeatHeaders:this.options.repeatHeaders,scale:this.options.scale,template:this.options.pageTemplate&&this.convertPageTemplateToHtml}},e.prototype.getPDFOptions=function(){return{author:this.options.author,creator:this.options.creator||"Kendo UI PDF Generator",date:this.options.date,imgDPI:this.options.imageResolution,keywords:this.options.keywords,landscape:this.options.landscape,margin:this.options.margin,multiPage:!0,paperSize:this.options.paperSize,producer:this.options.producer,subject:this.options.subject,title:this.options.title}},e.prototype.getSaveOptions=function(){return{forceProxy:this.options.forceProxy,proxyData:this.options.proxyData,proxyTarget:this.options.proxyTarget,proxyURL:this.options.proxyURL}},e}();const m=v;var g={name:"@progress/kendo-vue-pdf",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123974,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},y=i,b=y.h,k=y.version&&"3"===y.version[0],w={name:"pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},methods:{save:function(e){new m(o.drawDOM,o.exportPDF,r,this.$el,this.$props).savePDF(e)}},setup:k?function(){return{v3:!!k}}:void 0,created:function(){(0,u.validatePackage)(g)},render:function(e){return(b||e)("div",[(0,u.getDefaultSlots)(this)])}},S=w;function x(e,t,n){void 0===t&&(t={}),new m(o.drawDOM,o.exportPDF,r,e,t).savePDF(n)}var C,$={},I=function(e){return String(e).trim().split(" ")},O=function(e){return function(t){return function(e,t){var n=I(t);return Boolean(I(e.className).find((function(e){return n.indexOf(e)>=0})))}(t,e)}},D=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var i=D(e,t);if(i)return i}e=e.nextSibling}}},M="k-grid-header",T="k-grid-footer",R=($[C="TABLE"]||($.TABLE=function(e){return String(e.nodeName).toLowerCase()===C.toLowerCase()}),$.TABLE),B=function(e){return e?"locked":"wrap"},N=function(){function e(e){this.element=e,this.list=D(e,O("k-grid-container"))}return e.prototype.content=function(e){return D(this.list,O("k-grid-content".concat(e?"-locked":"")))},e.prototype.header=function(e){return this.headerWrap=this.headerWrap||D(this.element,O(M)),D(this.headerWrap,O("".concat(M,"-").concat(B(e))))},e.prototype.footer=function(e){return this.footerWrap=this.footerWrap||D(this.element,O(T)),D(this.footerWrap,O("".concat(T,"-").concat(B(e))))},e.prototype.table=function(){return D(this.element,R)},e}(),P="k-first",E=function(e,t){for(var n=t.length,i=0;i<n;i++)e.appendChild(t[i].cloneNode(!0))},V=function(e){var t=document.createElement("div");return t.className="k-widget k-grid",t.appendChild(e),t},L=function(e){var t=e.length,n=e[0].cloneNode(!0),i=n.rows.length;if(t>1)for(var o=0;o<i;o++)for(var r=1;r<t;r++)E(n.rows[o],e[r].rows[o].cells);return n},A=function(){return A=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},A.apply(this,arguments)},F=i,z=F.h,j=F.createApp;function K(e){return function(t,n,i,o,r){return void 0===n&&(n={}),function(e,t,n,i,o,r){var s,a,l,d;function c(){e(h.call(this),n,p)}function p(){d.unmount?d.unmount():d.$destroy(),document.body.removeChild(s),document.body.removeChild(l),s=l=void 0,i&&i()}function h(){(l=document.createElement("div")).className="k-grid-pdf-export-element";var e=function(e){var t,n=new N(e),i=n.content();if(i){var o=[i.querySelector("colgroup")],r=[n.header().querySelector("thead")],s=[i.querySelector("tbody")],a=n.footer();t=function(e,t,n,i){for(var o=document.createElement("table"),r=e[0].cloneNode(!0),s=1;s<e.length;s++)E(r,e[s].querySelectorAll("col"));var a=L(t),l=L(n);if(a.className=M,function(e,t){if(t.length>1&&e.rows.length>1)for(var n=1;n<e.rows.length;n++){var i=t[0].rows[n].cells.length,o=e.rows[n].cells[i];-1===String(o.className).indexOf(P)&&(o.className+=" ".concat(P))}}(a,t),o.appendChild(r),o.appendChild(a),o.appendChild(l),i.length){var d=L(i);d.className=T,o.appendChild(d)}return V(o)}(o,r,s,a?[a.querySelector("tfoot")]:[])}else t=V(n.table().cloneNode(!0));return t}(this.$el);return l.appendChild(e),document.body.appendChild(l),e}void 0===n&&(n={}),function(){if(u.canUseDOM){(s=document.createElement("div")).setAttribute("style","position:absolute; left: -5000px; top: 0px;"),a=document.createElement("div"),s.appendChild(a),document.body.appendChild(s);var e=o&&{dataItems:o,total:o.length,pageSize:o.length,skip:0};if(r){var n={render:function(){return z(t.type,A(A({},t.props),e),t.children)},store:t.$store,mounted:function(){this.$el.style&&(this.$el.style.width="1000px"),c.call(this)}};(d=j(n)).mount(a)}else{var i=Object.getPrototypeOf(t).constructor;(d=new i({propsData:Object.assign({},t.$props,e),store:t.$store,mounted:function(){d.$el.style&&(d.$el.style.width="1000px"),c.call(d)}})).$slots=t.$slots,d.$scopedSlots=t.$scopedSlots,d.$mount(a)}}}()}(e,t,n,i,o,r)}}var _=i,H=_.h,W=_.version&&"3"===_.version[0],U={name:"grid-pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},created:function(){this.saveGridPDF=K(this.getSavePDF())},methods:{save:function(e,t){var n=(0,u.getDefaultSlots)(this).filter((function(e){return e&&e.tag&&-1!==e.tag.toLowerCase().indexOf("grid")||e.componentOptions&&e.componentOptions.tag&&-1!==e.componentOptions.tag.toLowerCase().indexOf("grid")||e.type&&e.type.name&&-1!==e.type.name.toLowerCase().indexOf("grid")}));n.length&&(this.gridComponent=this.v3?n[0]:n[0].componentInstance,this.saveGridPDF(this.gridComponent,this.$props,t,e,this.v3))},getSavePDF:function(){return x}},setup:W?function(){return{v3:!!W}}:void 0,render:function(e){return(H||e)("div",[(0,u.getDefaultSlots)(this)])}},q=U;"undefined"!=typeof window&&window.Vue&&window.Vue.component&&(window.Vue.component("kendo-pdf-export",S),window.Vue.component("kendo-grid-pdf-export",q))},3266:(e,t,n)=>{n.r(t),n.d(t,{Popup:()=>U,PopupVue2:()=>W});var i=n(1895),o=n(4498);const r="bottom",s="center",a="middle",l="right";function d(e){return e.ownerDocument||e.document||e}const c=function(e){return d(e).defaultView},u=function(e){return d(e).documentElement};var p=0;function h(){if(!p&&"undefined"!=typeof document){var e=document.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),p=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)}return p}function f(e){var t=c(e),n=u(e),i={height:t.innerHeight,width:t.innerWidth};return n.scrollHeight-n.clientHeight>0&&(i.width-=h()),i}const v=function(e){for(var t=e.offsetParent;t&&"static"===t.style.position;)t=t.offsetParent;return t||u(e)},m=function(e){var t=e.getBoundingClientRect(),n=t.left,i=t.top;return t.height||t.width||(t=function(e){var t=e.style,n=t.display,i=t.left,o=t.position;e.style.display="",e.style.left="-10000px",e.style.position="absolute";var r=e.getBoundingClientRect();return e.style.display=n,e.style.left=i,e.style.position=o,r}(e)),{top:i,left:n,height:t.height,width:t.width}};function g(e,t){for(var n=[],i=e.parentNode;i&&(n.push(i),i!==t);)i=i.parentNode;return n}function y(e){var t=u(e),n=c(e);return{x:n.pageXOffset||t.scrollLeft||0,y:n.pageYOffset||t.scrollTop||0}}function b(e){return e===(e.ownerDocument||{}).body?y(e):{x:e.scrollLeft,y:e.scrollTop}}function k(e,t,n){void 0===n&&(n=1);var i=t?v(t):null,o=function(e,t){var n=c(e),i=n.getComputedStyle(e),o=m(e),r=t||v(e),s=e.ownerDocument,a=r!==s.body&&r!==s.documentElement,l={top:0,left:0};if("fixed"!==i.position&&a){var d=n.getComputedStyle(r);(l=m(r)).top+=parseInt(d.borderTopWidth,10),l.left+=parseInt(d.borderLeftWidth,10)}return{top:o.top-l.top,left:o.left-l.left,height:o.height,width:o.width}}(e,i),r=o.top,s=o.left,a=o.height,l=o.width,d=function(e,t){return e?b(e):function(e){var t=v(e);return t?b(t):{x:0,y:0}}(t)}(i,e),u=d.x,p=d.y,h=e.ownerDocument,f=i===h.body||i===h.documentElement?1:n;return{top:r+p*f,left:s+u*f,height:a,width:l}}const w="flip";var S=function(e,t,n){var i=0;return e+t>n&&(i=n-(e+t)),e<0&&(i=-e),i},x=function(e){var t=e.offset,n=e.size,i=e.anchorSize,o=e.viewPortSize,r=e.anchorAlignPoint,l=e.elementAlignPoint,d=0,c=2*e.margin;if(l!==r&&l!==s&&l!==a&&r!==s&&r!==a){var u="top"===r||"left"===r;t<0&&u?t+(d=n+i+c)+n>o&&(d=0):t>=0&&!u&&(t+n>o&&(d+=-(i+n+c)),t+d<0&&(d=0))}return d};function C(e){for(var t=[],n=e.parentNode.firstElementChild;n;)n!==e&&t.push(n),n=n.nextElementSibling;return t}function $(e,t){for(var n,i,o=g(e),r=t;r&&(n=C(r),!(i=o.reduce((function(e,t){return e.concat(n.filter((function(e){return e===t})))}),[])[0]));)r=r.parentElement;return i}var I=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},O=function(e,t){return e||{height:0,left:t.left,top:t.top,width:0}},D=function(){return"undefined"!=typeof document&&!!document.body},M=function(){return"undefined"!=typeof window},T=/auto|scroll/,R=function(e){var t=window.getComputedStyle(e);return"".concat(t.overflow).concat(t.overflowX).concat(t.overflowY)},B=function(){if(!D())return!1;var e=document.createElement("div");if(e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML="<div>child</div>",document.body.appendChild(e),e&&e.firstChild){var t=e.firstChild;t.style.position="fixed",t.style.top="".concat(10,"px")}var n=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),n}(),N="left",P=function(){function e(e){this._dom=e}return e.prototype.alignElement=function(e){var t=e.anchor,n=e.element,i=e.anchorAlign,o=e.elementAlign,r=e.offset,s=this._dom.hasOffsetParent(n)?this.relativeRect(t,n,r):this.absoluteRect(t,n,r);return this._dom.align({anchorAlign:i,anchorRect:s,elementAlign:o,elementRect:this._dom.offset(n)})},e.prototype.absoluteRect=function(e,t,n){var i,o,r=this._dom,s=(i=O(r.offset(e),n),(o=r.stackingElementOffset(t))?{height:i.height,left:i.left-o.left,top:i.top-o.top,width:i.width}:i),a=r.stackingElementScroll(t),l=r.addScroll(s,a),d=this.elementScrollPosition(e,t),c=r.removeScroll(l,d);return c.left+=window.scrollX||window.pageXOffset,c.top+=window.scrollY||window.pageYOffset,c},e.prototype.elementScrollPosition=function(e,t){return e?{x:0,y:0}:this._dom.scrollPosition(t)},e.prototype.relativeRect=function(e,t,n){return O(this._dom.position(e,t),n)},e}(),E=function(){function e(){}return e.prototype.addOffset=function(e,t){return{left:e.left+t.left,top:e.top+t.top}},e.prototype.align=function(e){return function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,d=e.margin;void 0===d&&(d={});var c=n.horizontal,u=n.vertical,p=o.horizontal,h=o.vertical,f=d.horizontal||0,v=d.vertical||0,m=t.top,g=t.left;return u===r&&(m+=t.height),u!==s&&u!==a||(m+=Math.round(t.height/2)),h===r&&(m-=i.height,v*=-1),h!==s&&h!==a||(m-=Math.round(i.height/2),v*=-1),c===l&&(g+=t.width),c!==s&&c!==a||(g+=Math.round(t.width/2)),p===l&&(g-=i.width,f*=-1),p!==s&&p!==a||(g-=Math.round(i.width/2),f*=-1),{top:m+v,left:g+f}}(e)},e.prototype.boundingOffset=function(e){return function(e){if(!e.getBoundingClientRect){var t=f(e);return{bottom:t.height,left:0,right:t.width,top:0}}var n=e.getBoundingClientRect();return{bottom:n.bottom,left:n.left,right:n.right,top:n.top}}(e)},e.prototype.getWindow=function(){return M()?window:null},e.prototype.isBodyOffset=function(e){return v(t=e)===t.ownerDocument.body;var t},e.prototype.hasOffsetParent=function(e){if(!e)return!1;var t=e.offsetParent;return t&&!("BODY"===t.nodeName&&"static"===window.getComputedStyle(t).position)},e.prototype.offset=function(e){return e?m(e):null},e.prototype.staticOffset=function(e){if(!e)return null;var t=e.style,n=t.left,i=t.top;e.style.left="0px",e.style.top="0px";var o=m(e);return e.style.left=n,e.style.top=i,o},e.prototype.position=function(e,t){return e&&t?k(e,$(e,t)):null},e.prototype.relativeOffset=function(e,t){return n=this.offset(e),i=t,o=this.isBodyOffset(e),r=n.top,s=n.left,o&&(s=0,r=0),{top:r+i.top,left:s+i.left,height:n.height,width:n.width};var n,i,o,r,s},e.prototype.addScroll=function(e,t){return function(e,t){return{top:e.top+t.y,left:e.left+t.x,height:e.height,width:e.width}}(e,t)},e.prototype.removeScroll=function(e,t){return function(e,t){return{top:e.top-t.y,left:e.left-t.x,height:e.height,width:e.width}}(e,t)},e.prototype.restrictToView=function(e){return function(e){var t=e.anchorRect,n=e.anchorAlign,i=e.elementRect,o=e.elementAlign,r=e.collisions,s=e.viewPort,a=e.margin;void 0===a&&(a={});var l=i.top,d=i.left,c=i.height,u=i.width,p=s.height,h=s.width,f=a.horizontal||0,v=a.vertical||0,m=0,g=0,y="fit"===r.vertical,b="fit"===r.horizontal,k=r.vertical===w,C=r.horizontal===w;y&&(g+=S(l,c,p)),b&&(m+=S(d,u,h)),k&&(g+=x({margin:v,offset:l,size:c,anchorSize:t.height,viewPortSize:p,anchorAlignPoint:n.vertical,elementAlignPoint:o.vertical})),C&&(m+=x({margin:f,offset:d,size:u,anchorSize:t.width,viewPortSize:h,anchorAlignPoint:n.horizontal,elementAlignPoint:o.horizontal}));var $=k&&0!==g,I=C&&0!==m,O=y&&0!==g,D=b&&0!==m;return{flipped:I||$,fitted:O||D,flip:{horizontal:I,vertical:$},fit:{horizontal:D,vertical:O},offset:{left:m,top:g}}}(e)},e.prototype.scrollPosition=function(e){return y(e)},e.prototype.scrollableParents=function(e){return function(e){var t=[];if(!D()||!M())return t;for(var n=e.parentElement;n;)T.test(R(n))&&t.push(n),n=n.parentElement;return t.push(window),t}(e)},e.prototype.stackingElementOffset=function(e){var t=this.getRelativeContextElement(e);return t?m(t):null},e.prototype.stackingElementScroll=function(e){var t=this.getRelativeContextElement(e);return t?{x:t.scrollLeft,y:t.scrollTop}:{x:0,y:0}},e.prototype.stackingElementViewPort=function(e){var t=this.getRelativeContextElement(e);return t?{height:t.scrollHeight,width:t.scrollWidth}:null},e.prototype.getRelativeContextElement=function(e){if(!e||!B)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}return null},e.prototype.useRelativePosition=function(e){return!!this.getRelativeContextElement(e)},e.prototype.windowViewPort=function(e){return f(e)},e.prototype.zIndex=function(e,t){return function(e,t){if(!e||!D()||!M())return null;var n=$(e,t);if(!n)return null;var i=[e].concat(g(e,n)).reduce((function(e,t){var n=t.style.zIndex||window.getComputedStyle(t).zIndex,i=parseInt(n,10);return i>e?i:e}),0);return i?i+1:null}(e,t)},e.prototype.zoomLevel=function(){return D()&&M()?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},e.prototype.isZoomed=function(){return this.zoomLevel()>1},e}(),V=function(){function e(e){this._dom=e}return e.prototype.positionElement=function(e){var t,n,i=e.anchor,o=e.currentLocation,r=e.element,s=e.anchorAlign,a=e.elementAlign,l=e.collisions,d=this._dom,c=e.viewPort||d.stackingElementViewPort(r)||d.windowViewPort(r),u=O(d.offset(i),o),p=(t=d.staticOffset(r),(n=o)?{height:t.height,left:n.left,top:n.top,width:t.width}:t),h=this.elementRect(r,p),f=d.restrictToView({anchorAlign:s,anchorRect:u,collisions:l,elementAlign:a,elementRect:h,viewPort:c});return{flipped:f.flipped,offset:d.addOffset(p,f.offset)}},e.prototype.elementRect=function(e,t){return this._dom.removeScroll(t,this._dom.scrollPosition(e))},e}(),L=n(7984),A={name:"@progress/kendo-vue-popup",productName:"Kendo UI for Vue",productCodes:["KENDOUIVUE","KENDOUICOMPLETE"],publishDate:1660123587,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"},F=i,z=F.h,j=F.version&&"3"===F.version[0],K={left:-1e3,top:0},_="k-animation-container-shown",H="k-popup",W={name:"Popup",props:{appendTo:{type:String,default:""},anchor:{type:String,default:""},className:String,id:String,popupClass:String,collision:{type:Object,default:function(){return{horizontal:"fit",vertical:"flip"}}},anchorAlign:{type:Object,default:function(){return{horizontal:N,vertical:"bottom"}}},popupAlign:{type:Object,default:function(){return{horizontal:N,vertical:"top"}}},offset:{type:Object,default:function(){return K}},show:{type:Boolean,default:!1},animate:{type:[Boolean,Object],default:function(){return!0}},direction:{type:String,default:"down"},transition:{type:String,default:"expand"}},inject:{kCurrentZIndex:{default:null}},data:function(){return{hasMounted:!1}},created:function(){(0,L.validatePackage)(A),this.mountedAppendTo=void 0,this.mountedAnchor=void 0,this._initiallyMountedContent=void 0,this._flipped=!1,this._offsetTop=0,this._offsetLeft=-1e3,this._exitingAnimation=!1,this._prevShow=!1,this._prevShow=this.$props.show,this._domService=new E,this._alignService=new P(this._domService),this._positionService=new V(this._domService),this.reposition=function(e,t,n){var i,o,r,s;void 0===n&&(n={});var a=0;n=n||{};var l=function(){a=!1===n.leading?0:(new Date).getTime(),i=null,s=e.apply(o,r),i||(o=r=null)};return function(){var d=(new Date).getTime();a||!1!==n.leading||(a=d);var c=t-(d-a);return o=this,r=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),a=d,s=e.apply(o,r),i||(o=r=null)):i||!1===n.trailing||(i=setTimeout(l,c)),s}}(this.reposition.bind(this),16.666666666666668)},setup:j?function(){return{v3:!!j}}:void 0,mounted:function(){L.canUseDOM&&(this.mountedAppendTo=this.$props.appendTo?this.getParentRef(this.$props.appendTo):document.body,this.mountedAnchor=this.$props.anchor?this.getParentRef(this.$props.anchor):document.body),this._parentElement=this.$el.parentElement,this._initiallyMountedContent=this.$el.cloneNode(!0),this.hasMounted=!0,this.mountedAppendTo.appendChild(this.$el)},updated:function(){this._prevShow=this.$props.show},destroyed:j?void 0:function(){this.detachRepositionHandlers()},beforeDestroy:j?void 0:function(){this._parentElement&&this._parentElement.appendChild(this.$el)},unmounted:function(){this.detachRepositionHandlers()},beforeUnmount:function(){this._parentElement&&this._parentElement.appendChild(this.$el)},methods:{onOpened:function(){var e=this.$el;this.$props.show&&e.classList.add(_),this.attachRepositionHandlers(e),this.$emit("open",{target:this})},onClosing:function(){this.$props.show||this.$el.classList.remove(_),this.detachRepositionHandlers()},onClosed:function(){this._exitingAnimation&&(this._exitingAnimation=!1,this.$forceUpdate()),this.$emit("close",{target:this})},transitionDuration:function(){var e=this.$props.animate,t=0,n=0;return e&&(!0===e?t=n=void 0:(t=e.openDuration,n=e.closeDuration)),{transitionEnterDuration:t,transitionExitDuration:n}},getParentRef:function(e){for(var t=this.$parent;!t.$refs[e];){if(t&&t.kendoAnchorRef)return t.kendoAnchorRef;if(!(t=t.$parent)&&L.canUseDOM)return document.body}return t.$refs[e].$el||t.$refs[e]},position:function(e,t,n){var i=e.anchorAlign,o=e.popupAlign,r=e.collision,s=e.offset,a=n?this.v3?this.mountedAnchor:this.getParentRef(n):document.body,l=this._alignService.alignElement({anchor:n?a:void 0,element:t,elementAlign:o,anchorAlign:i,offset:s});return this._positionService.positionElement({anchor:a,anchorAlign:i,collisions:r,element:t,currentLocation:l,elementAlign:o})},calculatePosition:function(e,t){if(!t||!M()||!L.canUseDOM)return{flipped:!1,offset:e.offset};var n=(0,L.getDefaultSlots)(this),i=document.createElement("div"),o=this.$el&&this.$el.firstChild&&this.$el.firstChild.firstChild?this.$el.firstChild.firstChild.cloneNode(!0):null,r=o&&o.getBoundingClientRect?o:this._initiallyMountedContent;if(r)i.appendChild(r);else{var s=this.v3?n&&n[0].props?n[0].props.class:"":n&&n[0].data?n[0].data.staticClass:"",a=this.v3?this.$props.popupClass?this.$props.popupClass:"":n&&n[0].data?n[0].data.class:"";i.innerHTML='<div class="k-animation-container k-animation-container-relative">\t\n <div class="k-popup k-animation-container k-animation-container-relative">\n <div class="'.concat(s," ").concat(a,'" >\n </div>\t\n </div>\t\n </div>')}if(t.appendChild(i),i&&i.firstChild){var l=i.firstChild;l.style.position="absolute",l.style.visibility="hidden",l.style.display="block",l.style.left="-1000",l.style.top="0";var d=this.v3?n&&n[0].props?n[0].props.style:{}:n[0].data?n[0].data.style:{};if(d)for(var c=0,u=Object.entries(d);c<u.length;c++){var p=u[c],h=p[0],f=p[1];l.style[h]=f}}var v=this.position(e,i.firstChild,this.$props.anchor);return i.parentNode.removeChild(i),v},attachRepositionHandlers:function(e){var t=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.$props.anchor?this.mountedAnchor:e),this._scrollableParents.map((function(e){return e.addEventListener("scroll",t.reposition)})),window.addEventListener("resize",this.reposition)},detachRepositionHandlers:function(){var e=this;this._scrollableParents&&(this._scrollableParents.map((function(t){return t.removeEventListener("scroll",e.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},reposition:function(){this.$forceUpdate()},getCurrentZIndex:function(){return this.kCurrentZIndex?this.kCurrentZIndex+1:100}},render:function(e){var t=z||e,n=this.$props,i=n.className,r=n.popupClass,s=n.show,a=n.id,l=(0,L.getDefaultSlots)(this),d=this.v3||s?l:null,c=M()?this.$props.appendTo?this.mountedAppendTo||this.getParentRef(this.$props.appendTo):document.body:void 0;if(this.$props.show){var u=this.calculatePosition(this.$props,c);this._offsetLeft=u.offset.left,this._offsetTop=u.offset.top,this._flipped=!!u.flipped}var p=this._flipped?"up":"down",h=this.transitionDuration(),f=h.transitionEnterDuration,v=h.transitionExitDuration,m=this.getCurrentZIndex();return this._exitingAnimation=this._exitingAnimation||this._prevShow&&!s,this.hasMounted?s||this._exitingAnimation&&c?t(o.Mi,{id:a,attrs:this.v3?void 0:{id:a,role:this.appendTo?"":"region",componentChildClassName:[r,H],className:i,direction:p,transitionEnterDuration:f,transitionExitDuration:v,appear:s},role:this.appendTo?"":"region",componentChildClassName:[r,H],className:i,onEntered:this.onOpened,on:this.v3?void 0:{entered:this.onOpened,exiting:this.onClosing,exited:this.onClosed},onExiting:this.onClosing,onExited:this.onClosed,direction:p,style:{zIndex:m,position:"absolute",top:this._offsetTop+"px",left:this._offsetLeft+"px"},transitionEnterDuration:f,transitionExitDuration:v,appear:s},this.v3?function(){return[d]}:[d]):null:t("div",{style:{display:"none"},class:i},[t("div",{class:[r,H]},[l])])}},U=W},7984:(e,t,n)=>{n.r(t),n.d(t,{Draggable:()=>B,Keys:()=>s,canUseDOM:()=>a,classNames:()=>o,clone:()=>P,cloneArray:()=>L,cloneDate:()=>N,cloneObject:()=>E,cloneValue:()=>V,firstFocusableChild:()=>u,focusContainer:()=>v,focusFirstFocusableChild:()=>h,focusLastFocusableChild:()=>f,getDefaultSlots:()=>O,getDir:()=>te,getListeners:()=>W,getRef:()=>l,getTabIndex:()=>Q,getTemplate:()=>Y,getter:()=>j,guid:()=>r,hasListener:()=>H,isObject:()=>i,isRtl:()=>ee,kendoThemeMaps:()=>oe,lastFocusableChild:()=>p,noop:()=>A,setRef:()=>d,setter:()=>_,templateDefinition:()=>J,templateRendering:()=>X,validatePackage:()=>ie});var i=function(e){return"object"==typeof e},o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?o.apply(void 0,e):i(e)?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},r=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},s={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},a=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function l(e,t,n){return e.v3?e["".concat(t,"Ref")]:e.$refs["".concat(n||t)]}function d(e,t,n){return e.v3?function(n){e["".concat(t,"Ref")]=n}:n||t}var c='input, [tabindex]:not([tabindex="-1"])',u=function(e){if(e){var t=e.querySelectorAll(c);if(t.length&&t[0].focus)return t[0]}},p=function(e){if(e){var t=e.querySelectorAll(c);if(t.length&&t[t.length-1].focus)return t[t.length-1]}},h=function(e){if(e){var t=e.querySelectorAll(c);t.length&&t[0].focus&&t[0].focus()}},f=function(e){if(e){var t=e.querySelectorAll(c);t.length&&t[t.length-1].focus&&t[t.length-1].focus()}},v=function(e,t){var n=!0;if(e.keyCode!==s.enter&&e.target===t)return!1;if(e.keyCode===s.enter&&e.target===t)n=!0,setTimeout((function(){h(t)}),1);else if(e.keyCode===s.esc)n=!1,t.focus();else if(e.keyCode===s.tab){var i=u(t),o=p(t);o&&!e.shiftKey&&e.target===o&&(e.preventDefault(),i.focus()),i&&e.shiftKey&&e.target===i&&(e.preventDefault(),o.focus())}return n},m=n(1895),g=function(e,t){return function(n){return t(e(n))}},y=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},b=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},k=function(){},w=function(e){return e.preventDefault()},S=/touch/;function x(e){return e.type.match(S)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var C=function(e){var t=this,n=e.press;void 0===n&&(n=k);var i=e.drag;void 0===i&&(i=k);var o=e.release;void 0===o&&(o=k);var r=e.mouseOnly;void 0===r&&(r=!1),this._pressHandler=g(x,n),this._dragHandler=g(x,i),this._releaseHandler=g(x,o),this._ignoreMouse=!1,this._mouseOnly=r,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(y(t.document,"mousemove",t._mousemove),y(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){b(t.document,"mousemove",t._mousemove),b(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(y(t.document,"pointermove",t._pointermove),y(t.document,"pointerup",t._pointerup),y(t.document,"pointercancel",t._pointerup),y(t.document,"contextmenu",w),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(b(t.document,"pointermove",t._pointermove),b(t.document,"pointerup",t._pointerup),b(t.document,"pointercancel",t._pointerup),b(t.document,"contextmenu",w),t._releaseHandler(e))}},$={document:{configurable:!0}};C.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},$.document.get=function(){return this._element?this._element.ownerDocument:document},C.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},C.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?y(e,"pointerdown",this._pointerdown):(y(e,"mousedown",this._mousedown),this._mouseOnly||(y(e,"touchstart",this._touchstart),y(e,"touchmove",this._touchmove),y(e,"touchend",this._touchend)))},C.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return b(e,"pointerdown",this._pointerdown),b(this.document,"pointermove",this._pointermove),b(this.document,"pointerup",this._pointerup),b(this.document,"contextmenu",w),void b(this.document,"pointercancel",this._pointerup);b(e,"mousedown",this._mousedown),this._mouseOnly||(b(e,"touchstart",this._touchstart),b(e,"touchmove",this._touchmove),b(e,"touchend",this._touchend))},C.prototype._usePointers=function(){return!this._mouseOnly&&C.supportPointerEvent()},C.prototype.update=function(e){var t=e.press;void 0===t&&(t=k);var n=e.drag;void 0===n&&(n=k);var i=e.release;void 0===i&&(i=k);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=g(x,t),this._dragHandler=g(x,n),this._releaseHandler=g(x,i),this._mouseOnly=o},C.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(C.prototype,$),C.default=C;const I=C;function O(e){var t=e.$slots.default;return e.v3&&t&&"function"==typeof t?t():t}var D;function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=m,R=(T.h,T.version&&"3"===T.version[0]),B=(M(D={emits:{press:null,drag:null,release:null},inheritAttrs:!1,created:function(){this.element=null,this.draggable=new I({press:this.press,drag:this.drag,release:this.release})},setup:R?function(){return{v3:!!R}}:void 0,mounted:function(){this.$el&&(this.element=3===this.$el.nodeType?this.$el.nextElementSibling:this.$el,this.draggable.bindTo(this.element))},destroyed:R?void 0:function(){this.draggable.destroy()},unmounted:function(){this.draggable.destroy()},methods:{press:function(e){this.element&&this.$emit("press",e,this.element)},drag:function(e){this.element&&this.$emit("drag",e,this.element)},release:function(e){this.element&&this.$emit("release",e,this.element)}}},"setup",R?function(){return{v3:!!R}}:void 0),M(D,"render",(function(e){return O(this)})),D),N=function(e){return e?new Date(e.getTime()):null};function P(e){var t={};return E(e,t),t}function E(e,t){for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t[n]=V(i,t[n])}}function V(e,t){if(Array.isArray(e))return L(e);if(e instanceof Date)return N(e);if(e&&i(e)){var n=t||{};return E(e,n),n}return e}function L(e){return e.map((function(e){return V(e,void 0)}))}var A=function(){},F=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,z={};function j(e){if(z[e])return z[e];var t=[];return e.replace(F,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),z[e]=function(e){for(var n=e,i=0;i<t.length&&n;i++)n=n[t[i]];return n},z[e]}z.undefined=function(){};var K={};function _(e){if(K[e])return K[e];var t=[];return e.replace(F,(function(e,n,i,o){t.push(void 0!==n?n:i||o)})),K[e]=function(e,n){for(var i=e,o=t.length-1,r=0;r<o&&i;r++)i=i[t[r]]=i[t[r]]||{};i[t[o]]=n},K[e]}function H(e){return this.v3?Object.keys(this.$attrs).map((function(e){return e.toLowerCase()})).some((function(t){return t.endsWith(e.toLowerCase())})):this.$listeners[e]}function W(){if(this.v3){var e={};for(var t in this.$attrs)t.startsWith("on")&&(e[t]=this.$attrs[t]);return e}return this.$listeners}K.undefined=function(e){return e};var U=function(){return U=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},U.apply(this,arguments)},q=m,G=q.version&&"3"===q.version[0],J={type:[String,Function,Object,Boolean],default:function(){}};function X(e,t){if(e||!1===e){var n=G?this.$slots[e]||(e.toLowerCase?this.$slots[e.toLowerCase()]:null):this.$scopedSlots[e]||(e.toLowerCase?this.$scopedSlots[e.toLowerCase()]:null);return"string"==typeof e&&n?{kt:!0,type:"slot",render:n,listeners:t}:"string"==typeof e||i(e)||"function"==typeof e&&e.component?{kt:!0,type:"component",render:e,listeners:t}:{kt:!0,type:"renderFunction",render:e,listeners:t}}}function Y(e){var t,n,i,o=e.h,r=e.template,s=e.defaultRendering,a=e.defaultSlots,l=e.additionalProps,d=e.additionalListeners,c=e.swapDefaultSlots;if(!r||r&&!0===r.render)return s;if(G){var u=s?s.props:{};t=U(U({},Z(d)),r.listeners),n=U(U(U({},u),l),t),i=U(U({},n),t)}else{var p=s&&s.componentOptions,h=p?s.componentOptions.listeners:{},f=p?s.componentOptions.propsData:{};t=U(U(U(U({},h),d),Z(d)),r.listeners),i={props:n=U(U(U({},f),l),t),on:t}}if("slot"===r.type){var v=r.render({props:n,listeners:t,methods:t,defaultSlots:a});return v?v[0]:void 0}return"renderFunction"===r.type?c?r.render?r.render(o,s,a,n,t):void 0:r.render?r.render(o,s,n,t,a):void 0:o(r.render,i,G?function(){return[a]}:[a])}function Z(e){if(!e)return e;for(var t={},n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];t["on"+o.charAt(0).toUpperCase()+o.slice(1)]=e[o]}return t}var Q=function(e,t,n){var i="string"==typeof e?parseInt(e,void 0):e;if(NaN!==i)return void 0!==i?i:t?n?void 0:-1:0};function ee(e){return Boolean(a&&e&&"rtl"===getComputedStyle(e).direction)}function te(e,t){if(!t&&a&&e){var n=window.getComputedStyle(e).direction;if(n)return n}return t}var ne=n(9302);function ie(e){if(void 0!==ne)ne.validatePackage(e);else{var t="License activation failed for ".concat(e.name,"\n");t+="The @progress/kendo-licensing script is not loaded.\n",t+="See ".concat(e.licensingDocsUrl," for more information.\n"),console.warn(t)}}var oe={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},4407:e=>{e.exports=i},9302:e=>{e.exports=t},5725:e=>{e.exports=n},1895:t=>{t.exports=e}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.EditorUtils=e.EditorToolsSettings=e.Editor=e.ApplyColor=e.FindAndReplace=e.Print=e.Pdf=e.ViewHtml=e.InsertTable=e.InsertImage=e.SelectAll=e.CleanFormatting=e.Unlink=e.LinkTool=e.ProseMirrorTool=e.FormatBlock=e.FontName=e.InlineFormat=e.Outdent=e.List=e.Indent=e.Align=e.ProseMirror=void 0;var t=s(6445);Object.defineProperty(e,"Editor",{enumerable:!0,get:function(){return t.Editor}});var n=s(722);Object.defineProperty(e,"EditorToolsSettings",{enumerable:!0,get:function(){return n.EditorToolsSettings}});var i=s(6001);Object.defineProperty(e,"EditorUtils",{enumerable:!0,get:function(){return i.EditorUtils}});var o=s(9157);e.ProseMirror={Selection:o.Selection,SelectionRange:o.SelectionRange,TextSelection:o.TextSelection,NodeSelection:o.NodeSelection,AllSelection:o.AllSelection,EditorState:o.EditorState,Plugin:o.Plugin,PluginKey:o.PluginKey,Transaction:o.Transaction,Decoration:o.Decoration,DecorationSet:o.DecorationSet,EditorView:o.EditorView,Node:o.Node,ResolvedPos:o.ResolvedPos,NodeRange:o.NodeRange,Fragment:o.Fragment,Slice:o.Slice,ReplaceError:o.ReplaceError,Mark:o.Mark,Schema:o.Schema,NodeType:o.NodeType,MarkType:o.MarkType,ContentMatch:o.ContentMatch,DOMParser:o.DOMParser,DOMSerializer:o.DOMSerializer,Transform:o.Transform,Step:o.Step,StepResult:o.StepResult,joinPoint:o.joinPoint,canJoin:o.canJoin,canSplit:o.canSplit,insertPoint:o.insertPoint,dropPoint:o.dropPoint,liftTarget:o.liftTarget,findWrapping:o.findWrapping,StepMap:o.StepMap,MapResult:o.MapResult,Mapping:o.Mapping,AddMarkStep:o.AddMarkStep,RemoveMarkStep:o.RemoveMarkStep,ReplaceStep:o.ReplaceStep,ReplaceAroundStep:o.ReplaceAroundStep,replaceStep:o.replaceStep,deleteSelection:o.deleteSelection,joinBackward:o.joinBackward,selectNodeBackward:o.selectNodeBackward,joinForward:o.joinForward,selectNodeForward:o.selectNodeForward,joinUp:o.joinUp,joinDown:o.joinDown,lift:o.lift,newlineInCode:o.newlineInCode,exitCode:o.exitCode,createParagraphNear:o.createParagraphNear,liftEmptyBlock:o.liftEmptyBlock,splitBlock:o.splitBlock,splitBlockKeepMarks:o.splitBlockKeepMarks,selectParentNode:o.selectParentNode,selectAll:o.selectAll,wrapIn:o.wrapIn,setBlockType:o.setBlockType,toggleMark:o.toggleMark,autoJoin:o.autoJoin,chainCommands:o.chainCommands,pcBaseKeymap:o.pcBaseKeymap,macBaseKeymap:o.macBaseKeymap,baseKeymap:o.baseKeymap,history:o.history,undo:o.undo,redo:o.redo,undoDepth:o.undoDepth,redoDepth:o.redoDepth,InputRule:o.InputRule,inputRules:o.inputRules,undoInputRule:o.undoInputRule,emDash:o.emDash,ellipsis:o.ellipsis,openDoubleQuote:o.openDoubleQuote,closeDoubleQuote:o.closeDoubleQuote,openSingleQuote:o.openSingleQuote,closeSingleQuote:o.closeSingleQuote,smartQuotes:o.smartQuotes,wrappingInputRule:o.wrappingInputRule,textblockTypeInputRule:o.textblockTypeInputRule,keymap:o.keymap,keydownHandler:o.keydownHandler,orderedList:o.orderedList,bulletList:o.bulletList,listItem:o.listItem,addListNodes:o.addListNodes,wrapInList:o.wrapInList,splitListItem:o.splitListItem,liftListItem:o.liftListItem,sinkListItem:o.sinkListItem,dropCursor:o.dropCursor,gapCursor:o.gapCursor,tableEditing:o.tableEditing,fixTables:o.fixTables,fixTablesKey:o.fixTablesKey,cellAround:o.cellAround,isInTable:o.isInTable,selectionCell:o.selectionCell,moveCellForward:o.moveCellForward,inSameTable:o.inSameTable,findCell:o.findCell,colCount:o.colCount,nextCell:o.nextCell,removeColSpan:o.removeColSpan,addColSpan:o.addColSpan,columnIsHeader:o.columnIsHeader,tableNodes:o.tableNodes,tableNodeTypes:o.tableNodeTypes,CellSelection:o.CellSelection,TableMap:o.TableMap,tableEditingKey:o.tableEditingKey,columnResizing:o.columnResizing,columnResizingPluginKey:o.columnResizingPluginKey,updateColumnsOnResize:o.updateColumnsOnResize,selectedRect:o.selectedRect,addColumn:o.addColumn,addColumnBefore:o.addColumnBefore,addColumnAfter:o.addColumnAfter,deleteColumn:o.deleteColumn,rowIsHeader:o.rowIsHeader,addRow:o.addRow,addRowBefore:o.addRowBefore,addRowAfter:o.addRowAfter,deleteRow:o.deleteRow,mergeCells:o.mergeCells,splitCell:o.splitCell,splitCellWithType:o.splitCellWithType,setCellAttr:o.setCellAttr,toggleHeader:o.toggleHeader,toggleHeaderRow:o.toggleHeaderRow,toggleHeaderColumn:o.toggleHeaderColumn,toggleHeaderCell:o.toggleHeaderCell,goToNextCell:o.goToNextCell,deleteTable:o.deleteTable};var r=s(3530);Object.defineProperty(e,"Align",{enumerable:!0,get:function(){return r.Align}});var l=s(8060);Object.defineProperty(e,"Indent",{enumerable:!0,get:function(){return l.Indent}});var d=s(3684);Object.defineProperty(e,"List",{enumerable:!0,get:function(){return d.List}});var c=s(674);Object.defineProperty(e,"Outdent",{enumerable:!0,get:function(){return c.Outdent}});var u=s(7947);Object.defineProperty(e,"InlineFormat",{enumerable:!0,get:function(){return u.InlineFormat}});var p=s(1198);Object.defineProperty(e,"FontName",{enumerable:!0,get:function(){return p.FontName}});var h=s(423);Object.defineProperty(e,"FormatBlock",{enumerable:!0,get:function(){return h.FormatBlock}});var f=s(8356);Object.defineProperty(e,"ProseMirrorTool",{enumerable:!0,get:function(){return f.ProseMirror}});var v=s(1013);Object.defineProperty(e,"LinkTool",{enumerable:!0,get:function(){return v.LinkTool}});var m=s(84);Object.defineProperty(e,"Unlink",{enumerable:!0,get:function(){return m.Unlink}});var g=s(4165);Object.defineProperty(e,"CleanFormatting",{enumerable:!0,get:function(){return g.CleanFormatting}});var y=s(9343);Object.defineProperty(e,"SelectAll",{enumerable:!0,get:function(){return y.SelectAll}});var b=s(3976);Object.defineProperty(e,"InsertImage",{enumerable:!0,get:function(){return b.InsertImage}});var k=s(8799);Object.defineProperty(e,"InsertTable",{enumerable:!0,get:function(){return k.InsertTable}});var w=s(3381);Object.defineProperty(e,"ViewHtml",{enumerable:!0,get:function(){return w.ViewHtml}});var S=s(8086);Object.defineProperty(e,"Pdf",{enumerable:!0,get:function(){return S.Pdf}});var x=s(4312);Object.defineProperty(e,"Print",{enumerable:!0,get:function(){return x.Print}});var C=s(1217);Object.defineProperty(e,"FindAndReplace",{enumerable:!0,get:function(){return C.FindAndReplace}});var $=s(5555);Object.defineProperty(e,"ApplyColor",{enumerable:!0,get:function(){return $.ApplyColor}})})(),a})()}));